1 2011-06-03 Julian Brown <julian@codesourcery.com>
3 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
4 (strongarm1110): Use strongarm tuning.
5 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped
7 * config/arm/arm.c (arm_strongarm_tune): New.
8 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
10 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
11 setting, using previous defaults or 1 for Cortex-A5.
12 (arm_option_override): Set max_insns_skipped from current tuning.
14 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
16 * doc/install.texi (Options specification): Document --with-specs.
18 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20 * config/arm/neon.md (orndi3_neon): Actually split it.
22 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
24 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
25 * var-tracking.c (reverse_op): Limite recurse depth to 5.
27 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
30 * target.def (delay_sched2, delay_vartrack): New.
31 * doc/tm.texi.in: Update.
32 * doc/tm.texi: Rebuild.
33 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
34 * var-tracking.c (gate_handle_var_tracking): Likewise.
35 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
36 (bfin_flag_var_tracking): Drop.
37 (output_file_start): Don't save and override flag_var_tracking.
38 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
39 (bfin_reorg): Test original variables.
40 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
41 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
42 (ia64_flag_var_tracking): Drop.
43 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
44 (ia64_file_start): Don't save and override flag_var_tracking.
45 (ia64_override_options_after_change): Ditto
46 flag_schedule_insns_after_reload.
47 (ia64_reorg): Test original variables.
48 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
49 (picochip_flag_var_tracking): Drop.
50 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
51 (picochip_option_override): Don't save and override
52 flag_schedule_insns_after_reload.
53 (picochip_asm_file_start): Ditto flag_var_tracking.
54 (picochip_reorg): Test original variables.
55 * config/spu/spu.c (spu_flag_var_tracking): Drop.
56 (TARGET_DELAY_VARTRACK): Define.
57 (spu_var_tracking): New.
58 (spu_machine_dependent_reorg): Call it.
59 (asm_file_start): Don't save and override flag_var_tracking.
61 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
64 * config/sh/predicates.md (general_movsrc_operand): Return 0
65 for memory and memory subreg of which address is an invalid
66 indexed address for QI and HImode.
67 (general_movdst_operand): Likewise.
69 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
71 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
72 edges only, when there is a non-local label in the function.
73 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
75 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
77 * config/i386/constraints.md (Y3): New register constraint.
78 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
79 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
80 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
81 *sse2_interleave_lowv2df.
83 2011-06-02 Julian Brown <julian@codesourcery.com>
85 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
86 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
87 (arm_cortex_a5_tune): New.
89 2011-06-02 Julian Brown <julian@codesourcery.com>
91 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
92 * config/arm/arm.c (arm_default_branch_cost): New.
93 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
94 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
95 (arm_fa726_tune): Set branch_cost field using
96 arm_default_branch_cost.
97 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
98 current_tune structure.
99 * dojump.c (tm_p.h): Include file.
101 2011-06-02 Julian Brown <julian@codesourcery.com>
103 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
105 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
106 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
107 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
109 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
110 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
111 (arm_fa726te_tune): Add prefer_constant_pool setting.
112 (arm_v6t2_tune, arm_cortex_tune): New.
113 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
114 prefer_constant_pool setting.
116 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
118 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
120 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
121 (*movdf_internal) <case 6,7,8>: Ditto.
123 * config/i386/constraints.md (Y4): New register constraint.
124 * config/i386/sse.md (vec_set<mode>_0): Merge with
125 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
126 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
127 *vec_extractv2di_1_sse.
128 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
129 and *vec_concatv2di_rex64_sse.
131 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
134 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
135 of cgraph_local_info for null before attempting to use it.
137 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
139 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
140 (current_function_dynamic_alloc_count): Delete.
141 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
142 (expand_builtin_nonlocal_goto): Remove obsolete comment.
143 (expand_builtin_update_setjmp_buf): Remove dead code.
144 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
145 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
147 * function.c (instantiate_virtual_regs): Likewise.
148 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
149 for a block with a single abnormal incoming edge.
150 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
151 (SETJMP_VIA_SAVE_AREA): Delete.
152 * config/sparc/sparc-protos.h (load_got_register): Declare.
153 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
154 (load_got_register): Make global.
155 (sparc_frame_pointer_required): Add 'static'.
156 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
157 (sparc_builtin_setjmp_frame_value): New function.
158 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
159 (save_stack_nonlocal): New expander.
160 (restore_stack_nonlocal): Likewise.
161 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
162 (nonlocal_goto_internal): New insn.
163 (goto_handler_and_restore): Delete.
164 (builtin_setjmp_setup): Likewise.
165 (do_builtin_setjmp_setup): Likewise.
167 (builtin_setjmp_receiver): New expander.
169 2011-06-01 David Li <davidxl@google.com>
172 * tree-pretty-print.c (dump_function_header): Format cleanup.
174 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
177 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
178 needed when original operands are used for msw_skip comparison.
180 2011-06-01 Jakub Jelinek <jakub@redhat.com>
183 * var-tracking.c (add_uses, add_stores): Don't call
184 cselib_subst_to_values on ENTRY_VALUE.
186 2011-06-01 Diego Novillo <dnovillo@google.com>
188 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
189 output_record_start with LTO_null instead of output_zero.
190 (lto_output_ts_binfo_tree_pointers): Likewise.
191 (lto_output_tree): Likewise.
192 (output_eh_try_list): Likewise.
193 (output_eh_region): Likewise.
194 (output_eh_lp): Likewise.
195 (output_eh_regions): Likewise.
196 (output_bb): Likewise.
197 (output_function): Likewise.
198 (output_unreferenced_globals): Likewise.
199 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
200 instead of NUM_TREE_CODES.
201 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
202 (lto_output_int_in_range): Change << to >> when shifting VAL.
204 2011-06-01 Diego Novillo <dnovillo@google.com>
206 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
207 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
209 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
212 * optabs.h (valid_multiword_target_p): Declare.
213 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
214 doing multi-word operations.
215 * optabs.c (expand_binop): Likewise.
216 (expand_doubleword_bswap): Likewise.
217 (expand_absneg_bit): Likewise.
218 (expand_unop): Likewise.
219 (expand_copysign_bit): Likewise.
220 (multiword_target_p): New function.
222 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
224 PR rtl-optimization/48830
225 PR rtl-optimization/48808
226 PR rtl-optimization/48792
227 * reload.c (push_reload): Check contains_reg_of_mode.
228 * reload1.c (strip_paradoxical_subreg): New function.
229 (gen_reload_chain_without_interm_reg_p): Use it to handle
231 (emit_output_reload_insns, gen_reload): Likewise.
233 2011-06-01 David Li <davidxl@google.com>
235 * predict.c : Change pass name
238 * tree-profile.c: Ditto.
241 2011-06-01 David Li <davidxl@google.com>
243 * tree-pretty-print.c (dump_function_header): New function.
244 * final.c (rest_of_clean_state): Use header dumper.
245 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
246 * passes.c (pass_init_dump_file): Use header dumper.
248 2011-06-01 Jakub Jelinek <jakub@redhat.com>
250 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
251 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
252 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
254 (mem_loc_descriptor): Use them.
256 * var-tracking.c (create_entry_value): New function.
257 (vt_add_function_parameter): Use it.
259 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
261 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
262 Include <signal.h>, <ucontext.h>.
263 (sigill_caught): Define.
264 (sigill_hdlr): New function.
265 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
266 insns can be executed.
267 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
268 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
270 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
272 * config/t-slibgcc-darwin: Move to ...
273 * config/t-slibgcc-dummy: ... this. Clarify comments.
274 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
275 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
276 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
277 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
278 Remove i386/t-crtstuff from tmake_file.
279 (i[34567]86-*-solaris2*): Remove t-svr4,
280 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
282 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
283 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
284 sparc/t-crtfm from tmake_file.
285 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
286 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
288 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
289 * config/i386/t-nwld (SHLIB_LINK): Remove.
290 * config/i386/t-rtems-i386: Rename to ...
291 * config/i386/t-rtems: ... this.
292 ($(T)crti.o, $(T)crtn.o): Remove.
293 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
294 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
295 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
296 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
297 EXTRA_MULTILIB_PARTS): Remove.
298 * config/sparc/t-sol2-64: Likewise.
299 * config/sparc/t-sol2: Remove.
300 * config/sparc/t-crtin: Remove.
301 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
302 * config/i386/gmon-sol2.c: Remove.
303 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
304 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
305 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
306 * config/i386/sol2-gc1.asm: Remove.
307 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
308 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
309 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
310 * config/t-slibgcc-sld: Remove.
312 2011-06-01 Jakub Jelinek <jakub@redhat.com>
314 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
315 base_type_for_mode with op_mode instead of mode.
317 2011-06-01 Paul Brook <paul@cpodesourcery.com>
319 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
321 * config/arm/arm-tune.md: Regenerate.
322 * config/arm/arm-tables.opt: Regenerate.
323 * config/arm/arm.c (FL_DIV): Rename...
324 (FL_THUMB_DIV): ... to this.
325 (FL_ARM_DIV): Define.
326 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
327 (arm_arch_hwdiv): Remove.
328 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
329 (arm_issue_rate): Add cortexr5.
330 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
331 __ARM_ARCH_EXT_IDIV__.
332 (TARGET_IDIV): Define.
333 (arm_arch_hwdiv): Remove.
334 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
335 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
336 (divsi3, udivsi3): New patterns.
337 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
338 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
340 2011-06-01 Martin Jambor <mjambor@suse.cz>
342 * ipa-utils.c (ipa_dfs_info): New field scc_no.
343 * ipa-utils.c (searchc): Set scc_no.
345 2011-06-01 Martin Jambor <mjambor@suse.cz>
347 * ipa-utils.c (searchc_env): New field allow_overwritable.
348 (searchc): do not ignore edges to overwritable nodes if indicated
349 by env->allow_overwritable.
350 (ipa_reduced_postorder): Set env.allow_overwritable.
352 2011-06-01 Richard Guenther <rguenther@suse.de>
354 * tree.c (free_lang_data): Do not reset boolean_type_node nor
356 * lto-streamer.c (lto_record_common_node): Take node pointer,
357 do not register types.
358 (lto_preload_common_nodes): Explicitly skip preloading nodes
359 that differ between frontends.
361 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
363 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
366 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
368 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
369 parameter value for dump. Dump cost on outermost call only.
370 (rs6000_memory_move_cost): Dump cost on outermost call only.
372 2011-05-31 Jakub Jelinek <jakub@redhat.com>
374 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
375 DW_OP_GNU_convert ops.
377 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
378 cselib_preserve_constants.
379 (cselib_lookup_1): If cselib_preserve_constants,
380 a new VALUE is being created for REG and there is a VALUE for the
381 same register in wider mode, add another loc with lowpart SUBREG of
383 (cselib_subst_to_values): Handle ENTRY_VALUE.
384 * var-tracking.c (replace_expr_with_values): Return NULL for
386 * dwarf2out.c (convert_descriptor_to_signed): New function.
387 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
388 instead of two shifts.
389 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
390 the right mode if needed.
391 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
392 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
393 convert_descriptor_to_signed.
394 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
395 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
398 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
400 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
402 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
403 of X87MODEI12 and SWI48x instead of SSEMODEI24.
404 (SWI248x): New mode iterator, rename from X87MODEI.
405 (X87MODEI): Remove mode iterator.
409 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
411 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
412 * doc/invoke.texi: Document max-vartrack-expr-depth.
413 * var-tracking.c (EXPR_DEPTH): New.
414 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
416 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
418 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
419 * config/i386/sse.md: Add n to negated FMA pattern names.
421 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
423 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
425 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
427 * gengtype-state.c (read_state_params_structs): Initialize previous.
429 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
431 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
432 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
434 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
436 * config/i386/i386.md (*movtf_internal): Avoid allocating general
437 registers. Penalize F*r->o alternative to prevent partial memory
438 stalls. Slightly penalize *roF->*r alternative. Generate SSE
439 CONST_DOUBLE immediates when optimizing function for size. Do not move
440 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
441 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
442 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
443 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
445 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
447 (fp_register_operand splitters): Use fp_register_operand
448 constraint. Do not use FP_REG_P in insn condition.
449 (any_fp_register_operand splitters): Use any_fp_register_operand
450 constraint. Do not use ANY_FP_REG_P in insn condition.
452 2011-05-31 Jan Hubicka <jh@suse.cz>
454 * cgraph.h (cgraph_inline_failed_t): Give enum a name
455 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
456 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
457 (lto_output_edge): Use output_enum and var_len_unsigned.
458 (lto_output_varpool_node): Likewise.
459 (input_overwrite_node): Do not take resolution parameter;
460 extract it from a bitpack.
461 (input_node): Do not read resolution; use input_enum and
463 (input_varpool_node): Likewise.
464 (input_edge): Likewise.
465 (input_cgraph_1): Likewise.
467 2011-05-31 Richard Guenther <rguenther@suse.de>
469 * gimple.c (gimple_register_canonical_type): Do not register
470 any types via gimple_register_type.
472 2011-05-31 Jan Hubicka <jh@suse.cz>
474 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
477 2011-05-31 Jakub Jelinek <jakub@redhat.com>
479 PR rtl-optimization/49235
480 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
481 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
483 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
485 PR tree-optimization/49093
486 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
489 2011-05-31 Dodji Seketeli <dodji@redhat.com>
492 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
493 for concrete functions containing the code of cloned functions.
495 2011-05-31 Richard Guenther <rguenther@suse.de>
497 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
499 (forward_propagate_into_comparison_1): ... this.
500 (forward_propagate_comparison): Rename to ...
501 (forward_propagate_into_comparison): ... this. Split out
502 real forward propagation code to ...
503 (forward_propagate_comparison): ... this.
504 (forward_propagate_into_gimple_cond): Remove looping.
505 (forward_propagate_into_cond): Likewise.
506 (simplify_not_neg_expr): Return whether we have done something.
507 (simplify_gimple_switch): Likewise.
508 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
509 (ssa_forward_propagate_and_combine): ... this. Re-structure
510 to do a forward forward-propagation walk on BBs and a backward
511 stmt combining walk on BBs. Consistently re-scan changed statements.
512 (pass_forwprop): Adjust.
514 2011-05-30 Ian Lance Taylor <iant@google.com>
516 * godump.c (go_format_type): Correct length of name added to
517 obstack for anonymous field.
519 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
522 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
523 part of the second operand is 0.
525 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
527 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
528 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
529 to memory for !TARGET_MEMORY_MISMATCH_STALL.
530 (*movdf_internal_rex64): Do not penalize F->r alternative.
531 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
532 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
533 when optimizing function for size. Do not move CONST_DOUBLEs
534 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
535 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
536 SUBREGs. Do not check for MEM_P operands in the insn condition,
537 check for ANY_FP_REGNO_P instead.
538 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
539 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
541 * config/i386/i386.c (ix86_option_override_internal): Do not
542 set TARGET_INTEGER_DFMODE_MOVES here.
544 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
547 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
549 2011-05-30 Jakub Jelinek <jakub@redhat.com>
551 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
552 DW_TAG_rvalue_reference_type even for
553 -gdwarf-4 -fno-debug-types-section.
555 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
557 PR tree-optimization/46728
558 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
559 (build_and_insert_binop): New.
560 (gimple_expand_builtin_pow): Reorder args for
561 build_and_insert_call; use build_and_insert_binop; add more
562 optimizations for fractional exponents.
564 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
569 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
571 * tree.h (struct tree_identifier): Inherit from tree_typed, not
573 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
574 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
575 TS_BASE instead of TS_COMMON.
576 * varasm.c (assemble_name): Remove assert.
578 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
580 * config.gcc: Keep obselete list sorted.
582 2011-05-30 Jakub Jelinek <jakub@redhat.com>
583 Eric Botcazou <ebotcazou@adacore.com>
585 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
586 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
587 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
588 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
589 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
591 2011-05-30 Richard Guenther <rguenther@suse.de>
593 * gimple.c (gimple_types_compatible_p_1): Compare record
594 and union type members properly.
596 2011-05-30 Richard Guenther <rguenther@suse.de>
598 PR tree-optimization/49210
599 * ipa-split.c (split_function): Care for the case where the call
600 result is not trivially convertible to the result holding variable.
602 2011-05-30 Richard Guenther <rguenther@suse.de>
604 PR tree-optimization/49218
605 * tree-vrp.c (adjust_range_with_scev): Properly check whether
608 2011-05-30 Richard Guenther <rguenther@suse.de>
610 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
611 New function split out from ...
612 (forward_propagate_into_gimple_cond): ... here. Adjust.
613 (forward_propagate_into_cond): Likewise.
614 (forward_propagate_comparison): Also propagate into
615 comparisons on assignment RHS. Change return value to
616 behave similar to forward_propagate_into_cond.
617 (tree_ssa_forward_propagate_single_use_vars): Handle
618 strict-overflow warnings properly for forward_propagate_comparison.
620 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
622 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
624 * configure: Regenerate.
626 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
628 PR tree-optimization/49199
629 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
630 non-reduction operands are either defined in the loop or by induction.
632 2011-05-29 Xinliang David Li <davidxl@google.com>
634 * opts-global.c (handle_common_deferred_options): Handle new options.
635 * passes.c (register_one_dump_file): Call register_pass_name.
636 (execute_one_pass): Check explicit enable/disable flag.
637 (passr_hash): New function.
639 (register_pass_name): Ditto.
640 (get_pass_by_name): Ditto.
643 (enable_pass): Ditto.
644 (disable_pass): Ditto.
645 (is_pass_explicitly_enabled_or_disabled): Ditto.
647 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
649 * config/i386/i386.md (*movoi_internal_avx): Use
650 standard_sse_constant_opcode for alternative 0.
651 (*movti_internal_sse): Ditto.
652 (*movti_internal_rex64): Use standard_sse_constant_opcode for
654 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
656 (*movsi_internal): Ditto.
657 (*movdi_internal): Ditto. Add ssecvt type moves.
659 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
662 * rtlanal.c (simplify_subreg_regno): Adjust comment.
664 2011-05-29 Jakub Jelinek <jakub@redhat.com>
666 PR rtl-optimization/49095
667 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
668 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
670 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
673 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
674 recurse_p argument. Only follow register copies if it is set,
675 and prevent mips_find_pic_call_symbol from recursing.
676 (mips_find_pic_call_symbol): Add a recurse_p argument.
677 Pass it to mips_pic_call_symbol_from_set.
678 (mips_annotate_pic_calls): Update accordingly.
680 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
682 * emit-rtl.c (try_split): Use a loop to search for
683 NOTE_INSN_CALL_ARG_LOCATIONs.
685 2011-05-29 Richard Guenther <rguenther@suse.de>
687 PR tree-optimization/49217
688 * ipa-pure-const.c (propagate_pure_const): Fix typos.
690 2011-05-28 Jan Hubicka <jh@suse.cz>
692 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
694 (string_slot_free): Remove
695 (create_output_block): Initialize obstack.
696 (destroy_output_block): Free obstack.
697 (lto_string_index): Add PERSISTENT parameter; do not duplicate
698 the string unless it needs to be added into the hash.
699 (lto_output_string_with_length): Add persistent attribute;
701 (lto_output_string): Add PERSISTENT parameter.
702 (output_string_cst, output_identifier): Simplify.
703 (lto_output_location_bitpack): Update.
704 (lto_output_builtin_tree): Update.
705 * lto-streamer.h (struct output_block): Add obstack.
706 (lto_output_string, lto_output_string_with_length): Remove
707 declarations; functions are static now.
709 2011-05-28 Jan Hubicka <jh@suse.cz>
711 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
712 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
713 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
714 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
715 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
716 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
717 unpack_ts_decl_with_vis_value_fields,
718 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
719 lto_get_builtin_tree): Use enum and variable length i/o.
720 * basic-block.h (profile_status_d): Add PROFILE_LAST.
721 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
723 (bp_pack_enum, bp_unpack_enum): New macros.
725 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
727 * genrecog.c: Remove redundant forward declarations.
729 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
731 * config.gcc: Deprecate mips*-*-openbsd*.
733 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
736 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
739 2011-05-27 Andrew Pinski <pinskia@gmail.com>
742 * gengtype.c (vec_prefix_type): New function.
743 (note_def_vec): Use vec_prefix_type and change the length
744 attribute to be based on the prefix.
745 * vec.c: Include coretypes.h before vec.h.
746 (struct vec_prefix): Remove.
747 (vec_gc_p_reserve): Change the offsetof to sizeof.
748 (vec_gc_p_reserve_exact): Likewise.
749 (vec_heap_p_reserve): Likewise.
750 (vec_heap_p_reserve_exact): Likewise.
751 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
752 (vec_stack_p_reserve): Change the offsetof to sizeof.
753 (vec_stack_p_reserve_exact): Likewise.
754 * vec.h (struct vec_prefix): New struct definition.
755 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
756 (VEC_T_GTY(T,B)): Likewise.
757 (DEF_VEC_FUNC_P(T)): Use prefix field.
758 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
759 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
761 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
763 PR tree-optimization/46728
764 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
765 (powi_as_mults): Add gimple_set_location.
766 (build_and_insert_call): New.
767 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
768 0.5, 0.25, 0.75, 1./3., or 1./6.
770 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
772 * doc/contrib.texi: Update copyright years.
773 (Contributors): Add Zdenek Sojka.
775 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
777 * c-decl.c (c_push_function_context): Copy the current statement
779 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
780 (finish_struct): Call building_stmt_list_p instead of checking
782 * c-parser.c (c_parser_postfix_expression): Likewise.
783 * c-typeck.c (c_end_compound_stmt): Likewise.
784 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
785 * tree-iterator.c (stmt_list_cache): Change to a VEC.
786 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
787 (free_stmt_list): Likewise.
788 * tree.h (struct tree_statement_list): Include typed_tree instead
790 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
791 as TS_TYPED instead of TS_COMMON.
793 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
794 Uros Bizjak <ubizjak@gmail.com>
796 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
797 (HAVE_AS_IX86_TLSGDPTL): Define.
798 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
799 (HAVE_AS_IX86_TLSLDMPLT): Define.
800 * configure: Regenerate.
801 * config.in: Regenerate.
802 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
803 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
804 TARGET_SUN_TLS, use @tlsgdplt or @plt.
805 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
806 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
808 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
810 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
812 * sched-int.h (struct _haifa_deps_insn_data): New members cond
814 (INSN_COND, INSN_REVERSE_COND): New macros.
815 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
817 (sched_get_condition_with_rev): Cache the results, and look them up
819 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
820 are clobbered by the current insn.
821 * target.def (exposed_pipline): New sched data hook.
822 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
823 * doc/tm.texi: Regenerate.
825 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
827 PR tree-optimization/49170
828 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
831 2011-05-27 Richard Guenther <rguenther@suse.de>
834 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
837 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
839 * haifa-sched.c (sched_scan_info): Remove.
840 (schedule_block): Call sched_extend_luids rather than sched_init_luids
842 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
844 (sched_scan): Remove.
845 (sched_extend_luids): Renamed from luids_extend_insn and no longer
846 static. All callers changed.
847 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
848 static. All callers changed.
849 (sched_init_luids): Remove all arguments except the first. All
850 callers changed. Don't use sched_scan.
851 (haifa_init_h_i_d): Likewise.
852 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
853 manually rather than using sched_init_luids. Likewise with
854 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
855 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
856 rather than sched_init_luids with NULL args.
857 * sel-sched-ir.c (new_insns): Remove variable.
858 (sched_scan): New static function, previously in haifa-sched.c. Remove
859 all arguments but the first two; all callers changed.
860 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
861 rather than sched_init_luids.
862 (sel_init_bbs): Remove second argument. All callers changed.
863 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
865 (create_insn_rtx_from_pattern): Likewise.
866 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
867 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
868 (sched_init_insn_luid, sched_extend_luids): Declare.
869 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
872 2011-05-27 Richard Guenther <rguenther@suse.de>
875 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
876 A CMP B ? (T) true : (T) false for non-integral types T again.
878 2011-05-27 Jan Hubicka <jh@suse.cz>
880 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
881 so 0 means NULL string.
882 (lto_output_string_with_length): ... here.
883 (lto_output_string, output_string_cst, output_identifier): Update
884 handling of NULL strings.
885 (lto_output_location_bitpack): New function.
886 (lto_output_location): Use it.
887 (lto_output_tree_ref): Use output_record_start.
888 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
890 * lto-streamer-in.c (string_for_index): Break out from ...; offset
892 (input_string_internal): ... here;
893 (input_string_cst, input_identifier, lto_input_string): Update handling
895 (lto_input_location_bitpack): New function
896 (lto_input_location): Use it.
897 (unpack_ts_type_common_value_fields): Pack align & alias in var len
899 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
900 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
901 (bp_pack_value): Sanity check the value range.
902 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
904 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
907 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
909 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
910 call_arg_location instructions down the floor.
912 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
914 PR rtl-optimization/49154
915 * ira.c (setup_pressure_classes): Process class without sublcasses
916 as a candidate for pressure classes.
918 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
920 PR rtl-optimization/48575
921 * genrecog.c (position_type): New enum.
922 (position): New structure.
923 (decision): Use position structure instead of a string.
924 (root_pos, peep2_insn_pos_list): New variables.
925 (next_position, compare_positions): New functions.
926 (new_decision): Use position structures instead of strings.
927 (maybe_both_true): Likewise.
928 (change_state): Likewise.
929 (write_tree): Likewise.
930 (make_insn_sequence): Likewise.
932 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
934 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
935 TS_BASE instead of TS_COMMON.
936 (find_decls_types_r): Check for TS_TYPED structure before looking at
938 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
940 (BLOCK_CHAIN): Use new chain field.
942 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
944 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
945 moves expensive on Power7 also.
947 2011-05-26 Richard Guenther <rguenther@suse.de>
949 * fold-const.c (fold_unary_loc): Remove bogus code.
951 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
953 * tree.h (struct tree_identifier): Inherit from tree_typed, not
955 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
956 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
957 TS_BASE instead of TS_COMMON.
958 * varasm.c (assemble_name): Remove assert.
960 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
962 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
964 * libgcc-std.ver: Delete file.
966 2011-05-26 Richard Guenther <rguenther@suse.de>
968 PR tree-optimization/48702
969 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
970 only when we know the base address is within bounds.
971 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
972 assume the base address of TARGET_MEM_REFs is in bounds.
974 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
977 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
978 declaration in TARGET_SOLARIS.
980 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
982 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
983 The instruction is then expanded explicitly.
984 (supported_compare): Callable instruction.
987 2011-05-26 Jakub Jelinek <jakub@redhat.com>
990 * gimplify.c (shortcut_cond_r): Don't special case
991 COND_EXPRs if they have void type on one of their arms.
993 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
995 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
996 to reduce duplication, and to achieve a slightly more logical order
999 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1001 PR tree-optimization/49161
1002 * tree-vrp.c (struct case_info): New type.
1003 (compare_case_labels): Sort case_info structs instead of
1004 trees, and not primarily by CASE_LABEL uids but by
1005 label_for_block indexes.
1006 (find_switch_asserts): Put case labels into struct case_info
1007 array instead of TREE_VEC, adjust sorting, compare label_for_block
1008 values instead of CASE_LABELs.
1010 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1012 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1013 ("orndi3_neon"): Likewise.
1014 ("bic<mode>3_neon"): Likewise.
1016 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1018 PR tree-optimization/49038
1019 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1020 Ensure at least one epilogue iteration if required by data
1022 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1023 to mark loops that require peeling for gaps.
1024 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1025 (vect_get_known_peeling_cost): Take peeling for gaps into
1027 (vect_transform_loop): Generate epilogue if required by data
1029 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1030 loop as requiring an epilogue if there are gaps in the end of
1033 2011-05-25 Ian Lance Taylor <iant@google.com>
1035 * godump.c (go_format_type): Output the first field with a usable
1038 2011-05-25 Ian Lance Taylor <iant@google.com>
1040 * godump.c (go_format_type): Check for invalid type names, pointer
1041 target types, and struct field types.
1043 2011-05-25 Jason Merrill <jason@redhat.com>
1045 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1047 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1049 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1051 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1053 * config/i386/i386.md (*movqi_extv_1)): Put back
1054 "register_operand" check in "type" calculation.
1055 (*movqi_extzv_2): Likewise.
1057 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1059 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1061 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1064 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1065 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1066 __divxc3, __divtc3): Wrap definitions in #ifndef.
1068 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1071 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1072 "register_operand" check and replace q_regs_operand with
1073 QIreg_operand in "type" calculation.
1074 (*movqi_extv_1): Likewise.
1075 (*movqi_extzv_2_rex64): Likewise.
1076 (*movqi_extzv_2): Likewise.
1078 * config/i386/predicates.md (QIreg_operand): New.
1080 2011-05-25 Richard Guenther <rguenther@suse.de>
1082 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1083 type-based offset disambiguation, streamline MEM_REF and
1084 TARGET_MEM_REF handling.
1086 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1088 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1089 (bdesc_special_args): Add pause intrinsic.
1091 * config/i386/i386.md (UNSPEC_PAUSE): New.
1094 * config/i386/ia32intrin.h (__pause): Likewise.
1096 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1099 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1101 PR tree-optimization/46728
1102 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1103 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1105 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1107 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1108 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1109 instead of TS_COMMON.
1111 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1113 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1114 LIBGCC2_GNU_PREFIX is defined.
1116 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1117 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1118 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1119 __clz_tab): Define using __N.
1120 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1121 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1122 * target.def (libfunc_gnu_prefix): New hook.
1123 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1124 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1125 * doc/tm.texi: Regenerate.
1126 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1127 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1129 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1130 (init_optabs): Likewise for the bswap libfuncs.
1131 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1133 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1134 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1135 * libgcc-std.ver: Remove.
1136 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1137 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1139 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1140 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1141 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1142 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1143 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1144 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1145 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1146 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1147 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1148 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1150 2011-05-25 Jan Hubicka <jh@suse.cz>
1152 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1153 (lto_output_tree): Use output_record_start.
1154 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1155 (lto_get_pickled_tree): Use input_record_start.
1156 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1157 (lto_value_range_error): New function.
1158 * lto-streamer.h (lto_value_range_error): Declare.
1159 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1160 (lto_output_enum, lto_input_enum): New macros.
1162 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1164 * common.opt (flag_stack_usage_info): New variable.
1165 (-Wstack-usage): New option.
1166 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1167 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1168 <OPT_fstack_usage>: Likewise.
1169 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1170 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1171 of flag_stack_usage.
1172 (emit_library_call_value_1): Likewise.
1173 * explow.c (allocate_dynamic_stack_space): Likewise.
1174 * function.c (instantiate_virtual_regs ): Likewise.
1175 (prepare_function_start): Likewise.
1176 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1177 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1178 * config/arm/arm.c (arm_expand_prologue): Likewise.
1179 (thumb1_expand_prologue): Likewise.
1180 * config/avr/avr.c (expand_prologue): Likewise.
1181 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1182 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1183 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1184 * config/mips/mips.c (mips_expand_prologue): Likewise.
1185 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1186 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1187 * config/s390/s390.c (s390_emit_prologue): Likewise.
1188 * config/sh/sh.c (sh_expand_prologue): Likewise.
1189 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1190 * config/spu/spu.c (spu_expand_prologue): Likewise.
1192 2011-05-25 Richard Guenther <rguenther@suse.de>
1194 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1195 (gimple_canonical_types_compatible_p): Likewise.
1197 2011-05-25 Jan Hubicka <jh@suse.cz>
1200 * ipa.c (function_and_variable_visibility): Only add to same
1201 comdat group list if DECL_ONE_ONLY.
1203 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1205 PR rtl-optimization/49014
1206 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1208 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1211 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1213 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1215 PR rtl-optimization/48757
1216 * ira-build.c (loop_with_eh_edge_p): Rename to
1217 loop_with_complex_edge_p, check edges on complexity, make function
1219 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1222 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1224 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1225 force flag_ira_share_save_slots to 0.
1227 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1229 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1230 (vt_initialize): Set PROLOGUE_BB unconditionally.
1231 Add block comment about CFA_BASE_RTX machinery.
1232 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1233 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1235 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1238 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1239 parsing of syntax error in ObjC instance variable lists. In
1240 particular, avoid an infinite loop if there is a stray ']'.
1241 Updated error message.
1243 2011-05-24 Ian Lance Taylor <iant@google.com>
1245 * godump.c (go_define): Don't accept a string immediately after
1248 2011-05-24 Ian Lance Taylor <iant@google.com>
1250 * godump.c (struct godump_container): Add invalid_hash field.
1251 (go_format_type): Return false if type is found in invalid_hash.
1252 (go_output_typedef): Add invalid type to invalid_hash.
1253 (go_finish): Create and delete invalid_hash.
1255 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1257 PR tree-optimization/46728
1258 * tree-ssa-math-opts.c (powi_table): New.
1259 (powi_lookup_cost): New.
1261 (powi_as_mults_1): New.
1262 (powi_as_mults): New.
1263 (gimple_expand_builtin_powi): New.
1264 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1265 (gate_cse_sincos): Remove sincos/cexp restriction.
1267 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1270 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1272 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1273 * mips-tdump.c: Likewise.
1275 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1278 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1279 add -mno-XXX. Handle FMA.
1281 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1283 PR rtl-optimization/48633
1284 * ira-build.c (loop_with_eh_edge_p): New function.
1285 (mark_loops_for_removal): Use it.
1287 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1289 PR rtl-optimization/48971
1290 * ira.c (setup_pressure_classes): Don't check register move cost
1291 for classes with one registers. Don't add pressure class if there
1292 is a pressure class with the same available hard registers.
1293 Check contains_reg_of_mode. Fix a typo in collecting
1294 temp_hard_regset. Ignore hard registers not belonging to a class.
1296 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1299 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1301 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1302 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1304 PR gcov-profile/48845
1305 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1307 2011-05-24 Richard Guenther <rguenther@suse.de>
1309 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1310 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1311 (gimple_types_compatible_p_1): Adjust.
1312 (iterative_hash_canonical_type): Do not bother about complete vs.
1314 (gimple_canonical_types_compatible_p): Likewise.
1316 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1318 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1320 2011-05-24 Richard Guenther <rguenther@suse.de>
1323 * gimple.c (gimple_register_canonical_type): Revert
1325 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1326 does not for a tree for the case where it matters. Cache
1327 pointer-type alias-sets.
1329 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1331 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1332 (OBJS): Remove options.o, opts-common.o and prefix.o.
1333 (OBJS-libcommon-target): New.
1334 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1335 (BACKEND): Include libcommon-target.a.
1336 (MOSTLYCLEANFILES): Include libcommon-target.a.
1337 (libcommon-target.a): New.
1338 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1341 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1343 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1344 parts of output shared with the driver.
1345 * optc-gen.awk: Don't generate parts of output not shared with the
1347 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1348 * doc/options.texi (SourcerInclude): Mention options-save.c.
1349 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1350 (OBJS): Add options-save.o.
1351 (options-save.c, options-save.o): New.
1352 (options.o): Update dependencies.
1353 (gcc-options.o): Remove.
1354 (mostlyclean): Remove options-save.c.
1356 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1359 * dbxout.c: Include cgraph.h.
1360 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1361 and without value expr, return NULL if no varpool node exists for
1362 it or if it is not needed.
1363 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1366 * c-decl.c (start_decl): Convert expr to void_type_node.
1368 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1370 PR rtl-optimization/48826
1371 * emit-rtl.c (try_split): When splitting a call that is followed
1372 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1374 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1376 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1377 parameters passed in memory prefer using DECL_INCOMING_RTL over
1378 the pseudos it will be copied into.
1380 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1383 * config/i386/i386.c (ix86_option_override_internal): Save the
1384 initial options after checking vzeroupper.
1386 2011-05-23 David Li <davidxl@google.com>
1388 PR tree-optimization/48988
1389 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1390 Initialize has_valid_pred for each pred chain.
1392 2011-05-23 Richard Guenther <rguenther@suse.de>
1394 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1395 (iterative_hash_gimple_type): Always hash type names.
1397 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1399 * c-typeck.c (build_function_call_vec): Tweak call to
1400 check_function_arguments.
1402 2011-05-23 Richard Guenther <rguenther@suse.de>
1404 PR tree-optimization/49115
1405 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1406 is not necessarily carried out, do not claim it kills the ref.
1407 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1409 2011-05-23 Richard Guenther <rguenther@suse.de>
1412 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1413 what pointer types we accept for folding.
1415 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1417 * gthr-gnat.c: Remove.
1418 * gthr-gnat.h: Remove.
1419 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1420 * config/t-freebsd (LIB2ADDEH): Likewise.
1421 * config/t-linux (LIB2ADDEH): Likewise.
1422 * config/t-sol2 (LIB2ADDEH): Likewise.
1423 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1424 * configure.ac (target_thread_file): Remove gnat handling.
1425 * configure: Regenerate.
1426 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1428 2011-05-23 Tristan Gingold <gingold@adacore.com>
1429 Eric Botcazou <ebotcazou@adacore.com>
1431 * gcov.c (create_file_names): If no object directory is specified,
1432 keep the directory of the file.
1434 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1436 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1437 * configure: Regenerate.
1439 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1442 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1443 failed and the comparison has a single bit signed type, use
1444 constm1_rtx instead of const1_rtx for true value.
1445 (do_store_flag): If ops->type is single bit signed type, disable
1446 signel bit test optimization and pass -1 instead of 1 as last
1447 parameter to emit_store_flag_force.
1449 2011-05-23 Tom de Vries <tom@codesourcery.com>
1452 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1454 (infer_loop_bounds_from_undefined): Use new function.
1456 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1458 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1459 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1460 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1462 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1464 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1466 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1467 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1470 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1472 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1474 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1476 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1477 UNSPEC_MOVE_PIC pattern.
1479 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1481 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1482 (sparc-*-rtems*): Likewise.
1483 (sparc64-*-elf*): Likewise.
1484 (sparc64-*-rtems*): Likewise.
1485 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1486 * config/sparc/t-crtin: New file.
1487 * config/sparc/t-sol2 (crti.o): Delete rule.
1489 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1490 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1491 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1492 (ENDFILE_SPEC): Add crtn.o.
1494 2011-05-22 Tom de Vries <tom@codesourcery.com>
1497 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1498 CODE_CONTAINS_STRUCT (TS_COMMON).
1500 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1503 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1504 only after deciding which mode to use.
1506 2011-05-22 Tom de Vries <tom@codesourcery.com>
1509 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1510 for call to get_shiftadd_cost.
1512 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1515 * config/i386/cpuid.h (bit_MMXEXT): New define.
1517 2011-05-22 Nick Clifton <nickc@redhat.com>
1519 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1520 initialisation of non-existant args[2] element. Use args[] array
1521 not arg[] array to pass arguments to build_function_type_list.
1523 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1525 PR tree-optimization/49087
1526 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1528 2011-05-21 Jason Merrill <jason@redhat.com>
1531 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1532 static storage duration.
1534 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1536 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1539 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1541 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1542 false if there are call-saved registers here...
1543 (sparc_can_use_return_insn_p): ...but here instead.
1544 (save_or_restore_regs): Fix thinko.
1545 (sparc_expand_prologue): Use current_function_is_leaf.
1546 (sparc_frame_pointer_required): Likewise.
1548 2011-05-21 Nick Clifton <nickc@redhat.com>
1551 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1553 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1555 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1556 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1558 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1560 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1561 * optc-gen.awk: Move common code to opt-read.awk.
1562 * opth-gen.awk: Likewise.
1563 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1565 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1567 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1569 2011-05-20 Tom de Vries <tom@codesourcery.com>
1572 * tree-ssa-loop-ivopts.c: Include expmed.h.
1573 (get_shiftadd_cost): New function.
1574 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1576 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1579 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1580 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1582 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1584 * Makefile.in: Update comment referring to $(OBJS-common).
1586 2011-05-20 Ian Lance Taylor <iant@google.com>
1588 * godump.c (go_output_typedef): Put enum constants in the macro
1589 hash table to avoid duplicate Go const definitions.
1591 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1593 * Makefile.in (LIBDEPS): Add libcommon.a.
1595 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1596 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1597 pretty-print.o and version.o.
1598 (OBJS-libcommon): New.
1599 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1600 (BACKEND): Add libcommon.a.
1601 (MOSTLYCLEANFILES): Likewise.
1603 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1604 (cpp$(exeext)): Likewise.
1605 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1606 pretty-print.o and input.o.
1607 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1608 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1610 (mips-tfile): Don't explicitly use version.o.
1611 (mips-tdump): Likewise.
1612 (gcov.o): Depend on $(DIAGNOSTIC_H).
1613 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1614 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1615 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1616 * gcov-dump.c: Include intl.h and diagnostic.h.
1617 (main): Initialize diagnostics.
1618 * gcov.c: Include diagnostic.h.
1620 (main): Initialize diagnostics.
1621 * lto-wrapper.c: Include diagnostic.h.
1622 (main): Initialize diagnostics.
1624 2011-05-20 Michael Matz <matz@suse.de>
1626 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1628 2011-05-20 Michael Matz <matz@suse.de>
1629 Richard Guenther <rguenther@suse.de>
1631 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1632 use lto_streamer_cache_append directly instead of returning a VEC.
1633 (preload_common_node): Remove.
1634 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1636 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1638 2011-05-20 Richard Guenther <rguenther@suse.de>
1640 PR tree-optimization/49079
1641 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1642 MEM_REFs correctly for the trailing array access detection.
1643 Special case constants the same way as decls for overall size
1646 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1648 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1651 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1653 PR tree-optimization/49073
1654 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1655 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1656 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1658 2011-05-20 Richard Guenther <rguenther@suse.de>
1661 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1662 of pointer types the same way the middle-end does.
1664 2011-05-20 Richard Guenther <rguenther@suse.de>
1666 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1667 or pointer-to chains. Delay all fixup to uniquify_nodes.
1669 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1671 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1672 (fma4_fmaddsub): Likewise
1674 2011-05-19 Jan Hubicka <jh@suse.cz>
1676 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1677 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1678 (type_pair_cache): New static var.
1679 (lookup_type_pair): Use fixed sized custom hash; make inline.
1680 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1681 calls of lookup_type_pair.
1682 (print_gimple_types_stats): Remove cache stats.
1683 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1686 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1688 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1689 when TARGET_RDRND is active.
1690 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1691 Generate dummy SImode target register when target is NULL.
1693 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1695 * config/arm/arm-fpus.def: New.
1696 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1698 * config/arm/arm-tables.opt: Regenerate.
1699 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1700 (arm_option_override): Don't decode FPU name to string here.
1701 * config/arm/arm.opt (mfpu=): Use Enum.
1702 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1703 Update dependencies.
1705 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1707 * collect2.c: Include diagnostic.h.
1708 (fatal_perror, fatal, error, fancy_abort): Remove.
1709 (main): Set progname. Call xmalloc_set_program_name and
1710 diagnostic_initialize.
1711 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1712 scan_libraries, resolve_lib_name): Call fatal_error instead of
1713 fatal and fatal_perror.
1714 * collect2.h (error, fatal, fatal_perror): Don't declare.
1715 * tlink.c: Include diagnostic-core.h.
1716 (recompile_files): Call fatal_error instead of fatal_perror.
1717 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1718 pretty-print.o and input.o.
1719 (collect2.o, tlink.o): Update dependencies.
1721 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1723 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1725 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1728 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1729 COMDAT group syntax, both SPARC and x86 variants.
1730 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1731 * configure: Regenerate.
1732 * config/sol2.h (TARGET_SOLARIS): Define.
1733 (PUSHSECTION_FORMAT): Remove.
1734 (SECTION_NAME_FORMAT): Define.
1735 * config/sol2.c: Include hashtab.h.
1736 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1737 expansion, using SECTION_NAME_FORMAT.
1738 (solaris_comdat_htab): New variable.
1739 (struct comdat_entry): Define.
1740 (comdat_hash): New function.
1741 (comdat_eq): New function.
1742 (solaris_elf_asm_comdat_section): New function.
1743 (solaris_define_comdat_signature): New function.
1744 (solaris_code_end): New function.
1745 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1746 (solaris_code_end): Declare.
1747 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1748 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1750 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1751 Remove ATTRIBUTE_UNUSED.
1752 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1753 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1754 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1755 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1756 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1757 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1758 (PUSHSECTION_FORMAT): Remove.
1759 (SECTION_NAME_FORMAT): Redefine.
1761 2011-05-19 Kai Tietz <ktietz@redhat.com>
1763 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1764 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1765 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1767 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1768 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1770 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1772 2011-05-19 Richard Guenther <rguenther@suse.de>
1775 * tree-object-size.c (addr_object_size): If the pointed-to
1776 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1778 2011-05-19 Richard Guenther <rguenther@suse.de>
1780 * gimple.c (gimple_types_compatible_p_1): Compare names of
1781 the types themselves.
1782 (iterative_hash_gimple_type): And hash them that way.
1783 (gimple_register_type_1): If we register a main variant properly
1784 initialize the leader to ourselves.
1786 2011-05-19 Tom de Vries <tom@codesourcery.com>
1789 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1790 get_loop_invariant_expr_id.
1791 (get_loop_invariant_expr_id): Use get_expr_id.
1792 (parm_decl_cost): New function.
1793 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1794 Improve bound cost estimation. Use different inv_expr_id for elim and
1797 2011-05-19 Tom de Vries <tom@codesourcery.com>
1800 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1801 cost_base.cost == 0.
1803 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1806 * config/i386/sse.md
1807 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1810 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1812 PR tree-optimization/49039
1813 * tree-vrp.c (extract_range_from_binary_expr): For
1814 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1815 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1817 2011-05-18 Tom de Vries <tom@codesourcery.com>
1820 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1822 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1824 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1825 (*tls_global_dynamic_64): Ditto.
1826 (*tls_local_dynamic_base_32_gnu): Ditto.
1827 (*tls_local_dynamic_base_64): Ditto.
1828 (tls_initial_exec_64_sun): Ditto.
1830 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1832 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1833 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1835 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1836 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1837 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1838 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1839 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1840 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1841 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1843 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1845 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1846 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1847 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1848 target_thread_pointer, arm_structure_size_boundary, struct
1849 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1850 struct abi_name, arm_all_abis): Remove.
1851 (arm_option_override) Don't process most enumerated option values here.
1852 Don't process target_fpe_name here. Work with integer not string for
1853 structure size boundary; use separate diagnostics for each case.
1854 * config/arm/arm.h (enum float_abi_type, enum
1855 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1857 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1858 arm_structure_size_boundary): Remove.
1859 * config/arm/arm.opt (mabi=): Use Enum and Init.
1860 (arm_abi_type): New Enum and EnumValue entries.
1861 (mfloat-abi=): Use Enum and Init.
1862 (float_abi_type): New Enum and EnumValue entries.
1863 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1864 (mfp16-format=): Use Enum and Init.
1865 (arm_fp16_format_type): New Enum and EnumValue entries.
1866 (mstructure-size-boundary=): Use UInteger and Init.
1867 (mtp=): Use Enum and Init.
1868 (arm_tp_type): New Enum and EnumValue entries.
1870 2011-05-18 Richard Guenther <rguenther@suse.de>
1872 PR tree-optimization/49018
1873 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1874 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1875 gimple_has_side_effects.
1877 2011-05-18 Richard Guenther <rguenther@suse.de>
1879 * gimple.c (gimple_register_type_1): New function, split out from ...
1880 (gimple_register_type): ... here. Avoid infinite recursion.
1882 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1884 PR tree-optimization/41881
1885 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1886 reduction_chains along with a macro for its access.
1887 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1888 (destroy_loop_vec_info): Free reduction chains.
1889 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1890 (vect_is_slp_reduction): New function.
1891 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1892 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1893 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1894 definition types for reduction chains.
1895 (vect_supported_load_permutation_p): Don't allow permutations for
1897 (vect_analyze_slp_instance): Support reduction chains.
1898 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1899 (vect_get_constant_vectors): Handle reduction chains.
1900 (vect_schedule_slp_instance): Mark the first statement of the
1901 reduction chain as reduction.
1903 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1905 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1906 names for group elements access.
1907 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1908 reduction chains as well. Remove data reference and interleaving
1909 related words from the fields names.
1910 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1912 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1913 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1914 vect_update_interleaving_chain, vect_same_range_drs,
1915 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1916 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1917 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1918 vect_analyze_group_access, vect_analyze_data_ref_access,
1919 vect_create_data_ref_ptr, vect_transform_strided_load,
1920 vect_record_strided_load_vectors): Likewise.
1921 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1922 vect_model_load_cost, vectorizable_store, vectorizable_load,
1923 vect_remove_stores, new_stmt_vec_info): Likewise.
1924 * tree-vect-slp.c (vect_build_slp_tree,
1925 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1927 2011-05-18 Richard Guenther <rguenther@suse.de>
1930 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1931 operand verification.
1932 (verify_gimple_assign_binary): Likewise.
1933 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1934 to non-1-precision BOOLEAN_TYPEs.
1936 2011-05-18 Tom de Vries <tom@codesourcery.com>
1939 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1941 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1943 PR tree-optimization/49000
1944 * tree-ssa.c (execute_update_addresses_taken): Call
1945 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1946 be rewritten and decl has been marked for renaming, reset
1949 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1951 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1952 enum_opts_set when testing if attributes have set -mfpmath=.
1954 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1956 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1958 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1960 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1962 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1963 id.transform_lang_insert_block with NULL.
1965 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1967 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1968 (output_fp_compare): Change args 3 and 4 to bool.
1969 (ix86_expand_call): Change arg 6 to bool.
1970 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1971 (ix86_attr_length_vex_default): Change arg 3 to bool.
1972 * config/i386/i386.md: Update all uses.
1973 * config/i386/i386.c: Ditto.
1974 (ix86_flags_dependent): Change return type to bool.
1976 2011-05-17 Richard Guenther <rguenther@suse.de>
1978 * gimple.c (type_hash_pair_compare): Fix comparison.
1980 2011-05-17 Richard Guenther <rguenther@suse.de>
1982 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1983 case some more, fix final hash value of the non-singleton case.
1985 2011-05-17 Richard Guenther <rguenther@suse.de>
1989 2011-05-16 Richard Guenther <rguenther@suse.de>
1991 * gimple.c (gimple_types_compatible_p_1): Use names of the
1992 type itself, not its main variant.
1993 (iterative_hash_gimple_type): Likewise.
1995 2011-05-17 Richard Guenther <rguenther@suse.de>
1997 * gimple.c (gimple_register_canonical_type): Use the main-variant
1998 leader for computing the canonical type.
2000 2011-05-17 Nick Clifton <nickc@redhat.com>
2002 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2005 * config/rx/rx.md: Add peephole to remove redundant extensions
2007 (bitset_in_memory): Use rx_restricted_mem_operand.
2008 (bitinvert_in_memory): Likewise.
2009 (bitclr_in_memory): Likewise.
2011 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2012 Nick Clifton <nickc@redhat.com>
2014 * config/rx/rx.md: Add peepholes to match a register move followed
2015 by a comparison of the moved register. Replace these with an
2016 addition of zero that does both actions in one instruction.
2018 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2021 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2022 predicate to allow CONST_INT.
2023 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2025 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2027 * opts-common.c (opt_enum_arg_to_value): New.
2028 * opts.h (opt_enum_arg_to_value): Declare.
2029 * config/i386/i386.opt (fpmath): Remove.
2030 (mfpmath=): Use Enum, Init and Save.
2031 (fpmath_unit): New Enum and EnumValue entries.
2032 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2033 name for function fpmath state.
2034 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2035 * config/i386/i386.c: Include diagnostic.h.
2036 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2037 (ix86_target_string): Take enum fpmath_unit value instead of string.
2038 (ix86_debug_options): Update call to ix86_target_string.
2039 (ix86_option_override_internal): Don't process fpmath strings here.
2040 (x86_function_specific_save, ix86_function_specific_restore):
2041 Don't handle fpmath state specially.
2042 (ix86_function_specific_print): Pass fpmath state to
2043 ix86_target_string instead of printing in this function.
2044 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2045 Handle enum attributes.
2046 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2047 (ix86_valid_target_attribute_tree): Update option_strings
2048 handling. Handle fpmath as enum option.
2049 (ix86_can_inline_p): Update field names for function fpmath state.
2050 (ix86_expand_builtin): Update call to ix86_target_string.
2051 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2052 (ix86_fpmath): Remove.
2053 * config/i386/t-i386 (i386.o): Update dependencies.
2055 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2057 PR preprocessor/48677
2058 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2059 from decoded_options[0], not from itself.
2061 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2063 * config/i386/constraints.md (z): New constraint.
2064 * config/i386/i386.c (c): New mode attribute.
2065 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2066 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2067 constraint for operand 0.
2068 (*call_vzeroupper): Ditto.
2069 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2070 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2071 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2072 Use "lzm" constraint for operand 0.
2073 (*call_pop_vzeroupper): Ditto.
2074 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2075 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2076 constraint for operand 0.
2077 (*sibcall_vzeroupper): Ditto.
2078 (*sibcall_rex64_ms_sysv): Ditto.
2079 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2080 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2081 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2082 (*sibcall_pop_vzeroupper): Ditto.
2083 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2084 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2085 mode iterator. Use "<c>zm" constraint for operand 1.
2086 (*call_value_vzeroupper): Ditto.
2087 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2089 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2090 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2091 *call_value_pop_1. Use "lzm" constraint for operand 1.
2092 (*call_value_pop_vzeroupper): Ditto.
2093 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2094 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2095 mode iterator. Use "Uz" constraint for operand 1.
2096 (*sibcall_value_vzeroupper): Ditto.
2097 (*sibcall_value_rex64_ms_sysv): Ditto.
2098 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2099 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2100 constraint for operand 1.
2101 (*sibcall_value_pop_vzeroupper): Ditto.
2102 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2103 and "z" constraint for operand 2.
2104 (*tls_global_dynamic_32_gnu): Ditto.
2105 (*tls_local_dynamic_base_32_gnu): Ditto.
2106 (*tls_local_dynamic_base_64): Ditto.
2107 (*tls_local_dynamic_32_once): Ditto.
2108 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2110 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2112 2011-05-16 Richard Guenther <rguenther@suse.de>
2114 * gimple.c (gimple_types_compatible_p_1): Use names of the
2115 type itself, not its main variant.
2116 (iterative_hash_gimple_type): Likewise.
2118 2011-05-16 Richard Guenther <rguenther@suse.de>
2120 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2121 always visit pointer target and function result and argument types.
2123 2011-05-16 Jason Merrill <jason@redhat.com>
2126 * tree-inline.c (copy_statement_list): Put back recursion.
2128 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2132 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2133 * config/avr/avr.md ("*ior<mode>qi.byte0",
2134 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2136 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2139 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2140 register is needed for a function argument.
2142 2011-05-16 Richard Guenther <rguenther@suse.de>
2144 * gimple.c (struct type_hash_pair): New type.
2145 (type_hash_pair_compare): New function.
2146 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2148 2011-05-16 Revital Eres <revital.eres@linaro.org>
2150 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2152 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2154 * config/i386/i386.md (floating point move splitters): Fix
2155 usage of standard_80387_constant_p.
2156 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2158 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2160 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2162 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2164 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2165 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2166 (tree_ssa_lim_finalize): Likewise.
2168 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2170 * config/i386/constraint.md (Yd, Yx): New register constraints.
2171 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2172 Yd conditional register constraint.
2173 (*movtf_internal): Use standard_sse_constant_opcode.
2174 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2175 Yx conditional register constraint.
2176 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2177 Yd conditional register constraint. Use standard_sse_constant_p to
2178 check for valid SSE constants and call standard_sse_constant_opcode to
2180 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2181 constants and call standard_sse_constant_opcode to output SSE insn.
2182 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2183 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2184 optimize_size is set.
2185 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2187 2011-05-14 Tobias Burnus <burnus@net-b.de>
2189 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2191 2011-05-13 Martin Jambor <mjambor@suse.cz>
2193 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2194 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2195 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2196 (evaluate_conditions_for_ipcp_clone): Removed.
2197 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2198 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2199 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2201 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2203 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2204 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2205 lieu of MAY_HAVE_DEBUG_STMTS.
2206 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2207 debug statements if !MAY_HAVE_DEBUG_STMTS.
2209 2011-05-13 Martin Thuresson <martint@google.com>
2211 PR gcov-profile/47793
2212 * libgcov.c (gcov_exit): Support relative profile paths.
2213 * doc/invoke.texi (-fprofile-dir): Update for above change.
2215 2011-05-13 Richard Guenther <rguenther@suse.de>
2217 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2218 type-pair caching, do not compare hashes.
2220 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2223 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2224 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2226 2011-05-13 Kai Tietz <ktietz@redhat.com>
2228 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2229 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2230 compatible type for TRUTH_NOT_EXPR.
2232 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2234 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2235 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2236 can_create_pseudo_p ().
2238 2011-05-13 Richard Guenther <rguenther@suse.de>
2241 * gimple.c (iterative_hash_gimple_type): Revert change in
2242 pointer target and function result and argument hashing.
2244 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2246 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2247 (*movxf_internal_nointeger): Ditto.
2248 (*movdf_internal_rex64): Ditto.
2249 (*movdf_internal): Ditto.
2250 (*movdf_internal_nointeger): Ditto.
2251 (*movsf_internal): Ditto.
2252 (sincos splitters): Use can_create_pseudo ().
2254 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2256 * config/i386/i386-opts.h: New.
2257 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2258 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2259 ix86_section_threshold): Remove.
2260 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2261 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2263 (ix86_option_override_internal): Don't decode strings for options
2264 other than -march=, -mtune= and -mfpmath=. Don't allow for
2265 __attribute__ uses in remaining diagnostics for options with
2266 string arguments. Don't check for integer arguments being negative.
2267 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2268 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2269 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2270 ix86_branch_cost, ix86_section_threshold): Remove.
2271 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2273 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2275 (masm=): Use Enum and Init.
2276 (asm_dialect): New Enum and EnumValue entries.
2277 (mbranch-cost=): Use UInteger.
2278 (mlarge-data-threshold=): Use UInteger and Init.
2279 (mcmodel=): Use Enum and Init.
2280 (cmodel): New Enum and EnumValue entries.
2281 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2282 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2283 mregparm=): Use UInteger.
2284 (mstringop-strategy=): Use Enum and Init.
2285 (stringop_alg): New Enum and EnumValue entries.
2286 (mtls-dialect=): Use Enum and Init.
2287 (tls_dialect): New Enum and EnumValue entries.
2288 (mabi=): Use Enum and Init.
2289 (calling_abi): New Enum and EnumValue entries.
2290 (mveclibabi=): Use Enum and Init.
2291 (ix86_veclibabi): New Enum and EnumValue entries.
2293 2011-05-13 Nick Clifton <nickc@redhat.com>
2295 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2296 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2298 2011-05-13 Kai Tietz <ktietz@redhat.com>
2301 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2302 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2303 (gimple_boolify): Check for cast for boolean_type_node instead for
2306 2011-05-13 Richard Guenther <rguenther@suse.de>
2308 PR tree-optimization/48172
2309 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2310 multiplying by number of iterations for equal step.
2311 (vect_create_cond_for_alias_checks): Likewise.
2313 2011-05-13 Andreas Schwab <schwab@redhat.com>
2315 * configure.ac: Use AS_HELP_STRING throughout.
2316 * configure: Regenerate.
2318 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2320 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2321 (ix86_emit_restore_regs_using_mov): Likewise.
2322 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2324 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2326 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2327 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2328 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2329 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2330 RTX_OK_FOR_OLO10_P): ...here.
2331 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2334 2011-05-12 Kai Tietz <ktietz@redhat.com>
2336 * gimplify.c (gimple_boolify): Re-boolify expression
2337 arguments even if expression type is of kind BOOLEAN_TYPE.
2338 (gimplify_boolean_expr): Removed.
2339 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2340 and XOR. Additional take care that we keep expression's type.
2341 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2342 of TRUTH_AND|OR|XOR_EXPR.
2344 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2346 PR tree-optimization/48975
2347 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2348 on all bbs here and free and clear ifc_bbs at the end.
2350 2011-05-12 Richard Guenther <rguenther@suse.de>
2352 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2353 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2354 until after simple checks.
2355 (gimple_types_compatible_p): Likewise.
2356 (iterative_hash_gimple_type): Always hash pointer targets
2357 and function return and argument types.
2358 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2359 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2360 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2361 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2362 completely in the simple compare section.
2363 (gimple_register_canonical_type): Query the cache again after
2366 2011-05-12 Richard Guenther <rguenther@suse.de>
2368 PR tree-optimization/48172
2369 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2370 the number of iterations from the segment size calculation.
2371 (vect_create_cond_for_alias_checks): Adjust.
2373 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2376 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2377 if validate_subreg fails.
2379 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2381 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2382 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2385 2011-05-12 DJ Delorie <dj@redhat.com>
2387 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2388 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2389 created builtin into rx_builtins array.
2390 (rx_builtin_decl): New function.
2391 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2393 2011-05-12 DJ Delorie <dj@redhat.com>
2394 Nick Clifton <nickc@redhat.com>
2396 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2397 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2398 (rx_is_legitimate_address): Add pre-decrement and post-increment
2399 addressing in HImode and QImode. Fix test for out of range
2401 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2402 (rx_align_for_label): Test label before extracting its usage count.
2403 (rx_adjust_insn_lengths): Fix selection of insn codes.
2404 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2406 2011-05-11 Jason Merrill <jason@redhat.com>
2408 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2410 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2412 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2413 reindent the subsequent block.
2415 2011-05-11 Satoru Takabayashi <satorux@google.com>
2416 Paul Pluzhnikov <ppluzhnikov@google.com>
2418 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2419 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2420 * config.in: Add LINKER_HASH_STYLE.
2421 * configure.ac: Add --with-linker-hash-style.
2422 * configure: Regenerate.
2424 2011-05-11 Richard Guenther <rguenther@suse.de>
2427 * gimple.c (iterative_hash_canonical_type): Fix typo.
2429 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2431 * config/i386/i386.c (legitimize_tls_address)
2432 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2433 expanders directly for TARGET_GNU2_TLS. Determine pic and
2434 __tls_get_addr symbol reference here. Update call to
2435 gen_tls_global_dynamic_{32,64} for added arguments.
2436 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2437 expanders directly for TARGET_GNU2_TLS. Determine
2438 __tls_get_addr symbol reference here. Update call to
2439 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2440 unique UNSPEC REG_EQUIV to libcall block.
2441 (ix86_tls_get_addr): Declare static.
2442 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2443 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2444 Do not determine pic and __tls_get_addr symbol reference here. Do not
2445 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2446 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2447 (tls_global_dynamic_64): Add operand 2. Do not determine
2448 __tls_get_addr symbol reference here. Do not call
2449 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2450 (tls_local_dynamic_base64): Ditto for operand 1.
2452 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2454 * function.c (expand_function_start): Initialize stack_check_probe_note
2455 only if the generic stack checking mechanism is used.
2457 2011-05-11 Richard Guenther <rguenther@suse.de>
2459 PR tree-optimization/15256
2460 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2461 (A & B) | C, combine (A op CST1) op CST2.
2462 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2463 visit assigns that have uses.
2465 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2467 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2468 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2469 (unpack_ts_type_common_value_fields): ...this. Update comment.
2470 (unpack_value_fields): Adjust for renaming.
2471 (lto_input_ts_type_tree_pointers): Split into...
2472 (lto_input_ts_type_common_tree_pointer): ...this and...
2473 (lto_input_ts_type_non_common_tree_pointers): ...this.
2474 (lto_input_tree_pointers): Adjust for above split.
2475 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2476 (pack_ts_type_common_value_fields): ...this. Update comment.
2477 (lto_output_ts_type_tree_pointers): Split into...
2478 (lto_output_ts_type_common_tree_pointers): ...this and...
2479 (lto_output_ts_type_non_common_tree_pointers): ...this.
2480 (lto_output_tree_pointers): Adjust for above split.
2481 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2482 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2483 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2484 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2486 (struct tree_type): Split into...
2487 (struct tree_type_common: ...this and...
2488 (struct tree_type_with_lang_specific): ...this and...
2489 (struct tree_type_non_common): ...this. Adjust accessor macros
2491 (TYPE_VALUES_RAW): Define.
2492 (union tree_node): Update for above changes.
2493 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2495 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2496 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2497 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2498 * treestructu.def (TS_TYPE): Remove.
2499 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2502 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2505 * tree-ssa.c (reset_debug_uses): New function.
2506 * tree-flow.h (reset_debug_uses): New prototype.
2507 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2508 * tree-loop-distribution.c (generate_loops_for_partition): Call
2509 reset_debug_uses on the stmts that will be removed. Keep around
2510 all debug stmts, don't count them as bits in partition bitmap.
2511 (generate_builtin): Don't count debug stmts or labels as bits in
2514 2011-05-11 Richard Guenther <rguenther@suse.de>
2516 * gimple.c (gimple_type_hash_1): Merge with ...
2517 (gimple_type_hash): ... this.
2518 (gtc_visit): Remove mode parameter and simplify accordingly.
2519 (gimple_types_compatible_p_1): Likewise.
2520 (gimple_types_compatible_p): Likewise.
2521 (iterative_hash_gimple_type): Likewise.
2523 (gimple_type_eq): Adjust.
2525 2011-05-11 Revital Eres <revital.eres@linaro.org>
2527 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2528 enters the branch create an anti edge in the opposite direction
2529 to prevent the creation of reg-moves.
2530 * modulo-sched.c: Adjust comment to reflect the fact we are
2531 scheduling closing branch.
2532 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2533 (stage_count): New field in struct partial_schedule.
2534 (calculate_stage_count): New function.
2535 (normalize_sched_times): Rename to reset_sched_times and handle
2536 incrementing the sched time of the nodes by a constant value
2537 passed as parameter.
2538 (duplicate_insns_of_cycles): Skip closing branch.
2539 (sms_schedule_by_order): Schedule closing branch.
2540 (ps_insn_find_column): Handle closing branch.
2541 (sms_schedule): Call reset_sched_times and adjust the code to
2542 support scheduling of the closing branch.
2543 (ps_insert_empty_row): Update calls to normalize_sched_times
2544 and rotate_partial_schedule functions.
2546 2011-05-11 Richard Guenther <rguenther@suse.de>
2549 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2551 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2553 * opts.c (finish_options): Move warning settings from process_options.
2554 * toplev.c (process_options): Move warning settings to finish_options.
2556 2011-05-11 Richard Guenther <rguenther@suse.de>
2558 PR tree-optimization/18041
2559 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2560 (simplify_bitwise_binary): ... this. Handle operand conversions
2561 by applying them to the result instead.
2562 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2564 2011-05-11 Richard Guenther <rguenther@suse.de>
2566 * gimple.c (gimple_canonical_types_compatible_p): Split out
2567 from gimple_types_compatible_p and friends. Do not recurse
2568 to pointed-to types.
2569 (gimple_canonical_type_eq): Use it.
2570 (iterative_hash_canonical_type): Split out from
2571 iterative_hash_gimple_type and friends. Do not recurse
2572 to pointed-to types.
2573 (gimple_canonical_type_hash): Use it, allocate the hash here.
2575 2011-05-11 Revital Eres <revital.eres@linaro.org>
2577 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2580 2011-05-11 Revital Eres <revital.eres@linaro.org>
2582 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2583 instead of PREV_INSN.
2585 2011-05-11 Revital Eres <revital.eres@linaro.org>
2587 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2588 * loop-doloop.c (doloop_condition_get): Likewise.
2589 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2591 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2593 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2595 * tree.def (CASE_LABEL_EXPR): Add an operand.
2596 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2598 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2600 * c-decl.c (c_override_global_bindings_to_false): Remove.
2601 (global_bindings_p): Don't check
2602 c_override_global_bindings_to_false.
2603 * c-tree.h (c_override_global_bindings_to_false): Remove.
2604 * c-typeck.c (composite_type): Don't set
2605 c_override_global_bindings_to_false.
2607 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2609 PR target/48857, 48495
2610 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2612 (VSX_MOVE_MODE): Ditto.
2613 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2614 VSX vector types. Add V2DImode.
2615 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2616 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2617 (MODES_TIEABLE_P): Ditto.
2619 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2620 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2622 (init_cumulative_args): Ditto.
2623 (rs6000_function_arg_boundary): Ditto.
2624 (rs6000_function_arg_advance_1): Ditto.
2625 (rs6000_function_arg): Ditto.
2626 (rs6000_function_ok_for_sibcall): Ditto.
2627 (emit_frame_save): Ditto.
2628 (rs6000_function_value): Ditto.
2629 (rs6000_libcall_value): Ditto.
2631 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2633 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2634 i386/darwin-lib.h to $libgcc_tm_file.
2635 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2637 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2639 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2641 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2643 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2644 * config/rs6000/rs6000-tables.opt: New file (generated).
2645 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2646 rs6000/rs6000-tables.opt to extra_options.
2647 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2648 * config/rs6000/rs6000.c (rs6000_select): Remove.
2649 (processor_target_table): Move contents to rs6000-cpus.def.
2650 (darwin_rs6000_override_options): Check
2651 global_options_set.x_rs6000_cpu_index instead of
2652 rs6000_select[1].string.
2653 (rs6000_option_override_internal): Likewise.
2654 (rs6000_handle_option): Don't assert that global structures are in
2655 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2656 (rs6000_default_cpu): New variable.
2657 (rs6000_file_start): Set it instead of local default_cpu. Check
2658 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2659 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2660 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2661 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2662 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2663 rs6000_select): Remove.
2664 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2666 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2667 * config/rs6000/t-rs6000
2668 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2669 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2670 global_options_set.x_rs6000_cpu_index instead of
2671 rs6000_select[1].string.
2672 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2673 global_options_set.x_rs6000_cpu_index instead of
2674 rs6000_select[1].string.
2676 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2678 * config.gcc (libgcc_tm_file): Define instead of including files
2679 from ../../libgcc/config/ in tm_file.
2680 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2681 * configure: Regenerate.
2682 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2683 libgcc_tm.h, cs-libgcc_tm.h): New.
2684 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2685 (clean): Remove libgcc_tm.h.
2686 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2687 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2688 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2690 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2693 * config/avr/avr.c (avr_ret_register): Return unsigned int
2695 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2696 it to avr_libcall_value.
2697 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2699 (avr_expand_binop_builtin): Ditto.
2700 (avr_expand_unop_builtin): Ditto.
2702 2011-05-10 DJ Delorie <dj@redhat.com>
2704 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2705 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2706 * config/rx/rx.c (rx_align_for_label): Add label and
2707 uses_threshold parameters. Do not align when the label is not
2709 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2711 2011-05-10 Richard Guenther <rguenther@suse.de>
2713 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2714 a series of conversions and apply foldings similar to what
2716 (tree_ssa_forward_propagate_single_use_vars): Call it.
2718 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2720 PR tree-optimization/48611
2721 PR tree-optimization/48794
2722 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2723 referenced from RESX or EH_DISPATCH arguments.
2726 * dfp.c (decimal_to_decnumber): Handle conversion from
2727 dconst{1,2,m1,half}.
2729 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2731 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2732 for !flag_prefer_avx128.
2733 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2735 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2737 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2738 (fold_ternary_loc): Use expr_location_or.
2740 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2743 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2744 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2745 Pmode and mem_mode is not VOIDmode.
2747 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2749 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2750 TYPE_QUAL_RESTRICT): Convert to enum.
2752 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2754 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2755 (const_pow2_1_to_8_operand): Ditto.
2756 (const_pow2_1_to_128_operand): Ditto.
2757 (const_pow2_1_to_32768_operand): Ditto.
2758 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2759 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2760 in insn constraint to check integer value of operand 3.
2761 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2763 (PINSR_MODE): New mode iterator.
2764 (sse2p4_1): New mode attribute.
2765 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2766 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2767 iterator. Use const_int_operand instead of
2768 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2769 exact_log2 in insn constraint to check integer value of operand 3.
2771 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2773 * config/i386/sse.md (blendbits): Remove mode attribute.
2774 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2775 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2776 Check integer value of operand 3 in insn constraint.
2778 2011-05-09 Richard Guenther <rguenther@suse.de>
2780 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2782 (lto_symtab_merge): Likewise. Do not register types here.
2783 (lto_symtab_merge_decls_2): Likewise.
2784 (lto_symtab_merge_decls_1): Likewise.
2785 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2786 * gimple.c (enum gtc_mode): Declare.
2787 (gimple_types_compatible_p): Make static.
2789 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2791 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2792 temporary register to match Pmode.
2794 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2796 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2797 and *vec_concatv4si_1_avx.
2799 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2801 PR rtl-optimization/48927
2802 * ira-conflicts.c (commutative_constraint_p): Use
2803 recog_data.alternative_enabled_p to disable alternatives where
2804 "enabled" attribute is false.
2805 (get_dup_num): Ditto.
2806 * ira-lives.c (single_reg_class): Ditto.
2807 (ira_implicitly_set_insn_hard_regs): Ditto.
2809 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2811 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2812 (dataflow_set_preserve_mem_locs): Likewise.
2814 2011-05-09 Philipp Thomas <pth@suse.de>
2816 * config/mep/mep.c (mep_validate_vliw): Syntax description
2817 should not be translated.
2819 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2821 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2822 * config/mips/mips-tables.opt: New file (generated).
2823 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2824 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2825 MIPS_ARCH_OPTION_NATIVE): Define.
2826 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2828 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2829 mips_parse_cpu): Remove.
2830 (mips_cpu_info_from_opt, mips_default_arch): New.
2831 (mips_handle_option): Don't assert that global structures are in
2832 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2833 (mips_option_override): Use new variables and functions to set
2834 state of these options. Use strcmp to check for individual CPU names.
2835 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2837 * config/mips/mips.opt (march=): Use ToLower and Enum.
2838 (mips): Use ToLower, Enum and Var.
2839 (mtune=): Use ToLower and Enum.
2840 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2842 2011-05-08 Jan Hubicka <jh@suse.cz>
2844 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2845 Arrange type pairs to be UID ordered.
2846 (gimple_lookup_type_leader): Make inline.
2848 2011-05-09 Nick Clifton <nickc@redhat.com>
2851 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2855 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2858 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2860 * combine.c (simplify_comparison): Abstract out parts into...
2861 (simplify_compare_const): ... new function.
2862 (try_combine): Generalize parallel arithmetic/compare combining
2863 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2865 2011-05-08 Jan Hubicka <jh@suse.cz>
2867 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2868 (cgraph_create_virtual_clone): Call hooks once virtual clone
2870 * cgraph.h (cgraph_clone_node): Update prototype.
2871 * ipa-cp.c (ipcp_estimate_growth): Use
2872 estimate_ipcp_clone_size_and_time.
2873 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2874 * lto-cgraph.c (input_node): Update.
2875 * ipa-inline.c (recursive_inlining): Update.
2876 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2877 (evaluate_conditions_for_known_args): Break out from ...
2878 (evaluate_conditions_for_edge): ... here.
2879 (evaluate_conditions_for_ipcp_clone): New function.
2880 (inline_node_duplication_hook): Update clone summary based
2882 (estimate_callee_size_and_time): Rename to ...
2883 (estimate_node_size_and_time): take NODE instead of EDGE;
2884 take POSSIBLE_TRUTHS as argument.
2885 (estimate_callee_size_and_time): Update.
2886 (estimate_ipcp_clone_size_and_time): New function.
2887 (do_estimate_edge_time): Update.
2889 2011-05-08 Richard Guenther <rguenther@suse.de>
2893 * expmed.c (expand_shift_1): Compute adjusted constant shift
2896 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2898 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2900 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2902 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2904 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2906 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2908 2011-05-07 Jan Hubicka <jh@suse.cz>
2910 * ipa-inline-transform.c (inline_call): Account when program size
2912 * ipa-inline.c (relative_time_benefit): New function.
2913 (edge_badness): Reorganize to be power 2 based; fix thinko when
2914 computing badness for negative growth; update comments to match
2915 reality; better dumps.
2917 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2919 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2920 type to bool and adjust comment.
2921 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2922 (fold_mathfn_compare): Remove calls to global_bindings_p.
2923 (fold_inf_compare): Likewise.
2924 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2925 * c-tree.h (global_bindings_p): Adjust prototype.
2926 * c-decl.c (global_bindings_p): Return bool and simplify.
2928 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2930 PR tree-optimization/48837
2931 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2932 when accumulator transformation is performed.
2934 2011-05-06 Jan Hubicka <jh@suse.cz>
2936 * i386.h (ix86_tune_indices): Add
2937 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2938 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2939 * i386.c (initial_ix86_tune_features): Add
2940 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2941 (software_prefetching_beneficial_p): Remove predicate.
2942 (ix86_option_override_internal): Use new macro.
2944 2011-05-06 Jan Hubicka <jh@suse.cz>
2946 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2948 2011-05-06 Jan Hubicka <jh@suse.cz>
2950 * cgraph.c (cgraph_add_thunk): Create real function node instead
2951 of alias node; finalize it and mark needed/reachale; arrange visibility
2952 to be right and add it into the corresponding same comdat group list.
2953 (dump_cgraph_node): Dump thunks.
2954 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2955 cgraph_function_with_gimple_body_p,
2956 cgraph_first_function_with_gimple_body,
2957 cgraph_next_function_with_gimple_body): New functions.
2958 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2960 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2961 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2962 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2963 devirtualization when optimizing.
2964 (verify_cgraph_node): Verify thunks.
2965 (cgraph_analyze_function): Analyze thunks.
2966 (cgraph_mark_functions_to_output): Output thunks only in combination
2967 with function they are assigned to.
2968 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2969 alias into normal node.
2970 (assemble_thunks): New functoin.
2971 (cgraph_expand_function): Use it.
2972 * lto-cgraph.c (lto_output_node): Stream thunks.
2973 (input_overwrite_node): Stream in thunks.
2974 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2975 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2976 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2977 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2978 (inline_analyze_function): Do not care about thunk jump functions.
2979 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2980 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2981 cgraph_function_with_gimple_body_p.
2982 * passes.c (do_per_function_toporder): Use
2983 cgraph_function_with_gimple_body_p.
2984 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2985 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2986 (function_called_by_processed_nodes_p): Likewise.
2988 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2990 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2991 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2993 (mabi=): Replace with separate entries for mabi=altivec,
2994 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2995 mabi=ieeelongdouble and mabi=ibmlongdouble.
2996 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2997 check for -mabi=spe without SPE ABI support here.
2998 (rs6000_handle_option): Replace OPT_mabi_ handling with
2999 OPT_mabi_altivec and OPT_mabi_spe handling.
3001 2011-05-06 Cary Coutant <ccoutant@google.com>
3003 * dwarf2out.c (contains_subprogram_definition): New function.
3004 (should_move_die_to_comdat): Call it.
3006 2011-05-06 Jeff Law <law@redhat.com>
3008 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3009 remove_ctrl_stmt_and_useless_edges.
3010 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3011 (fixup_template_block, thread_single_edge): Likewise.
3012 (mark_threaded_blocks): Use THREAD_TARGET.
3014 2011-05-06 Alan Modra <amodra@gmail.com>
3017 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3018 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3020 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3022 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3023 constraint modifier to "r".
3025 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3027 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3028 fall through for OPT_mcmodel_.
3030 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3032 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3034 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3036 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3039 * config/arm/arm.opt (marm): Document it.
3040 (mthumb): Reject negative variant.
3042 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3045 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3046 Fix typo in "ccvt" variable name.
3048 2011-05-06 Tristan Gingold <gingold@adacore.com>
3051 * config/vms/vms-ar.c (main): Remove cwd variable.
3053 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3056 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3058 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3060 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3061 * gimplify.c (gimplify_switch_expr): Likewise.
3062 * omp-low.c (expand_omp_sections): Likewise.
3063 * tree-eh.c (lower_try_finally_switch): Likewise.
3064 (lower_eh_dispatch): Likewise.
3065 * tree.h (build_case_label): Declare.
3066 * tree.c (build_case_label): Define.
3068 2011-05-05 Jason Merrill <jason@redhat.com>
3071 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3072 (copy_statement_list): Don't recurse.
3073 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3076 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3078 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3079 through from -mfpu= handling.
3080 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3082 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3084 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3087 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3089 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3091 (hppa[12]*-*-hpux11*): Ditto.
3092 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3093 * config/ia64/hpux-unix2003.h: New.
3094 * config/pa/pa-hpux1131.opt: New.
3095 * config/pa/pa-hpux1131.h: New.
3096 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3097 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3098 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3100 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3103 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3104 instead of mode as 3rd argument to recursive call.
3105 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3106 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3108 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3109 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3110 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3111 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3113 2011-05-05 Julian Brown <julian@codesourcery.com>
3115 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3116 parenthesis in D-register case.
3118 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3120 * opt-functions.awk (var_type_struct): Handle Enum options.
3121 * optc-gen.awk: Don't check range of variables of character type.
3122 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3123 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3124 rs6000_sdata_name, rs6000_explicit_options): Remove.
3125 (rs6000_option_override_internal): Check for -malign-power here.
3126 Use global_options_set instead of rs6000_explicit_options.
3127 (rs6000_parse_fpu_option): Remove.
3128 (rs6000_handle_option): Access variables via opts and opts_set
3129 pointers. Use error_at and warning_at. Add fall-through
3130 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3131 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3132 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3133 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3134 here. Don't use rs6000_parse_fpu_option.
3135 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3136 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3137 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3139 (mspe): Use Var and Save.
3140 (mtraceback=): Use Enum and Var.
3141 (rs6000_traceback_type): New Enum and EnumValue entries.
3142 (mfloat-gprs=): Use Enum, Var and Save.
3143 (rs6000_float_gprs): New Enum and EnumValue entries.
3144 (mlong-double-): use Var and Save.
3145 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3146 (malign-): Use Enum and Var.
3147 (rs6000_alignment_flags): New Enum and EnumValue entries.
3149 (fpu_type_t): New Enum and EnumValue entries.
3150 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3151 global_options_set instead of rs6000_explicit_options.
3152 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3153 global_options_set instead of rs6000_explicit_options.
3154 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3155 global_options_set instead of rs6000_explicit_options.
3156 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3157 global_options_set instead of rs6000_explicit_options.
3158 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3159 global_options_set instead of rs6000_explicit_options.
3160 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3161 global_options_set instead of rs6000_explicit_options.
3162 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3164 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3165 global_options_set instead of rs6000_explicit_options.
3166 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3167 (rs6000_cmodel): New Enum and EnumValue entries.
3168 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3169 global_options_set instead of rs6000_explicit_options.
3170 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3171 (mtls-size=): Use Enum and Var.
3172 (rs6000_tls_size): New Enum and EnumValue entries.
3174 2011-05-05 Michael Matz <matz@suse.de>
3176 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3177 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3178 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3179 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3180 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3181 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3182 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3183 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3184 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3185 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3186 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3187 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3188 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3189 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3190 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3191 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3193 2011-05-05 Richard Guenther <rguenther@suse.de>
3195 * expmed.c (expand_variable_shift): Rename to ...
3196 (expand_shift_1): ... this. Take an expanded shift amount.
3197 For rotates recurse directly not building trees for the shift amount.
3198 (expand_variable_shift): Wrap around expand_shift_1.
3199 (expand_shift): Adjust.
3201 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3203 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3205 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3207 * tree.h (get_pending_sizes): Remove prototype.
3208 (put_pending_size): Likewise.
3209 (put_pending_sizes): Likewise.
3210 * stor-layout.c (pending_sizes): Delete.
3211 (get_pending_sizes): Likewise.
3212 (put_pending_size): Likewise.
3213 (put_pending_sizes): Likewise.
3214 (variable_size): Do not call put_pending_size and tidy up.
3215 * function.h (struct function): Remove dont_save_pending_sizes_p.
3216 * lto-streamer-in.c (input_function): Do not stream it.
3217 * lto-streamer-out.c (output_function): Likewise.
3218 * tree-inline.c (initialize_cfun): Do not copy it.
3219 * c-decl.c (store_parm_decls): Do not set it.
3220 * omp-low.c (create_task_copyfn): Likewise.
3221 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3223 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3225 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3227 (*movdf_internal): Ditto.
3228 (*movdf_internal_nointeger): Ditto.
3229 (*movsf_internal): Ditto.
3231 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3233 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3234 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3235 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3236 (c_variable_size): Remove.
3237 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3238 call put_pending_sizes.
3239 (get_parm_info): Add parameter expr. Use it to set
3240 arg_info->pending_sizes.
3241 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3243 * c-parser.c (c_parser_parms_declarator): Update call to
3244 c_parser_parms_list_declarator.
3245 (c_parser_parms_list_declarator): Take parameter expr. Update
3246 call to push_parm_decl. Update recursive call. Don't call
3247 get_pending_sizes. Update calls to get_parm_info.
3248 (c_parser_objc_method_definition): Update calls to
3249 c_parser_objc_method_decl and objc_start_method_definition.
3250 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3251 (c_parser_objc_method_decl): Add parameter expr. Update call to
3253 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3254 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3255 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3257 2011-05-05 Michael Hope <michael.hope@linaro.org>
3260 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3263 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3265 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3266 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3267 (spu_output_mi_thunk): New function.
3269 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3271 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3272 targetm.asm_out.print_operand.
3273 * config/sol2.c: Include target.h.
3275 2011-05-04 Jan Hubicka <jh@suse.cz>
3277 * ipa-inline.c (reset_edge_caches): New function.
3278 (update_caller_keys): Add check_inlinablity_for; do not
3279 reset edge caches; remove now unnecesary loop.
3280 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3281 (update_all_callee_keys): Likewise.
3282 (inline_small_functions): Sanity check cache; update code
3285 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3287 PR rtl-optimization/47612
3288 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3289 as the last insn of the sequence to be moved.
3291 2011-05-04 Tobias Burnus <burnus@net-b.de>
3294 * doc/invoke.texi (Ofast): Document that it
3295 enables Fortran's -fno-protect-parens.
3297 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3299 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3301 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3303 * stor-layout.c (variable_size): Do not issue errors.
3305 2011-05-04 Richard Guenther <rguenther@suse.de>
3307 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3308 for array-ref indices.
3309 (tree_coverage_counter_addr): Likewise.
3310 (build_fn_info_type): Use size_int for index types.
3311 (build_gcov_info): Likewise.
3313 2011-05-04 Richard Guenther <rguenther@suse.de>
3315 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3317 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3318 for constructor indices.
3319 (push_init_level): Likewise.
3321 2011-05-04 Richard Guenther <rguenther@suse.de>
3323 * explow.c (promote_mode): Move variable declarations before code.
3325 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3327 * tree.h (build_function_type_array): Declare.
3328 (build_varargs_function_type_array): Declare.
3329 (build_function_type_vec, build_varargs_function_type_vec): Define.
3330 * tree.c (build_function_type_array_1): New function.
3331 (build_function_type_array): New function.
3332 (build_varargs_function_type_array): New function.
3334 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3336 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3337 before setting STMT_VINFO_TYPE.
3339 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3341 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3342 instead of spu_pass_by_reference.
3344 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3346 * calls.c (emit_library_call_value_1): Invoke
3347 promote_function_mode hook on libcall arguments.
3348 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3349 argument being NULL.
3350 * targhooks.c (default_promote_function_mode): Lisewise.
3351 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3352 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3354 * doc/tm.texi: Document that TYPE argument might be NULL.
3356 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3358 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3360 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3363 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3365 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3367 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3368 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3370 * mips-tfile.c: ... here.
3371 Don't include coretypes.h, tm.h, filenames.h.
3372 (saber_stop): Remove definition and all calls.
3373 [__SABER__]: Remove.
3374 (__LINE__): Remove default.
3375 (Size_t, Ptrdiff_t): Remove definitions.
3376 Replace by size_t, ptrdiff_t.
3377 [!MIPS_DEBUGGING_INFO]: Remove.
3378 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3379 (progname): Add const.
3381 Replace all uses by static.
3382 (ALIGN_SYMTABLE_OFFSET): Remove default.
3383 * mips-tdump.c: Don't include coretypes.h, tm.h.
3384 Remove !MIPS_IS_STAB guard.
3385 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3386 $(TM_H), filenames.h dependencies.
3387 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3389 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3392 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3393 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3395 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3398 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3399 account and save/restore RETS.
3400 (PROFILE_BEFORE_PROLOGUE): Define.
3401 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3402 the push insn to use predecrement.
3404 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3407 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3409 2011-05-04 Nick Clifton <nickc@redhat.com>
3411 * config/mn10300/mn10300.c: Include cfgloop.h.
3413 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3414 Lcc or a FLcc insn into the instruction stream.
3415 (mn10300_block_contains_call): New function. Returns true if the
3416 given basic block contains a CALL insn.
3417 (mn10300_loop_contains_call_insn): New function. Returns true if
3418 the given loop contains a CALL insn.
3419 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3420 to use the SETLB and Lcc or FLcc insns.
3421 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3422 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3423 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3424 disable the SETLB optimization.
3425 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3426 __SETLB__ or __NO_SETLB__.
3427 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3428 (movsf_internal): Handle MDR register.
3429 (cmpsi): Make visible.
3430 (setlb): New pattern.
3432 (FLcc): New pattern.
3434 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3437 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3438 for reg<->xmm moves.
3439 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3440 (vec_concatv2di_rex64_sse): Ditto.
3441 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3442 (*vec_extractv2di_1_rex64): Ditto.
3445 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3447 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3449 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3451 2011-05-04 Richard Guenther <rguenther@suse.de>
3453 * tree.h (int_const_binop): Remove notrunc argument.
3454 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3455 create integer constants that are properly truncated.
3456 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3457 (const_binop): Remove zero notrunc argument to int_const_binop.
3458 (size_binop_loc): Likewise.
3459 (fold_div_compare): Likewise.
3460 (maybe_canonicalize_comparison_1): Likewise.
3461 (fold_comparison): Likewise.
3462 (fold_binary_loc): Likewise.
3463 (multiple_of_p): Likewise.
3464 * expr.c (store_constructor): Likewise.
3465 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3466 (maybe_fold_stmt_addition): Likewise.
3467 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3468 * stor-layout.c (layout_type): Likewise.
3469 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3470 * tree-sra.c (build_ref_for_offset): Likewise.
3471 (build_user_friendly_ref_for_offset): Likewise.
3472 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3473 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3474 * tree-ssa-loop-niter.c (inverse): Likewise.
3475 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3476 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3477 * tree-switch-conversion.c (check_range): Likewise.
3478 (build_constructors): Likewise.
3479 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3480 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3481 (extract_range_from_assert): Likewise.
3482 (vrp_int_const_binop): Likewise.
3483 (extract_range_from_binary_expr): Likewise.
3484 (extract_range_from_unary_expr): Likewise.
3485 (check_array_ref): Likewise.
3486 (find_case_label_range): Likewise.
3487 (simplify_div_or_mod_using_ranges): Likewise.
3488 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3489 comparing case labels for merging.
3491 2011-05-03 Mark Wielaard <mjw@redhat.com>
3493 * dwarf2out.c (debug_str_hash_forced): Removed.
3494 (gen_label_for_indirect_string): Removed.
3495 (get_debug_string_label): Removed.
3496 (AT_string_form): Generate label directly.
3497 (output_indirect_string): Test indirect_string_node for
3498 DW_FORM_strp instead of checking label and refcount.
3499 (prune_indirect_string): Removed.
3500 (prune_unused_types): Don't check debug_str_hash_forced or
3501 call prune_indirect_string.
3503 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3506 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3508 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3512 * combine.c (try_combine): Skip debug insns at m_split tests.
3514 2011-04-26 Mark Wielaard <mjw@redhat.com>
3517 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3518 when info_section_emitted.
3520 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3522 * config/mips/mips-opts.h: New.
3523 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3525 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3526 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3527 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3529 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3531 (mips_abi, mips_code_readable): Don't declare.
3532 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3533 (mabi=): Use Enum and Var.
3534 (mips_abi): New Enum and EnumValue entries.
3535 (mcode-readable=): Use Enum and Var.
3536 (mips_code_readable_setting): New Enum and EnumValue entries.
3537 (mr10k-cache-barrier=): Use Enum and Var.
3538 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3540 2011-05-03 Jan Hubicka <jh@suse.cz>
3542 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3543 replace hash by pointer map.
3544 (cgraph_node_set_element_def, cgraph_node_set_element,
3545 const_cgraph_node_set_element, varpool_node_set_element_def,
3546 varpool_node_set_element, const_varpool_node_set_element): Remove.
3547 (free_cgraph_node_set, free_varpool_node_set): New function.
3548 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3549 * tree-emutls.c: Free varpool node set.
3550 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3551 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3552 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3553 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3554 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3555 Move here from ipa.c; implement using pointer_map
3556 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3557 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3558 debug_cgraph_node_set, varpool_node_set_new,
3559 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3560 dump_varpool_node_set, debug_varpool_node_set):
3561 Move to ipa-uitls.c.
3562 * passes.c (ipa_write_summaries): Update.
3564 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3566 From Mike Frysinger:
3567 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3568 bf542/bf544/bf547/bf548/bf549.
3570 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3572 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3574 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3577 * config/bfin/bfin.md (MOVCC): New mode_macro.
3578 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3579 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3580 comments from generated assembly.
3582 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3585 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3586 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3587 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3588 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3589 * config/bfin/lib1funcs.asm (___muldi3): New function.
3591 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3593 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3594 build_function_type_list instead of build_function_type.
3595 Rearrange initialization of `args' to do so.
3597 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3599 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3600 instead of build_function_type.
3602 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3604 * config/rs6000/rs6000.c (spe_init_builtins): Call
3605 build_function_type_list instead of build_function_type.
3606 (paired_init_builtins, altivec_init_builtins): Likewise.
3607 (builtin_function_type): Likewise.
3609 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3611 * config/sh/sh.c (sh_media_init_builtins): Call
3612 build_function_type_list instead of build_function_type.
3614 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3616 * config/sparc/sparc.c (sparc_file_end): Call
3617 build_function_type_list instead of build_function_type.
3619 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3621 * config/alpha/alpha.c (alpha_init_builtins): Call
3622 build_function_type_list instead of build_function_type.
3624 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3626 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3627 build_function_type_list instead of build_function_type.
3629 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3631 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3632 build_function_type_list instead of build_function_type.
3633 Delete `endlink' variable.
3635 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3637 * config/avr/avr.c (avr_init_builtins): Call
3638 build_function_type_list instead of build_function_type.
3640 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3642 * config/picochip/picochip.c (picochip_init_builtins): Call
3643 build_function_type_list instead of build_function_type.
3644 Delete `endlink' variable.
3646 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3648 * config/bfin/bfin.c (bfin_init_builtins): Call
3649 build_function_type_list instead of build_function_type.
3651 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3654 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3655 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3657 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3660 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3661 libbffastfp overrides libgcc when -mfast-fp.
3663 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3665 Originally from Bernd Schmidt
3666 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3667 * config/bfin/bfin.c (override_options): Test it and error if
3670 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3672 Originally From Bernd Schmidt
3673 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3676 2011-05-03 Jeff Law <law@redhat.com>
3678 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3679 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3680 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3681 than accessing AUX field directly. Free the AUX field before
3683 (thread_block, thread_through_loop_header): Likewise.
3684 (thread_single_edge, mark_threaded_blocks): Likewise.
3685 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3686 (register_jump_thread): Do not attempt to thread to a NULL edge.
3688 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3690 * function.c (init_function_start): Call decide_function_section.
3691 * varasm.c (decide_function_section): New function.
3692 (assemble_start_function): When not using
3693 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3694 or first_function_block_is_cold.
3695 * rtl.h (decide_function_section): Declare.
3697 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3698 Jakub Jelinek <jakub@redhat.com>
3701 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3702 only succeed if req_mode is the same as set_mode.
3704 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3706 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3707 * genemit.c (gen_exp): Handle RETURN.
3708 * emit-rtl.c (verify_rtx_sharing): Likewise.
3709 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3710 * rtl.c (copy_rtx): RETURN is shared.
3711 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3713 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3714 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3715 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3716 * config/cris/cris.c (cris_expand_return): Likewise.
3717 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3718 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3719 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3720 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3721 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3723 * config/v850/v850.c (expand_epilogue): Likewise.
3724 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3725 * config/arm/arm.md (epilogue): Likewise.
3726 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3727 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3728 variable to ret_reg.
3730 2011-05-03 Richard Guenther <rguenther@suse.de>
3733 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3734 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3735 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3737 2011-05-03 Richard Guenther <rguenther@suse.de>
3739 * c-decl.c (grokdeclarator): Instead of looking at
3740 TREE_OVERFLOW check if the constant fits in the index type.
3742 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3744 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3745 (vec_store_lanes<mode><mode>): Likewise.
3747 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3749 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3750 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3751 convert_optab_index values.
3752 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3753 * genopinit.c (optabs): Initialize the new optabs.
3754 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3755 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3756 (expand_STORE_LANES): New functions.
3757 * tree.h (build_array_type_nelts): Declare.
3758 * tree.c (build_array_type_nelts): New function.
3759 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3760 (vect_model_load_cost): Likewise.
3761 (vect_store_lanes_supported, vect_load_lanes_supported)
3762 (vect_record_strided_load_vectors): Declare.
3763 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3764 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3765 (vect_transform_strided_load): Split out statement recording into...
3766 (vect_record_strided_load_vectors): ...this new function.
3767 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3768 (write_vector_array, create_array_ref): New functions.
3769 (vect_model_store_cost): Add store_lanes_p argument.
3770 (vect_model_load_cost): Add load_lanes_p argument.
3771 (vectorizable_store): Try to use store-lanes functions for
3773 (vectorizable_load): Likewise load-lanes and loads.
3774 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3775 to vect_model_store_cost.
3776 (vect_build_slp_tree): Likewise vect_model_load_cost.
3778 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3780 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3781 * hooks.c (hook_bool_mode_uhwi_false): New function.
3782 * target.def (array_mode_supported_p): New hook.
3783 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3784 * doc/tm.texi: Regenerate.
3785 * stor-layout.c (mode_for_array): New function.
3786 (layout_type): Use it.
3787 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3788 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3790 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3793 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3794 for -fstack-check if the size to allocate is negative.
3796 2011-05-02 Lawrence Crowl <crowl@google.com>
3798 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3799 (timevar_cond_start): New for starting a timer only when it is not
3801 (timevar_cond_stop): New for stopping a timer when it was not already
3804 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3805 (timevar_cond_start): New as above.
3806 (timevar_cond_stop): New as above.
3808 * timevar.def: Add start/stop timers for compiler phases,
3809 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3810 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3811 and TV_PHASE_FINALIZE.
3812 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3813 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3814 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3815 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3816 Make unused TV_OVERLOAD into a start/stop timer.
3818 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3819 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3820 to indicate that they are start/stop timers.
3822 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3823 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3824 Move initialization to do_compile.
3825 (do_compile): Add initialization from above.
3826 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3828 * c-decl.c (c_write_global_declarations): Add start/stop of
3829 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3831 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3832 or TV_PARSE_INLINE, as appropriate.
3833 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3834 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3836 2011-05-02 Jason Merrill <jason@redhat.com>
3839 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3841 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3844 * c-decl.c (finish_decl): Only create a composite if the types are
3847 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3849 * config/fr30/fr30-protos.h (Mmode): Don't define.
3850 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3851 definition where used.
3852 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3853 define. Expand definitions where used.
3854 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3855 Expand definitions where used.
3856 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3857 rx_function_arg, rx_function_arg_advance,
3858 rx_function_arg_boundary): Expand definitions of those macros.
3859 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3860 definition where used.
3862 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3864 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3866 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3867 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3868 with *movv2sf_internal_rex64_avx.
3869 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3870 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3871 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3872 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3873 "vex" in "prefix" attribute calculation.
3874 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3876 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3879 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3880 inputs match the output.
3882 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3885 * config/m68k/m68k.c (m68k_expand_prologue): Set
3886 current_function_static_stack_size.
3888 2011-05-02 Jan Hubicka <jh@suse.cz>
3890 * lto-streamer.c (lto_streamer_cache_insert_1,
3891 lto_streamer_cache_lookup, lto_streamer_cache_create,
3892 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3893 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3895 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3897 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3898 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3899 config/m68k/t-opts: New files.
3900 * config/m68k/m68k-tables.opt: New file (generated).
3901 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3902 extra_options and m68k/t-opts to tmake_file.
3903 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3904 (all_isas): Initialize using m68k-isas.def.
3905 (all_microarchs): Initialize using m68k-microarchs.def.
3906 (m68k_find_selection): Remove.
3907 (m68k_handle_option): Don't assert that global structures are in
3908 use. Use error_at. Access variables via opts pointer. Don't
3909 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3910 directly for -m68020-40 and -m68020-60.
3911 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3912 m68k_tune_entry here.
3913 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3915 (m68k_library_id_string): Remove declaration.
3916 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3917 (m68k_library_id_string): New Variable.
3918 (march=, mcpu=, mtune=): Use Enum and Var.
3920 2011-05-02 Richard Guenther <rguenther@suse.de>
3922 * varasm.c (output_constructor_regular_field): Compute zero-based
3923 index with double-ints. Make sure to ICE instead of producing
3925 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3926 in asserts. Properly use a signed type.
3928 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3930 * config/i386/sse.md (V): New mode iterator.
3931 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3933 (V_256): Rename from AVX256MODE.
3934 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3935 condition to all users.
3937 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3938 condition to all users.
3939 (VF_128): Make V4SF mode unconditional.
3940 (VF_256): Rename from AVX256MODEF2P.
3941 (VI4F_128): Rename from SSEMODE4S.
3942 (VI8F_128): Rename from SSEMODE2D.
3943 (VI4F_256): Rename from AVX256MODE8P.
3944 (VI8F_256): Rename from AVX256MODE4P.
3945 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3946 (ssescalarmodesuffix): Remove SF and DF modes.
3947 (SSEMODE124): Remove.
3948 (SSEMODE1248): Ditto.
3949 (SSEMODEF2P): Ditto.
3950 (AVXMODEF2P): Ditto.
3951 (AVXMODEFDP): Ditto.
3952 (AVXMODEFSP): Ditto.
3953 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3955 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3957 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3958 xop_pcmov_<mode>256. Use V mode iterator.
3960 Adjust RTX patterns globally for renamed mode attributes.
3962 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3964 * haifa-sched.c (sched_emit_insn): Emit insn before first
3965 non-scheduled insn. Inform back-end about new insn. Add
3966 new insn to scheduled_insns list.
3968 2011-05-02 Richard Guenther <rguenther@suse.de>
3970 PR tree-optimization/48822
3971 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3972 (process_scc): Indicate which iteration we start.
3974 2011-05-02 Jan Hubicka <jh@suse.cz>
3976 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3977 (lto_section_overrun): New.
3978 * lto-section-out.c (append_block): Rename to ...
3979 (lto_append_block): ... this one; export.
3980 (lto_output_1_stream): Move lto lto-streamer.h
3981 (lto_output_data_stream): Update.
3982 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3983 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3986 2011-05-02 Richard Guenther <rguenther@suse.de>
3988 * tree.c (tree_code_counts): New global array.
3989 (record_node_allocation_statistics): Count individual tree codes.
3990 (dump_tree_statistics): Dump individual code stats.
3992 2011-05-01 Jan Hubicka <jh@suse.cz>
3994 * ipa-inline.c (caller_growth_limits): Fix thinko when
3995 looking for largest stack frame.
3996 * ipa-inline.h (dump_inline_summary): Declare.
3997 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3999 (dump_inline_summary): Export.
4000 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4002 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4004 * reginfo.c (memory_move_cost): Change rclass argument type form
4005 'enum reg_class' to reg_class_t.
4006 * reload.h (memory_move_cost): Update prototype.
4007 * postreload.c reload_cse_simplify_set): Change type dclass var to
4009 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4011 (ira_allocate_and_set_costs): Change aclass argument type form
4012 'enum reg_class' to reg_class_t.
4013 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4014 Change aclass argument type to reg_class_t.
4015 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4017 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4018 memory_move_cost call.
4020 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4021 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4022 Change type tmp var to reg_class_t.
4024 2011-04-30 Jan Hubicka <jh@suse.cz>
4026 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4027 inlining into function with flatten attribute.
4028 (want_inline_small_function_p): Be more realistic about inlining
4029 cold calls where callee size grows.
4031 2011-04-30 Jan Hubicka <jh@suse.cz>
4033 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4036 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4038 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4039 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4040 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4041 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4042 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4043 (print_operand): Rename to...
4044 (sparc_print_operand): ...this. Make static. Adjust
4045 sparc_print_operand function call.
4046 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4049 2011-04-30 Jan Hubicka <jh@suse.cz>
4052 * ipa-inline.c (early_inliner): Disable when doing late
4053 addition of function.
4055 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4057 * dwarf2out.c (get_address_mode): New inline.
4058 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4059 if not dwarf_strict emit
4060 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4061 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4062 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4063 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4064 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4065 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4066 mem_loc_descriptor callers.
4067 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4068 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4069 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4070 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4071 (base_types): New variable.
4072 (get_base_type_offset, calc_base_type_die_sizes,
4073 base_type_for_mode, mark_base_types, base_type_cmp,
4074 move_marked_base_types): New functions.
4075 (calc_die_sizes): Assert that die_offset is 0 or equal to
4077 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4078 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4079 callers. If not dwarf_strict, call mem_loc_descriptor even for
4080 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4081 (gen_subprogram_die): Don't give up on call site parameters
4082 with non-integral or large integral modes. Adjust
4083 mem_loc_descriptor callers.
4084 (prune_unused_types): Call prune_unused_types_mark on base_types
4086 (resolve_addr): Call mark_base_types.
4087 (dwarf2out_finish): Call move_marked_base_types.
4089 PR tree-optimization/48809
4090 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4092 (gen_inbound_check): Don't compute index_expr - range_min in utype
4093 again, instead reuse SSA_NAME initialized in build_arrays.
4094 Remove two useless gsi_for_stmt calls.
4096 2011-04-29 Jeff Law <law@redhat.com>
4098 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4100 2011-04-29 Martin Jambor <mjambor@suse.cz>
4102 * cgraph.h (cgraph_postorder): Remove declaration.
4103 * ipa-utils.h (ipa_free_postorder_info): Declare.
4104 (ipa_reverse_postorder): Likewise.
4105 * cgraphunit.c: Include ipa-utils.h.
4106 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4107 * ipa-inline.c: Include ipa-utils.h.
4108 (ipa_inline): Update call to ipa_reverse_postorder.
4109 * ipa-pure-const.c (propagate_pure_const): Update call to
4110 ipa_reduced_postorder and ipa_print_order. Call
4111 ipa_free_postorder_info to clean up.
4112 (propagate_nothrow): Likewise.
4113 * ipa-reference.c (propagate): Removed a useless call to
4114 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4115 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4116 * ipa.c: Include ipa-utils.h.
4117 (ipa_profile): Update call to ipa_reverse_postorder.
4118 (cgraph_postorder): Moved to...
4119 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4120 (ipa_utils_print_order): Renamed to ipa_print_order.
4121 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4123 (ipa_free_postorder_info): New function.
4124 * passes.c: Include ipa-utils.h.
4125 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4126 (ipa_write_summaries): Likewise.
4127 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4128 (cgraphunit.o): Likewise.
4130 (ipa-inline.o): Likewise.
4132 2011-04-29 Jan Hubicka <jh@suse.cz>
4134 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4135 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4136 * ipa-inline.h (clause_t): Turn into unsigned int.
4137 * ipa-inline-analysis.c (add_clause): Do more simplification.
4138 (and_predicates): Shortcut more cases.
4139 (predicates_equal_p): Move forward; check that clauses are properly
4141 (or_predicates): Shortcut more cases.
4142 (edge_execution_predicate): Rewrite as...
4143 (set_cond_stmt_execution_predicate): ... this function; handle
4144 __builtin_constant_p.
4145 (set_switch_stmt_execution_predicate): New .
4146 (compute_bb_predicates): New.
4147 (will_be_nonconstant_predicate): Update TODO.
4148 (estimate_function_body_sizes): Use compute_bb_predicates
4149 and free them later, always try to estimate if stmt is constant.
4150 (estimate_time_after_inlining, estimate_size_after_inlining):
4151 Gracefully handle optimized out edges.
4152 (read_predicate): Fix off by one error.
4154 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4156 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4158 2011-04-27 Xinliang David Li <davidxl@google.com>
4160 * tree-profile.c (init_ic_make_global_vars): Set
4161 tls attribute on ic vars.
4162 * coverage.c (coverage_end_function): Initialize
4163 function_list with zero.
4165 2011-04-29 Richard Guenther <rguenther@suse.de>
4167 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4168 for the type of the result.
4169 (fold_builtin_isascii): Likewise.
4170 (fold_builtin_toascii): Use integer_type_node where appropriate.
4171 (fold_builtin_logb): Likewise.
4172 (fold_builtin_frexp): Likewise.
4173 (fold_builtin_strstr): Likewise.
4174 (fold_builtin_strpbrk): Likewise.
4175 (fold_builtin_fputs): Likewise.
4176 (fold_builtin_sprintf): Likewise.
4177 (fold_builtin_snprintf): Likewise.
4178 (fold_builtin_printf): Likewise.
4179 (do_mpfr_remquo): Use a proper type for the assigned constant.
4180 (do_mpfr_lgamma_r): Likewise.
4181 * dwarf2out.c (resolve_one_addr): Use size_int.
4182 * except.c (init_eh): Likewise.
4183 (assign_filter_values): Use integer_type_node for filter values.
4184 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4186 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4187 for EH region numbers.
4188 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4189 for the shift amount.
4191 2011-04-29 Richard Guenther <rguenther@suse.de>
4193 * expr.h (expand_shift): Rename to ...
4194 (expand_variable_shift): ... this.
4195 (expand_shift): Take a constant shift amount.
4196 * expmed.c (expand_shift): Rename to ...
4197 (expand_variable_shift): ... this.
4198 (expand_shift): New wrapper around expand_variable_shift.
4199 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4200 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4201 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4202 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4203 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4204 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4205 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4206 emit_store_flag_1, emit_store_flag): Likewise.
4207 * builtins.c (expand_builtin_signbit): Likewise.
4208 * calls.c (load_register_parameters): Likewise.
4209 * function.c (assign_parm_setup_block): Likewise.
4210 * lower-subreg.c (resolve_shift_zext): Likewise.
4211 * optabs.c (widen_bswap, expand_abs_nojump,
4212 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4213 * spu/spu.c (spu_expand_extv): Likewise.
4214 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4216 2011-04-29 Richard Guenther <rguenther@suse.de>
4218 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4219 for the remapped region number.
4220 * predict.c (build_predict_expr): Use integer_type_node for the
4222 * fold-const.c (fold_binary_loc): Use integer_type_node for
4223 the shift amount. Use a proper type for the PLUS_EXPR operand.
4225 2011-04-29 Michael Matz <matz@suse.de>
4227 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4228 other trees that just builtins.
4229 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4231 2011-04-29 Richard Guenther <rguenther@suse.de>
4233 * tree-nested.c (get_trampoline_type): Use size_int.
4234 (get_nl_goto_field): Likewise.
4235 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4237 (lower_eh_constructs_2): Likewise.
4238 (lower_resx): Likewise.
4239 (lower_eh_dispatch): Likewise.
4240 * tree-mudflap.c (mf_build_string): Use size_int.
4241 (mudflap_register_call): Use integer_type_node for the flag.
4242 (mudflap_enqueue_constant): Use size_int.
4243 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4244 instead of rebuilding it.
4246 2011-04-29 Richard Guenther <rguenther@suse.de>
4248 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4249 Handle OBJ_TYPE_REF.
4250 (find_func_aliases_for_call): Use it more consistently.
4252 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4254 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4255 (rank_for_schedule): Use it.
4256 (schedule_block): Set it.
4258 2011-04-28 David Li <davidxl@google.com>
4260 * tree.c (crc32_string): Use crc32_byte.
4261 (crc32_byte): New function.
4262 * tree.h (crc32_byte): New function.
4263 * gcov.c (read_graph_file): Handle new cfg_cksum.
4264 (read_count_file): Ditto.
4265 * profile.c (instrument_values): Ditto.
4266 (get_exec_counts): Ditto.
4267 (read_profile_edge_counts): Ditto.
4268 (compute_branch_probabilities): Ditto.
4269 (compute_value_histograms): Ditto.
4270 (branch_prob): Ditto.
4271 (end_branch_prob): Ditto.
4272 * coverage.c (read_counts_file): Ditto.
4273 (get_coverage_counts): Ditto.
4274 (tree_coverage_counter_addr): Ditto.
4275 (coverage_checksum_string): Ditto.
4276 (coverage_begin_output): Ditto.
4277 (coverage_end_function): Ditto.
4278 (build_fn_info_type): Ditto.
4279 (build_fn_info_value): Ditto.
4280 * libgcov.c (gcov_exit): Ditto.
4281 * gcov-dump.c (tag_function): Ditto.
4282 (compute_checksum): Remove.
4284 2011-04-29 Alan Modra <amodra@gmail.com>
4286 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4287 unspec plus offset. Tidy macho code.
4289 2011-04-29 Martin Jambor <mjambor@suse.cz>
4291 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4292 node instead of a decl. Update all callers.
4293 * cgraph.h: Update declaration.
4295 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4297 PR tree-optimization/48765
4298 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4299 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4300 to indicate if loop aware SLP is being used. Scan the statements
4301 and update the vectorization factor according to the type of
4302 vectorization before statement analysis.
4303 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4304 pass it to vect_analyze_loop_operations.
4305 (vectorizable_reduction): Set number of copies to 1 in case of pure
4307 * tree-vect-stmts.c (vectorizable_conversion,
4308 vectorizable_assignment, vectorizable_shift,
4309 vectorizable_operation, vectorizable_type_demotion,
4310 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4312 (vectorizable_condition): Move the check that it is not SLP
4313 vectorization before the number of copies check.
4314 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4315 to vectorize the loop using SLP.
4317 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4320 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4323 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4325 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4326 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4327 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4328 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4329 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4331 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4332 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4333 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4334 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4335 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4336 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4338 * config/i386/linux.h (REG_NAME): Don't define.
4339 * config/i386/linux64.h (REG_NAME): Don't define.
4340 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4341 Undefine before defining.
4343 2011-04-28 Jan Hubicka <jh@suse.cz>
4345 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4346 nonconstant_names array.
4347 (estimate_function_body_sizes): Build nonconstant_names array; handle
4348 BUILT_IN_CONSTANT_P.
4350 2011-04-28 Richard Guenther <rguenther@suse.de>
4354 2011-04-28 Richard Guenther <rguenther@suse.de>
4356 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4357 as late as possible.
4359 2011-04-28 Richard Guenther <rguenther@suse.de>
4361 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4362 (debug_constraint): Do it here.
4363 (dump_constraints): And here.
4364 (rewrite_constraints): And here.
4365 (dump_constraint_edge): Remove.
4366 (dump_constraint_graph): Rewrite to produce DOT output.
4367 (solve_constraints): Build succ graph as late as possible.
4368 Dump constraint graphs before and after solving.
4370 2011-04-28 Richard Guenther <rguenther@suse.de>
4372 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4373 New function split out from ...
4374 (find_func_aliases): ... here. Call it.
4375 (find_func_aliases_for_call): Likewise.
4377 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4379 * internal-fn.h (internal_fn_name_array): Declare.
4380 (internal_fn_flags_array): Likewise.
4382 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4384 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4385 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4387 (ssemodefsuffix): Remove.
4388 (ssevecmodesuffix): New mode attribute.
4389 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4390 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4391 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4392 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4393 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4394 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4395 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4396 ssemodesuffix mode attribute.
4397 (float splitters): Use ssevecmodesuffix mode attribute.
4398 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4399 (sseinsmode): Rename from avxvecmode.
4400 (avxsizesuffix): Rename from avxmodesuffix.
4401 (sseintvecmode): Rename from avxpermvecmode.
4402 (ssedoublevecmode): Rename from ssedoublesizemode.
4403 (ssehalfvecmode): Rename from avxhalfvecmode.
4404 (ssescalarmode): Rename from avxscalarmode.
4405 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4406 templates for ssemodesuffix mode attribute.
4407 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4410 Adjust RTX patterns globally for renamed mode attributes.
4412 2011-04-27 Jan Hubcika <jh@suse.cz>
4414 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4415 * ipa-inline-analysis.c: Include alloc-pool.h.
4416 (edge_predicate_pool): New.
4417 (trye_predicate_p): New function
4418 (false_predicate_p): New function.
4419 (add_clause): Sanity check that false clauses are "optimized";
4420 never add clauses to predicate that is already known to be false.
4421 (and_predicate): Use flase_predicate_p.
4422 (evaulate_predicate): Rename to ...
4423 (evaluate_predicate): ... this one; update all callers; assert
4424 that false is not listed among possible truths.
4425 (dump_predicate): Use true_predicate_p.
4426 (account_size_time): Use false_predicate_p.
4427 (evaulate_conditions_for_edge): Rename to ...
4428 (evaluate_conditions_for_edge) ... this one.
4429 (edge_set_predicate): New function.
4430 (inline_edge_duplication_hook): Duplicate edge predicates.
4431 (inline_edge_removal_hook): Free edge predicates.
4432 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4433 (dump_inline_summary): Update.
4434 (estimate_function_body_sizes): Set edge predicates.
4435 (estimate_calls_size_and_time): Handle predicates.
4436 (estimate_callee_size_and_time): Update.
4437 (remap_predicate): Add toplev_predicate; update comment.
4438 (remap_edge_predicates): New function.
4439 (inline_merge_summary): Compute toplev predicate; update.
4440 (read_predicate): New function.
4441 (read_inline_edge_summary): Use it.
4442 (inline_read_section): Likewise.
4443 (write_predicate): New function.
4444 (write_inline_edge_summary): Use it.
4445 (inline_write_summary): Likewise.
4446 (inline_free_summary): Free alloc pool and edge summary vec.
4448 2011-04-27 Richard Guenther <rguenther@suse.de>
4450 * tree-ssa-structalias.c (changed_count): Remove.
4451 (changed): Use a bitmap.
4452 (unify_nodes): Adjust.
4453 (do_sd_constraint): Likewise.
4454 (do_ds_constraint): Likewise.
4455 (do_complex_constraint): Likewise.
4456 (solve_graph): Likewise.
4458 2011-04-27 Jan Hubicka <jh@suse.cz>
4460 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4462 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4464 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4465 (avx_vperm2f128_*_operand): Ditto.
4466 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4467 Use avx_vpermilp_parallel in insn condition.
4468 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4469 Use avx_vperm2f128_parallel in insn condition.
4471 2011-04-27 Richard Guenther <rguenther@suse.de>
4473 * Makefile.in (tree-ssa-structalias.o): Remove
4474 gt-tree-ssa-structalias.h dependency.
4475 (GTFILES): Remove tree-ssa-structalias.c.
4476 * tree.c (allocate_decl_uid): New function.
4477 (make_node_stat): Use it.
4478 (copy_node_stat): Likewise.
4479 * tree.h (allocate_decl_uid): Declare.
4480 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4481 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4482 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4483 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4484 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4485 (struct heapvar_map): Likewise.
4486 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4487 heapvar_insert): Likewise.
4488 (make_heapvar_for): Rename to ...
4489 (make_heapvar): ... this. Simplify.
4490 (fake_var_decl_obstack): New global var.
4491 (build_fake_var_decl): New function.
4492 (make_constraint_from_heapvar): Adjust.
4493 (handle_lhs_call): Likewise.
4494 (create_function_info_for): Likewise.
4495 (intra_create_variable_infos): Likewise.
4496 (init_alias_vars): Allocate fake_var_decl_obstack.
4497 (init_alias_heapvars, delete_alias_heapvars): Remove.
4498 (compute_points_to_sets): Do not call init_alias_heapvars.
4499 (ipa_pta_execute): Likewise.
4500 (delete_points_to_sets): Free fake_var_decl_obstack.
4502 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4504 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4505 (si_from_UTItype, si_to_UTItype): New functions.
4506 (__udivmodti4): Use them to implement type-punning.
4507 * config/spu/multi3.c (union qword_TItype): New data type.
4508 (si_from_TItype, si_to_TItype): New functions.
4509 (__multi3): Use them to implement type-punning.
4511 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4513 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4515 2011-04-27 Jan Hubicka <jh@suse.cz>
4517 * ipa-prop.c (function_insertion_hook_holder): New holder.
4518 (ipa_add_new_function): New function.
4519 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4520 Register/deregister holder.
4522 2011-04-27 Richard Guenther <rguenther@suse.de>
4524 PR tree-optimization/48772
4525 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4527 2011-04-27 Richard Guenther <rguenther@suse.de>
4529 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4530 TARGET_MEM_REF handling.
4532 2011-04-27 Nick Clifton <nickc@redhat.com>
4534 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4535 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4536 (REG_CLASS_NAMES): Likewise.
4537 (REG_CLASS_CONTENTS): Likewise.
4538 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4539 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4540 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4541 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4542 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4543 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4544 duplicate register classes.
4545 (frv_class_likely_spilled_p): Likewise.
4546 (frv_register_move_cost): Likewise.
4548 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4549 end of the regno_reg_class array.
4551 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4554 * c-typeck.c (build_binary_op): Don't wrap arguments if
4555 int_operands is true.
4557 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4560 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4561 targetm.calls.must_pass_in_stack for void type.
4563 2011-04-26 Jan Hubicka <jh@suse.cz>
4565 * cgraphbuild.c (build_cgraph_edges): Update call
4566 of cgraph_create_edge and cgraph_create_indirect_edge.
4567 * cgraph.c (cgraph_create_edge_including_clones,
4568 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4569 cgraph_update_edges_for_call_stmt_node): Do not take nest
4570 argument; do not initialize call_stmt_size/time.
4571 (dump_cgraph_node): Do not dump nest.
4572 (cgraph_clone_edge): Do not take loop_nest argument;
4573 do not propagate it; do not clone call_stmt_size/time.
4574 (cgraph_clone_node): Likewise.
4575 (cgraph_create_virtual_clone): Update.
4576 * cgraph.h (struct cgraph_edge): Remove
4577 call_stmt_size/call_stmt_time/loop_nest.
4578 (cgraph_create_edge, cgraph_create_indirect_edge,
4579 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4581 * tree-emutls.c (gen_emutls_addr): Update.
4582 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4583 loop_nest; handle indirect calls, too.
4584 (clone_inlined_nodes): Do not care about updating inline summaries.
4585 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4586 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4587 stream call_stmt_size/call_stmt_time/loop_nest.
4588 * ipa-inline.c (edge_badness): Update.
4589 (ipa_inline): dump summaries after inlining.
4590 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4592 (inline_edge_summary): New function.
4593 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4594 (inline_edge_removal_hook): Handle edge summaries.
4595 (inline_edge_duplication_hook): New hook.
4596 (inline_summary_alloc): Alloc hooks.
4597 (initialize_growth_caches): Do not register removal hooks.
4598 (free_growth_caches); Do not free removal hook.
4599 (dump_inline_edge_summary): New function.
4600 (dump_inline_summary): Use it.
4601 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4602 (inline_update_callee_summaries): New function.
4603 (inline_merge_summary): Use it.
4604 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4605 (read_inline_edge_summary): New function.
4606 (inline_read_section): Use it.
4607 (write_inline_edge_summary): New function.
4608 (inline_write_summary): Use it.
4609 (inline_free_summary): Free edge new holders.
4610 * tree-inline.c (copy_bb): Update.
4612 2011-04-26 Jason Merrill <jason@redhat.com>
4614 * tree-eh.c (lower_try_finally_switch): Create the label along with
4615 the CASE_LABEL_EXPR.
4617 2011-04-26 David S. Miller <davem@davemloft.net>
4618 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4620 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4621 * configure: Regenerate.
4623 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4626 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4628 (VEC_reduc): New code iterator and splitters for vector reduction.
4629 (VEC_reduc_name): Ditto.
4630 (VEC_reduc_rtx): Ditto.
4631 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4632 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4634 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4635 support for extracting SF on VSX.
4637 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4638 generating xscvspdp.
4639 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4640 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4641 double add, minimum, maximum vector reduction.
4642 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4643 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4644 optimize double vector reduction.
4645 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4647 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4649 * config/fr30/fr30.h (inhibit_libc): Don't define.
4650 * config/m32r/m32r-protos.h: Correct comment.
4651 * config/v850/v850.h (GHS_default_section_names,
4652 GHS_current_section_names): Use tree, not union tree_node *.
4654 2011-04-26 Xinliang David Li <davidxl@google.com>
4656 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4657 * c-family/c-opts.c (c_common_handle_option): Set
4658 warn_maybe_uninitialized.
4659 * opts.c (common_handle_option): Ditto.
4660 * common.opt: New option.
4661 * tree-ssa.c (warn_uninit): Add one more parameter.
4662 (warn_uninitialized_var): Pass warning code.
4663 * tree-flow.h: Interface change.
4665 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4667 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4668 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4669 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4671 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4673 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4674 * config/mips/mips.opt (mmips-tfile): Remove.
4676 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4677 mips-tdump reference to ...
4678 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4679 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4680 reference by Tru64 UNIX.
4682 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4685 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4686 is error_mark_node, set value to NULL.
4688 PR tree-optimization/48734
4689 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4690 if return value from maybe_fold_*_comparsions isn't something
4691 the code is prepared to handle.
4693 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4695 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4697 (ext_QIreg_nomode_operands): Remove.
4698 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4702 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4704 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4706 2011-04-26 Richard Guenther <rguenther@suse.de>
4708 * c-typeck.c (build_unary_op): Do not expand array-refs via
4709 pointer arithmetic. Only adjust qualifiers for function types.
4711 2011-04-26 Richard Guenther <rguenther@suse.de>
4714 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4715 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4716 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4717 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4719 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4721 * doc/extend.texi: Document __underlying_type.
4723 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4725 * config/rs6000/titan.md (automata_option "progress"): Remove.
4727 2011-04-25 Jeff Law <law@redhat.com>
4729 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4731 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4733 * system.h (ENUM_BITFIELD): Remove.
4735 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4736 Eric Botcazou <ebotcazou@adacore.com>
4738 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4739 for STORE_FLAG_VALUE==-1 case.
4741 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4744 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4745 LEGITIMATE_PIC_OPERAND_P.
4747 2011-04-24 Jan Hubicka <jh@suse.cz>
4749 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4751 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4752 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4753 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4754 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4755 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4756 Sanity check predicate length.
4757 (remap_predicate): Likewise; sanity check jump functions.
4758 (inline_read_section, inline_write_summary): Sanity check
4761 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4764 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4765 __is_literal_type, and __is_trivial; update throughout about
4766 possibly cv-qualified void types.
4768 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4770 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4771 testsuite and make it version agnostic.
4773 2011-04-22 Jan Hubicka <jh@suse.cz>
4775 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4777 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4780 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4781 to VOID_TYPE even around MODIFY_EXPR.
4783 2011-04-22 Mike Stump <mikestump@comcast.net>
4785 * gensupport.c (read_md_rtx): Fix typo in comment.
4786 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4789 2011-04-22 Jan Hubicka <jh@suse.cz>
4791 * gengtype.c (open_base_files): Add ipa-inline.h include.
4792 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4793 ipa-prop.c; update all uses.
4794 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4795 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4796 merge summary of inlined function into former caller.
4797 * ipa-inline.c (max_benefit): Remove.
4798 (edge_badness): Compensate for removal of benefits.
4799 (update_caller_keys): Use
4800 reset_node_growth_cache/reset_edge_growth_cache.
4801 (update_callee_keys): Likewise.
4802 (update_all_callee_keys): Likewise.
4803 (inline_small_functions): Do not collect max_benefit; do not reset
4804 estimated_growth; call free_growth_caches and initialize_growth_caches.
4805 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4806 struct size_time_entry): New structures.
4807 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4808 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4809 and estimated_growth.
4810 (edge_growth_cache_entry): New structure.
4811 (node_growth_cache, edge_growth_cache): New global vars.
4812 (estimate_growth): Turn into inline.
4813 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4814 initialize_growth_caches, free_growth_caches): Declare.
4815 (estimate_edge_growth): Rewrite.
4816 (estimate_edge_time): Implement as inline cache lookup.
4817 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4819 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4820 (NUM_CONDITIONS): New constant.
4821 (predicate_conditions): New enum.
4822 (IS_NOT_CONSTANT): New constant.
4823 (edge_removal_hook_holder): New var.
4824 (node_growth_cache, edge_growth_cache): New global vars.
4825 (true_predicate, single_cond_predicate, false_predicate,
4826 not_inlined_predicate, add_condition, add_clause, and_predicates,
4827 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4828 dump_clause, dump_predicate, account_size_time,
4829 evaulate_conditions_for_edge): New functions.
4830 (inline_summary_alloc): Move to heap.
4831 (inline_node_removal_hook): Clear condition and entry vectors.
4832 (inline_edge_removal_hook): New function.
4833 (initialize_growth_caches, free_growth_caches): New function.
4834 (dump_inline_summary): Update.
4835 (edge_execution_predicate): New function.
4836 (will_be_nonconstant_predicate): New function.
4837 (estimate_function_body_sizes): Compute BB and constantness predicates.
4838 (compute_inline_parameters): Do not clear estimated_growth.
4839 (estimate_edge_size_and_time): New function.
4840 (estimate_calls_size_and_time): New function.
4841 (estimate_callee_size_and_time): New function.
4842 (remap_predicate): New function.
4843 (inline_merge_summary): New function.
4844 (do_estimate_edge_time): New function based on...
4845 (estimate_edge_time): ... this one.
4846 (do_estimate_edge_growth): New function.
4847 (do_estimate_growth): New function based on....
4848 (estimate_growth): ... this one.
4849 (inline_analyze_function): Analyze after deciding on jump functions.
4850 (inline_read_section): New function.
4851 (inline_read_summary): Use it.
4852 (inline_write_summary): Write all the new data.
4853 * ipa-prop.c (ipa_get_param_decl_index): Export.
4854 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4855 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4857 (ipa_get_lattice): Move here from ipa-cp.c
4858 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4859 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4860 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4861 cgraph_edge_inlinable_p): Remove.
4862 * cgraphunit.c: Include ipainline.h
4863 (cgraph_process_new_functions): Update call of
4864 compute_inline_parameters.
4866 2011-04-22 Richard Guenther <rguenther@suse.de>
4868 * tree.c (build_int_cst): Properly create canonicalized integer
4870 (build_int_cst_type): Remove scary comments.
4872 2011-04-22 Xinliang David Li <davidxl@google.com>
4874 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4875 by default when -Wno-error is not specified.
4876 * opts-global.c (decode_options): Remove call to
4877 control_warning_options.
4879 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4881 PR tree-optimization/48717
4882 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4883 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4885 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4887 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4888 definition where used.
4890 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4893 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4894 TREE_STATIC variables declared inside of some OpenMP construct.
4896 2011-04-22 Martin Jambor <mjambor@suse.cz>
4899 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4901 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4904 * c-typeck.c (pop_init_level): Do not warn about initializing
4907 2011-04-22 Alan Modra <amodra@gmail.com>
4909 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4910 when returning call_cookie.
4911 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4912 pointers, to functions with no more vector args than the current
4913 function, and some non-local calls for ABI_V4.
4914 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4915 sibcall_nonlocal_aix64): Combine to ..
4916 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4917 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4918 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4919 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4920 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4922 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4923 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4924 sibcall_value_symbolic_64): Delete.
4926 2011-04-21 Xinliang David Li <davidxl@google.com>
4928 * cgraph.h: Remove pid.
4929 * cgraph.c: Remove pid.
4930 * value-prof.c (init_node_map): New function.
4931 (del_node_map): New function.
4932 (find_func_by_funcdef_no): New function.
4933 (gimple_ic_transform): Call new function.
4934 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4935 * function.c (get_last_funcdef_no): New function.
4936 * function.h (get_last_funcdef_no): New function.
4937 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4938 to libgcov function.
4939 (tree-profiling): Call node map init and delete function.
4941 2011-04-21 Ian Lance Taylor <iant@google.com>
4943 * godump.c (go_format_type): Use exported Go name for anonymous
4946 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4948 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4949 Call builtin_function_type_list instead of builtin_function_type.
4950 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4952 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4954 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4955 build_function_type_list instead of build_function_type.
4956 Delete variable `endlink'.
4958 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4960 * config/s390/s390.c (s390_init_builtins): Call
4961 build_function_type_list instead of build_function_type.
4963 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4965 * config/ia64/ia64.c (ia64_init_builtins): Call
4966 build_function_type_list instead of builtin_function_type.
4968 2011-04-21 Easwaran Raman <eraman@google.com>
4970 * cfgexpand.c (stack_var): Remove OFFSET...
4971 (add_stack_var): ...and its reference here...
4972 (expand_stack_vars): ...and here.
4973 (stack_var_cmp): Sort by descending order of size.
4974 (partition_stack_vars): Change heuristic.
4975 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4976 (dump_stack_var_partition): Add newline after each partition.
4978 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4979 Jeff Law <law@redhat.com>
4981 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4982 * gengtype.c (matching_file_name_substitute): Likewise.
4984 2011-04-21 Richard Guenther <rguenther@suse.de>
4987 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4989 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4991 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4993 2011-04-21 Richard Guenther <rguenther@suse.de>
4995 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4998 2011-04-21 Richard Guenther <rguenther@suse.de>
5000 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5001 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5002 Use DECL_P, not SSA_VAR_P.
5003 (ptr_derefs_may_alias_p): Likewise.
5004 (ptr_deref_may_alias_ref_p_1): Likewise.
5005 (decl_refs_may_alias_p): Likewise.
5006 (refs_may_alias_p_1): Likewise.
5007 (ref_maybe_used_by_call_p_1): Likewise.
5008 (call_may_clobber_ref_p_1): Likewise.
5009 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5010 are either MEM_REF or TARGET_MEM_REF.
5011 (indirect_refs_may_alias_p): Likewise.
5012 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5013 for MEM_EXPR of indirect calls.
5015 2011-04-21 Tristan Gingold <gingold@adacore.com>
5017 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5018 (dst_file_info_struct): Remove flen field.
5019 (lookup_filename): Remove code that set flen field.
5021 2011-04-21 Tristan Gingold <gingold@adacore.com>
5023 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5025 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5028 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5029 vec_extract and vec_concat for non-SSE4_1 targets.
5031 2011-04-21 Richard Guenther <rguenther@suse.de>
5033 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5036 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5038 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5040 (FILE): Don't undefine.
5042 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5044 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5046 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5048 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5049 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5050 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5052 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5053 definitions where used.
5054 * config/microblaze/microblaze.h (struct microblaze_args): Use
5055 rtx, not struct rtx_def *.
5056 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5058 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5059 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5060 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5061 not struct rtx_def *.
5062 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5064 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5066 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5068 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5070 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5071 operand_equal_p to compare DR_BASE_ADDRESSes.
5072 (vect_check_interleaving): Likewise.
5074 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5077 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5078 for all Neon struct constants.
5080 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5082 * target.def (legitimate_constant_p): New hook.
5083 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5084 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5085 * doc/tm.texi: Regenerate.
5086 * hooks.h (hook_bool_mode_rtx_true): Declare.
5087 * hooks.c (hook_bool_mode_rtx_true): Define.
5088 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5089 * calls.c (precompute_register_parameters): Replace uses of
5090 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5091 (emit_library_call_value_1): Likewise.
5092 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5093 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5094 * ira-costs.c (scan_one_insn): Likewise.
5095 * recog.c (general_operand, immediate_operand): Likewise.
5096 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5097 * reload1.c (init_eliminable_invariants): Likewise.
5099 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5101 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5102 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5104 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5105 * config/alpha/predicates.md (input_operand): Update call to
5106 alpha_legitimate_constant_p.
5108 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5109 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5110 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5111 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5112 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5113 (arm_legitimate_constant_p): New functions.
5114 (arm_cannot_force_const_mem): Make static.
5116 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5118 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5119 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5120 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5121 instead of bfin_legitimate_constant_p.
5122 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5123 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5125 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5127 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5129 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5130 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5131 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5132 (frv_legitimate_constant_p): Make static. Add a mode argument.
5134 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5135 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5136 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5138 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5139 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5140 * config/i386/i386.c (legitimate_constant_p): Rename to...
5141 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5143 (ix86_cannot_force_const_mem): Update accordingly.
5144 (ix86_legitimate_address_p): Likewise.
5145 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5146 * config/i386/i386.md: Update commentary.
5148 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5149 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5150 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5151 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5153 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5155 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5156 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5157 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5158 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5160 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5161 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5162 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5164 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5165 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5166 (m32r_legitimate_constant_p): New function.
5168 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5169 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5170 LEGITIMATE_CONSTANT_P.
5171 (LEGITIMATE_CONSTANT_P): Delete.
5172 * config/m68k/m68k.c (m68k_expand_prologue): Call
5173 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5174 (m68k_legitimate_constant_p): New function.
5175 * config/m68k/m68k.md: Update comments.
5177 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5178 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5179 (mcore_legitimate_constant_p): New function.
5181 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5182 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5183 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5184 Add a mode argument.
5185 (mep_legitimate_address): Update accordingly.
5186 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5188 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5190 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5191 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5192 static. Check OP's mode for VOIDmode.
5193 (microblaze_legitimate_constant_p): New function.
5194 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5196 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5197 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5198 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5199 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5200 * config/mips/predicates.md: Update comments.
5202 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5203 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5204 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5205 (mmix_legitimate_constant_p): Make static, return a bool, and take
5207 (mmix_print_operand_address): Update accordingly.
5209 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5211 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5212 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5213 static. Add a mode argument.
5214 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5216 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5218 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5219 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5220 (pa_legitimate_constant_p): New function.
5222 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5224 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5225 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5226 (pdp11_legitimate_constant_p): New function.
5228 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5229 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5230 (rs6000_legitimate_constant_p): New function.
5232 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5233 (rx_legitimate_constant_p): ...this.
5234 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5235 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5236 (rx_legitimate_constant_p): ...this.
5237 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5238 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5240 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5241 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5242 * config/s390/s390.c (legitimate_constant_p): Rename to...
5243 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5244 and add a mode argument.
5245 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5247 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5249 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5250 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5251 (sh_legitimate_constant_p): New function.
5253 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5254 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5255 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5256 (legitimate_constant_p): Rename to...
5257 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5259 (constant_address_p): Update accordingly.
5261 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5262 argument and return a bool.
5263 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5264 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5265 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5266 (spu_rtx_costs): Update accordingly.
5267 * config/spu/predicates.md (vec_imm_operand): Likewise.
5269 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5271 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5272 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5273 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5275 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5276 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5277 * config/vax/vax.c (legitimate_constant_p): Likewise.
5279 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5280 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5281 (xtensa_legitimate_constant_p): New function.
5283 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5285 * target.def (cannot_force_const_mem): Add a mode argument.
5286 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5287 * doc/tm.texi: Regenerate.
5288 * hooks.h (hook_bool_mode_rtx_false): Declare.
5289 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5290 (hook_bool_mode_const_rtx_true): Likewise.
5291 (hook_bool_mode_rtx_false): New function.
5292 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5293 to be non-VOID. Update call to cannot_force_const_mem.
5294 (find_reloads): Update accordingly.
5295 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5296 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5298 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5299 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5300 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5301 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5302 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5303 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5304 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5305 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5306 (m68k_cannot_force_const_mem): ...this new function.
5307 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5309 (mips_const_insns, mips_legitimize_const_move): Update calls.
5310 (mips_secondary_reload_class): Likewise.
5311 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5312 (pa_cannot_force_const_mem): ...this new function.
5313 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5314 (rs6000_cannot_force_const_mem): ...this new function.
5315 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5317 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5318 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5320 (xtensa_cannot_force_const_mem): ...this new function.
5322 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5324 * config/mips/mips.c (mips16_build_function_stub): Call
5325 build_function_type_list instead of build_function_type.
5326 (mips16_build_call_stub): Likewise.
5328 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5330 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5331 instead of build_function_type.
5333 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5335 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5336 instead of build_function_type.
5338 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5341 * config/i386/i386.md (insv): Change operand 0 constraint to
5342 "register_operand". Change operand 1 and 2 constraint to
5343 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5344 * config/i386/sse.md (sse4_1_pinsrb): Export.
5345 (sse2_pinsrw): Ditto.
5346 (sse4_1_pinsrd): Ditto.
5347 (sse4_1_pinsrq): Ditto.
5348 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5349 * config/i386/i386.c (ix86_expand_pinsr): New.
5351 2011-04-20 Easwaran Raman <eraman@google.com>
5353 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5354 containing union type only with -fstrict-aliasing.
5356 2011-04-20 Jim Meyering <meyering@redhat.com>
5358 Remove useless if-before-free tests.
5359 * calls.c (expand_call, save_area): Likewise.
5360 * cfgcleanup.c (try_forward_edges): Likewise.
5361 * collect2.c (collect_execute): Likewise.
5362 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5363 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5364 * coverage.c (coverage_checksum_string): Likewise.
5365 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5366 * cselib.c (cselib_init): Likewise.
5367 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5368 (df_set_clean_cfg): Likewise.
5369 * function.c (free_after_compilation): Likewise.
5370 * gcc.c (do_spec_1, main): Likewise.
5371 * gcov.c (create_file_names): Likewise.
5372 * gensupport.c (identify_predicable_attribute): Likewise.
5373 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5374 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5375 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5376 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5377 * ipa-pure-const.c (local_pure_const): Likewise.
5378 * ipa-reference.c (propagate): Likewise.
5379 * ira-costs.c (free_ira_costs): Likewise.
5380 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5381 * matrix-reorg.c (mat_free): Likewise.
5382 * prefix.c (get_key_value): Likewise.
5383 * profile.c (compute_value_histograms): Likewise.
5384 * reload1.c (free_reg_equiv): Likewise.
5385 * sched-deps.c (free_deps): Likewise.
5386 * sel-sched-ir.c (fence_clear): Likewise.
5387 * sese.c (set_rename, if_region_set_false_region): Likewise.
5388 * tree-data-ref.c (free_rdg): Likewise.
5389 * tree-eh.c (lower_try_finally): Likewise.
5390 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5391 * tree-ssa-live.c (delete_var_map): Likewise.
5392 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5393 * tree-ssa-pre.c (phi_trans_add): Likewise.
5395 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5397 PR tree-optimization/48611
5398 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5399 beyond ERT_MUST_NOT_THROW region.
5401 2011-04-20 Catherine Moore <clm@codesourcery.com>
5403 * config/mips/mips.opt (mfix-24k): New.
5404 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5405 * config/mips/mips.md (length): Increase by 4 for stores if
5407 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5408 all noreorder if fixing 24K errata.
5409 * doc/invoke.texi: Document mfix-24k.
5411 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5413 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5414 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5416 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5418 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5419 (const_ok_for_op): ... to here.
5421 2011-04-20 Kai Tietz <ktietz@redhat.com>
5423 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5424 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5426 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5428 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5430 2011-04-20 Richard Guenther <rguenther@suse.de>
5432 PR tree-optimization/47892
5433 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5436 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5438 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5440 2011-04-20 Tristan Gingold <gingold@adacore.com>
5442 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5444 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5448 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5449 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5450 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5451 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5452 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5454 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5457 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5458 (avr_asm_named_section, avr_asm_output_aligned_common,
5459 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5460 New functions to update...
5461 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5462 (avr_asm_init_sections): Overwrite section callbacks for
5463 data_section, bss_section.
5464 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5466 (avr_file_end): ...here.
5468 2011-04-20 Richard Guenther <rguenther@suse.de>
5471 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5472 objects and types here. Adjust for their offset before comparing.
5474 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5476 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5479 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5481 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5482 (GIMPLE_H): Include $(INTERNAL_FN_H).
5483 (OBJS-common): Add internal-fn.o.
5484 (internal-fn.o): New rule.
5485 * internal-fn.def: New file.
5486 * internal-fn.h: Likewise.
5487 * internal-fn.c: Likewise.
5488 * gimple.h: Include internal-fn.h.
5489 (GF_CALL_INTERNAL): New gf_mask.
5490 (gimple_statement_call): Put fntype into a union with a new
5492 (gimple_build_call_internal): Declare.
5493 (gimple_build_call_internal_vec): Likewise.
5494 (gimple_call_same_target_p): Likewise.
5495 (gimple_call_internal_p): New function.
5496 (gimple_call_internal_fn): Likewise.
5497 (gimple_call_fntype): Return null for internal calls.
5498 (gimple_call_set_fntype): Assert that the function is not internal.
5499 (gimple_call_set_fn): Likewise.
5500 (gimple_call_set_fndecl): Likewise.
5501 (gimple_call_set_internal_fn): New function.
5502 (gimple_call_addr_fndecl): Handle null functions.
5503 (gimple_call_return_type): Likewise null types.
5504 * gimple.c (gimple_build_call_internal_1): New function.
5505 (gimple_build_call_internal): Likewise.
5506 (gimple_build_call_internal_vec): Likewise.
5507 (gimple_call_same_target_p): Likewise.
5508 (gimple_call_flags): Handle calls to internal functions.
5509 (gimple_call_fnspec): New function.
5510 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5511 (gimple_has_side_effects): Handle null functions.
5512 (gimple_rhs_has_side_effects): Likewise.
5513 (gimple_call_copy_skip_args): Handle calls to internal functions.
5514 * cfgexpand.c (expand_call_stmt): Likewise.
5515 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5516 * gimple-fold.c (gimple_fold_call): Handle null functions.
5517 (gimple_fold_stmt_to_constant_1): Don't fold
5518 calls to internal functions.
5519 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5521 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5522 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5523 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5524 (do_warn_unused_result): Likewise.
5525 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5526 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5527 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5528 the target of a call.
5529 (initialize_hash_element): Update accordingly.
5530 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5531 (iterative_hash_hashable_expr): Handle calls to internal functions.
5532 (print_expr_hash_elt): Likewise.
5533 * tree-ssa-pre.c (can_value_number_call): Likewise.
5534 (eliminate): Handle null functions.
5535 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5536 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5537 (find_func_aliases): Likewise.
5538 * value-prof.c (gimple_ic_transform): Likewise.
5539 (gimple_indirect_call_to_profile): Likewise.
5540 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5541 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5543 2011-04-19 Jan Hubicka <jh@suse.cz>
5545 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5546 * ipa-inline.c (inline_small_functions): Compute summaries first,
5547 populate heap later.
5549 2011-04-19 Jan Hubicka <jh@suse.cz>
5551 * cgraph.h (save_inline_function_body): Remove.
5552 * ipa-inline-transform.c: New file, broke out of...
5553 * ipa-inline.c: ... this one; Update toplevel comment.
5554 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5556 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5557 (cgraph_mark_inline_edge): Rename to inline_call; move to
5558 ipa-inline-transform.c.
5559 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5560 move to ipa-inline-transform.c
5561 (recursive_inlining, inline_small_functions, flatten_function,
5562 ipa_inline, inline_always_inline_functions,
5563 early_inline_small_functions): Update.
5564 (inline_transform): Move to ipa-inline-transform.c.
5565 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5567 * Makefile.in (ipa-inline-transform.o): New file.
5568 * cgraphunit.c (save_inline_function_body): Move to
5569 ipa-inline-transform.c
5571 2011-04-19 DJ Delorie <dj@redhat.com>
5573 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5574 registers if we already know there aren't any.
5575 (m32c_emit_epilogue): Don't emit a barrier here.
5576 (m32c_emit_eh_epilogue): Likewise.
5577 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5578 operands at expand time.
5579 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5581 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5582 duplicates. Provide aliases instead.
5583 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5584 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5587 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5589 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5590 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5591 (general_or_i64_p, sparc_register_move_cost): New function.
5593 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5595 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5596 Add lynx, mipssde. Sort table.
5598 2011-04-19 Xinliang David Li <davidxl@google.com>
5600 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5603 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5606 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5607 is a SUBREG with non-MODE_INT mode inside of it.
5609 2011-04-19 Martin Jambor <mjambor@suse.cz>
5611 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5612 also according to actual contants.
5613 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5614 (gimple_fold_call): Use it.
5615 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5617 2011-04-19 Martin Jambor <mjambor@suse.cz>
5619 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5620 non-pointer assignments.
5622 2011-04-19 Martin Jambor <mjambor@suse.cz>
5624 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5625 account anc_offset and otr_type from the indirect edge info.
5626 * ipa-prop.c (get_ancestor_addr_info): New function.
5627 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5628 get_ancestor_addr_info, call it.
5629 (ipa_note_param_call): Do not initialize information about polymorphic
5630 calls, return the indirect call graph edge. Remove the last
5631 parameter, adjust all callers.
5632 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5633 parameters. Initialize polymorphic information in the indirect edge.
5635 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5638 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5639 the types if they have different enumeration identifiers.
5641 2011-04-19 Jan Hubicka <jh@suse.cz>
5643 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5644 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5645 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5646 (optimize_function_for_size_p) ... here.
5648 2011-04-19 Richard Guenther <rguenther@suse.de>
5651 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5654 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5656 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5657 if DECL_NO_INLINE_WARNING_P is set on the function.
5659 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5662 * reload1.c (inc_for_reload): Return void. All callers changed.
5663 (emit_input_reload_insns): Don't try to delete previous output
5664 reloads to a register, or record spill_reg_store for autoincs.
5666 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5668 * gengtype.h: Updated copyright year.
5669 (struct input_file_st): Add inpisplugin field.
5670 (type_fileloc): New function.
5672 (write_typed_struct_alloc_def): Add gcc_assert.
5673 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5674 (write_typed_alloc_defns): Don't output for plugin files.
5675 (input_file_by_name): Clear inpisplugin field.
5676 (main): Set inpisplugin field for plugin files.
5678 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5680 * gengtype-state.c (string_eq): New.
5681 (read_state): Use string_eq instead of strcmp when creating the
5684 2011-04-19 Wei Guozhi <carrot@google.com>
5687 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5688 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5690 * config/arm/constraints.md (Uu): New constraint.
5691 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5693 2011-04-19 Tristan Gingold <gingold@adacore.com>
5695 * config.gcc (-*-*-*vms): Added.
5696 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5698 * config/vms/vms-ld.c: New file.
5699 * config/vms/vms-ar.c: New file.
5700 * config/vms/t-vmsnative: New file.
5702 2011-04-18 Xinliang David Li <davidxl@google.com>
5704 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5706 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5709 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5710 if TREE_TYPE (v) is non-NULL.
5712 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5713 gimple_get_virt_mehtod_for_binfo.
5714 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5715 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5717 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5719 2011-04-18 Michael Matz <matz@suse.de>
5720 Steve Ellcey <sje@cup.hp.com>
5722 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5723 use its mode as source mode if it isn't VOIDmode.
5725 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5727 * doc/passes.texi: Fill crossref nodes.
5729 2011-04-18 Jim Meyering <meyering@redhat.com>
5731 Fix doubled-word typos in comments and strings
5732 * config/alpha/vms-unwind.h: s/for for/for/
5733 * config/arm/unwind-arm.h: Likewise.
5734 * config/microblaze/microblaze.c: Likewise.
5735 * config/sh/constraints.md: s/in in/in/
5736 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5738 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5740 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5741 (AVX_FLOAT_MODE_P): Ditto.
5742 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5743 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5744 (AVX_VEC_FLOAT_MODE_P): Ditto.
5745 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5746 (UNSPEC_MASKSTORE): Ditto.
5747 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5748 Merge from <sse>_movmsk<ssemodesuffix> and
5749 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5750 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5752 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5753 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5754 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5756 2011-04-18 Jan Hubicka <jh@suse.cz>
5758 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5760 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5761 (want_inline_function_called_once_p): Break out the logic from
5763 (edge_badness): Ensure that profile is not misupdated.
5764 (lookup_recursive_calls): Prioritize by call frequencies.
5765 (inline_small_functions): Move program size estimates here;
5766 actually process whole queue even when unit growth has been
5767 met. (to properly compute inline_failed reasons and for the
5768 case unit size decrease.) Revisit comments on recursive inlining.
5769 (ipa_inline): Remove unit summary code; first inline hot calls
5770 of functions called once, cold calls next.
5771 (order, nnodes): Remove unused variables.
5772 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5773 (GTFILES): Remove ipa-inline.c
5774 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5776 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5778 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5780 2011-04-18 Jie Zhang <jie@codesourcery.com>
5781 Richard Earnshaw <rearnsha@arm.com>
5783 * arm.c (neon_builtin_type_bits): Remove.
5784 (typedef enum neon_builtin_mode): New.
5785 (T_MAX): Don't define.
5786 (typedef enum neon_builtin_datum): Remove bits, codes[],
5787 num_vars and base_fcode. Add mode, code and fcode.
5788 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5789 VAR10): Change accordingly.
5790 (neon_builtin_data[]): Change accordingly
5791 (arm_init_neon_builtins): Change accordingly.
5792 (neon_builtin_compare): Remove.
5793 (locate_neon_builtin_icode): Remove.
5794 (arm_expand_neon_builtin): Change accordingly.
5796 * arm.h (enum arm_builtins): Move to ...
5797 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5799 * arm.c (arm_builtin_decl): Declare.
5800 (TARGET_BUILTIN_DECL): Define.
5801 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5802 (arm_builtin_decls[]): New.
5803 (arm_init_neon_builtins): Store builtin declarations in
5804 arm_builtin_decls[].
5805 (arm_init_tls_builtins): Likewise.
5806 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5807 (arm_builtin_decl): New.
5809 2011-04-18 Richard Guenther <rguenther@suse.de>
5811 * tree.c (upper_bound_in_type): Build properly canonicalized
5813 (lower_bound_in_type): Likewise.
5815 2011-04-18 Richard Guenther <rguenther@suse.de>
5817 * gimple.h (gimple_call_addr_fndecl): New function.
5818 (gimple_call_fndecl): Use it.
5819 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5821 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5822 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5824 2011-04-18 Richard Guenther <rguenther@suse.de>
5827 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5829 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5832 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5833 DECL_IN_CONSTANT_POOL without RTL.
5835 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5836 Ira Rosen <ira.rosen@linaro.org>
5839 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5840 to match neon_vzip/vuzp/vtrn_internal.
5841 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5842 outputs explicitly dependent on both inputs.
5843 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5845 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5847 PR tree-optimization/48616
5848 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5849 whether the shift is by scalar or vector based on whether all SLP
5850 scalar stmts have the same rhs.
5852 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5854 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5857 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5860 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5863 2011-04-17 Jan Hubicka <jh@suse.cz>
5865 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5866 * cgrpahunit.c (cgraph_finalize_function): Do not set
5867 finalized_by_frontend.
5868 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5869 finalized_by_frontend.
5871 2011-04-17 Jan Hubicka <jh@suse.cz>
5873 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5874 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5875 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5876 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5878 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5880 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5882 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5885 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5886 is non-null before accessing it.
5887 (input_cgraph): Remove trailing spaces.
5889 2011-04-17 Revital Eres <revital.eres@linaro.org>
5891 * params.def (sms-min-sc): New param flag.
5892 * modulo-sched.c (sms_schedule): Use it.
5893 * doc/invoke.texi (sms-min-sc): Document it.
5895 2011-04-17 Jan Hubicka <jh@suse.cz>
5897 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5898 present, also set gimple_call_set_cannot_inline.
5899 * ipa-inline.c: Update toplevel comment.
5901 (cgraph_clone_inlined_nodes): Fix linebreaks.
5902 (cgraph_check_inline_limits): Restructure to ...
5903 (caller_growth_limits): ... this one; be more tolerant
5904 on growth in nested inline chains; add explanatory comment;
5905 fix stack accounting thinko introduced by previous patch.
5906 (cgraph_default_inline_p): Remove.
5907 (report_inline_failed_reason): New function.
5908 (can_inline_edge_p): New function.
5909 (can_early_inline_edge_p): New function.
5910 (leaf_node_p): Move upwards in file.
5911 (want_early_inline_function_p): New function.
5912 (want_inline_small_function_p): New function.
5913 (want_inline_self_recursive_call_p): New function.
5914 (cgraph_edge_badness): Rename to ...
5915 (edge_badness) ... this one; fix linebreaks.
5916 (update_edge_key): Update call of edge_baddness; add
5917 detailed dump about queue updates.
5918 (update_caller_keys): Use can_inline_edge_p and
5919 want_inline_small_function_p.
5920 (cgraph_decide_recursive_inlining): Rename to...
5921 (recursive_inlining): Use can_inline_edge_p and
5922 want_inline_self_recursive_call_p; simplify and remove no longer
5924 (cgraph_set_inline_failed): Remove.
5925 (add_new_edges_to_heap): Use can_inline_edge_p and
5926 want_inline_small_function_p.
5927 (cgraph_decide_inlining_of_small_functions): Rename to ...
5928 (inline_small_functions): ... this one; cleanup; use
5929 can/want predicates; cleanup debug ouput; work edges till fibheap
5930 is exhausted and do not stop once unit growth is reached; remove
5931 later loop processing remaining edges.
5932 (cgraph_flatten): Rename to ...
5933 (flatten_function): ... this one; use can_inline_edge_p
5934 and can_early_inline_edge_p predicates.
5935 (cgraph_decide_inlining): Rename to ...
5936 (ipa_inline): ... this one; remove unreachable nodes before
5937 inlining functions called once; simplify the pass.
5938 (cgraph_perform_always_inlining): Rename to ...
5939 (inline_always_inline_functions): ... this one; use
5940 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5941 (cgraph_decide_inlining_incrementally): Rename to ...
5942 (early_inline_small_functions): ... this one; simplify
5943 using new predicates; cleanup; make dumps prettier.
5944 (cgraph_early_inlining): Rename to ...
5945 (early_inliner): newer inline regular functions into always-inlines;
5946 fix updating of call stmt summaries.
5947 (pass_early_inline): Update for new names.
5948 (inline_transform): Fix formating.
5949 (gate_cgraph_decide_inlining): Rename to ...
5950 (pass_ipa_inline): ... this one.
5951 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5952 * ipa-inline-analysis.c (dump_inline_summary): Update.
5953 (compute_inline_parameters): Do not compute disregard_inline_limits;
5954 look for mismatching arguments.
5955 (estimate_growth): Fix handlig of non-trivial self recursion.
5956 (inline_read_summary): Do not read info->disregard_inline_limits.
5957 (inline_write_summary): Do not write info->disregard_inline_limits.
5958 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5959 and move all checks into can_inline_edge_p predicate; re-enable code
5960 comparing optimization levels.
5961 (expand_call_inline): Do not test inline_forbidden_into_p.
5962 * Makefile.in (ipa-inline.o): Update arguments.
5964 2011-04-17 Revital Eres <revital.eres@linaro.org>
5966 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5968 2011-04-17 Revital Eres <revital.eres@linaro.org>
5970 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5972 2011-04-17 Michael Matz <matz@suse.de>
5974 PR tree-optimization/48622
5976 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5977 in same order as they're written.
5979 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5981 * config/pa/predicates.md: Reorganize and simplify predicates.
5982 Eliminate duplicate code checks.
5983 (arith_operand): Rename to arith14_operand
5984 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5985 * config/pa/pa.md: Use renamed operands.
5986 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5987 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5988 arith11_operand, adddi3_operand, indexed_memory_operand,
5989 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5990 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5991 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5992 move_dest_operand, move_src_operand, prefetch_cc_operand,
5993 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5994 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5995 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5996 div_operand, int5_operand, movb_comparison_operator,
5997 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5998 arith_double_operand, ireg_operand, lhs_lshift_operand,
5999 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6000 integer_store_memory_operand): Likewise.
6001 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6002 (integer_store_memory_operand, read_only_operand,
6003 function_label_operand, borx_reg_operand,
6004 non_hard_reg_operand): Likewise.
6005 (eq_neq_comparison_operator): Delete unused operator.
6006 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6007 function_label_operand.
6008 (emit_move_sequence): Likewise.
6010 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6012 * config/i386/sse.md (sseunpackmode): New mode attribute.
6013 (ssepackmode): Ditto.
6014 (vec_pack_trunc_<mode>): Macroize expander from
6015 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6016 (vec_unpacks_lo_<mode>): Macroize expander from
6017 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6018 (vec_unpacks_hi_<mode>): Macroize expander from
6019 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6020 (vec_unpacku_lo_<mode>): Macroize expander from
6021 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6022 (vec_unpacku_hi_<mode>): Macroize expander from
6023 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6024 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6025 ix86_expand_sse4_unpack.
6026 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6028 2011-04-16 Jan Hubicka <jh@suse.cz>
6030 * cgraphbuild.c: Include ipa-inline.h.
6031 (reset_inline_failed): Use initialize_inline_failed.
6032 * cgraph.c: Include ipa-inline.h.
6033 (cgraph_create_node_1): Do not initialize estimated_growth.
6034 (initialize_inline_failed): More to ipa-inline-analysis.c
6035 (dump_cgraph_node): Do not dump inline flags.
6036 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6037 and disregard_inline_limits flags.
6038 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6039 time, size, estimated_growth.
6040 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6042 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6043 DECL_DISREGARD_INLINE_LIMITS.
6044 (cgraph_analyze_function): Do not initialize
6045 node->local.disregard_inline_limits.
6046 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6047 inlinable, versionable and disregard_inline_limits.
6048 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6049 cgraph_check_inline_limits, cgraph_default_inline_p,
6050 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6051 add_new_edges_to_heap): Update.
6052 (cgraph_decide_inlining_of_small_function): Update; set
6053 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6054 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6055 cgraph_decide_inlining_incrementally): Update.
6056 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6057 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6058 time, size and estimated_growth parameters.
6059 (estimate_edge_growth): Update.
6060 (initialize_inline_failed): Declare.
6061 * ipa-split.c: Include ipa-inline.h
6062 (execute_split_functions): Update.
6063 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6064 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6065 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6066 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6067 estimated_growth to INT_MIN.
6068 (inline_node_duplication_hook): Likewise.
6069 (dump_inline_summary): Dump new fields.
6070 (compute_inline_parameters): Update.
6071 (estimate_edge_time, estimate_time_after_inlining,
6072 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6073 inline_write_summary):
6074 (initialize_inline_failed): Move here from cgraph.c.
6075 * tree-sra.c: Include ipa-inline.h.
6076 (ipa_sra_preliminary_function_checks): Update.
6077 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6080 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6082 * config/i386/sse.md (V16): New mode iterator.
6084 (AVXMODEQI, AVXMODEDI): Remove.
6085 (sse2, sse3): New mode attribute.
6086 (mov<mode>): Use V16 mode iterator.
6087 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6088 (push<mode>1): Use V16 mode iterator.
6089 (movmisalign<mode>): Ditto.
6090 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6091 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6092 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6093 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6094 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6095 avx_movdqu<avxmodesuffix>.
6096 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6097 *avx_movdqu<avxmodesuffix>.
6098 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6099 avx_lddqu<avxmodesuffix>.
6100 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6101 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6102 avx_movnt<AVXMODEDI:mode>.
6103 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6104 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6106 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6109 * haifa-sched.c (prune_ready_list, schedule_block): Use
6110 sched_pressure_p rather than flag_sched_pressure.
6112 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6114 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6115 cgraph_get_node instead of cgraph_get_create_node.
6117 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6119 * cfgexpand.c (expand_debug_expr): Use
6120 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6122 2011-04-15 Michael Matz <matz@suse.de>
6124 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6125 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6126 * function.c (gimplify_parameters): Ditto.
6127 * gimplify.c (gimplify_vla_decl): Ditto.
6129 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6130 (gimple_call_set_alloca_for_var): New inline function.
6131 (gimple_call_alloca_for_var_p): Ditto.
6132 * gimple.c (gimple_build_call_from_tree): Remember
6133 CALL_ALLOCA_FOR_VAR_P state.
6134 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6136 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6137 calls if they were for VLA objects.
6139 2011-04-15 Martin Jambor <mjambor@suse.cz>
6141 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6144 2011-04-15 Martin Jambor <mjambor@suse.cz>
6147 * tree-emutls.c (lower_emutls_function_body): Call
6148 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6151 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6153 * c-decl.c (detect_field_duplicates): Call
6154 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6156 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6158 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6159 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6160 * ipa-pure-const.c (check_stmt): Call it.
6161 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6163 2011-04-15 Richard Guenther <rguenther@suse.de>
6165 PR tree-optimization/48290
6166 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6167 Properly decide inhibiting propagation based on the valueized
6168 operand. Do loop-closed SSA form preserving here ...
6169 (init_copy_prop): ... not here.
6171 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6174 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6175 (*ieee_smax<mode>3): Likewise.
6177 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6179 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6180 Replace match_operand with match_dup for the third operand in
6183 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6185 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6186 to track processing of conditionals. Update all callers.
6187 (try_combine, simplify_if_then_else): Update.
6189 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6191 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6194 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6196 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6197 instead of match_operand for operand 3.
6199 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6201 * recog.h (insn_operand_data): Add an "allows_mem" field.
6202 * genoutput.c (output_operand_data): Initialize it.
6203 * optabs.c (maybe_legitimize_operand_same_code): New function.
6204 (maybe_legitimize_operand): Use it when matching the original
6207 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6209 * gimplify.c: Fix issues in comments throughout.
6210 (voidify_wrapper_expr): Fix long line.
6211 (build_stack_save_restore): Likewise.
6212 (gimplify_loop_expr): Likewise.
6213 (gimplify_compound_lval): Likewise.
6214 (gimplify_init_ctor_eval): Likewise.
6215 (gimplify_modify_expr_rhs): Likewise.
6216 (omp_notice_threadprivate_variable): Likewise.
6218 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6220 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6221 original one if this is not a builtin function.
6223 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6226 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6227 offset it as needed based on top 2 bits in operands[3], change
6228 MEM mode to SFmode and mask those 2 bits away from operands[3].
6230 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6232 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6233 change from objc_declare_protocols() to objc_declare_protocol().
6235 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6237 * config/i386/sse.md (sse4_1): New mode attribute.
6238 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6239 avx_blend<ssemodesuffix><avxmodesuffix> and
6240 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6241 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6242 avx_blendv<ssemodesuffix><avxmodesuffix> and
6243 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6244 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6245 avx_dp<ssemodesuffix><avxmodesuffix> and
6246 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6247 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6248 (sse4_1_packusdw): Merge with *avx_packusdw.
6249 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6250 (sse4_1_pblendw): Merge with *avx_pblendw.
6251 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6252 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6253 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6255 (sse4_1_round<ssescalarmodesuffix>): Merge with
6256 *avx_round<ssescalarmodesuffix>.
6257 (aesenc): Merge with *avx_aesenc.
6258 (aesenclast): Merge with *avx_aesenclast.
6259 (aesdec): Merge with *avx_aesdec.
6260 (aesdeclast): Merge with *avx_aesdeclast.
6261 (pclmulqdq): Merge with *pclmulqdq.
6262 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6264 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6266 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6269 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6270 (align_local_variable): This. Update DECL_ALIGN.
6271 (add_stack_var): Updated.
6272 (expand_one_stack_var): Likewise.
6274 2011-04-14 Richard Guenther <rguenther@suse.de>
6276 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6278 (dse_initialize_block_local_data, dse_leave_block,
6279 record_voperand_set, get_stmt_uid): Likewise.
6280 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6281 (dse_optimize_stmt): Remove voperand set handling code.
6282 Simplify and improve to handle any kind of killing stmt.
6283 (dse_record_phi): Remove.
6284 (dse_enter_block): Simplify.
6285 (tree_ssa_dse): Likewise.
6286 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6288 2011-04-14 Jan Hubicka <jh@suse.cz>
6290 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6291 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6292 (cgraph_local_info): Remove inline_summary.
6293 * ipa-cp.c: Include ipa-inline.h.
6294 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6295 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6297 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6298 (input_overwrite_node): Do not set inline summary.
6299 (input_node): Do not stream inline summary.
6300 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6301 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6302 growth; we do not have inline parameters computed for that anyway.
6303 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6304 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6305 (inline_summary_t): New type and VECtor.
6306 (debug_inline_summary, dump_inline_summaries): Declare.
6307 (inline_summary): Use VOCtor.
6308 (estimate_edge_growth): Kill hack computing call stmt size directly.
6309 * lto-section-in.c (lto_section_name): Add inline section.
6310 * ipa-inline-analysis.c: Include lto-streamer.h
6311 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6312 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6313 (inline_summary_vec): Define.
6314 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6315 dump_inline_summaries): New functions.
6316 (estimate_function_body_sizes): Properly compute size/time of outgoing
6318 (compute_inline_parameters): Alloc inline_summary; do not compute
6319 size/time of incomming calls.
6320 (estimate_edge_time): Avoid missing time summary hack.
6321 (inline_read_summary): Read inline summary info.
6322 (inline_write_summary): Write inline summary info.
6323 (inline_free_summary): Free all hooks and inline summary vector.
6324 * lto-streamer.h: Add LTO_section_inline_summary section.
6325 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6326 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6328 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6330 * tree-vectorizer.h (vect_strided_store_supported): Add a
6331 HOST_WIDE_INT argument.
6332 (vect_strided_load_supported): Likewise.
6333 (vect_permute_store_chain): Return void.
6334 (vect_transform_strided_load): Likewise.
6335 (vect_permute_load_chain): Delete.
6336 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6337 count argument. Check that the count is a power of two.
6338 (vect_strided_load_supported): Likewise.
6339 (vect_permute_store_chain): Return void. Update after above changes.
6340 Assert that the access is supported.
6341 (vect_permute_load_chain): Likewise.
6342 (vect_transform_strided_load): Return void.
6343 * tree-vect-stmts.c (vectorizable_store): Update calls after
6344 above interface changes.
6345 (vectorizable_load): Likewise.
6346 (vect_analyze_stmt): Don't check for strided powers of two here.
6348 2011-04-14 Richard Guenther <rguenther@suse.de>
6350 PR tree-optimization/48590
6351 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6352 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6353 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6354 BUILT_IN_STACK_SAVE.
6355 * tree-ssa-dce.c (propagate_necessity): Handle
6356 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6358 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6360 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6363 2011-04-14 Richard Guenther <rguenther@suse.de>
6365 * tree.h (get_object_alignment_1): Declare.
6366 * builtins.c (get_object_alignment_1): Split out worker from ...
6367 (get_object_alignment): ... here.
6368 * fold-const.c (get_pointer_modulus_and_residue): Use
6369 get_object_alignment_1.
6371 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6373 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6375 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6376 parameter. Generalise code to handle arrays as well as vectors.
6377 (vect_setup_realignment): Update accordingly.
6378 * tree-vect-stmts.c (vectorizable_store): Likewise.
6379 (vectorizable_load): Likewise.
6381 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6383 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6384 within the per-copy loop.
6386 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6388 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6391 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6393 * doc/options.texi (Negative): Explicitly mention that the
6394 Negative chain must be circular.
6396 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6398 * function.h (block_chainon): Declare.
6399 * function.c (block_chainon): Define.
6401 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6402 Eric Weddington <eric.weddington@atmel.com>
6403 Georg-Johann Lay <avr@gjlay.de>
6405 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6407 (avr_init_builtins, avr_expand_builtin,
6408 avr_expand_delay_cycles, avr_expand_unop_builtin,
6409 avr_expand_binop_builtin ): New functions.
6410 (avr_builtin_id): New enum
6411 (struct avr_builtin_description): New struct
6412 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6413 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6415 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6416 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6417 UNSPECV_DELAY_CYCLES): new enumeration values
6418 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6419 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6420 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6421 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6422 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6423 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6424 "fmulsu"): New insns
6426 * config/avr/avr-c.c: fix line endings
6427 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6428 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6429 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6430 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6431 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6433 * doc/extend.texi (AVR Built-in Functions): New node
6434 (Target Builtins): Add documentation of AVR
6437 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6440 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6441 alone. Error if non-const data has attribute progmem.
6443 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6445 * tree.h (struct tree_constructor): Include tree_typed instead of
6447 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6448 TS_TYPED instead of TS_COMMON.
6450 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6452 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6453 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6454 (sse2_psadbw): Merge with *avx_psadbw.
6455 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6456 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6457 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6458 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6459 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6460 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6461 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6462 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6463 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6464 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6465 (ssse3_palignrti): Merge with *avx_palignrti.
6467 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6469 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6470 * tree-ssanames.c (fini_ssanames): VEC_free it.
6471 (make_ssa_name_fn): Update for VECness of free_ssanames.
6472 (release_ssa_name, release_dead_ssa_names): Likewise.
6473 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6475 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6476 TS_TYPED instead of TS_COMMON.
6478 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6480 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6481 statistics_counter_event.
6482 * tree-ssa-copyrename.c (stats): Define.
6483 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6484 statistics_counter_event.
6485 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6486 (bswap_stats, widen_mul_stats): Define.
6487 (insert_reciprocals): Increment rdivs_inserted.
6488 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6489 rfuncs_inserted. Add calls to statistics_counter_event.
6490 (execute_cse_sincos_1): Increment inserted.
6491 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6492 statistics_counter_event.
6493 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6494 of bswap_stats. Add calls to statistics_counter_event.
6495 (convert_mult_to_widen): Increment widen_mults_inserted.
6496 (convert_plusminus_to_widen): Increment maccs_inserted.
6497 (convert_mult_to_fma): Increment fmas_inserted.
6498 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6499 calls to statistics_counter_event.
6501 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6503 PR rtl-optimization/48455
6504 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6505 `temp_costs->mem_cost'.
6507 2011-04-13 Jan Hubicka <jh@suse.cz>
6509 * ipa-inline.h: New file.
6510 * ipa-inline-analysis.c: New file. Broken out of ...
6511 * ipa-inline.c: ... this file; update toplevel comment;
6512 include ipa-inline.h
6513 (inline_summary): Move to ipa-inline.h
6514 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6515 ipa-inline-analysis.c.
6516 (cgraph_estimate_time_after_inlining): Rename to
6517 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6518 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6519 to estimate_edge_growth.
6520 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6521 rename to estimate_size_after_inlining.
6522 (cgraph_mark_inline_edge): Update for new naming convention.
6523 (cgraph_check_inline_limits): Likewise.
6524 (cgraph_edge_badness): Likewise.
6525 (cgraph_decide_recursive_inlining): Likewise.
6526 (cgraph_decide_inlining_of_small_functions): Likewise.
6527 (cgraph_decide_inlining_incrementally): Likewise.
6528 (cgraph_estimate_growth): Rename to estimate_growth; move to
6529 ipa-inline-analysis.c.
6530 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6531 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6532 (compute_inline_parameters): Likewise.
6533 (compute_inline_parameters_for_current): Likewise.
6534 (pass_inline_parameters): Likewise.
6535 (inline_indirect_intraprocedural_analysis): Likewise.
6536 (analyze_function): Rename to inline_analyze_function; likewise.
6537 (add_new_function): Move to ipa-inline-analysis.c.
6538 (inline_generate_summary): Likewise.
6539 (inline_read_summary): Likewise.
6540 (inline_write_summary): Likewise.
6541 * Makefile.in (ipa-inline-analysis.c): New file.
6543 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6545 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6546 * configure: Regenerate.
6548 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6550 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6551 instead of tree_common.
6552 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6554 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6555 TS_TYPED rather than TS_COMMON.
6556 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6558 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6561 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6562 r20 around calls of __tablejump_elpm__
6564 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6567 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6569 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6571 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6573 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6574 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6575 (cfi_vec): New typedef.
6576 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6577 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6578 (cie_cfi_vec): New static variable.
6579 (cie_cfi_head): Delete.
6580 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6581 declaration changed. Use vector rather than list operations.
6582 (new_cfi): Don't initialize the dw_cfi_next field.
6583 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6584 rather than list operations.
6585 (lookup_cfa): Use vector rather than list operations.
6586 (output_cfis): New argument upto. Accept a cfi_vec rather than
6587 a dw_cfi_ref list head as argument. All callers changed.
6588 Iterate over the vector using upto as a maximum index.
6589 (output_all_cfis): New static function.
6590 (output_fde): Use vector rather than list operations. Use the
6591 new upto argument for output_cfis rather than manipulating a
6593 (dwarf2out_begin_prologue): Change initializations to match
6595 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6596 from the vector length rather than searching for the end of a list.
6597 Use output_all_cfis.
6598 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6600 2011-04-13 Nick Clifton <nickc@redhat.com>
6602 * config/rx/rx.md (movmemsi): Do not use this pattern when
6603 volatile pointers are involved.
6605 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6607 * config/i386/sse.md (pinsrbits): Remove.
6608 (sse2_packsswb): Merge with *avx_packsswb.
6609 (sse2_packssdw): Merge with *avx_packssdw.
6610 (sse2_packuswb): Merge with *avx_packuswb.
6611 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6612 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6613 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6614 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6615 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6616 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6617 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6618 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6619 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6620 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6621 (sse2_loadld): Merge with *avx_loadld.
6622 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6623 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6624 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6625 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6626 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6628 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6630 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6632 * print-tree.c (print_node): Likewise.
6633 * tree-inline.c (copy_tree_r): Likewise.
6634 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6635 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6636 instead of TS_COMMON.
6637 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6638 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6639 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6640 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6641 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6643 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6645 (TREE_CHAIN): Check for a TS_COMMON structure.
6646 (TREE_TYPE): Check for a TS_TYPED structure.
6648 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6650 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6651 cgraph_get_create_node instead of cgraph_node.
6653 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6655 * c-parser.c (c_parser_initelt): Updated call to
6656 objc_build_message_expr.
6657 (c_parser_postfix_expression): Likewise.
6659 2011-04-12 Kai Tietz <ktietz@redhat.com>
6661 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6662 MASK_MS_BITFIELD_LAYOUT bit.
6664 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6666 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6667 assert it is always true.
6668 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6671 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6673 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6674 compiling Objective-C to be more efficient.
6676 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6678 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6681 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6683 * recog.h, genoutput.c, optabs.c: Revert last patch.
6685 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6688 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6690 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6692 * recog.h (insn_operand_data): Add an "allows_mem" field.
6693 * genoutput.c (output_operand_data): Initialize it.
6694 * optabs.c (maybe_legitimize_operand_same_code): New function.
6695 (maybe_legitimize_operand): Use it when matching the original
6698 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6700 * genpreds.c (process_define_predicate): Move most processing
6701 to gensupport.c. Continue to validate the expression.
6702 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6703 (process_define_predicate): Move processing to gensupport.c.
6704 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6705 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6706 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6708 (valid_predicate_name_p): New function, split out from old
6709 genpreds.c:process_define_predicate.
6710 (process_define_predicate): New function, combining code from
6711 old genpreds.c and genrecog.c functions.
6712 (process_rtx): Call it for DEFINE_PREDICATE and
6713 DEFINE_SPECIAL_PREDICATE.
6715 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6717 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6718 size of a '%A' memory reference.
6719 (T_DREG, T_QREG): New neon_builtin_type_bits.
6720 (arm_init_neon_builtins): Assert that the load and store operands
6721 are neon_struct_operands.
6722 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6723 (NEON_ARG_MEMORY): New builtin_arg.
6724 (neon_dereference_pointer): New function.
6725 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6726 Handle NEON_ARG_MEMORY.
6727 (arm_expand_neon_builtin): Update after above interface changes.
6728 Use NEON_ARG_MEMORY for loads and stores.
6729 * config/arm/predicates.md (neon_struct_operand): New predicate.
6730 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6731 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6732 (V_four_elem): Tweak formatting.
6733 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6734 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6735 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6736 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6737 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6738 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6739 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6740 Use %A in the output template.
6741 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6742 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6743 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6744 the width of the memory access. Remove post-increment.
6745 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6747 2011-04-12 Nick Clifton <nickc@redhat.com>
6749 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6750 instruction for interrupt handlers if the target is the basic V850
6752 (expand_epilogue): Likewise.
6754 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6756 PR rtl-optimization/48549
6757 * combine.c (propagate_for_debug): Also stop after BB_END of
6758 this_basic_block. Process LAST and just stop processing after it.
6759 (combine_instructions): If last_combined_insn has been deleted,
6760 set last_combined_insn to its PREV_INSN.
6762 2011-04-12 Richard Guenther <rguenther@suse.de>
6764 PR tree-optimization/46076
6765 * gimple.h (struct gimple_statement_call): Add fntype field.
6766 (gimple_call_fntype): Adjust.
6767 (gimple_call_set_fntype): New function.
6768 * gimple.c (gimple_build_call_1): Set the call function type.
6769 * gimplify.c (gimplify_call_expr): Preserve the function
6770 type the frontend used for the call.
6771 (gimplify_modify_expr): Likewise.
6772 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6774 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6776 * tree-ssa.c (useless_type_conversion_p): Function pointer
6777 conversions are useless.
6779 2011-04-12 Martin Jambor <mjambor@suse.cz>
6781 * cgraph.h (cgraph_node): Remove function declaration.
6782 (cgraph_create_node): Declare.
6783 (cgraph_get_create_node): Likewise.
6784 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6785 Updated all callers.
6786 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6787 the decl does not already exist. Call cgraph_get_create_node instead
6789 (cgraph_get_create_node): New function.
6790 (cgraph_same_body_alias): Update comment.
6791 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6792 assert it does not return NULL.
6793 (cgraph_update_edges_for_call_stmt): Likewise.
6794 (cgraph_clone_edge): Likewise.
6795 (cgraph_create_virtual_clone): Likewise.
6796 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6797 instead of cgraph_node.
6798 (cgraph_add_new_function): Call cgraph_create_node or
6799 cgraph_get_create_node instead of cgraph_node.
6800 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6801 instead of cgraph_node.
6802 (record_eh_tables): Likewise.
6803 (mark_address): Likewise.
6804 (mark_load): Likewise.
6805 (build_cgraph_edges): Call cgraph_get_create_node instead
6807 (rebuild_cgraph_edges): Likewise.
6808 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6809 instead of cgraph_node.
6810 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6812 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6813 cgraph_create_node instead of cgraph_node.
6814 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6816 * lto-cgraph.c (input_node): Likewise.
6817 * lto-streamer-in.c (input_function): Likewise.
6818 * varasm.c (mark_decl_referenced): Likewise.
6819 (assemble_alias): Likewise.
6821 2011-04-12 Martin Jambor <mjambor@suse.cz>
6823 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6824 instead of cgraph_node and assert it does not return NULL.
6825 * lto-streamer-in.c (lto_read_body): Likewise.
6826 * omp-low.c (new_omp_context): Likewise.
6827 (create_task_copyfn): Likewise.
6828 * tree-emutls.c (lower_emutls_function_body): Likewise.
6829 * matrix-reorg.c (transform_allocation_sites): Likewise.
6831 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6834 * c-typeck.c (build_asm_expr): Error out on attempts to use
6835 void type outputs or inputs for constraints that allow reg or
6838 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6839 Richard Earnshaw <rearnsha@arm.com>
6842 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6843 to use sign-magnitude offsets. Reject unsupported unaligned
6844 cases. Add detailed description in comments.
6845 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6846 condition from TARGET_32BIT to TARGET_ARM.
6848 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6850 * tree.h (struct typed_tree): New.
6851 (struct tree_common): Include it instead of tree_base.
6852 (TREE_TYPE): Update for new location of type field.
6853 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6854 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6855 (union tree_node): Add typed field.
6856 * treestruct.def (TS_TYPED): New.
6857 * lto-streamer.c (check_handled_ts_structures): Handle it.
6858 * tree.c (MARK_TS_TYPED): New macro.
6859 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6861 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6863 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6864 (force_nonfallthru): Do not alter the loop nest if no basic block
6867 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6869 * config/i386/sse.md (VI): New mode iterator.
6871 (AVX256MODEI): Ditto.
6872 (AVXMODEF4P): Ditto.
6873 (avxvecpsmode): Ditto.
6874 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6875 (sse2_andnot<mode>3): New expander.
6876 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6877 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6878 (<any_logic:code><mode>3): Use VI mode iterator.
6879 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6880 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6881 (*andnottf3): Handle AVX three-operand constraints.
6882 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6884 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6885 Robert Millan <rmh@gnu.org>
6887 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6888 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6889 GNU_USER_DYNAMIC_LINKER64): Define.
6890 (REG_NAME): Don't undefine.
6891 (MD_UNWIND_SUPPORT): Undefine.
6892 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6893 (REG_NAME): Don't undefine.
6894 (MD_UNWIND_SUPPORT): Undefine.
6895 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6897 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6899 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6900 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6902 2011-04-11 Xinliang David Li <davidxl@google.com>
6904 * value-profile.c (check_ic_target): New function.
6905 (gimple_ic_transform): Sanity check indirect call target.
6906 * gimple-low.c (gimple_check_call_args): Interface change.
6907 (gimple_check_call_matching_types): New function.
6908 * tree-inline.c (tree_can_inline_p): Call new function.
6910 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6912 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6913 tree-pretty-print.h & realmpfr.h.
6915 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6918 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6919 (setup_allocno_and_important_classes): Ditto.
6921 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6923 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6924 GNU_USER_DYNAMIC_LINKER.
6925 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6926 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6927 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6928 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6929 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6930 GNU_USER_TARGET_OS_CPP_BUILTINS.
6931 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6932 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6933 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6934 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6935 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6936 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6937 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6938 GNU_USER_TARGET_OS_CPP_BUILTINS.
6939 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6940 GNU_USER_DYNAMIC_LINKER.
6941 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6942 GNU_USER_TARGET_OS_CPP_BUILTINS.
6943 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6944 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6945 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6946 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6947 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6948 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6949 GNU_USER_DYNAMIC_LINKER64): Remove.
6950 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6951 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6952 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6953 GNU_USER_DYNAMIC_LINKER.
6954 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6955 GNU_USER_TARGET_OS_CPP_BUILTINS.
6956 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6957 GNU_USER_TARGET_OS_CPP_BUILTINS.
6958 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6959 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6960 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6961 GNU_USER_TARGET_OS_CPP_BUILTINS.
6962 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6963 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6964 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6965 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6966 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6967 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6968 GNU_USER_DYNAMIC_LINKER.
6969 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6970 GNU_USER_TARGET_OS_CPP_BUILTINS.
6971 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6972 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6973 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6974 GNU_USER_DYNAMIC_LINKER.
6975 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6976 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6977 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6978 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6979 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6980 GNU_USER_DYNAMIC_LINKER.
6981 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6982 GNU_USER_DYNAMIC_LINKERN32.
6983 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6984 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6985 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6986 GNU_USER_DYNAMIC_LINKER32.
6987 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6988 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6989 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6990 GNU_USER_DYNAMIC_LINKER.
6991 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6992 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6993 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6994 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6995 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6996 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6997 GNU_USER_DYNAMIC_LINKER32.
6998 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6999 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7000 GNU_USER_DYNAMIC_LINKER.
7001 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7002 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7003 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7004 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7005 GNU_USER_DYNAMIC_LINKER64.
7006 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7007 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7008 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7009 GNU_USER_DYNAMIC_LINKER.
7010 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7011 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7012 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7013 GNU_USER_DYNAMIC_LINKER.
7014 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7015 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7016 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7017 GNU_USER_DYNAMIC_LINKER32.
7018 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7019 GNU_USER_DYNAMIC_LINKER64.
7020 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7021 GNU_USER_DYNAMIC_LINKER64.
7022 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7023 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7024 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7025 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7026 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7028 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7030 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7031 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7032 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7033 GNU_USER_DYNAMIC_LINKER.
7034 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7035 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7036 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7037 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7038 GNU_USER_DYNAMIC_LINKER64.
7039 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7040 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7041 GNU_USER_LINK_EMULATION.
7042 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7043 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7044 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7045 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7046 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7047 CPP_SPEC, CC1_SPEC): Remove.
7048 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7049 (GNU_USER_DYNAMIC_LINKER): Define.
7050 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7051 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7052 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7053 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7054 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7055 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7056 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7057 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7058 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7059 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7060 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7061 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7062 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7063 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7064 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7065 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7066 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7067 GNU_USER_DYNAMIC_LINKER.
7068 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7069 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7070 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7071 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7072 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7073 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7074 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7075 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7076 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7077 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7079 2011-04-11 Kai Tietz <ktietz@redhat.com>
7083 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7084 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7086 (ix86_is_msabi_thiscall): Removed.
7087 (ix86_is_type_thiscall): Likewise.
7088 (ix86_get_callcvt): New function.
7089 (ix86_comp_type_attributes): Simplify check.
7090 (ix86_function_regparm): Use ix86_get_callcvt for calling
7091 convention attribute checks.
7092 (ix86_return_pops_args): Likewise.
7093 (ix86_static_chain): Likewise.
7094 (x86_this_parameter): Likewise.
7095 (x86_output_mi_thunk): Likewise.
7096 (ix86_function_type_abi): Optimize check for types without attributes.
7097 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7098 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7099 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7101 (IX86_BASE_CALLCVT): Helper macro.
7102 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7103 Use ix86_get_callcvt for calling convention attribute checks and avoid
7104 symbol-decoration for stdcall in TARGET_RTD case.
7105 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7107 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7110 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7112 * config/i386/sse.md (VI_128): New mode iterator.
7113 (VI12_128): Rename from SSEMODE12.
7114 (VI14_128): Rename from SSEMODE14.
7115 (VI124_128): New mode iterator.
7116 (VI24_128): Rename from SSEMODE248.
7117 (VI248_128): Rename from SSEMODE248.
7118 (SSEMODE124C8): Remove.
7119 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7120 (*sse2_<plusminus_insn><mode>3): Merge with
7121 *avx_<plusminus_insn><mode>3.
7122 (*mulv8hi3): Merge with *avx_mulv8hi3.
7123 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7124 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7125 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7126 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7127 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7128 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7129 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7130 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7131 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7132 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7133 (*<smaxmin:code>v8hi3): Ditto.
7134 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7135 (*<smaxmin:code>v16qi3): Ditto.
7136 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7137 (*sse2_eq<mode>3): Ditto.
7138 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7139 (*sse2_gt<mode>3): Ditto.
7140 (vcondv2di): Split out of vcond<mode>.
7141 (vconduv2di): Split out of vcondu<mode>.
7143 2011-04-11 Richard Guenther <rguenther@suse.de>
7145 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7146 before calling tree_low_cst.
7148 2011-04-11 Richard Guenther <rguenther@suse.de>
7150 * stor-layout.c (layout_type): Compute all array index size operations
7151 in the original type.
7152 (initialize_sizetypes): Add comment.
7153 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7155 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7157 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7159 2011-04-11 Martin Jambor <mjambor@suse.cz>
7161 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7162 of cgraph_node, handle NULL return value.
7163 (cgraph_global_info): Likewise.
7164 (cgraph_rtl_info): Likewise.
7165 * tree-inline.c (estimate_num_insns): Likewise.
7166 * gimplify.c (unshare_body): Likewise.
7167 (unvisit_body): Likewise.
7168 (gimplify_body): Likewise.
7169 * predict.c (optimize_function_for_size_p): Likewise.
7170 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7171 (call_may_clobber_ref_p_1): Likewise.
7172 * varasm.c (function_section_1): Likewise.
7173 (assemble_start_function): Likewise.
7175 2011-04-11 Martin Jambor <mjambor@suse.cz>
7177 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7179 * final.c (rest_of_clean_state): Likewise.
7180 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7181 * passes.c (pass_init_dump_file): Likewise.
7182 (execute_all_ipa_transforms): Likewise.
7183 (function_called_by_processed_nodes_p): Likewise.
7184 * predict.c (maybe_hot_frequency_p): Likewise.
7185 (probably_never_executed_bb_p): Likewise.
7186 (compute_function_frequency): Likewise.
7187 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7188 (unnest_nesting_tree_1): Likewise.
7189 (lower_nested_functions): Likewise.
7190 * tree-optimize.c (execute_fixup_cfg): Likewise.
7191 (tree_rest_of_compilation): Likewise.
7192 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7193 * tree-sra.c (ipa_early_sra): Likewise.
7194 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7195 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7196 * ipa.c (record_cdtor_fn): Likewise.
7197 * ipa-inline.c (cgraph_early_inlining): Likewise.
7198 (compute_inline_parameters_for_current): Likewise.
7199 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7200 * ipa-pure-const.c (local_pure_const): Likewise.
7201 * ipa-split.c (split_function): Likewise.
7202 (execute_split_functions): Likewise.
7203 * cgraphbuild.c (build_cgraph_edges): Likewise.
7204 (rebuild_cgraph_edges): Likewise.
7205 (cgraph_rebuild_references): Likewise.
7206 (remove_cgraph_callee_edges): Likewise.
7207 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7208 (verify_cgraph_node): Likewise.
7209 (cgraph_analyze_functions): Likewise.
7210 (cgraph_preserve_function_body_p): Likewise.
7211 (save_inline_function_body): Likewise.
7212 (save_inline_function_body): Likewise.
7213 * tree-inline.c (copy_bb): Likewise.
7214 (optimize_inline_calls): Likewise.
7216 2011-04-11 Martin Jambor <mjambor@suse.cz>
7218 PR tree-optimization/48195
7219 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7220 ipa_check_create_edge_args.
7221 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7222 ipa_check_create_edge_args.
7223 * ipa-inline.c (inline_generate_summary): Do not call
7224 ipa_check_create_node_params and ipa_check_create_edge_args.
7225 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7226 ipa_check_create_edge_args.
7228 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7230 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7232 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7233 * function.c (record_hard_reg_sets): Likewise.
7234 * ira.c (compute_regs_asm_clobbered): Likewise.
7235 * sched-deps.c (sched_analyze_1): Likewise.
7236 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7238 2011-04-09 Xinliang David Li <davidxl@google.com>
7240 PR tree-optimization/PR48484
7241 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7242 has_valid_pred lazily
7244 2011-04-09 Duncan Sands <baldrick@free.fr>
7246 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7248 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7250 * combine.c (combine_validate_cost): Adjust comments. Set registered
7251 cost of I0 to zero at the end, if any.
7253 2011-04-08 Xinliang David Li <davidxl@google.com>
7255 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7256 to insane profile data.
7258 2011-04-08 Xinliang David Li <davidxl@google.com>
7260 * ipa-cp.c (ipcp_update_profiling): Correct
7261 negative scale factor due to insane profile data.
7263 2011-04-08 Xinliang David Li <davidxl@google.com>
7265 * final.c (dump_basic_block_info): New function.
7266 (final): Dump basic block.
7267 (final_scan_insn): Remove old dump.
7269 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7272 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7275 2011-04-08 Michael Matz <matz@suse.de>
7278 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7280 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7281 * rtl.h (rebuild_jump_labels_chain): Declare.
7282 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7283 insns inserted on edges.
7285 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7287 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7288 * config/arm/arm-arches.def: New.
7289 * config/arm/arm-opts.h: New.
7290 * config/arm/genopt.sh: New.
7291 * config/arm/arm-tables.opt: New (generated).
7292 * config/arm/arm.c (arm_handle_option, arm_target_help,
7293 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7294 (all_architectures): Get most table contents from arm-arches.def.
7295 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7296 arm_selected_tune here.
7297 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7298 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7299 (march=, mcpu=, mtune=): Use Enum and Var.
7300 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7301 (arm.o): Update dependencies.
7303 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7305 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7307 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7308 (write_typed_alloc_defns): Likewise.
7309 (main): Calls write_typed_alloc_defns with output_header.
7311 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7314 * ira-color.c (setup_profitable_hard_regs): Add comments.
7315 Don't take prohibited hard regs into account.
7316 (setup_conflict_profitable_regs): Rename to
7317 get_conflict_profitable_regs.
7318 (check_hard_reg_p): Check prohibited hard regs.
7320 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7322 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7323 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7324 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7326 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7329 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7330 move from floating point to shift amount register.
7331 (emit_move_sequence): Remove secondary reload support for floating
7332 point to shift amount amount register copies.
7333 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7334 amount register copies.
7335 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7336 register, return false if mode isn't a scalar integer mode.
7337 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7339 2011-04-08 Richard Guenther <rguenther@suse.de>
7341 * gimple.c (gimple_call_flags): Remove kludge.
7343 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7345 * sel-sched.c (sel_region_init): Move call to
7346 sel_setup_region_sched_flags after setup_current_loop_nest.
7348 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7350 PR rtl-optimization/48272
7351 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7352 init_insn_reg_pressure_info. Adjust a caller.
7353 * sched-int.h (init_insn_reg_pressure_info): Declare.
7354 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7355 when sched-pressure is enabled.
7357 2011-04-08 Richard Guenther <rguenther@suse.de>
7359 * gimple.c (gimple_set_modified): Do not queue calls to
7360 MODIFIED_NORETURN_CALLS here ...
7361 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7363 2011-04-08 Richard Guenther <rguenther@suse.de>
7366 * toplev.c (lang_dependent_init): Do not open asm_out_file
7367 in WPA mode, nor perform debug machinery initialization.
7368 (finalize): Do not unlink asm_out_file in WPA mode.
7370 2011-04-08 Richard Guenther <rguenther@suse.de>
7372 * gimple.h (gimple_call_fntype): New function.
7373 (gimple_call_return_type): Use it.
7374 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7375 * gimple-low.c (gimple_check_call_args): Likewise.
7376 * gimple.c (gimple_call_flags): Likewise.
7377 (gimple_call_arg_flags): Likewise.
7378 (gimple_call_return_flags): Likewise.
7379 * tree-cfg.c (verify_gimple_call): Likewise.
7380 (do_warn_unused_result): Likewise.
7381 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7382 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7384 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7386 PR rtl-optimization/48235
7387 * sel-sched.c (code_motion_process_successors): Recompute the last
7388 insn in basic block if control flow changed.
7389 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7390 Update condition for ilist_remove.
7392 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7394 PR rtl-optimization/48302
7395 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7396 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7397 it to record added preheader blocks.
7398 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7399 on to sel_add_loop_preheaders.
7400 (sel_region_init): Move call to setup_current_loop_nest after
7403 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7406 * cfgloop.h (loop_has_exit_edges): New helper.
7407 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7409 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7410 that have no exit edges.
7412 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7414 PR rtl-optimization/48442
7415 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7416 all callers. Adjust assert.
7418 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7420 PR tree-optimization/48377
7421 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7422 is_packed to true even for types with smaller TYPE_ALIGN than
7425 2011-04-08 Richard Guenther <rguenther@suse.de>
7428 * doc/tm.texi: Re-generate.
7430 2011-04-08 Wei Guozhi <carrot@google.com>
7433 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7434 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7435 * config/arm/arm.md (*push_multi): Change the length computation to
7438 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7440 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7441 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7442 * doc/tm.texi: Regenerate.
7443 * system.h (ASM_OUTPUT_BSS): Poison.
7444 * varasm.c (asm_output_bss): Remove function.
7445 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7447 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7448 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7449 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7450 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7452 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7454 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7456 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7458 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7460 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7463 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7465 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7466 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7467 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7469 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7470 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7471 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7472 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7473 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7474 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7475 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7476 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7477 options. Don't map other m68k options manually. Don't handle
7478 old-style options as canonical.
7479 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7480 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7482 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7484 * basic-block.h (force_nonfallthru): Move to...
7485 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7486 (force_nonfallthru): ...here.
7487 * cfghooks.c (force_nonfallthru): New function.
7488 * cfgrtl.c (force_nonfallthru): Rename into...
7489 (rtl_force_nonfallthru): ...this.
7490 (commit_one_edge_insertion): Do not set AUX field.
7491 (commit_edge_insertions): Do not discover new basic blocks.
7492 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7493 (cfg_layout_rtl_cfg_hooks): Likewise.
7494 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7495 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7496 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7498 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7500 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7503 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7505 * config/i386/sse.md: Update copyright year.
7506 (avxcvtvecmode): Remove.
7507 (sse_movhlps): Merge with *avx_movhlps.
7508 (sse_movlhps): Merge with *avx_movlhps.
7509 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7510 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7511 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7512 (sse_loadhps): Merge with *avx_loadhps.
7513 (sse_storelps): Merge with *avx_storelps.
7514 (sse_loadlps): Merge with *avx_loadlps.
7515 (sse_movss): Merge with *avx_movss.
7516 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7517 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7518 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7519 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7520 (vec_set<mode>_0): Ditto.
7521 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7522 (sse4_1_insertps): Merge with *avx_insertps.
7523 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7524 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7525 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7526 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7527 (sse2_storehpd): Merge with *avx_storehpd.
7528 (sse2_loadhpd): Merge with *avx_loadhpd.
7529 (sse2_loadlpd): Merge with *avx_loadlpd.
7530 (sse2_movsd): Merge with *avx_movsd.
7531 (*vec_concatv2df): Merge with *vec_concatv2df.
7533 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7536 * combine.c (combine_instructions): Add last_combined_insn,
7537 update it if insn is after it, pass it to all try_combine calls.
7538 (try_combine): Add last_combined_insn parameter, pass it instead of
7539 i3 to propagate_for_debug.
7541 2011-04-07 Nick Clifton <nickc@redhat.com>
7543 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7544 to handle MDR <-> data register transfers.
7545 (movhi_internal): Likewise.
7547 2011-04-07 Alan Modra <amodra@gmail.com>
7549 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7550 previous stack info.
7552 2011-04-07 Tom de Vries <tom@codesourcery.com>
7555 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7556 flow_find_cross_jump. Swap variables to implement backward replacement.
7557 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7559 2011-04-07 Tom de Vries <tom@codesourcery.com>
7562 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7563 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7565 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7566 src1 or src2. Redirect edges to the last basic block. Update
7567 frequency and count on multiple basic blocks in case of fallthru.
7569 2011-04-07 Tom de Vries <tom@codesourcery.com>
7572 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7574 (old_insns_match_p): Change return type. Replace return false/true
7575 with return dir_none/dir_both. Use can_replace_by.
7576 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7577 direction from dir_p. Register replacement direction in dir, last_dir
7578 and afterlast_dir. Handle new return type of old_insns_match_p using
7579 merge_dir. Return replacement direction in dir_p.
7580 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7581 return type of old_insns_match_p.
7582 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7583 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7584 flow_find_cross_jump.
7585 * basic-block.h (enum replace_direction): New type.
7586 (flow_find_cross_jump): Add parameter to declaration.
7588 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7590 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7591 (AVXMODEDCVTPS2DQ): Ditto.
7592 (VEC_FLOAT_MODE): Ditto.
7593 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7594 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7595 (<any_logic:code><mode>3): Use VF mode iterator.
7596 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7597 Use VF mode iterator.
7598 (copysign<mode>3): Use VF mode iterator.
7599 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7600 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7601 (*<any_logic:code><MODEF:mode>3): Merge with
7602 *avx_<any_logic:code><MODEF:mode>3.
7603 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7604 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7605 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7606 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7607 (sse2_cvtdq2ps): Use %v modifier.
7608 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7609 (avx_cvtps2dq<avxmodesuffix>): Remove.
7610 (sse2_cvtps2dq): Use %v modifier.
7611 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7612 (avx_cvttps2dq<avxmodesuffix>): Remove.
7613 (sse2_cvttps2dq): Use %v modifier.
7614 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7615 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7616 (sse2_cvtsd2siq): Fix insn template.
7617 (sse2_cvtsd2siq_2): Ditto.
7618 (sse2_cvttsd2siq): Ditto.
7619 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7620 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7622 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7624 * gcov-io.c: Use GCC Runtime Library Exception.
7626 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7629 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7630 as base_reg whatever register reg has been eliminated to, instead
7631 of hardcoding STACK_POINTER_REGNUM.
7633 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7635 * doc/tm.texi.in: Document C target hooks as separate from general
7637 * doc/tm.texi: Regenerate.
7638 * genhooks.c (struct hook_desc): Add docname field.
7639 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7641 (hook_array): Include c-target.def.
7642 (emit_documentation): Use docname field in output.
7643 (emit_init_macros): Take docname argument. Only emit definitions
7644 for hooks matching docname.
7645 (main): Expect additional arguments in all cases. Pass argument
7646 to emit_init_macros.
7647 * target.def: Move initial macro definitions and comments to
7648 target-hooks-macros.h.
7649 (gcc_targetcm): Move to c-family/c-target.def.
7650 * target.h (targetcm): Move declaration to c-family/c-target.h.
7651 * targhooks.c (default_handle_c_option): Move to
7653 * targhooks.h (default_handle_c_option): Move declaration to
7654 c-family/c-common.h.
7655 * target-hooks-macros.h: New file.
7656 * config.gcc (target_has_targetcm): Define and use to add to
7657 c_target_objs and cxx_target_objs.
7658 * config/default-c.c: New file.
7659 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7660 of target.h and target-def.h.
7661 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7662 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7663 darwin_check_cfstring_format_arg): Make static.
7664 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7665 TARGET_STRING_OBJECT_REF_TYPE_P,
7666 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7667 * config/darwin-protos.h (darwin_objc_construct_string,
7668 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7670 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7671 TARGET_STRING_OBJECT_REF_TYPE_P,
7672 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7673 * config/t-darwin (darwin-c.o): Update dependencies.
7674 * system.h (TARGET_HAS_TARGETCM): Poison.
7675 * Makefile.in (TARGET_H): Update.
7676 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7677 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7678 (default-c.o): New target.
7679 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7680 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7681 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7683 (build/genhooks.o): Update dependencies.
7685 2011-04-06 Richard Guenther <rguenther@suse.de>
7687 * ipa-inline.c (enum inlining_mode): Remove.
7688 (cgraph_flatten): Use some other token.
7689 (cgraph_edge_early_inlinable_p): New function, split out from ...
7690 (cgraph_perform_always_inlining): New function, split out from ...
7691 (cgraph_decide_inlining_incrementally): ... here.
7692 (cgraph_mark_inline_edge): Adjust.
7693 (cgraph_early_inlining): Re-structure.
7694 (pass_early_inline): Require SSA form.
7696 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7697 Julian Brown <julian@codesourcery.com>
7698 Mark Shinwell <shinwell@codesourcery.com>
7700 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7701 LO_REGS only for Thumb-1.
7702 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7703 be used in short instructions when optimising for size on Thumb-2.
7705 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7707 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7708 associated with user returns to be preserved.
7710 2011-04-06 Tristan Gingold <gingold@adacore.com>
7712 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7713 symbol_queue_size, DBXOUT_DECR_NESTING,
7714 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7715 if XCOFF_DEBUGGING_INFO.
7717 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7719 * config/i386/i386.md (attribute isa): New.
7720 (attribute enabled): New.
7721 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7722 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7723 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7724 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7725 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7726 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7727 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7728 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7730 * config/i386/sse.md (VF): New mode iterator.
7734 (SSEMODEF4): Remove.
7735 (attribute sse): Handle V8SF and V4DF modes.
7736 (<absneg:code><mode>2): Use VF mode iterator.
7737 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7739 (<plusminus_insn><mode>3): Use VF mode iterator.
7740 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7741 Use VF mode iterator.
7742 (<sse>_vm<plusminus_insn><mode>3): Merge with
7743 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7744 (mul<mode>3): Use VF mode iterator.
7745 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7746 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7748 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7749 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7750 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7751 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7753 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7754 Use VF1 mode iterator.
7755 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7756 (sqrt<VF2:mode>2): New expander.
7757 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7758 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7759 and sqrtv2df2. Use VF mode iterator.
7760 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7762 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7763 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7764 Use VF1 mode iterator.
7765 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7766 (<smaxmin:code><mode>3): Use VF mode iterator.
7767 (*<smaxmin:code><mode>3_finite): Merge with
7768 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7769 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7770 (<sse>_vm<smaxmin:code><mode>2): Merge with
7771 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7772 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7774 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7776 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7777 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7778 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7779 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7780 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7782 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7783 Use VF_128 mode iterator.
7784 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7786 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7787 VF_128 mode iterator.
7788 (vcond<mode>): Use VF mode iterator.
7789 * config/i386/predicates.md (sse_comparison_operator): Merge with
7790 avx_comparison_float_operator. Do not declare as special_predicate.
7791 * config/i386/i386.c (struct builtin_description): Update for renamed
7793 (ix86_expand_args_builtin): Ditto.
7794 (ix86_expand_sse_compare_mask): Ditto.
7796 2011-04-06 Richard Guenther <rguenther@suse.de>
7798 * tree-inline.c (estimate_num_insns): For calls simply account
7799 for all passed arguments and a used return value.
7801 2011-04-06 Richard Guenther <rguenther@suse.de>
7803 PR tree-optimization/47663
7804 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7805 call_stmt_time fields.
7806 (cgraph_edge_inlinable_p): Declare.
7807 (cgraph_edge_recursive_p): New inline function.
7808 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7809 (cgraph_clone_edge): Copy it.
7810 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7811 Account for call stmt time.
7812 (cgraph_estimate_time_after_inlining): Take edge argument.
7813 (cgraph_estimate_edge_growth): Account call stmt size.
7814 (cgraph_estimate_size_after_inlining): Take edge argument.
7815 (cgraph_mark_inline_edge): Adjust.
7816 (cgraph_check_inline_limits): Likewise.
7817 (cgraph_recursive_inlining_p): Remove.
7818 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7819 (cgraph_decide_recursive_inlining): Take edge argument and
7821 (cgraph_decide_inlining_of_small_functions): Do not avoid
7822 diags for recursive inlining here.
7823 (cgraph_flatten): Adjust.
7824 (cgraph_decide_inlining_incrementally): Likewise.
7825 (estimate_function_body_sizes): Remove call cost handling.
7826 (compute_inline_parameters): Initialize caller edge call costs.
7827 (cgraph_estimate_edge_growth): New function.
7828 (cgraph_estimate_growth): Use it.
7829 (cgraph_edge_badness): Likewise.
7830 (cgraph_check_inline_limits): Take an edge argument.
7831 (cgraph_decide_inlining_of_small_functions): Adjust.
7832 (cgraph_decide_inlining): Likewise.
7833 * tree-inline.c (estimate_num_insns): Only account for call
7834 return value if it is used.
7835 (expand_call_inline): Avoid diagnostics on recursive inline
7837 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7838 (input_edge): Input edge call costs.
7840 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7842 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7844 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7846 * doc/invoke.texi (Spec Files): Fix typo.
7848 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7850 * profile.c (branch_prob): Move declaration of local variable. Remove
7851 obsolete ??? comment. Expand the location explicitly instead of using
7852 the LOCATION_FILE and LOCATION_LINE macros.
7854 2011-04-06 Wei Guozhi <carrot@google.com>
7857 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7858 (arm_cond_branch): Likewise.
7859 (arm_cond_branch_reversed): Likewise.
7860 (arm_jump): Likewise.
7861 (push_multi): Likewise.
7862 * config/arm/constraints.md (Py): New constraint.
7864 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7867 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7869 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7870 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7871 #ifdef DBX_DEBUGGING_INFO.
7873 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7876 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7877 if old and new states differ.
7879 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7881 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7882 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7883 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7884 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7885 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7887 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7888 ColdFire options to -mcpu= options.
7890 2011-04-05 Jeff Law <law@redhat.com>
7892 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7893 check if BB is a successor of LOOP->header and return
7894 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7896 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7898 * cprop.c (struct reg_use): Remove.
7899 (reg_use_table): Make an array of RTX.
7900 (find_used_regs, constprop_register, local_cprop_pass,
7901 bypass_block): Simplify users of reg_use_table.
7902 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7903 on one of the uses found by find_used_regs.
7905 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7908 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7911 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7913 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7915 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7917 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7920 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7922 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7924 * combine.c: Include obstack.h.
7925 (struct insn_link): Define.
7926 (uid_log_links): Adjust type.
7927 (FOR_EACH_LOG_LINK): New macro.
7928 (insn_link_obstack): Declare.
7929 (alloc_insn_link): Define.
7930 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7931 type of link variables.
7932 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7933 (try_combine, record_promoted_values, distribute_notes): Likewise.
7934 (distribute_links): Likewise. Tweak prototype.
7935 (clear_log_links): Delete.
7936 (adjust_for_new_dest): Call alloc_insn_link.
7937 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7939 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7941 * gcse.c (modify_mem_list): Convert to an array of VECs.
7942 (canon_modify_mem_list, compute_transp): Tweak formatting.
7943 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7944 (load_killed_in_block_p): Likewise.
7945 (record_last_mem_set_info): Likewise.
7946 (clear_modify_mem_tables): Likewise.
7948 2011-04-05 Tom de Vries <tom@codesourcery.com>
7951 * function.c (emit_use_return_register_into_block): Only define if
7954 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7956 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7958 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7960 * config/rx/rx-opts.h: New.
7961 * config/rx/rx.c (rx_cpu_type): Remove.
7962 (rx_handle_option): Don't assert that global structures are in
7963 use. Access variables via opts pointer. Defer most handling of
7964 OPT_mint_register_. Use error_at.
7965 (rx_option_override): Handle deferred OPT_mint_register_ here.
7966 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7967 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7968 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7969 (rx_cpu_types): New Enum and EnumValue entries.
7970 (mint-register=): Use Defer and use Var accordingly.
7972 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7974 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7975 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7976 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7978 (debug_free_queue, debug_nesting, symbol_queue_index):
7980 * dbxout.c: ...to here. Make static.
7982 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7984 * gcse.c (modify_pair): Define. Define a VEC of it.
7985 (canon_modify_mem_list): Convert to an array of VECs.
7986 (free_insn_expr_list_list): Delete.
7987 (clear_modify_mem_tables): Call VEC_free instead.
7988 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7989 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7990 (canon_list_insert, compute_transp): Likewise.
7992 2011-04-05 Tom de Vries <tom@codesourcery.com>
7995 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7998 2011-04-05 Tom de Vries <tom@codesourcery.com>
8001 * function.c (emit_use_return_register_into_block): New function.
8002 (thread_prologue_and_epilogue_insns): Use
8003 emit_use_return_register_into_block.
8005 2011-04-05 Tom de Vries <tom@codesourcery.com>
8008 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8011 2011-04-05 Tom de Vries <tom@codesourcery.com>
8013 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8015 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8017 * config/arm/arm.md (define_constants for unspec): Replace with
8019 (define_constants for unspecv): Replace with define_c_enum.
8020 * config/arm/neon.md (define_constants for unspec): Replace with
8023 2011-04-04 Richard Henderson <rth@redhat.com>
8026 * dwarf2out.c (output_line_info): Always emit line info from
8027 at least one section.
8028 (dwarf2out_init): Create text_section_line_info here ...
8029 (set_cur_line_info_table): ... not here.
8031 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8034 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8037 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8039 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8041 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8042 (expr_equiv_p): Remove.
8043 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8044 (hash_scan_set): Update call to insert_set_in_table.
8045 (dump_hash_table): Dump <dest, src> pair.
8046 (lookup_set): Simplify. Lookup <dest, src> pair.
8047 (compute_transp): Remove, fold heavily simplified code into...
8048 (compute_local_properties): ...here. Expect COMP and TRANSP
8050 (find_avail_set): Take set directly from struct expr.
8051 (find_bypass-set): Likewise.
8052 (bypass_block): Likewise.
8053 (cprop_insn): Likewise. Remove redundant INSN_P test.
8055 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8056 checks on form of COND from find_implicit_sets to here.
8057 (find_implicit_sets): Cleanup control flow. Split critical edges
8058 if it exposes implicit sets. Allocate/resize implicit_sets as
8060 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8061 changed something. Run df_analyze after find_implicit_sets if any
8062 edges were split. Do not allocate implicit_sets here.
8064 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8065 (gcse_obstack): Renamed to cprop_obstack.
8066 (GNEW, GNEWVEC, GNEWVAR): Remove.
8068 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8069 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8070 (gcse_alloc): Likewise, and rename to cprop_alloc.
8071 (alloc_gcse_men, free_gcse_mem): Remove.
8072 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8073 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8074 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8076 * cprop.c (oprs_not_set_p): Remove.
8077 (mark_set, mark_clobber): Remove.
8078 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8079 (reg_not_set_p): New function.
8080 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8081 (cprop_insn): Likewise.
8082 (cprop_jump): Use FOR_EACH_EDGE.
8084 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8087 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8088 (rank_for_schedule): Use scheduled_insns vector instead of
8089 last_scheduled_insn.
8090 (ok_for_early_queue_removal): Likewise.
8091 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8093 (choose_ready): Likewise.
8094 (commit_schedule): Use VEC_iterate.
8095 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8096 a dbg_cnt, use it and ensure the first insn is in the ready list.
8097 (haifa_sched_init): Allocate scheduled_insns.
8098 (sched_extend_ready_list): Don't allocate it; reserve space.
8099 (haifa_sched_finish): Free it.
8101 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8103 * optc-gen.awk: Always remove type from Variable entry before
8104 recording in var_seen.
8106 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8108 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8109 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8110 call to tidy_fallthru_edges.
8112 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8114 * doc/options.texi (ToLower): Document.
8115 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8116 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8117 * opts.h (cl_option): Add cl_tolower field.
8118 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8119 arguments with lowercase strings.
8120 * config/rx/rx.opt (mcpu=): Add ToLower.
8121 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8124 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8126 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8128 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8130 * config/vax/vax.c: Include reload.h.
8132 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8134 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8135 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8136 (sparc_preferred_reload_class): New function.
8138 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8141 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8142 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8144 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8146 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8147 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8149 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8151 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8152 (ASM_OUTPUT_ALIGNED_BSS): Define.
8154 2011-04-03 Michael Matz <matz@suse.de>
8156 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8157 and next_slot members.
8158 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8159 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8160 (lto_streamer_cache_append): Declare.
8161 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8162 unsigned index, remove offset parameter, ensure that we append
8163 or update existing entries.
8164 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8165 parameter, update next_slot for append.
8166 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8168 (lto_streamer_cache_insert_at): Likewise.
8169 (lto_streamer_cache_append): New function.
8170 (lto_streamer_cache_lookup): Use unsigned index.
8171 (lto_streamer_cache_get): Likewise.
8172 (lto_record_common_node): Don't test tree_node_can_be_shared.
8173 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8174 (lto_streamer_cache_delete): Don't free offsets member.
8175 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8176 (lto_output_string_with_length): Use lto_output_data_stream.
8177 (lto_output_tree_header): Remove ix parameter, don't write it.
8178 (lto_output_builtin_tree): Likewise.
8179 (lto_write_tree): Adjust callers to above, don't track and write
8180 offset, write unsigned index.
8181 (output_unreferenced_globals): Don't emit all global vars.
8182 (write_global_references): Use unsigned indices.
8183 (lto_output_decl_state_refs): Likewise.
8184 (write_symbol): Likewise.
8185 * lto-streamer-in.c (lto_input_chain): Move earlier.
8186 (input_function): Use unsigned index.
8187 (input_alias_pairs): Don't read and then ignore all global vars.
8188 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8189 don't pass it back, use lto_streamer_cache_append.
8190 (lto_register_var_decl_in_symtab): Use unsigned index.
8191 (lto_register_function_decl_in_symtab): Likewise.
8192 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8194 (lto_get_builtin_tree): Don't read index, use
8195 lto_streamer_cache_append.
8196 (lto_read_tree): Adjust call to lto_materialize_tree.
8198 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8199 don't use function calls in arguments to MIN.
8201 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8204 * gimple.c (gimple_type_leader_entry): Mark deletable.
8206 2011-04-03 Alan Modra <amodra@gmail.com>
8208 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8210 2011-04-03 Michael Matz <matz@suse.de>
8212 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8214 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8216 2011-04-03 Michael Matz <matz@suse.de>
8218 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8219 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8220 without function context.
8221 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8222 current_function_decl and cfun.
8224 2011-04-03 Michael Matz <matz@suse.de>
8226 * tree.c (decl_init_priority_insert): Don't create entry for
8228 (decl_fini_priority_insert): Ditto.
8229 (fields_compatible_p, find_compatible_field): Remove.
8230 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8231 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8233 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8235 * combine.c (try_combine): Remove useless local variable.
8237 2011-04-03 Richard Guenther <rguenther@suse.de>
8238 Ira Rosen <ira.rosen@linaro.org>
8240 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8241 non-variable offsets and compare the remaining bases of the two
8242 accesses instead of looking for exact same data-ref.
8244 2011-04-02 Kai Tietz <ktietz@redhat.com>
8247 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8249 * i386.c (ix86_is_msabi_thiscall): New helper function.
8250 (ix86_is_type_thiscall): New helper function.
8251 (ix86_comp_type_attributes): Handle thiscall for method-functions
8253 (init_cumulative_args): Likewise.
8254 (find_drap_reg): Likewise.
8255 (ix86_static_chain): Likewise.
8256 (x86_this_parameter): Likewise.
8257 (x86_output_mi_thunk): Likewise.
8259 2011-04-01 Olivier Hainque <hainque@adacore.com>
8260 Nicolas Setton <setton@adacore.com>
8261 Eric Botcazou <ebotcazou@adacore.com>
8263 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8264 (add_gnat_descriptive_type_attribute): New function.
8265 (gen_array_type_die): Call it.
8266 (gen_enumeration_type_die): Likewise.
8267 (gen_struct_or_union_type_die): Likewise.
8268 (modified_type_die): Likewise.
8269 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8270 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8271 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8273 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8276 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8277 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8280 2011-03-17 Richard Guenther <rguenther@suse.de>
8283 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8284 origin for decls in other ltrans units.
8285 (input_varpool_node): Likewise.
8287 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8290 * expr.c (expand_assignment): Handle all possibilities
8291 if TO_RTX is CONCAT.
8292 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8293 (store_split_bit_field): If SUBREG_REG (op0) or
8294 op0 itself has smaller mode than word, return it
8295 for offset 0 and const0_rtx for out-of-bounds stores.
8296 If word is const0_rtx, skip it.
8298 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8300 * config/h8300/h8300.c (print_operand_address): Rename to...
8301 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8302 Call h8300_print_operand and h8300_print_operand_address instead of
8303 print_operand and print_operand_address. Declare.
8304 (print_operand): Renake to...
8305 (h8300_print_operand): ...this. Make static. Adjust comments.
8306 Call h8300_print_operand instead of print_operand. Declare.
8307 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8308 (h8300_register_move_cost): Likewise.
8309 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8310 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8311 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8312 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8313 * config/h8300/h8300-protos.h (print_operand): Delete.
8314 (print_operand_address): Delete.
8316 2011-04-01 Richard Henderson <rth@redhat.com>
8319 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8320 in strict mode before dwarf4. Re-order tests to early out
8321 before switching sections.
8323 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8325 * config/h8300/constraints.md: New file.
8326 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8327 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8328 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8329 * config/h8300/predicates.md (bit_operand): Likewise.
8330 (incdec_operand): Use satisfies_constraint_M and
8331 satisfies_constraint_O. Don't use C code block.
8332 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8333 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8334 (compute_mov_length): Use satisfies_constraint_G.
8335 (fix_bit_operand): Use satisfies_constraint_U.
8336 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8337 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8338 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8339 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8340 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8341 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8342 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8343 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8344 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8345 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8346 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8347 (EXTRA_MEMORY_CONSTRAINT): Delete.
8349 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8350 Michael Meissner <meissner@linux.vnet.ibm.com>
8353 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8354 operands, as per the specifications.
8356 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8357 (vec_extract_evenv4sf): Ditto.
8358 (vec_extract_evenv8hi): Ditto.
8359 (vec_extract_evenv16qi): Ditto.
8360 (vec_extract_oddv4si): Ditto.
8362 2011-03-31 Mark Wielaard <mjw@redhat.com>
8364 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8365 high_pc attribute if the CU has no associated code. Only output
8366 DW_AT_entry_pc for CU if not generating strict dwarf and
8369 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8371 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8372 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8374 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8375 * final.c (final_start_function): Call the new function rather
8376 than using a NULL argument for dwarf2out_frame_debug.
8378 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8379 that contains the prologue.
8381 * haifa-sched.c (queue_insn): New arg REASON. All callers
8382 changed. Print it in debugging output.
8384 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8386 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8387 Split most of the code into...
8388 (begin_move_insn): ... here. New function.
8389 (ebb_sched_info): Add a pointer to it.
8390 * haifa-sched.c (scheduled_insns): New static variable.
8391 (sched_extend_ready_list): Allocate it.
8392 (schedule_block): Use it to record the order of scheduled insns.
8393 Perform RTL changes to move insns only after all scheduling
8394 decisions have been made.
8395 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8396 begin_move_insn field.
8397 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8398 * sched-int.h (struct haifa_sched_info): Remove second argument
8399 from begin_schedule_ready hook. Add new member begin_move_insn.
8400 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8401 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8403 * haifa-sched.c (prune_ready_list): New function, broken out of
8405 (schedule_block): Use it.
8407 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8409 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8411 2011-04-01 Kai Tietz <ktietz@redhat.com>
8413 * config.gcc (*-*-mingw*): Allow as option the
8414 posix threading model.
8415 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8416 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8418 (CPP_SPEC): Add pthread/no-pthread handling.
8419 (LIB_SPEC): Likewise.
8420 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8421 (LIB_SPEC): Likewise.
8422 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8423 flag to pass -pthread option for shared libgcc build.
8424 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8425 for shared libgcc build.
8426 * config/i386/t-mingw-pthread: New file.
8427 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8428 New define to enable use of library pthread by default.
8429 * config/i386/mingw.opt (pthread): New driver option.
8430 (no-pthread): New driver option.
8431 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8432 * config/i386/mingw-w64.opt: Likewise.
8434 2011-04-01 Gary Funck <gary@intrepid.com>
8436 * c-decl.c (grokdeclarator): Fix formatting.
8438 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8440 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8441 instead of n_operands.
8442 (set_storage_via_setmem): Likewise.
8443 * optabs.c (maybe_gen_insn): Likewise.
8444 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8445 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8446 (mips_expand_builtin_direct): Likewise.
8447 * config/spu/spu.c (expand_builtin_args): Likewise.
8449 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8451 * recog.h (insn_data_d): Add n_generator_args.
8452 * genoutput.c (data): Likewise.
8453 (output_insn_data): Print it.
8454 (max_opno, num_dups): Delete.
8455 (scan_operands): Just fill in "d->operand[...]".
8456 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8458 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8460 * gensupport.h (pattern_stats): New structure.
8461 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8462 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8463 (max_operand_1, max_operand_vec): Delete.
8464 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8466 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8468 * emit-rtl.c (emit_pattern_after_setloc): New function.
8469 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8470 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8471 (emit_pattern_after): New function.
8472 (emit_insn_after, emit_jump_insn_after): Call it.
8473 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8474 (emit_pattern_before_setloc): New function.
8475 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8476 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8478 (emit_pattern_before): New function.
8479 (emit_insn_before, emit_jump_insn_before): Call it.
8480 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8482 2011-03-31 Richard Henderson <rth@redhat.com>
8484 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8485 (dw_separate_line_info_entry): Remove.
8486 (enum dw_line_info_opcode): New.
8487 (dw_line_info_entry): Use it.
8488 (dw_line_info_table, dw_line_info_table_p): New.
8489 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8490 (line_info_table, line_info_label_num): Remove.
8491 (line_info_table_in_use): Remove.
8492 (separate_line_info_table): Remove.
8493 (separate_line_info_table_allocated): Remove.
8494 (separate_line_info_table_in_use): Remove.
8495 (LINE_INFO_TABLE_INCREMENT): Remove.
8496 (line_info_label_num): New.
8497 (cur_line_info_table): New.
8498 (text_section_line_info, cold_text_section_line_info): New.
8499 (separate_line_info): New.
8500 (SEPARATE_LINE_CODE_LABEL): Remove.
8501 (print_dwarf_line_table): Remove.
8502 (debug_dwarf): Don't dump it.
8503 (output_one_line_info_table): New.
8504 (output_line_info): Use it.
8505 (new_line_info_table): New.
8506 (set_cur_line_info_table): New.
8507 (dwarf2out_switch_text_section): Use it.
8508 (dwarf2out_begin_function): Likewise.
8509 (push_dw_line_info_entry): New.
8510 (dwarf2out_source_line): Rewrite for new line info tables.
8511 (dwarf2out_init): Remove dead initailizations.
8513 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8515 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8517 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8518 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8519 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8520 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8521 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8522 * opt-functions.awk (flag_init, switch_bit_fields): New.
8523 (switch_flags): Don't handle flags moved to bit-fields. Don't
8524 generate CL_MISSING_OK or CL_SAVE.
8525 * optc-gen.awk: Update to generate bit-field output as well as
8527 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8528 bit-field instead of CL_REJECT_DRIVER flag.
8529 * opts-common.c (generate_canonical_option,
8530 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8531 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8532 instead of CL_REJECT_NEGATIVE flag.
8533 * toplev.c (print_switch_values): Use cl_report bit-field instead
8536 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8538 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8539 a zero minimum index only if it is redundant.
8541 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8543 PR rtl-optimization/48381
8544 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8545 instead of ira_class_hard_reg_index for calculating conflicting
8548 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8550 * cprop.c: Clean up hash table building.
8551 (reg_avail_info): Remove.
8552 (oprs_available_p): Remove.
8553 (record_last_reg_set_info): Remove.
8554 (record_last_set_info): Remove.
8555 (reg_available_p): New function.
8556 (gcse_constant_p): Do not treat unfolded conditions as constants.
8557 (make_set_regs_unavailable): New function.
8558 (hash_scan_set): Simplify with new reg_available_p.
8559 (compute_hash_table_work): Traverse insns stream only once.
8560 Do not compute reg_avail_info. Traverse insns in reverse order.
8561 Record implicit sets after recording explicit sets from the block.
8563 2011-03-31 Michael Matz <matz@suse.de>
8565 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8567 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8569 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8570 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8571 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8572 (h8300_mode_dependent_address_p): New function.
8573 (h8300_get_index): Make static.
8575 2011-03-31 Jeff Law <law@redhat.com>
8577 * reload1.c (elimination_effects): Fix typo in recent change.
8579 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8580 typo potentially leading to null pointer dereference.
8582 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8583 (setup_save_areas): Corresponding changes to avoid useless
8586 * jump.c (reversed_comparison_code_parts): Avoid successive return
8587 statements when REVERSE_CONDITION is defined.
8589 * expr.c (expand_assignment): Avoid useless assignments.
8590 (expand_expr_real_1): Likewise.
8591 (expand_expr_real_2): Avoid useless statements.
8593 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8595 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8597 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8600 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8602 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8605 * doc/tm.texi.in (TARGET_VERSION): Remove.
8606 * doc/tm.texi: Regenerate.
8607 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8608 * collect2.c (main): Don't use TARGET_VERSION.
8609 * mips-tdump.c (main): Don't use TARGET_VERSION.
8610 * mips-tfile.c (main): Don't use TARGET_VERSION.
8611 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8612 * config/rs6000/vxworksae.h: Remove.
8613 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8614 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8615 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8616 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8617 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8618 * config/arm/arm.h (TARGET_VERSION): Remove.
8619 * config/arm/coff.h (TARGET_VERSION): Remove.
8620 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8621 * config/arm/elf.h (TARGET_VERSION): Remove.
8622 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8623 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8624 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8625 * config/arm/pe.h (TARGET_VERSION): Remove.
8626 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8627 * config/arm/semi.h (TARGET_VERSION): Remove.
8628 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8629 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8630 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8631 * config/avr/avr.h (TARGET_VERSION): Remove.
8632 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8633 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8634 * config/frv/frv.h (TARGET_VERSION): Remove.
8635 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8636 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8637 * config/i386/darwin.h (TARGET_VERSION): Remove.
8638 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8639 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8640 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8641 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8642 * config/i386/gnu.h (TARGET_VERSION): Remove.
8643 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8644 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8645 * config/i386/linux.h (TARGET_VERSION): Remove.
8646 * config/i386/linux64.h (TARGET_VERSION): Remove.
8647 * config/i386/lynx.h (TARGET_VERSION): Remove.
8648 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8649 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8650 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8651 * config/i386/netware.h (TARGET_VERSION): Remove.
8652 * config/i386/nto.h (TARGET_VERSION): Remove.
8653 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8654 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8655 * config/ia64/elf.h (TARGET_VERSION): Remove.
8656 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8657 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8658 * config/ia64/linux.h (TARGET_VERSION): Remove.
8659 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8660 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8661 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8662 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8663 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8664 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8665 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8666 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8667 * config/m68k/linux.h (TARGET_VERSION): Remove.
8668 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8669 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8670 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8671 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8672 * config/mep/mep.h (TARGET_VERSION): Remove.
8673 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8674 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8675 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8676 * config/mips/linux.h (TARGET_VERSION): Remove.
8677 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8678 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8679 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8680 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8681 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8682 * config/pa/pa.h (TARGET_VERSION): Remove.
8683 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8684 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8685 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8686 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8687 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8688 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8689 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8690 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8691 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8692 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8693 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8694 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8695 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8696 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8697 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8698 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8699 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8700 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8701 * config/s390/linux.h (TARGET_VERSION): Remove.
8702 * config/s390/s390.h (TARGET_VERSION): Remove.
8703 * config/s390/tpf.h (TARGET_VERSION): Remove.
8704 * config/score/score.h (TARGET_VERSION): Remove.
8705 * config/sh/linux.h (TARGET_VERSION): Remove.
8706 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8707 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8708 * config/sh/sh.h (TARGET_VERSION): Remove.
8709 * config/sh/sh64.h (TARGET_VERSION): Remove.
8710 * config/sh/superh.h (TARGET_VERSION): Remove.
8711 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8712 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8713 * config/sparc/linux.h (TARGET_VERSION): Remove.
8714 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8715 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8716 TARGET_NAME32, TARGET_NAME): Remove.
8717 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8718 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8719 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8720 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8721 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8722 * config/spu/spu.h (TARGET_VERSION): Remove.
8723 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8724 * config/v850/v850.h (TARGET_VERSION): Remove.
8725 * config/vax/linux.h (TARGET_VERSION): Remove.
8726 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8727 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8728 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8730 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8733 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8734 frame-related from frame-unrelated adjustments to the stack pointer.
8736 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8738 * common.opt (fdebug-types-section): Move earlier.
8739 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8741 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8743 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8746 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8748 * tree.h (CASE_CHAIN): Define.
8749 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8750 (gimple_redirect_edge_and_branch): Likewise.
8752 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8755 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8758 2011-03-30 Jeff Law <law@redhat.com>
8760 * PR bootstrap/48371
8761 * reload1.c (reload): Fix botch in last change.
8763 * reload.h (struct reload): Fix typo introduced in last change.
8765 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8767 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8768 Undocumented. Remove help text.
8769 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8772 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8774 * doc/options.texi (NegativeAlias): Document.
8775 (Alias): Mention NegativeAlias.
8776 * opt-functions.awk: Handle NegativeAlias.
8777 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8778 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8779 * opts.h (CL_NEGATIVE_ALIAS): Define.
8780 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8781 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8783 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8785 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8786 mno-spe and mno-isel instead of mspe=no and -misel=no.
8788 2011-03-29 Mark Wielaard <mjw@redhat.com>
8790 * common.opt (fdebug-types-section): New flag.
8791 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8792 * dwarf2out.c (use_debug_types): New define.
8793 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8794 (print_die): Guard output of type unit signatures using
8796 (build_abbrev_table): Replace assert of dwarf_version >= 4
8797 with assert on use_debug_types.
8798 (size_of_die): Likewise.
8799 (unmark_dies): Likewise.
8800 (value_format): Decide AT_ref_external form on use_debug_types.
8801 (output_die): Replace dwarf_version version check guard with
8802 use_debug_types where appropriate.
8803 (modified_type_die): Likewise.
8804 (gen_reference_type_die): Likewise.
8805 (dwarf2out_start_source_file): Likewise.
8806 (dwarf2out_end_source_file): Likewise.
8807 (prune_unused_types_walk_attribs): Likewise.
8808 (dwarf2out_finish): Likewise.
8810 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8812 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8814 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8816 PR rtl-optimization/48332
8817 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8818 mode of input operand N and modeN to its actual mode.
8820 2011-03-30 Jeff Law <law@redhat.com>
8822 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8823 define accessor macro.
8824 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8825 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8826 (reg_equiv_init): Likewise.
8827 (reg_equivs_size): New variable.
8828 (reg_equiv_init_size): Remove.
8829 (allocate_initial_values): Move prototype to here from....
8830 * integrate.h (allocate_initial_values): Remove prototype.
8831 * integrate.c: Include reload.h.
8832 (allocate_initial_values): Corresponding changes.
8833 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8834 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8835 (update_equiv_regs): Corresponding changes.
8836 (ira): Corresponding changes.
8837 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8838 (push_secondary_reload): Corresponding changes.
8839 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8840 (make_memloc, find_reloads_address): Corresponding changes.
8841 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8842 (find_reloads_address_1): Corresponding changes.
8843 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8844 (refers_to_regno_for_reload_p): Corresponding changes.
8845 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8846 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8847 * reload1.c: Include ggc.h.
8848 (grow_reg_equivs): New function.
8849 (replace_pseudos_in, reload): Corresponding changes.
8850 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8851 (eliminate_regs_1, elimination_effects): Corresponding changes.
8852 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8853 (delete_output_reload): Likewise.
8854 * caller-save.c (mark_referenced_regs): Corresponding changes.
8855 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8856 * frv/predicates.md (frv_load_operand): Corresponding changes.
8857 * microblaze/microblaze.c (double_memory_operand): Corresponding
8859 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8860 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8861 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8862 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8863 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8865 * pa/pa.c (emit_move_sequence): Corresponding changes.
8866 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8868 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8871 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8872 structure modes. Don't check neon_vector_mem_operand for
8873 vector or structure modes.
8875 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8876 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8879 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8880 operand 1 and reshuffle the operands to match.
8881 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8883 2011-03-30 Christian Schüler <cschueler@gmx.de>
8886 * config/c.opt (F): Added 'Driver' to -F option.
8889 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8891 * config/darwin.opt: Added '-arch' option.
8893 2011-03-30 Nick Clifton <nickc@redhat.com>
8895 * config/rx/rx.md: Add peepholes and patterns to combine
8896 extending loads and simple arithmetic instructions.
8897 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8898 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8899 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8900 modes to use pre-decrement and post-increment addressing.
8901 (rx_is_restricted_memory_address): Add range checking of REG+INT
8903 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8904 (rx_memory_move_cost): Adjust cost of stores.
8905 (rx_adjust_insn_length): New function.
8907 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8910 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8911 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8912 matching arg00/arg01 types.
8914 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8916 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8917 last_location to UNKNOWN_LOCATION.
8919 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8922 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8925 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8926 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8929 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8931 (sparc_cpu): Likewise.
8932 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8935 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8939 PR rtl-optimization/48345
8940 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8941 hard regs for given mode from profitable regs when doing secondary
8944 2011-03-29 Jeff Law <law@redhat.com>
8947 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8948 do_not_duplicate field.
8949 (lookup_redirection_data): Corresponding changes.
8950 (create_duplicates): Always create a template block.
8951 (redirect_edges): Remove code which reused the original block
8952 when it was going to become unreachable code.
8953 (thread_block): Don't set do_not_duplicate field.
8955 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8957 * lto-opts.c (register_user_option_p, lto_register_user_option):
8958 Make type argument unsigned.
8959 * lto-streamer.h (lto_register_user_option): Make type argument
8961 * opth-gen.awk: Make CL_* macros unsigned.
8962 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8963 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8964 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8965 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8966 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8967 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8968 (find_opt): Make lang_mask argument unsigned.
8970 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8972 PR rtl-optimization/48331
8973 PR rtl-optimization/48334
8974 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8975 for any used algorithm.
8977 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8979 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8982 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8984 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8985 (alpha_option_override): Don't set alpha_sr_alias_set.
8986 (emit_frame_store_1): Use gen_frame_mem rather than calling
8988 (alpha_expand_epilogue): Ditto.
8990 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8992 PR tree-optimization/48290
8993 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8994 vectorization, check that relevant phis in the basic block after
8995 the inner loop are really inner loop's exit phis.
8997 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9000 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9001 (cached_dw_loc_list_def): New structure.
9002 (cached_dw_loc_list): New typedef.
9003 (cached_dw_loc_list_table): New variable.
9004 (cached_dw_loc_list_table_hash): New function.
9005 (cached_dw_loc_list_table_eq): Likewise.
9006 (add_location_or_const_value_attribute): Take a bool cache_p.
9007 Cache the list when the parameter is true.
9008 (gen_formal_parameter_die): Update caller.
9009 (gen_variable_die): Likewise.
9010 (dwarf2out_finish): Likewise.
9011 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9012 while generating debug info for the decl.
9013 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9014 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9015 (resolve_addr): Cache the result of resolving a chain of
9018 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9020 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9021 conflict object hard regset nodes have intersecting hard reg sets.
9023 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9024 after regstat_init_n_sets_and_refs.
9026 * ira.c: Add more comments at the top.
9027 (setup_stack_reg_pressure_class, setup_pressure_classes):
9028 Add comments how we compute the register pressure classes.
9029 (setup_allocno_and_important_classes): Add more comments.
9030 (setup_class_translate_array, reorder_important_classes)
9031 (setup_reg_class_relations): Add comments.
9033 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9036 * ira-color.c: Add 2011 to the Copyright line.
9037 (assign_hard_reg): Add more comments.
9038 (improve_allocation): Ditto.
9040 * ira-costs.c: Add 2011 to the Copyright line.
9041 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9043 (setup_regno_cost_classes_by_mode): Ditto.
9045 Initial patches from ira-improv branch:
9047 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9049 * ira-build.c (ira_create_object): Remove initialization of
9050 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9051 (ira_create_allocno): Remove initialization of
9052 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9053 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9054 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9055 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9056 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9057 Initialize ALLOCNO_ADD_DATA.
9058 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9059 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9061 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9062 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9064 * ira.c (ira_reallocate): Remove.
9065 (setup_pressure_classes): Call
9066 ira_init_register_move_cost_if_necessary. Use
9067 ira_register_move_cost instead of ira_get_register_move_cost.
9068 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9069 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9071 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9072 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9073 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9074 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9075 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9076 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9078 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9079 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9080 (struct allocno_color_data): New.
9081 (allocno_color_data_t): New typedef.
9082 (allocno_color_data): New definition.
9083 (ALLOCNO_COLOR_DATA): New macro.
9084 (struct object_color_data): New.
9085 (object_color_data_t): New typedef.
9086 (object_color_data): New definition.
9087 (OBJECT_COLOR_DATA): New macro.
9088 (update_copy_costs, calculate_allocno_spill_cost): Call
9089 ira_init_register_move_cost_if_necessary. Use
9090 ira_register_move_cost instead of ira_get_register_move_cost.
9091 (move_spill_restore, update_curr_costs): Ditto.
9092 (allocno_spill_priority): Make it inline.
9093 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9094 (struct coalesce_data, coalesce_data_t): New.
9095 (allocno_coalesce_data): New definition.
9096 (ALLOCNO_COALESCE_DATA): New macro.
9097 (merge_allocnos, coalesced_allocno_conflict_p): Use
9098 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9099 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9100 (coalesce_allocnos): Ditto.
9101 (setup_coalesced_allocno_costs_and_nums): Ditto.
9102 (collect_spilled_coalesced_allocnos): Ditto.
9103 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9104 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9105 (coalesce_spill_slots): Ditto.
9106 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9107 free allocno_coalesce_data.
9109 * ira-conflicts.c: Fix formatting.
9110 (process_regs_for_copy): Call
9111 ira_init_register_move_cost_if_necessary. Use
9112 ira_register_move_cost instead of ira_get_register_move_cost.
9113 (build_object_conflicts): Optimize.
9115 * ira-costs.c (record_reg_classes): Optimize. Call
9116 ira_init_register_move_cost_if_necessary. Use
9117 ira_register_move_cost, ira_may_move_in_cost, and
9118 ira_may_move_out_cost instead of ira_get_register_move_cost and
9119 ira_get_may_move_cost.
9120 (record_address_regs): Ditto.
9121 (scan_one_insn): Optimize.
9122 (find_costs_and_classes): Optimize.
9123 (process_bb_node_for_hard_reg_moves): Call
9124 ira_init_register_move_cost_if_necessary. Use
9125 ira_register_move_cost instead of ira_get_register_move_cost.
9127 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9128 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9129 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9130 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9132 (ira_initiate_emit_data, ira_finish_emit_data)
9133 (create_new_allocno): New functions.
9134 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9135 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9136 Use ira_register_move_cost instead of ira_get_register_move_cost.
9138 * ira-int.h: Fix some comments.
9139 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9140 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9141 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9142 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9144 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9145 bitfield after mode. Make hard_regno a short int. Make
9146 hard_regno short. Remove first_coalesced_allocno and
9147 next_coalesced_allocno. Move mem_optimized_dest_p,
9148 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9149 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9150 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9151 temp, colorable_p. Add new member add_data.
9152 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9153 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9154 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9155 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9156 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9157 (ALLOCNO_ADD_DATA): New macro.
9158 (ira_emit_data_t): New typedef.
9159 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9160 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9161 from struct ira_allocno.
9162 (ALLOCNO_EMIT_DATA): New macro.
9163 (ira_allocno_emit_data, allocno_emit_reg): New.
9164 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9165 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9166 (OBJECT_ADD_DATA): New macro.
9167 (ira_reallocate): Remove.
9168 (ira_initiate_emit_data, ira_finish_emit_data): New.
9169 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9170 (ira_init_register_move_cost_if_necessary): New.
9171 (ira_object_conflict_iter_next): Merge into
9172 ira_object_conflict_iter_cond.
9173 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9175 * ira-live.c (process_single_reg_class_operands): Call
9176 ira_init_register_move_cost_if_necessary. Use
9177 ira_register_move_cost instead of ira_get_register_move_cost.
9179 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9181 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9183 * ira-costs.c: Fix formatting.
9184 (cost_classes, cost_classes_num): Remove.
9185 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9186 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9187 (cost_classes_del, cost_classes_htab): New.
9188 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9189 (initiate_regno_cost_classes, setup_cost_classes): New.
9190 (setup_regno_cost_classes_by_aclass): New.
9191 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9192 (record_reg_classes): Use regno_cost_classes instead of
9193 cost_classes. Move checking opposite operand up.
9194 (record_address_regs): Use regno_cost_classes
9195 instead of cost_classes.
9196 (scan_one_insn): Ditto. Use always general register.
9197 (print_allocno_costs): Use regno_cost_classes instead of
9199 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9200 (find_costs_and_classes): Set up cost classes for each registers.
9201 Use also their mode for this. Use regno_cost_classes instead of
9203 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9205 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9206 (ira_costs, ira_set_pseudo_classes): Call
9207 initiate_regno_cost_classes and finish_regno_cost_classes.
9209 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9211 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9213 * target.def (ira_cover_classes): Remove.
9215 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9217 * doc/tm.texi.in: Ditto.
9219 * ira-conflicts.c: Remove mentioning cover classes from the file.
9220 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9221 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9223 * targhooks.c (default_ira_cover_classes): Remove.
9225 * targhooks.h (default_ira_cover_classes): Ditto.
9227 * haifa-sched.c: Remove mentioning cover classes from the file.
9228 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9229 ira_pressure_classes and ira_pressure_classes_num instead of
9230 ira_reg_class_cover_size and ira_reg_class_cover. Use
9231 sched_regno_pressure_class instead of sched_regno_cover_class.
9232 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9233 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9235 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9236 classes from the file.
9237 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9238 (struct object_hard_regs, struct object_hard_regs_node): New.
9239 (struct ira_object): New members profitable_hard_regs,
9240 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9241 (struct ira_allocno): Rename cover_class to aclass. Rename
9242 cover_class_cost and updated_cover_class_cost to class_cost and
9243 updated_class_cost. Remove splay_removed_p and
9244 left_conflict_size. Add new members colorable_p.
9245 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9246 (ALLOCNO_COLORABLE_P): New macro.
9247 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9248 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9249 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9250 (OBJECT_...): Rename parameter C to O.
9251 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9252 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9253 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9254 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9255 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9256 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9257 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9258 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9259 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9260 x_ira_reg_class_subunion.
9261 (ira_max_memory_move_cost, ira_max_register_move_cost)
9262 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9263 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9264 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9265 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9266 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9267 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9268 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9269 (ira_tune_allocno_costs_and_cover_classes): Rename to
9270 ira_tune_allocno_costs.
9271 (ira_debug_hard_regs_forest): New.
9272 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9273 (ira_object_conflict_iter_next): Fix comments.
9274 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9275 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9276 cover_class to aclass.
9277 (ira_allocate_and_accumulate_costs): Ditto.
9278 (ira_allocate_and_set_or_copy_costs): Ditto.
9280 * opts.c (decode_options): Remove ira_cover_class check.
9282 * ira-color.c: Remove mentioning cover classes from the file. Use
9283 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9284 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9285 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9286 (splay-tree.h): Remove include.
9287 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9288 before copy_freq_compare_func.
9289 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9290 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9292 (hard_regs_roots, hard_regs_node_vec): Ditto.
9293 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9294 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9295 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9296 (create_new_object_hard_regs_node): Ditto.
9297 (add_new_object_hard_regs_node_to_forest): Ditto.
9298 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9299 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9301 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9302 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9303 (remove_unused_object_hard_regs_nodes): Ditto.
9304 (enumerate_object_hard_regs_nodes): Ditto.
9305 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9306 (object_hard_regs_subnode_t): Ditto.
9307 (struct object_hard_regs_subnode): Ditto.
9308 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9309 (setup_object_hard_regs_subnode_index): Ditto.
9310 (get_object_hard_regs_subnodes_num): Ditto.
9311 (form_object_hard_regs_nodes_forest): Ditto.
9312 (finish_object_hard_regs_nodes_tree): Ditto.
9313 (finish_object_hard_regs_nodes_forest): Ditto.
9314 (allocnos_have_intersected_live_ranges_p): Rename to
9315 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9316 (pseudos_have_intersected_live_ranges_p): Rename to
9317 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9318 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9319 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9320 (update_copy_costs): Remove assert. Skip cost update if the hard
9321 reg does not belong the class.
9322 (assign_hard_reg): Process only profitable hard regs.
9323 (uncolorable_allocnos_num): Make it scalar.
9324 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9325 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9326 and ira_reg_class_max_nregs.
9327 (bucket_allocno_compare_func): Check frequency first.
9328 (sort_bucket): Add compare function as a parameter.
9329 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9330 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9331 (push_allocno_to_stack): Rewrite for checking new allocno
9333 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9334 (push_only_colorable): Pass new parameter to sort_bucket.
9335 (push_allocno_to_spill): Remove.
9336 (allocno_spill_priority_compare): Make it inline and rewrite.
9337 (splay_tree_allocate, splay_tree_free): Remove.
9338 (allocno_spill_sort_compare): New function.
9339 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9340 build and use splay tree. Choose first allocno in uncolorable
9341 allocno bucket to spill. Remove setting spill cost.
9342 (all_conflicting_hard_regs): Remove.
9343 (setup_allocno_available_regs_num): Check only profitable hard
9344 regs. Print info about hard regs nodes.
9345 (setup_allocno_left_conflicts_size): Remove.
9346 (put_allocno_into_bucket): Don't call
9347 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9348 (improve_allocation): New.
9349 (color_allocnos): Call setup_profitable_hard_regs,
9350 form_object_hard_regs_nodes_forest, improve_allocation,
9351 finish_object_hard_regs_nodes_forest. Setup spill cost.
9352 (print_loop_title): Use pressure classes.
9353 (color_allocnso): Ditto.
9354 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9355 and allocnos_for_spilling.
9356 (ira_sort_regnos_for_alter_reg): Don't setup members
9357 {first,next}_coalesced_allocno.
9358 (color): Remove allocating and freeing removed_splay_allocno_vec.
9359 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9360 prohibited_class_mode_regs.
9362 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9364 (update_allocno_pressure_excess_length): Use pressure classes.
9365 (inc_register_pressure, dec_register_pressure): Check for pressure
9367 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9368 pressure class. Use ira_reg_class_nregs instead of
9369 ira_reg_class_max_nregs.
9370 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9371 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9372 (single_reg_class): Use ira_reg_class_nregs instead of
9373 ira_reg_class_max_nregs.
9374 (process_bb_node_lives): Use pressure classes.
9376 * ira-emit.c: Remove mentioning cover classes from the file. Use
9377 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9378 (change_loop): Use pressure classes.
9379 (modify_move_list): Call ira_set_allocno_class instead of
9380 ira_set_allocno_cover_class.
9382 * ira-build.c: Remove mentioning cover classes from the file. Use
9383 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9384 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9385 ALLOCNO_UPDATED_CLASS_COST instead of
9386 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9387 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9388 (ira_create_allocno): Remove initialization of
9389 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9390 ALLOCNO_COLORABLE_P.
9391 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9392 Update conflict regs for the objects.
9393 (create_cap_allocno): Remove assert. Don't propagate
9394 ALLOCNO_AVAILABLE_REGS_NUM.
9395 (ira_free_allocno_costs): New function.
9396 (finish_allocno): Change a part of code into call of
9397 ira_free_allocno_costs.
9398 (low_pressure_loop_node_p): Use pressure classes.
9399 (object_range_compare_func): Don't compare classes.
9400 (setup_min_max_conflict_allocno_ids): Ditto.
9402 * loop-invariant.c: Remove mentioning cover classes from the file.
9403 Use ira_pressure_classes and ira_pressure_classes_num instead of
9404 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9405 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9406 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9407 Use reg_allocno_class instead of reg_cover_class.
9408 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9409 STACK_REG_COVER_CLASS.
9410 (get_regno_cover_class): Rename to get_regno_pressure_class.
9411 (move_loop_invariants): Initialize and finalize regstat.
9413 * ira.c: Remove mentioning cover classes from the file. Add
9414 comments about coloring without cover classes. Use ALLOCNO_CLASS
9415 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9416 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9417 setup_class_subset_and_memory_move_costs.
9418 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9419 (setup_cover_and_important_classes): Rename to
9420 setup_allocno_and_important_classes.
9421 (setup_class_translate_array): New.
9422 (setup_class_translate): Call it for allocno and pressure classes.
9423 (cover_class_order): Rename to allocno_class_order.
9424 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9425 of ira_class_translate.
9426 (reorder_important_classes): Set up ira_important_class_nums.
9427 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9428 (print_class_cover): Rename to print_classes. Add parameter.
9429 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9430 Print pressure classes too.
9431 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9432 setup_reg_subclasses.
9433 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9434 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9435 (setup_prohibited_class_mode_regs): Use
9436 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9437 (clarify_prohibited_class_mode_regs): New function.
9438 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9439 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9440 (ira_init_once): Initialize them.
9441 (free_register_move_costs): Process them.
9442 (ira_init): Move calls of find_reg_classes and
9443 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9444 Call clarify_prohibited_class_mode_regs.
9445 (ira_no_alloc_reg): Remove.
9446 (too_high_register_pressure_p): Use pressure classes.
9448 * sched-deps.c: Remove mentioning cover classes from the file.
9449 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9450 ira_pressure_classes and ira_pressure_classes_num instead of
9451 ira_reg_class_cover_size and ira_reg_class_cover.
9452 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9453 sched_regno_pressure_class instead of sched_regno_cover_class.
9454 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9455 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9457 * ira.h: Add 2010 to Copyright.
9458 (ira_no_alloc_reg): Remove external.
9459 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9460 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9461 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9462 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9463 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9464 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9465 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9466 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9467 x_ira_no_alloc_regs.
9468 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9469 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9470 ira_allocno_classes_num and ira_allocno_classes.
9471 (ira_class_translate): Rename to ira_allocno_class_translate.
9472 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9473 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9474 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9475 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9476 (ira_no_alloc_regs): New.
9478 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9479 classes from the file. Use ALLOCNO_CLASS instead of
9480 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9481 ALLOCNO_COVER_CLASS_COST.
9482 (regno_cover_class): Rename to regno_aclass.
9483 (record_reg_classes): Use ira_reg_class_subunion instead of
9484 ira_reg_class_union.
9485 (record_address_regs): Check overflow.
9486 (scan_one_insn): Ditto.
9487 (print_allocno_costs): Print total mem cost fore regional allocation.
9488 (print_pseudo_costs): Use REG_N_REFS.
9489 (find_costs_and_classes): Use classes intersected with them on the
9490 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9491 ira_reg_class_union. Use ira_allocno_class_translate and
9492 regno_aclass instead of ira_class_translate and regno_cover_class.
9493 Modify code for finding regno_aclass. Setup preferred classes for
9495 (setup_allocno_cover_class_and_costs): Rename to
9496 setup_allocno_class_and_costs. Use regno_aclass instead of
9497 regno_cover_class. Use ira_set_allocno_class instead of
9498 ira_set_allocno_cover_class.
9499 (init_costs, finish_costs): Use regno_aclass instead of
9501 (ira_costs): Use setup_allocno_class_and_costs instead of
9502 setup_allocno_cover_class_and_costs.
9503 (ira_tune_allocno_costs_and_cover_classes): Rename to
9504 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9505 by processing objects. Use ira_reg_class_max_nregs instead of
9506 ira_reg_class_nregs.
9508 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9510 * sched-int.h: Remove mentioning cover classes from the file.
9511 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9513 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9514 classes from the file.
9515 (struct reg_pref): Rename coverclass into allocnoclass.
9516 (reg_cover_class): Rename to reg_allocno_class.
9518 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9520 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9522 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9524 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9526 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9528 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9530 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9532 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9534 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9536 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9538 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9539 (i386_ira_cover_classes): Ditto.
9541 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9543 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9545 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9547 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9549 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9551 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9553 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9554 (mips_ira_cover_classes): Ditto.
9556 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9558 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9560 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9562 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9564 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9566 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9567 (IRA_COVER_CLASSES_VSX): Ditto.
9569 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9570 (rs6000_ira_cover_classes): Ditto.
9572 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9574 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9576 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9578 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9580 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9582 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9584 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9586 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9588 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9590 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9592 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9595 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9596 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9597 dw_fde_unlikely_section_end_label, cold_in_std_section,
9598 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9599 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9601 (output_fde): Use dw_fde_second_{begin,end} if second is
9602 true, otherwise dw_fde_{begin,end}.
9603 (output_call_frame_info): Test dw_fde_second_begin != NULL
9604 instead of dw_fde_switched_sections.
9605 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9606 fields, initialize new fields. Initialize in_std_section
9607 unconditionally from the first partition.
9608 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9609 dw_fde_second_begin is non-NULL.
9610 (dwarf2out_switch_text_section): Stop initializing removed
9611 dw_fde_struct fields, initialize new fields, initialize
9612 also dw_fde_end here. Set dw_fde_switch_cfi even when
9613 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9614 (struct var_loc_list_def): Add last_before_switch field.
9615 (arange_table, arange_table_allocated, arange_table_in_use,
9616 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9617 (size_of_aranges): Count !in_std_section and !second_in_std_section
9618 hunks in fdes, instead of looking at arange_table_in_use.
9619 (output_aranges): Add aranges_length argument, don't call
9620 size_of_aranges here. Instead of using aranges_table*
9621 emit ranges for fdes when !in_std_section resp.
9622 !second_in_std_section.
9623 (dw_loc_list): Break ranges crossing section switch.
9624 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9625 use dw_fde_second_end instead of dw_fde_end as end of last range.
9626 (gen_subprogram_die): Don't call add_arange. Use
9627 dw_fde_{begin,end} for first partition and if switched
9628 section dw_fde_second_{begin,end} for the second.
9629 (var_location_switch_text_section_1,
9630 var_location_switch_text_section): New functions.
9631 (dwarf2out_begin_function): Initialize cold_text_section even
9632 when function_section () isn't text_section.
9633 (prune_unused_types): Don't walk arange_table.
9634 (dwarf2out_finish): Don't needlessly test
9635 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9636 If info_section_emitted, call size_of_aranges and if it indicates
9637 non-empty .debug_aranges, call output_aranges with the computed
9638 size. Stop using removed dw_fde_struct fields, use
9639 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9643 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9644 create ENTRY_VALUE if incoming or address of incoming's MEM
9646 * dwarf2out.c (mem_loc_descriptor): Don't emit
9647 DW_OP_GNU_entry_value of DW_OP_fbreg.
9648 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9649 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9650 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9651 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9653 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9654 is a REG_P or MEM_P with REG_P address, compute hash directly
9655 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9656 (preserve_only_constants): Don't clear VALUES forwaring
9657 ENTRY_VALUE to some other VALUE.
9659 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9661 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9664 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9666 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9667 block before expanding the statement.
9668 (expand_gimple_stmt_1): Likewise. Set them here...
9669 (expand_gimple_stmt): ...and not here. Tidy.
9670 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9673 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9675 * Makefile.in: New rule for cprop.o.
9676 * gcse.c: Move constant/copy propagation to cprop.c.
9677 (compute_local_properties): Only handle expression tables.
9678 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9679 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9680 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9681 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9682 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9683 compute_cprop_data, find_used_regs, try_replace_reg,
9684 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9685 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9686 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9687 find_bypass_set, reg_killed_on_edge, bypass_block,
9688 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9689 execute_rtl_cprop, pass_rtl_cprop): Move to...
9690 * cprop.c: ...here. New file, constant/copy propagation for RTL
9691 moved from gcse.c to here with minor cleanups in duplicated code.
9693 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9695 * config/i386/i386.c (flag_opts): Fix a typo in
9696 -mavx256-split-unaligned-store.
9698 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9700 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9701 LIBCALL_VALUE): Remove macros.
9702 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9703 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9704 (h8300_function_value, h8300_libcall_value,
9705 h8300_function_value_regno_p): New functions.
9707 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9709 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9711 2011-03-28 Jeff Law <law@redhat.com>
9713 * tree-ssa-threadupdate.c (redirect_edges): Call
9714 create_edge_and_update_destination_phis as needed.
9715 (create_edge_and_update_destination_phis): Accept new BB argument.
9716 All callers updated.
9717 (thread_block): Do not update the profile when threading around
9718 intermediate blocks.
9719 (thread_single_edge): Likewise.
9720 (determine_bb_domination_status): If BB is not a successor of the
9721 loop header, return NONDOMINATING.
9722 (register_jump_thread): Note when we register a jump thread around
9723 an intermediate block.
9724 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9725 (thread_across_edge): Use it.
9727 2011-03-28 Tristan Gingold <gingold@adacore.com>
9729 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9730 when for_return is 2.
9732 2011-03-28 Jeff Law <law@redhat.com>
9734 * var-tracking.c (canonicalize_values_mark): Delete unused
9736 (canonicalize_values_star, set_variable_part): Likewise.
9737 (clobber_variable_part, delete_variable_part): Likewise.
9739 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9741 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9743 2011-03-28 Martin Jambor <mjambor@suse.cz>
9745 * tree-inline.c (expand_call_inline): Do not check that destination
9747 (optimize_inline_calls): Assert that destination node is analyzed.
9748 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9749 not call tree_lowering_passes.
9750 * cgraph.h (cgraph_analyze_function): Declare.
9751 * cgraphunit.c (cgraph_analyze_function): Make public.
9753 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9755 * config/sparc/sparc-opts.h: New.
9756 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9757 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9758 (sparc_option_override): Store processor_type enumeration rather
9759 than string in cpu_default. Remove name and enumeration from
9760 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9761 without using sparc_select. Use target_flags_explicit instead of
9763 * config/sparc/sparc.h (enum processor_type): Move to
9765 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9766 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9767 HeaderInclude entry.
9768 (mcpu=, mtune=): Use Var and Enum.
9769 (sparc_processor_type): New Enum and EnumValue entries.
9771 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9772 Iain Sandoe <iains@gcc.gnu.org>
9775 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9777 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9779 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9780 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9781 Insert new statements at it in lieu of STMT.
9782 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9783 * tree-vect-stmts.c (vectorizable_store): Likewise.
9784 (vectorizable_load): Likewise.
9786 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9788 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9793 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9795 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9796 unaligned 256bit load/store.
9797 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9798 (*avx_movdqu<avxmodesuffix>): Likewise.
9800 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9803 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9804 * config/pa/pa.md (iordi3): Use new predicate in expander.
9807 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9809 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9810 FUNCTION_VALUE_REGNO_P): Remove macros.
9811 * config/mips/mips-protos.h (mips_function_value): Remove.
9812 * config/mips/mips.c (mips_function_value): Rename to...
9813 (mips_function_value_1): ... this. Make static. Handle receiving
9814 the function type in 'fn_decl_or_type' argument.
9815 (mips_function_value, mips_libcall_value,
9816 mips_function_value_regno_p): New function.
9817 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9818 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9820 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9822 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9823 and -mavx256-split-unaligned-store.
9824 (ix86_option_override_internal): Split 32-byte AVX unaligned
9825 load/store by default.
9826 (ix86_avx256_split_vector_move_misalign): New.
9827 (ix86_expand_vector_move_misalign): Use it.
9829 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9830 -mavx256-split-unaligned-store.
9832 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9833 256bit load/store. Generate unaligned store on misaligned memory
9835 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9837 (*avx_movdqu<avxmodesuffix>): Likewise.
9839 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9840 -mavx256-split-unaligned-store.
9842 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9845 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9848 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9850 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9851 opno arguments with an expand_operand. Use create_input_operand.
9852 (mips_prepare_builtin_target): Delete.
9853 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9855 (mips_expand_builtin_direct): Use create_output_operand and
9856 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9857 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9858 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9860 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9862 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9864 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9866 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9868 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9869 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9870 basic blocks and call commit_edge_insertions directly.
9871 (fixup_abnormal_edges): Move from here to...
9872 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9873 on the edges and return whether some have actually been inserted.
9874 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9877 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9879 PR rtl-optimization/48144
9880 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9881 (merge_expr_data): ... here.
9882 (av_set_intersect): Rename to av_set_code_motion_filter.
9883 Update all callers. Call merge_history_vect when an expression
9884 is found in both sets.
9885 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9887 2011-03-26 Alan Modra <amodra@gmail.com>
9889 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9890 cmodel medium addresses.
9891 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9892 64-bit gpr loads and stores.
9893 (rs6000_secondary_reload_ppc64): New function.
9894 * config/rs6000/rs6000-protos.h: Declare it.
9895 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9897 2011-03-26 Alan Modra <amodra@gmail.com>
9900 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9901 GNU Go in traceback table.
9903 2011-03-25 Richard Henderson <rth@redhat.com>
9905 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9906 if there are exactly 6 operands.
9907 (set_storage_via_setmem): Similarly.
9909 2011-03-25 Kai Tietz <ktietz@redhat.com>
9911 * collect2.c (write_c_file_stat): Handle backslash
9912 as right-hand directory separator.
9913 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9914 checking just for slash.
9915 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9916 instead of checking for trailing slash.
9917 * gcc.c (record_temp_file): Use filename_cmp instead
9919 (do_spec_1): Likewise.
9920 (replace_outfile_spec_function): Likewise.
9921 (is_directory): Use filename_ncmp instead of strncmp.
9922 (print_multilib_info): Likewise.
9923 * gcov.c (find_source): Use filename_cmp instead
9925 (make_gcov_file_name): Fix order of slash/backslash
9927 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9928 (add_standard_paths): Likewise.
9929 * mips-tfile.c (saber_stop): Handle backslash.
9930 * prefix.c (update_path): Use filename_ncmp instead of
9932 * profile.c (output_location): Use filename_cmp instead
9934 * read-md.c (handle_toplevel_file): Handle backslash.
9935 * tlink.c (frob_extension): Likewise.
9936 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9938 * tree-dump.c (dequeue_and_dump): Handle backslash.
9939 * tree.c (get_file_function_name): Likewise.
9940 * gengtype.c (read_input_list): Likewise.
9941 (get_file_realbasename): Likewise.
9942 (get_output_file_with_visibility): Use filename_cmp
9945 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9947 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9950 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9952 * fold-const.c (expr_location_or): New function.
9953 (fold_truth_not_expr): Call it.
9955 2011-03-25 Jeff Law <law@redhat.com>
9957 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9959 * c-family/c-common.c (def_fn_type): Likewise.
9960 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9961 * emit-rtl.c (gen_rtvec): Likewise.
9962 * lto/lto-lang.c (def_fn_type): Likewise.
9964 2011-03-25 Richard Guenther <rguenther@suse.de>
9966 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9967 also generate copies.
9968 (fini_copy_prop): Handle constant values properly.
9970 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9972 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9973 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9974 (hash_loc_operands, compare_loc_operands): Handle
9975 DW_OP_GNU_entry_value.
9977 2011-03-25 Kai Tietz <ktietz@redhat.com>
9979 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9980 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9981 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9982 comment and use macro TARGET_64BIT_MS_ABI instead.
9983 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9984 and change default behavior for 32-bit MS_ABI.
9985 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9986 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9988 (ix86_cfun_abi): Likewise.
9989 (ix86_maybe_switch_abi): Adjust comment.
9990 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9991 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9992 instead of checking for SYSV_ABI.
9993 (ix86_nsaved_sseregs): Likewise.
9994 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9996 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9997 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9998 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9999 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10000 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10002 2011-03-25 Richard Guenther <rguenther@suse.de>
10004 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10005 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10006 (verify_gimple): Remove.
10007 * tree-cfg.c (verify_gimple_call): Merge verification
10009 (verify_gimple_phi): Merge verification from verify_stmts.
10010 (verify_gimple_label): New function.
10011 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10012 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10013 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10014 (verify_stmts): Rename to verify_gimple_in_cfg.
10015 (verify_gimple_in_cfg): New function.
10016 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10017 * tree-ssa.c (verify_ssa): Likewise.
10018 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10020 2011-03-25 Richard Guenther <rguenther@suse.de>
10022 * passes.c (init_optimization_passes): Add FRE pass after
10025 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10026 Andrew Stubbs <ams@codesourcery.com>
10028 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10030 (arm_movdi_vfp_cortexa8): New pattern.
10031 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10032 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10033 instructions when tuning for Cortex-A8. Set attribute "arch".
10034 * config/arm/arm.md: Move include arm-tune.md up a bit.
10035 (define_attr "arch"): Add "onlya8" and "nota8" values.
10036 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10038 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10042 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10044 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10045 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10046 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10047 * passes.c (init_optimization_passes): Move
10048 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10050 2011-03-25 Kai Tietz <ktietz@redhat.com>
10052 * c-typeck.c (comptypes_internal): Replace target
10053 hook call of comp_type_attributes by version in tree.c file.
10054 * gimple.c (gimple_types_compatible_p_1): Likewise.
10055 * tree-ssa.c (useless_type_conversion_p): Likewise.
10056 * tree.c (build_type_attribute_qual_variant): Likewise.
10057 (attribute_value_equal): New static helper function.
10058 (comp_type_attributes): New function.
10059 (merge_attributes): Use attribute_value_equal for comparison.
10060 (attribute_list_contained): Likewise.
10061 * tree.h (comp_type_attributes): New prototype.
10063 2011-03-25 Richard Guenther <rguenther@suse.de>
10065 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10066 of complex types at -O0.
10067 (verify_gimple_assign_binary): Likewise.
10068 (verify_gimple_assign_ternary): Likewise.
10070 2011-03-24 Mark Wielaard <mjw@redhat.com>
10072 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10073 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10075 2011-03-24 Mark Wielaard <mjw@redhat.com>
10078 * dwarf2out.c (output_abbrev_section): Only write table when
10079 abbrev_die_table_in_use > 1.
10081 2011-02-24 Richard Henderson <rth@redhat.com>
10083 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10084 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10085 (alpha_expand_unaligned_load_words): Use extql.
10086 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10087 (emit_insxl): Handle all modes for consistency.
10089 2011-02-24 Richard Henderson <rth@redhat.com>
10091 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10092 (alpha_expand_unaligned_load): Likewise.
10093 (alpha_expand_unaligned_store): Likewise.
10094 (alpha_expand_unaligned_load_words): Likewise.
10095 (alpha_expand_unaligned_store_words): Likewise.
10096 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10097 (alpha_split_lock_test_and_set_12): Likewise.
10098 (print_operand, alpha_fold_builtin_extxx): Likewise.
10099 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10100 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10101 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10102 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10103 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10104 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10105 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10106 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10107 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10108 (extwl, extll, extql): Similarly.
10109 (inswh, inslh, insqh): Similarly.
10110 (mskbl, mskwl, mskll, mskql): Similarly.
10111 (mskwh, msklh, mskqh): Similarly.
10113 2011-02-24 Richard Henderson <rth@redhat.com>
10115 * config/alpha/alpha.md (attribute isa): Add er, ner.
10116 (attribute enabled): Handle them.
10117 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10119 2011-02-24 Richard Henderson <rth@redhat.com>
10121 * config/alpha/alpha.md (attribute isa): Add vms.
10122 (attribute enabled): Handle it.
10123 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10124 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10125 (*movtf): Rename from *movtf_internal for consistency.
10126 (*movsi): Merge with *movsi_nt_vms.
10127 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10128 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10129 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10130 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10132 2011-02-24 Richard Henderson <rth@redhat.com>
10134 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10135 (extendqisi2, extendhisi2): Likewise.
10136 (extendqidi2): Simplify BWX/non-BWX expansions.
10137 (extendhidi2): Similarly.
10139 2011-02-24 Richard Henderson <rth@redhat.com>
10141 * config/alpha/alpha.md (attribute isa): New.
10142 (attribute enabled): New.
10143 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10144 (zero_extendqisi2, zero_extendqidi2): Similarly.
10145 (zero_extendhisi2, zero_extendhidi2): Similarly.
10146 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10148 2011-02-24 Richard Henderson <rth@redhat.com>
10150 * config/alpha/predicates.md (input_operand): Revert last change;
10151 update comment to mention 32-bit VMS rather than Windows.
10153 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10155 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10156 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10157 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10158 * passes.c (init_optimization_passes): Move
10159 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10161 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10163 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10165 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10167 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10170 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10173 * simplify-rtx.c (simplify_const_unary_operation): Call
10174 real_convert when changing mode class with FLOAT_EXTEND.
10176 2011-03-24 Nick Clifton <nickc@redhat.com>
10178 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10179 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10180 * config/rx/rx.c (rx_option_override): Set align_jumps,
10181 align_loops and align_labels if not set by the user.
10182 (rx_align_for_label): New function.
10183 (rx_max_skip_for_label): New function.
10184 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10185 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10186 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10187 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10188 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10190 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10192 PR rtl-optimization/48263
10193 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10194 and original commutative_p handling. Use maybe_gen_insn.
10196 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10198 * reload.c (find_reloads_subreg_address): Add address_reloaded
10199 parameter and return true there if the full address has been
10201 (find_reloads_toplev): Pass address_reloaded flag.
10202 (find_reloads_address_1): Don't use address_reloaded parameter.
10204 2011-03-24 Jeff Law <law@redhat.com>
10206 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10207 unused variable "ann".
10208 (remove_unused_locals): Likewise.
10210 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10213 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10216 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10218 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10219 for invalid symbolic addresses.
10220 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10223 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10225 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10226 the argument in calls to fold_truth_not_expr.
10228 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10230 * tree.c (record_node_allocation_statistics): New function.
10231 (make_node_stat, copy_node_stat, build_string): Call it.
10232 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10233 (build1_stat, build_omp_clause): Likewise.
10235 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10237 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10240 2011-03-24 Richard Guenther <rguenther@suse.de>
10242 PR tree-optimization/48271
10243 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10244 blocks that still exist.
10246 2011-03-24 Richard Guenther <rguenther@suse.de>
10248 PR tree-optimization/48270
10249 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10250 not free datarefs before ddrs.
10252 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10254 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10255 from the address built for a reference with variable offset.
10257 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10260 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10261 alternatives that can be handled with movq or movabsq insn.
10262 (*movdf_internal): Disable for !TARGET_64BIT.
10263 (*movdf_internal_nointeger): Ditto.
10264 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10266 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10268 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10269 (FUNCTION_ARG_ADVANCE): Likewise.
10270 * tm.texi.in: Change references to them to hook references.
10271 * tm.texi: Regenerate.
10272 * targhooks.c (default_function_arg): Eliminate check for target macro.
10273 (default_function_incoming_arg): Likewise.
10274 (default_function_arg_advance): Likewise.
10275 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10276 (function_arg_advance): Likewise.
10277 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10279 2011-03-24 Richard Guenther <rguenther@suse.de>
10281 PR middle-end/48269
10282 * tree-object-size.c (addr_object_size): Do not double-account
10283 for MEM_REF offsets.
10285 2011-03-24 Diego Novillo <dnovillo@google.com>
10287 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10288 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10289 (lto_input_data_block): Move from lto-opts.c. Make extern.
10291 (lto_input_string): Rename from input_string. Make extern.
10293 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10294 output_string_with_length.
10295 Output 0 to indicate a non-NULL string. Update all callers to
10297 (lto_output_string): Rename from output_string. Make extern.
10299 (lto_output_decl_state_streams): Make extern.
10300 (lto_output_decl_state_refs): Make extern.
10301 * lto-streamer.h (lto_input_string): Declare.
10302 (lto_input_data_block): Declare.
10303 (lto_output_string): Declare.
10304 (lto_output_string_with_length): Declare.
10305 (lto_output_decl_state_streams): Declare.
10306 (lto_output_decl_state_refs): Declare.
10308 2011-03-24 Richard Guenther <rguenther@suse.de>
10310 PR tree-optimization/46562
10311 * tree.c (build_invariant_address): New function.
10312 * tree.h (build_invariant_address): Declare.
10313 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10314 a renamed function moved ...
10315 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10316 Take valueization callback parameter.
10317 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10318 * gimple-fold.h: New file.
10319 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10320 (ccp_fold, fold_const_aggregate_ref,
10321 fold_ctor_reference, fold_nonarray_ctor_reference,
10322 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10323 get_base_constructor): Move ...
10324 * gimple-fold.c: ... here.
10325 (gimple_fold_stmt_to_constant_1): New function
10326 split out from ccp_fold. Take a valueization callback parameter.
10327 Valueize all operands.
10328 (gimple_fold_stmt_to_constant): New wrapper function.
10329 (fold_const_aggregate_ref_1): New function split out from
10330 fold_const_aggregate_ref. Take a valueization callback parameter.
10331 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10332 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10333 invariant POINTER_PLUS_EXPRs to invariant form.
10334 (vn_valueize): New function.
10335 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10336 * tree-vrp.c (vrp_valueize): New function.
10337 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10338 to fold statements to constants.
10339 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10340 function declarations.
10341 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10342 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10344 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10346 * config/h8300/predicates.md (jump_address_operand): Fix register
10349 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10351 * doc/invoke.texi (max-stores-to-sink): Document.
10352 * params.h (MAX_STORES_TO_SINK): Define.
10353 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10354 if either vectorization or if-conversion is disabled.
10355 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10356 tree-vect-data-refs.c vect_equal_offsets.
10357 (dr_equal_offsets_p): New function.
10358 (find_data_references_in_bb): Remove static.
10359 * tree-data-ref.h (find_data_references_in_bb): Declare.
10360 (dr_equal_offsets_p): Likewise.
10361 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10362 (vect_drs_dependent_in_basic_block): Update calls to
10363 vect_equal_offsets.
10364 (vect_check_interleaving): Likewise.
10365 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10366 (cond_if_else_store_replacement): Rename to...
10367 (cond_if_else_store_replacement_1): ... this. Change arguments and
10369 (cond_if_else_store_replacement): New function.
10370 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10371 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10373 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10376 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10377 to subtract lower bound instead of GEN_INT().
10379 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10384 * doc/extend.texi (Alignment): Move section to match order in TOC.
10385 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10386 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10388 2011-03-23 Jeff Law <law@redhat.com>
10390 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10391 before removing the edge.
10393 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10394 it may have been freed by redirect_branch_edge or
10395 redirect_edge_succ_nodup.
10397 2011-03-23 Richard Guenther <rguenther@suse.de>
10399 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10400 (check_va_list_escapes): Likewise.
10401 (check_all_va_list_escapes): Likewise.
10403 2011-03-23 Richard Guenther <rguenther@suse.de>
10405 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10406 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10407 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10408 (alias.o): Likewise.
10409 (ipa-type-escape.o): Remove.
10410 (ipa-struct-reorg.o): Likewise.
10411 (GTFILES): Remove ipa-struct-reorg.c.
10412 * alias.c: Do not include ipa-type-escape.h.
10413 * tree-ssa-alias.c: Likewise.
10414 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10415 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10416 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10417 and ipa-type-escape passes.
10418 * tree-pass.h (pass_ipa_type_escape): Remove.
10419 (pass_ipa_struct_reorg): Likewise.
10420 * ipa-struct-reorg.h: Remove.
10421 * ipa-struct-reorg.c: Likewise.
10422 * ipa-type-escape.h: Likewise.
10423 * ipa-type-escape.c: Likewise.
10424 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10425 (--param struct-reorg-cold-struct-ratio): Likewise.
10426 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10427 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10428 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10430 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10432 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10433 cpu attribute value.
10434 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10435 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10436 * config/s390/s390.c (processor_flags_table): New constant array.
10437 (s390_handle_arch_option): Remove.
10438 (s390_handle_option): Remove s390_handle_arch_option invocations
10439 and OPT_mwarn_framesize_ handling.
10440 (s390_option_override): Remove s390_handle_arch_option invocation.
10441 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10443 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10444 * config/s390/s390.opt (s390_tune, s390_arch)
10445 (march=): Replace s390_arch_option enum and values with
10446 processor_type. Set variable name to s390_arch. Set
10447 initialization value.
10448 (mtune=): Replace s390_arch_option with processor_type. Set
10449 variable name to s390_tune. Set initialization value.
10451 2011-03-23 Julian Brown <julian@codesourcery.com>
10453 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10454 accesses which are not naturally aligned.
10456 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10459 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10461 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10463 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10464 parameter from "int" to "enum insn_code".
10465 (expand_operand_type): New enum.
10466 (expand_operand): New structure.
10467 (create_expand_operand): New function.
10468 (create_fixed_operand, create_output_operand): Likewise
10469 (create_input_operand, create_convert_operand_to): Likewise.
10470 (create_convert_operand_from, create_address_operand): Likewise.
10471 (create_integer_operand): Likewise.
10472 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10473 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10474 (expand_insn, expand_jump_insn): Likewise.
10475 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10476 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10477 (expand_movstr, expand_builtin___clear_cache): Likewise.
10478 (expand_builtin_lock_release): Likewise.
10479 * explow.c (allocate_dynamic_stack_space): Likewise.
10480 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10481 and use the default handling in that case.
10482 * expmed.c (check_predicate_volatile_ok): Delete.
10483 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10484 (emit_cstore): Likewise.
10485 * expr.c (emit_block_move_via_movmem): Likewise.
10486 (set_storage_via_setmem, expand_assignment): Likewise.
10487 (emit_storent_insn, try_casesi): Likewise.
10488 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10489 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10490 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10491 (expand_twoval_unop, expand_twoval_binop): Likewise.
10492 (expand_unop_direct, emit_indirect_jump): Likewise.
10493 (emit_conditional_move, vector_compare_rtx): Likewise.
10494 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10495 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10496 (expand_sync_lock_test_and_set): Likewise.
10497 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10498 (emit_unop_insn): Likewise.
10499 (expand_copysign_absneg): Change icode to an insn_code.
10500 (create_convert_operand_from_type): New function.
10501 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10502 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10503 (expand_insn, expand_jump_insn): Likewise.
10504 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10505 than const_int_operand for operand 2.
10507 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10509 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10512 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10514 * emit-rtl.c (emit_pattern_before_noloc): New function.
10515 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10516 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10517 (emit_pattern_after_noloc): New function.
10518 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10519 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10521 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10523 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10524 (__ffsDI2): Likewise.
10526 2011-03-22 Richard Henderson <rth@redhat.com>
10528 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10529 of !TARGET_ABI_OPEN_VMS.
10530 (alpha_trampoline_init, alpha_start_function): Likewise.
10531 (alpha_expand_epilogue, alpha_file_start): Likewise.
10532 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10533 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10534 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10535 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10536 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10538 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10540 * config/s390/s390-opts.h: New.
10541 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10542 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10543 s390_stack_guard): Remove.
10544 (s390_handle_arch_option): Return void. Take enum
10545 s390_arch_option value instead of string and searching array.
10546 (s390_handle_option): Don't assert that global structures are in
10547 use. Access variables via opts pointer. Use error_at. Don't use
10548 sscanf for -mstack-guard= or -mstack-size=. Update call to
10549 s390_handle_arch_option.
10550 (s390_option_override): Update call to s390_handle_arch_option.
10551 (s390_emit_prologue): Use %d format for s390_stack_size in
10552 diagnostic. Use %wd for HOST_WIDE_INT.
10553 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10554 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10555 * config/s390/s390.opt (config/s390/s390-opts.h): New
10556 HeaderInclude entry.
10557 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10558 s390_arch_flags, s390_warn_framesize): New Variable entries.
10559 (s390_arch_option): New Enum and EnumValue entries.
10560 (march=): Use Enum instead of Var.
10561 (mstack-guard=, mstack-size=): Use UInteger and Var.
10562 (mtune=): Use Enum.
10564 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10566 * config/score/score.c (score_handle_option): Don't assert that
10567 global structures are in use. Access target_flags via opts
10568 pointer. Use value of -march= option to determine target_flags
10570 * config/score/score.opt (march=): Use Enum.
10571 (score_arch): New Enum and EnumValue entries.
10573 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10575 * config/mep/mep.c (option_mtiny_specified): Remove.
10576 (mep_option_override): Move register handling for -mivc2 from
10577 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10578 instead of option_mtiny_specified.
10579 (mep_handle_option): Access target_flags via opts pointer. Don't
10580 assert that global structures are in use. Defer part of -mivc2
10581 handling and move it to mep_option_override.
10582 * config/mep/mep.opt (IVC2): New Mask entry.
10583 (mivc2): Use Var and Defer instead of Mask.
10585 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10587 * config/v850/v850-opts.h: New.
10588 * config/v850/v850.c (small_memory): Replace with
10589 small_memory_physical_max array. Make that array static const.
10590 (v850_handle_memory_option): Take integer value of argument. Take
10591 gcc_options pointer, option text and location. Return void.
10592 Update for changes to small memory structures.
10593 (v850_handle_option): Access target_flags via opts pointer. Don't
10594 assert that global structures are in use. Update calls to
10595 v850_handle_memory_option.
10596 (v850_encode_data_area): Update references to small memory settings.
10597 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10598 (enum small_memory_type): Move to v850-opts.h.
10599 * config/v850/v850.opt (config/v850/v850-opts.h): New
10600 HeaderInclude entry.
10601 (small_memory_max): New Variable entry.
10602 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10603 (mtda, mzda): Likewise.
10605 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10607 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10608 pointer. Don't assert that global structures are in use.
10610 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10612 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10613 via opts pointer. Don't assert that global structures are in use.
10615 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10617 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10618 (munix=93): Use Var.
10619 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10620 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10621 * config/pa/pa-opts.h: New.
10622 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10623 (pa_handle_option): Don't assert that global structures are in
10624 use. Access target_flags via opts pointer. Don't handle
10625 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10627 (pa_option_override): Handle deferred OPT_mfixed_range_.
10629 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10631 * config/mn10300/mn10300-opts.h: New.
10632 * config/mn10300/mn10300.c (mn10300_processor,
10633 mn10300_tune_string): Remove.
10634 (mn10300_handle_option): Don't assert that global structures are
10635 in use. Access mn10300_processor via opts pointer. Don't handle
10637 * config/mn10300/mn10300.h (enum processor_type): Move to
10639 (mn10300_processor): Remove.
10640 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10641 HeaderInclude entry.
10642 (mn10300_processor): New Variable entry.
10645 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10647 * config/microblaze/microblaze.c: Don't include opts.h.
10648 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10649 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10650 (mno-clearbss): Use Var and Warn.
10652 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10654 * config/m32r/m32r-opts.h: New.
10655 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10656 (m32r_handle_option): Don't assert that global structures are in
10657 use. Access target_flags and m32r_cache_flush_func via opts
10658 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10659 OPT_mno_flush_trap here.
10660 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10661 include of m32r-opts.h.
10662 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10663 HeaderInclude entry.
10664 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10665 (mmodel=): Use Enum and Var.
10666 (m32r_model): New Enum and EnumValue entries.
10667 (mno-flush-trap): Use Var.
10668 (msdata=): Use Enum and Var.
10669 (m32r_sdata): New Enum and EnumValue entries.
10671 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10673 * config/m32c/m32c.c: Don't include opts.h.
10674 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10675 m32c_handle_option): Remove.
10676 (m32c_option_override): Check global_options_set.x_target_memregs
10677 instead of target_memregs_set.
10678 * config/m32c/m32c.h (target_memregs): Remove.
10679 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10682 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10684 * config/iq2000/iq2000-opts.h: New.
10685 * config/iq2000/iq2000.c: Don't include opts.h.
10686 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10687 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10688 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10689 HeaderInclude entry.
10690 (iq2000_tune): New Variable entry.
10691 (march=): Add comment. Use Enum.
10692 (iq2000_arch): New Enum and EnumValue entries.
10693 (mcpu=): Use Enum and Var.
10694 (iq2000_tune): New Enum and EnumValue entries.
10696 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10698 * config/ia64/ia64-opts.h: New.
10699 * config/ia64/ia64.c (ia64_tune): Remove.
10700 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10701 here. Use error_at.
10702 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10703 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10704 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10705 HeaderInclude entry.
10706 (ia64_tune): New Variable entry.
10707 (mfixed-range=): Use Defer and Var.
10708 (mtune=): Use Enum and Var.
10709 (ia64_tune): New Enum and EnumValue entries.
10711 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10713 * config/frv/frv-opts.h: New.
10714 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10716 (frv_cpu_type): Remove.
10717 * config/frv/frv.c: Don't include opts.h.
10718 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10719 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10720 (frv_cpu_type): New Variable entry.
10721 (frv_cpu): New Enum and EnumValue entries.
10723 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10725 * config/cris/cris.c (cris_handle_option): Access target_flags via
10726 opts pointer. Don't assert that global structures are in use.
10727 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10728 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10730 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10732 * config/bfin/bfin-opts.h: New.
10733 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10734 bfin_si_revision, bfin_workarounds): Remove.
10735 (bfin_cpus): Make static const.
10736 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10737 not bfin_lib_id_given.
10738 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10739 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10740 pointer. Use error_at. Don't assert that global structures are in use.
10741 * config/bfin/bfin.h: Include bfin-opts.h.
10742 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10743 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10744 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10745 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10748 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10750 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10751 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10752 or -msoft-float here.
10753 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10754 -msoft-float and -mhard-float.
10755 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10756 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10758 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10760 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10761 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10763 (LIBGCC_SPEC): Don't handle -msoft-float.
10764 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10766 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10768 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10769 -mfloat-abi=*, not -msoft-float and -mhard-float.
10770 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10772 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10773 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10774 mhard-float and msoft-float.
10775 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10776 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10777 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10778 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10780 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10781 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10783 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10785 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10788 2011-03-22 Richard Henderson <rth@redhat.com>
10790 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10791 TARGET_ABI_WINDOWS_NT.
10792 (alpha_output_function_end_prologue): Likewise.
10793 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10794 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10795 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10796 (trap, *movsi_nt_vms): Likewise.
10797 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10798 (*tablejump_osf_nt_internal): Remove.
10799 * config/alpha/predicates.md (input_operand): Only test Pmode.
10801 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10803 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10804 via opts pointer. Use error_at. Don't assert that global
10805 structures are in use.
10807 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10809 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10810 (ix86_handle_option): Access ix86_isa_flags and
10811 ix86_isa_flags_explicit via opts pointer. Don't assert that
10812 global structures are in use.
10813 (ix86_function_specific_save, ix86_function_specific_restore):
10814 Update ix86_isa_flags_explicit field name.
10815 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10816 (ix86_isa_flags_explicit): Rename TargetSave entry to
10817 x_ix86_isa_flags_explicit.
10819 2011-03-22 Richard Henderson <rth@redhat.com>
10821 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10822 (alpha_option_override, direct_return): Likewise.
10823 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10824 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10825 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10826 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10827 (alpha_expand_epilogue, alpha_end_function): Likewise.
10828 (alpha_init_libfuncs): Likewise.
10829 (struct machine_function): Remove unicosmk members.
10830 (print_operand) ['t']: Remove.
10831 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10832 unicosmk_output_module_name, unicosmk_output_common,
10833 current_section_align, unicosmk_output_text_section_asm_op,
10834 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10835 unicosmk_section_type_flags, unicosmk_unique_section,
10836 unicosmk_asm_named_section, unicosmk_insert_attributes,
10837 unicosmk_output_align, unicosmk_defer_case_vector,
10838 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10839 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10840 unicosmk_output_ssib, unicosmk_add_call_info_word,
10841 unicosmk_extern_head, unicosmk_output_default_externs,
10842 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10843 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10844 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10845 * config/alpha/alpha-protos.h: Update.
10846 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10847 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10848 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10849 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10850 (*mulsi_se, mulvsi3): Likewise.
10851 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10852 (*divmodsi_internal, call, call_value, realign): Likewise.
10853 (moddi3, umoddi3): Likewise; remove duplicate expander.
10854 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10855 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10856 (*movdi_nofix): Remove r/U alternative.
10857 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10858 * config/alpha/constraints.md ("U"): Remove.
10859 * config/alpha/predicates.md (call_operand"): Don't test
10860 TARGET_ABI_UNICOSMK.
10862 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10864 * target.def (handle_option): Take gcc_options and
10865 cl_decoded_option pointers and location_t.
10866 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10867 * doc/tm.texi: Regenerate.
10868 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10869 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10870 * lto-opts.c (lto_reissue_options): Generate option structure for
10871 targetm.handle_option call.
10872 * opts.c (target_handle_option): Update call to
10873 targetm.handle_option. Remove assertions about values now passed
10875 * targhooks.c (default_target_handle_option): New.
10876 * targhooks.h (default_target_handle_option): Declare.
10877 * config/alpha/alpha.c: Include opts.h.
10878 (alpha_handle_option): Update to new hook interface.
10879 * config/arm/arm.c: Include opts.h.
10880 (arm_handle_option): Update to new hook interface.
10881 * config/arm/t-arm (arm.o): Update dependencies.
10882 * config/bfin/bfin.c: Include opts.h.
10883 (bfin_handle_option): Update to new hook interface.
10884 * config/cris/cris.c: Include opts.h.
10885 (cris_handle_option): Update to new hook interface.
10886 * config/frv/frv.c: Include opts.h.
10887 (frv_handle_option): Update to new hook interface.
10888 * config/i386/i386.c: Include opts.h.
10889 (ix86_handle_option): Update to new hook interface.
10890 (ix86_valid_target_attribute_inner_p): Generate option structure
10891 for call to ix86_handle_option.
10892 * config/i386/t-i386 (i386.o): Update dependencies.
10893 * config/ia64/ia64.c: Include opts.h.
10894 (ia64_handle_option): Update to new hook interface.
10895 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10896 * config/iq2000/iq2000.c: Include opts.h.
10897 (iq2000_handle_option): Update to new hook interface.
10898 * config/m32c/m32c.c: Include opts.h.
10899 (m32c_handle_option): Update to new hook interface.
10900 * config/m32r/m32r.c: Include opts.h.
10901 (m32r_handle_option): Update to new hook interface.
10902 * config/m68k/m68k.c: Include opts.h.
10903 (m68k_handle_option): Update to new hook interface.
10904 * config/mep/mep.c: Include opts.h.
10905 (mep_handle_option): Update to new hook interface.
10906 * config/microblaze/microblaze.c: Include opts.h.
10907 (microblaze_handle_option): Update to new hook interface.
10908 * config/mips/mips.c: Include opts.h.
10909 (mips_handle_option): Update to new hook interface.
10910 * config/mn10300/mn10300.c: Include opts.h.
10911 (mn10300_handle_option): Update to new hook interface.
10912 * config/pa/pa.c: Include opts.h.
10913 (pa_handle_option): Update to new hook interface.
10914 * config/pdp11/pdp11.c: Include opts.h.
10915 (pdp11_handle_option): Update to new hook interface.
10916 * config/rs6000/rs6000.c: Include opts.h.
10917 (rs6000_handle_option): Update to new hook interface.
10918 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10919 * config/rx/rx.c: Include opts.h.
10920 (rx_handle_option): Update to new hook interface.
10921 * config/s390/s390.c: Include opts.h.
10922 (s390_handle_option): Update to new hook interface.
10923 * config/score/score.c: Include opts.h.
10924 (score_handle_option): Update to new hook interface.
10925 * config/sh/sh.c: Include opts.h.
10926 (sh_handle_option): Update to new hook interface.
10927 * config/sparc/sparc.c: Include opts.h.
10928 (sparc_handle_option): Update to new hook interface.
10929 * config/v850/v850.c: Include opts.h.
10930 (v850_handle_option): Update to new hook interface.
10932 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10934 * gcc.c (driver_unknown_option_callback): Only permit and save
10935 unknown -Wno- options.
10936 (driver_wrong_lang_callback): Save options directly instead of via
10937 driver_unknown_option_callback.
10939 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10941 * combine.c (simplify_set): Try harder to find the best CC mode when
10942 simplifying a nested COMPARE on the RHS.
10944 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10946 * config/alpha/gnu.h: Remove.
10947 * config/arc: Remove directory.
10948 * config/arm/netbsd.h: Remove.
10949 * config/arm/t-pe: Remove.
10950 * config/crx: Remove directory.
10951 * config/i386/netbsd.h: Remove.
10952 * config/m68hc11: Remove directory.
10953 * config/m68k/uclinux-oldabi.h: Remove.
10954 * config/mcore/mcore-pe.h: Remove.
10955 * config/mcore/t-mcore-pe: Remove.
10956 * config/netbsd-aout.h: Remove.
10957 * config/rs6000/gnu.h: Remove.
10958 * config/sh/sh-symbian.h: Remove.
10959 * config/sh/symbian-base.c: Remove.
10960 * config/sh/symbian-c.c: Remove.
10961 * config/sh/symbian-cxx.c: Remove.
10962 * config/sh/symbian-post.h: Remove.
10963 * config/sh/symbian-pre.h: Remove.
10964 * config/sh/t-symbian: Remove.
10965 * config/svr3.h: Remove.
10966 * config/vax/netbsd.h: Remove.
10967 * config.build: Don't handle i[34567]86-*-pe.
10968 * config.gcc: Remove handling of deprecations for most deprecated
10970 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10971 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10972 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10973 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10974 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10975 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10977 * config.host: Don't handle i[34567]86-*-pe.
10978 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10979 (ASM_SPEC32): Don't handle -mcall-gnu.
10980 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10982 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10983 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10984 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10985 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10986 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10987 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10988 conditional on SYMBIAN.
10989 * configure.ac: Don't handle powerpc*-*-gnu*.
10990 * configure: Regenerate.
10991 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10992 * doc/install-old.texi (m6811, m6812): Don't mention.
10993 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10994 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10995 (m68k-uclinuxoldabi): Don't mention.
10996 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10998 (-mcall-gnu): Remove.
10999 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11000 families): Remove constraint documentation.
11002 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11004 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11005 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11006 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11008 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11011 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11012 vector when peeking at the next token for vector, don't expand the
11015 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11017 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11018 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11019 * config/avr/avr.c (init_cumulative_args)
11020 (avr_function_arg_advance): Use it.
11021 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11023 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11024 (avr_function_ok_for_sibcall): ...this new function.
11025 (avr_lookup_function_attribute1): New static Function.
11026 (avr_naked_function_p, interrupt_function_p)
11027 (signal_function_p, avr_OS_task_function_p)
11028 (avr_OS_main_function_p): Use it.
11029 * config/avr/avr.md ("sibcall", "sibcall_value")
11030 ("sibcall_epilogue"): New expander.
11031 ("*call_insn", "*call_value_insn"): New insn.
11032 ("call_insn", "call_value_insn"): Remove
11033 ("call", "call_value", "epilogue"): Change expander to handle
11036 2011-03-21 Nick Clifton <nickc@redhat.com>
11038 * doc/invoke.texi (Overall Options): Move closing brace to end of
11040 (Optimization Options): Add missing @gol.
11041 (Directory Options): Likewise.
11042 (i386 and x86-64 Options): Likewise.
11043 (RS6000 and PowerPC Options): Likewise.
11044 (i386 and x86-64 Windows Options): Likewise.
11045 (V850 Options): Add text missing from descriptions.
11047 2011-03-22 Richard Henderson <rth@redhat.com>
11049 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11050 (avr_incoming_return_addr_rtx): New.
11051 (emit_push_byte): New.
11052 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11053 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11054 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11055 (emit_pop_byte): New.
11056 (expand_epilogue): Use it. Pop frame pointer by bytes.
11057 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11058 (INCOMING_RETURN_ADDR_RTX): New.
11059 (INCOMING_FRAME_SP_OFFSET): New.
11060 (ARG_POINTER_CFA_OFFSET): New.
11061 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11062 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11065 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11067 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11069 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11070 (FUNCTION_ARG_ADVANCE): Likewise.
11071 * tm.texi.in: Change references to them to hook references.
11072 * tm.texi: Regenerate.
11073 * targhooks.c (default_function_arg): Eliminate check for target
11075 (default_function_incoming_arg): Likewise.
11076 (default_function_arg_advance): Likewise.
11077 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11078 (function_arg_advance): Likewise.
11079 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11081 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11083 * tree.c (build_call_1): New function.
11084 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11086 2011-03-22 Richard Guenther <rguenther@suse.de>
11088 PR tree-optimization/48228
11089 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11090 for single-arg PHIs.
11092 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11094 PR rtl-optimization/48143
11095 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11096 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11097 sse2_cvtps2pd): Likewise.
11099 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11101 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11103 2011-03-22 Richard Guenther <rguenther@suse.de>
11105 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11106 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11107 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11108 and REALIGN_LOAD_EXPR.
11109 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11110 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11111 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11112 DOT_PROD_EXPR case ...
11113 (expand_expr_real_2): ... here.
11114 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11115 and REALIGN_LOAD_EXPR.
11116 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11117 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11118 (vect_create_epilog_for_reduction): Likewise.
11119 (vectorizable_reduction): Likewise.
11120 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11121 * tree-vect-stmts.c (vectorizable_load): Likewise.
11123 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11125 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11127 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11129 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11130 handling for PLTOFF/GOTOFF.
11132 2011-03-22 Nick Clifton <nickc@redhat.com>
11134 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11135 trailing backslash from the end of the macro definition.
11137 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11139 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11142 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11144 * expr.h (prepare_operand): Move to...
11145 * optabs.h (prepare_operand): ...here and change the insn code
11146 parameter from "int" to "enum insn_code".
11147 (insn_operand_matches): Declare.
11148 * expr.c (init_expr_target): Use insn_operand_matches.
11149 (compress_float_constant): Likewise.
11150 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11151 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11152 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11153 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11155 (gen_cond_trap): Likewise.
11156 (prepare_operand): Likewise. Change icode to an insn_code.
11157 (insn_operand_matches): New function.
11158 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11159 * reload1.c (gen_reload): Likewise.
11160 * targhooks.c (default_secondary_reload): Likewise.
11162 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11164 * config/alpha/alpha.md (unspec): New define_c_enum.
11167 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11170 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11171 between a call and its CALL_ARG_LOCATION note.
11173 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11175 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11177 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11181 * c-common.c (shorten_compare): If primopN is first sign-extended
11182 to opN and then zero-extended to result type, set primopN to opN.
11184 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11186 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11187 for barrier handlers.
11189 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11191 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11192 UNSPEC constants to be in the unspec enumeration, and redefine
11193 all UNSPECV constants to be in the unspecv enumeration, so that
11194 dumps print which unspec/unspec_volatile this is.
11195 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11196 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11197 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11198 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11199 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11201 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11202 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11203 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11204 * config/rs6000/sync.md (isync, lwsync): Ditto.
11206 2011-03-21 Richard Guenther <rguenther@suse.de>
11208 * params.def (lto-min-partition): Fix typo.
11210 2011-03-21 Richard Guenther <rguenther@suse.de>
11213 * c-decl.c (grokdeclarator): Drop to the main variant only
11214 for array types. Drop flag_gen_aux_info check.
11216 2011-03-21 Richard Guenther <rguenther@suse.de>
11218 PR translation/47911
11219 * params.def (lto-partitions): Fix typo.
11220 (lto-min-partition): Fix wording.
11222 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11224 * config/rs6000/t-freebsd: Remove duplication from file.
11226 2011-03-21 Richard Guenther <rguenther@suse.de>
11228 PR middle-end/47661
11229 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11231 2011-03-21 Richard Guenther <rguenther@suse.de>
11234 * params.def (lto-partitions): Require at least 1 partition.
11236 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11238 * gthr-solaris.h: Remove.
11239 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11240 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11241 (LIB_SPEC): Likewise.
11242 * config/sol2.opt (threads): Remove.
11243 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11244 (sparc*-*-solaris2*): Likewise.
11245 * configure.ac (enable_threads): Enable solaris support.
11246 * configure: Regenerate.
11247 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11248 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11251 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11253 * config.gcc: Obsolete *-*-solaris2.8*.
11254 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11256 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11259 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11260 reference. Solaris 8 perl works.
11262 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11265 * doc/install.texi (Prerequisites): Move jar etc. up.
11266 Explain support library version requirements.
11268 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11271 * doc/install.texi (Prerequisites): Move Perl to build
11272 requirements. Always necessary on Solaris 2 with Sun ld.
11274 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11276 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11278 (Specific, i?86-*-solaris2.[89]): Likewise.
11279 (Specific, i?86-*-solaris2.10): Likewise.
11280 (Specific, mips-sgi-irix6): Likewise.
11281 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11282 Update for binutils 2.21.
11284 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11286 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11287 Allow -fuse-linker-plugin for non-default plugin linker.
11288 * configure: Regenerate.
11290 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11293 * gengtype.c (files_rules): Added rule for cp/parser.h.
11295 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11298 * config/s390/s390.c (s390_delegitimize_address): Don't call
11299 lowpart_subreg if orig_x has BLKmode.
11301 2011-03-21 Kai Tietz <ktietz@redhat.com>
11304 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11305 * tree.h (attribute_spec): Add new member affects_type_identity.
11306 * attribs.c (empty_attribute_table): Adjust attribute_spec
11308 * config/alpha/alpha.c: Likewise.
11309 * config/arc/arc.c: Likewise.
11310 * config/arm/arm.c: Likewise.
11311 * config/avr/avr.c: Likewise.
11312 * config/bfin/bfin.c: Likewise.
11313 * config/crx/crx.c: Likewise.
11314 * config/darwin.h: Likewise.
11315 * config/h8300/h8300.c: Likewise.
11316 * config/i386/cygming.h: Likewise.
11317 * config/i386/i386.c: Likewise.
11318 * config/ia64/ia64.c: Likewise.
11319 * config/m32c/m32c.c: Likewise.
11320 * config/m32r/m32r.c: Likewise.
11321 * config/m68hc11/m68hc11.c: Likewise.
11322 * config/m68k/m68k.c: Likewise.
11323 * config/mcore/mcore.c: Likewise.
11324 * config/mep/mep.c: Likewise.
11325 * config/microblaze/microblaze.c: Likewise.
11326 * config/mips/mips.c: Likewise.
11327 * config/rs6000/rs6000.c: Likewise.
11328 * config/rx/rx.c: Likewise.
11329 * config/sh/sh.c: Likewise.
11330 * config/sol2.h: Likewise.
11331 * config/sparc/sparc.c: Likewise.
11332 * config/spu/spu.c: Likewise.
11333 * config/stormy16/stormy16.c: Likewise.
11334 * config/v850/v850.c: Likewise.
11336 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11338 * simplify-rtx.c (simplify_binary_operation_1): Handle
11339 (xor (and A B) C) case when B and C are both constants.
11341 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11343 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11345 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11348 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11350 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11352 PR rtl-optimization/48156
11353 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11354 assume df and df_lr are not NULL.
11356 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11359 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11360 between a call and its CALL_ARG_LOCATION note.
11362 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11365 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11366 between a call and its corresponding CALL_ARG_LOCATION note.
11368 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11370 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11371 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11372 * haifa-sched.c (setup_ref_regs): Ditto.
11373 * caller-save.c (add_used_regs_1): Ditto.
11374 * dse.c (look_for_hardregs): Ditto.
11375 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11376 * sched-rgn.c (check_live_1): Ditto.
11378 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11380 * c-decl.c (diagnose_mismatched_decls): Give an error for
11381 redefining a typedef with variably modified type.
11383 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11385 * c-decl.c (grokfield): Don't allow typedefs for structures or
11386 unions with no tag by default.
11387 * doc/extend.texi (Unnamed Fields): Update.
11389 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11391 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11392 Rewrite using indirect functions.
11393 (lwp_slwpcb): Ditto.
11394 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11395 (avx_vinsertf128<mode>): Ditto.
11397 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11399 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11402 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11404 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11405 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11407 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11409 PR rtl-optimization/48170
11410 * gcse.c (hoist_code): Remove bogus asserts.
11412 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11414 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11415 computation for prologue/epilogue.
11417 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11419 * Makefile.in (check-consistency): Remove.
11421 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11424 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11425 arange_table_in_use is 0, but either text_section_used or
11426 cold_text_section_used is true. Don't call it if
11427 !info_section_emitted.
11429 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11431 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11432 FUNCTION_VALUE_REGNO_P): Remove.
11433 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11435 * config/avr/avr.c (avr_ret_register): Make static inline.
11436 (avr_function_value_regno_p): New function.
11437 (avr_libcall_value): Make static. Add 'func' argument.
11438 (avr_function_value): Make static. Rename 'func' argument to
11439 'fn_decl_or_type', forward it to avr_libcall_value. Call
11440 avr_ret_register function instead of RET_REGISTER macro.
11441 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11443 2011-03-18 Jason Merrill <jason@redhat.com>
11446 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11448 2011-03-18 Richard Guenther <rguenther@suse.de>
11450 * doc/install.texi (--enable-gold): Remove.
11451 (--with-plugin-ld): Document.
11452 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11454 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11456 PR middle-end/47790
11457 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11458 again after expansion changes.
11460 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11462 * combine.c (try_combine): Do simplification only call of
11463 subst() on i2 even when i1 is present. Update comments.
11465 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11467 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11468 and UNSPEC_PCREL_SYMOFF.
11470 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11472 * config/s390/s390.md: Use define_c_enum for the unspec constant
11475 2011-03-18 Richard Henderson <rth@redhat.com>
11476 Jakub Jelinek <jakub@redhat.com>
11479 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11480 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11482 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11484 PR middle-end/47725
11485 * combine.c (cant_combine_insn_p): Don't check zero/sign
11486 extended hard registers.
11488 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11490 PR middle-end/47725
11491 * combine.c (cant_combine_insn_p): Check zero/sign extended
11494 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11496 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11497 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11498 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11499 Change return type to bool.
11500 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11502 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11505 * var-tracking.c (prepare_call_arguments): If CALL target
11506 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11507 pc instead of looking it up using cselib_lookup and use
11508 Pmode for it if x has VOIDmode.
11509 * dwarf2out.c (gen_subprogram_die): If also both first and
11510 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11513 * function.c (assign_parms): For data.passed_pointer parms
11514 use MEM of data.entry_parm instead of data.entry_parm itself
11515 as DECL_INCOMING_RTL.
11516 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11517 also when passed and declared mode is the same, DECL_RTL
11518 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11521 2011-03-16 Jeff Law <law@redhat.com>
11523 PR rtl-optimization/37273
11524 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11525 handle them like argument loads from stack slots. Do not double
11526 count memory for memory constants and argument loads from stack slots.
11528 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11531 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11533 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11536 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11538 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11541 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11543 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11544 Clear call_arg_locations and call_arg_loc_last always.
11546 PR middle-end/48152
11547 * var-tracking.c (prepare_call_arguments): If argument needs to be
11548 passed by reference, adjust argtype and mode.
11550 2011-03-17 Richard Guenther <rguenther@suse.de>
11552 PR middle-end/48134
11553 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11554 a value make sure to fold the statement.
11556 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11559 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11560 return condition with !cfun->calls_alloca.
11562 2011-03-17 Richard Guenther <rguenther@suse.de>
11565 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11566 origin for decls in other ltrans units.
11567 (input_varpool_node): Likewise.
11569 2011-03-17 Richard Guenther <rguenther@suse.de>
11571 PR middle-end/48165
11572 * tree-object-size.c (compute_object_offset): Properly return
11573 the offset operand of MEM_REFs as sizetype.
11575 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11577 PR rtl-optimization/48141
11578 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11579 * dse.c: Include params.h.
11580 (active_local_stores_len): New variable.
11581 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11583 (record_store, check_mem_read_rtx): Decrease it when removing
11585 (scan_insn): Likewise. Increase it when adding to chain, if it
11586 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11587 set active_local_stores to NULL before the addition.
11588 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11590 PR rtl-optimization/48141
11591 * dse.c (record_store): If no positions are needed in an insn
11592 that cannot be deleted, at least unchain it from active_local_stores.
11594 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11597 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11598 (lookup_type_die_strip_naming_typedef): ... here.
11599 (get_context_die): Use it.
11600 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11601 the anonymous struct named by the naming typedef.
11603 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11606 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11607 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11609 2011-03-16 Jeff Law <law@redhat.com>
11611 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11612 check for operands of conditional. Allow type to be a pointer.
11614 2011-03-16 Richard Guenther <rguenther@suse.de>
11616 PR tree-optimization/48149
11617 * fold-const.c (fold_binary_loc): Fold
11618 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11620 2011-03-16 Richard Guenther <rguenther@suse.de>
11622 PR tree-optimization/26134
11623 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11624 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11625 (non_rewritable_mem_ref_base): Handle complex type component
11626 accesses, constrain offsets for vector and complex extracts
11629 2011-03-16 Richard Guenther <rguenther@suse.de>
11631 PR tree-optimization/48146
11632 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11633 operands avoiding the need for renaming.
11635 2011-03-16 Richard Guenther <rguenther@suse.de>
11637 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11638 constant folding. Move MEM_REF canonicalization first.
11639 Rely on fold_const_aggregate_ref for initializer folding.
11640 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11642 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11644 PR middle-end/48136
11645 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11646 arg0/arg1 or their arguments are always fold converted to matching
11649 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11652 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11655 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11656 Handle in-tree gold.
11657 (ld_vers): Extract binutils version for gold.
11658 (gcc_cv_ld_hidden): Handle gold here.
11659 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11660 * configure: Regenerate.
11661 * config.in: Regenerate.
11662 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11663 -fuse-linker-plugin otherwise.
11664 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11665 (LINK_COMMAND_SPEC): Use it.
11666 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11668 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11670 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11671 * calls.c: Remove debug.h include.
11672 (emit_call_1): Don't call virtual_call_token debug hook.
11673 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11674 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11675 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11676 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11677 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11678 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11679 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11680 dwarf2out_virtual_call): Remove.
11681 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11682 copy_call_info and virtual_call hooks.
11683 (dwarf2out_init): Don't initialize vcall_insn_table,
11684 debug_dcall_section and debug_vcall_section.
11685 (prune_unused_types): Don't mark nodes from dcall_table.
11686 (dwarf2out_finish): Don't output dcall or vcall tables.
11687 * final.c (final_scan_insn): Don't call direct_call or
11688 virtual_call debug hooks.
11689 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11690 virtual_call_token, copy_call_info and virtual_call hooks.
11691 (debug_nothing_uid): Remove prototype.
11692 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11693 copy_call_info and virtual_call hooks.
11694 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11695 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11696 * debug.c (do_nothing_debug_hooks): Likewise.
11697 (debug_nothing_uid): Remove.
11698 * doc/invoke.texi (-fenable-icf-debug): Remove.
11699 * common.opt (-fenable-icf-debug): Likewise.
11701 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11702 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11703 call's MEM. Handle functions returning aggregate through a hidden
11704 first pointer. For virtual calls add clobbered pc to call arguments
11706 * dwarf2out.c (gen_subprogram_die): Emit
11707 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11711 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11712 * rtl.h (ENTRY_VALUE_EXP): Define.
11713 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11714 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11715 * print-rtl.c (print_rtx): Likewise.
11716 * gengtype.c (adjust_field_rtx_def): Likewise.
11717 * var-tracking.c (vt_add_function_parameter): Adjust
11718 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11719 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11720 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11721 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11722 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11724 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11725 Call var_location debug hook even on CALL_INSNs.
11726 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11727 * rtl.def (ENTRY_VALUE): New.
11728 * dwarf2out.c: Include cfglayout.h.
11729 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11730 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11731 (struct call_arg_loc_node): New type.
11732 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11733 tail_call_site_count): New variables.
11734 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11735 DW_TAG_GNU_call_site_parameter.
11736 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11737 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11738 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11739 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11740 and DW_AT_GNU_all_source_call_sites.
11741 (mem_loc_descriptor): Handle ENTRY_VALUE.
11742 (add_src_coords_attributes): Don't add enything if
11743 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11744 (dwarf2out_abstract_function): Save and clear call_arg_location,
11745 call_site_count and tail_call_site_count around dwarf2out_decl call.
11746 (gen_call_site_die): New function.
11747 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11748 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11749 (dwarf2out_function_decl): Clear call_arg_locations,
11750 call_arg_loc_last, set call_site_count and tail_call_site_count
11751 to -1 and free block_map.
11752 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11753 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11754 followed by any real instructions.
11755 (dwarf2out_begin_function): Set call_site_count and
11756 tail_call_site_count to 0.
11757 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11758 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11759 attempt to force a DIE for it and worst case remove the attribute.
11760 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11761 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11763 * var-tracking.c: Include tm_p.h.
11764 (vt_stack_adjustments): For calls call note_register_arguments.
11765 (argument_reg_set): New variable.
11766 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11767 ensure the VALUE is resolved.
11768 (call_arguments): New variable.
11769 (prepare_call_arguments): New function.
11770 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11771 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11772 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11773 always use the best expression.
11774 (vt_expand_loc): Add ignore_cur_loc argument.
11775 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11776 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11777 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11778 note for all calls.
11779 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11780 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11781 argument. Don't call cselib_preserve_only_values and
11782 cselib_reset_table.
11783 (note_register_arguments): New function.
11784 (vt_initialize): Compute argument_reg_set. Call
11785 vt_add_function_parameters before processing basic blocks instead of
11786 afterwards. For calls call prepare_call_arguments before calling
11787 cselib_process_insn.
11788 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11789 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11790 (var-tracking.o): Depend on $(TM_P_H).
11791 * cfglayout.h (insn_scope): New prototype.
11792 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11793 * cfglayout.c (insn_scope): No longer static.
11794 * insn-notes.def (CALL_ARG_LOCATION): New.
11795 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11796 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11797 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11798 nothing for DECL_EXTERNAL BLOCK_VARS.
11800 2011-03-16 Alan Modra <amodra@gmail.com>
11803 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11804 create invalid offset address for vsx splat insn.
11805 * config/rs6000/predicates.md (splat_input_operand): New.
11806 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11808 2011-03-15 Xinliang David Li <davidxl@google.com>
11811 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11812 (normalize_preds): New function.
11813 (is_use_properly_guarded): Normalize def predicates.
11815 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11818 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11819 in the output template.
11821 2011-03-15 Richard Guenther <rguenther@suse.de>
11823 PR middle-end/47650
11824 * tree-pretty-print.c (dump_function_declaration): Properly
11825 dump unprototyped and varargs function types.
11827 2011-03-15 Richard Guenther <rguenther@suse.de>
11829 PR tree-optimization/13954
11830 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11833 2011-03-15 Richard Guenther <rguenther@suse.de>
11835 PR tree-optimization/48037
11836 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11837 selects into BIT_FIELD_REFs.
11838 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11841 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11843 PR tree-optimization/48129
11844 * builtins.c (fold_builtin_snprintf): Convert to type of
11845 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11846 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11848 2011-03-15 Richard Guenther <rguenther@suse.de>
11850 PR tree-optimization/41490
11851 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11852 value but with VUSE.
11853 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11855 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11856 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11857 * tree-tailcall.c (find_tail_calls): Ignore returns.
11859 2011-03-15 Richard Guenther <rguenther@suse.de>
11861 PR middle-end/48031
11862 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11863 or variable-indexed array accesses when in gimple form.
11865 2011-03-15 Richard Guenther <rguenther@suse.de>
11867 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11869 2011-03-15 Alan Modra <amodra@gmail.com>
11872 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11873 presume symbol_refs without a symbol_ref_decl are suitably
11874 aligned, nor other trees we may see here. Handle anchor symbols.
11875 (legitimate_constant_pool_address_p): Comment. Add mode param.
11876 Check cmodel=medium addresses. Adjust all calls.
11877 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11878 creating cmodel=medium optimized access to locals.
11879 * config/rs6000/constraints.md (R): Pass QImode to
11880 legitimate_constant_pool_address_p.
11881 * config/rs6000/predicates.md (input_operand): Pass mode to
11882 legitimate_constant_pool_address_p.
11883 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11886 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11889 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11890 64-bit constants being loaded into registers other than GPRs such
11891 as loading 0 into a VSX register.
11893 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11895 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11897 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11899 PR middle-end/47917
11900 * builtins.c (fold_builtin_snprintf): New function.
11901 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11902 (fold_builtin_4): Likewise.
11904 PR middle-end/38878
11905 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11906 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11907 and C - X == X also strip nops from +/-/p+ operand.
11908 When optimizing -X == C, fold C to arg0's type.
11911 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11912 emit it as add_AT_int instead of add_AT_unsigned.
11914 2011-03-14 Tom Tromey <tromey@redhat.com>
11916 * unwind-dw2.c: Include sys/sdt.h if it exists.
11917 (_Unwind_DebugHook): Use STAP_PROBE2.
11918 * config.in, configure: Rebuild.
11919 * configure.ac: Check for sys/sdt.h.
11921 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11923 * config/i386/i386.md (ROUND_FLOOR): New constant.
11924 (ROUND_CEIL): Ditto.
11925 (ROUND_TRUNC): Ditto.
11926 (ROUND_MXCSR): Ditto.
11927 (ROUND_NO_EXC): Ditto.
11928 (rint<mode>2): Use new defines instead of numerical constants.
11929 (floor<mode>2): Ditto.
11930 (ceil<mode>2): Ditto.
11931 (btrunc<mode>2): Ditto.
11932 * config/i386/i386-builtin-types.def: Define ROUND function type
11934 * config/i386/i386.c (enum ix86_builtins): Add
11935 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11936 (struct builtin_description): Add
11937 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11938 (ix86_expand_sse_round): New static function.
11939 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11941 (ix86_builtin_vectorized_function): Handle
11942 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11944 2011-03-14 Tom Tromey <tromey@redhat.com>
11946 * c-parser.c (c_parser_asm_string_literal): Clear
11947 warn_overlength_strings.
11949 2011-03-14 Tom Tromey <tromey@redhat.com>
11951 * c-parser.c (disable_extension_diagnostics): Save
11952 warn_overlength_strings.
11953 (restore_extension_diagnostics): Restore warn_overlength_strings.
11955 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11957 * BASE-VER: Change to 4.7.0.
11959 2011-03-14 Richard Guenther <rguenther@suse.de>
11961 PR middle-end/48098
11962 * tree.c (build_vector_from_val): Adjust assert to requirements
11965 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11968 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11970 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11972 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11973 terms of target_flags_explicit. Adjust copyright year.
11975 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11976 * config/rs6000/t-freebsd: New file. Add override for
11979 2011-03-13 Chris Demetriou <cgd@google.com>
11981 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11982 (-fno-diagnostics-show-option): this, to reflect current default.
11983 (-Werror=): Update text about -fno-diagnostics-show-option.
11985 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11988 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11989 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11990 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11991 mode is not V2DImode or V2DFmode.
11992 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11993 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11994 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11996 (movdi_internal64): Likewise.
11998 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12000 PR tree-optimization/47127
12001 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12003 (set_cloog_options): Same.
12004 (scop_to_clast): Same.
12005 (print_clast_stmt): Do not call cloog_state_malloc and
12007 (print_generated_program): Same.
12009 * graphite-clast-to-gimple.h (cloog_state): Declared.
12010 (scop_to_clast): Adjust declaration.
12011 * graphite.c (cloog_state): Defined here.
12012 (graphite_initialize): Call cloog_state_malloc.
12013 (graphite_finalize): Call cloog_state_free.
12015 2011-03-11 Jason Merrill <jason@redhat.com>
12017 * attribs.c (lookup_attribute_spec): Take const_tree.
12020 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12022 * config/sparc/sparc.c (sparc_option_override): Use
12023 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12025 2011-03-11 Richard Guenther <rguenther@suse.de>
12027 PR tree-optimization/48067
12028 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12029 multiplication result will be only used once on the target
12032 2011-03-11 Richard Guenther <rguenther@suse.de>
12034 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12036 2011-03-11 Richard Guenther <rguenther@suse.de>
12039 * tree.c (find_decls_types_r): Do not walk types only reachable
12040 from IDENTIFIER_NODEs.
12042 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12044 PR middle-end/48044
12045 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12046 all vnode->force_output nodes as needed.
12048 2011-03-11 Jason Merrill <jason@redhat.com>
12051 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12052 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12054 2011-03-11 Martin Jambor <mjambor@suse.cz>
12056 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12059 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12061 PR tree-optimization/48063
12062 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12063 inline functions called once if !tree_can_inline_p (node->callers).
12065 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12067 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12069 * config/score/score3.c: Delete.
12070 * config/score/score3.h: Delete.
12071 * config/score/mul-div.S: Delete.
12072 * config/score/sfp-machine.h: Add new file.
12073 * config/score/constraints.md: Add new file.
12074 * config/score/t-score-softfp: Add new file.
12075 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12076 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12077 (score7_extra_constraint): Delete.
12078 (score7_option_override): Remove unused code.
12079 * config/score/score.c: Remove score3 and score5 define and code.
12080 * config/score/score.h: Remove score3 and score5 define and code.
12081 * config/score/score.md: Remove score3 template and unusual insn.
12082 * config/score/score.opt: Remove score3 and score5 options.
12084 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12086 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12087 when _HPUX_SOURCE is defined.
12088 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12090 2011-03-10 Jason Merrill <jason@redhat.com>
12093 * stor-layout.c (layout_type): Don't set structural equality
12094 on arrays of incomplete type.
12095 * tree.c (type_hash_eq): Handle comparing them properly.
12097 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12100 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12101 result mode matches original rtl mode.
12103 2011-03-10 Nick Clifton <nickc@redhat.com>
12105 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12106 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12108 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12110 PR rtl-optimization/47866
12111 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12112 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12113 if target wasn't scalar.
12114 * function.c (assign_stack_temp_for_type): Assert that neither
12115 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12116 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12118 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12120 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12122 * config/s390/s390-protos.h (s390_label_align): New prototype.
12123 * config/s390/s390.c (s390_label_align): New function.
12124 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12126 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12129 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12130 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12131 (output_vec_const_move): Ditto.
12133 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12135 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12136 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12137 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12138 Change 'rclass' argument and result type to reg_class_t.
12139 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12141 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12143 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12144 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12145 (TARGET_MEMORY_MOVE_COST): Define.
12146 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12148 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12151 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12154 PR tree-optimization/48022
12155 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12158 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12161 * var-tracking.c (find_use_val): Return NULL for
12162 cui->sets && cui->store_p BLKmode MEMs.
12164 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12166 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12168 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12169 xstormy16_print_operand_address): Remove.
12170 * config/stormy16/stormy16.c (xstormy16_print_operand,
12171 xstormy16_print_operand_address): Make static.
12172 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12174 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12177 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12178 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12181 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12184 * cfgloopmanip.c (fix_bb_placements): Return immediately
12185 if FROM is BASE_LOOP's header.
12187 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12189 * gimplify.c (gimplify_function_tree): Fix building calls
12190 to __builtin_return_address.
12192 2011-03-07 Alan Modra <amodra@gmail.com>
12194 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12195 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12196 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12197 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12199 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12200 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12201 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12202 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12203 * config/rs6000/rs6000.c
12204 (rs6000_elf_end_indicate_exec_stack): Rename to..
12205 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12206 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12207 (rs6000_file_start): ..here.
12208 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12209 file scope variables.
12210 (call_ABI_of_interest): New function.
12211 (init_cumulative_args): Set above vars when function return value
12212 is a float, vector, or small struct.
12213 (rs6000_function_arg_advance_1): Likewise for function args.
12214 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12215 references float args.
12217 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12219 * doc/cfg.texi: Remove "See" before @ref.
12220 * doc/invoke.texi: Likewise.
12222 2011-03-05 Jason Merrill <jason@redhat.com>
12224 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12226 2011-03-05 Anthony Green <green@moxielogic.com>
12228 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12230 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12232 PR rtl-optimization/47899
12233 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12234 to flow_loop_nested_p when moving the loop upward.
12236 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12239 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12241 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12243 PR tree-optimization/47967
12244 * ipa-cp.c (build_const_val): Return NULL instead of creating
12245 VIEW_CONVERT_EXPR for mismatching sizes.
12246 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12247 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12248 give up on versioning.
12250 2011-03-05 Alan Modra <amodra@gmail.com>
12253 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12254 full cmodel medium/large lo_sum + high addresses.
12256 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12258 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12259 pool references in UNSPEC_LTREL_OFFSET.
12261 2011-03-04 Jan Hubicka <jh@suse.cz>
12264 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12265 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12266 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12268 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12269 cgraph_add_thunk): Add node pointers.
12270 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12271 associated to right node.
12272 (input_node): Update use of cgraph_same_body_alias
12273 and cgraph_add_thunk.
12275 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12277 * config/i386/i386.opt (mprefer-avx128): New flag.
12278 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12279 modes when the flag -mprefer-avx128 is on.
12281 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12283 * dwarf2out.c (compare_loc_operands): Fix address handling.
12285 2011-03-04 Alan Modra <amodra@gmail.com>
12287 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12289 2011-03-04 Richard Guenther <rguenther@suse.de>
12291 PR middle-end/47968
12292 * expmed.c (extract_bit_field_1): Prefer vector modes that
12293 vec_extract patterns can handle.
12295 2011-03-04 Richard Guenther <rguenther@suse.de>
12297 PR middle-end/47975
12298 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12300 2011-03-04 Richard Henderson <rth@redhat.com>
12302 * explow.c (emit_stack_save): Remove 'after' parameter.
12303 (emit_stack_restore): Likewise.
12304 * expr.h: Update to match.
12305 * builtins.c, calls.c, stmt.c: Likewise.
12306 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12307 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12308 * function.c (expand_function_end): Insert the emit_stack_save
12309 sequence before parm_birth_insn instead of after.
12311 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12313 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12314 (ssse3_pmaddubsw128): Ditto.
12315 (ssse3_pmaddubsw): Ditto.
12317 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12319 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12321 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12324 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12325 on TYPE_SIZE_UNIT if it is a DECL.
12328 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12329 first operand is not is_gimple_mem_ref_addr, try to fold it.
12330 If the operand still isn't is_gimple_mem_ref_addr, clear
12333 2011-03-03 Richard Guenther <rguenther@suse.de>
12335 PR middle-end/47283
12336 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12338 (refs_may_alias_p_1): For release branches return true if
12339 we are confused by our input.
12341 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12343 * config/s390/s390.c (s390_function_value): Rename to ...
12344 (s390_function_and_libcall_value): ... this.
12345 (s390_function_value): New function.
12346 (s390_libcall_value): New function.
12347 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12348 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12349 target macro definitions.
12350 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12352 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12354 * config/i386/freebsd64.h (CC1_SPEC): Define.
12355 * config/i386/linux64.h (CC1_SPEC): Define.
12356 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12358 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12360 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12362 * config/stormy16/stormy16.c: Include reload.h.
12363 (xstormy16_memory_move_cost): New function.
12364 (TARGET_MEMORY_MOVE_COST): Define.
12366 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12368 PR rtl-optimization/47925
12369 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12370 with side effects. Remove the more-specific check for volatile asms.
12372 2011-03-02 Alan Modra <amodra@gmail.com>
12375 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12376 toc relative addresses for valid offsets.
12378 2011-03-01 Richard Guenther <rguenther@suse.de>
12380 PR tree-optimization/47890
12381 * tree-vect-loop.c (get_initial_def_for_induction): Set
12382 related stmt properly.
12384 2011-03-01 Richard Guenther <rguenther@suse.de>
12387 * lto-streamer.c (lto_record_common_node): Also register
12388 the canonical type.
12390 2011-03-01 Richard Guenther <rguenther@suse.de>
12393 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12394 Do not stream DECL_ABSTRACT_ORIGIN.
12395 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12396 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12397 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12398 Do not stream DECL_ABSTRACT_ORIGIN.
12399 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12400 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12402 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12404 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12405 FUNCTION_VALUE_REGNO_P): Remove.
12406 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12407 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12408 Add 'outgoing' argument.
12409 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12411 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12412 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12414 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12417 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12418 (lookup_filename): Likewise.
12419 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12421 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12422 Jakub Jelinek <jakub@redhat.com>
12424 PR middle-end/47893
12425 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12426 (assign_stack_local_1): Change last argument type to int.
12427 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12428 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12429 don't record padding space into frame_space_list nor use those areas.
12430 (assign_stack_local): Adjust caller.
12431 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12432 of assign_stack_local, pass 0 as last argument.
12433 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12436 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12439 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12440 Use target address_mode and pointer_mode hooks instead of hardcoded
12441 Pmode and ptr_mode. Handle some simple cases of extending if
12442 POINTERS_EXTEND_UNSIGNED < 0.
12443 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12444 Call convert_debug_memory_address.
12445 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12446 convert_debug_memory_address.
12448 PR middle-end/46790
12449 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12450 * configure: Regenerated.
12451 * config.in: Regenerated.
12452 * varasm.c (default_function_section): Return NULL
12453 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12455 2011-02-28 Martin Jambor <mjambor@suse.cz>
12457 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12458 the description to match the printed values.
12460 2011-02-28 Richard Guenther <rguenther@suse.de>
12462 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12463 of the copied scope tree.
12465 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12467 * doc/extend.texi (Function Attributes): Avoid deeply (and
12468 wrongly) nested tables.
12470 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12472 PR middle-end/47903
12473 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12474 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12475 r isn't op0 nor op1.
12477 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12479 * config/avr/avr.md: Remove magic comment for emacs.
12481 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12484 * config/avr/avr.c (avr_option_override): Use error on bad options.
12485 (avr_help): New function.
12486 (TARGET_HELP): Define.
12488 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12491 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12492 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12494 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12496 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12497 (ARM Options): Ditto.
12498 (i386 and x86-64 Options): Ditto.
12499 (RX Options): Ditto.
12500 (SPARC Options): Ditto.
12502 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12504 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12505 FreeBSD 6 and later. Generally use cpu generic.
12507 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12509 * doc/cpp.texi: Update copyright years.
12511 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12514 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12516 2011-02-25 Jon Beniston <jon@beniston.com>
12519 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12520 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12521 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12522 (lm32_block_move_inline): Add type cast to remove warning.
12523 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12524 (gen_int_relational): Move declarations to start of function.
12526 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12528 PR tree-optimization/45470
12529 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12530 can throw internally only.
12531 * tree-vect-stmts.c (vectorizable_call): Likewise.
12533 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12535 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12536 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12537 * config/stormy16/stormy16-protos.h
12538 (xstormy16_preferred_reload_class): Remove.
12539 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12540 static. Change 'rclass' argument and return type to reg_class_t.
12541 (TARGET_PREFERRED_RELOAD_CLASS,
12542 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12544 2011-02-24 Richard Guenther <rguenther@suse.de>
12546 * lto-streamer-in.c (input_bb): Do not find referenced vars
12547 in debug statements.
12549 2011-02-23 Jason Merrill <jason@redhat.com>
12551 * common.opt (fabi-version): Document v5 and v6.
12553 2011-02-23 Richard Guenther <rguenther@suse.de>
12555 PR tree-optimization/47849
12556 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12558 2011-02-23 Jie Zhang <jie@codesourcery.com>
12560 * opts-common.c (decode_cmdline_option): Print empty string
12561 argument as "" in decoded->orig_option_with_args_text.
12562 * gcc.c (execute): Print empty string argument as ""
12563 in the verbose output.
12564 (do_spec_1): Keep empty string argument.
12566 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12568 * config.gcc: Declare score-* and crx-* obsolete.
12570 2011-02-23 Jie Zhang <jie@codesourcery.com>
12572 PR rtl-optimization/47763
12573 * web.c (web_main): Ignore naked clobber when replacing register.
12575 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12577 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12580 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12583 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12585 2011-02-22 Mike Stump <mikestump@comcast.net>
12587 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12589 * configure: Regenerate.
12591 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12593 PR rtl-optimization/46002
12594 * ira-color.c (update_copy_costs): Change class intersection
12595 test to reg_class_contents[] test of 'hard_regno'.
12597 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12599 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12600 than Driver option.
12601 * config/hpux11.opt (mt): Likewise.
12602 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12603 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12604 * config/vax/elf.opt (mno-asm-pic): Likewise.
12605 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12607 2011-02-21 Mike Stump <mikestump@comcast.net>
12610 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12611 tree so we can get save the type.
12612 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12613 for CFString instead of trying to use past the end of the builtins.
12614 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12615 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12616 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12617 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12618 Rename to darwin_builtin_cfstring.
12619 (darwin_init_cfstring_builtins): Return the built type.
12621 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12624 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12625 (_mm256_insert_epi64): Use _mm_insert_epi64.
12627 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12629 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12630 * config/stormy16/stormy16-protos.h
12631 (xstormy16_mode_dependent_address_p): Remove.
12632 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12633 Make static. Change return type to bool. Change argument type to
12634 const_rtx. Remove dead code.
12635 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12637 2011-02-21 Richard Guenther <rguenther@suse.de>
12640 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12641 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12642 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12644 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12645 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12647 2011-02-20 Richard Guenther <rguenther@suse.de>
12650 * tree.c (free_lang_data_in_decl): Clean builtins from
12651 the TU decl BLOCK_VARS.
12653 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12657 * haifa-sched.c (fix_tick_ready): Skip tick computation
12660 2011-02-19 Richard Guenther <rguenther@suse.de>
12663 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12664 Remove lazy BLOCK_VARS streaming.
12665 (lto_input_ts_block_tree_pointers): Likewise.
12666 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12668 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12670 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12672 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12674 * config/i386/biarch32.h, config/i386/mach.h,
12675 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12677 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12680 * config/i386/i386.md (peephole2 for shift and plus): Use
12681 operands[1] original mode in the first insn.
12683 2011-02-18 Mike Stump <mikestump@comcast.net>
12685 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12687 2011-02-18 Jan Hubicka <jh@suse.cz>
12689 PR middle-end/47788
12690 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12691 to zero when the function is not inlinable at all.
12693 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12695 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12696 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12697 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12698 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12699 * config/pa/t-pa64: Likewise.
12700 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12702 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12705 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12707 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12710 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12712 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12714 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12715 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12716 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12717 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12718 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12719 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12720 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12721 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12722 m32r_legitimate_address_p): New functions.
12723 * config/m32r/constraints.md (constraint "S"): Don't use
12724 STORE_PREINC_PREDEC_P.
12725 (constraint "U"): Don't use LOAD_POSTINC_P.
12727 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12729 PR rtl-optimization/46178
12730 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12731 compute ira_hard_regno_cover_class[].
12733 2011-02-18 Richard Guenther <rguenther@suse.de>
12736 * lto-streamer.h (lto_global_var_decls): Declare.
12737 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12738 statics for global var processing.
12740 2011-02-18 Richard Guenther <rguenther@suse.de>
12742 PR tree-optimization/47737
12743 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12744 edge dominance check.
12746 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12749 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12750 avoid invalid rtx sharing.
12752 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12754 * doc/cpp.texi (Obsolete Features): Add background on the
12755 origin of assertions.
12757 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12759 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12761 * config/darwin.c (output_objc_section_asm_op): Added support for
12763 (is_objc_metadata): New.
12764 (darwin_objc2_section): New.
12765 (darwin_objc1_section): New.
12766 (machopic_select_section): Added support for ABI v1 and v2.
12767 (darwin_emit_objc_zeroed): New.
12768 (darwin_output_aligned_bss): Detect objc metadata and treat it
12770 (darwin_asm_output_aligned_decl_common): Same.
12771 (darwin_asm_output_aligned_decl_local): Same.
12772 * config/darwin-sections.def: Updated for ABI v1 and v2.
12773 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12774 compiling Objective-C code for the NeXT runtime, default to using
12775 ABI version 0 for 32-bit, and version 2 for 64-bit.
12777 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12779 * common.opt (optimize_fast): New Variable.
12780 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12781 instead of local variable ofast.
12783 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12785 * doc/invoke.texi (fobjc-abi-version): Documented.
12786 (fobjc-nilcheck): Documented.
12787 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12790 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12793 * common.opt (export-dynamic): New Driver option.
12794 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12796 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12798 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12800 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12801 Jan Hubicka <jh@suse.cz>
12805 * cfgexpand.c (account_used_vars_for_block): Remove.
12806 (estimated_stack_frame_size): Use referenced vars.
12807 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12808 that were referenced in the original function. Test src_fn
12809 rather than cfun. Drop redundant get_var_ann.
12810 (setup_one_parameter): Drop redundant get_var_ann.
12811 (declare_return_variable): Likewise.
12812 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12813 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12814 * ipa-inline.c (compute_inline_parameters): Do not compute
12815 disregard_inline_limits here.
12816 (compute_inlinable_for_current, pass_inlinable): New.
12817 (pass_inline_parameters): Require PROP_referenced_vars.
12818 * cgraphunit.c (cgraph_process_new_functions): Don't run
12819 compute_inline_parameters explicitly unless function is in SSA form.
12820 (cgraph_analyze_function): Set .disregard_inline_limits.
12821 * tree-sra.c (convert_callers): Compute inliner parameters
12822 only for functions already in SSA form.
12824 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12826 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12827 -mlittle-endian-data.
12829 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12831 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12832 -mno-fpu, not -fpu and -no-fpu.
12833 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12834 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12836 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12839 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12840 input reload with PLUS RTX.
12842 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12844 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12845 of InverseVar(MDMX).
12847 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12849 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12852 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12854 * config/mn10300/mn10300.opt (mno-crt0): New.
12856 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12858 * config/m68k/uclinux.opt (static-libc): New Driver option.
12860 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12862 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12864 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12866 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12867 %{muser-extend-enabled}.
12869 2011-02-16 Richard Guenther <rguenther@suse.de>
12871 PR tree-optimization/47738
12872 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12873 the TODO from tree_predictive_commoning.
12875 2011-02-15 Jeff Law <law@redhat.com>
12878 2011-01-25 Jeff Law <law@redhat.com>
12880 PR rtl-optimization/37273
12881 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12882 handle them like argument loads from stack slots. Do not double
12883 count memory for memory constants and argument loads from stack slots.
12885 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12887 PR middle-end/47725
12888 * combine.c (cant_combine_insn_p): Revert the last change.
12890 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12893 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12894 mode for vector constants. Remove code that checks for TImode.
12896 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12900 * cgraph.h (compute_inline_parameters): Return void.
12901 * ipa-inline.c (compute_inline_parameters): Adjust.
12903 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12907 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12909 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12910 * ipa-inline.c (compute_inline_parameters): Adjust.
12912 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12916 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12917 Adjust all users. Pass FN to...
12918 * tree-flow-inline.h (first_referenced_var): ... this. Add
12920 * ipa-struct-reorg.c: Adjust.
12921 * tree-dfa.c: Adjust.
12922 * tree-into-ssa.c: Adjust.
12923 * tree-sra.c: Adjust.
12924 * tree-ssa-alias.c: Adjust.
12925 * tree-ssa-live.c: Adjust.
12926 * tree-ssa.c: Adjust.
12927 * tree-ssanames.c: Adjust.
12928 * tree-tailcall.c: Adjust.
12930 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12934 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12935 Adjust all callers.
12936 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12937 * tree-flow-inline.h: Adjust.
12938 * gimple-pretty-print.c: Adjust.
12939 * tree-into-ssa.c: Adjust.
12940 * tree-ssa.c: Adjust.
12941 * cfgexpand.c: Adjust.
12943 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12945 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12946 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12947 (EXTRA_CONSTRAINT): Delete.
12948 * config/iq2000/constraints.md: New file.
12949 * config/iq2000/iq2000.md: Include it.
12950 (define_insn ""): Delete.
12951 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12952 unsupported constraint letters from patterns.
12953 (call_value, call_value_internal1): Likewise.
12954 (call_value_multiple_internal1): Likewise.
12956 2011-02-15 Nick Clifton <nickc@redhat.com>
12958 * config/mn10300/mn10300.c: Include tm-constrs.h.
12959 (struct liw_data): New data structure describing an LIW candidate
12961 (extract_bundle): Use struct liw_data. Allow small integer
12962 operands for some instructions.
12963 (check_liw_constraints): Use struct liw_data. Remove swapped
12964 parameter. Add comments describing the checks. Fix bug when
12965 assigning the source of liw1 to the source of liw2.
12966 (liw_candidate): Delete. Code moved into extract_bundle.
12967 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12969 * config/mn10300/predicates.md (liw_operand): New predicate.
12970 Allows registers and small integer constants.
12971 * config/mn10300/constraints.md (O): New constraint. Accetps
12972 integers in the range -8 to +7 inclusive.
12973 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12974 for moving a small integer into a register. Give this alternative
12976 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12977 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12978 using the J,K,L and M constraints,
12979 (liw): Remove SI mode on second operands to allow for HI and QI
12981 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12984 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12986 PR middle-end/47725
12987 * combine.c (cant_combine_insn_p): Check zero/sign extended
12990 2011-02-15 Richard Guenther <rguenther@suse.de>
12992 PR tree-optimization/47743
12993 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12994 for a non-type-compatible VN lookup bail out.
12996 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12998 * config/fr30/constraints.md: New file.
12999 * config/fr30/fr30.md: Include it.
13000 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13001 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13002 (EXTRA_CONSTRAINT): Delete.
13004 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13006 * config/frv/constraints.md: New file.
13007 * config/frv/predicates.md: Include it.
13008 * config/frv/frv.c (reg_class_from_letter): Delete.
13009 (frv_option_override): Don't initialize it.
13010 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13011 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13012 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13013 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13014 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13015 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13016 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13017 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13018 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13019 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13020 (REG_CLASS_FROM_CONSTRAINT): Delete.
13022 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13024 PR middle-end/47581
13025 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13026 if frame size is 0 in a leaf function.
13028 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13031 * config/alpha/host-osf.c: New file.
13032 * config/alpha/x-osf: New file.
13033 * config.host (alpha*-dec-osf*): Use it.
13035 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13037 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13038 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13039 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13040 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13042 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13044 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13046 * config/stormy16/constraints.md: New file.
13047 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13048 Use satisfies_constraint_Q and satisfies_constraint_R.
13049 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13051 (xstormy16_legitiamte_address_p): Declare.
13052 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13053 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13054 (EXTRA_CONSTRAINT): Delete.
13055 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13057 (xstormy16_extra_constraint_p): Delete.
13059 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13061 PR tree-optimization/46494
13062 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13063 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13064 (pass_rtl_loop_done): Add TODO_verify_flow.
13065 * fwprop.c (pass_rtl_fwprop): Likewise.
13066 * modulo-sched.c (pass_sms): Likewise.
13067 * tree-ssa-dom.c (pass_dominator): Likewise.
13068 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13069 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13070 (pass_tree_loop_done): Likewise.
13071 * tree-ssa-pre.c (execute_pre): Likewise.
13072 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13073 * tree-ssa-sink.c (pass_sink_code): Likewise.
13074 * tree-vrp.c (pass_vrp): Likewise.
13076 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13078 * config/v850/constraints.md: New file.
13079 * config/v850/v850.md: Include it.
13080 * config/v850/predicates.md (reg_or_0_operand): Use
13081 satisfies_constraint_G.
13082 (special_symbolref_operand): Use satisfies_constraint_K.
13083 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13084 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13085 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13086 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13087 (EXTRA_CONSTRAINT): Delete.
13088 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13089 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13090 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13092 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13095 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13098 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13100 * config/mcore/constraints.md: New file.
13101 * config/mcore/mcore.md: Include it.
13102 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13103 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13104 (REG_CLASS_FROM_LETTER): Delete.
13105 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13106 insn_const_int_ok_for_constraint.
13107 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13108 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13109 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13110 (EXTRA_CONSTRAINT): Delete.
13112 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13115 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13116 (IS_SIGHANDLER): Define.
13117 (sparc64_is_sighandler): New function, split off from
13118 sparc64_fallback_frame_state.
13119 (sparc_is_sighandler): New function, split off from
13120 sparc_fallback_frame_state.
13121 (sparc64_fallback_frame_state): Merge with ...
13122 (sparc_fallback_frame_state): ... this into ...
13123 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13124 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13125 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13126 stack instead of hardcoded offsets.
13128 2011-02-14 Andriy Gapon <avg@freebsd.org>
13131 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13133 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13135 * configure: Regenerate.
13137 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13140 * gcc.c (asm_options): Correct spec matching --target-help.
13142 2011-02-12 Martin Jambor <mjambor@suse.cz>
13144 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13145 to gimple call error.
13147 2011-02-12 Mike Stump <mikestump@comcast.net>
13149 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13150 comments in backslash regions.
13152 2011-02-12 Mike Stump <mikestump@comcast.net>
13153 Jakub Jelinek <jakub@redhat.com>
13154 Iain Sandoe <iains@gcc.gnu.org>
13157 * dwarf2out.c (output_cfa_loc): When required, apply the
13158 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13159 (output_loc_sequence): Likewise.
13160 (output_loc_operands_raw): Likewise.
13161 (output_loc_sequence_raw): Likewise.
13162 (output_cfa_loc): Likewise.
13163 (output_loc_list): Suppress register number adjustment when
13164 calling output_loc_sequence()
13165 (output_die): Likewise.
13167 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13169 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13171 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13172 xtensa_memory_move_cost): New functions.
13173 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13175 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13178 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13179 in the current directory.
13180 * configure: Rebuilt.
13182 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13184 * config/darwin.c (darwin_override_options): Add a hunk missed
13185 from the commit of r168571. Trim comment line lengths and
13186 correct indents of the preceding block.
13188 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13190 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13193 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13195 * common.opt (nostartfiles): New Driver option.
13197 2011-02-11 Xinliang David Li <davidxl@google.com>
13199 PR tree-optimization/47707
13200 * tree-chrec.c (convert_affine_scev): Keep type precision.
13202 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13204 PR tree-optimization/47420
13205 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13207 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13209 PR rtl-optimization/47614
13210 * rtl.h (check_for_inc_dec): Declare.
13211 * dse.c (check_for_inc_dec): Externalize...
13212 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13213 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13215 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13218 * gcc.c (main): Do not compile inputs if there were errors in
13220 * opts-common.c (read_cmdline_option): Check for wrong language
13221 after other error checks.
13223 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13225 * cgraph.c: Fix comment typos.
13226 * cgraph.h: Likewise.
13227 * cgraphunit.c: Likewise.
13228 * ipa-cp.c: Likewise.
13229 * ipa-inline.c: Likewise.
13230 * ipa-prop.c: Likewise.
13231 * ipa-pure-const.c: Likewise.
13232 * ipa-ref.c: Likewise.
13233 * ipa-reference.c: Likewise.
13235 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13238 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13240 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13243 * doc/sourcebuild.texi (Require Support): Document
13244 dg-require-ascii-locale.
13246 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13248 * doc/lto.texi (Write summary): Fix missing parentheses.
13250 2011-02-10 DJ Delorie <dj@redhat.com>
13252 * config/m32c/m32c.c (m32c_option_override): Disable
13253 -fcombine-stack-adjustments until flag value tracking and compare
13254 optimization can be rewritten.
13256 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13258 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13260 (PROCESSOR_DEFAULT64): Likewise.
13262 2011-02-10 Richard Henderson <rth@redhat.com>
13264 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13265 change from 2011-02-03.
13266 * config/rx/rx.c (flags_from_code): Likewise.
13267 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13268 is valid, n/pz otherwise.
13269 (rx_select_cc_mode): Return CCmode if Y is not zero.
13271 2011-02-10 Richard Guenther <rguenther@suse.de>
13273 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13275 2011-02-10 Richard Guenther <rguenther@suse.de>
13277 PR tree-optimization/47677
13278 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13280 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13283 * combine.c (make_compound_operation): Only change shifts into
13284 multiplication for SCALAR_INT_MODE_P.
13286 2011-02-10 Jie Zhang <jie@codesourcery.com>
13290 2011-02-05 Jie Zhang <jie@codesourcery.com>
13292 * web.c (entry_register): Don't clobber the number of the
13293 first uninitialized reference in used[].
13295 2011-02-09 Richard Guenther <rguenther@suse.de>
13297 PR tree-optimization/47664
13298 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13301 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13305 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13307 (PROCESSOR_DEFAULT64): Same.
13308 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13310 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13312 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13314 2011-02-09 Martin Jambor <mjambor@suse.cz>
13316 PR middle-end/45505
13317 * tree-sra.c (struct access): New flags grp_scalar_read and
13318 grp_scalar_write. Changed description of assignment read and write
13320 (dump_access): Dump new flags, reorder all of them.
13321 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13322 to detect multiple scalar reads.
13323 (analyze_access_subtree): Use the new scalar read write flags instead
13324 of the old flags. Adjusted comments.
13326 2011-02-08 DJ Delorie <dj@redhat.com>
13329 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13332 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13334 * config/m68k/uclinux.opt: New.
13335 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13337 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13339 * config/cris/elf.opt (sim): New Driver option.
13341 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13343 * config/xtensa/elf.opt: New.
13344 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13346 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13348 * config/vax/elf.opt: New.
13349 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13351 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13353 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13355 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13357 * config/gnu-user.opt: New.
13358 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13359 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13360 *-*-uclinux*): Use gnu-user.opt.
13362 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13364 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13365 * config/i386/gnu.h (CPP_SPEC): Likewise.
13367 2011-02-08 Ian Lance Taylor <iant@google.com>
13369 * common.opt (fcx-limited-range): Add SetByCombined flag.
13370 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13371 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13372 (fassociative-math, freciprocal-math): Likewise.
13373 (funsafe-math-optimizations): Likewise.
13374 * opth-gen.awk: Handle SetByCombined.
13375 * optc-gen.awk: Likewise.
13376 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13377 (set_unsafe_math_optimizations_flags): Likewise.
13378 * doc/options.texi (Option properties): Document SetByCombined.
13380 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13382 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13383 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13384 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13385 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13386 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13388 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13390 PR tree-optimization/46834
13391 PR tree-optimization/46994
13392 PR tree-optimization/46995
13393 * graphite-sese-to-poly.c (used_outside_reduction): New.
13394 (detect_commutative_reduction): Call used_outside_reduction.
13395 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13396 translate_scalar_reduction_to_array only when at least one
13397 loop-phi/close-phi tuple has been detected.
13399 2011-02-08 Richard Guenther <rguenther@suse.de>
13401 PR middle-end/47639
13402 * tree-vect-generic.c (expand_vector_operations_1): Update
13404 (expand_vector_operations): ... not here. Cleanup EH info
13405 and the CFG if required.
13407 2011-02-08 Richard Guenther <rguenther@suse.de>
13409 PR tree-optimization/47641
13410 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13411 require type compatibility.
13413 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13415 * gimple-low.c (lower_function_body): Don't remove the location of
13416 the return statement here.
13417 (lower_gimple_return): Do it here instead but only if the return
13418 statement is actually used twice.
13420 2011-02-08 Richard Guenther <rguenther@suse.de>
13422 PR tree-optimization/47632
13423 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13424 unused up_to_stmt parameter, return whether cfg-cleanup is
13425 necessary, remove EH info properly.
13426 (forward_propagate_into_gimple_cond): Adjust caller.
13427 (forward_propagate_into_cond): Likewise.
13428 (forward_propagate_comparison): Likewise.
13429 (tree_ssa_forward_propagate_single_use_vars): Make
13430 forward_propagate_comparison case similar to the two others.
13432 2011-02-08 Nick Clifton <nickc@redhat.com>
13434 * config/mn10300/mn10300.opt (mliw): New command line option.
13435 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13436 (liw_bundling): New automaton.
13437 (liw): New attribute.
13438 (liw_op): New attribute.
13439 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13440 (movsi_internal): Add LIW attributes.
13441 (andsi3): Likewise.
13442 (iorsi3): Likewise.
13443 (xorsi3): Likewise.
13444 (addsi3): Separate register and immediate alternatives.
13445 Add LIW attributes.
13446 (subsi3): Likewise.
13448 (aslsi3): Likewise.
13449 (lshrsi3): Likewise.
13450 (ashrsi3): Likewise.
13451 (liw): New pattern.
13452 * config/mn10300/mn10300.c (liw_op_names): New
13453 (mn10300_print_operand): Handle 'W' operand descriptor.
13454 (extract_bundle): New function.
13455 (check_liw_constraints): New function.
13456 (liw_candidate): New function.
13457 (mn10300_bundle_liw): New function.
13458 (mn10300_reorg): New function.
13459 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13460 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13461 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13462 __LIW__ or __NO_LIW__.
13463 * doc/invoke.texi: Describe the -mliw command line option.
13465 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13467 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13468 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13469 pthread_mutex_unlock): Remove.
13470 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13471 * config/pa/t-pa64: Likewise.
13472 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13473 shared libc if not linking against libpthread.
13474 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13476 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13479 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13480 on 10.6 and later to ensure that we always use the unwinder from
13481 the system. Only add -no_compact_unwind when tarteting darwin
13484 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13487 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13488 (vec_interleave_lowv2sf): Ditto.
13489 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13490 (vec_extract_oddv2sf): Ditto.
13492 2011-02-07 Mike Stump <mikestump@comcast.net>
13495 Add __ieee_divdc3 entry point.
13496 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13498 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13499 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13500 * config/darwin.c (darwin_rename_builtins): Add.
13501 * config/darwin-protos.h (darwin_rename_builtins): Add.
13503 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13506 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13509 2011-02-07 Mike Stump <mikestump@comcast.net>
13511 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13513 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13516 * config/avr/libgcc.S (exit): Move .endfunc
13518 2011-02-07 Richard Guenther <rguenther@suse.de>
13520 PR tree-optimization/47615
13521 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13522 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13523 (run_scc_vn): Initialize it.
13524 (visit_reference_op_load): Use it.
13525 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13527 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13529 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13530 DImode trapping arithmetic libfuncs.
13532 2011-02-07 Richard Guenther <rguenther@suse.de>
13534 PR tree-optimization/47621
13535 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13537 (execute_update_addresses_taken): ... here. Make it more
13538 conservative in what we accept.
13540 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13542 * config/sparc/freebsd.h (ASM_SPEC): Define.
13543 * config/sparc/vxworks.h (ASM_SPEC): Define.
13545 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13547 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13549 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13551 * doc/invoke.texi: Remove reference to compiler internals from
13552 user documentation.
13554 * reg-notes.def: Remove REG_VALUE_PROFILE.
13555 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13557 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13559 PR middle-end/47610
13560 * varasm.c (default_section_type_flags): If decl is NULL,
13561 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13563 2011-02-05 Jie Zhang <jie@codesourcery.com>
13566 * web.c (entry_register): Don't clobber the number of the
13567 first uninitialized reference in used[].
13569 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13571 PR tree-optimization/46194
13572 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13573 (build_classic_dist_vector_1): Do not represent classic distance
13574 vectors when the access functions are variating in different loops.
13576 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13578 * config/mips/iris6.opt: New.
13579 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13581 2011-02-04 Richard Henderson <rth@redhat.com>
13582 Steve Ellcey <sje@cup.hp.com>
13585 * config/ia64/predicates.md (mux1_brcst_element): New.
13586 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13587 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13588 (ia64_unpack_sign): New.
13589 (ia64_expand_unpack): Rewrite using new routines.
13590 (ia64_expand_widen_sum): Ditto.
13591 (ia64_expand_dot_prod_v8qi): Ditto.
13592 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13593 routines, add endian check.
13594 (pmpy2_even): Rename from pmpy2_r, add endian check.
13595 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13596 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13597 (vec_widen_smult_hi_v4hi): Ditto.
13598 (vec_widen_umult_lo_v4hi): Ditto.
13599 (vec_widen_umult_hi_v4hi): Ditto.
13600 (mulv2si3): Change endian checks.
13601 (sdot_prodv4hi): Rewrite with new calls.
13602 (udot_prodv4hi): New.
13603 (vec_pack_ssat_v4hi): Add endian check.
13604 (vec_pack_usat_v4hi): Ditto.
13605 (vec_pack_ssat_v2si): Ditto.
13606 (max1_even): Rename from max1_r, add endian check.
13607 (max1_odd): Rename from max1_l, add endian check.
13608 (*mux1_rev): Format change.
13609 (*mux1_mix): Ditto.
13610 (*mux1_shuf): Ditto.
13611 (*mux1_alt): Ditto.
13612 (*mux1_brcst_v8qi): Use new predicate.
13613 (vec_extract_evenv8qi): Remove endian check.
13614 (vec_extract_oddv8qi): Ditto.
13615 (vec_interleave_lowv4hi): Format change.
13616 (vec_interleave_highv4hi): Ditto.
13617 (mix2_even): Rename from mix2_r, add endian check.
13618 (mix2_odd): Rename from mux2_l, add endian check.
13619 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13620 (vec_extract_evenodd_helper): Format change.
13621 (vec_extract_evenv4hi): Remove endian check.
13622 (vec_extract_oddv4hi): Remove endian check.
13623 (vec_interleave_lowv2si): Format change.
13624 (vec_interleave_highv2si): Format change.
13625 (vec_initv2si): Remove endian check.
13626 (vecinit_v2si): Add endian check.
13627 (reduc_splus_v2sf): Add endian check.
13628 (reduc_smax_v2sf): Ditto.
13629 (reduc_smin_v2sf): Ditto.
13630 (vec_initv2sf): Remove endian check.
13631 (fpack): Add endian check.
13632 (fswap): Add endian check.
13633 (vec_interleave_highv2sf): Add endian check.
13634 (vec_interleave_lowv2sf): Add endian check.
13635 (fmix_lr): Add endian check.
13636 (vec_setv2sf): Format change.
13637 (*vec_extractv2sf_0_be): Use shift to extract operand.
13638 (*vec_extractv2sf_1_be): New.
13639 (vec_pack_trunc_v4hi): Add endian check.
13640 (vec_pack_trunc_v2si): Format change.
13642 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13644 PR inline-asm/23200
13645 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13646 do bb, locus and block comparison and disallow loads if it is not set.
13647 (stmt_is_replaceable_p): New function.
13648 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13650 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13651 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13653 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13655 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13657 * config/rs6000/xilinx.opt: New.
13658 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13660 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13662 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13664 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13666 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13667 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13668 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13669 secondary_reload_info, xtensa_secondary_reload): Remove.
13670 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13671 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13672 (xtensa_preferred_reload_class): Make static. Change return and
13673 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13674 Use CONST_DOUBLE_P predicate.
13675 (xtensa_preferred_output_reload_class): New function.
13676 (xtensa_secondary_reload): Make static.
13678 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13680 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13681 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13682 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13684 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13686 PR middle-end/31490
13687 * output.h (SECTION_RELRO): Define.
13688 (SECTION_MACH_DEP): Adjust.
13689 (get_variable_section): New prototype.
13690 * varpool.c (varpool_finalize_named_section_flags): New function.
13691 (varpool_assemble_pending_decls): Call it.
13692 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13693 * cgraphunit.c (cgraph_output_in_order): Call
13694 varpool_finalize_named_section_flags.
13695 * varasm.c (get_section): Allow section flags conflicts between
13696 relro and read-only sections if the section hasn't been declared yet.
13697 Set SECTION_OVERRIDE after diagnosing section type conflict.
13698 (get_variable_section): No longer static.
13699 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13700 readonly sections that need relocations.
13701 (decl_readonly_section_1): New function.
13702 (decl_readonly_section): Use it.
13705 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13706 Steve Ellcey <sje@cup.hp.com>
13708 PR middle-end/31490
13709 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13710 if section attribute used.
13712 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13714 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13715 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13716 (darwin_init_sections): Remove assertion.
13718 2011-02-03 Nick Clifton <nickc@redhat.com>
13720 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13722 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13723 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13724 instead of "n" and "pz".
13725 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13728 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13731 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13732 fma, expand FMA_EXPR as fma{,f,l} call.
13735 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13736 copy them into a unsigned char variable and pass address of it to
13737 lto_output_data_stream.
13740 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13741 around backend_init_target and lang_dependent_init_target calls.
13742 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13743 (verify_cgraph_node): Don't call set_cfun here. Use
13744 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13745 Set error_found for incorrectly represented calls to thunks.
13747 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13750 PR rtl-optimization/43494
13751 * rtl.h (for_each_inc_dec_fn): New type.
13752 (for_each_inc_dec): Declare.
13753 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13754 (for_each_inc_dec_find_inc_dec): New fn.
13755 (for_each_inc_dec_find_mem): New fn.
13756 (for_each_inc_dec): New fn.
13757 * dse.c (struct insn_size): Remove.
13758 (replace_inc_dec, replace_inc_dec_mem): Remove.
13759 (emit_inc_dec_insn_before): New fn.
13760 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13761 (canon_address): Pass mem modes to cselib_lookup.
13762 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13763 (cselib_lookup_from_insn): Likewise.
13764 (cselib_subst_to_values): Likewise.
13765 * cselib.c (find_slot_memmode): New var.
13766 (cselib_find_slot): New fn. Use it instead of
13767 htab_find_slot_with_hash everywhere.
13768 (entry_and_rtx_equal_p): Use find_slot_memmode.
13769 (autoinc_split): New fn.
13770 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13771 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13772 Deal with autoinc. Special-case recursion into MEMs.
13773 (cselib_hash_rtx): Likewise.
13774 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13775 address and MEM modes.
13776 (cselib_subst_to_values): Add memmode, pass it on.
13778 (cselib_lookup): Add memmode argument, pass it on.
13779 (cselib_lookup_from_insn): Add memmode.
13780 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13781 (struct cselib_record_autoinc_data): New.
13782 (cselib_record_autoinc_cb): New fn.
13783 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13784 mode to cselib_lookup. Reset autoinced REGs here instead of...
13785 (cselib_process_insn): ... here.
13786 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13788 (add_uses): Likewise, also to cselib_subst_to_values.
13789 (add_stores): Likewise.
13790 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13791 cselib_subst_to_values.
13792 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13793 * gcse.c (do_local_cprop): Adjusted.
13794 * postreload.c (reload_cse_simplify_set): Adjusted.
13795 (reload_cse_simplify_operands): Adjusted.
13796 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13798 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13800 PR tree-optimization/45122
13801 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13802 unsafe assumptions when there's more than one loop exit.
13804 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13807 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13808 Document using vector double with the load/store builtins, and
13809 that the load/store builtins always use Altivec instructions.
13811 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13812 to use altivec memory instructions, even on VSX.
13813 (vector_altivec_store_<mode>): Ditto.
13815 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13818 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13819 V2DF, V2DI support to load/store overloaded builtins.
13821 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13822 altivec load/store builtins for V2DF/V2DI types.
13824 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13825 set avoid indexed addresses on power6 if -maltivec.
13826 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13827 vector_altivec_load/vector_altivec_store builtins.
13828 (altivec_expand_st_builtin): Ditto.
13829 (altivec_expand_builtin): Add VSX memory builtins.
13830 (rs6000_init_builtins): Add V2DI types to internal types.
13831 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13832 load/store builtins.
13833 (rs6000_address_for_altivec): Insure memory address is appropriate
13836 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13837 vec_vsx_ld and vec_vsx_st.
13838 (vsx_store_<mode>): Ditto.
13840 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13841 variables to hold long long types for VSX vector memory builtins.
13842 (RS6000_BTI_unsigned_long_long): Ditto.
13843 (long_long_integer_type_internal_node): Ditti.
13844 (long_long_unsigned_type_internal_node): Ditti.
13846 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13847 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13848 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13850 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13852 (vec_vsx_st): Ditto.
13854 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13856 * config/pa/pa-hpux10.opt: New.
13857 * config/hpux11.opt (pthread): New Driver option.
13858 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13859 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13861 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13863 * config/ia64/vms.opt: New.
13864 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13866 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13869 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13870 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13871 generator functions.
13872 (vsx_floatuns<VSi><mode>2): Ditto.
13873 (vsx_fix_trunc<mode><VSi>2): Ditto.
13874 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13876 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13878 * config/i386/djgpp.opt (posix): New Driver option.
13880 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13882 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13883 Move to the unsupported targets list.
13885 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13887 PR rtl-optimization/47525
13888 * df-scan.c: Update copyright years.
13889 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13890 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13892 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13894 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13895 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13896 (ASM_OUTPUT_ASCII): Remove.
13897 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13899 2011-02-02 Jeff Law <law@redhat.com>
13901 PR middle-end/47543
13902 * reload.c (find_reloads_address): Handle reg+d address where both
13903 components are invalid by reloading the entire address.
13905 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13906 Richard Guenther <rguenther@suse.de>
13908 PR tree-optimization/40979
13910 * passes.c (init_optimization_passes): After LIM call copy_prop
13911 and DCE to clean up.
13912 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13914 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13916 PR tree-optimization/47576
13917 PR tree-optimization/47555
13918 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13919 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13920 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13921 * tree-scalar-evolution.c (follow_ssa_edge): Use
13922 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13924 2011-02-02 Richard Guenther <rguenther@suse.de>
13926 PR tree-optimization/47566
13927 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13929 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13933 * tree-inline.c (declare_return_variable): Remove unused caller
13938 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13939 * cfgexpand.c (account_used_vars_for_block): Use them.
13940 * tree-nrv.c (tree_nrv): Likewise.
13941 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13942 (dump_scope_block): Likewise.
13943 (remove_unused_locals): Likewise.
13947 * tree-inline.c (declare_return_variable): Add result decl to
13948 local decls only once.
13949 * gimple-low.c (record_vars_into): Mark newly-created variables
13952 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13958 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13960 (no_real_insns_p, schedule_block, set_priorities): Drop special
13961 treatment of boundary debug insns.
13962 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13963 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13964 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13965 (BOUNDARY_DEBUG_INSN_P): Likewise.
13966 (SCHEDULE_DEBUG_INSN_P): Likewise.
13967 * sched-rgn.c (init_ready_list): Drop special treatment of
13968 boundary debug insns.
13969 * final.c (rest_of_clean_state): Clear notes' BB.
13971 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13973 * config/openbsd.opt (assert=): New Driver option.
13975 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13977 * config/i386/nto.opt: New.
13978 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13980 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13982 * config/i386/netware.opt: New.
13983 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13985 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13987 * config/interix.opt (posix): New Driver option.
13989 2011-02-01 DJ Delorie <dj@redhat.com>
13991 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13993 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13996 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13998 PR tree-optimization/47561
13999 * toplev.c (process_options): Print the Graphite flags. Add
14000 flag_loop_flatten to the list of options requiring Graphite.
14002 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14004 * config/i386/cygming.opt (posix): New Driver option.
14006 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14008 * config/arm/vxworks.opt: New.
14009 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14011 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14013 * config/alpha/elf.opt: New.
14014 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14015 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14017 2011-02-01 Richard Guenther <rguenther@suse.de>
14019 PR tree-optimization/47559
14020 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14021 store-motion on references that can throw.
14023 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14025 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14026 * tree-pass.h (TDF_CSELIB): New macro.
14027 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14028 cselib_lookup): Check for it rather than for TDF_DETAILS.
14030 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14033 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14034 is HOST_BIT_BUCKET.
14036 * opts.c (finish_options): Don't add x_aux_base_name if it is
14039 2011-02-01 Richard Guenther <rguenther@suse.de>
14041 PR tree-optimization/47555
14043 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14045 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14047 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14050 * config/lm32/t-lm32: Add multilib for all CPU options.
14052 2011-02-01 Richard Guenther <rguenther@suse.de>
14054 PR tree-optimization/47541
14055 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14056 sure to have a field at offset zero.
14058 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14060 * config/arc/arc.opt (EB, EL): New Driver options.
14062 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14064 * config/alpha/osf5.opt: New.
14065 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14067 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14069 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14071 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14073 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14074 -floop-interchange.
14075 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14076 is an alias of -floop-interchange and that it requires the
14077 Graphite infrastructure.
14078 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14079 flag_loop_interchange based on the value of flag_tree_loop_linear.
14081 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14082 Richard Guenther <rguenther@suse.de>
14084 PR tree-optimization/47538
14085 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14086 type instead of r1type, except for comparisons. For right
14087 shifts and comparisons punt if there are mismatches in
14088 sizetype vs. non-sizetype types.
14090 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14092 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14095 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14097 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14099 * configure: Regenerate.
14101 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14103 * configure.ac (gcc_cv_ld_static_option): Define.
14104 (gcc_cv_ld_dynamic_option): Define.
14105 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14107 (HAVE_LD_STATIC_DYNAMIC): Update message.
14108 (LD_STATIC_OPTION): Define.
14109 (LD_DYNAMIC_OPTION): Define.
14110 * configure: Regenerate.
14111 * config.in: Regenerate.
14112 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14113 HAVE_LD_STATIC_DYNAMIC]: Use them.
14115 2011-01-31 Nick Clifton <nickc@redhat.com>
14117 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14118 registers inside interrupt handlers if the handler is not a leaf
14121 2011-01-31 Nick Clifton <nickc@redhat.com>
14123 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14124 reg_renumber returning an INVALID_REGNUM.
14126 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14129 * doc/install.texi: Document host options discarded when cross
14130 configuring target libraries.
14132 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14135 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14138 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14140 (no_real_insns_p, schedule_block, set_priorities): Drop special
14141 treatment of boundary debug insns.
14142 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14143 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14144 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14145 (BOUNDARY_DEBUG_INSN_P): Likewise.
14146 (SCHEDULE_DEBUG_INSN_P): Likewise.
14147 * sched-rgn.c (init_ready_list): Drop special treatment of
14148 boundary debug insns.
14149 * final.c (rest_of_clean-state): Clear notes' BB.
14151 2011-01-31 Alan Modra <amodra@gmail.com>
14153 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14154 toc relative expressions as we do in print_operand_address.
14156 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14158 * doc/extend.texi: Follow spelling conventions.
14159 * doc/invoke.texi: Fix a typo.
14161 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14163 * config/hpux11.opt: New.
14164 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14165 ia64*-*-hpux*): Use hpux11.opt.
14167 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14169 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14172 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14174 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14177 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14179 * doc/install.texi (Binaries): Remove outdated reference for
14180 Motorola 68HC11/68HC12 downloads.
14182 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14184 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14187 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14190 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14193 2011-01-28 Ahmad Sharif <asharif@google.com>
14195 * value-prof.c (check_counter): Corrected error message.
14197 2011-01-29 Jie Zhang <jie@codesourcery.com>
14199 * config/arm/arm.c (arm_legitimize_reload_address): New.
14200 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14201 arm_legitimize_reload_address.
14202 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14204 2011-01-28 Ian Lance Taylor <iant@google.com>
14206 * godump.c (go_define): Ignore macros whose definitions include
14207 two adjacent operands.
14209 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14212 * varasm.c (force_const_mem): Store copy of x in desc->constant
14213 instead of x itself.
14214 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14215 itself into REG_EQUAL note.
14217 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14219 * config/freebsd.opt (posix, rdynamic): New Driver options.
14221 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14223 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14224 -Bstatic/-Bdynamic.
14225 * configure: Regenerate.
14227 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14229 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14230 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14232 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14234 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14235 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14236 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14237 (s390_preferred_reload_class): Make static. Change return and
14238 'rclass' argument type to reg_class_t.
14240 2011-01-27 Jan Hubicka <jh@suse.cz>
14242 PR middle-end/46949
14243 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14244 (process_function_and_variable_attributes): Check defined weakrefs.
14246 2011-01-27 Martin Jambor <mjambor@suse.cz>
14248 PR tree-optimization/47228
14249 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14250 build_ref_for_offset.
14252 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14254 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14256 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14258 PR rtl-optimization/46856
14259 * postreload.c (reload_combine_recognize_const_pattern): Do not
14260 separate cc0 setter and user on cc0 targets.
14262 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14265 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14266 passed a VOID_TYPE expression, immediately emit an error and
14267 return error_mark_node.
14269 2011-01-26 Jeff Law <law@redhat.com>
14271 PR rtl-optimization/47464
14272 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14273 rather than may_trap_p as needed.
14275 2011-01-26 DJ Delorie <dj@redhat.com>
14277 PR rtl-optimization/46878
14278 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14279 setter/user dependency as well.
14281 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14283 PR rtl-optimization/44469
14284 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14285 after removing trivially dead basic blocks.
14287 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14289 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14290 * config/frv/frv.h (LINK_SPEC): Likewise.
14291 * config/i386/netware.h (LINK_SPEC): Likewise.
14292 * config/m68k/linux.h (ASM_SPEC): Likewise.
14293 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14294 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14295 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14296 * config/sparc/linux.h (ASM_SPEC): Likewise.
14297 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14298 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14300 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14302 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14303 * config/frv/frv.h (ASM_SPEC): Likewise.
14304 * config/m68k/linux.h (ASM_SPEC): Likewise.
14305 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14306 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14307 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14308 * config/sparc/linux.h (ASM_SPEC): Likewise.
14309 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14310 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14312 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14314 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14315 * config/frv/frv.h (LINK_SPEC): Likewise.
14316 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14318 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14320 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14321 * config/frv/frv.h (ASM_SPEC): Likewise.
14322 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14323 * config/m68k/linux.h (ASM_SPEC): Likewise.
14324 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14325 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14326 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14327 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14328 * config/sparc/linux.h (ASM_SPEC): Likewise.
14329 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14330 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14331 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14333 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14336 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14338 (vec_extract_evenodd_help): Ditto.
14339 (vec_extract_evenv4hi): Ditto.
14340 (vec_extract_oddv4hi): Ditto.
14341 (vec_interleave_lowv2si): Ditto.
14342 (vec_interleave_highv2si): Ditto.
14343 (vec_extract_evenv2si): Ditto.
14344 (vec_extract_oddv2si: Ditto.
14345 (vec_pack_trunc_v2si): Ditto.
14347 2011-01-22 Jan Hubicka <jh@suse.cz>
14350 * cgraph.h (cgraph_local_info): New field can_change_signature.
14351 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14352 signature can change.
14353 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14355 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14356 (cgraph_function_versioning): We can not change signature of functions
14357 that don't allow that.
14358 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14359 (lto_input_node): Likewise.
14360 * ipa-inline.c (compute_inline_parameters): Compute
14361 local.can_change_signature.
14362 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14363 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14364 functions that can not change signature.
14365 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14366 init_cumulative_args): Do not use local calling conventions
14367 for functions that can not change signature.
14369 2011-01-22 Jan Hubicka <jh@suse.cz>
14371 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14373 2011-01-26 Richard Guenther <rguenther@suse.de>
14375 PR tree-optimization/47190
14376 * cgraphunit.c (process_common_attributes): New function.
14377 (process_function_and_variable_attributes): Use it.
14379 2011-01-26 Richard Guenther <rguenther@suse.de>
14382 * cgraphbuild.c (record_eh_tables): Record reference to personality
14385 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14388 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14389 non-debug insns from moving up.
14391 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14394 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14395 t-dlldir{,-x} fragment for build and add it to tmake_file.
14396 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14397 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14398 * config/i386/t-dlldir: New file.
14399 (SHLIB_DLLDIR): Define.
14400 * config/i386/t-dlldir-x: New file.
14401 (SHLIB_DLLDIR): Define.
14402 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14403 (SHLIB_INSTALL): Use it.
14405 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14408 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14409 lower bound of the allowed Thumb-2 coprocessor load/store
14410 index range to -256. Add explaining comment.
14412 2011-01-25 Ian Lance Taylor <iant@google.com>
14414 * godump.c (go_define): Improve lexing of macro expansion to only
14415 accept expressions which match Go spec.
14417 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14420 * tree.c (handle_dll_attribute): Handle it.
14421 * doc/extend.texi (@item dllexport): Mention it.
14422 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14424 2011-01-25 Ian Lance Taylor <iant@google.com>
14426 PR tree-optimization/26854
14427 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14428 (decl_jump_unsafe): Move higher in file, with no other change.
14429 (bind): Set has_jump_unsafe_decl if appropriate.
14430 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14431 (check_earlier_gotos): Likewise.
14432 (c_check_switch_jump_warnings): Likewise.
14434 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14436 * doc/invoke.texi (Warning Options): Add missing hyphen.
14437 (-fprofile-dir): Minor grammatical fixes.
14438 (-fbranch-probabilities): Likewise.
14440 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14444 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14446 (no_real_insns_p, schedule_block, set_priorities): Drop special
14447 treatment of boundary debug insns.
14448 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14449 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14450 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14451 (BOUNDARY_DEBUG_INSN_P): Likewise.
14452 (SCHEDULE_DEBUG_INSN_P): Likewise.
14453 * sched-rgn.c (init_ready_list): Drop special treatment of
14454 boundary debug insns.
14455 * final.c (rest_of_clean-state): Clear notes' BB.
14457 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14459 * Makefile.in (LAMBDA_H): Removed.
14460 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14461 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14462 lambda-trans.o, and tree-loop-linear.o.
14463 (lto-symtab.o): Remove dependence on LAMBDA_H.
14464 (tree-loop-linear.o): Remove rule.
14465 (lambda-mat.o): Same.
14466 (lambda-trans.o): Same.
14467 (lambda-code.o): Same.
14468 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14469 (tree-vect-slp.o): Same.
14470 * hwint.h (gcd): Moved here.
14471 (least_common_multiple): Same.
14472 * lambda-code.c: Removed.
14473 * lambda-mat.c: Removed.
14474 * lambda-trans.c: Removed.
14475 * lambda.h: Removed.
14476 * tree-loop-linear.c: Removed.
14477 * lto-symtab.c: Do not include lambda.h.
14478 * omega.c (gcd): Removed.
14479 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14480 * tree-data-ref.c (print_lambda_vector): Moved here.
14481 (lambda_vector_copy): Same.
14482 (lambda_matrix_copy): Same.
14483 (lambda_matrix_id): Same.
14484 (lambda_vector_first_nz): Same.
14485 (lambda_matrix_row_add): Same.
14486 (lambda_matrix_row_exchange): Same.
14487 (lambda_vector_mult_const): Same.
14488 (lambda_vector_negate): Same.
14489 (lambda_matrix_row_negate): Same.
14490 (lambda_vector_equal): Same.
14491 (lambda_matrix_right_hermite): Same.
14492 * tree-data-ref.h: Do not include lambda.h.
14493 (lambda_vector): Moved here.
14494 (lambda_matrix): Same.
14495 (dependence_level): Same.
14496 (lambda_transform_legal_p): Removed declaration.
14497 (lambda_collect_parameters): Same.
14498 (lambda_compute_access_matrices): Same.
14499 (lambda_vector_gcd): Same.
14500 (lambda_vector_new): Same.
14501 (lambda_vector_clear): Same.
14502 (lambda_vector_lexico_pos): Same.
14503 (lambda_vector_zerop): Same.
14504 (lambda_matrix_new): Same.
14505 * tree-flow.h (least_common_multiple): Removed declaration.
14506 * tree-parloops.c (lambda_trans_matrix): Moved here.
14507 (LTM_MATRIX): Same.
14508 (LTM_ROWSIZE): Same.
14509 (LTM_COLSIZE): Same.
14510 (LTM_DENOMINATOR): Same.
14511 (lambda_trans_matrix_new): Same.
14512 (lambda_matrix_vector_mult): Same.
14513 (lambda_transform_legal_p): Same.
14514 * tree-pass.h (pass_linear_transform): Removed declaration.
14515 * tree-ssa-loop.c (tree_linear_transform): Removed.
14516 (gate_tree_linear_transform): Removed.
14517 (pass_linear_transform): Removed.
14518 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14519 flag_loop_interchange.
14521 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14523 PR tree-optimization/47265
14524 PR tree-optimization/47443
14525 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14526 if name still has some uses.
14528 2011-01-25 Martin Jambor <mjambor@suse.cz>
14530 PR tree-optimization/47382
14531 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14532 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14534 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14536 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14537 sjlj_except_unwind_info.
14539 2011-01-25 Richard Guenther <rguenther@suse.de>
14541 PR tree-optimization/47426
14542 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14543 visible functions results escape.
14545 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14548 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14549 (arm_get_frame_offsets): Use it.
14551 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14552 Jakub Jelinek <jakub@redhat.com>
14554 PR tree-optimization/47271
14555 * tree-if-conv.c (bb_postdominates_preds): New.
14556 (if_convertible_bb_p): Call bb_postdominates_preds.
14557 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14558 (predicate_scalar_phi): Call bb_postdominates_preds.
14560 2011-01-25 Nick Clifton <nickc@redhat.com>
14562 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14563 * config/rx/rx.c (rx_function_value): Likewise.
14564 (rx_promote_function_mode): Likewise.
14565 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14566 in order to make it legitimate.
14567 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14568 make sure that the first operand is the same as the result register.
14569 (addsi3_unspec): Delete.
14570 (subdi3): Do not accept immediate operands.
14571 (subdi3_internal): Likewise.
14573 2011-01-25 Jeff Law <law@redhat.com>
14575 PR rtl-optimization/37273
14576 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14577 handle them like argument loads from stack slots. Do not double
14578 count memory for memory constants and argument loads from stack slots.
14580 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14582 PR tree-optimization/47427
14583 PR tree-optimization/47428
14584 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14585 coalesce if the new root var would be TREE_READONLY.
14587 2011-01-25 Richard Guenther <rguenther@suse.de>
14589 PR middle-end/47414
14590 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14591 correct type for TBAA.
14593 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14595 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14596 (close_phi_written_to_memory): Call for_each_index with
14597 dr_indices_valid_in_loop.
14599 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14601 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14602 when it is initialized.
14604 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14606 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14607 call to graphite_find_data_references_in_stmt.
14608 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14609 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14610 call to graphite_find_data_references_in_stmt.
14611 (analyze_drs_in_stmts): Same.
14612 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14613 in which the scalar analysis of indices is performed.
14614 (create_data_ref): Same. Update call to dr_analyze_indices.
14615 (find_data_references_in_stmt): Update call to create_data_ref.
14616 (graphite_find_data_references_in_stmt): Same.
14617 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14619 (create_data_ref): Same.
14620 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14621 call to create_data_ref.
14623 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14625 * graphite-sese-to-poly.c (build_poly_scop): Move
14626 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14628 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14630 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14631 VAR_DECL, PARM_DECL, and RESULT_DECL.
14633 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14635 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14636 in a reduction PBB.
14637 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14638 that have already been marked as PBB_IS_REDUCTION.
14640 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14642 * graphite-scop-detection.c (same_close_phi_node): New.
14643 (remove_duplicate_close_phi): New.
14644 (make_close_phi_nodes_unique): New.
14645 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14647 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14649 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14650 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14651 of both data references to be the same.
14653 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14655 * graphite-dependences.c (build_lexicographical_constraint): Remove
14656 the gdim parameter.
14657 (build_lexicographical_constraint): Adjust call to
14658 ppl_powerset_is_empty.
14659 (dependence_polyhedron): Same.
14660 (graphite_legal_transform_dr): Same.
14661 (graphite_carried_dependence_level_k): Same.
14662 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14664 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14666 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14668 * graphite-sese-to-poly.c
14669 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14670 (close_phi_written_to_memory): New.
14671 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14674 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14676 * doc/install.texi: Update the expected version number of PPL to 0.11.
14677 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14678 #if PPL_VERSION_MINOR < 11.
14680 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14682 * graphite-dependences.c: Include graphite-cloog-util.h.
14683 (new_poly_ddr): Inlined into dependence_polyhedron.
14684 (free_poly_ddr): Moved close by new_poly_ddr.
14685 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14686 Early return NULL when ppl_powerset_is_empty returns true.
14687 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14688 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14689 (graphite_legal_transform_dr): Call new_poly_ddr.
14690 (graphite_carried_dependence_level_k): Same.
14691 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14692 (dot_transformed_deps_stmt_1): Removed.
14693 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14694 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14695 (dot_deps_1): Call dot_deps_2.
14696 * Makefile.in (graphite-dependences.o): Add missing dependence on
14697 graphite-cloog-util.h.
14699 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14701 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14702 (build_lexicographical_constraint): Same.
14703 (dependence_polyhedron_1): Same.
14704 (graphite_legal_transform_dr): Same.
14705 (graphite_carried_dependence_level_k): Same.
14706 * graphite-ppl.c (ppl_powerset_is_empty): New.
14707 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14708 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14710 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14712 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14713 the "a followed by b" relation and document it.
14715 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14717 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14718 iteration when the bag of constraints is empty.
14720 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14722 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14724 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14726 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14727 nest and two loop depths as parameters.
14728 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14729 lst_perfect_nestify.
14731 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14733 * graphite-dependences.c (print_pddr): Call
14734 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14736 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14738 * graphite-ppl.c (debug_gmp_value): New.
14739 * graphite-ppl.h (debug_gmp_value): Declared.
14741 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14743 * doc/install.texi: Document availability of cloog-0.16.
14745 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14747 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14748 invalid postdominance info.
14750 2011-01-24 Jan Hubicka <jh@suse.cz>
14753 * doc/extend.texi (weak pragma): Drop claim that it must
14754 appear before definition.
14755 * varasm.c (merge_weak, declare_weak): Only sanity check
14756 that DECL is not output at a time it is declared weak.
14758 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14760 * machmode.def: Fixed comments.
14762 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14764 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14766 2011-01-24 Paul Koning <ni1d@arrl.net>
14768 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14771 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14774 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14775 (block_info): Add scanned and prev.
14776 (move_or_delete_vzeroupper_2): Return if the basic block
14777 has been scanned and the upper 128bit state is unchanged
14778 from the last scan.
14779 (move_or_delete_vzeroupper_1): Return true if the exit
14781 (move_or_delete_vzeroupper): Visit basic blocks using the
14782 work-list based algorithm based on vt_find_locations in
14785 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14787 2011-01-24 Nick Clifton <nickc@redhat.com>
14789 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14790 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14791 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14792 then define __v850e1__.
14793 * doc/invoke.texi: Document -mv850es.
14795 2011-01-24 Richard Henderson <rth@redhat.com>
14797 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14798 compound unordered comparisons.
14799 * config/rx/rx.c (rx_split_fp_compare): Remove.
14800 * config/rx/rx-protos.h: Update.
14801 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14802 (cbranchsf4): Don't call rx_split_fp_compare.
14803 (*cbranchsf4): Use rx_split_cbranch.
14804 (*cmpsf): Don't accept "i" constraint.
14805 (*conditional_branch): Only valid after reload.
14806 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14808 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14811 * config/rs6000/altivec.md (vector constant splitters): Add
14812 support for creating vector single precision constants if -mvsx is
14813 used and we would create the constant using Altivec primitives.
14815 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14816 Richard Sandiford <rdsandiford@googlemail.com>
14818 PR rtl-optimization/47166
14819 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14820 mechanism for PRE_MODIFY and POST_MODIFY.
14821 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14824 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14826 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14828 2011-01-22 Jan Hubicka <jh@suse.cz>
14831 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14833 2011-01-22 Jan Hubicka <jh@suse.cz>
14835 PR tree-optimization/43884
14837 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14838 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14840 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14842 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14843 * config/s390/s390.c (s390_register_move_cost,
14844 s390_memory_move_cost): New.
14845 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14847 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14849 PR middle-end/47401
14850 * except.c (sjlj_assign_call_site_values): Move setting the
14851 crtl->uses_eh_lsda flag to ...
14852 (sjlj_mark_call_sites): ... here.
14853 (sjlj_emit_function_enter): Support NULL dispatch label.
14854 (sjlj_build_landing_pads): In a function with no landing pads
14855 that still has must-not-throw regions, generate code to register
14856 a personality function with empty LSDA.
14858 2011-01-21 Richard Henderson <rth@redhat.com>
14860 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14862 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14864 * compare-elim.c: New file.
14865 * Makefile.in (OBJS-common): Add it.
14866 (compare-elim.o): New.
14867 * common.opt (fcompare-elim): New.
14868 * opts.c (default_options_table): Add OPT_fcompare_elim.
14869 * tree-pass.h (pass_compare_elim_after_reload): New.
14870 * passes.c (init_optimization_passes): Add it.
14871 * recog.h: Protect against re-inclusion.
14872 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14873 * doc/invoke.texi (-fcompare-elim): Document it.
14874 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14875 * doc/tm.texi: Rebuild.
14877 2011-01-22 Nick Clifton <nickc@redhat.com>
14879 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14880 rx_split_fp_compare.
14882 2011-01-22 Nick Clifton <nickc@redhat.com>
14884 * config/rx/rx.md (UNSPEC_CONST): New.
14885 (deallocate_and_return): Wrap the amount popped off the stack in
14886 an UNSPEC_CONST in order to stop it being rejected by
14887 -mmax-constant-size.
14888 (pop_and_return): Add a "(return)" rtx.
14889 (call): Drop the immediate operand.
14890 (call_internal): Likewise.
14891 (call_value): Likewise.
14892 (call_value_internal): Likewise.
14893 (sibcall_internal): Likewise.
14894 (sibcall_value_internal): Likewise.
14895 (sibcall): Likewise. Generate an explicit call using
14897 (sibcall_value): Likewise.
14898 (mov<>): FAIL if a constant operand is not legitimate.
14899 (addsi3_unpsec): New pattern.
14901 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14902 (ok_for_max_constant): New function.
14903 (gen_safe_add): New function.
14904 (rx_expand_prologue): Use gen_safe_add.
14905 (rx_expand_epilogue): Likewise.
14906 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14909 2011-01-21 Jeff Law <law@redhat.com>
14911 PR tree-optimization/47053
14912 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14913 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14914 statements are deleted.
14915 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14916 is nonempty, then purge dead edges and cleanup the CFG.
14918 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14921 Temporarily revert:
14922 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14924 * tree-dfa.c (create_var_ann): Mark variable as used.
14926 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14928 PR middle-end/45566
14929 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14930 notes from other section in hot/cold partitioning even if
14931 last_action is -3. Increment call_site_base.
14933 PR rtl-optimization/47366
14934 * fwprop.c (forward_propagate_into): Return bool. If
14935 any changes are made, -fnon-call-exceptions is used and
14936 REG_EH_REGION note is present, call purge_dead_edges
14937 and return true if it purged anything.
14938 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14939 any EH edges were purged.
14941 2011-01-21 Jeff Law <law@redhat.com>
14943 PR rtl-optimization/41619
14944 * caller-save.c (setup_save_areas): Break out code to determine
14945 which hard regs are live across calls by examining the reload chains
14946 so that it is always used.
14947 Eliminate code which checked REG_N_CALLS_CROSSED.
14949 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14951 PR tree-optimization/47355
14952 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14953 NOP has non-debug uses beyond PHIs in new_bb.
14955 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14958 * cfgexpand.c (account_used_vars_for_block): Only account vars
14959 that are annotated as used.
14960 (estimated_stack_frame_size): Don't set TREE_USED.
14961 * tree-dfa.c (create_var_ann): Mark variable as used.
14963 2011-01-21 Richard Guenther <rguenther@suse.de>
14965 PR middle-end/47395
14966 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14968 2011-01-21 Richard Guenther <rguenther@suse.de>
14970 PR tree-optimization/47365
14971 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14972 (vn_reference_lookup_pieces): Adjust.
14973 (vn_reference_lookup): Likewise.
14974 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14975 (vn_reference_lookup_3): Only look through kills if in
14976 VN_WALKREWRITE mode.
14977 (vn_reference_lookup_pieces): Adjust.
14978 (vn_reference_lookup): Likewise.
14979 (visit_reference_op_load): Likewise.
14980 (visit_reference_op_store): Likewise.
14981 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14982 (compute_avail): Likewise.
14983 (eliminate): Likewise.
14985 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14987 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14988 DECL_IGNORED_P non-reg vars if they are used.
14990 PR tree-optimization/47391
14991 * varpool.c (const_value_known_p): Return false if
14994 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14997 * config/i386/i386.c (ix86_local_alignment): Handle
14998 case for va_list_type_node is nil.
14999 (ix86_canonical_va_list_type): Likewise.
15001 2011-01-21 Alan Modra <amodra@gmail.com>
15003 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15004 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15006 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15008 * config/arm/arm.md (define_attr type): Rename f_load
15009 and f_store to f_fpa_load and f_fpa_store. Update.
15010 (write_conflict): Deal with rename fallout.
15011 (*push_fp_multi): Likewise.
15012 * config/arm/fpa.md (f_load): Use f_fpa_load.
15013 (f_store): Use f_fpa_store.
15014 (*movsf_fpa): Likewise.
15015 (*movdf_fpa): Likewise.
15016 (*movxf_fpa): Likewise.
15017 (*thumb2_movsf_fpa): Likewise.
15018 (*thumb2_movdf_fpa): Likewise.
15019 (*thumb2_movxf_fpa): Likewise.
15020 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15021 f_loadd and f_stored.
15022 (*thumb2_movdi_vfp): Likewise.
15023 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15024 (*thumb2_movsi_vfp): Likewise.
15025 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15026 Use f_loads instead of f_load.
15027 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15029 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15031 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15032 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15033 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15034 (xtensa_mode_dependent_address_p): New function.
15035 (constantpool_address_p): Make static. Change return type to bool.
15036 Change argument type to const_rtx. Use CONST_INT_P predicate.
15038 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15041 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15043 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15046 * cfgexpand.c (expand_debug_expr): Instead of generating
15047 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15050 2011-01-20 Richard Guenther <rguenther@suse.de>
15052 PR middle-end/47370
15053 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15054 the pointer operand of MEM_REFs.
15056 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15058 PR tree-optimization/46130
15059 * ipa-split.c (consider_split): If return_bb contains non-virtual
15060 PHIs other than for retval or if split_function would not adjust it,
15063 2011-01-20 Richard Guenther <rguenther@suse.de>
15065 PR tree-optimization/47167
15066 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15067 Revert previous change, only avoid enumeral type changes.
15069 2011-01-19 Mike Stump <mikestump@comcast.net>
15071 * doc/tm.texi.in (BRANCH_COST): Englishify.
15072 * doc/tm.texi (BRANCH_COST): Likewise.
15074 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15077 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15078 (gen_scheduled_generic_parms_dies): New functions.
15079 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15080 generation for the end of CU compilation.
15081 (dwarf2out_finish): Generate template parameters DIEs here.
15083 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15086 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15087 debug bind stmt on merge edges.
15089 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15093 * function.c (instantiate_expr): Instantiate incoming rtl of
15094 implicit arguments, and recurse on VALUE_EXPRs.
15095 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15096 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15098 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15100 * c-parser.c (c_parser_for_statement): Initialize
15101 collection_expression.
15103 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15105 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15107 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15109 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15110 (LINK_SHLIB_SPEC): Don't use %(link_path).
15111 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15113 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15115 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15116 (NO_SHARED_LIB_SUPPORT): Remove.
15117 (LINK_SHLIB_SPEC): Remove one conditional definition.
15119 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15121 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15123 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15124 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15125 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15126 %{call_shared} and conditionals on these options not being passed.
15127 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15130 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15132 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15135 * ipa-split.c: Spelling fixes.
15137 2011-01-19 Richard Henderson <rth@redhat.com>
15139 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15140 (*mulsi3): Likewise.
15142 * longlong.h [__mn10300__] (count_leading_zeros): New.
15143 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15144 [__mn10300__] (add_ssaaaa, subddmmss): New.
15145 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15146 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15148 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15150 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15152 2011-01-19 Richard Henderson <rth@redhat.com>
15154 * config/mn10300/mn10300.md (addsi3_flags): New.
15155 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15156 (subsi3_flags, subc_internal, subdi3): New.
15157 (subdi3_internal, *subdi3_degenerate): New.
15158 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15160 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15161 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15162 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15163 * config/mn10300/mn10300-protos.h: Update.
15164 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15165 (return_ret): Likewise. Rename from return_internal_regs.
15166 (return_internal): Remove.
15168 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15169 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15170 (mn10300_legitimate_constant_p): Likewise.
15171 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15172 (mn10300_frame_size): New.
15173 (mn10300_expand_prologue): Use it.
15174 (mn10300_expand_epilogue): Likewise.
15175 (mn10300_initial_offset): Likewise.
15176 * config/mn10300/mn10300-protos.h: Update.
15177 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15178 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15179 (prologue, epilogue, return_internal): Tidy output code.
15180 (mn10300_store_multiple_operation, return): Likewise.
15181 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15182 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15183 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15184 (load_pic, am33_load_pic): New.
15185 (mn10300_load_pic0, mn10300_load_pic1): New.
15187 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15188 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15189 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15190 (cc_flags_for_mode, cc_flags_for_code): New.
15191 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15192 overflow flag is not valid. Validate that the flags we need
15193 for the comparison are valid.
15194 (mn10300_output_cmp): Remove.
15195 (mn10300_output_add): New.
15196 (mn10300_select_cc_mode): Use cc_flags_for_code.
15197 (mn10300_split_cbranch): New.
15198 (mn10300_match_ccmode): New.
15199 (mn10300_split_and_operand_count): New.
15200 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15202 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15203 (addsi3): ... here. Use mn10300_output_add.
15204 (*addsi3_flags): New.
15205 (*am33_subsi3, *mn10300_subsi3): Merge...
15206 (subsi3): ... here. Use attribute isa.
15207 (*subsi3_flags): New.
15208 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15210 (*am33_andsi3, *mn10300_andsi3): Merge...
15211 (andsi3): ... here.
15212 (*andsi3_flags): New.
15213 (andsi3 splitters): New.
15214 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15215 (iorsi3): ... here.
15216 (*iorsi3_flags): New.
15217 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15218 (xorsi3): ... here.
15219 (*xorsi3_flags): New.
15220 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15221 (one_cmplsi2): ... here.
15222 (*one_cmplsi2_flags): New.
15223 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15224 instead of "dax" in constraints. Use mn10300_split_cbranch.
15225 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15226 use matching constraints to eliminate a self-comparison.
15227 (*integer_conditional_branch): Rename from integer_conditional_branch.
15228 Use int_mode_flags to match CC_REG.
15229 (*cbranchsi4_btst, *btstsi): New.
15230 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15231 mn10300_split_cbranch.
15232 (*am33_cmpsf): Rename from am33_cmpsf.
15233 (*float_conditional_branch): Rename from float_conditional_branch.
15234 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15235 (zero_extendqisi2): ... here.
15236 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15237 (zero_extendhisi2): ... here.
15238 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15239 (extendqisi2): ... here.
15240 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15241 (extendhisi2): ... here.
15242 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15243 (ashlsi3): ... here.
15244 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15245 (lshrsi3): ... here.
15246 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15247 (ashrsi3): ... here.
15248 (consecutive add peephole): Remove.
15249 * config/mn10300/predicates.md (label_ref_operand): New.
15250 (int_mode_flags): New.
15251 (CCZN_comparison_operator): New.
15253 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15254 (throughput_42_latency_43): New reservation.
15255 (mulsidi3, umulsidi3): New expanders.
15256 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15257 the MDR register to allocation; separately allocate the low and
15258 high parts of the DImode result.
15259 (umulsidi3_internal): Similarly.
15260 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15261 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15262 (udivsi3, umodsi3): Remove.
15263 (udivmodsi4, divmodsi4): New expanders.
15264 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15265 (*divmodsi4): Simiarly.
15266 (ext_internal): New.
15268 * config/mn10300/constraints.md ("z"): New constraint.
15269 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15270 (FIXED_REGISTERS): Don't fix MDR.
15271 (CALL_USED_REGSITERS): Reformat nicely.
15272 (REG_ALLOC_ORDER): Add MDR.
15273 (enum regclass): Add MDR_REGS.
15274 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15275 (IRA_COVER_CLASSES): Add MDR_REGS.
15276 (REGNO_REG_CLASS): Handle MDR_REG.
15277 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15278 (mn10300_register_move_cost): Likewise.
15279 * config/mn10300/mn10300.md (MDR_REG): New.
15280 (*movsi_internal): Handle moves to/from MDR_REGS.
15282 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15284 (mn10300_secondary_reload): Tidy combination reload classes.
15285 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15286 addresses for AM33. Allow symbolic offsets for reg+imm.
15287 (mn10300_regno_in_class_p): New.
15288 (mn10300_legitimize_reload_address): New.
15289 * config/mn10300/mn10300.h (enum reg_class): Remove
15290 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15291 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15292 SP_OR_GENERAL_REGS.
15293 (REG_CLASS_NAMES): Update to match.
15294 (REG_CLASS_CONTENTS): Likewise.
15295 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15296 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15297 (REGNO_IN_RANGE_P): Remove.
15298 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15299 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15300 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15301 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15302 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15303 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15304 (REGNO_GENERAL_P): New.
15305 (HAVE_POST_MODIFY_DISP): New.
15306 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15307 (LEGITIMIZE_RELOAD_ADDRESS): New.
15308 * config/mn10300/mn10300-protos.h: Update.
15310 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15311 DATA_REGS for AM33 stack-pointer destination.
15312 (mn10300_preferred_output_reload_class): Likewise.
15313 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15314 into a form appropriate for ...
15315 (TARGET_SECONDARY_RELOAD): New.
15316 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15317 * config/mn10300/mn10300-protos.h: Update.
15318 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15319 reload_insi; use the "A" constraint for the scratch; handle AM33
15320 moves of sp to non-address registers.
15322 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15323 (*movqi_internal): ... here.
15324 (*am33_movhi, *mn10300_movhi): Merge into...
15325 (*movhi_internal): ... here.
15326 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15327 as the source/destination of moves from/to SP.
15328 (movsf): Only allow for AM33-2.
15329 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15330 any integer constant constraint. Only allow for AM33-2. Tidy
15331 all of the alternative outputs.
15332 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15333 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15335 (udivsi3, umodsi3): New patterns for MN103 only.
15337 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15339 * doc/tm.texi.in: Spell out that a lack of register class unions
15341 * doc/tm.texi: Regenerate.
15343 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15345 PR rtl-optimization/47337
15346 * dce.c (check_argument_store): New function.
15347 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15349 PR tree-optimization/47290
15350 * tree-eh.c (infinite_empty_loop_p): New function.
15351 (cleanup_empty_eh): Use it.
15353 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15356 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15357 (a64_expand_widen_sum): Ditto.
15358 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15359 (vec_extract_evenodd_help): Ditto.
15360 (vec_extract_evenv4hi): Ditto.
15361 (vec_extract_oddv4hi): Ditto.
15362 (vec_extract_evenv2si): Ditto.
15363 (vec_extract_oddv2si): Ditto.
15364 (vec_extract_evenv2sf): Ditto.
15365 (vec_extract_oddv2sf): Ditto.
15366 (vec_pack_trunc_v4hi: Ditto.
15367 (vec_pack_trunc_v2si): Ditto.
15368 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15369 (vec_interleave_highv8qi): Ditto.
15371 (vec_extract_oddv8qi): Ditto.
15372 (vec_interleave_lowv4hi): Ditto.
15373 (vec_interleave_highv4hi): Ditto.
15374 (vec_interleave_lowv2si): Ditto.
15375 (vec_interleave_highv2si): Ditto.
15377 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15379 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15380 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15381 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15382 (pa_c_mode_for_suffix): New.
15383 (TARGET_EXPAND_BUILTIN): Define.
15384 (TARGET_C_MODE_FOR_SUFFIX): Define.
15385 (pa_builtins): Define.
15386 (pa_init_builtins): Register __float128 type and init new support
15388 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15389 * config/pa/quadlib.c (_U_Qfcopysign): New.
15391 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15393 PR middle-end/46894
15394 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15395 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15398 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15400 PR tree-optimization/47179
15401 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15402 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15404 2011-01-18 Richard Guenther <rguenther@suse.de>
15406 PR rtl-optimization/47216
15407 * emit-rtl.c: Include tree-flow.h.
15408 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15409 of replicating it with different semantics.
15410 * Makefile.in (emit-rtl.o): Adjust.
15412 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15414 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15415 (cortex_a9_dp): Handle neon types correctly.
15417 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15419 PR rtl-optimization/47299
15420 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15421 subtarget. Use normal multiplication if both operands are constants.
15422 * expmed.c (expand_widening_mult): Don't try to optimize constant
15423 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15426 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15428 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15429 spacing after 'e.g.', typos, comma, hyphenation.
15431 2011-01-17 Richard Henderson <rth@redhat.com>
15433 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15434 (rx_restricted_mem_operand): New.
15435 (rx_shift_operand): Use register_operand.
15436 (rx_source_operand, rx_compare_operand): Likewise.
15437 * config/rx/rx.md (addsi3_flags): New expander.
15438 (adddi3): Rewrite as expander.
15439 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15440 (subsi3_flags): New expander.
15441 (subdi3): Rewrite as expander.
15442 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15444 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15445 (rx_init_builtins): Remove sat builtin.
15446 (rx_expand_builtin): Likewise.
15447 * config/rx/rx.md (ssaddsi3): New.
15448 (*sat): Rename from sat. Represent the CC_REG input.
15450 * config/rx/predicates.md (rshift_operator): New.
15451 * config/rx/rx.c (rx_expand_insv): Remove.
15452 * config/rx/rx-protos.h: Update.
15453 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15454 operand to the canonical position.
15455 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15456 (*bitclr, *bitclr_in_memory): Similarly.
15457 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15458 (insv): Retain the zero_extract in the expansion.
15460 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15461 (bswaphi2, bitinvert, revw): Likewise.
15463 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15464 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15465 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15466 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15467 (bitset, bitset_in_memory): Likewise.
15468 (bitinvert, bitinvert_in_memory): Likewise.
15469 (bitclr, bitclr_in_memory): Likewise.
15470 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15471 (rx_strend, rx_cmpstrn): Likewise.
15472 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15473 (bitop peep2 patterns): Remove.
15475 * config/rx/rx.c (rx_match_ccmode): New.
15476 * config/rx/rx-protos.h: Update.
15477 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15478 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15479 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15480 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15481 (fix_truncsfsi2, floatsisf2): Likewise.
15482 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15483 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15484 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15485 (*subsi3_flags, *xorsi3_flags): New.
15487 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15489 * config/rx/rx.c (rx_print_operand): Remove workaround for
15490 unsplit comparison operations.
15492 * config/rx/rx.md (movsicc): Split after reload.
15493 (*movsicc): Merge *movsieq and *movsine via match_operator.
15494 (*stcc): New pattern.
15496 * config/rx/rx.c (rx_float_compare_mode): Remove.
15497 * config/rx/rx.h (rx_float_compare_mode): Remove.
15498 * config/rx/rx.md (cstoresi4): Split after reload.
15499 (*sccc): New pattern.
15501 * config/rx/predicates.md (label_ref_operand): New.
15502 (rx_z_comparison_operator): New.
15503 (rx_zs_comparison_operator): New.
15504 (rx_fp_comparison_operator): New.
15505 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15506 Validate that the flags are set properly for the comparison.
15507 (rx_gen_cond_branch_template): Remove.
15508 (rx_cc_modes_compatible): Remove.
15509 (mode_from_flags): New.
15510 (flags_from_code): Rename from flags_needed_for_conditional.
15511 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15512 (rx_select_cc_mode): Likewise.
15513 (rx_split_fp_compare): New.
15514 (rx_split_cbranch): New.
15515 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15516 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15517 (*cbranchsf4): Similarly.
15518 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15519 match_operator and rx_split_cbranch.
15520 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15521 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15522 (*cmpsi): Rename from cmpsi.
15523 (*tstsi): Rename from tstsi.
15524 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15525 (*conditional_branch): Rename from conditional_branch.
15526 (*reveresed_conditional_branch): Remove.
15527 (b<code>): Remove expander.
15528 * config/rx/rx-protos.h: Update.
15530 * config/rx/rx.c (rx_compare_redundant): Remove.
15531 * config/rx/rx.md (cmpsi): Don't use it.
15532 * config/rx/rx-protos.h: Update.
15534 * config/rx/rx-modes.def (CC_F): New mode.
15535 * config/rx/rx.c (rx_select_cc_mode): New.
15536 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15537 * config/rx/rx-protos.h: Update.
15539 2011-01-17 Richard Henderson <rth@redhat.com>
15541 * except.c (dump_eh_tree): Fix stray ; after for statement.
15543 2011-01-17 Richard Guenther <rguenther@suse.de>
15545 PR tree-optimization/47313
15546 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15547 handling before copying the body. Properly deal with
15548 by-reference result in SSA form.
15550 2011-01-17 Ian Lance Taylor <iant@google.com>
15553 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15554 (struct_value_alias_set): Don't define.
15555 (sparc_option_override): Don't set sparc_sr_alias_set and
15556 struct_value_alias_set.
15557 (save_or_restore_regs): Use gen_frame_mem rather than calling
15559 (sparc_struct_value_rtx): Likewise.
15561 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15564 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15565 (_mm_maskstore_pd): Likewise.
15566 (_mm_maskload_ps): Likewise.
15567 (_mm_maskstore_ps): Likewise.
15568 (_mm256_maskload_pd): Change mask to __m256i.
15569 (_mm256_maskstore_pd): Likewise.
15570 (_mm256_maskload_ps): Likewise.
15571 (_mm256_maskstore_ps): Likewise.
15573 * config/i386/i386-builtin-types.def: Updated.
15574 (ix86_expand_special_args_builtin): Likewise.
15576 * config/i386/i386.c (bdesc_special_args): Update
15577 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15578 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15579 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15580 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15582 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15583 Use <avxpermvecmode> on mask register.
15584 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15586 2011-01-17 Olivier Hainque <hainque@adacore.com>
15587 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15588 Eric Botcazou <ebotcazou@adacore.com>
15591 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15592 if <= USHRT_MAX in 32-bit mode.
15594 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15596 * doc/install.texi (Configuration, Specific): Wrap long
15597 lines in examples. Allow line wrapping in long options
15598 and URLs where beneficial for PDF output.
15600 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15602 * config/mips/mips.c (mips_classify_symbol): Don't return
15603 SYMBOL_PC_RELATIVE for nonlocal labels.
15605 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15607 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15609 2011-01-15 Jan Hubicka <jh@suse.cz>
15611 PR tree-optimization/47276
15612 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15613 declarations as needed.
15615 2011-01-15 Martin Jambor <mjambor@suse.cz>
15617 * common.opt (fdevirtualize): New flag.
15618 * doc/invoke.texi (Option Summary): Document it.
15619 * opts.c (default_options_table): Add devirtualize flag.
15620 * ipa-prop.c (detect_type_change): Return immediately if
15621 devirtualize flag is not set.
15622 (detect_type_change_ssa): Likewise.
15623 (compute_known_type_jump_func): Likewise.
15624 (ipa_analyze_virtual_call_uses): Likewise.
15626 2011-01-14 Martin Jambor <mjambor@suse.cz>
15628 PR tree-optimization/45934
15629 PR tree-optimization/46302
15630 * ipa-prop.c (type_change_info): New type.
15631 (stmt_may_be_vtbl_ptr_store): New function.
15632 (check_stmt_for_type_change): Likewise.
15633 (detect_type_change): Likewise.
15634 (detect_type_change_ssa): Likewise.
15635 (compute_complex_assign_jump_func): Check for dynamic type change.
15636 (compute_complex_ancestor_jump_func): Likewise.
15637 (compute_known_type_jump_func): Likewise.
15638 (compute_scalar_jump_functions): Likewise.
15639 (ipa_analyze_virtual_call_uses): Likewise.
15640 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15642 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15644 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15645 * config/i386/i386.opt (msse5): New Alias.
15647 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15649 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15650 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15651 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15652 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15654 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15656 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15658 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15659 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15660 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15661 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15663 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15665 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15667 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15669 2011-01-14 Mike Stump <mikestump@comcast.net>
15671 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15672 * config/fr30/fr30.md: Likweise
15673 (movsi_push): Likewise.
15674 (movsi_pop): Likewise.
15675 (enter_func): Likewise.
15676 * config/moxie/moxie.md (movsi_push): Likewise.
15677 (movsi_pop): Likewise.
15679 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15681 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15682 %{no_archive} %{exact_version}.
15683 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15684 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15685 %{no_archive} %{exact_version}.
15686 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15687 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15688 * config/mips/vxworks.h: Likewise.
15690 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15692 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15694 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15696 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15697 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15699 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15701 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15704 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15706 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15708 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15709 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15711 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15712 Don't handle -shlib.
15714 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15716 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15717 (CC1_SPEC): Don't handle -profile.
15719 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15721 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15722 * config/mips/mips.h (CC1_SPEC): Likewise.
15724 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15726 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15727 * config/mips/mips.h (CC1_SPEC): Likewise.
15729 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15731 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15732 * config/m32r/linux.h (LINK_SPEC): Likewise.
15733 * config/mips/linux.h (LINK_SPEC): Likewise.
15734 * config/mips/linux64.h (LINK_SPEC): Likewise.
15735 * config/sparc/linux.h (LINK_SPEC): Likewise.
15736 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15737 LINK_SPEC): Likewise.
15738 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15740 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15742 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15744 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15746 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15748 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15749 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15751 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15753 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15755 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15757 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15758 supports -Bstatic/-Bdynamic.
15759 * configure: Regenerate.
15761 2011-01-14 Jan Hubicka <jh@suse.cz>
15762 Jack Howarth <howarth@bromo.med.uc.edu>
15765 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15766 when checking debug_info_level. Test write_symbols instead of
15767 debug_hooks->var_location when setting flag_var_tracking_uninit.
15769 2011-01-14 Richard Guenther <rguenther@suse.de>
15771 PR tree-optimization/47179
15772 * target.def (ref_may_alias_errno): New target hook.
15773 * targhooks.h (default_ref_may_alias_errno): Declare.
15774 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15775 (default_ref_may_alias_errno): New function.
15776 * target.h (struct ao_ref_s): Declare.
15777 * tree-ssa-alias.c: Include target.h.
15778 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15779 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15780 (targhooks.o): Likewise.
15781 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15782 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15784 2011-01-14 Richard Guenther <rguenther@suse.de>
15786 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15788 2011-01-14 Richard Guenther <rguenther@suse.de>
15790 PR tree-optimization/47280
15791 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15792 return CFG changes.
15793 (tree_ssa_forward_propagate_single_use_vars): Deal with
15794 CFG changes from associate_plusminus.
15796 2011-01-14 Richard Guenther <rguenther@suse.de>
15798 PR middle-end/47281
15800 2011-01-11 Richard Guenther <rguenther@suse.de>
15802 PR tree-optimization/46076
15803 * tree-ssa.c (useless_type_conversion_p): Conversions from
15804 unprototyped to empty argument list function types are useless.
15806 2011-01-14 Richard Guenther <rguenther@suse.de>
15808 PR tree-optimization/47286
15809 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15811 2011-01-14 Martin Jambor <mjambor@suse.cz>
15813 PR middle-end/46823
15814 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15816 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15818 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15819 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15820 * config/xtensa/xtensa.c (xtensa_libcall_value,
15821 xtensa_function_value_regno_p): New functions.
15822 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15824 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15827 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15829 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15830 New function prototype.
15831 * config/i386/winnt.c (i386_pe_assemble_visibility):
15832 Warn only if attribute was specified by user.
15834 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15837 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15839 (floatunsdidf2_fcfidu): Ditto.
15841 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15843 * config/s390/s390.c (print_operand_address): Replace 'error' with
15844 'output_operand_lossage'.
15845 (print_operand): Likewise.
15847 2011-01-13 Jeff Law <law@redhat.com>
15849 PR rtl-optimization/39077
15850 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15851 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15852 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15853 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15854 * gcse.c (prune_insertions_deletions): New function.
15855 (compute_pre_data): Use it.
15857 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15860 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15862 (prune_unused_types_mark): Use it.
15864 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15866 PR rtl-optimization/45352
15867 * sel-sched.c: Update copyright years.
15868 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15869 in the advancing loop when we have issued issue_rate insns.
15871 2011-01-12 Richard Henderson <rth@redhat.com>
15873 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15874 (TARGET_MD_ASM_CLOBBERS): New.
15876 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15877 (TARGET_DELEGITIMIZE_ADDRESS): New.
15879 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15880 (clzsi2, *bsch): New patterns.
15882 * config/mn10300/mn10300.md (INT): New mode iterator.
15883 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15885 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15886 flag_split_wide_types.
15888 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15889 (mn10300_trampoline_init): Rewrite without a template, an immediate
15890 load and a direct branch.
15891 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15893 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15895 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15896 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15897 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15898 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15900 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15903 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15906 2011-01-12 Jan Hubicka <jh@suse.cz>
15909 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15910 (PLUGIN_COND_CLOSE): New macro.
15911 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15913 2011-01-12 Richard Guenther <rguenther@suse.de>
15916 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15917 register variables in a MEM_REF.
15919 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15921 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15922 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15923 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15924 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15925 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15926 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15927 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15928 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15929 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15930 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15931 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15932 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15933 * config/gnu-user.h: New. Copied from linux.h.
15934 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15935 GNU_USER_TARGET_STARTFILE_SPEC.
15936 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15937 GNU_USER_TARGET_ENDFILE_SPEC.
15938 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15939 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15940 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15941 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15942 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15943 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15944 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15945 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15946 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15947 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15948 * config/arm/linux-eabi.h (CC1_SPEC): Use
15949 GNU_USER_TARGET_CC1_SPEC.
15950 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15951 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15952 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15953 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15954 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15955 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15956 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15957 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15959 2011-01-12 Richard Guenther <rguenther@suse.de>
15962 * doc/invoke.texi (ffast-math): Document it is turned on
15965 2011-01-12 Jan Hubicka <jh@suse.cz>
15967 PR tree-optimization/47233
15968 * opts.c (common_handle_option): Disable ipa-reference with profile
15971 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15973 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15976 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15978 * c-parser.c (c_lex_one_token): Updated and reindented some
15979 comments. No changes in code.
15981 2011-01-11 Ian Lance Taylor <iant@google.com>
15983 * godump.c (go_output_var): Don't output the variable if there is
15984 already a type with the same name.
15986 2011-01-11 Ian Lance Taylor <iant@google.com>
15988 * godump.c (go_format_type): Don't generate float80.
15990 2011-01-11 Richard Henderson <rth@redhat.com>
15992 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15993 declaration. Rewrite for both speed and size.
15994 (mn10300_address_cost_1): Remove.
15995 (mn10300_register_move_cost): New.
15996 (mn10300_memory_move_cost): New.
15997 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15998 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15999 extensions, shifts, BSWAP, CLZ.
16000 (mn10300_wide_const_load_uses_clr): Remove.
16001 (TARGET_REGISTER_MOVE_COST): New.
16002 (TARGET_MEMORY_MOVE_COST): New.
16003 * config/mn10300/mn10300-protos.h: Update.
16004 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16006 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16007 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16008 * config/mn10300/mn10300-protos.h: Update.
16009 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16010 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16011 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16012 (*test_int_bitfield, *test_byte_bitfield): Remove.
16013 (*bit_test, *subreg_bit_test): Remove.
16014 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16016 * config/mn10300/constraints.md ("c"): Rename from "A".
16017 ("A", "D"): New constraint letters.
16018 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16019 (fmssf4, fnmasf4, fnmssf4): Likewise.
16021 * config/mn10300/mn10300.md (isa): New attribute.
16022 (enabled): New attribute.
16024 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16025 (abssf2, negsf2): Define only for hardware fp.
16026 (sqrtsf2): Reformat.
16027 (addsf3, subsf3, mulsf3): Merge expander and insn.
16029 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16030 (DEBUGGER_AUTO_OFFSET): Remove.
16031 (DEBUGGER_ARG_OFFSET): Remove.
16033 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16034 Emit register stores with the same offsets as the hardware.
16035 (mn10300_store_multiple_operation): Don't check that the register
16036 save offsets are monotonic.
16037 * config/mn10300/mn10300-protos.h: Update.
16039 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16041 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16042 in terms of the value on the stack, not the MDR register.
16044 2011-01-11 Jan Hubicka <jh@suse.cz>
16048 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16049 (symbol_alias_set_destroy, symbol_alias_set_contains,
16050 propagate_aliases_backward): Declare.
16051 * lto-streamer-out.c (struct sets): New sturcture.
16052 (trivally_defined_alias): New function.
16053 (output_alias_pair_p): Rewrite.
16054 (output_unreferenced_globals): Fix output of alias pairs.
16055 (produce_symtab): Likewise.
16056 * ipa.c (function_and_variable_visibility): Set weak alias destination
16058 * varasm.c (symbol_alias_set_t): Remove.
16059 (symbol_alias_set_destroy): Export.
16060 (propagate_aliases_forward, propagate_aliases_backward): New functions
16062 (compute_visible_aliases): ... this one; remove.
16063 (trivially_visible_alias): New
16064 (trivially_defined_alias): New.
16065 (remove_unreachable_alias_pairs): Rewrite.
16066 (finish_aliases_1): Reorganize code checking if alias is defined.
16067 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16070 2011-01-11 Richard Guenther <rguenther@suse.de>
16072 PR tree-optimization/46076
16073 * tree-ssa.c (useless_type_conversion_p): Conversions from
16074 unprototyped to empty argument list function types are useless.
16076 2011-01-11 Richard Guenther <rguenther@suse.de>
16078 PR middle-end/45235
16079 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16080 volatile MEMs as MEM_READONLY_P.
16082 2011-01-11 Richard Guenther <rguenther@suse.de>
16084 PR tree-optimization/47239
16085 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16087 2011-01-11 Jeff Law <law@redhat.com>
16089 PR tree-optimization/47086
16090 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16091 IVs from statements that might throw.
16093 2011-01-10 Jan Hubicka <jh@suse.cz>
16096 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16098 2011-01-10 Jan Hubicka <jh@suse.cz>
16101 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16102 when correcting profile.
16104 2011-01-10 Jan Hubicka <jh@suse.cz>
16107 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16108 DECL_FINI_PRIORITY.
16109 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16110 Restore DECL_FINI_PRIORITY.
16112 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16114 * doc/gimple.texi: Fix quoting of multi-word return values in
16115 @deftypefn statements. Ensure presence of return value. Wrap
16116 overlong @deftypefn lines.
16117 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16118 descriptions of removed functions.
16119 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16120 of multi-word return value in @deftypefn statement.
16122 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16124 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16125 (Conditional Expressions, Logical Operators)
16126 (Statement and operand traversals): Do not indent smallexample
16127 code. Fix duplicate function argument in example.
16129 2011-01-10 Jeff Law <law@redhat.com>
16131 PR tree-optimization/47141
16132 * ipa-split.c (split_function): Handle case where we are
16133 returning a value and the return block has a virtual operand phi.
16135 2011-01-10 Jan Hubicka <jh@suse.cz>
16137 PR tree-optimization/47234
16138 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16139 (pass_feedback_split_functions): Declare.
16140 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16142 * ipa-split.c (gate_split_functions): Update comments; disable
16143 split-functions for profile_arc_flag and branch_probabilities.
16144 (gate_feedback_split_functions): New function.
16145 (execute_feedback_split_functions): New function.
16146 (pass_feedback_split_functions): New global var.
16148 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16151 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16152 calling gimple_call_set_cannot_inline.
16154 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16156 * config/darwin-sections.def: Remove unused section.
16158 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16161 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16163 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16166 * c-parser.c (c_parser_declaration_or_fndef): Improved
16169 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16171 * config/i386/winnt.c (i386_pe_start_function): Make sure
16172 to switch back to function's section.
16174 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16178 * plugin.c: Move include of dlfcn.h from here...
16179 * system.h: ... to here.
16181 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16183 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16185 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16186 two extra empty pages in PDF output.
16188 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16191 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16192 for error recovery purposes behave as if it was not specified so
16193 that the default type is usd.
16195 2011-01-07 Jan Hubicka <jh@suse.cz>
16197 PR tree-optmization/46469
16198 * ipa.c (function_and_variable_visibility): Clear needed flags on
16199 nodes with external decls; handle weakrefs merging correctly.
16201 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16203 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16206 2011-01-07 Jan Hubicka <jh@suse.cz>
16208 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16209 and no longer claim that gold is required for linker plugin.
16210 * configure: Regenerate.
16211 * gcc.c (PLUGIN_COND): New macro.
16212 (LINK_COMMAND_SPEC): Use it.
16213 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16214 * config.in (HAVE_LTO_PLUGIN): New.
16215 * configure.ac (--with-lto-plugin): New parameter; autodetect
16218 2011-01-07 Jan Hubicka <jh@suse.cz>
16220 PR tree-optimization/46367
16221 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16222 when we can update original.
16223 (cgraph_mark_inline_edge): Sanity check.
16224 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16226 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16228 * config/spu/spu.h (ASM_COMMENT_START): Define.
16230 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16233 * gcc.c (%>S): New.
16234 (SWITCH_KEEP_FOR_GCC): Likewise.
16235 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16236 (do_spec_1): Handle "%>".
16238 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16240 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16243 * config/i386/i386.c (ix86_delegitimize_address): If
16244 simplify_gen_subreg fails, return orig_x.
16247 * value-prof.c (gimple_stringop_fixed_value): Handle
16248 lhs of the call properly.
16250 2011-01-07 Jan Hubicka <jh@suse.cz>
16253 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16255 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16257 * target.def (function_switched_text_sections): New hook.
16258 * doc/tm.texi: Regenerated.
16259 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16260 * final.c (default_function_switched_text_sections): New.
16261 (final_scan_insn): Call function_switched_text_sections when a
16262 mid-function section change occurs.
16263 * output.h (default_function_switched_text_sections): Declare.
16264 * config/darwin-protos.h (darwin_function_switched_text_sections):
16266 * config/darwin.c (darwin_function_switched_text_sections): New.
16267 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16269 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16271 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16272 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16273 the secondary code fragment when outputting for DWARF == 2.
16275 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16277 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16278 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16280 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16281 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16283 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16286 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16287 when it is not empty.
16289 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16292 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16293 (case ${target}): Add btver1.
16294 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16295 -march=native recognize btver1 processors.
16296 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16297 btver1 def_and_undef
16298 * config/i386/i386.c (struct processor_costs btver1_cost): New
16300 (m_BTVER1): New definition.
16301 (m_AMD_MULTIPLE): Includes m_BTVER1.
16302 (initial_ix86_tune_features): Add btver1 tune.
16303 (processor_target_table): Add btver1 entry.
16304 (static const char *const cpu_names): Add btver1 entry.
16305 (software_prefetching_beneficial_p): Add btver1.
16306 (ix86_option_override_internal): Add btver1 instruction sets.
16307 (ix86_issue_rate): Add btver1.
16308 (ix86_adjust_cost): Add btver1.
16309 * config/i386/i386.h (TARGET_BTVER1): New definition.
16310 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16311 (enum processor_type): Add PROCESSOR_BTVER1.
16312 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16314 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16317 * config/i386/i386.c (legitimize_tls_address)
16318 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16319 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16320 (tls_initial_exec_64_sun): New pattern.
16322 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16324 * doc/invoke.texi (Overall Options): Improve wording and markup
16325 of the description of -wrapper.
16327 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16329 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16330 rdynamic, threads): New Driver options.
16332 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16335 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16336 if coming from .tdata.
16337 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16339 2011-01-06 Jan Hubicka <jh@suse.cz>
16342 * collect2.c (main): Do not enable LTOmode when plugin is active.
16344 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16347 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16348 --version output if supported.
16349 * configure: Regenerate.
16351 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16353 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16356 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16359 * c-convert.c (convert): When converting a complex expression
16360 other than COMPLEX_EXPR to a different complex type, ensure
16361 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16362 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16363 when converting COMPLEX_TYPE.
16365 2011-01-06 Ira Rosen <irar@il.ibm.com>
16367 PR tree-optimization/47139
16368 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16369 only the last reduction value is used outside the loop. Update
16372 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16374 * config/rtems.opt: New.
16375 * config.gcc (*-*-rtems*): Use rtems.opt.
16377 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16379 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16380 processors do not support 3DNow instructions.
16382 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16384 * config/spu/spu.c (spu_option_override): Set parameter
16385 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16387 2011-01-05 Jan Hubicka <jh@suse.cz>
16389 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16390 at the command line.
16392 2011-01-05 Martin Jambor <mjambor@suse.cz>
16395 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16396 deltas on streamed outgoing edges.
16397 (output_node_opt_summary): Output info for outgoing edges only when
16398 the node is in new parameter set.
16399 (output_cgraph_opt_summary): New parameter set, passed to the two
16400 aforementioned functions. Update its forward declaration and its
16403 2011-01-05 Tom Tromey <tromey@redhat.com>
16405 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16406 operator to c_finish_omp_atomic.
16407 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16408 (build_unary_op): Update.
16409 (build_modify_expr): Update.
16410 (build_asm_expr): Update.
16412 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16414 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16415 newly inserted insns.
16416 (pad_bb): Likewise.
16417 (spu_emit_branch_hint): Likewise.
16418 (insert_hbrp_for_ilb_runout): Likewise.
16419 (spu_machine_dependent_reorg): Call df_finish_pass after
16420 schedule_insns returns.
16422 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16424 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16426 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16428 PR tree-optimization/47005
16429 * tree-sra.c (struct access): Add 'non_addressable' bit.
16430 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16431 (decide_one_param_reduction): Return 0 if the parameter is passed by
16432 reference and one of the accesses in the group is non_addressable.
16434 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16436 PR tree-optimization/47056
16437 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16438 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16439 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16441 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16443 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16444 initializer. Skip view conversions from aggregate types.
16446 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16449 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16451 2011-01-04 Philipp Thomas <pth@suse.de>
16453 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16456 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16458 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16459 on empty epilogue sequences.
16461 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16463 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16464 non-static): New Driver options.
16466 2011-01-04 Jie Zhang <jie@codesourcery.com>
16469 * gcc.c (default_compilers[]): Set combinable field to 0
16470 for all assembly languages.
16472 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16474 * config/mips/loongson3a.md: New file.
16475 * config/mips/mips.md: Include loongson3a.md.
16476 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16479 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16481 PR middle-end/47017
16482 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16483 instead of convert_memory_address_addr_space on the base expression.
16485 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16487 * config/spu/spu.c (spu_option_override): Update error text
16488 for bad -march= / -mtune= values.
16490 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16492 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16493 if branch-hint optimization will be performed.
16495 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16497 PR tree-optimization/47148
16498 * ipa-split.c (split_function): Convert arguments to
16499 DECL_ARG_TYPE if possible.
16501 PR tree-optimization/47155
16502 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16503 when computing uns.
16505 PR rtl-optimization/47157
16506 * combine.c (try_combine): If undobuf.other_insn becomes
16507 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16508 and set *new_direct_jump_p too.
16510 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16512 PR tree-optimization/47021
16513 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16515 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16517 * gcc.c (process_command): Update copyright notice dates.
16518 * gcov.c (print_version): Likewise.
16519 * gcov-dump.c (print_version): Likewise.
16520 * mips-tfile.c (main): Likewise.
16521 * mips-tdump.c (main): Likewise.
16523 2011-01-03 Martin Jambor <mjambor@suse.cz>
16525 PR tree-optimization/46801
16526 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16527 aggregate fields start at byte boundary instead of the bit-field flag.
16529 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16532 * gcc.c (main): Revert revision 168407.
16534 2011-01-03 Martin Jambor <mjambor@suse.cz>
16536 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16538 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16540 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16541 vector optab to expand vector/scalar shift, update gimple to vector.
16543 2011-01-03 Martin Jambor <mjambor@suse.cz>
16545 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16548 2011-01-03 Martin Jambor <mjambor@suse.cz>
16550 PR tree-optimization/46984
16551 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16553 (cgraph_create_indirect_edge): Fixed line length.
16554 (cgraph_indirect_call_info): Declare.
16555 (cgraph_make_edge_direct) Update declaration.
16556 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16557 (cgraph_create_indirect_edge): Use it.
16558 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16560 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16561 the new thunk_delta representation.
16562 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16564 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16565 (ipa_read_indirect_edge_info): Likewise.
16566 * lto-cgraph.c (output_edge_opt_summary): New function.
16567 (output_node_opt_summary): Call it on all outgoing edges.
16568 (input_edge_opt_summary): New function.
16569 (input_node_opt_summary): Call it on all outgoing edges.
16571 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16574 * gcc.c (main): Don't check have_o when settting combine_inputs.
16576 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16578 * regrename.c: Add general comment describing the pass.
16579 (struct du_head): Remove 'length' field.
16580 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16581 (regrename_optimize): Do not sort chains. Rework comments, add others.
16582 Force renaming to the preferred class (if any) in the first pass and do
16583 not consider registers that belong to it in the second pass.
16584 (create_new_chain): Do not set 'length' field.
16585 (scan_rtx_reg): Likewise.
16587 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16589 PR tree-optimization/47140
16590 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16591 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16592 to bit_value_binop.
16594 PR rtl-optimization/47028
16595 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16596 parm_birth_insn instead of at the beginning of first bb.
16598 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16600 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16601 Remove the word "see" before "@pxref".
16602 * doc/rtl.texi: Remove the word "see" before "@pxref".
16604 2011-01-01 Jan Hubicka <jh@suse.cz>
16606 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16609 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16612 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16615 Copyright (C) 2011 Free Software Foundation, Inc.
16617 Copying and distribution of this file, with or without modification,
16618 are permitted in any medium without royalty provided the copyright
16619 notice and this notice are preserved.