1 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
3 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
5 2011-06-03 Richard Henderson <rth@redhat.com>
6 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
9 (sigill_hdlr): Correct insn, insn size.
10 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
12 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
16 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
17 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
18 * config/mips/t-iris: Remove.
19 * config/mips/t-irix6: New file.
20 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
22 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24 * Makefile.in (LIB2ADDEHDEP): Remove.
25 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
26 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
27 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
28 * config/t-darwin (LIB2ADDEHDEP): Remove.
29 * config/t-freebsd (LIB2ADDEHDEP): Remove.
30 * config/t-linux (LIB2ADDEHDEP): Remove.
32 2011-06-03 Diego Novillo <dnovillo@google.com>
34 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
35 (lto_register_var_decl_in_symtab): Likewise.
36 (lto_register_function_decl_in_symtab): Likewise.
37 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
38 logic to uniquify_nodes.
40 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42 * config/alpha/t-osf5: Remove.
43 * config/alpha/t-osf-pthread: Remove.
44 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
45 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
47 2011-06-03 Julian Brown <julian@codesourcery.com>
49 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
50 (strongarm1110): Use strongarm tuning.
51 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped
53 * config/arm/arm.c (arm_strongarm_tune): New.
54 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
55 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
56 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
57 setting, using previous defaults or 1 for Cortex-A5.
58 (arm_option_override): Set max_insns_skipped from current tuning.
60 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
62 * doc/install.texi (Options specification): Document --with-specs.
64 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
66 * config/arm/neon.md (orndi3_neon): Actually split it.
68 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
70 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
71 * var-tracking.c (reverse_op): Limite recurse depth to 5.
73 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
76 * target.def (delay_sched2, delay_vartrack): New.
77 * doc/tm.texi.in: Update.
78 * doc/tm.texi: Rebuild.
79 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
80 * var-tracking.c (gate_handle_var_tracking): Likewise.
81 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
82 (bfin_flag_var_tracking): Drop.
83 (output_file_start): Don't save and override flag_var_tracking.
84 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
85 (bfin_reorg): Test original variables.
86 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
87 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
88 (ia64_flag_var_tracking): Drop.
89 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
90 (ia64_file_start): Don't save and override flag_var_tracking.
91 (ia64_override_options_after_change): Ditto
92 flag_schedule_insns_after_reload.
93 (ia64_reorg): Test original variables.
94 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
95 (picochip_flag_var_tracking): Drop.
96 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
97 (picochip_option_override): Don't save and override
98 flag_schedule_insns_after_reload.
99 (picochip_asm_file_start): Ditto flag_var_tracking.
100 (picochip_reorg): Test original variables.
101 * config/spu/spu.c (spu_flag_var_tracking): Drop.
102 (TARGET_DELAY_VARTRACK): Define.
103 (spu_var_tracking): New.
104 (spu_machine_dependent_reorg): Call it.
105 (asm_file_start): Don't save and override flag_var_tracking.
107 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
110 * config/sh/predicates.md (general_movsrc_operand): Return 0
111 for memory and memory subreg of which address is an invalid
112 indexed address for QI and HImode.
113 (general_movdst_operand): Likewise.
115 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
117 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
118 edges only, when there is a non-local label in the function.
119 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
121 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
123 * config/i386/constraints.md (Y3): New register constraint.
124 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
125 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
126 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
127 *sse2_interleave_lowv2df.
129 2011-06-02 Julian Brown <julian@codesourcery.com>
131 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
132 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
133 (arm_cortex_a5_tune): New.
135 2011-06-02 Julian Brown <julian@codesourcery.com>
137 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
138 * config/arm/arm.c (arm_default_branch_cost): New.
139 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
140 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
141 (arm_fa726_tune): Set branch_cost field using
142 arm_default_branch_cost.
143 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
144 current_tune structure.
145 * dojump.c (tm_p.h): Include file.
147 2011-06-02 Julian Brown <julian@codesourcery.com>
149 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
151 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
152 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
153 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
155 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
156 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
157 (arm_fa726te_tune): Add prefer_constant_pool setting.
158 (arm_v6t2_tune, arm_cortex_tune): New.
159 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
160 prefer_constant_pool setting.
162 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
164 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
166 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
167 (*movdf_internal) <case 6,7,8>: Ditto.
169 * config/i386/constraints.md (Y4): New register constraint.
170 * config/i386/sse.md (vec_set<mode>_0): Merge with
171 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
172 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
173 *vec_extractv2di_1_sse.
174 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
175 and *vec_concatv2di_rex64_sse.
177 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
180 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
181 of cgraph_local_info for null before attempting to use it.
183 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
185 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
186 (current_function_dynamic_alloc_count): Delete.
187 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
188 (expand_builtin_nonlocal_goto): Remove obsolete comment.
189 (expand_builtin_update_setjmp_buf): Remove dead code.
190 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
191 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
193 * function.c (instantiate_virtual_regs): Likewise.
194 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
195 for a block with a single abnormal incoming edge.
196 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
197 (SETJMP_VIA_SAVE_AREA): Delete.
198 * config/sparc/sparc-protos.h (load_got_register): Declare.
199 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
200 (load_got_register): Make global.
201 (sparc_frame_pointer_required): Add 'static'.
202 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
203 (sparc_builtin_setjmp_frame_value): New function.
204 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
205 (save_stack_nonlocal): New expander.
206 (restore_stack_nonlocal): Likewise.
207 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
208 (nonlocal_goto_internal): New insn.
209 (goto_handler_and_restore): Delete.
210 (builtin_setjmp_setup): Likewise.
211 (do_builtin_setjmp_setup): Likewise.
213 (builtin_setjmp_receiver): New expander.
215 2011-06-01 David Li <davidxl@google.com>
218 * tree-pretty-print.c (dump_function_header): Format cleanup.
220 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
223 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
224 needed when original operands are used for msw_skip comparison.
226 2011-06-01 Jakub Jelinek <jakub@redhat.com>
229 * var-tracking.c (add_uses, add_stores): Don't call
230 cselib_subst_to_values on ENTRY_VALUE.
232 2011-06-01 Diego Novillo <dnovillo@google.com>
234 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
235 output_record_start with LTO_null instead of output_zero.
236 (lto_output_ts_binfo_tree_pointers): Likewise.
237 (lto_output_tree): Likewise.
238 (output_eh_try_list): Likewise.
239 (output_eh_region): Likewise.
240 (output_eh_lp): Likewise.
241 (output_eh_regions): Likewise.
242 (output_bb): Likewise.
243 (output_function): Likewise.
244 (output_unreferenced_globals): Likewise.
245 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
246 instead of NUM_TREE_CODES.
247 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
248 (lto_output_int_in_range): Change << to >> when shifting VAL.
250 2011-06-01 Diego Novillo <dnovillo@google.com>
252 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
253 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
255 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
258 * optabs.h (valid_multiword_target_p): Declare.
259 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
260 doing multi-word operations.
261 * optabs.c (expand_binop): Likewise.
262 (expand_doubleword_bswap): Likewise.
263 (expand_absneg_bit): Likewise.
264 (expand_unop): Likewise.
265 (expand_copysign_bit): Likewise.
266 (multiword_target_p): New function.
268 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
270 PR rtl-optimization/48830
271 PR rtl-optimization/48808
272 PR rtl-optimization/48792
273 * reload.c (push_reload): Check contains_reg_of_mode.
274 * reload1.c (strip_paradoxical_subreg): New function.
275 (gen_reload_chain_without_interm_reg_p): Use it to handle
277 (emit_output_reload_insns, gen_reload): Likewise.
279 2011-06-01 David Li <davidxl@google.com>
281 * predict.c : Change pass name
284 * tree-profile.c: Ditto.
287 2011-06-01 David Li <davidxl@google.com>
289 * tree-pretty-print.c (dump_function_header): New function.
290 * final.c (rest_of_clean_state): Use header dumper.
291 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
292 * passes.c (pass_init_dump_file): Use header dumper.
294 2011-06-01 Jakub Jelinek <jakub@redhat.com>
296 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
297 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
298 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
300 (mem_loc_descriptor): Use them.
302 * var-tracking.c (create_entry_value): New function.
303 (vt_add_function_parameter): Use it.
305 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
307 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
308 Include <signal.h>, <ucontext.h>.
309 (sigill_caught): Define.
310 (sigill_hdlr): New function.
311 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
312 insns can be executed.
313 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
314 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
316 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
318 * config/t-slibgcc-darwin: Move to ...
319 * config/t-slibgcc-dummy: ... this. Clarify comments.
320 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
321 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
322 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
323 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
324 Remove i386/t-crtstuff from tmake_file.
325 (i[34567]86-*-solaris2*): Remove t-svr4,
326 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
328 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
329 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
330 sparc/t-crtfm from tmake_file.
331 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
332 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
334 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
335 * config/i386/t-nwld (SHLIB_LINK): Remove.
336 * config/i386/t-rtems-i386: Rename to ...
337 * config/i386/t-rtems: ... this.
338 ($(T)crti.o, $(T)crtn.o): Remove.
339 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
340 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
341 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
342 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
343 EXTRA_MULTILIB_PARTS): Remove.
344 * config/sparc/t-sol2-64: Likewise.
345 * config/sparc/t-sol2: Remove.
346 * config/sparc/t-crtin: Remove.
347 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
348 * config/i386/gmon-sol2.c: Remove.
349 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
350 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
351 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
352 * config/i386/sol2-gc1.asm: Remove.
353 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
354 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
355 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
356 * config/t-slibgcc-sld: Remove.
358 2011-06-01 Jakub Jelinek <jakub@redhat.com>
360 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
361 base_type_for_mode with op_mode instead of mode.
363 2011-06-01 Paul Brook <paul@cpodesourcery.com>
365 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
367 * config/arm/arm-tune.md: Regenerate.
368 * config/arm/arm-tables.opt: Regenerate.
369 * config/arm/arm.c (FL_DIV): Rename...
370 (FL_THUMB_DIV): ... to this.
371 (FL_ARM_DIV): Define.
372 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
373 (arm_arch_hwdiv): Remove.
374 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
375 (arm_issue_rate): Add cortexr5.
376 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
377 __ARM_ARCH_EXT_IDIV__.
378 (TARGET_IDIV): Define.
379 (arm_arch_hwdiv): Remove.
380 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
381 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
382 (divsi3, udivsi3): New patterns.
383 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
384 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
386 2011-06-01 Martin Jambor <mjambor@suse.cz>
388 * ipa-utils.c (ipa_dfs_info): New field scc_no.
389 * ipa-utils.c (searchc): Set scc_no.
391 2011-06-01 Martin Jambor <mjambor@suse.cz>
393 * ipa-utils.c (searchc_env): New field allow_overwritable.
394 (searchc): do not ignore edges to overwritable nodes if indicated
395 by env->allow_overwritable.
396 (ipa_reduced_postorder): Set env.allow_overwritable.
398 2011-06-01 Richard Guenther <rguenther@suse.de>
400 * tree.c (free_lang_data): Do not reset boolean_type_node nor
402 * lto-streamer.c (lto_record_common_node): Take node pointer,
403 do not register types.
404 (lto_preload_common_nodes): Explicitly skip preloading nodes
405 that differ between frontends.
407 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
409 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
412 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
414 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
415 parameter value for dump. Dump cost on outermost call only.
416 (rs6000_memory_move_cost): Dump cost on outermost call only.
418 2011-05-31 Jakub Jelinek <jakub@redhat.com>
420 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
421 DW_OP_GNU_convert ops.
423 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
424 cselib_preserve_constants.
425 (cselib_lookup_1): If cselib_preserve_constants,
426 a new VALUE is being created for REG and there is a VALUE for the
427 same register in wider mode, add another loc with lowpart SUBREG of
429 (cselib_subst_to_values): Handle ENTRY_VALUE.
430 * var-tracking.c (replace_expr_with_values): Return NULL for
432 * dwarf2out.c (convert_descriptor_to_signed): New function.
433 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
434 instead of two shifts.
435 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
436 the right mode if needed.
437 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
438 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
439 convert_descriptor_to_signed.
440 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
441 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
444 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
446 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
448 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
449 of X87MODEI12 and SWI48x instead of SSEMODEI24.
450 (SWI248x): New mode iterator, rename from X87MODEI.
451 (X87MODEI): Remove mode iterator.
455 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
457 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
458 * doc/invoke.texi: Document max-vartrack-expr-depth.
459 * var-tracking.c (EXPR_DEPTH): New.
460 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
462 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
464 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
465 * config/i386/sse.md: Add n to negated FMA pattern names.
467 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
469 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
471 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
473 * gengtype-state.c (read_state_params_structs): Initialize previous.
475 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
477 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
478 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
480 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
482 * config/i386/i386.md (*movtf_internal): Avoid allocating general
483 registers. Penalize F*r->o alternative to prevent partial memory
484 stalls. Slightly penalize *roF->*r alternative. Generate SSE
485 CONST_DOUBLE immediates when optimizing function for size. Do not move
486 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
487 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
488 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
489 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
491 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
493 (fp_register_operand splitters): Use fp_register_operand
494 constraint. Do not use FP_REG_P in insn condition.
495 (any_fp_register_operand splitters): Use any_fp_register_operand
496 constraint. Do not use ANY_FP_REG_P in insn condition.
498 2011-05-31 Jan Hubicka <jh@suse.cz>
500 * cgraph.h (cgraph_inline_failed_t): Give enum a name
501 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
502 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
503 (lto_output_edge): Use output_enum and var_len_unsigned.
504 (lto_output_varpool_node): Likewise.
505 (input_overwrite_node): Do not take resolution parameter;
506 extract it from a bitpack.
507 (input_node): Do not read resolution; use input_enum and
509 (input_varpool_node): Likewise.
510 (input_edge): Likewise.
511 (input_cgraph_1): Likewise.
513 2011-05-31 Richard Guenther <rguenther@suse.de>
515 * gimple.c (gimple_register_canonical_type): Do not register
516 any types via gimple_register_type.
518 2011-05-31 Jan Hubicka <jh@suse.cz>
520 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
523 2011-05-31 Jakub Jelinek <jakub@redhat.com>
525 PR rtl-optimization/49235
526 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
527 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
529 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
531 PR tree-optimization/49093
532 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
535 2011-05-31 Dodji Seketeli <dodji@redhat.com>
538 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
539 for concrete functions containing the code of cloned functions.
541 2011-05-31 Richard Guenther <rguenther@suse.de>
543 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
545 (forward_propagate_into_comparison_1): ... this.
546 (forward_propagate_comparison): Rename to ...
547 (forward_propagate_into_comparison): ... this. Split out
548 real forward propagation code to ...
549 (forward_propagate_comparison): ... this.
550 (forward_propagate_into_gimple_cond): Remove looping.
551 (forward_propagate_into_cond): Likewise.
552 (simplify_not_neg_expr): Return whether we have done something.
553 (simplify_gimple_switch): Likewise.
554 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
555 (ssa_forward_propagate_and_combine): ... this. Re-structure
556 to do a forward forward-propagation walk on BBs and a backward
557 stmt combining walk on BBs. Consistently re-scan changed statements.
558 (pass_forwprop): Adjust.
560 2011-05-30 Ian Lance Taylor <iant@google.com>
562 * godump.c (go_format_type): Correct length of name added to
563 obstack for anonymous field.
565 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
568 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
569 part of the second operand is 0.
571 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
573 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
574 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
575 to memory for !TARGET_MEMORY_MISMATCH_STALL.
576 (*movdf_internal_rex64): Do not penalize F->r alternative.
577 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
578 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
579 when optimizing function for size. Do not move CONST_DOUBLEs
580 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
581 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
582 SUBREGs. Do not check for MEM_P operands in the insn condition,
583 check for ANY_FP_REGNO_P instead.
584 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
585 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
587 * config/i386/i386.c (ix86_option_override_internal): Do not
588 set TARGET_INTEGER_DFMODE_MOVES here.
590 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
593 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
595 2011-05-30 Jakub Jelinek <jakub@redhat.com>
597 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
598 DW_TAG_rvalue_reference_type even for
599 -gdwarf-4 -fno-debug-types-section.
601 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
603 PR tree-optimization/46728
604 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
605 (build_and_insert_binop): New.
606 (gimple_expand_builtin_pow): Reorder args for
607 build_and_insert_call; use build_and_insert_binop; add more
608 optimizations for fractional exponents.
610 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
615 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
617 * tree.h (struct tree_identifier): Inherit from tree_typed, not
619 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
620 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
621 TS_BASE instead of TS_COMMON.
622 * varasm.c (assemble_name): Remove assert.
624 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
626 * config.gcc: Keep obselete list sorted.
628 2011-05-30 Jakub Jelinek <jakub@redhat.com>
629 Eric Botcazou <ebotcazou@adacore.com>
631 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
632 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
633 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
634 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
635 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
637 2011-05-30 Richard Guenther <rguenther@suse.de>
639 * gimple.c (gimple_types_compatible_p_1): Compare record
640 and union type members properly.
642 2011-05-30 Richard Guenther <rguenther@suse.de>
644 PR tree-optimization/49210
645 * ipa-split.c (split_function): Care for the case where the call
646 result is not trivially convertible to the result holding variable.
648 2011-05-30 Richard Guenther <rguenther@suse.de>
650 PR tree-optimization/49218
651 * tree-vrp.c (adjust_range_with_scev): Properly check whether
654 2011-05-30 Richard Guenther <rguenther@suse.de>
656 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
657 New function split out from ...
658 (forward_propagate_into_gimple_cond): ... here. Adjust.
659 (forward_propagate_into_cond): Likewise.
660 (forward_propagate_comparison): Also propagate into
661 comparisons on assignment RHS. Change return value to
662 behave similar to forward_propagate_into_cond.
663 (tree_ssa_forward_propagate_single_use_vars): Handle
664 strict-overflow warnings properly for forward_propagate_comparison.
666 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
668 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
670 * configure: Regenerate.
672 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
674 PR tree-optimization/49199
675 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
676 non-reduction operands are either defined in the loop or by induction.
678 2011-05-29 Xinliang David Li <davidxl@google.com>
680 * opts-global.c (handle_common_deferred_options): Handle new options.
681 * passes.c (register_one_dump_file): Call register_pass_name.
682 (execute_one_pass): Check explicit enable/disable flag.
683 (passr_hash): New function.
685 (register_pass_name): Ditto.
686 (get_pass_by_name): Ditto.
689 (enable_pass): Ditto.
690 (disable_pass): Ditto.
691 (is_pass_explicitly_enabled_or_disabled): Ditto.
693 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
695 * config/i386/i386.md (*movoi_internal_avx): Use
696 standard_sse_constant_opcode for alternative 0.
697 (*movti_internal_sse): Ditto.
698 (*movti_internal_rex64): Use standard_sse_constant_opcode for
700 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
702 (*movsi_internal): Ditto.
703 (*movdi_internal): Ditto. Add ssecvt type moves.
705 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
708 * rtlanal.c (simplify_subreg_regno): Adjust comment.
710 2011-05-29 Jakub Jelinek <jakub@redhat.com>
712 PR rtl-optimization/49095
713 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
714 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
716 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
719 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
720 recurse_p argument. Only follow register copies if it is set,
721 and prevent mips_find_pic_call_symbol from recursing.
722 (mips_find_pic_call_symbol): Add a recurse_p argument.
723 Pass it to mips_pic_call_symbol_from_set.
724 (mips_annotate_pic_calls): Update accordingly.
726 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
728 * emit-rtl.c (try_split): Use a loop to search for
729 NOTE_INSN_CALL_ARG_LOCATIONs.
731 2011-05-29 Richard Guenther <rguenther@suse.de>
733 PR tree-optimization/49217
734 * ipa-pure-const.c (propagate_pure_const): Fix typos.
736 2011-05-28 Jan Hubicka <jh@suse.cz>
738 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
740 (string_slot_free): Remove
741 (create_output_block): Initialize obstack.
742 (destroy_output_block): Free obstack.
743 (lto_string_index): Add PERSISTENT parameter; do not duplicate
744 the string unless it needs to be added into the hash.
745 (lto_output_string_with_length): Add persistent attribute;
747 (lto_output_string): Add PERSISTENT parameter.
748 (output_string_cst, output_identifier): Simplify.
749 (lto_output_location_bitpack): Update.
750 (lto_output_builtin_tree): Update.
751 * lto-streamer.h (struct output_block): Add obstack.
752 (lto_output_string, lto_output_string_with_length): Remove
753 declarations; functions are static now.
755 2011-05-28 Jan Hubicka <jh@suse.cz>
757 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
758 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
759 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
760 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
761 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
762 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
763 unpack_ts_decl_with_vis_value_fields,
764 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
765 lto_get_builtin_tree): Use enum and variable length i/o.
766 * basic-block.h (profile_status_d): Add PROFILE_LAST.
767 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
769 (bp_pack_enum, bp_unpack_enum): New macros.
771 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
773 * genrecog.c: Remove redundant forward declarations.
775 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
777 * config.gcc: Deprecate mips*-*-openbsd*.
779 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
782 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
785 2011-05-27 Andrew Pinski <pinskia@gmail.com>
788 * gengtype.c (vec_prefix_type): New function.
789 (note_def_vec): Use vec_prefix_type and change the length
790 attribute to be based on the prefix.
791 * vec.c: Include coretypes.h before vec.h.
792 (struct vec_prefix): Remove.
793 (vec_gc_p_reserve): Change the offsetof to sizeof.
794 (vec_gc_p_reserve_exact): Likewise.
795 (vec_heap_p_reserve): Likewise.
796 (vec_heap_p_reserve_exact): Likewise.
797 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
798 (vec_stack_p_reserve): Change the offsetof to sizeof.
799 (vec_stack_p_reserve_exact): Likewise.
800 * vec.h (struct vec_prefix): New struct definition.
801 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
802 (VEC_T_GTY(T,B)): Likewise.
803 (DEF_VEC_FUNC_P(T)): Use prefix field.
804 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
805 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
807 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
809 PR tree-optimization/46728
810 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
811 (powi_as_mults): Add gimple_set_location.
812 (build_and_insert_call): New.
813 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
814 0.5, 0.25, 0.75, 1./3., or 1./6.
816 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
818 * doc/contrib.texi: Update copyright years.
819 (Contributors): Add Zdenek Sojka.
821 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
823 * c-decl.c (c_push_function_context): Copy the current statement
825 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
826 (finish_struct): Call building_stmt_list_p instead of checking
828 * c-parser.c (c_parser_postfix_expression): Likewise.
829 * c-typeck.c (c_end_compound_stmt): Likewise.
830 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
831 * tree-iterator.c (stmt_list_cache): Change to a VEC.
832 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
833 (free_stmt_list): Likewise.
834 * tree.h (struct tree_statement_list): Include typed_tree instead
836 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
837 as TS_TYPED instead of TS_COMMON.
839 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
840 Uros Bizjak <ubizjak@gmail.com>
842 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
843 (HAVE_AS_IX86_TLSGDPTL): Define.
844 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
845 (HAVE_AS_IX86_TLSLDMPLT): Define.
846 * configure: Regenerate.
847 * config.in: Regenerate.
848 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
849 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
850 TARGET_SUN_TLS, use @tlsgdplt or @plt.
851 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
852 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
854 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
856 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
858 * sched-int.h (struct _haifa_deps_insn_data): New members cond
860 (INSN_COND, INSN_REVERSE_COND): New macros.
861 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
863 (sched_get_condition_with_rev): Cache the results, and look them up
865 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
866 are clobbered by the current insn.
867 * target.def (exposed_pipline): New sched data hook.
868 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
869 * doc/tm.texi: Regenerate.
871 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
873 PR tree-optimization/49170
874 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
877 2011-05-27 Richard Guenther <rguenther@suse.de>
880 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
883 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
885 * haifa-sched.c (sched_scan_info): Remove.
886 (schedule_block): Call sched_extend_luids rather than sched_init_luids
888 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
890 (sched_scan): Remove.
891 (sched_extend_luids): Renamed from luids_extend_insn and no longer
892 static. All callers changed.
893 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
894 static. All callers changed.
895 (sched_init_luids): Remove all arguments except the first. All
896 callers changed. Don't use sched_scan.
897 (haifa_init_h_i_d): Likewise.
898 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
899 manually rather than using sched_init_luids. Likewise with
900 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
901 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
902 rather than sched_init_luids with NULL args.
903 * sel-sched-ir.c (new_insns): Remove variable.
904 (sched_scan): New static function, previously in haifa-sched.c. Remove
905 all arguments but the first two; all callers changed.
906 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
907 rather than sched_init_luids.
908 (sel_init_bbs): Remove second argument. All callers changed.
909 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
911 (create_insn_rtx_from_pattern): Likewise.
912 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
913 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
914 (sched_init_insn_luid, sched_extend_luids): Declare.
915 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
918 2011-05-27 Richard Guenther <rguenther@suse.de>
921 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
922 A CMP B ? (T) true : (T) false for non-integral types T again.
924 2011-05-27 Jan Hubicka <jh@suse.cz>
926 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
927 so 0 means NULL string.
928 (lto_output_string_with_length): ... here.
929 (lto_output_string, output_string_cst, output_identifier): Update
930 handling of NULL strings.
931 (lto_output_location_bitpack): New function.
932 (lto_output_location): Use it.
933 (lto_output_tree_ref): Use output_record_start.
934 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
936 * lto-streamer-in.c (string_for_index): Break out from ...; offset
938 (input_string_internal): ... here;
939 (input_string_cst, input_identifier, lto_input_string): Update handling
941 (lto_input_location_bitpack): New function
942 (lto_input_location): Use it.
943 (unpack_ts_type_common_value_fields): Pack align & alias in var len
945 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
946 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
947 (bp_pack_value): Sanity check the value range.
948 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
950 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
953 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
955 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
956 call_arg_location instructions down the floor.
958 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
960 PR rtl-optimization/49154
961 * ira.c (setup_pressure_classes): Process class without sublcasses
962 as a candidate for pressure classes.
964 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
966 PR rtl-optimization/48575
967 * genrecog.c (position_type): New enum.
968 (position): New structure.
969 (decision): Use position structure instead of a string.
970 (root_pos, peep2_insn_pos_list): New variables.
971 (next_position, compare_positions): New functions.
972 (new_decision): Use position structures instead of strings.
973 (maybe_both_true): Likewise.
974 (change_state): Likewise.
975 (write_tree): Likewise.
976 (make_insn_sequence): Likewise.
978 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
980 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
981 TS_BASE instead of TS_COMMON.
982 (find_decls_types_r): Check for TS_TYPED structure before looking at
984 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
986 (BLOCK_CHAIN): Use new chain field.
988 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
990 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
991 moves expensive on Power7 also.
993 2011-05-26 Richard Guenther <rguenther@suse.de>
995 * fold-const.c (fold_unary_loc): Remove bogus code.
997 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
999 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1001 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1002 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1003 TS_BASE instead of TS_COMMON.
1004 * varasm.c (assemble_name): Remove assert.
1006 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1008 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1010 * libgcc-std.ver: Delete file.
1012 2011-05-26 Richard Guenther <rguenther@suse.de>
1014 PR tree-optimization/48702
1015 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1016 only when we know the base address is within bounds.
1017 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1018 assume the base address of TARGET_MEM_REFs is in bounds.
1020 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1023 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1024 declaration in TARGET_SOLARIS.
1026 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1028 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1029 The instruction is then expanded explicitly.
1030 (supported_compare): Callable instruction.
1031 (compare): Likewise.
1033 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1036 * gimplify.c (shortcut_cond_r): Don't special case
1037 COND_EXPRs if they have void type on one of their arms.
1039 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1041 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1042 to reduce duplication, and to achieve a slightly more logical order
1045 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1047 PR tree-optimization/49161
1048 * tree-vrp.c (struct case_info): New type.
1049 (compare_case_labels): Sort case_info structs instead of
1050 trees, and not primarily by CASE_LABEL uids but by
1051 label_for_block indexes.
1052 (find_switch_asserts): Put case labels into struct case_info
1053 array instead of TREE_VEC, adjust sorting, compare label_for_block
1054 values instead of CASE_LABELs.
1056 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1058 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1059 ("orndi3_neon"): Likewise.
1060 ("bic<mode>3_neon"): Likewise.
1062 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1064 PR tree-optimization/49038
1065 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1066 Ensure at least one epilogue iteration if required by data
1068 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1069 to mark loops that require peeling for gaps.
1070 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1071 (vect_get_known_peeling_cost): Take peeling for gaps into
1073 (vect_transform_loop): Generate epilogue if required by data
1075 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1076 loop as requiring an epilogue if there are gaps in the end of
1079 2011-05-25 Ian Lance Taylor <iant@google.com>
1081 * godump.c (go_format_type): Output the first field with a usable
1084 2011-05-25 Ian Lance Taylor <iant@google.com>
1086 * godump.c (go_format_type): Check for invalid type names, pointer
1087 target types, and struct field types.
1089 2011-05-25 Jason Merrill <jason@redhat.com>
1091 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1093 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1095 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1097 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1099 * config/i386/i386.md (*movqi_extv_1)): Put back
1100 "register_operand" check in "type" calculation.
1101 (*movqi_extzv_2): Likewise.
1103 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1105 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1107 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1110 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1111 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1112 __divxc3, __divtc3): Wrap definitions in #ifndef.
1114 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1117 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1118 "register_operand" check and replace q_regs_operand with
1119 QIreg_operand in "type" calculation.
1120 (*movqi_extv_1): Likewise.
1121 (*movqi_extzv_2_rex64): Likewise.
1122 (*movqi_extzv_2): Likewise.
1124 * config/i386/predicates.md (QIreg_operand): New.
1126 2011-05-25 Richard Guenther <rguenther@suse.de>
1128 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1129 type-based offset disambiguation, streamline MEM_REF and
1130 TARGET_MEM_REF handling.
1132 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1134 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1135 (bdesc_special_args): Add pause intrinsic.
1137 * config/i386/i386.md (UNSPEC_PAUSE): New.
1140 * config/i386/ia32intrin.h (__pause): Likewise.
1142 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1145 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1147 PR tree-optimization/46728
1148 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1149 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1151 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1153 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1154 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1155 instead of TS_COMMON.
1157 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1159 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1160 LIBGCC2_GNU_PREFIX is defined.
1162 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1163 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1164 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1165 __clz_tab): Define using __N.
1166 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1167 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1168 * target.def (libfunc_gnu_prefix): New hook.
1169 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1170 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1171 * doc/tm.texi: Regenerate.
1172 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1173 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1175 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1176 (init_optabs): Likewise for the bswap libfuncs.
1177 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1179 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1180 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1181 * libgcc-std.ver: Remove.
1182 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1183 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1185 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1186 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1187 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1188 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1189 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1190 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1191 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1192 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1193 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1194 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1196 2011-05-25 Jan Hubicka <jh@suse.cz>
1198 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1199 (lto_output_tree): Use output_record_start.
1200 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1201 (lto_get_pickled_tree): Use input_record_start.
1202 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1203 (lto_value_range_error): New function.
1204 * lto-streamer.h (lto_value_range_error): Declare.
1205 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1206 (lto_output_enum, lto_input_enum): New macros.
1208 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1210 * common.opt (flag_stack_usage_info): New variable.
1211 (-Wstack-usage): New option.
1212 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1213 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1214 <OPT_fstack_usage>: Likewise.
1215 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1216 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1217 of flag_stack_usage.
1218 (emit_library_call_value_1): Likewise.
1219 * explow.c (allocate_dynamic_stack_space): Likewise.
1220 * function.c (instantiate_virtual_regs ): Likewise.
1221 (prepare_function_start): Likewise.
1222 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1223 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1224 * config/arm/arm.c (arm_expand_prologue): Likewise.
1225 (thumb1_expand_prologue): Likewise.
1226 * config/avr/avr.c (expand_prologue): Likewise.
1227 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1228 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1229 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1230 * config/mips/mips.c (mips_expand_prologue): Likewise.
1231 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1232 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1233 * config/s390/s390.c (s390_emit_prologue): Likewise.
1234 * config/sh/sh.c (sh_expand_prologue): Likewise.
1235 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1236 * config/spu/spu.c (spu_expand_prologue): Likewise.
1238 2011-05-25 Richard Guenther <rguenther@suse.de>
1240 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1241 (gimple_canonical_types_compatible_p): Likewise.
1243 2011-05-25 Jan Hubicka <jh@suse.cz>
1246 * ipa.c (function_and_variable_visibility): Only add to same
1247 comdat group list if DECL_ONE_ONLY.
1249 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1251 PR rtl-optimization/49014
1252 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1254 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1257 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1259 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1261 PR rtl-optimization/48757
1262 * ira-build.c (loop_with_eh_edge_p): Rename to
1263 loop_with_complex_edge_p, check edges on complexity, make function
1265 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1268 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1270 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1271 force flag_ira_share_save_slots to 0.
1273 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1275 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1276 (vt_initialize): Set PROLOGUE_BB unconditionally.
1277 Add block comment about CFA_BASE_RTX machinery.
1278 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1279 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1281 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1284 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1285 parsing of syntax error in ObjC instance variable lists. In
1286 particular, avoid an infinite loop if there is a stray ']'.
1287 Updated error message.
1289 2011-05-24 Ian Lance Taylor <iant@google.com>
1291 * godump.c (go_define): Don't accept a string immediately after
1294 2011-05-24 Ian Lance Taylor <iant@google.com>
1296 * godump.c (struct godump_container): Add invalid_hash field.
1297 (go_format_type): Return false if type is found in invalid_hash.
1298 (go_output_typedef): Add invalid type to invalid_hash.
1299 (go_finish): Create and delete invalid_hash.
1301 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1303 PR tree-optimization/46728
1304 * tree-ssa-math-opts.c (powi_table): New.
1305 (powi_lookup_cost): New.
1307 (powi_as_mults_1): New.
1308 (powi_as_mults): New.
1309 (gimple_expand_builtin_powi): New.
1310 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1311 (gate_cse_sincos): Remove sincos/cexp restriction.
1313 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1316 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1318 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1319 * mips-tdump.c: Likewise.
1321 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1324 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1325 add -mno-XXX. Handle FMA.
1327 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1329 PR rtl-optimization/48633
1330 * ira-build.c (loop_with_eh_edge_p): New function.
1331 (mark_loops_for_removal): Use it.
1333 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1335 PR rtl-optimization/48971
1336 * ira.c (setup_pressure_classes): Don't check register move cost
1337 for classes with one registers. Don't add pressure class if there
1338 is a pressure class with the same available hard registers.
1339 Check contains_reg_of_mode. Fix a typo in collecting
1340 temp_hard_regset. Ignore hard registers not belonging to a class.
1342 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1345 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1347 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1348 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1350 PR gcov-profile/48845
1351 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1353 2011-05-24 Richard Guenther <rguenther@suse.de>
1355 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1356 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1357 (gimple_types_compatible_p_1): Adjust.
1358 (iterative_hash_canonical_type): Do not bother about complete vs.
1360 (gimple_canonical_types_compatible_p): Likewise.
1362 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1364 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1366 2011-05-24 Richard Guenther <rguenther@suse.de>
1369 * gimple.c (gimple_register_canonical_type): Revert
1371 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1372 does not for a tree for the case where it matters. Cache
1373 pointer-type alias-sets.
1375 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1377 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1378 (OBJS): Remove options.o, opts-common.o and prefix.o.
1379 (OBJS-libcommon-target): New.
1380 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1381 (BACKEND): Include libcommon-target.a.
1382 (MOSTLYCLEANFILES): Include libcommon-target.a.
1383 (libcommon-target.a): New.
1384 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1387 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1389 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1390 parts of output shared with the driver.
1391 * optc-gen.awk: Don't generate parts of output not shared with the
1393 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1394 * doc/options.texi (SourcerInclude): Mention options-save.c.
1395 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1396 (OBJS): Add options-save.o.
1397 (options-save.c, options-save.o): New.
1398 (options.o): Update dependencies.
1399 (gcc-options.o): Remove.
1400 (mostlyclean): Remove options-save.c.
1402 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1405 * dbxout.c: Include cgraph.h.
1406 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1407 and without value expr, return NULL if no varpool node exists for
1408 it or if it is not needed.
1409 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1412 * c-decl.c (start_decl): Convert expr to void_type_node.
1414 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1416 PR rtl-optimization/48826
1417 * emit-rtl.c (try_split): When splitting a call that is followed
1418 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1420 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1422 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1423 parameters passed in memory prefer using DECL_INCOMING_RTL over
1424 the pseudos it will be copied into.
1426 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1429 * config/i386/i386.c (ix86_option_override_internal): Save the
1430 initial options after checking vzeroupper.
1432 2011-05-23 David Li <davidxl@google.com>
1434 PR tree-optimization/48988
1435 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1436 Initialize has_valid_pred for each pred chain.
1438 2011-05-23 Richard Guenther <rguenther@suse.de>
1440 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1441 (iterative_hash_gimple_type): Always hash type names.
1443 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1445 * c-typeck.c (build_function_call_vec): Tweak call to
1446 check_function_arguments.
1448 2011-05-23 Richard Guenther <rguenther@suse.de>
1450 PR tree-optimization/49115
1451 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1452 is not necessarily carried out, do not claim it kills the ref.
1453 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1455 2011-05-23 Richard Guenther <rguenther@suse.de>
1458 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1459 what pointer types we accept for folding.
1461 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1463 * gthr-gnat.c: Remove.
1464 * gthr-gnat.h: Remove.
1465 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1466 * config/t-freebsd (LIB2ADDEH): Likewise.
1467 * config/t-linux (LIB2ADDEH): Likewise.
1468 * config/t-sol2 (LIB2ADDEH): Likewise.
1469 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1470 * configure.ac (target_thread_file): Remove gnat handling.
1471 * configure: Regenerate.
1472 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1474 2011-05-23 Tristan Gingold <gingold@adacore.com>
1475 Eric Botcazou <ebotcazou@adacore.com>
1477 * gcov.c (create_file_names): If no object directory is specified,
1478 keep the directory of the file.
1480 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1482 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1483 * configure: Regenerate.
1485 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1488 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1489 failed and the comparison has a single bit signed type, use
1490 constm1_rtx instead of const1_rtx for true value.
1491 (do_store_flag): If ops->type is single bit signed type, disable
1492 signel bit test optimization and pass -1 instead of 1 as last
1493 parameter to emit_store_flag_force.
1495 2011-05-23 Tom de Vries <tom@codesourcery.com>
1498 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1500 (infer_loop_bounds_from_undefined): Use new function.
1502 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1504 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1505 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1506 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1508 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1510 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1512 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1513 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1516 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1518 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1520 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1522 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1523 UNSPEC_MOVE_PIC pattern.
1525 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1527 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1528 (sparc-*-rtems*): Likewise.
1529 (sparc64-*-elf*): Likewise.
1530 (sparc64-*-rtems*): Likewise.
1531 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1532 * config/sparc/t-crtin: New file.
1533 * config/sparc/t-sol2 (crti.o): Delete rule.
1535 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1536 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1537 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1538 (ENDFILE_SPEC): Add crtn.o.
1540 2011-05-22 Tom de Vries <tom@codesourcery.com>
1543 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1544 CODE_CONTAINS_STRUCT (TS_COMMON).
1546 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1549 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1550 only after deciding which mode to use.
1552 2011-05-22 Tom de Vries <tom@codesourcery.com>
1555 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1556 for call to get_shiftadd_cost.
1558 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1561 * config/i386/cpuid.h (bit_MMXEXT): New define.
1563 2011-05-22 Nick Clifton <nickc@redhat.com>
1565 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1566 initialisation of non-existant args[2] element. Use args[] array
1567 not arg[] array to pass arguments to build_function_type_list.
1569 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1571 PR tree-optimization/49087
1572 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1574 2011-05-21 Jason Merrill <jason@redhat.com>
1577 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1578 static storage duration.
1580 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1582 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1585 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1587 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1588 false if there are call-saved registers here...
1589 (sparc_can_use_return_insn_p): ...but here instead.
1590 (save_or_restore_regs): Fix thinko.
1591 (sparc_expand_prologue): Use current_function_is_leaf.
1592 (sparc_frame_pointer_required): Likewise.
1594 2011-05-21 Nick Clifton <nickc@redhat.com>
1597 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1599 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1601 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1602 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1604 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1606 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1607 * optc-gen.awk: Move common code to opt-read.awk.
1608 * opth-gen.awk: Likewise.
1609 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1611 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1613 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1615 2011-05-20 Tom de Vries <tom@codesourcery.com>
1618 * tree-ssa-loop-ivopts.c: Include expmed.h.
1619 (get_shiftadd_cost): New function.
1620 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1622 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1625 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1626 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1628 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1630 * Makefile.in: Update comment referring to $(OBJS-common).
1632 2011-05-20 Ian Lance Taylor <iant@google.com>
1634 * godump.c (go_output_typedef): Put enum constants in the macro
1635 hash table to avoid duplicate Go const definitions.
1637 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1639 * Makefile.in (LIBDEPS): Add libcommon.a.
1641 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1642 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1643 pretty-print.o and version.o.
1644 (OBJS-libcommon): New.
1645 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1646 (BACKEND): Add libcommon.a.
1647 (MOSTLYCLEANFILES): Likewise.
1649 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1650 (cpp$(exeext)): Likewise.
1651 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1652 pretty-print.o and input.o.
1653 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1654 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1656 (mips-tfile): Don't explicitly use version.o.
1657 (mips-tdump): Likewise.
1658 (gcov.o): Depend on $(DIAGNOSTIC_H).
1659 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1660 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1661 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1662 * gcov-dump.c: Include intl.h and diagnostic.h.
1663 (main): Initialize diagnostics.
1664 * gcov.c: Include diagnostic.h.
1666 (main): Initialize diagnostics.
1667 * lto-wrapper.c: Include diagnostic.h.
1668 (main): Initialize diagnostics.
1670 2011-05-20 Michael Matz <matz@suse.de>
1672 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1674 2011-05-20 Michael Matz <matz@suse.de>
1675 Richard Guenther <rguenther@suse.de>
1677 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1678 use lto_streamer_cache_append directly instead of returning a VEC.
1679 (preload_common_node): Remove.
1680 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1682 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1684 2011-05-20 Richard Guenther <rguenther@suse.de>
1686 PR tree-optimization/49079
1687 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1688 MEM_REFs correctly for the trailing array access detection.
1689 Special case constants the same way as decls for overall size
1692 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1694 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1697 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1699 PR tree-optimization/49073
1700 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1701 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1702 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1704 2011-05-20 Richard Guenther <rguenther@suse.de>
1707 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1708 of pointer types the same way the middle-end does.
1710 2011-05-20 Richard Guenther <rguenther@suse.de>
1712 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1713 or pointer-to chains. Delay all fixup to uniquify_nodes.
1715 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1717 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1718 (fma4_fmaddsub): Likewise
1720 2011-05-19 Jan Hubicka <jh@suse.cz>
1722 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1723 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1724 (type_pair_cache): New static var.
1725 (lookup_type_pair): Use fixed sized custom hash; make inline.
1726 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1727 calls of lookup_type_pair.
1728 (print_gimple_types_stats): Remove cache stats.
1729 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1732 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1734 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1735 when TARGET_RDRND is active.
1736 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1737 Generate dummy SImode target register when target is NULL.
1739 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1741 * config/arm/arm-fpus.def: New.
1742 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1744 * config/arm/arm-tables.opt: Regenerate.
1745 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1746 (arm_option_override): Don't decode FPU name to string here.
1747 * config/arm/arm.opt (mfpu=): Use Enum.
1748 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1749 Update dependencies.
1751 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1753 * collect2.c: Include diagnostic.h.
1754 (fatal_perror, fatal, error, fancy_abort): Remove.
1755 (main): Set progname. Call xmalloc_set_program_name and
1756 diagnostic_initialize.
1757 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1758 scan_libraries, resolve_lib_name): Call fatal_error instead of
1759 fatal and fatal_perror.
1760 * collect2.h (error, fatal, fatal_perror): Don't declare.
1761 * tlink.c: Include diagnostic-core.h.
1762 (recompile_files): Call fatal_error instead of fatal_perror.
1763 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1764 pretty-print.o and input.o.
1765 (collect2.o, tlink.o): Update dependencies.
1767 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1769 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1771 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1774 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1775 COMDAT group syntax, both SPARC and x86 variants.
1776 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1777 * configure: Regenerate.
1778 * config/sol2.h (TARGET_SOLARIS): Define.
1779 (PUSHSECTION_FORMAT): Remove.
1780 (SECTION_NAME_FORMAT): Define.
1781 * config/sol2.c: Include hashtab.h.
1782 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1783 expansion, using SECTION_NAME_FORMAT.
1784 (solaris_comdat_htab): New variable.
1785 (struct comdat_entry): Define.
1786 (comdat_hash): New function.
1787 (comdat_eq): New function.
1788 (solaris_elf_asm_comdat_section): New function.
1789 (solaris_define_comdat_signature): New function.
1790 (solaris_code_end): New function.
1791 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1792 (solaris_code_end): Declare.
1793 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1794 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1796 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1797 Remove ATTRIBUTE_UNUSED.
1798 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1799 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1800 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1801 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1802 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1803 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1804 (PUSHSECTION_FORMAT): Remove.
1805 (SECTION_NAME_FORMAT): Redefine.
1807 2011-05-19 Kai Tietz <ktietz@redhat.com>
1809 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1810 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1811 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1813 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1814 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1816 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1818 2011-05-19 Richard Guenther <rguenther@suse.de>
1821 * tree-object-size.c (addr_object_size): If the pointed-to
1822 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1824 2011-05-19 Richard Guenther <rguenther@suse.de>
1826 * gimple.c (gimple_types_compatible_p_1): Compare names of
1827 the types themselves.
1828 (iterative_hash_gimple_type): And hash them that way.
1829 (gimple_register_type_1): If we register a main variant properly
1830 initialize the leader to ourselves.
1832 2011-05-19 Tom de Vries <tom@codesourcery.com>
1835 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1836 get_loop_invariant_expr_id.
1837 (get_loop_invariant_expr_id): Use get_expr_id.
1838 (parm_decl_cost): New function.
1839 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1840 Improve bound cost estimation. Use different inv_expr_id for elim and
1843 2011-05-19 Tom de Vries <tom@codesourcery.com>
1846 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1847 cost_base.cost == 0.
1849 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1852 * config/i386/sse.md
1853 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1856 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1858 PR tree-optimization/49039
1859 * tree-vrp.c (extract_range_from_binary_expr): For
1860 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1861 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1863 2011-05-18 Tom de Vries <tom@codesourcery.com>
1866 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1868 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1870 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1871 (*tls_global_dynamic_64): Ditto.
1872 (*tls_local_dynamic_base_32_gnu): Ditto.
1873 (*tls_local_dynamic_base_64): Ditto.
1874 (tls_initial_exec_64_sun): Ditto.
1876 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1878 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1879 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1881 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1882 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1883 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1884 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1885 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1886 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1887 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1889 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1891 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1892 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1893 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1894 target_thread_pointer, arm_structure_size_boundary, struct
1895 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1896 struct abi_name, arm_all_abis): Remove.
1897 (arm_option_override) Don't process most enumerated option values here.
1898 Don't process target_fpe_name here. Work with integer not string for
1899 structure size boundary; use separate diagnostics for each case.
1900 * config/arm/arm.h (enum float_abi_type, enum
1901 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1903 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1904 arm_structure_size_boundary): Remove.
1905 * config/arm/arm.opt (mabi=): Use Enum and Init.
1906 (arm_abi_type): New Enum and EnumValue entries.
1907 (mfloat-abi=): Use Enum and Init.
1908 (float_abi_type): New Enum and EnumValue entries.
1909 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1910 (mfp16-format=): Use Enum and Init.
1911 (arm_fp16_format_type): New Enum and EnumValue entries.
1912 (mstructure-size-boundary=): Use UInteger and Init.
1913 (mtp=): Use Enum and Init.
1914 (arm_tp_type): New Enum and EnumValue entries.
1916 2011-05-18 Richard Guenther <rguenther@suse.de>
1918 PR tree-optimization/49018
1919 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1920 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1921 gimple_has_side_effects.
1923 2011-05-18 Richard Guenther <rguenther@suse.de>
1925 * gimple.c (gimple_register_type_1): New function, split out from ...
1926 (gimple_register_type): ... here. Avoid infinite recursion.
1928 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1930 PR tree-optimization/41881
1931 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1932 reduction_chains along with a macro for its access.
1933 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1934 (destroy_loop_vec_info): Free reduction chains.
1935 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1936 (vect_is_slp_reduction): New function.
1937 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1938 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1939 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1940 definition types for reduction chains.
1941 (vect_supported_load_permutation_p): Don't allow permutations for
1943 (vect_analyze_slp_instance): Support reduction chains.
1944 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1945 (vect_get_constant_vectors): Handle reduction chains.
1946 (vect_schedule_slp_instance): Mark the first statement of the
1947 reduction chain as reduction.
1949 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1951 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1952 names for group elements access.
1953 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1954 reduction chains as well. Remove data reference and interleaving
1955 related words from the fields names.
1956 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1958 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1959 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1960 vect_update_interleaving_chain, vect_same_range_drs,
1961 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1962 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1963 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1964 vect_analyze_group_access, vect_analyze_data_ref_access,
1965 vect_create_data_ref_ptr, vect_transform_strided_load,
1966 vect_record_strided_load_vectors): Likewise.
1967 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1968 vect_model_load_cost, vectorizable_store, vectorizable_load,
1969 vect_remove_stores, new_stmt_vec_info): Likewise.
1970 * tree-vect-slp.c (vect_build_slp_tree,
1971 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1973 2011-05-18 Richard Guenther <rguenther@suse.de>
1976 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1977 operand verification.
1978 (verify_gimple_assign_binary): Likewise.
1979 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1980 to non-1-precision BOOLEAN_TYPEs.
1982 2011-05-18 Tom de Vries <tom@codesourcery.com>
1985 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1987 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1989 PR tree-optimization/49000
1990 * tree-ssa.c (execute_update_addresses_taken): Call
1991 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1992 be rewritten and decl has been marked for renaming, reset
1995 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1997 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1998 enum_opts_set when testing if attributes have set -mfpmath=.
2000 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2002 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2004 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2006 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2008 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2009 id.transform_lang_insert_block with NULL.
2011 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2013 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2014 (output_fp_compare): Change args 3 and 4 to bool.
2015 (ix86_expand_call): Change arg 6 to bool.
2016 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2017 (ix86_attr_length_vex_default): Change arg 3 to bool.
2018 * config/i386/i386.md: Update all uses.
2019 * config/i386/i386.c: Ditto.
2020 (ix86_flags_dependent): Change return type to bool.
2022 2011-05-17 Richard Guenther <rguenther@suse.de>
2024 * gimple.c (type_hash_pair_compare): Fix comparison.
2026 2011-05-17 Richard Guenther <rguenther@suse.de>
2028 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2029 case some more, fix final hash value of the non-singleton case.
2031 2011-05-17 Richard Guenther <rguenther@suse.de>
2035 2011-05-16 Richard Guenther <rguenther@suse.de>
2037 * gimple.c (gimple_types_compatible_p_1): Use names of the
2038 type itself, not its main variant.
2039 (iterative_hash_gimple_type): Likewise.
2041 2011-05-17 Richard Guenther <rguenther@suse.de>
2043 * gimple.c (gimple_register_canonical_type): Use the main-variant
2044 leader for computing the canonical type.
2046 2011-05-17 Nick Clifton <nickc@redhat.com>
2048 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2051 * config/rx/rx.md: Add peephole to remove redundant extensions
2053 (bitset_in_memory): Use rx_restricted_mem_operand.
2054 (bitinvert_in_memory): Likewise.
2055 (bitclr_in_memory): Likewise.
2057 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2058 Nick Clifton <nickc@redhat.com>
2060 * config/rx/rx.md: Add peepholes to match a register move followed
2061 by a comparison of the moved register. Replace these with an
2062 addition of zero that does both actions in one instruction.
2064 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2067 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2068 predicate to allow CONST_INT.
2069 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2071 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2073 * opts-common.c (opt_enum_arg_to_value): New.
2074 * opts.h (opt_enum_arg_to_value): Declare.
2075 * config/i386/i386.opt (fpmath): Remove.
2076 (mfpmath=): Use Enum, Init and Save.
2077 (fpmath_unit): New Enum and EnumValue entries.
2078 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2079 name for function fpmath state.
2080 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2081 * config/i386/i386.c: Include diagnostic.h.
2082 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2083 (ix86_target_string): Take enum fpmath_unit value instead of string.
2084 (ix86_debug_options): Update call to ix86_target_string.
2085 (ix86_option_override_internal): Don't process fpmath strings here.
2086 (x86_function_specific_save, ix86_function_specific_restore):
2087 Don't handle fpmath state specially.
2088 (ix86_function_specific_print): Pass fpmath state to
2089 ix86_target_string instead of printing in this function.
2090 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2091 Handle enum attributes.
2092 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2093 (ix86_valid_target_attribute_tree): Update option_strings
2094 handling. Handle fpmath as enum option.
2095 (ix86_can_inline_p): Update field names for function fpmath state.
2096 (ix86_expand_builtin): Update call to ix86_target_string.
2097 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2098 (ix86_fpmath): Remove.
2099 * config/i386/t-i386 (i386.o): Update dependencies.
2101 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2103 PR preprocessor/48677
2104 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2105 from decoded_options[0], not from itself.
2107 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2109 * config/i386/constraints.md (z): New constraint.
2110 * config/i386/i386.c (c): New mode attribute.
2111 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2112 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2113 constraint for operand 0.
2114 (*call_vzeroupper): Ditto.
2115 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2116 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2117 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2118 Use "lzm" constraint for operand 0.
2119 (*call_pop_vzeroupper): Ditto.
2120 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2121 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2122 constraint for operand 0.
2123 (*sibcall_vzeroupper): Ditto.
2124 (*sibcall_rex64_ms_sysv): Ditto.
2125 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2126 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2127 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2128 (*sibcall_pop_vzeroupper): Ditto.
2129 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2130 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2131 mode iterator. Use "<c>zm" constraint for operand 1.
2132 (*call_value_vzeroupper): Ditto.
2133 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2135 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2136 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2137 *call_value_pop_1. Use "lzm" constraint for operand 1.
2138 (*call_value_pop_vzeroupper): Ditto.
2139 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2140 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2141 mode iterator. Use "Uz" constraint for operand 1.
2142 (*sibcall_value_vzeroupper): Ditto.
2143 (*sibcall_value_rex64_ms_sysv): Ditto.
2144 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2145 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2146 constraint for operand 1.
2147 (*sibcall_value_pop_vzeroupper): Ditto.
2148 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2149 and "z" constraint for operand 2.
2150 (*tls_global_dynamic_32_gnu): Ditto.
2151 (*tls_local_dynamic_base_32_gnu): Ditto.
2152 (*tls_local_dynamic_base_64): Ditto.
2153 (*tls_local_dynamic_32_once): Ditto.
2154 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2156 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2158 2011-05-16 Richard Guenther <rguenther@suse.de>
2160 * gimple.c (gimple_types_compatible_p_1): Use names of the
2161 type itself, not its main variant.
2162 (iterative_hash_gimple_type): Likewise.
2164 2011-05-16 Richard Guenther <rguenther@suse.de>
2166 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2167 always visit pointer target and function result and argument types.
2169 2011-05-16 Jason Merrill <jason@redhat.com>
2172 * tree-inline.c (copy_statement_list): Put back recursion.
2174 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2178 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2179 * config/avr/avr.md ("*ior<mode>qi.byte0",
2180 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2182 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2185 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2186 register is needed for a function argument.
2188 2011-05-16 Richard Guenther <rguenther@suse.de>
2190 * gimple.c (struct type_hash_pair): New type.
2191 (type_hash_pair_compare): New function.
2192 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2194 2011-05-16 Revital Eres <revital.eres@linaro.org>
2196 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2198 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2200 * config/i386/i386.md (floating point move splitters): Fix
2201 usage of standard_80387_constant_p.
2202 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2204 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2206 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2208 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2210 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2211 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2212 (tree_ssa_lim_finalize): Likewise.
2214 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2216 * config/i386/constraint.md (Yd, Yx): New register constraints.
2217 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2218 Yd conditional register constraint.
2219 (*movtf_internal): Use standard_sse_constant_opcode.
2220 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2221 Yx conditional register constraint.
2222 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2223 Yd conditional register constraint. Use standard_sse_constant_p to
2224 check for valid SSE constants and call standard_sse_constant_opcode to
2226 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2227 constants and call standard_sse_constant_opcode to output SSE insn.
2228 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2229 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2230 optimize_size is set.
2231 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2233 2011-05-14 Tobias Burnus <burnus@net-b.de>
2235 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2237 2011-05-13 Martin Jambor <mjambor@suse.cz>
2239 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2240 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2241 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2242 (evaluate_conditions_for_ipcp_clone): Removed.
2243 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2244 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2245 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2247 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2249 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2250 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2251 lieu of MAY_HAVE_DEBUG_STMTS.
2252 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2253 debug statements if !MAY_HAVE_DEBUG_STMTS.
2255 2011-05-13 Martin Thuresson <martint@google.com>
2257 PR gcov-profile/47793
2258 * libgcov.c (gcov_exit): Support relative profile paths.
2259 * doc/invoke.texi (-fprofile-dir): Update for above change.
2261 2011-05-13 Richard Guenther <rguenther@suse.de>
2263 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2264 type-pair caching, do not compare hashes.
2266 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2269 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2270 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2272 2011-05-13 Kai Tietz <ktietz@redhat.com>
2274 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2275 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2276 compatible type for TRUTH_NOT_EXPR.
2278 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2280 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2281 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2282 can_create_pseudo_p ().
2284 2011-05-13 Richard Guenther <rguenther@suse.de>
2287 * gimple.c (iterative_hash_gimple_type): Revert change in
2288 pointer target and function result and argument hashing.
2290 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2292 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2293 (*movxf_internal_nointeger): Ditto.
2294 (*movdf_internal_rex64): Ditto.
2295 (*movdf_internal): Ditto.
2296 (*movdf_internal_nointeger): Ditto.
2297 (*movsf_internal): Ditto.
2298 (sincos splitters): Use can_create_pseudo ().
2300 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2302 * config/i386/i386-opts.h: New.
2303 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2304 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2305 ix86_section_threshold): Remove.
2306 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2307 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2309 (ix86_option_override_internal): Don't decode strings for options
2310 other than -march=, -mtune= and -mfpmath=. Don't allow for
2311 __attribute__ uses in remaining diagnostics for options with
2312 string arguments. Don't check for integer arguments being negative.
2313 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2314 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2315 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2316 ix86_branch_cost, ix86_section_threshold): Remove.
2317 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2319 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2321 (masm=): Use Enum and Init.
2322 (asm_dialect): New Enum and EnumValue entries.
2323 (mbranch-cost=): Use UInteger.
2324 (mlarge-data-threshold=): Use UInteger and Init.
2325 (mcmodel=): Use Enum and Init.
2326 (cmodel): New Enum and EnumValue entries.
2327 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2328 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2329 mregparm=): Use UInteger.
2330 (mstringop-strategy=): Use Enum and Init.
2331 (stringop_alg): New Enum and EnumValue entries.
2332 (mtls-dialect=): Use Enum and Init.
2333 (tls_dialect): New Enum and EnumValue entries.
2334 (mabi=): Use Enum and Init.
2335 (calling_abi): New Enum and EnumValue entries.
2336 (mveclibabi=): Use Enum and Init.
2337 (ix86_veclibabi): New Enum and EnumValue entries.
2339 2011-05-13 Nick Clifton <nickc@redhat.com>
2341 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2342 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2344 2011-05-13 Kai Tietz <ktietz@redhat.com>
2347 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2348 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2349 (gimple_boolify): Check for cast for boolean_type_node instead for
2352 2011-05-13 Richard Guenther <rguenther@suse.de>
2354 PR tree-optimization/48172
2355 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2356 multiplying by number of iterations for equal step.
2357 (vect_create_cond_for_alias_checks): Likewise.
2359 2011-05-13 Andreas Schwab <schwab@redhat.com>
2361 * configure.ac: Use AS_HELP_STRING throughout.
2362 * configure: Regenerate.
2364 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2366 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2367 (ix86_emit_restore_regs_using_mov): Likewise.
2368 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2370 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2372 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2373 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2374 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2375 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2376 RTX_OK_FOR_OLO10_P): ...here.
2377 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2380 2011-05-12 Kai Tietz <ktietz@redhat.com>
2382 * gimplify.c (gimple_boolify): Re-boolify expression
2383 arguments even if expression type is of kind BOOLEAN_TYPE.
2384 (gimplify_boolean_expr): Removed.
2385 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2386 and XOR. Additional take care that we keep expression's type.
2387 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2388 of TRUTH_AND|OR|XOR_EXPR.
2390 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2392 PR tree-optimization/48975
2393 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2394 on all bbs here and free and clear ifc_bbs at the end.
2396 2011-05-12 Richard Guenther <rguenther@suse.de>
2398 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2399 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2400 until after simple checks.
2401 (gimple_types_compatible_p): Likewise.
2402 (iterative_hash_gimple_type): Always hash pointer targets
2403 and function return and argument types.
2404 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2405 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2406 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2407 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2408 completely in the simple compare section.
2409 (gimple_register_canonical_type): Query the cache again after
2412 2011-05-12 Richard Guenther <rguenther@suse.de>
2414 PR tree-optimization/48172
2415 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2416 the number of iterations from the segment size calculation.
2417 (vect_create_cond_for_alias_checks): Adjust.
2419 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2422 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2423 if validate_subreg fails.
2425 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2427 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2428 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2431 2011-05-12 DJ Delorie <dj@redhat.com>
2433 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2434 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2435 created builtin into rx_builtins array.
2436 (rx_builtin_decl): New function.
2437 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2439 2011-05-12 DJ Delorie <dj@redhat.com>
2440 Nick Clifton <nickc@redhat.com>
2442 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2443 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2444 (rx_is_legitimate_address): Add pre-decrement and post-increment
2445 addressing in HImode and QImode. Fix test for out of range
2447 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2448 (rx_align_for_label): Test label before extracting its usage count.
2449 (rx_adjust_insn_lengths): Fix selection of insn codes.
2450 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2452 2011-05-11 Jason Merrill <jason@redhat.com>
2454 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2456 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2458 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2459 reindent the subsequent block.
2461 2011-05-11 Satoru Takabayashi <satorux@google.com>
2462 Paul Pluzhnikov <ppluzhnikov@google.com>
2464 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2465 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2466 * config.in: Add LINKER_HASH_STYLE.
2467 * configure.ac: Add --with-linker-hash-style.
2468 * configure: Regenerate.
2470 2011-05-11 Richard Guenther <rguenther@suse.de>
2473 * gimple.c (iterative_hash_canonical_type): Fix typo.
2475 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2477 * config/i386/i386.c (legitimize_tls_address)
2478 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2479 expanders directly for TARGET_GNU2_TLS. Determine pic and
2480 __tls_get_addr symbol reference here. Update call to
2481 gen_tls_global_dynamic_{32,64} for added arguments.
2482 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2483 expanders directly for TARGET_GNU2_TLS. Determine
2484 __tls_get_addr symbol reference here. Update call to
2485 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2486 unique UNSPEC REG_EQUIV to libcall block.
2487 (ix86_tls_get_addr): Declare static.
2488 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2489 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2490 Do not determine pic and __tls_get_addr symbol reference here. Do not
2491 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2492 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2493 (tls_global_dynamic_64): Add operand 2. Do not determine
2494 __tls_get_addr symbol reference here. Do not call
2495 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2496 (tls_local_dynamic_base64): Ditto for operand 1.
2498 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2500 * function.c (expand_function_start): Initialize stack_check_probe_note
2501 only if the generic stack checking mechanism is used.
2503 2011-05-11 Richard Guenther <rguenther@suse.de>
2505 PR tree-optimization/15256
2506 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2507 (A & B) | C, combine (A op CST1) op CST2.
2508 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2509 visit assigns that have uses.
2511 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2513 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2514 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2515 (unpack_ts_type_common_value_fields): ...this. Update comment.
2516 (unpack_value_fields): Adjust for renaming.
2517 (lto_input_ts_type_tree_pointers): Split into...
2518 (lto_input_ts_type_common_tree_pointer): ...this and...
2519 (lto_input_ts_type_non_common_tree_pointers): ...this.
2520 (lto_input_tree_pointers): Adjust for above split.
2521 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2522 (pack_ts_type_common_value_fields): ...this. Update comment.
2523 (lto_output_ts_type_tree_pointers): Split into...
2524 (lto_output_ts_type_common_tree_pointers): ...this and...
2525 (lto_output_ts_type_non_common_tree_pointers): ...this.
2526 (lto_output_tree_pointers): Adjust for above split.
2527 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2528 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2529 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2530 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2532 (struct tree_type): Split into...
2533 (struct tree_type_common: ...this and...
2534 (struct tree_type_with_lang_specific): ...this and...
2535 (struct tree_type_non_common): ...this. Adjust accessor macros
2537 (TYPE_VALUES_RAW): Define.
2538 (union tree_node): Update for above changes.
2539 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2541 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2542 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2543 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2544 * treestructu.def (TS_TYPE): Remove.
2545 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2548 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2551 * tree-ssa.c (reset_debug_uses): New function.
2552 * tree-flow.h (reset_debug_uses): New prototype.
2553 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2554 * tree-loop-distribution.c (generate_loops_for_partition): Call
2555 reset_debug_uses on the stmts that will be removed. Keep around
2556 all debug stmts, don't count them as bits in partition bitmap.
2557 (generate_builtin): Don't count debug stmts or labels as bits in
2560 2011-05-11 Richard Guenther <rguenther@suse.de>
2562 * gimple.c (gimple_type_hash_1): Merge with ...
2563 (gimple_type_hash): ... this.
2564 (gtc_visit): Remove mode parameter and simplify accordingly.
2565 (gimple_types_compatible_p_1): Likewise.
2566 (gimple_types_compatible_p): Likewise.
2567 (iterative_hash_gimple_type): Likewise.
2569 (gimple_type_eq): Adjust.
2571 2011-05-11 Revital Eres <revital.eres@linaro.org>
2573 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2574 enters the branch create an anti edge in the opposite direction
2575 to prevent the creation of reg-moves.
2576 * modulo-sched.c: Adjust comment to reflect the fact we are
2577 scheduling closing branch.
2578 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2579 (stage_count): New field in struct partial_schedule.
2580 (calculate_stage_count): New function.
2581 (normalize_sched_times): Rename to reset_sched_times and handle
2582 incrementing the sched time of the nodes by a constant value
2583 passed as parameter.
2584 (duplicate_insns_of_cycles): Skip closing branch.
2585 (sms_schedule_by_order): Schedule closing branch.
2586 (ps_insn_find_column): Handle closing branch.
2587 (sms_schedule): Call reset_sched_times and adjust the code to
2588 support scheduling of the closing branch.
2589 (ps_insert_empty_row): Update calls to normalize_sched_times
2590 and rotate_partial_schedule functions.
2592 2011-05-11 Richard Guenther <rguenther@suse.de>
2595 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2597 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2599 * opts.c (finish_options): Move warning settings from process_options.
2600 * toplev.c (process_options): Move warning settings to finish_options.
2602 2011-05-11 Richard Guenther <rguenther@suse.de>
2604 PR tree-optimization/18041
2605 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2606 (simplify_bitwise_binary): ... this. Handle operand conversions
2607 by applying them to the result instead.
2608 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2610 2011-05-11 Richard Guenther <rguenther@suse.de>
2612 * gimple.c (gimple_canonical_types_compatible_p): Split out
2613 from gimple_types_compatible_p and friends. Do not recurse
2614 to pointed-to types.
2615 (gimple_canonical_type_eq): Use it.
2616 (iterative_hash_canonical_type): Split out from
2617 iterative_hash_gimple_type and friends. Do not recurse
2618 to pointed-to types.
2619 (gimple_canonical_type_hash): Use it, allocate the hash here.
2621 2011-05-11 Revital Eres <revital.eres@linaro.org>
2623 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2626 2011-05-11 Revital Eres <revital.eres@linaro.org>
2628 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2629 instead of PREV_INSN.
2631 2011-05-11 Revital Eres <revital.eres@linaro.org>
2633 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2634 * loop-doloop.c (doloop_condition_get): Likewise.
2635 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2637 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2639 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2641 * tree.def (CASE_LABEL_EXPR): Add an operand.
2642 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2644 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2646 * c-decl.c (c_override_global_bindings_to_false): Remove.
2647 (global_bindings_p): Don't check
2648 c_override_global_bindings_to_false.
2649 * c-tree.h (c_override_global_bindings_to_false): Remove.
2650 * c-typeck.c (composite_type): Don't set
2651 c_override_global_bindings_to_false.
2653 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2655 PR target/48857, 48495
2656 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2658 (VSX_MOVE_MODE): Ditto.
2659 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2660 VSX vector types. Add V2DImode.
2661 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2662 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2663 (MODES_TIEABLE_P): Ditto.
2665 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2666 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2668 (init_cumulative_args): Ditto.
2669 (rs6000_function_arg_boundary): Ditto.
2670 (rs6000_function_arg_advance_1): Ditto.
2671 (rs6000_function_arg): Ditto.
2672 (rs6000_function_ok_for_sibcall): Ditto.
2673 (emit_frame_save): Ditto.
2674 (rs6000_function_value): Ditto.
2675 (rs6000_libcall_value): Ditto.
2677 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2679 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2680 i386/darwin-lib.h to $libgcc_tm_file.
2681 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2683 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2685 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2687 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2689 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2690 * config/rs6000/rs6000-tables.opt: New file (generated).
2691 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2692 rs6000/rs6000-tables.opt to extra_options.
2693 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2694 * config/rs6000/rs6000.c (rs6000_select): Remove.
2695 (processor_target_table): Move contents to rs6000-cpus.def.
2696 (darwin_rs6000_override_options): Check
2697 global_options_set.x_rs6000_cpu_index instead of
2698 rs6000_select[1].string.
2699 (rs6000_option_override_internal): Likewise.
2700 (rs6000_handle_option): Don't assert that global structures are in
2701 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2702 (rs6000_default_cpu): New variable.
2703 (rs6000_file_start): Set it instead of local default_cpu. Check
2704 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2705 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2706 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2707 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2708 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2709 rs6000_select): Remove.
2710 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2712 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2713 * config/rs6000/t-rs6000
2714 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2715 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2716 global_options_set.x_rs6000_cpu_index instead of
2717 rs6000_select[1].string.
2718 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2719 global_options_set.x_rs6000_cpu_index instead of
2720 rs6000_select[1].string.
2722 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2724 * config.gcc (libgcc_tm_file): Define instead of including files
2725 from ../../libgcc/config/ in tm_file.
2726 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2727 * configure: Regenerate.
2728 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2729 libgcc_tm.h, cs-libgcc_tm.h): New.
2730 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2731 (clean): Remove libgcc_tm.h.
2732 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2733 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2734 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2736 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2739 * config/avr/avr.c (avr_ret_register): Return unsigned int
2741 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2742 it to avr_libcall_value.
2743 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2745 (avr_expand_binop_builtin): Ditto.
2746 (avr_expand_unop_builtin): Ditto.
2748 2011-05-10 DJ Delorie <dj@redhat.com>
2750 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2751 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2752 * config/rx/rx.c (rx_align_for_label): Add label and
2753 uses_threshold parameters. Do not align when the label is not
2755 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2757 2011-05-10 Richard Guenther <rguenther@suse.de>
2759 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2760 a series of conversions and apply foldings similar to what
2762 (tree_ssa_forward_propagate_single_use_vars): Call it.
2764 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2766 PR tree-optimization/48611
2767 PR tree-optimization/48794
2768 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2769 referenced from RESX or EH_DISPATCH arguments.
2772 * dfp.c (decimal_to_decnumber): Handle conversion from
2773 dconst{1,2,m1,half}.
2775 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2777 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2778 for !flag_prefer_avx128.
2779 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2781 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2783 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2784 (fold_ternary_loc): Use expr_location_or.
2786 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2789 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2790 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2791 Pmode and mem_mode is not VOIDmode.
2793 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2795 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2796 TYPE_QUAL_RESTRICT): Convert to enum.
2798 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2800 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2801 (const_pow2_1_to_8_operand): Ditto.
2802 (const_pow2_1_to_128_operand): Ditto.
2803 (const_pow2_1_to_32768_operand): Ditto.
2804 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2805 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2806 in insn constraint to check integer value of operand 3.
2807 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2809 (PINSR_MODE): New mode iterator.
2810 (sse2p4_1): New mode attribute.
2811 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2812 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2813 iterator. Use const_int_operand instead of
2814 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2815 exact_log2 in insn constraint to check integer value of operand 3.
2817 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2819 * config/i386/sse.md (blendbits): Remove mode attribute.
2820 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2821 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2822 Check integer value of operand 3 in insn constraint.
2824 2011-05-09 Richard Guenther <rguenther@suse.de>
2826 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2828 (lto_symtab_merge): Likewise. Do not register types here.
2829 (lto_symtab_merge_decls_2): Likewise.
2830 (lto_symtab_merge_decls_1): Likewise.
2831 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2832 * gimple.c (enum gtc_mode): Declare.
2833 (gimple_types_compatible_p): Make static.
2835 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2837 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2838 temporary register to match Pmode.
2840 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2842 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2843 and *vec_concatv4si_1_avx.
2845 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2847 PR rtl-optimization/48927
2848 * ira-conflicts.c (commutative_constraint_p): Use
2849 recog_data.alternative_enabled_p to disable alternatives where
2850 "enabled" attribute is false.
2851 (get_dup_num): Ditto.
2852 * ira-lives.c (single_reg_class): Ditto.
2853 (ira_implicitly_set_insn_hard_regs): Ditto.
2855 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2857 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2858 (dataflow_set_preserve_mem_locs): Likewise.
2860 2011-05-09 Philipp Thomas <pth@suse.de>
2862 * config/mep/mep.c (mep_validate_vliw): Syntax description
2863 should not be translated.
2865 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2867 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2868 * config/mips/mips-tables.opt: New file (generated).
2869 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2870 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2871 MIPS_ARCH_OPTION_NATIVE): Define.
2872 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2874 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2875 mips_parse_cpu): Remove.
2876 (mips_cpu_info_from_opt, mips_default_arch): New.
2877 (mips_handle_option): Don't assert that global structures are in
2878 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2879 (mips_option_override): Use new variables and functions to set
2880 state of these options. Use strcmp to check for individual CPU names.
2881 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2883 * config/mips/mips.opt (march=): Use ToLower and Enum.
2884 (mips): Use ToLower, Enum and Var.
2885 (mtune=): Use ToLower and Enum.
2886 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2888 2011-05-08 Jan Hubicka <jh@suse.cz>
2890 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2891 Arrange type pairs to be UID ordered.
2892 (gimple_lookup_type_leader): Make inline.
2894 2011-05-09 Nick Clifton <nickc@redhat.com>
2897 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2901 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2904 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2906 * combine.c (simplify_comparison): Abstract out parts into...
2907 (simplify_compare_const): ... new function.
2908 (try_combine): Generalize parallel arithmetic/compare combining
2909 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2911 2011-05-08 Jan Hubicka <jh@suse.cz>
2913 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2914 (cgraph_create_virtual_clone): Call hooks once virtual clone
2916 * cgraph.h (cgraph_clone_node): Update prototype.
2917 * ipa-cp.c (ipcp_estimate_growth): Use
2918 estimate_ipcp_clone_size_and_time.
2919 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2920 * lto-cgraph.c (input_node): Update.
2921 * ipa-inline.c (recursive_inlining): Update.
2922 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2923 (evaluate_conditions_for_known_args): Break out from ...
2924 (evaluate_conditions_for_edge): ... here.
2925 (evaluate_conditions_for_ipcp_clone): New function.
2926 (inline_node_duplication_hook): Update clone summary based
2928 (estimate_callee_size_and_time): Rename to ...
2929 (estimate_node_size_and_time): take NODE instead of EDGE;
2930 take POSSIBLE_TRUTHS as argument.
2931 (estimate_callee_size_and_time): Update.
2932 (estimate_ipcp_clone_size_and_time): New function.
2933 (do_estimate_edge_time): Update.
2935 2011-05-08 Richard Guenther <rguenther@suse.de>
2939 * expmed.c (expand_shift_1): Compute adjusted constant shift
2942 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2944 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2946 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2948 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2950 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2952 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2954 2011-05-07 Jan Hubicka <jh@suse.cz>
2956 * ipa-inline-transform.c (inline_call): Account when program size
2958 * ipa-inline.c (relative_time_benefit): New function.
2959 (edge_badness): Reorganize to be power 2 based; fix thinko when
2960 computing badness for negative growth; update comments to match
2961 reality; better dumps.
2963 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2965 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2966 type to bool and adjust comment.
2967 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2968 (fold_mathfn_compare): Remove calls to global_bindings_p.
2969 (fold_inf_compare): Likewise.
2970 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2971 * c-tree.h (global_bindings_p): Adjust prototype.
2972 * c-decl.c (global_bindings_p): Return bool and simplify.
2974 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2976 PR tree-optimization/48837
2977 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2978 when accumulator transformation is performed.
2980 2011-05-06 Jan Hubicka <jh@suse.cz>
2982 * i386.h (ix86_tune_indices): Add
2983 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2984 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2985 * i386.c (initial_ix86_tune_features): Add
2986 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2987 (software_prefetching_beneficial_p): Remove predicate.
2988 (ix86_option_override_internal): Use new macro.
2990 2011-05-06 Jan Hubicka <jh@suse.cz>
2992 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2994 2011-05-06 Jan Hubicka <jh@suse.cz>
2996 * cgraph.c (cgraph_add_thunk): Create real function node instead
2997 of alias node; finalize it and mark needed/reachale; arrange visibility
2998 to be right and add it into the corresponding same comdat group list.
2999 (dump_cgraph_node): Dump thunks.
3000 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3001 cgraph_function_with_gimple_body_p,
3002 cgraph_first_function_with_gimple_body,
3003 cgraph_next_function_with_gimple_body): New functions.
3004 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3006 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3007 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3008 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3009 devirtualization when optimizing.
3010 (verify_cgraph_node): Verify thunks.
3011 (cgraph_analyze_function): Analyze thunks.
3012 (cgraph_mark_functions_to_output): Output thunks only in combination
3013 with function they are assigned to.
3014 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3015 alias into normal node.
3016 (assemble_thunks): New functoin.
3017 (cgraph_expand_function): Use it.
3018 * lto-cgraph.c (lto_output_node): Stream thunks.
3019 (input_overwrite_node): Stream in thunks.
3020 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3021 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3022 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3023 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3024 (inline_analyze_function): Do not care about thunk jump functions.
3025 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3026 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3027 cgraph_function_with_gimple_body_p.
3028 * passes.c (do_per_function_toporder): Use
3029 cgraph_function_with_gimple_body_p.
3030 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3031 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3032 (function_called_by_processed_nodes_p): Likewise.
3034 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3036 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3037 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3039 (mabi=): Replace with separate entries for mabi=altivec,
3040 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3041 mabi=ieeelongdouble and mabi=ibmlongdouble.
3042 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3043 check for -mabi=spe without SPE ABI support here.
3044 (rs6000_handle_option): Replace OPT_mabi_ handling with
3045 OPT_mabi_altivec and OPT_mabi_spe handling.
3047 2011-05-06 Cary Coutant <ccoutant@google.com>
3049 * dwarf2out.c (contains_subprogram_definition): New function.
3050 (should_move_die_to_comdat): Call it.
3052 2011-05-06 Jeff Law <law@redhat.com>
3054 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3055 remove_ctrl_stmt_and_useless_edges.
3056 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3057 (fixup_template_block, thread_single_edge): Likewise.
3058 (mark_threaded_blocks): Use THREAD_TARGET.
3060 2011-05-06 Alan Modra <amodra@gmail.com>
3063 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3064 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3066 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3068 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3069 constraint modifier to "r".
3071 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3073 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3074 fall through for OPT_mcmodel_.
3076 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3078 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3080 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3082 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3085 * config/arm/arm.opt (marm): Document it.
3086 (mthumb): Reject negative variant.
3088 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3091 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3092 Fix typo in "ccvt" variable name.
3094 2011-05-06 Tristan Gingold <gingold@adacore.com>
3097 * config/vms/vms-ar.c (main): Remove cwd variable.
3099 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3102 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3104 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3106 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3107 * gimplify.c (gimplify_switch_expr): Likewise.
3108 * omp-low.c (expand_omp_sections): Likewise.
3109 * tree-eh.c (lower_try_finally_switch): Likewise.
3110 (lower_eh_dispatch): Likewise.
3111 * tree.h (build_case_label): Declare.
3112 * tree.c (build_case_label): Define.
3114 2011-05-05 Jason Merrill <jason@redhat.com>
3117 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3118 (copy_statement_list): Don't recurse.
3119 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3122 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3124 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3125 through from -mfpu= handling.
3126 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3128 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3130 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3133 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3135 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3137 (hppa[12]*-*-hpux11*): Ditto.
3138 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3139 * config/ia64/hpux-unix2003.h: New.
3140 * config/pa/pa-hpux1131.opt: New.
3141 * config/pa/pa-hpux1131.h: New.
3142 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3143 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3144 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3146 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3149 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3150 instead of mode as 3rd argument to recursive call.
3151 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3152 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3154 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3155 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3156 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3157 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3159 2011-05-05 Julian Brown <julian@codesourcery.com>
3161 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3162 parenthesis in D-register case.
3164 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3166 * opt-functions.awk (var_type_struct): Handle Enum options.
3167 * optc-gen.awk: Don't check range of variables of character type.
3168 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3169 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3170 rs6000_sdata_name, rs6000_explicit_options): Remove.
3171 (rs6000_option_override_internal): Check for -malign-power here.
3172 Use global_options_set instead of rs6000_explicit_options.
3173 (rs6000_parse_fpu_option): Remove.
3174 (rs6000_handle_option): Access variables via opts and opts_set
3175 pointers. Use error_at and warning_at. Add fall-through
3176 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3177 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3178 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3179 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3180 here. Don't use rs6000_parse_fpu_option.
3181 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3182 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3183 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3185 (mspe): Use Var and Save.
3186 (mtraceback=): Use Enum and Var.
3187 (rs6000_traceback_type): New Enum and EnumValue entries.
3188 (mfloat-gprs=): Use Enum, Var and Save.
3189 (rs6000_float_gprs): New Enum and EnumValue entries.
3190 (mlong-double-): use Var and Save.
3191 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3192 (malign-): Use Enum and Var.
3193 (rs6000_alignment_flags): New Enum and EnumValue entries.
3195 (fpu_type_t): New Enum and EnumValue entries.
3196 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3197 global_options_set instead of rs6000_explicit_options.
3198 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3199 global_options_set instead of rs6000_explicit_options.
3200 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3201 global_options_set instead of rs6000_explicit_options.
3202 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3203 global_options_set instead of rs6000_explicit_options.
3204 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3205 global_options_set instead of rs6000_explicit_options.
3206 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3207 global_options_set instead of rs6000_explicit_options.
3208 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3210 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3211 global_options_set instead of rs6000_explicit_options.
3212 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3213 (rs6000_cmodel): New Enum and EnumValue entries.
3214 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3215 global_options_set instead of rs6000_explicit_options.
3216 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3217 (mtls-size=): Use Enum and Var.
3218 (rs6000_tls_size): New Enum and EnumValue entries.
3220 2011-05-05 Michael Matz <matz@suse.de>
3222 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3223 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3224 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3225 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3226 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3227 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3228 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3229 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3230 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3231 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3232 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3233 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3234 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3235 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3236 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3237 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3239 2011-05-05 Richard Guenther <rguenther@suse.de>
3241 * expmed.c (expand_variable_shift): Rename to ...
3242 (expand_shift_1): ... this. Take an expanded shift amount.
3243 For rotates recurse directly not building trees for the shift amount.
3244 (expand_variable_shift): Wrap around expand_shift_1.
3245 (expand_shift): Adjust.
3247 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3249 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3251 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3253 * tree.h (get_pending_sizes): Remove prototype.
3254 (put_pending_size): Likewise.
3255 (put_pending_sizes): Likewise.
3256 * stor-layout.c (pending_sizes): Delete.
3257 (get_pending_sizes): Likewise.
3258 (put_pending_size): Likewise.
3259 (put_pending_sizes): Likewise.
3260 (variable_size): Do not call put_pending_size and tidy up.
3261 * function.h (struct function): Remove dont_save_pending_sizes_p.
3262 * lto-streamer-in.c (input_function): Do not stream it.
3263 * lto-streamer-out.c (output_function): Likewise.
3264 * tree-inline.c (initialize_cfun): Do not copy it.
3265 * c-decl.c (store_parm_decls): Do not set it.
3266 * omp-low.c (create_task_copyfn): Likewise.
3267 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3269 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3271 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3273 (*movdf_internal): Ditto.
3274 (*movdf_internal_nointeger): Ditto.
3275 (*movsf_internal): Ditto.
3277 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3279 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3280 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3281 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3282 (c_variable_size): Remove.
3283 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3284 call put_pending_sizes.
3285 (get_parm_info): Add parameter expr. Use it to set
3286 arg_info->pending_sizes.
3287 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3289 * c-parser.c (c_parser_parms_declarator): Update call to
3290 c_parser_parms_list_declarator.
3291 (c_parser_parms_list_declarator): Take parameter expr. Update
3292 call to push_parm_decl. Update recursive call. Don't call
3293 get_pending_sizes. Update calls to get_parm_info.
3294 (c_parser_objc_method_definition): Update calls to
3295 c_parser_objc_method_decl and objc_start_method_definition.
3296 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3297 (c_parser_objc_method_decl): Add parameter expr. Update call to
3299 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3300 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3301 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3303 2011-05-05 Michael Hope <michael.hope@linaro.org>
3306 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3309 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3311 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3312 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3313 (spu_output_mi_thunk): New function.
3315 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3317 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3318 targetm.asm_out.print_operand.
3319 * config/sol2.c: Include target.h.
3321 2011-05-04 Jan Hubicka <jh@suse.cz>
3323 * ipa-inline.c (reset_edge_caches): New function.
3324 (update_caller_keys): Add check_inlinablity_for; do not
3325 reset edge caches; remove now unnecesary loop.
3326 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3327 (update_all_callee_keys): Likewise.
3328 (inline_small_functions): Sanity check cache; update code
3331 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3333 PR rtl-optimization/47612
3334 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3335 as the last insn of the sequence to be moved.
3337 2011-05-04 Tobias Burnus <burnus@net-b.de>
3340 * doc/invoke.texi (Ofast): Document that it
3341 enables Fortran's -fno-protect-parens.
3343 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3345 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3347 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3349 * stor-layout.c (variable_size): Do not issue errors.
3351 2011-05-04 Richard Guenther <rguenther@suse.de>
3353 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3354 for array-ref indices.
3355 (tree_coverage_counter_addr): Likewise.
3356 (build_fn_info_type): Use size_int for index types.
3357 (build_gcov_info): Likewise.
3359 2011-05-04 Richard Guenther <rguenther@suse.de>
3361 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3363 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3364 for constructor indices.
3365 (push_init_level): Likewise.
3367 2011-05-04 Richard Guenther <rguenther@suse.de>
3369 * explow.c (promote_mode): Move variable declarations before code.
3371 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3373 * tree.h (build_function_type_array): Declare.
3374 (build_varargs_function_type_array): Declare.
3375 (build_function_type_vec, build_varargs_function_type_vec): Define.
3376 * tree.c (build_function_type_array_1): New function.
3377 (build_function_type_array): New function.
3378 (build_varargs_function_type_array): New function.
3380 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3382 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3383 before setting STMT_VINFO_TYPE.
3385 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3387 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3388 instead of spu_pass_by_reference.
3390 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3392 * calls.c (emit_library_call_value_1): Invoke
3393 promote_function_mode hook on libcall arguments.
3394 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3395 argument being NULL.
3396 * targhooks.c (default_promote_function_mode): Lisewise.
3397 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3398 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3400 * doc/tm.texi: Document that TYPE argument might be NULL.
3402 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3404 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3406 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3409 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3411 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3413 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3414 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3416 * mips-tfile.c: ... here.
3417 Don't include coretypes.h, tm.h, filenames.h.
3418 (saber_stop): Remove definition and all calls.
3419 [__SABER__]: Remove.
3420 (__LINE__): Remove default.
3421 (Size_t, Ptrdiff_t): Remove definitions.
3422 Replace by size_t, ptrdiff_t.
3423 [!MIPS_DEBUGGING_INFO]: Remove.
3424 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3425 (progname): Add const.
3427 Replace all uses by static.
3428 (ALIGN_SYMTABLE_OFFSET): Remove default.
3429 * mips-tdump.c: Don't include coretypes.h, tm.h.
3430 Remove !MIPS_IS_STAB guard.
3431 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3432 $(TM_H), filenames.h dependencies.
3433 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3435 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3438 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3439 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3441 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3444 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3445 account and save/restore RETS.
3446 (PROFILE_BEFORE_PROLOGUE): Define.
3447 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3448 the push insn to use predecrement.
3450 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3453 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3455 2011-05-04 Nick Clifton <nickc@redhat.com>
3457 * config/mn10300/mn10300.c: Include cfgloop.h.
3459 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3460 Lcc or a FLcc insn into the instruction stream.
3461 (mn10300_block_contains_call): New function. Returns true if the
3462 given basic block contains a CALL insn.
3463 (mn10300_loop_contains_call_insn): New function. Returns true if
3464 the given loop contains a CALL insn.
3465 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3466 to use the SETLB and Lcc or FLcc insns.
3467 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3468 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3469 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3470 disable the SETLB optimization.
3471 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3472 __SETLB__ or __NO_SETLB__.
3473 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3474 (movsf_internal): Handle MDR register.
3475 (cmpsi): Make visible.
3476 (setlb): New pattern.
3478 (FLcc): New pattern.
3480 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3483 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3484 for reg<->xmm moves.
3485 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3486 (vec_concatv2di_rex64_sse): Ditto.
3487 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3488 (*vec_extractv2di_1_rex64): Ditto.
3491 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3493 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3495 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3497 2011-05-04 Richard Guenther <rguenther@suse.de>
3499 * tree.h (int_const_binop): Remove notrunc argument.
3500 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3501 create integer constants that are properly truncated.
3502 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3503 (const_binop): Remove zero notrunc argument to int_const_binop.
3504 (size_binop_loc): Likewise.
3505 (fold_div_compare): Likewise.
3506 (maybe_canonicalize_comparison_1): Likewise.
3507 (fold_comparison): Likewise.
3508 (fold_binary_loc): Likewise.
3509 (multiple_of_p): Likewise.
3510 * expr.c (store_constructor): Likewise.
3511 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3512 (maybe_fold_stmt_addition): Likewise.
3513 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3514 * stor-layout.c (layout_type): Likewise.
3515 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3516 * tree-sra.c (build_ref_for_offset): Likewise.
3517 (build_user_friendly_ref_for_offset): Likewise.
3518 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3519 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3520 * tree-ssa-loop-niter.c (inverse): Likewise.
3521 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3522 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3523 * tree-switch-conversion.c (check_range): Likewise.
3524 (build_constructors): Likewise.
3525 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3526 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3527 (extract_range_from_assert): Likewise.
3528 (vrp_int_const_binop): Likewise.
3529 (extract_range_from_binary_expr): Likewise.
3530 (extract_range_from_unary_expr): Likewise.
3531 (check_array_ref): Likewise.
3532 (find_case_label_range): Likewise.
3533 (simplify_div_or_mod_using_ranges): Likewise.
3534 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3535 comparing case labels for merging.
3537 2011-05-03 Mark Wielaard <mjw@redhat.com>
3539 * dwarf2out.c (debug_str_hash_forced): Removed.
3540 (gen_label_for_indirect_string): Removed.
3541 (get_debug_string_label): Removed.
3542 (AT_string_form): Generate label directly.
3543 (output_indirect_string): Test indirect_string_node for
3544 DW_FORM_strp instead of checking label and refcount.
3545 (prune_indirect_string): Removed.
3546 (prune_unused_types): Don't check debug_str_hash_forced or
3547 call prune_indirect_string.
3549 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3552 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3554 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3558 * combine.c (try_combine): Skip debug insns at m_split tests.
3560 2011-04-26 Mark Wielaard <mjw@redhat.com>
3563 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3564 when info_section_emitted.
3566 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3568 * config/mips/mips-opts.h: New.
3569 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3571 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3572 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3573 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3575 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3577 (mips_abi, mips_code_readable): Don't declare.
3578 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3579 (mabi=): Use Enum and Var.
3580 (mips_abi): New Enum and EnumValue entries.
3581 (mcode-readable=): Use Enum and Var.
3582 (mips_code_readable_setting): New Enum and EnumValue entries.
3583 (mr10k-cache-barrier=): Use Enum and Var.
3584 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3586 2011-05-03 Jan Hubicka <jh@suse.cz>
3588 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3589 replace hash by pointer map.
3590 (cgraph_node_set_element_def, cgraph_node_set_element,
3591 const_cgraph_node_set_element, varpool_node_set_element_def,
3592 varpool_node_set_element, const_varpool_node_set_element): Remove.
3593 (free_cgraph_node_set, free_varpool_node_set): New function.
3594 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3595 * tree-emutls.c: Free varpool node set.
3596 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3597 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3598 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3599 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3600 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3601 Move here from ipa.c; implement using pointer_map
3602 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3603 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3604 debug_cgraph_node_set, varpool_node_set_new,
3605 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3606 dump_varpool_node_set, debug_varpool_node_set):
3607 Move to ipa-uitls.c.
3608 * passes.c (ipa_write_summaries): Update.
3610 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3612 From Mike Frysinger:
3613 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3614 bf542/bf544/bf547/bf548/bf549.
3616 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3618 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3620 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3623 * config/bfin/bfin.md (MOVCC): New mode_macro.
3624 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3625 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3626 comments from generated assembly.
3628 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3631 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3632 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3633 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3634 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3635 * config/bfin/lib1funcs.asm (___muldi3): New function.
3637 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3639 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3640 build_function_type_list instead of build_function_type.
3641 Rearrange initialization of `args' to do so.
3643 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3645 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3646 instead of build_function_type.
3648 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3650 * config/rs6000/rs6000.c (spe_init_builtins): Call
3651 build_function_type_list instead of build_function_type.
3652 (paired_init_builtins, altivec_init_builtins): Likewise.
3653 (builtin_function_type): Likewise.
3655 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3657 * config/sh/sh.c (sh_media_init_builtins): Call
3658 build_function_type_list instead of build_function_type.
3660 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3662 * config/sparc/sparc.c (sparc_file_end): Call
3663 build_function_type_list instead of build_function_type.
3665 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3667 * config/alpha/alpha.c (alpha_init_builtins): Call
3668 build_function_type_list instead of build_function_type.
3670 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3672 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3673 build_function_type_list instead of build_function_type.
3675 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3677 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3678 build_function_type_list instead of build_function_type.
3679 Delete `endlink' variable.
3681 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3683 * config/avr/avr.c (avr_init_builtins): Call
3684 build_function_type_list instead of build_function_type.
3686 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3688 * config/picochip/picochip.c (picochip_init_builtins): Call
3689 build_function_type_list instead of build_function_type.
3690 Delete `endlink' variable.
3692 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3694 * config/bfin/bfin.c (bfin_init_builtins): Call
3695 build_function_type_list instead of build_function_type.
3697 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3700 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3701 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3703 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3706 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3707 libbffastfp overrides libgcc when -mfast-fp.
3709 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3711 Originally from Bernd Schmidt
3712 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3713 * config/bfin/bfin.c (override_options): Test it and error if
3716 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3718 Originally From Bernd Schmidt
3719 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3722 2011-05-03 Jeff Law <law@redhat.com>
3724 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3725 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3726 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3727 than accessing AUX field directly. Free the AUX field before
3729 (thread_block, thread_through_loop_header): Likewise.
3730 (thread_single_edge, mark_threaded_blocks): Likewise.
3731 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3732 (register_jump_thread): Do not attempt to thread to a NULL edge.
3734 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3736 * function.c (init_function_start): Call decide_function_section.
3737 * varasm.c (decide_function_section): New function.
3738 (assemble_start_function): When not using
3739 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3740 or first_function_block_is_cold.
3741 * rtl.h (decide_function_section): Declare.
3743 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3744 Jakub Jelinek <jakub@redhat.com>
3747 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3748 only succeed if req_mode is the same as set_mode.
3750 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3752 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3753 * genemit.c (gen_exp): Handle RETURN.
3754 * emit-rtl.c (verify_rtx_sharing): Likewise.
3755 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3756 * rtl.c (copy_rtx): RETURN is shared.
3757 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3759 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3760 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3761 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3762 * config/cris/cris.c (cris_expand_return): Likewise.
3763 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3764 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3765 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3766 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3767 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3769 * config/v850/v850.c (expand_epilogue): Likewise.
3770 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3771 * config/arm/arm.md (epilogue): Likewise.
3772 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3773 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3774 variable to ret_reg.
3776 2011-05-03 Richard Guenther <rguenther@suse.de>
3779 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3780 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3781 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3783 2011-05-03 Richard Guenther <rguenther@suse.de>
3785 * c-decl.c (grokdeclarator): Instead of looking at
3786 TREE_OVERFLOW check if the constant fits in the index type.
3788 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3790 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3791 (vec_store_lanes<mode><mode>): Likewise.
3793 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3795 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3796 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3797 convert_optab_index values.
3798 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3799 * genopinit.c (optabs): Initialize the new optabs.
3800 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3801 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3802 (expand_STORE_LANES): New functions.
3803 * tree.h (build_array_type_nelts): Declare.
3804 * tree.c (build_array_type_nelts): New function.
3805 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3806 (vect_model_load_cost): Likewise.
3807 (vect_store_lanes_supported, vect_load_lanes_supported)
3808 (vect_record_strided_load_vectors): Declare.
3809 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3810 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3811 (vect_transform_strided_load): Split out statement recording into...
3812 (vect_record_strided_load_vectors): ...this new function.
3813 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3814 (write_vector_array, create_array_ref): New functions.
3815 (vect_model_store_cost): Add store_lanes_p argument.
3816 (vect_model_load_cost): Add load_lanes_p argument.
3817 (vectorizable_store): Try to use store-lanes functions for
3819 (vectorizable_load): Likewise load-lanes and loads.
3820 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3821 to vect_model_store_cost.
3822 (vect_build_slp_tree): Likewise vect_model_load_cost.
3824 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3826 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3827 * hooks.c (hook_bool_mode_uhwi_false): New function.
3828 * target.def (array_mode_supported_p): New hook.
3829 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3830 * doc/tm.texi: Regenerate.
3831 * stor-layout.c (mode_for_array): New function.
3832 (layout_type): Use it.
3833 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3834 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3836 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3839 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3840 for -fstack-check if the size to allocate is negative.
3842 2011-05-02 Lawrence Crowl <crowl@google.com>
3844 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3845 (timevar_cond_start): New for starting a timer only when it is not
3847 (timevar_cond_stop): New for stopping a timer when it was not already
3850 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3851 (timevar_cond_start): New as above.
3852 (timevar_cond_stop): New as above.
3854 * timevar.def: Add start/stop timers for compiler phases,
3855 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3856 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3857 and TV_PHASE_FINALIZE.
3858 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3859 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3860 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3861 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3862 Make unused TV_OVERLOAD into a start/stop timer.
3864 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3865 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3866 to indicate that they are start/stop timers.
3868 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3869 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3870 Move initialization to do_compile.
3871 (do_compile): Add initialization from above.
3872 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3874 * c-decl.c (c_write_global_declarations): Add start/stop of
3875 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3877 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3878 or TV_PARSE_INLINE, as appropriate.
3879 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3880 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3882 2011-05-02 Jason Merrill <jason@redhat.com>
3885 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3887 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3890 * c-decl.c (finish_decl): Only create a composite if the types are
3893 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3895 * config/fr30/fr30-protos.h (Mmode): Don't define.
3896 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3897 definition where used.
3898 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3899 define. Expand definitions where used.
3900 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3901 Expand definitions where used.
3902 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3903 rx_function_arg, rx_function_arg_advance,
3904 rx_function_arg_boundary): Expand definitions of those macros.
3905 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3906 definition where used.
3908 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3910 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3912 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3913 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3914 with *movv2sf_internal_rex64_avx.
3915 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3916 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3917 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3918 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3919 "vex" in "prefix" attribute calculation.
3920 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3922 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3925 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3926 inputs match the output.
3928 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3931 * config/m68k/m68k.c (m68k_expand_prologue): Set
3932 current_function_static_stack_size.
3934 2011-05-02 Jan Hubicka <jh@suse.cz>
3936 * lto-streamer.c (lto_streamer_cache_insert_1,
3937 lto_streamer_cache_lookup, lto_streamer_cache_create,
3938 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3939 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3941 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3943 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3944 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3945 config/m68k/t-opts: New files.
3946 * config/m68k/m68k-tables.opt: New file (generated).
3947 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3948 extra_options and m68k/t-opts to tmake_file.
3949 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3950 (all_isas): Initialize using m68k-isas.def.
3951 (all_microarchs): Initialize using m68k-microarchs.def.
3952 (m68k_find_selection): Remove.
3953 (m68k_handle_option): Don't assert that global structures are in
3954 use. Use error_at. Access variables via opts pointer. Don't
3955 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3956 directly for -m68020-40 and -m68020-60.
3957 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3958 m68k_tune_entry here.
3959 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3961 (m68k_library_id_string): Remove declaration.
3962 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3963 (m68k_library_id_string): New Variable.
3964 (march=, mcpu=, mtune=): Use Enum and Var.
3966 2011-05-02 Richard Guenther <rguenther@suse.de>
3968 * varasm.c (output_constructor_regular_field): Compute zero-based
3969 index with double-ints. Make sure to ICE instead of producing
3971 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3972 in asserts. Properly use a signed type.
3974 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3976 * config/i386/sse.md (V): New mode iterator.
3977 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3979 (V_256): Rename from AVX256MODE.
3980 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3981 condition to all users.
3983 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3984 condition to all users.
3985 (VF_128): Make V4SF mode unconditional.
3986 (VF_256): Rename from AVX256MODEF2P.
3987 (VI4F_128): Rename from SSEMODE4S.
3988 (VI8F_128): Rename from SSEMODE2D.
3989 (VI4F_256): Rename from AVX256MODE8P.
3990 (VI8F_256): Rename from AVX256MODE4P.
3991 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3992 (ssescalarmodesuffix): Remove SF and DF modes.
3993 (SSEMODE124): Remove.
3994 (SSEMODE1248): Ditto.
3995 (SSEMODEF2P): Ditto.
3996 (AVXMODEF2P): Ditto.
3997 (AVXMODEFDP): Ditto.
3998 (AVXMODEFSP): Ditto.
3999 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4001 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4003 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4004 xop_pcmov_<mode>256. Use V mode iterator.
4006 Adjust RTX patterns globally for renamed mode attributes.
4008 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4010 * haifa-sched.c (sched_emit_insn): Emit insn before first
4011 non-scheduled insn. Inform back-end about new insn. Add
4012 new insn to scheduled_insns list.
4014 2011-05-02 Richard Guenther <rguenther@suse.de>
4016 PR tree-optimization/48822
4017 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4018 (process_scc): Indicate which iteration we start.
4020 2011-05-02 Jan Hubicka <jh@suse.cz>
4022 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4023 (lto_section_overrun): New.
4024 * lto-section-out.c (append_block): Rename to ...
4025 (lto_append_block): ... this one; export.
4026 (lto_output_1_stream): Move lto lto-streamer.h
4027 (lto_output_data_stream): Update.
4028 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4029 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4032 2011-05-02 Richard Guenther <rguenther@suse.de>
4034 * tree.c (tree_code_counts): New global array.
4035 (record_node_allocation_statistics): Count individual tree codes.
4036 (dump_tree_statistics): Dump individual code stats.
4038 2011-05-01 Jan Hubicka <jh@suse.cz>
4040 * ipa-inline.c (caller_growth_limits): Fix thinko when
4041 looking for largest stack frame.
4042 * ipa-inline.h (dump_inline_summary): Declare.
4043 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4045 (dump_inline_summary): Export.
4046 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4048 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4050 * reginfo.c (memory_move_cost): Change rclass argument type form
4051 'enum reg_class' to reg_class_t.
4052 * reload.h (memory_move_cost): Update prototype.
4053 * postreload.c reload_cse_simplify_set): Change type dclass var to
4055 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4057 (ira_allocate_and_set_costs): Change aclass argument type form
4058 'enum reg_class' to reg_class_t.
4059 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4060 Change aclass argument type to reg_class_t.
4061 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4063 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4064 memory_move_cost call.
4066 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4067 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4068 Change type tmp var to reg_class_t.
4070 2011-04-30 Jan Hubicka <jh@suse.cz>
4072 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4073 inlining into function with flatten attribute.
4074 (want_inline_small_function_p): Be more realistic about inlining
4075 cold calls where callee size grows.
4077 2011-04-30 Jan Hubicka <jh@suse.cz>
4079 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4082 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4084 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4085 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4086 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4087 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4088 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4089 (print_operand): Rename to...
4090 (sparc_print_operand): ...this. Make static. Adjust
4091 sparc_print_operand function call.
4092 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4095 2011-04-30 Jan Hubicka <jh@suse.cz>
4098 * ipa-inline.c (early_inliner): Disable when doing late
4099 addition of function.
4101 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4103 * dwarf2out.c (get_address_mode): New inline.
4104 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4105 if not dwarf_strict emit
4106 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4107 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4108 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4109 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4110 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4111 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4112 mem_loc_descriptor callers.
4113 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4114 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4115 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4116 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4117 (base_types): New variable.
4118 (get_base_type_offset, calc_base_type_die_sizes,
4119 base_type_for_mode, mark_base_types, base_type_cmp,
4120 move_marked_base_types): New functions.
4121 (calc_die_sizes): Assert that die_offset is 0 or equal to
4123 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4124 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4125 callers. If not dwarf_strict, call mem_loc_descriptor even for
4126 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4127 (gen_subprogram_die): Don't give up on call site parameters
4128 with non-integral or large integral modes. Adjust
4129 mem_loc_descriptor callers.
4130 (prune_unused_types): Call prune_unused_types_mark on base_types
4132 (resolve_addr): Call mark_base_types.
4133 (dwarf2out_finish): Call move_marked_base_types.
4135 PR tree-optimization/48809
4136 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4138 (gen_inbound_check): Don't compute index_expr - range_min in utype
4139 again, instead reuse SSA_NAME initialized in build_arrays.
4140 Remove two useless gsi_for_stmt calls.
4142 2011-04-29 Jeff Law <law@redhat.com>
4144 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4146 2011-04-29 Martin Jambor <mjambor@suse.cz>
4148 * cgraph.h (cgraph_postorder): Remove declaration.
4149 * ipa-utils.h (ipa_free_postorder_info): Declare.
4150 (ipa_reverse_postorder): Likewise.
4151 * cgraphunit.c: Include ipa-utils.h.
4152 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4153 * ipa-inline.c: Include ipa-utils.h.
4154 (ipa_inline): Update call to ipa_reverse_postorder.
4155 * ipa-pure-const.c (propagate_pure_const): Update call to
4156 ipa_reduced_postorder and ipa_print_order. Call
4157 ipa_free_postorder_info to clean up.
4158 (propagate_nothrow): Likewise.
4159 * ipa-reference.c (propagate): Removed a useless call to
4160 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4161 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4162 * ipa.c: Include ipa-utils.h.
4163 (ipa_profile): Update call to ipa_reverse_postorder.
4164 (cgraph_postorder): Moved to...
4165 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4166 (ipa_utils_print_order): Renamed to ipa_print_order.
4167 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4169 (ipa_free_postorder_info): New function.
4170 * passes.c: Include ipa-utils.h.
4171 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4172 (ipa_write_summaries): Likewise.
4173 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4174 (cgraphunit.o): Likewise.
4176 (ipa-inline.o): Likewise.
4178 2011-04-29 Jan Hubicka <jh@suse.cz>
4180 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4181 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4182 * ipa-inline.h (clause_t): Turn into unsigned int.
4183 * ipa-inline-analysis.c (add_clause): Do more simplification.
4184 (and_predicates): Shortcut more cases.
4185 (predicates_equal_p): Move forward; check that clauses are properly
4187 (or_predicates): Shortcut more cases.
4188 (edge_execution_predicate): Rewrite as...
4189 (set_cond_stmt_execution_predicate): ... this function; handle
4190 __builtin_constant_p.
4191 (set_switch_stmt_execution_predicate): New .
4192 (compute_bb_predicates): New.
4193 (will_be_nonconstant_predicate): Update TODO.
4194 (estimate_function_body_sizes): Use compute_bb_predicates
4195 and free them later, always try to estimate if stmt is constant.
4196 (estimate_time_after_inlining, estimate_size_after_inlining):
4197 Gracefully handle optimized out edges.
4198 (read_predicate): Fix off by one error.
4200 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4202 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4204 2011-04-27 Xinliang David Li <davidxl@google.com>
4206 * tree-profile.c (init_ic_make_global_vars): Set
4207 tls attribute on ic vars.
4208 * coverage.c (coverage_end_function): Initialize
4209 function_list with zero.
4211 2011-04-29 Richard Guenther <rguenther@suse.de>
4213 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4214 for the type of the result.
4215 (fold_builtin_isascii): Likewise.
4216 (fold_builtin_toascii): Use integer_type_node where appropriate.
4217 (fold_builtin_logb): Likewise.
4218 (fold_builtin_frexp): Likewise.
4219 (fold_builtin_strstr): Likewise.
4220 (fold_builtin_strpbrk): Likewise.
4221 (fold_builtin_fputs): Likewise.
4222 (fold_builtin_sprintf): Likewise.
4223 (fold_builtin_snprintf): Likewise.
4224 (fold_builtin_printf): Likewise.
4225 (do_mpfr_remquo): Use a proper type for the assigned constant.
4226 (do_mpfr_lgamma_r): Likewise.
4227 * dwarf2out.c (resolve_one_addr): Use size_int.
4228 * except.c (init_eh): Likewise.
4229 (assign_filter_values): Use integer_type_node for filter values.
4230 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4232 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4233 for EH region numbers.
4234 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4235 for the shift amount.
4237 2011-04-29 Richard Guenther <rguenther@suse.de>
4239 * expr.h (expand_shift): Rename to ...
4240 (expand_variable_shift): ... this.
4241 (expand_shift): Take a constant shift amount.
4242 * expmed.c (expand_shift): Rename to ...
4243 (expand_variable_shift): ... this.
4244 (expand_shift): New wrapper around expand_variable_shift.
4245 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4246 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4247 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4248 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4249 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4250 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4251 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4252 emit_store_flag_1, emit_store_flag): Likewise.
4253 * builtins.c (expand_builtin_signbit): Likewise.
4254 * calls.c (load_register_parameters): Likewise.
4255 * function.c (assign_parm_setup_block): Likewise.
4256 * lower-subreg.c (resolve_shift_zext): Likewise.
4257 * optabs.c (widen_bswap, expand_abs_nojump,
4258 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4259 * spu/spu.c (spu_expand_extv): Likewise.
4260 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4262 2011-04-29 Richard Guenther <rguenther@suse.de>
4264 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4265 for the remapped region number.
4266 * predict.c (build_predict_expr): Use integer_type_node for the
4268 * fold-const.c (fold_binary_loc): Use integer_type_node for
4269 the shift amount. Use a proper type for the PLUS_EXPR operand.
4271 2011-04-29 Michael Matz <matz@suse.de>
4273 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4274 other trees that just builtins.
4275 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4277 2011-04-29 Richard Guenther <rguenther@suse.de>
4279 * tree-nested.c (get_trampoline_type): Use size_int.
4280 (get_nl_goto_field): Likewise.
4281 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4283 (lower_eh_constructs_2): Likewise.
4284 (lower_resx): Likewise.
4285 (lower_eh_dispatch): Likewise.
4286 * tree-mudflap.c (mf_build_string): Use size_int.
4287 (mudflap_register_call): Use integer_type_node for the flag.
4288 (mudflap_enqueue_constant): Use size_int.
4289 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4290 instead of rebuilding it.
4292 2011-04-29 Richard Guenther <rguenther@suse.de>
4294 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4295 Handle OBJ_TYPE_REF.
4296 (find_func_aliases_for_call): Use it more consistently.
4298 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4300 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4301 (rank_for_schedule): Use it.
4302 (schedule_block): Set it.
4304 2011-04-28 David Li <davidxl@google.com>
4306 * tree.c (crc32_string): Use crc32_byte.
4307 (crc32_byte): New function.
4308 * tree.h (crc32_byte): New function.
4309 * gcov.c (read_graph_file): Handle new cfg_cksum.
4310 (read_count_file): Ditto.
4311 * profile.c (instrument_values): Ditto.
4312 (get_exec_counts): Ditto.
4313 (read_profile_edge_counts): Ditto.
4314 (compute_branch_probabilities): Ditto.
4315 (compute_value_histograms): Ditto.
4316 (branch_prob): Ditto.
4317 (end_branch_prob): Ditto.
4318 * coverage.c (read_counts_file): Ditto.
4319 (get_coverage_counts): Ditto.
4320 (tree_coverage_counter_addr): Ditto.
4321 (coverage_checksum_string): Ditto.
4322 (coverage_begin_output): Ditto.
4323 (coverage_end_function): Ditto.
4324 (build_fn_info_type): Ditto.
4325 (build_fn_info_value): Ditto.
4326 * libgcov.c (gcov_exit): Ditto.
4327 * gcov-dump.c (tag_function): Ditto.
4328 (compute_checksum): Remove.
4330 2011-04-29 Alan Modra <amodra@gmail.com>
4332 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4333 unspec plus offset. Tidy macho code.
4335 2011-04-29 Martin Jambor <mjambor@suse.cz>
4337 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4338 node instead of a decl. Update all callers.
4339 * cgraph.h: Update declaration.
4341 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4343 PR tree-optimization/48765
4344 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4345 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4346 to indicate if loop aware SLP is being used. Scan the statements
4347 and update the vectorization factor according to the type of
4348 vectorization before statement analysis.
4349 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4350 pass it to vect_analyze_loop_operations.
4351 (vectorizable_reduction): Set number of copies to 1 in case of pure
4353 * tree-vect-stmts.c (vectorizable_conversion,
4354 vectorizable_assignment, vectorizable_shift,
4355 vectorizable_operation, vectorizable_type_demotion,
4356 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4358 (vectorizable_condition): Move the check that it is not SLP
4359 vectorization before the number of copies check.
4360 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4361 to vectorize the loop using SLP.
4363 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4366 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4369 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4371 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4372 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4373 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4374 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4375 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4377 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4378 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4379 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4380 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4381 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4382 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4384 * config/i386/linux.h (REG_NAME): Don't define.
4385 * config/i386/linux64.h (REG_NAME): Don't define.
4386 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4387 Undefine before defining.
4389 2011-04-28 Jan Hubicka <jh@suse.cz>
4391 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4392 nonconstant_names array.
4393 (estimate_function_body_sizes): Build nonconstant_names array; handle
4394 BUILT_IN_CONSTANT_P.
4396 2011-04-28 Richard Guenther <rguenther@suse.de>
4400 2011-04-28 Richard Guenther <rguenther@suse.de>
4402 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4403 as late as possible.
4405 2011-04-28 Richard Guenther <rguenther@suse.de>
4407 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4408 (debug_constraint): Do it here.
4409 (dump_constraints): And here.
4410 (rewrite_constraints): And here.
4411 (dump_constraint_edge): Remove.
4412 (dump_constraint_graph): Rewrite to produce DOT output.
4413 (solve_constraints): Build succ graph as late as possible.
4414 Dump constraint graphs before and after solving.
4416 2011-04-28 Richard Guenther <rguenther@suse.de>
4418 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4419 New function split out from ...
4420 (find_func_aliases): ... here. Call it.
4421 (find_func_aliases_for_call): Likewise.
4423 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4425 * internal-fn.h (internal_fn_name_array): Declare.
4426 (internal_fn_flags_array): Likewise.
4428 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4430 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4431 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4433 (ssemodefsuffix): Remove.
4434 (ssevecmodesuffix): New mode attribute.
4435 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4436 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4437 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4438 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4439 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4440 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4441 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4442 ssemodesuffix mode attribute.
4443 (float splitters): Use ssevecmodesuffix mode attribute.
4444 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4445 (sseinsmode): Rename from avxvecmode.
4446 (avxsizesuffix): Rename from avxmodesuffix.
4447 (sseintvecmode): Rename from avxpermvecmode.
4448 (ssedoublevecmode): Rename from ssedoublesizemode.
4449 (ssehalfvecmode): Rename from avxhalfvecmode.
4450 (ssescalarmode): Rename from avxscalarmode.
4451 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4452 templates for ssemodesuffix mode attribute.
4453 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4456 Adjust RTX patterns globally for renamed mode attributes.
4458 2011-04-27 Jan Hubcika <jh@suse.cz>
4460 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4461 * ipa-inline-analysis.c: Include alloc-pool.h.
4462 (edge_predicate_pool): New.
4463 (trye_predicate_p): New function
4464 (false_predicate_p): New function.
4465 (add_clause): Sanity check that false clauses are "optimized";
4466 never add clauses to predicate that is already known to be false.
4467 (and_predicate): Use flase_predicate_p.
4468 (evaulate_predicate): Rename to ...
4469 (evaluate_predicate): ... this one; update all callers; assert
4470 that false is not listed among possible truths.
4471 (dump_predicate): Use true_predicate_p.
4472 (account_size_time): Use false_predicate_p.
4473 (evaulate_conditions_for_edge): Rename to ...
4474 (evaluate_conditions_for_edge) ... this one.
4475 (edge_set_predicate): New function.
4476 (inline_edge_duplication_hook): Duplicate edge predicates.
4477 (inline_edge_removal_hook): Free edge predicates.
4478 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4479 (dump_inline_summary): Update.
4480 (estimate_function_body_sizes): Set edge predicates.
4481 (estimate_calls_size_and_time): Handle predicates.
4482 (estimate_callee_size_and_time): Update.
4483 (remap_predicate): Add toplev_predicate; update comment.
4484 (remap_edge_predicates): New function.
4485 (inline_merge_summary): Compute toplev predicate; update.
4486 (read_predicate): New function.
4487 (read_inline_edge_summary): Use it.
4488 (inline_read_section): Likewise.
4489 (write_predicate): New function.
4490 (write_inline_edge_summary): Use it.
4491 (inline_write_summary): Likewise.
4492 (inline_free_summary): Free alloc pool and edge summary vec.
4494 2011-04-27 Richard Guenther <rguenther@suse.de>
4496 * tree-ssa-structalias.c (changed_count): Remove.
4497 (changed): Use a bitmap.
4498 (unify_nodes): Adjust.
4499 (do_sd_constraint): Likewise.
4500 (do_ds_constraint): Likewise.
4501 (do_complex_constraint): Likewise.
4502 (solve_graph): Likewise.
4504 2011-04-27 Jan Hubicka <jh@suse.cz>
4506 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4508 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4510 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4511 (avx_vperm2f128_*_operand): Ditto.
4512 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4513 Use avx_vpermilp_parallel in insn condition.
4514 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4515 Use avx_vperm2f128_parallel in insn condition.
4517 2011-04-27 Richard Guenther <rguenther@suse.de>
4519 * Makefile.in (tree-ssa-structalias.o): Remove
4520 gt-tree-ssa-structalias.h dependency.
4521 (GTFILES): Remove tree-ssa-structalias.c.
4522 * tree.c (allocate_decl_uid): New function.
4523 (make_node_stat): Use it.
4524 (copy_node_stat): Likewise.
4525 * tree.h (allocate_decl_uid): Declare.
4526 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4527 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4528 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4529 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4530 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4531 (struct heapvar_map): Likewise.
4532 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4533 heapvar_insert): Likewise.
4534 (make_heapvar_for): Rename to ...
4535 (make_heapvar): ... this. Simplify.
4536 (fake_var_decl_obstack): New global var.
4537 (build_fake_var_decl): New function.
4538 (make_constraint_from_heapvar): Adjust.
4539 (handle_lhs_call): Likewise.
4540 (create_function_info_for): Likewise.
4541 (intra_create_variable_infos): Likewise.
4542 (init_alias_vars): Allocate fake_var_decl_obstack.
4543 (init_alias_heapvars, delete_alias_heapvars): Remove.
4544 (compute_points_to_sets): Do not call init_alias_heapvars.
4545 (ipa_pta_execute): Likewise.
4546 (delete_points_to_sets): Free fake_var_decl_obstack.
4548 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4550 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4551 (si_from_UTItype, si_to_UTItype): New functions.
4552 (__udivmodti4): Use them to implement type-punning.
4553 * config/spu/multi3.c (union qword_TItype): New data type.
4554 (si_from_TItype, si_to_TItype): New functions.
4555 (__multi3): Use them to implement type-punning.
4557 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4559 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4561 2011-04-27 Jan Hubicka <jh@suse.cz>
4563 * ipa-prop.c (function_insertion_hook_holder): New holder.
4564 (ipa_add_new_function): New function.
4565 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4566 Register/deregister holder.
4568 2011-04-27 Richard Guenther <rguenther@suse.de>
4570 PR tree-optimization/48772
4571 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4573 2011-04-27 Richard Guenther <rguenther@suse.de>
4575 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4576 TARGET_MEM_REF handling.
4578 2011-04-27 Nick Clifton <nickc@redhat.com>
4580 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4581 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4582 (REG_CLASS_NAMES): Likewise.
4583 (REG_CLASS_CONTENTS): Likewise.
4584 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4585 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4586 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4587 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4588 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4589 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4590 duplicate register classes.
4591 (frv_class_likely_spilled_p): Likewise.
4592 (frv_register_move_cost): Likewise.
4594 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4595 end of the regno_reg_class array.
4597 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4600 * c-typeck.c (build_binary_op): Don't wrap arguments if
4601 int_operands is true.
4603 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4606 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4607 targetm.calls.must_pass_in_stack for void type.
4609 2011-04-26 Jan Hubicka <jh@suse.cz>
4611 * cgraphbuild.c (build_cgraph_edges): Update call
4612 of cgraph_create_edge and cgraph_create_indirect_edge.
4613 * cgraph.c (cgraph_create_edge_including_clones,
4614 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4615 cgraph_update_edges_for_call_stmt_node): Do not take nest
4616 argument; do not initialize call_stmt_size/time.
4617 (dump_cgraph_node): Do not dump nest.
4618 (cgraph_clone_edge): Do not take loop_nest argument;
4619 do not propagate it; do not clone call_stmt_size/time.
4620 (cgraph_clone_node): Likewise.
4621 (cgraph_create_virtual_clone): Update.
4622 * cgraph.h (struct cgraph_edge): Remove
4623 call_stmt_size/call_stmt_time/loop_nest.
4624 (cgraph_create_edge, cgraph_create_indirect_edge,
4625 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4627 * tree-emutls.c (gen_emutls_addr): Update.
4628 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4629 loop_nest; handle indirect calls, too.
4630 (clone_inlined_nodes): Do not care about updating inline summaries.
4631 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4632 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4633 stream call_stmt_size/call_stmt_time/loop_nest.
4634 * ipa-inline.c (edge_badness): Update.
4635 (ipa_inline): dump summaries after inlining.
4636 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4638 (inline_edge_summary): New function.
4639 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4640 (inline_edge_removal_hook): Handle edge summaries.
4641 (inline_edge_duplication_hook): New hook.
4642 (inline_summary_alloc): Alloc hooks.
4643 (initialize_growth_caches): Do not register removal hooks.
4644 (free_growth_caches); Do not free removal hook.
4645 (dump_inline_edge_summary): New function.
4646 (dump_inline_summary): Use it.
4647 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4648 (inline_update_callee_summaries): New function.
4649 (inline_merge_summary): Use it.
4650 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4651 (read_inline_edge_summary): New function.
4652 (inline_read_section): Use it.
4653 (write_inline_edge_summary): New function.
4654 (inline_write_summary): Use it.
4655 (inline_free_summary): Free edge new holders.
4656 * tree-inline.c (copy_bb): Update.
4658 2011-04-26 Jason Merrill <jason@redhat.com>
4660 * tree-eh.c (lower_try_finally_switch): Create the label along with
4661 the CASE_LABEL_EXPR.
4663 2011-04-26 David S. Miller <davem@davemloft.net>
4664 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4666 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4667 * configure: Regenerate.
4669 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4672 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4674 (VEC_reduc): New code iterator and splitters for vector reduction.
4675 (VEC_reduc_name): Ditto.
4676 (VEC_reduc_rtx): Ditto.
4677 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4678 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4680 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4681 support for extracting SF on VSX.
4683 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4684 generating xscvspdp.
4685 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4686 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4687 double add, minimum, maximum vector reduction.
4688 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4689 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4690 optimize double vector reduction.
4691 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4693 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4695 * config/fr30/fr30.h (inhibit_libc): Don't define.
4696 * config/m32r/m32r-protos.h: Correct comment.
4697 * config/v850/v850.h (GHS_default_section_names,
4698 GHS_current_section_names): Use tree, not union tree_node *.
4700 2011-04-26 Xinliang David Li <davidxl@google.com>
4702 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4703 * c-family/c-opts.c (c_common_handle_option): Set
4704 warn_maybe_uninitialized.
4705 * opts.c (common_handle_option): Ditto.
4706 * common.opt: New option.
4707 * tree-ssa.c (warn_uninit): Add one more parameter.
4708 (warn_uninitialized_var): Pass warning code.
4709 * tree-flow.h: Interface change.
4711 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4713 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4714 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4715 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4717 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4719 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4720 * config/mips/mips.opt (mmips-tfile): Remove.
4722 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4723 mips-tdump reference to ...
4724 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4725 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4726 reference by Tru64 UNIX.
4728 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4731 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4732 is error_mark_node, set value to NULL.
4734 PR tree-optimization/48734
4735 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4736 if return value from maybe_fold_*_comparsions isn't something
4737 the code is prepared to handle.
4739 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4741 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4743 (ext_QIreg_nomode_operands): Remove.
4744 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4748 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4750 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4752 2011-04-26 Richard Guenther <rguenther@suse.de>
4754 * c-typeck.c (build_unary_op): Do not expand array-refs via
4755 pointer arithmetic. Only adjust qualifiers for function types.
4757 2011-04-26 Richard Guenther <rguenther@suse.de>
4760 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4761 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4762 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4763 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4765 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4767 * doc/extend.texi: Document __underlying_type.
4769 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4771 * config/rs6000/titan.md (automata_option "progress"): Remove.
4773 2011-04-25 Jeff Law <law@redhat.com>
4775 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4777 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4779 * system.h (ENUM_BITFIELD): Remove.
4781 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4782 Eric Botcazou <ebotcazou@adacore.com>
4784 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4785 for STORE_FLAG_VALUE==-1 case.
4787 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4790 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4791 LEGITIMATE_PIC_OPERAND_P.
4793 2011-04-24 Jan Hubicka <jh@suse.cz>
4795 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4797 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4798 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4799 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4800 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4801 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4802 Sanity check predicate length.
4803 (remap_predicate): Likewise; sanity check jump functions.
4804 (inline_read_section, inline_write_summary): Sanity check
4807 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4810 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4811 __is_literal_type, and __is_trivial; update throughout about
4812 possibly cv-qualified void types.
4814 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4816 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4817 testsuite and make it version agnostic.
4819 2011-04-22 Jan Hubicka <jh@suse.cz>
4821 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4823 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4826 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4827 to VOID_TYPE even around MODIFY_EXPR.
4829 2011-04-22 Mike Stump <mikestump@comcast.net>
4831 * gensupport.c (read_md_rtx): Fix typo in comment.
4832 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4835 2011-04-22 Jan Hubicka <jh@suse.cz>
4837 * gengtype.c (open_base_files): Add ipa-inline.h include.
4838 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4839 ipa-prop.c; update all uses.
4840 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4841 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4842 merge summary of inlined function into former caller.
4843 * ipa-inline.c (max_benefit): Remove.
4844 (edge_badness): Compensate for removal of benefits.
4845 (update_caller_keys): Use
4846 reset_node_growth_cache/reset_edge_growth_cache.
4847 (update_callee_keys): Likewise.
4848 (update_all_callee_keys): Likewise.
4849 (inline_small_functions): Do not collect max_benefit; do not reset
4850 estimated_growth; call free_growth_caches and initialize_growth_caches.
4851 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4852 struct size_time_entry): New structures.
4853 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4854 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4855 and estimated_growth.
4856 (edge_growth_cache_entry): New structure.
4857 (node_growth_cache, edge_growth_cache): New global vars.
4858 (estimate_growth): Turn into inline.
4859 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4860 initialize_growth_caches, free_growth_caches): Declare.
4861 (estimate_edge_growth): Rewrite.
4862 (estimate_edge_time): Implement as inline cache lookup.
4863 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4865 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4866 (NUM_CONDITIONS): New constant.
4867 (predicate_conditions): New enum.
4868 (IS_NOT_CONSTANT): New constant.
4869 (edge_removal_hook_holder): New var.
4870 (node_growth_cache, edge_growth_cache): New global vars.
4871 (true_predicate, single_cond_predicate, false_predicate,
4872 not_inlined_predicate, add_condition, add_clause, and_predicates,
4873 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4874 dump_clause, dump_predicate, account_size_time,
4875 evaulate_conditions_for_edge): New functions.
4876 (inline_summary_alloc): Move to heap.
4877 (inline_node_removal_hook): Clear condition and entry vectors.
4878 (inline_edge_removal_hook): New function.
4879 (initialize_growth_caches, free_growth_caches): New function.
4880 (dump_inline_summary): Update.
4881 (edge_execution_predicate): New function.
4882 (will_be_nonconstant_predicate): New function.
4883 (estimate_function_body_sizes): Compute BB and constantness predicates.
4884 (compute_inline_parameters): Do not clear estimated_growth.
4885 (estimate_edge_size_and_time): New function.
4886 (estimate_calls_size_and_time): New function.
4887 (estimate_callee_size_and_time): New function.
4888 (remap_predicate): New function.
4889 (inline_merge_summary): New function.
4890 (do_estimate_edge_time): New function based on...
4891 (estimate_edge_time): ... this one.
4892 (do_estimate_edge_growth): New function.
4893 (do_estimate_growth): New function based on....
4894 (estimate_growth): ... this one.
4895 (inline_analyze_function): Analyze after deciding on jump functions.
4896 (inline_read_section): New function.
4897 (inline_read_summary): Use it.
4898 (inline_write_summary): Write all the new data.
4899 * ipa-prop.c (ipa_get_param_decl_index): Export.
4900 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4901 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4903 (ipa_get_lattice): Move here from ipa-cp.c
4904 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4905 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4906 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4907 cgraph_edge_inlinable_p): Remove.
4908 * cgraphunit.c: Include ipainline.h
4909 (cgraph_process_new_functions): Update call of
4910 compute_inline_parameters.
4912 2011-04-22 Richard Guenther <rguenther@suse.de>
4914 * tree.c (build_int_cst): Properly create canonicalized integer
4916 (build_int_cst_type): Remove scary comments.
4918 2011-04-22 Xinliang David Li <davidxl@google.com>
4920 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4921 by default when -Wno-error is not specified.
4922 * opts-global.c (decode_options): Remove call to
4923 control_warning_options.
4925 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4927 PR tree-optimization/48717
4928 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4929 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4931 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4933 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4934 definition where used.
4936 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4939 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4940 TREE_STATIC variables declared inside of some OpenMP construct.
4942 2011-04-22 Martin Jambor <mjambor@suse.cz>
4945 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4947 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4950 * c-typeck.c (pop_init_level): Do not warn about initializing
4953 2011-04-22 Alan Modra <amodra@gmail.com>
4955 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4956 when returning call_cookie.
4957 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4958 pointers, to functions with no more vector args than the current
4959 function, and some non-local calls for ABI_V4.
4960 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4961 sibcall_nonlocal_aix64): Combine to ..
4962 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4963 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4964 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4965 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4966 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4968 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4969 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4970 sibcall_value_symbolic_64): Delete.
4972 2011-04-21 Xinliang David Li <davidxl@google.com>
4974 * cgraph.h: Remove pid.
4975 * cgraph.c: Remove pid.
4976 * value-prof.c (init_node_map): New function.
4977 (del_node_map): New function.
4978 (find_func_by_funcdef_no): New function.
4979 (gimple_ic_transform): Call new function.
4980 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4981 * function.c (get_last_funcdef_no): New function.
4982 * function.h (get_last_funcdef_no): New function.
4983 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4984 to libgcov function.
4985 (tree-profiling): Call node map init and delete function.
4987 2011-04-21 Ian Lance Taylor <iant@google.com>
4989 * godump.c (go_format_type): Use exported Go name for anonymous
4992 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4994 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4995 Call builtin_function_type_list instead of builtin_function_type.
4996 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4998 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5000 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5001 build_function_type_list instead of build_function_type.
5002 Delete variable `endlink'.
5004 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5006 * config/s390/s390.c (s390_init_builtins): Call
5007 build_function_type_list instead of build_function_type.
5009 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5011 * config/ia64/ia64.c (ia64_init_builtins): Call
5012 build_function_type_list instead of builtin_function_type.
5014 2011-04-21 Easwaran Raman <eraman@google.com>
5016 * cfgexpand.c (stack_var): Remove OFFSET...
5017 (add_stack_var): ...and its reference here...
5018 (expand_stack_vars): ...and here.
5019 (stack_var_cmp): Sort by descending order of size.
5020 (partition_stack_vars): Change heuristic.
5021 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5022 (dump_stack_var_partition): Add newline after each partition.
5024 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5025 Jeff Law <law@redhat.com>
5027 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5028 * gengtype.c (matching_file_name_substitute): Likewise.
5030 2011-04-21 Richard Guenther <rguenther@suse.de>
5033 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5035 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5037 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5039 2011-04-21 Richard Guenther <rguenther@suse.de>
5041 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5044 2011-04-21 Richard Guenther <rguenther@suse.de>
5046 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5047 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5048 Use DECL_P, not SSA_VAR_P.
5049 (ptr_derefs_may_alias_p): Likewise.
5050 (ptr_deref_may_alias_ref_p_1): Likewise.
5051 (decl_refs_may_alias_p): Likewise.
5052 (refs_may_alias_p_1): Likewise.
5053 (ref_maybe_used_by_call_p_1): Likewise.
5054 (call_may_clobber_ref_p_1): Likewise.
5055 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5056 are either MEM_REF or TARGET_MEM_REF.
5057 (indirect_refs_may_alias_p): Likewise.
5058 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5059 for MEM_EXPR of indirect calls.
5061 2011-04-21 Tristan Gingold <gingold@adacore.com>
5063 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5064 (dst_file_info_struct): Remove flen field.
5065 (lookup_filename): Remove code that set flen field.
5067 2011-04-21 Tristan Gingold <gingold@adacore.com>
5069 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5071 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5074 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5075 vec_extract and vec_concat for non-SSE4_1 targets.
5077 2011-04-21 Richard Guenther <rguenther@suse.de>
5079 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5082 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5084 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5086 (FILE): Don't undefine.
5088 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5090 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5092 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5094 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5095 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5096 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5098 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5099 definitions where used.
5100 * config/microblaze/microblaze.h (struct microblaze_args): Use
5101 rtx, not struct rtx_def *.
5102 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5104 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5105 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5106 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5107 not struct rtx_def *.
5108 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5110 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5112 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5114 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5116 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5117 operand_equal_p to compare DR_BASE_ADDRESSes.
5118 (vect_check_interleaving): Likewise.
5120 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5123 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5124 for all Neon struct constants.
5126 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5128 * target.def (legitimate_constant_p): New hook.
5129 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5130 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5131 * doc/tm.texi: Regenerate.
5132 * hooks.h (hook_bool_mode_rtx_true): Declare.
5133 * hooks.c (hook_bool_mode_rtx_true): Define.
5134 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5135 * calls.c (precompute_register_parameters): Replace uses of
5136 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5137 (emit_library_call_value_1): Likewise.
5138 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5139 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5140 * ira-costs.c (scan_one_insn): Likewise.
5141 * recog.c (general_operand, immediate_operand): Likewise.
5142 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5143 * reload1.c (init_eliminable_invariants): Likewise.
5145 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5147 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5148 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5150 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5151 * config/alpha/predicates.md (input_operand): Update call to
5152 alpha_legitimate_constant_p.
5154 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5155 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5156 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5157 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5158 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5159 (arm_legitimate_constant_p): New functions.
5160 (arm_cannot_force_const_mem): Make static.
5162 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5164 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5165 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5166 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5167 instead of bfin_legitimate_constant_p.
5168 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5169 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5171 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5173 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5175 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5176 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5177 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5178 (frv_legitimate_constant_p): Make static. Add a mode argument.
5180 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5181 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5182 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5184 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5185 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5186 * config/i386/i386.c (legitimate_constant_p): Rename to...
5187 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5189 (ix86_cannot_force_const_mem): Update accordingly.
5190 (ix86_legitimate_address_p): Likewise.
5191 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5192 * config/i386/i386.md: Update commentary.
5194 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5195 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5196 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5197 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5199 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5201 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5202 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5203 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5204 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5206 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5207 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5208 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5210 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5211 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5212 (m32r_legitimate_constant_p): New function.
5214 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5215 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5216 LEGITIMATE_CONSTANT_P.
5217 (LEGITIMATE_CONSTANT_P): Delete.
5218 * config/m68k/m68k.c (m68k_expand_prologue): Call
5219 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5220 (m68k_legitimate_constant_p): New function.
5221 * config/m68k/m68k.md: Update comments.
5223 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5224 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5225 (mcore_legitimate_constant_p): New function.
5227 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5228 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5229 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5230 Add a mode argument.
5231 (mep_legitimate_address): Update accordingly.
5232 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5234 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5236 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5237 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5238 static. Check OP's mode for VOIDmode.
5239 (microblaze_legitimate_constant_p): New function.
5240 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5242 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5243 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5244 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5245 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5246 * config/mips/predicates.md: Update comments.
5248 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5249 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5250 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5251 (mmix_legitimate_constant_p): Make static, return a bool, and take
5253 (mmix_print_operand_address): Update accordingly.
5255 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5257 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5258 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5259 static. Add a mode argument.
5260 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5262 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5264 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5265 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5266 (pa_legitimate_constant_p): New function.
5268 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5270 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5271 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5272 (pdp11_legitimate_constant_p): New function.
5274 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5275 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5276 (rs6000_legitimate_constant_p): New function.
5278 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5279 (rx_legitimate_constant_p): ...this.
5280 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5281 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5282 (rx_legitimate_constant_p): ...this.
5283 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5284 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5286 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5287 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5288 * config/s390/s390.c (legitimate_constant_p): Rename to...
5289 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5290 and add a mode argument.
5291 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5293 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5295 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5296 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5297 (sh_legitimate_constant_p): New function.
5299 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5300 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5301 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5302 (legitimate_constant_p): Rename to...
5303 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5305 (constant_address_p): Update accordingly.
5307 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5308 argument and return a bool.
5309 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5310 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5311 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5312 (spu_rtx_costs): Update accordingly.
5313 * config/spu/predicates.md (vec_imm_operand): Likewise.
5315 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5317 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5318 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5319 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5321 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5322 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5323 * config/vax/vax.c (legitimate_constant_p): Likewise.
5325 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5326 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5327 (xtensa_legitimate_constant_p): New function.
5329 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5331 * target.def (cannot_force_const_mem): Add a mode argument.
5332 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5333 * doc/tm.texi: Regenerate.
5334 * hooks.h (hook_bool_mode_rtx_false): Declare.
5335 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5336 (hook_bool_mode_const_rtx_true): Likewise.
5337 (hook_bool_mode_rtx_false): New function.
5338 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5339 to be non-VOID. Update call to cannot_force_const_mem.
5340 (find_reloads): Update accordingly.
5341 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5342 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5344 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5345 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5346 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5347 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5348 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5349 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5350 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5351 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5352 (m68k_cannot_force_const_mem): ...this new function.
5353 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5355 (mips_const_insns, mips_legitimize_const_move): Update calls.
5356 (mips_secondary_reload_class): Likewise.
5357 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5358 (pa_cannot_force_const_mem): ...this new function.
5359 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5360 (rs6000_cannot_force_const_mem): ...this new function.
5361 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5363 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5364 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5366 (xtensa_cannot_force_const_mem): ...this new function.
5368 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5370 * config/mips/mips.c (mips16_build_function_stub): Call
5371 build_function_type_list instead of build_function_type.
5372 (mips16_build_call_stub): Likewise.
5374 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5376 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5377 instead of build_function_type.
5379 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5381 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5382 instead of build_function_type.
5384 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5387 * config/i386/i386.md (insv): Change operand 0 constraint to
5388 "register_operand". Change operand 1 and 2 constraint to
5389 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5390 * config/i386/sse.md (sse4_1_pinsrb): Export.
5391 (sse2_pinsrw): Ditto.
5392 (sse4_1_pinsrd): Ditto.
5393 (sse4_1_pinsrq): Ditto.
5394 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5395 * config/i386/i386.c (ix86_expand_pinsr): New.
5397 2011-04-20 Easwaran Raman <eraman@google.com>
5399 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5400 containing union type only with -fstrict-aliasing.
5402 2011-04-20 Jim Meyering <meyering@redhat.com>
5404 Remove useless if-before-free tests.
5405 * calls.c (expand_call, save_area): Likewise.
5406 * cfgcleanup.c (try_forward_edges): Likewise.
5407 * collect2.c (collect_execute): Likewise.
5408 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5409 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5410 * coverage.c (coverage_checksum_string): Likewise.
5411 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5412 * cselib.c (cselib_init): Likewise.
5413 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5414 (df_set_clean_cfg): Likewise.
5415 * function.c (free_after_compilation): Likewise.
5416 * gcc.c (do_spec_1, main): Likewise.
5417 * gcov.c (create_file_names): Likewise.
5418 * gensupport.c (identify_predicable_attribute): Likewise.
5419 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5420 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5421 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5422 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5423 * ipa-pure-const.c (local_pure_const): Likewise.
5424 * ipa-reference.c (propagate): Likewise.
5425 * ira-costs.c (free_ira_costs): Likewise.
5426 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5427 * matrix-reorg.c (mat_free): Likewise.
5428 * prefix.c (get_key_value): Likewise.
5429 * profile.c (compute_value_histograms): Likewise.
5430 * reload1.c (free_reg_equiv): Likewise.
5431 * sched-deps.c (free_deps): Likewise.
5432 * sel-sched-ir.c (fence_clear): Likewise.
5433 * sese.c (set_rename, if_region_set_false_region): Likewise.
5434 * tree-data-ref.c (free_rdg): Likewise.
5435 * tree-eh.c (lower_try_finally): Likewise.
5436 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5437 * tree-ssa-live.c (delete_var_map): Likewise.
5438 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5439 * tree-ssa-pre.c (phi_trans_add): Likewise.
5441 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5443 PR tree-optimization/48611
5444 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5445 beyond ERT_MUST_NOT_THROW region.
5447 2011-04-20 Catherine Moore <clm@codesourcery.com>
5449 * config/mips/mips.opt (mfix-24k): New.
5450 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5451 * config/mips/mips.md (length): Increase by 4 for stores if
5453 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5454 all noreorder if fixing 24K errata.
5455 * doc/invoke.texi: Document mfix-24k.
5457 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5459 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5460 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5462 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5464 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5465 (const_ok_for_op): ... to here.
5467 2011-04-20 Kai Tietz <ktietz@redhat.com>
5469 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5470 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5472 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5474 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5476 2011-04-20 Richard Guenther <rguenther@suse.de>
5478 PR tree-optimization/47892
5479 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5482 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5484 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5486 2011-04-20 Tristan Gingold <gingold@adacore.com>
5488 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5490 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5494 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5495 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5496 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5497 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5498 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5500 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5503 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5504 (avr_asm_named_section, avr_asm_output_aligned_common,
5505 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5506 New functions to update...
5507 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5508 (avr_asm_init_sections): Overwrite section callbacks for
5509 data_section, bss_section.
5510 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5512 (avr_file_end): ...here.
5514 2011-04-20 Richard Guenther <rguenther@suse.de>
5517 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5518 objects and types here. Adjust for their offset before comparing.
5520 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5522 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5525 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5527 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5528 (GIMPLE_H): Include $(INTERNAL_FN_H).
5529 (OBJS-common): Add internal-fn.o.
5530 (internal-fn.o): New rule.
5531 * internal-fn.def: New file.
5532 * internal-fn.h: Likewise.
5533 * internal-fn.c: Likewise.
5534 * gimple.h: Include internal-fn.h.
5535 (GF_CALL_INTERNAL): New gf_mask.
5536 (gimple_statement_call): Put fntype into a union with a new
5538 (gimple_build_call_internal): Declare.
5539 (gimple_build_call_internal_vec): Likewise.
5540 (gimple_call_same_target_p): Likewise.
5541 (gimple_call_internal_p): New function.
5542 (gimple_call_internal_fn): Likewise.
5543 (gimple_call_fntype): Return null for internal calls.
5544 (gimple_call_set_fntype): Assert that the function is not internal.
5545 (gimple_call_set_fn): Likewise.
5546 (gimple_call_set_fndecl): Likewise.
5547 (gimple_call_set_internal_fn): New function.
5548 (gimple_call_addr_fndecl): Handle null functions.
5549 (gimple_call_return_type): Likewise null types.
5550 * gimple.c (gimple_build_call_internal_1): New function.
5551 (gimple_build_call_internal): Likewise.
5552 (gimple_build_call_internal_vec): Likewise.
5553 (gimple_call_same_target_p): Likewise.
5554 (gimple_call_flags): Handle calls to internal functions.
5555 (gimple_call_fnspec): New function.
5556 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5557 (gimple_has_side_effects): Handle null functions.
5558 (gimple_rhs_has_side_effects): Likewise.
5559 (gimple_call_copy_skip_args): Handle calls to internal functions.
5560 * cfgexpand.c (expand_call_stmt): Likewise.
5561 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5562 * gimple-fold.c (gimple_fold_call): Handle null functions.
5563 (gimple_fold_stmt_to_constant_1): Don't fold
5564 calls to internal functions.
5565 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5567 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5568 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5569 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5570 (do_warn_unused_result): Likewise.
5571 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5572 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5573 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5574 the target of a call.
5575 (initialize_hash_element): Update accordingly.
5576 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5577 (iterative_hash_hashable_expr): Handle calls to internal functions.
5578 (print_expr_hash_elt): Likewise.
5579 * tree-ssa-pre.c (can_value_number_call): Likewise.
5580 (eliminate): Handle null functions.
5581 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5582 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5583 (find_func_aliases): Likewise.
5584 * value-prof.c (gimple_ic_transform): Likewise.
5585 (gimple_indirect_call_to_profile): Likewise.
5586 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5587 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5589 2011-04-19 Jan Hubicka <jh@suse.cz>
5591 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5592 * ipa-inline.c (inline_small_functions): Compute summaries first,
5593 populate heap later.
5595 2011-04-19 Jan Hubicka <jh@suse.cz>
5597 * cgraph.h (save_inline_function_body): Remove.
5598 * ipa-inline-transform.c: New file, broke out of...
5599 * ipa-inline.c: ... this one; Update toplevel comment.
5600 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5602 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5603 (cgraph_mark_inline_edge): Rename to inline_call; move to
5604 ipa-inline-transform.c.
5605 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5606 move to ipa-inline-transform.c
5607 (recursive_inlining, inline_small_functions, flatten_function,
5608 ipa_inline, inline_always_inline_functions,
5609 early_inline_small_functions): Update.
5610 (inline_transform): Move to ipa-inline-transform.c.
5611 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5613 * Makefile.in (ipa-inline-transform.o): New file.
5614 * cgraphunit.c (save_inline_function_body): Move to
5615 ipa-inline-transform.c
5617 2011-04-19 DJ Delorie <dj@redhat.com>
5619 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5620 registers if we already know there aren't any.
5621 (m32c_emit_epilogue): Don't emit a barrier here.
5622 (m32c_emit_eh_epilogue): Likewise.
5623 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5624 operands at expand time.
5625 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5627 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5628 duplicates. Provide aliases instead.
5629 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5630 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5633 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5635 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5636 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5637 (general_or_i64_p, sparc_register_move_cost): New function.
5639 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5641 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5642 Add lynx, mipssde. Sort table.
5644 2011-04-19 Xinliang David Li <davidxl@google.com>
5646 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5649 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5652 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5653 is a SUBREG with non-MODE_INT mode inside of it.
5655 2011-04-19 Martin Jambor <mjambor@suse.cz>
5657 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5658 also according to actual contants.
5659 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5660 (gimple_fold_call): Use it.
5661 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5663 2011-04-19 Martin Jambor <mjambor@suse.cz>
5665 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5666 non-pointer assignments.
5668 2011-04-19 Martin Jambor <mjambor@suse.cz>
5670 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5671 account anc_offset and otr_type from the indirect edge info.
5672 * ipa-prop.c (get_ancestor_addr_info): New function.
5673 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5674 get_ancestor_addr_info, call it.
5675 (ipa_note_param_call): Do not initialize information about polymorphic
5676 calls, return the indirect call graph edge. Remove the last
5677 parameter, adjust all callers.
5678 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5679 parameters. Initialize polymorphic information in the indirect edge.
5681 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5684 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5685 the types if they have different enumeration identifiers.
5687 2011-04-19 Jan Hubicka <jh@suse.cz>
5689 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5690 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5691 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5692 (optimize_function_for_size_p) ... here.
5694 2011-04-19 Richard Guenther <rguenther@suse.de>
5697 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5700 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5702 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5703 if DECL_NO_INLINE_WARNING_P is set on the function.
5705 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5708 * reload1.c (inc_for_reload): Return void. All callers changed.
5709 (emit_input_reload_insns): Don't try to delete previous output
5710 reloads to a register, or record spill_reg_store for autoincs.
5712 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5714 * gengtype.h: Updated copyright year.
5715 (struct input_file_st): Add inpisplugin field.
5716 (type_fileloc): New function.
5718 (write_typed_struct_alloc_def): Add gcc_assert.
5719 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5720 (write_typed_alloc_defns): Don't output for plugin files.
5721 (input_file_by_name): Clear inpisplugin field.
5722 (main): Set inpisplugin field for plugin files.
5724 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5726 * gengtype-state.c (string_eq): New.
5727 (read_state): Use string_eq instead of strcmp when creating the
5730 2011-04-19 Wei Guozhi <carrot@google.com>
5733 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5734 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5736 * config/arm/constraints.md (Uu): New constraint.
5737 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5739 2011-04-19 Tristan Gingold <gingold@adacore.com>
5741 * config.gcc (-*-*-*vms): Added.
5742 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5744 * config/vms/vms-ld.c: New file.
5745 * config/vms/vms-ar.c: New file.
5746 * config/vms/t-vmsnative: New file.
5748 2011-04-18 Xinliang David Li <davidxl@google.com>
5750 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5752 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5755 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5756 if TREE_TYPE (v) is non-NULL.
5758 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5759 gimple_get_virt_mehtod_for_binfo.
5760 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5761 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5763 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5765 2011-04-18 Michael Matz <matz@suse.de>
5766 Steve Ellcey <sje@cup.hp.com>
5768 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5769 use its mode as source mode if it isn't VOIDmode.
5771 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5773 * doc/passes.texi: Fill crossref nodes.
5775 2011-04-18 Jim Meyering <meyering@redhat.com>
5777 Fix doubled-word typos in comments and strings
5778 * config/alpha/vms-unwind.h: s/for for/for/
5779 * config/arm/unwind-arm.h: Likewise.
5780 * config/microblaze/microblaze.c: Likewise.
5781 * config/sh/constraints.md: s/in in/in/
5782 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5784 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5786 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5787 (AVX_FLOAT_MODE_P): Ditto.
5788 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5789 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5790 (AVX_VEC_FLOAT_MODE_P): Ditto.
5791 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5792 (UNSPEC_MASKSTORE): Ditto.
5793 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5794 Merge from <sse>_movmsk<ssemodesuffix> and
5795 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5796 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5798 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5799 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5800 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5802 2011-04-18 Jan Hubicka <jh@suse.cz>
5804 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5806 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5807 (want_inline_function_called_once_p): Break out the logic from
5809 (edge_badness): Ensure that profile is not misupdated.
5810 (lookup_recursive_calls): Prioritize by call frequencies.
5811 (inline_small_functions): Move program size estimates here;
5812 actually process whole queue even when unit growth has been
5813 met. (to properly compute inline_failed reasons and for the
5814 case unit size decrease.) Revisit comments on recursive inlining.
5815 (ipa_inline): Remove unit summary code; first inline hot calls
5816 of functions called once, cold calls next.
5817 (order, nnodes): Remove unused variables.
5818 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5819 (GTFILES): Remove ipa-inline.c
5820 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5822 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5824 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5826 2011-04-18 Jie Zhang <jie@codesourcery.com>
5827 Richard Earnshaw <rearnsha@arm.com>
5829 * arm.c (neon_builtin_type_bits): Remove.
5830 (typedef enum neon_builtin_mode): New.
5831 (T_MAX): Don't define.
5832 (typedef enum neon_builtin_datum): Remove bits, codes[],
5833 num_vars and base_fcode. Add mode, code and fcode.
5834 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5835 VAR10): Change accordingly.
5836 (neon_builtin_data[]): Change accordingly
5837 (arm_init_neon_builtins): Change accordingly.
5838 (neon_builtin_compare): Remove.
5839 (locate_neon_builtin_icode): Remove.
5840 (arm_expand_neon_builtin): Change accordingly.
5842 * arm.h (enum arm_builtins): Move to ...
5843 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5845 * arm.c (arm_builtin_decl): Declare.
5846 (TARGET_BUILTIN_DECL): Define.
5847 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5848 (arm_builtin_decls[]): New.
5849 (arm_init_neon_builtins): Store builtin declarations in
5850 arm_builtin_decls[].
5851 (arm_init_tls_builtins): Likewise.
5852 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5853 (arm_builtin_decl): New.
5855 2011-04-18 Richard Guenther <rguenther@suse.de>
5857 * tree.c (upper_bound_in_type): Build properly canonicalized
5859 (lower_bound_in_type): Likewise.
5861 2011-04-18 Richard Guenther <rguenther@suse.de>
5863 * gimple.h (gimple_call_addr_fndecl): New function.
5864 (gimple_call_fndecl): Use it.
5865 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5867 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5868 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5870 2011-04-18 Richard Guenther <rguenther@suse.de>
5873 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5875 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5878 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5879 DECL_IN_CONSTANT_POOL without RTL.
5881 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5882 Ira Rosen <ira.rosen@linaro.org>
5885 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5886 to match neon_vzip/vuzp/vtrn_internal.
5887 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5888 outputs explicitly dependent on both inputs.
5889 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5891 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5893 PR tree-optimization/48616
5894 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5895 whether the shift is by scalar or vector based on whether all SLP
5896 scalar stmts have the same rhs.
5898 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5900 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5903 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5906 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5909 2011-04-17 Jan Hubicka <jh@suse.cz>
5911 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5912 * cgrpahunit.c (cgraph_finalize_function): Do not set
5913 finalized_by_frontend.
5914 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5915 finalized_by_frontend.
5917 2011-04-17 Jan Hubicka <jh@suse.cz>
5919 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5920 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5921 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5922 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5924 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5926 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5928 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5931 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5932 is non-null before accessing it.
5933 (input_cgraph): Remove trailing spaces.
5935 2011-04-17 Revital Eres <revital.eres@linaro.org>
5937 * params.def (sms-min-sc): New param flag.
5938 * modulo-sched.c (sms_schedule): Use it.
5939 * doc/invoke.texi (sms-min-sc): Document it.
5941 2011-04-17 Jan Hubicka <jh@suse.cz>
5943 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5944 present, also set gimple_call_set_cannot_inline.
5945 * ipa-inline.c: Update toplevel comment.
5947 (cgraph_clone_inlined_nodes): Fix linebreaks.
5948 (cgraph_check_inline_limits): Restructure to ...
5949 (caller_growth_limits): ... this one; be more tolerant
5950 on growth in nested inline chains; add explanatory comment;
5951 fix stack accounting thinko introduced by previous patch.
5952 (cgraph_default_inline_p): Remove.
5953 (report_inline_failed_reason): New function.
5954 (can_inline_edge_p): New function.
5955 (can_early_inline_edge_p): New function.
5956 (leaf_node_p): Move upwards in file.
5957 (want_early_inline_function_p): New function.
5958 (want_inline_small_function_p): New function.
5959 (want_inline_self_recursive_call_p): New function.
5960 (cgraph_edge_badness): Rename to ...
5961 (edge_badness) ... this one; fix linebreaks.
5962 (update_edge_key): Update call of edge_baddness; add
5963 detailed dump about queue updates.
5964 (update_caller_keys): Use can_inline_edge_p and
5965 want_inline_small_function_p.
5966 (cgraph_decide_recursive_inlining): Rename to...
5967 (recursive_inlining): Use can_inline_edge_p and
5968 want_inline_self_recursive_call_p; simplify and remove no longer
5970 (cgraph_set_inline_failed): Remove.
5971 (add_new_edges_to_heap): Use can_inline_edge_p and
5972 want_inline_small_function_p.
5973 (cgraph_decide_inlining_of_small_functions): Rename to ...
5974 (inline_small_functions): ... this one; cleanup; use
5975 can/want predicates; cleanup debug ouput; work edges till fibheap
5976 is exhausted and do not stop once unit growth is reached; remove
5977 later loop processing remaining edges.
5978 (cgraph_flatten): Rename to ...
5979 (flatten_function): ... this one; use can_inline_edge_p
5980 and can_early_inline_edge_p predicates.
5981 (cgraph_decide_inlining): Rename to ...
5982 (ipa_inline): ... this one; remove unreachable nodes before
5983 inlining functions called once; simplify the pass.
5984 (cgraph_perform_always_inlining): Rename to ...
5985 (inline_always_inline_functions): ... this one; use
5986 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5987 (cgraph_decide_inlining_incrementally): Rename to ...
5988 (early_inline_small_functions): ... this one; simplify
5989 using new predicates; cleanup; make dumps prettier.
5990 (cgraph_early_inlining): Rename to ...
5991 (early_inliner): newer inline regular functions into always-inlines;
5992 fix updating of call stmt summaries.
5993 (pass_early_inline): Update for new names.
5994 (inline_transform): Fix formating.
5995 (gate_cgraph_decide_inlining): Rename to ...
5996 (pass_ipa_inline): ... this one.
5997 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5998 * ipa-inline-analysis.c (dump_inline_summary): Update.
5999 (compute_inline_parameters): Do not compute disregard_inline_limits;
6000 look for mismatching arguments.
6001 (estimate_growth): Fix handlig of non-trivial self recursion.
6002 (inline_read_summary): Do not read info->disregard_inline_limits.
6003 (inline_write_summary): Do not write info->disregard_inline_limits.
6004 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6005 and move all checks into can_inline_edge_p predicate; re-enable code
6006 comparing optimization levels.
6007 (expand_call_inline): Do not test inline_forbidden_into_p.
6008 * Makefile.in (ipa-inline.o): Update arguments.
6010 2011-04-17 Revital Eres <revital.eres@linaro.org>
6012 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6014 2011-04-17 Revital Eres <revital.eres@linaro.org>
6016 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6018 2011-04-17 Michael Matz <matz@suse.de>
6020 PR tree-optimization/48622
6022 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6023 in same order as they're written.
6025 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6027 * config/pa/predicates.md: Reorganize and simplify predicates.
6028 Eliminate duplicate code checks.
6029 (arith_operand): Rename to arith14_operand
6030 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6031 * config/pa/pa.md: Use renamed operands.
6032 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6033 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6034 arith11_operand, adddi3_operand, indexed_memory_operand,
6035 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6036 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6037 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6038 move_dest_operand, move_src_operand, prefetch_cc_operand,
6039 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6040 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6041 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6042 div_operand, int5_operand, movb_comparison_operator,
6043 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6044 arith_double_operand, ireg_operand, lhs_lshift_operand,
6045 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6046 integer_store_memory_operand): Likewise.
6047 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6048 (integer_store_memory_operand, read_only_operand,
6049 function_label_operand, borx_reg_operand,
6050 non_hard_reg_operand): Likewise.
6051 (eq_neq_comparison_operator): Delete unused operator.
6052 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6053 function_label_operand.
6054 (emit_move_sequence): Likewise.
6056 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6058 * config/i386/sse.md (sseunpackmode): New mode attribute.
6059 (ssepackmode): Ditto.
6060 (vec_pack_trunc_<mode>): Macroize expander from
6061 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6062 (vec_unpacks_lo_<mode>): Macroize expander from
6063 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6064 (vec_unpacks_hi_<mode>): Macroize expander from
6065 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6066 (vec_unpacku_lo_<mode>): Macroize expander from
6067 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6068 (vec_unpacku_hi_<mode>): Macroize expander from
6069 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6070 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6071 ix86_expand_sse4_unpack.
6072 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6074 2011-04-16 Jan Hubicka <jh@suse.cz>
6076 * cgraphbuild.c: Include ipa-inline.h.
6077 (reset_inline_failed): Use initialize_inline_failed.
6078 * cgraph.c: Include ipa-inline.h.
6079 (cgraph_create_node_1): Do not initialize estimated_growth.
6080 (initialize_inline_failed): More to ipa-inline-analysis.c
6081 (dump_cgraph_node): Do not dump inline flags.
6082 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6083 and disregard_inline_limits flags.
6084 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6085 time, size, estimated_growth.
6086 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6088 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6089 DECL_DISREGARD_INLINE_LIMITS.
6090 (cgraph_analyze_function): Do not initialize
6091 node->local.disregard_inline_limits.
6092 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6093 inlinable, versionable and disregard_inline_limits.
6094 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6095 cgraph_check_inline_limits, cgraph_default_inline_p,
6096 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6097 add_new_edges_to_heap): Update.
6098 (cgraph_decide_inlining_of_small_function): Update; set
6099 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6100 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6101 cgraph_decide_inlining_incrementally): Update.
6102 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6103 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6104 time, size and estimated_growth parameters.
6105 (estimate_edge_growth): Update.
6106 (initialize_inline_failed): Declare.
6107 * ipa-split.c: Include ipa-inline.h
6108 (execute_split_functions): Update.
6109 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6110 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6111 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6112 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6113 estimated_growth to INT_MIN.
6114 (inline_node_duplication_hook): Likewise.
6115 (dump_inline_summary): Dump new fields.
6116 (compute_inline_parameters): Update.
6117 (estimate_edge_time, estimate_time_after_inlining,
6118 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6119 inline_write_summary):
6120 (initialize_inline_failed): Move here from cgraph.c.
6121 * tree-sra.c: Include ipa-inline.h.
6122 (ipa_sra_preliminary_function_checks): Update.
6123 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6126 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6128 * config/i386/sse.md (V16): New mode iterator.
6130 (AVXMODEQI, AVXMODEDI): Remove.
6131 (sse2, sse3): New mode attribute.
6132 (mov<mode>): Use V16 mode iterator.
6133 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6134 (push<mode>1): Use V16 mode iterator.
6135 (movmisalign<mode>): Ditto.
6136 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6137 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6138 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6139 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6140 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6141 avx_movdqu<avxmodesuffix>.
6142 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6143 *avx_movdqu<avxmodesuffix>.
6144 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6145 avx_lddqu<avxmodesuffix>.
6146 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6147 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6148 avx_movnt<AVXMODEDI:mode>.
6149 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6150 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6152 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6155 * haifa-sched.c (prune_ready_list, schedule_block): Use
6156 sched_pressure_p rather than flag_sched_pressure.
6158 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6160 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6161 cgraph_get_node instead of cgraph_get_create_node.
6163 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6165 * cfgexpand.c (expand_debug_expr): Use
6166 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6168 2011-04-15 Michael Matz <matz@suse.de>
6170 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6171 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6172 * function.c (gimplify_parameters): Ditto.
6173 * gimplify.c (gimplify_vla_decl): Ditto.
6175 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6176 (gimple_call_set_alloca_for_var): New inline function.
6177 (gimple_call_alloca_for_var_p): Ditto.
6178 * gimple.c (gimple_build_call_from_tree): Remember
6179 CALL_ALLOCA_FOR_VAR_P state.
6180 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6182 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6183 calls if they were for VLA objects.
6185 2011-04-15 Martin Jambor <mjambor@suse.cz>
6187 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6190 2011-04-15 Martin Jambor <mjambor@suse.cz>
6193 * tree-emutls.c (lower_emutls_function_body): Call
6194 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6197 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6199 * c-decl.c (detect_field_duplicates): Call
6200 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6202 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6204 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6205 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6206 * ipa-pure-const.c (check_stmt): Call it.
6207 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6209 2011-04-15 Richard Guenther <rguenther@suse.de>
6211 PR tree-optimization/48290
6212 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6213 Properly decide inhibiting propagation based on the valueized
6214 operand. Do loop-closed SSA form preserving here ...
6215 (init_copy_prop): ... not here.
6217 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6220 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6221 (*ieee_smax<mode>3): Likewise.
6223 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6225 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6226 Replace match_operand with match_dup for the third operand in
6229 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6231 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6232 to track processing of conditionals. Update all callers.
6233 (try_combine, simplify_if_then_else): Update.
6235 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6237 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6240 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6242 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6243 instead of match_operand for operand 3.
6245 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6247 * recog.h (insn_operand_data): Add an "allows_mem" field.
6248 * genoutput.c (output_operand_data): Initialize it.
6249 * optabs.c (maybe_legitimize_operand_same_code): New function.
6250 (maybe_legitimize_operand): Use it when matching the original
6253 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6255 * gimplify.c: Fix issues in comments throughout.
6256 (voidify_wrapper_expr): Fix long line.
6257 (build_stack_save_restore): Likewise.
6258 (gimplify_loop_expr): Likewise.
6259 (gimplify_compound_lval): Likewise.
6260 (gimplify_init_ctor_eval): Likewise.
6261 (gimplify_modify_expr_rhs): Likewise.
6262 (omp_notice_threadprivate_variable): Likewise.
6264 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6266 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6267 original one if this is not a builtin function.
6269 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6272 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6273 offset it as needed based on top 2 bits in operands[3], change
6274 MEM mode to SFmode and mask those 2 bits away from operands[3].
6276 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6278 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6279 change from objc_declare_protocols() to objc_declare_protocol().
6281 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6283 * config/i386/sse.md (sse4_1): New mode attribute.
6284 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6285 avx_blend<ssemodesuffix><avxmodesuffix> and
6286 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6287 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6288 avx_blendv<ssemodesuffix><avxmodesuffix> and
6289 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6290 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6291 avx_dp<ssemodesuffix><avxmodesuffix> and
6292 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6293 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6294 (sse4_1_packusdw): Merge with *avx_packusdw.
6295 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6296 (sse4_1_pblendw): Merge with *avx_pblendw.
6297 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6298 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6299 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6301 (sse4_1_round<ssescalarmodesuffix>): Merge with
6302 *avx_round<ssescalarmodesuffix>.
6303 (aesenc): Merge with *avx_aesenc.
6304 (aesenclast): Merge with *avx_aesenclast.
6305 (aesdec): Merge with *avx_aesdec.
6306 (aesdeclast): Merge with *avx_aesdeclast.
6307 (pclmulqdq): Merge with *pclmulqdq.
6308 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6310 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6312 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6315 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6316 (align_local_variable): This. Update DECL_ALIGN.
6317 (add_stack_var): Updated.
6318 (expand_one_stack_var): Likewise.
6320 2011-04-14 Richard Guenther <rguenther@suse.de>
6322 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6324 (dse_initialize_block_local_data, dse_leave_block,
6325 record_voperand_set, get_stmt_uid): Likewise.
6326 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6327 (dse_optimize_stmt): Remove voperand set handling code.
6328 Simplify and improve to handle any kind of killing stmt.
6329 (dse_record_phi): Remove.
6330 (dse_enter_block): Simplify.
6331 (tree_ssa_dse): Likewise.
6332 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6334 2011-04-14 Jan Hubicka <jh@suse.cz>
6336 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6337 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6338 (cgraph_local_info): Remove inline_summary.
6339 * ipa-cp.c: Include ipa-inline.h.
6340 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6341 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6343 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6344 (input_overwrite_node): Do not set inline summary.
6345 (input_node): Do not stream inline summary.
6346 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6347 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6348 growth; we do not have inline parameters computed for that anyway.
6349 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6350 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6351 (inline_summary_t): New type and VECtor.
6352 (debug_inline_summary, dump_inline_summaries): Declare.
6353 (inline_summary): Use VOCtor.
6354 (estimate_edge_growth): Kill hack computing call stmt size directly.
6355 * lto-section-in.c (lto_section_name): Add inline section.
6356 * ipa-inline-analysis.c: Include lto-streamer.h
6357 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6358 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6359 (inline_summary_vec): Define.
6360 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6361 dump_inline_summaries): New functions.
6362 (estimate_function_body_sizes): Properly compute size/time of outgoing
6364 (compute_inline_parameters): Alloc inline_summary; do not compute
6365 size/time of incomming calls.
6366 (estimate_edge_time): Avoid missing time summary hack.
6367 (inline_read_summary): Read inline summary info.
6368 (inline_write_summary): Write inline summary info.
6369 (inline_free_summary): Free all hooks and inline summary vector.
6370 * lto-streamer.h: Add LTO_section_inline_summary section.
6371 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6372 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6374 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6376 * tree-vectorizer.h (vect_strided_store_supported): Add a
6377 HOST_WIDE_INT argument.
6378 (vect_strided_load_supported): Likewise.
6379 (vect_permute_store_chain): Return void.
6380 (vect_transform_strided_load): Likewise.
6381 (vect_permute_load_chain): Delete.
6382 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6383 count argument. Check that the count is a power of two.
6384 (vect_strided_load_supported): Likewise.
6385 (vect_permute_store_chain): Return void. Update after above changes.
6386 Assert that the access is supported.
6387 (vect_permute_load_chain): Likewise.
6388 (vect_transform_strided_load): Return void.
6389 * tree-vect-stmts.c (vectorizable_store): Update calls after
6390 above interface changes.
6391 (vectorizable_load): Likewise.
6392 (vect_analyze_stmt): Don't check for strided powers of two here.
6394 2011-04-14 Richard Guenther <rguenther@suse.de>
6396 PR tree-optimization/48590
6397 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6398 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6399 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6400 BUILT_IN_STACK_SAVE.
6401 * tree-ssa-dce.c (propagate_necessity): Handle
6402 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6404 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6406 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6409 2011-04-14 Richard Guenther <rguenther@suse.de>
6411 * tree.h (get_object_alignment_1): Declare.
6412 * builtins.c (get_object_alignment_1): Split out worker from ...
6413 (get_object_alignment): ... here.
6414 * fold-const.c (get_pointer_modulus_and_residue): Use
6415 get_object_alignment_1.
6417 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6419 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6421 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6422 parameter. Generalise code to handle arrays as well as vectors.
6423 (vect_setup_realignment): Update accordingly.
6424 * tree-vect-stmts.c (vectorizable_store): Likewise.
6425 (vectorizable_load): Likewise.
6427 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6429 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6430 within the per-copy loop.
6432 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6434 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6437 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6439 * doc/options.texi (Negative): Explicitly mention that the
6440 Negative chain must be circular.
6442 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6444 * function.h (block_chainon): Declare.
6445 * function.c (block_chainon): Define.
6447 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6448 Eric Weddington <eric.weddington@atmel.com>
6449 Georg-Johann Lay <avr@gjlay.de>
6451 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6453 (avr_init_builtins, avr_expand_builtin,
6454 avr_expand_delay_cycles, avr_expand_unop_builtin,
6455 avr_expand_binop_builtin ): New functions.
6456 (avr_builtin_id): New enum
6457 (struct avr_builtin_description): New struct
6458 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6459 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6461 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6462 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6463 UNSPECV_DELAY_CYCLES): new enumeration values
6464 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6465 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6466 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6467 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6468 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6469 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6470 "fmulsu"): New insns
6472 * config/avr/avr-c.c: fix line endings
6473 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6474 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6475 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6476 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6477 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6479 * doc/extend.texi (AVR Built-in Functions): New node
6480 (Target Builtins): Add documentation of AVR
6483 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6486 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6487 alone. Error if non-const data has attribute progmem.
6489 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6491 * tree.h (struct tree_constructor): Include tree_typed instead of
6493 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6494 TS_TYPED instead of TS_COMMON.
6496 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6498 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6499 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6500 (sse2_psadbw): Merge with *avx_psadbw.
6501 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6502 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6503 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6504 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6505 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6506 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6507 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6508 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6509 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6510 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6511 (ssse3_palignrti): Merge with *avx_palignrti.
6513 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6515 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6516 * tree-ssanames.c (fini_ssanames): VEC_free it.
6517 (make_ssa_name_fn): Update for VECness of free_ssanames.
6518 (release_ssa_name, release_dead_ssa_names): Likewise.
6519 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6521 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6522 TS_TYPED instead of TS_COMMON.
6524 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6526 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6527 statistics_counter_event.
6528 * tree-ssa-copyrename.c (stats): Define.
6529 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6530 statistics_counter_event.
6531 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6532 (bswap_stats, widen_mul_stats): Define.
6533 (insert_reciprocals): Increment rdivs_inserted.
6534 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6535 rfuncs_inserted. Add calls to statistics_counter_event.
6536 (execute_cse_sincos_1): Increment inserted.
6537 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6538 statistics_counter_event.
6539 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6540 of bswap_stats. Add calls to statistics_counter_event.
6541 (convert_mult_to_widen): Increment widen_mults_inserted.
6542 (convert_plusminus_to_widen): Increment maccs_inserted.
6543 (convert_mult_to_fma): Increment fmas_inserted.
6544 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6545 calls to statistics_counter_event.
6547 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6549 PR rtl-optimization/48455
6550 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6551 `temp_costs->mem_cost'.
6553 2011-04-13 Jan Hubicka <jh@suse.cz>
6555 * ipa-inline.h: New file.
6556 * ipa-inline-analysis.c: New file. Broken out of ...
6557 * ipa-inline.c: ... this file; update toplevel comment;
6558 include ipa-inline.h
6559 (inline_summary): Move to ipa-inline.h
6560 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6561 ipa-inline-analysis.c.
6562 (cgraph_estimate_time_after_inlining): Rename to
6563 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6564 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6565 to estimate_edge_growth.
6566 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6567 rename to estimate_size_after_inlining.
6568 (cgraph_mark_inline_edge): Update for new naming convention.
6569 (cgraph_check_inline_limits): Likewise.
6570 (cgraph_edge_badness): Likewise.
6571 (cgraph_decide_recursive_inlining): Likewise.
6572 (cgraph_decide_inlining_of_small_functions): Likewise.
6573 (cgraph_decide_inlining_incrementally): Likewise.
6574 (cgraph_estimate_growth): Rename to estimate_growth; move to
6575 ipa-inline-analysis.c.
6576 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6577 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6578 (compute_inline_parameters): Likewise.
6579 (compute_inline_parameters_for_current): Likewise.
6580 (pass_inline_parameters): Likewise.
6581 (inline_indirect_intraprocedural_analysis): Likewise.
6582 (analyze_function): Rename to inline_analyze_function; likewise.
6583 (add_new_function): Move to ipa-inline-analysis.c.
6584 (inline_generate_summary): Likewise.
6585 (inline_read_summary): Likewise.
6586 (inline_write_summary): Likewise.
6587 * Makefile.in (ipa-inline-analysis.c): New file.
6589 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6591 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6592 * configure: Regenerate.
6594 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6596 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6597 instead of tree_common.
6598 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6600 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6601 TS_TYPED rather than TS_COMMON.
6602 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6604 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6607 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6608 r20 around calls of __tablejump_elpm__
6610 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6613 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6615 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6617 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6619 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6620 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6621 (cfi_vec): New typedef.
6622 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6623 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6624 (cie_cfi_vec): New static variable.
6625 (cie_cfi_head): Delete.
6626 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6627 declaration changed. Use vector rather than list operations.
6628 (new_cfi): Don't initialize the dw_cfi_next field.
6629 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6630 rather than list operations.
6631 (lookup_cfa): Use vector rather than list operations.
6632 (output_cfis): New argument upto. Accept a cfi_vec rather than
6633 a dw_cfi_ref list head as argument. All callers changed.
6634 Iterate over the vector using upto as a maximum index.
6635 (output_all_cfis): New static function.
6636 (output_fde): Use vector rather than list operations. Use the
6637 new upto argument for output_cfis rather than manipulating a
6639 (dwarf2out_begin_prologue): Change initializations to match
6641 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6642 from the vector length rather than searching for the end of a list.
6643 Use output_all_cfis.
6644 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6646 2011-04-13 Nick Clifton <nickc@redhat.com>
6648 * config/rx/rx.md (movmemsi): Do not use this pattern when
6649 volatile pointers are involved.
6651 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6653 * config/i386/sse.md (pinsrbits): Remove.
6654 (sse2_packsswb): Merge with *avx_packsswb.
6655 (sse2_packssdw): Merge with *avx_packssdw.
6656 (sse2_packuswb): Merge with *avx_packuswb.
6657 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6658 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6659 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6660 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6661 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6662 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6663 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6664 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6665 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6666 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6667 (sse2_loadld): Merge with *avx_loadld.
6668 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6669 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6670 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6671 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6672 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6674 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6676 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6678 * print-tree.c (print_node): Likewise.
6679 * tree-inline.c (copy_tree_r): Likewise.
6680 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6681 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6682 instead of TS_COMMON.
6683 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6684 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6685 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6686 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6687 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6689 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6691 (TREE_CHAIN): Check for a TS_COMMON structure.
6692 (TREE_TYPE): Check for a TS_TYPED structure.
6694 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6696 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6697 cgraph_get_create_node instead of cgraph_node.
6699 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6701 * c-parser.c (c_parser_initelt): Updated call to
6702 objc_build_message_expr.
6703 (c_parser_postfix_expression): Likewise.
6705 2011-04-12 Kai Tietz <ktietz@redhat.com>
6707 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6708 MASK_MS_BITFIELD_LAYOUT bit.
6710 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6712 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6713 assert it is always true.
6714 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6717 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6719 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6720 compiling Objective-C to be more efficient.
6722 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6724 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6727 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6729 * recog.h, genoutput.c, optabs.c: Revert last patch.
6731 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6734 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6736 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6738 * recog.h (insn_operand_data): Add an "allows_mem" field.
6739 * genoutput.c (output_operand_data): Initialize it.
6740 * optabs.c (maybe_legitimize_operand_same_code): New function.
6741 (maybe_legitimize_operand): Use it when matching the original
6744 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6746 * genpreds.c (process_define_predicate): Move most processing
6747 to gensupport.c. Continue to validate the expression.
6748 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6749 (process_define_predicate): Move processing to gensupport.c.
6750 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6751 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6752 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6754 (valid_predicate_name_p): New function, split out from old
6755 genpreds.c:process_define_predicate.
6756 (process_define_predicate): New function, combining code from
6757 old genpreds.c and genrecog.c functions.
6758 (process_rtx): Call it for DEFINE_PREDICATE and
6759 DEFINE_SPECIAL_PREDICATE.
6761 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6763 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6764 size of a '%A' memory reference.
6765 (T_DREG, T_QREG): New neon_builtin_type_bits.
6766 (arm_init_neon_builtins): Assert that the load and store operands
6767 are neon_struct_operands.
6768 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6769 (NEON_ARG_MEMORY): New builtin_arg.
6770 (neon_dereference_pointer): New function.
6771 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6772 Handle NEON_ARG_MEMORY.
6773 (arm_expand_neon_builtin): Update after above interface changes.
6774 Use NEON_ARG_MEMORY for loads and stores.
6775 * config/arm/predicates.md (neon_struct_operand): New predicate.
6776 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6777 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6778 (V_four_elem): Tweak formatting.
6779 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6780 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6781 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6782 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6783 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6784 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6785 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6786 Use %A in the output template.
6787 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6788 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6789 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6790 the width of the memory access. Remove post-increment.
6791 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6793 2011-04-12 Nick Clifton <nickc@redhat.com>
6795 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6796 instruction for interrupt handlers if the target is the basic V850
6798 (expand_epilogue): Likewise.
6800 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6802 PR rtl-optimization/48549
6803 * combine.c (propagate_for_debug): Also stop after BB_END of
6804 this_basic_block. Process LAST and just stop processing after it.
6805 (combine_instructions): If last_combined_insn has been deleted,
6806 set last_combined_insn to its PREV_INSN.
6808 2011-04-12 Richard Guenther <rguenther@suse.de>
6810 PR tree-optimization/46076
6811 * gimple.h (struct gimple_statement_call): Add fntype field.
6812 (gimple_call_fntype): Adjust.
6813 (gimple_call_set_fntype): New function.
6814 * gimple.c (gimple_build_call_1): Set the call function type.
6815 * gimplify.c (gimplify_call_expr): Preserve the function
6816 type the frontend used for the call.
6817 (gimplify_modify_expr): Likewise.
6818 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6820 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6822 * tree-ssa.c (useless_type_conversion_p): Function pointer
6823 conversions are useless.
6825 2011-04-12 Martin Jambor <mjambor@suse.cz>
6827 * cgraph.h (cgraph_node): Remove function declaration.
6828 (cgraph_create_node): Declare.
6829 (cgraph_get_create_node): Likewise.
6830 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6831 Updated all callers.
6832 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6833 the decl does not already exist. Call cgraph_get_create_node instead
6835 (cgraph_get_create_node): New function.
6836 (cgraph_same_body_alias): Update comment.
6837 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6838 assert it does not return NULL.
6839 (cgraph_update_edges_for_call_stmt): Likewise.
6840 (cgraph_clone_edge): Likewise.
6841 (cgraph_create_virtual_clone): Likewise.
6842 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6843 instead of cgraph_node.
6844 (cgraph_add_new_function): Call cgraph_create_node or
6845 cgraph_get_create_node instead of cgraph_node.
6846 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6847 instead of cgraph_node.
6848 (record_eh_tables): Likewise.
6849 (mark_address): Likewise.
6850 (mark_load): Likewise.
6851 (build_cgraph_edges): Call cgraph_get_create_node instead
6853 (rebuild_cgraph_edges): Likewise.
6854 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6855 instead of cgraph_node.
6856 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6858 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6859 cgraph_create_node instead of cgraph_node.
6860 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6862 * lto-cgraph.c (input_node): Likewise.
6863 * lto-streamer-in.c (input_function): Likewise.
6864 * varasm.c (mark_decl_referenced): Likewise.
6865 (assemble_alias): Likewise.
6867 2011-04-12 Martin Jambor <mjambor@suse.cz>
6869 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6870 instead of cgraph_node and assert it does not return NULL.
6871 * lto-streamer-in.c (lto_read_body): Likewise.
6872 * omp-low.c (new_omp_context): Likewise.
6873 (create_task_copyfn): Likewise.
6874 * tree-emutls.c (lower_emutls_function_body): Likewise.
6875 * matrix-reorg.c (transform_allocation_sites): Likewise.
6877 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6880 * c-typeck.c (build_asm_expr): Error out on attempts to use
6881 void type outputs or inputs for constraints that allow reg or
6884 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6885 Richard Earnshaw <rearnsha@arm.com>
6888 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6889 to use sign-magnitude offsets. Reject unsupported unaligned
6890 cases. Add detailed description in comments.
6891 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6892 condition from TARGET_32BIT to TARGET_ARM.
6894 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6896 * tree.h (struct typed_tree): New.
6897 (struct tree_common): Include it instead of tree_base.
6898 (TREE_TYPE): Update for new location of type field.
6899 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6900 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6901 (union tree_node): Add typed field.
6902 * treestruct.def (TS_TYPED): New.
6903 * lto-streamer.c (check_handled_ts_structures): Handle it.
6904 * tree.c (MARK_TS_TYPED): New macro.
6905 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6907 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6909 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6910 (force_nonfallthru): Do not alter the loop nest if no basic block
6913 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6915 * config/i386/sse.md (VI): New mode iterator.
6917 (AVX256MODEI): Ditto.
6918 (AVXMODEF4P): Ditto.
6919 (avxvecpsmode): Ditto.
6920 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6921 (sse2_andnot<mode>3): New expander.
6922 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6923 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6924 (<any_logic:code><mode>3): Use VI mode iterator.
6925 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6926 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6927 (*andnottf3): Handle AVX three-operand constraints.
6928 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6930 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6931 Robert Millan <rmh@gnu.org>
6933 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6934 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6935 GNU_USER_DYNAMIC_LINKER64): Define.
6936 (REG_NAME): Don't undefine.
6937 (MD_UNWIND_SUPPORT): Undefine.
6938 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6939 (REG_NAME): Don't undefine.
6940 (MD_UNWIND_SUPPORT): Undefine.
6941 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6943 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6945 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6946 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6948 2011-04-11 Xinliang David Li <davidxl@google.com>
6950 * value-profile.c (check_ic_target): New function.
6951 (gimple_ic_transform): Sanity check indirect call target.
6952 * gimple-low.c (gimple_check_call_args): Interface change.
6953 (gimple_check_call_matching_types): New function.
6954 * tree-inline.c (tree_can_inline_p): Call new function.
6956 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6958 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6959 tree-pretty-print.h & realmpfr.h.
6961 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6964 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6965 (setup_allocno_and_important_classes): Ditto.
6967 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6969 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6970 GNU_USER_DYNAMIC_LINKER.
6971 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6972 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6973 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6974 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6975 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6976 GNU_USER_TARGET_OS_CPP_BUILTINS.
6977 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6978 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6979 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6980 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6981 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6982 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6983 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6984 GNU_USER_TARGET_OS_CPP_BUILTINS.
6985 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6986 GNU_USER_DYNAMIC_LINKER.
6987 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6988 GNU_USER_TARGET_OS_CPP_BUILTINS.
6989 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6990 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6991 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6992 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6993 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6994 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6995 GNU_USER_DYNAMIC_LINKER64): Remove.
6996 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6997 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6998 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6999 GNU_USER_DYNAMIC_LINKER.
7000 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7001 GNU_USER_TARGET_OS_CPP_BUILTINS.
7002 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7003 GNU_USER_TARGET_OS_CPP_BUILTINS.
7004 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7005 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7006 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7007 GNU_USER_TARGET_OS_CPP_BUILTINS.
7008 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7009 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7010 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7011 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7012 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7013 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7014 GNU_USER_DYNAMIC_LINKER.
7015 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7016 GNU_USER_TARGET_OS_CPP_BUILTINS.
7017 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7018 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7019 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7020 GNU_USER_DYNAMIC_LINKER.
7021 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7022 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7023 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7024 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7025 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7026 GNU_USER_DYNAMIC_LINKER.
7027 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7028 GNU_USER_DYNAMIC_LINKERN32.
7029 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7030 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7031 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7032 GNU_USER_DYNAMIC_LINKER32.
7033 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7034 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7035 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7036 GNU_USER_DYNAMIC_LINKER.
7037 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7038 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7039 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7040 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7041 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7042 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7043 GNU_USER_DYNAMIC_LINKER32.
7044 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7045 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7046 GNU_USER_DYNAMIC_LINKER.
7047 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7048 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7049 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7050 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7051 GNU_USER_DYNAMIC_LINKER64.
7052 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7053 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7054 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7055 GNU_USER_DYNAMIC_LINKER.
7056 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7057 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7058 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7059 GNU_USER_DYNAMIC_LINKER.
7060 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7061 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7062 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7063 GNU_USER_DYNAMIC_LINKER32.
7064 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7065 GNU_USER_DYNAMIC_LINKER64.
7066 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7067 GNU_USER_DYNAMIC_LINKER64.
7068 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7069 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7070 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7071 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7072 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7074 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7076 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7077 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7078 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7079 GNU_USER_DYNAMIC_LINKER.
7080 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7081 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7082 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7083 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7084 GNU_USER_DYNAMIC_LINKER64.
7085 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7086 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7087 GNU_USER_LINK_EMULATION.
7088 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7089 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7090 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7091 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7092 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7093 CPP_SPEC, CC1_SPEC): Remove.
7094 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7095 (GNU_USER_DYNAMIC_LINKER): Define.
7096 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7097 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7098 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7099 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7100 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7101 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7102 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7103 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7104 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7105 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7106 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7107 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7108 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7109 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7110 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7111 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7112 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7113 GNU_USER_DYNAMIC_LINKER.
7114 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7115 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7116 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7117 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7118 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7119 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7120 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7121 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7122 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7123 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7125 2011-04-11 Kai Tietz <ktietz@redhat.com>
7129 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7130 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7132 (ix86_is_msabi_thiscall): Removed.
7133 (ix86_is_type_thiscall): Likewise.
7134 (ix86_get_callcvt): New function.
7135 (ix86_comp_type_attributes): Simplify check.
7136 (ix86_function_regparm): Use ix86_get_callcvt for calling
7137 convention attribute checks.
7138 (ix86_return_pops_args): Likewise.
7139 (ix86_static_chain): Likewise.
7140 (x86_this_parameter): Likewise.
7141 (x86_output_mi_thunk): Likewise.
7142 (ix86_function_type_abi): Optimize check for types without attributes.
7143 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7144 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7145 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7147 (IX86_BASE_CALLCVT): Helper macro.
7148 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7149 Use ix86_get_callcvt for calling convention attribute checks and avoid
7150 symbol-decoration for stdcall in TARGET_RTD case.
7151 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7153 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7156 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7158 * config/i386/sse.md (VI_128): New mode iterator.
7159 (VI12_128): Rename from SSEMODE12.
7160 (VI14_128): Rename from SSEMODE14.
7161 (VI124_128): New mode iterator.
7162 (VI24_128): Rename from SSEMODE248.
7163 (VI248_128): Rename from SSEMODE248.
7164 (SSEMODE124C8): Remove.
7165 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7166 (*sse2_<plusminus_insn><mode>3): Merge with
7167 *avx_<plusminus_insn><mode>3.
7168 (*mulv8hi3): Merge with *avx_mulv8hi3.
7169 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7170 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7171 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7172 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7173 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7174 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7175 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7176 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7177 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7178 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7179 (*<smaxmin:code>v8hi3): Ditto.
7180 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7181 (*<smaxmin:code>v16qi3): Ditto.
7182 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7183 (*sse2_eq<mode>3): Ditto.
7184 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7185 (*sse2_gt<mode>3): Ditto.
7186 (vcondv2di): Split out of vcond<mode>.
7187 (vconduv2di): Split out of vcondu<mode>.
7189 2011-04-11 Richard Guenther <rguenther@suse.de>
7191 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7192 before calling tree_low_cst.
7194 2011-04-11 Richard Guenther <rguenther@suse.de>
7196 * stor-layout.c (layout_type): Compute all array index size operations
7197 in the original type.
7198 (initialize_sizetypes): Add comment.
7199 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7201 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7203 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7205 2011-04-11 Martin Jambor <mjambor@suse.cz>
7207 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7208 of cgraph_node, handle NULL return value.
7209 (cgraph_global_info): Likewise.
7210 (cgraph_rtl_info): Likewise.
7211 * tree-inline.c (estimate_num_insns): Likewise.
7212 * gimplify.c (unshare_body): Likewise.
7213 (unvisit_body): Likewise.
7214 (gimplify_body): Likewise.
7215 * predict.c (optimize_function_for_size_p): Likewise.
7216 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7217 (call_may_clobber_ref_p_1): Likewise.
7218 * varasm.c (function_section_1): Likewise.
7219 (assemble_start_function): Likewise.
7221 2011-04-11 Martin Jambor <mjambor@suse.cz>
7223 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7225 * final.c (rest_of_clean_state): Likewise.
7226 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7227 * passes.c (pass_init_dump_file): Likewise.
7228 (execute_all_ipa_transforms): Likewise.
7229 (function_called_by_processed_nodes_p): Likewise.
7230 * predict.c (maybe_hot_frequency_p): Likewise.
7231 (probably_never_executed_bb_p): Likewise.
7232 (compute_function_frequency): Likewise.
7233 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7234 (unnest_nesting_tree_1): Likewise.
7235 (lower_nested_functions): Likewise.
7236 * tree-optimize.c (execute_fixup_cfg): Likewise.
7237 (tree_rest_of_compilation): Likewise.
7238 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7239 * tree-sra.c (ipa_early_sra): Likewise.
7240 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7241 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7242 * ipa.c (record_cdtor_fn): Likewise.
7243 * ipa-inline.c (cgraph_early_inlining): Likewise.
7244 (compute_inline_parameters_for_current): Likewise.
7245 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7246 * ipa-pure-const.c (local_pure_const): Likewise.
7247 * ipa-split.c (split_function): Likewise.
7248 (execute_split_functions): Likewise.
7249 * cgraphbuild.c (build_cgraph_edges): Likewise.
7250 (rebuild_cgraph_edges): Likewise.
7251 (cgraph_rebuild_references): Likewise.
7252 (remove_cgraph_callee_edges): Likewise.
7253 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7254 (verify_cgraph_node): Likewise.
7255 (cgraph_analyze_functions): Likewise.
7256 (cgraph_preserve_function_body_p): Likewise.
7257 (save_inline_function_body): Likewise.
7258 (save_inline_function_body): Likewise.
7259 * tree-inline.c (copy_bb): Likewise.
7260 (optimize_inline_calls): Likewise.
7262 2011-04-11 Martin Jambor <mjambor@suse.cz>
7264 PR tree-optimization/48195
7265 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7266 ipa_check_create_edge_args.
7267 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7268 ipa_check_create_edge_args.
7269 * ipa-inline.c (inline_generate_summary): Do not call
7270 ipa_check_create_node_params and ipa_check_create_edge_args.
7271 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7272 ipa_check_create_edge_args.
7274 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7276 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7278 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7279 * function.c (record_hard_reg_sets): Likewise.
7280 * ira.c (compute_regs_asm_clobbered): Likewise.
7281 * sched-deps.c (sched_analyze_1): Likewise.
7282 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7284 2011-04-09 Xinliang David Li <davidxl@google.com>
7286 PR tree-optimization/PR48484
7287 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7288 has_valid_pred lazily
7290 2011-04-09 Duncan Sands <baldrick@free.fr>
7292 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7294 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7296 * combine.c (combine_validate_cost): Adjust comments. Set registered
7297 cost of I0 to zero at the end, if any.
7299 2011-04-08 Xinliang David Li <davidxl@google.com>
7301 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7302 to insane profile data.
7304 2011-04-08 Xinliang David Li <davidxl@google.com>
7306 * ipa-cp.c (ipcp_update_profiling): Correct
7307 negative scale factor due to insane profile data.
7309 2011-04-08 Xinliang David Li <davidxl@google.com>
7311 * final.c (dump_basic_block_info): New function.
7312 (final): Dump basic block.
7313 (final_scan_insn): Remove old dump.
7315 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7318 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7321 2011-04-08 Michael Matz <matz@suse.de>
7324 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7326 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7327 * rtl.h (rebuild_jump_labels_chain): Declare.
7328 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7329 insns inserted on edges.
7331 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7333 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7334 * config/arm/arm-arches.def: New.
7335 * config/arm/arm-opts.h: New.
7336 * config/arm/genopt.sh: New.
7337 * config/arm/arm-tables.opt: New (generated).
7338 * config/arm/arm.c (arm_handle_option, arm_target_help,
7339 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7340 (all_architectures): Get most table contents from arm-arches.def.
7341 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7342 arm_selected_tune here.
7343 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7344 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7345 (march=, mcpu=, mtune=): Use Enum and Var.
7346 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7347 (arm.o): Update dependencies.
7349 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7351 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7353 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7354 (write_typed_alloc_defns): Likewise.
7355 (main): Calls write_typed_alloc_defns with output_header.
7357 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7360 * ira-color.c (setup_profitable_hard_regs): Add comments.
7361 Don't take prohibited hard regs into account.
7362 (setup_conflict_profitable_regs): Rename to
7363 get_conflict_profitable_regs.
7364 (check_hard_reg_p): Check prohibited hard regs.
7366 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7368 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7369 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7370 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7372 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7375 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7376 move from floating point to shift amount register.
7377 (emit_move_sequence): Remove secondary reload support for floating
7378 point to shift amount amount register copies.
7379 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7380 amount register copies.
7381 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7382 register, return false if mode isn't a scalar integer mode.
7383 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7385 2011-04-08 Richard Guenther <rguenther@suse.de>
7387 * gimple.c (gimple_call_flags): Remove kludge.
7389 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7391 * sel-sched.c (sel_region_init): Move call to
7392 sel_setup_region_sched_flags after setup_current_loop_nest.
7394 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7396 PR rtl-optimization/48272
7397 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7398 init_insn_reg_pressure_info. Adjust a caller.
7399 * sched-int.h (init_insn_reg_pressure_info): Declare.
7400 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7401 when sched-pressure is enabled.
7403 2011-04-08 Richard Guenther <rguenther@suse.de>
7405 * gimple.c (gimple_set_modified): Do not queue calls to
7406 MODIFIED_NORETURN_CALLS here ...
7407 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7409 2011-04-08 Richard Guenther <rguenther@suse.de>
7412 * toplev.c (lang_dependent_init): Do not open asm_out_file
7413 in WPA mode, nor perform debug machinery initialization.
7414 (finalize): Do not unlink asm_out_file in WPA mode.
7416 2011-04-08 Richard Guenther <rguenther@suse.de>
7418 * gimple.h (gimple_call_fntype): New function.
7419 (gimple_call_return_type): Use it.
7420 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7421 * gimple-low.c (gimple_check_call_args): Likewise.
7422 * gimple.c (gimple_call_flags): Likewise.
7423 (gimple_call_arg_flags): Likewise.
7424 (gimple_call_return_flags): Likewise.
7425 * tree-cfg.c (verify_gimple_call): Likewise.
7426 (do_warn_unused_result): Likewise.
7427 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7428 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7430 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7432 PR rtl-optimization/48235
7433 * sel-sched.c (code_motion_process_successors): Recompute the last
7434 insn in basic block if control flow changed.
7435 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7436 Update condition for ilist_remove.
7438 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7440 PR rtl-optimization/48302
7441 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7442 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7443 it to record added preheader blocks.
7444 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7445 on to sel_add_loop_preheaders.
7446 (sel_region_init): Move call to setup_current_loop_nest after
7449 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7452 * cfgloop.h (loop_has_exit_edges): New helper.
7453 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7455 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7456 that have no exit edges.
7458 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7460 PR rtl-optimization/48442
7461 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7462 all callers. Adjust assert.
7464 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7466 PR tree-optimization/48377
7467 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7468 is_packed to true even for types with smaller TYPE_ALIGN than
7471 2011-04-08 Richard Guenther <rguenther@suse.de>
7474 * doc/tm.texi: Re-generate.
7476 2011-04-08 Wei Guozhi <carrot@google.com>
7479 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7480 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7481 * config/arm/arm.md (*push_multi): Change the length computation to
7484 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7486 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7487 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7488 * doc/tm.texi: Regenerate.
7489 * system.h (ASM_OUTPUT_BSS): Poison.
7490 * varasm.c (asm_output_bss): Remove function.
7491 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7493 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7494 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7495 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7496 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7498 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7500 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7502 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7504 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7506 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7509 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7511 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7512 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7513 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7515 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7516 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7517 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7518 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7519 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7520 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7521 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7522 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7523 options. Don't map other m68k options manually. Don't handle
7524 old-style options as canonical.
7525 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7526 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7528 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7530 * basic-block.h (force_nonfallthru): Move to...
7531 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7532 (force_nonfallthru): ...here.
7533 * cfghooks.c (force_nonfallthru): New function.
7534 * cfgrtl.c (force_nonfallthru): Rename into...
7535 (rtl_force_nonfallthru): ...this.
7536 (commit_one_edge_insertion): Do not set AUX field.
7537 (commit_edge_insertions): Do not discover new basic blocks.
7538 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7539 (cfg_layout_rtl_cfg_hooks): Likewise.
7540 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7541 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7542 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7544 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7546 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7549 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7551 * config/i386/sse.md: Update copyright year.
7552 (avxcvtvecmode): Remove.
7553 (sse_movhlps): Merge with *avx_movhlps.
7554 (sse_movlhps): Merge with *avx_movlhps.
7555 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7556 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7557 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7558 (sse_loadhps): Merge with *avx_loadhps.
7559 (sse_storelps): Merge with *avx_storelps.
7560 (sse_loadlps): Merge with *avx_loadlps.
7561 (sse_movss): Merge with *avx_movss.
7562 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7563 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7564 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7565 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7566 (vec_set<mode>_0): Ditto.
7567 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7568 (sse4_1_insertps): Merge with *avx_insertps.
7569 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7570 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7571 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7572 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7573 (sse2_storehpd): Merge with *avx_storehpd.
7574 (sse2_loadhpd): Merge with *avx_loadhpd.
7575 (sse2_loadlpd): Merge with *avx_loadlpd.
7576 (sse2_movsd): Merge with *avx_movsd.
7577 (*vec_concatv2df): Merge with *vec_concatv2df.
7579 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7582 * combine.c (combine_instructions): Add last_combined_insn,
7583 update it if insn is after it, pass it to all try_combine calls.
7584 (try_combine): Add last_combined_insn parameter, pass it instead of
7585 i3 to propagate_for_debug.
7587 2011-04-07 Nick Clifton <nickc@redhat.com>
7589 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7590 to handle MDR <-> data register transfers.
7591 (movhi_internal): Likewise.
7593 2011-04-07 Alan Modra <amodra@gmail.com>
7595 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7596 previous stack info.
7598 2011-04-07 Tom de Vries <tom@codesourcery.com>
7601 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7602 flow_find_cross_jump. Swap variables to implement backward replacement.
7603 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7605 2011-04-07 Tom de Vries <tom@codesourcery.com>
7608 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7609 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7611 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7612 src1 or src2. Redirect edges to the last basic block. Update
7613 frequency and count on multiple basic blocks in case of fallthru.
7615 2011-04-07 Tom de Vries <tom@codesourcery.com>
7618 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7620 (old_insns_match_p): Change return type. Replace return false/true
7621 with return dir_none/dir_both. Use can_replace_by.
7622 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7623 direction from dir_p. Register replacement direction in dir, last_dir
7624 and afterlast_dir. Handle new return type of old_insns_match_p using
7625 merge_dir. Return replacement direction in dir_p.
7626 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7627 return type of old_insns_match_p.
7628 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7629 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7630 flow_find_cross_jump.
7631 * basic-block.h (enum replace_direction): New type.
7632 (flow_find_cross_jump): Add parameter to declaration.
7634 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7636 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7637 (AVXMODEDCVTPS2DQ): Ditto.
7638 (VEC_FLOAT_MODE): Ditto.
7639 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7640 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7641 (<any_logic:code><mode>3): Use VF mode iterator.
7642 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7643 Use VF mode iterator.
7644 (copysign<mode>3): Use VF mode iterator.
7645 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7646 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7647 (*<any_logic:code><MODEF:mode>3): Merge with
7648 *avx_<any_logic:code><MODEF:mode>3.
7649 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7650 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7651 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7652 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7653 (sse2_cvtdq2ps): Use %v modifier.
7654 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7655 (avx_cvtps2dq<avxmodesuffix>): Remove.
7656 (sse2_cvtps2dq): Use %v modifier.
7657 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7658 (avx_cvttps2dq<avxmodesuffix>): Remove.
7659 (sse2_cvttps2dq): Use %v modifier.
7660 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7661 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7662 (sse2_cvtsd2siq): Fix insn template.
7663 (sse2_cvtsd2siq_2): Ditto.
7664 (sse2_cvttsd2siq): Ditto.
7665 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7666 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7668 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7670 * gcov-io.c: Use GCC Runtime Library Exception.
7672 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7675 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7676 as base_reg whatever register reg has been eliminated to, instead
7677 of hardcoding STACK_POINTER_REGNUM.
7679 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7681 * doc/tm.texi.in: Document C target hooks as separate from general
7683 * doc/tm.texi: Regenerate.
7684 * genhooks.c (struct hook_desc): Add docname field.
7685 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7687 (hook_array): Include c-target.def.
7688 (emit_documentation): Use docname field in output.
7689 (emit_init_macros): Take docname argument. Only emit definitions
7690 for hooks matching docname.
7691 (main): Expect additional arguments in all cases. Pass argument
7692 to emit_init_macros.
7693 * target.def: Move initial macro definitions and comments to
7694 target-hooks-macros.h.
7695 (gcc_targetcm): Move to c-family/c-target.def.
7696 * target.h (targetcm): Move declaration to c-family/c-target.h.
7697 * targhooks.c (default_handle_c_option): Move to
7699 * targhooks.h (default_handle_c_option): Move declaration to
7700 c-family/c-common.h.
7701 * target-hooks-macros.h: New file.
7702 * config.gcc (target_has_targetcm): Define and use to add to
7703 c_target_objs and cxx_target_objs.
7704 * config/default-c.c: New file.
7705 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7706 of target.h and target-def.h.
7707 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7708 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7709 darwin_check_cfstring_format_arg): Make static.
7710 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7711 TARGET_STRING_OBJECT_REF_TYPE_P,
7712 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7713 * config/darwin-protos.h (darwin_objc_construct_string,
7714 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7716 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7717 TARGET_STRING_OBJECT_REF_TYPE_P,
7718 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7719 * config/t-darwin (darwin-c.o): Update dependencies.
7720 * system.h (TARGET_HAS_TARGETCM): Poison.
7721 * Makefile.in (TARGET_H): Update.
7722 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7723 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7724 (default-c.o): New target.
7725 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7726 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7727 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7729 (build/genhooks.o): Update dependencies.
7731 2011-04-06 Richard Guenther <rguenther@suse.de>
7733 * ipa-inline.c (enum inlining_mode): Remove.
7734 (cgraph_flatten): Use some other token.
7735 (cgraph_edge_early_inlinable_p): New function, split out from ...
7736 (cgraph_perform_always_inlining): New function, split out from ...
7737 (cgraph_decide_inlining_incrementally): ... here.
7738 (cgraph_mark_inline_edge): Adjust.
7739 (cgraph_early_inlining): Re-structure.
7740 (pass_early_inline): Require SSA form.
7742 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7743 Julian Brown <julian@codesourcery.com>
7744 Mark Shinwell <shinwell@codesourcery.com>
7746 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7747 LO_REGS only for Thumb-1.
7748 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7749 be used in short instructions when optimising for size on Thumb-2.
7751 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7753 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7754 associated with user returns to be preserved.
7756 2011-04-06 Tristan Gingold <gingold@adacore.com>
7758 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7759 symbol_queue_size, DBXOUT_DECR_NESTING,
7760 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7761 if XCOFF_DEBUGGING_INFO.
7763 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7765 * config/i386/i386.md (attribute isa): New.
7766 (attribute enabled): New.
7767 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7768 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7769 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7770 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7771 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7772 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7773 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7774 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7776 * config/i386/sse.md (VF): New mode iterator.
7780 (SSEMODEF4): Remove.
7781 (attribute sse): Handle V8SF and V4DF modes.
7782 (<absneg:code><mode>2): Use VF mode iterator.
7783 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7785 (<plusminus_insn><mode>3): Use VF mode iterator.
7786 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7787 Use VF mode iterator.
7788 (<sse>_vm<plusminus_insn><mode>3): Merge with
7789 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7790 (mul<mode>3): Use VF mode iterator.
7791 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7792 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7794 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7795 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7796 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7797 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7799 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7800 Use VF1 mode iterator.
7801 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7802 (sqrt<VF2:mode>2): New expander.
7803 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7804 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7805 and sqrtv2df2. Use VF mode iterator.
7806 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7808 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7809 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7810 Use VF1 mode iterator.
7811 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7812 (<smaxmin:code><mode>3): Use VF mode iterator.
7813 (*<smaxmin:code><mode>3_finite): Merge with
7814 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7815 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7816 (<sse>_vm<smaxmin:code><mode>2): Merge with
7817 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7818 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7820 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7822 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7823 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7824 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7825 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7826 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7828 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7829 Use VF_128 mode iterator.
7830 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7832 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7833 VF_128 mode iterator.
7834 (vcond<mode>): Use VF mode iterator.
7835 * config/i386/predicates.md (sse_comparison_operator): Merge with
7836 avx_comparison_float_operator. Do not declare as special_predicate.
7837 * config/i386/i386.c (struct builtin_description): Update for renamed
7839 (ix86_expand_args_builtin): Ditto.
7840 (ix86_expand_sse_compare_mask): Ditto.
7842 2011-04-06 Richard Guenther <rguenther@suse.de>
7844 * tree-inline.c (estimate_num_insns): For calls simply account
7845 for all passed arguments and a used return value.
7847 2011-04-06 Richard Guenther <rguenther@suse.de>
7849 PR tree-optimization/47663
7850 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7851 call_stmt_time fields.
7852 (cgraph_edge_inlinable_p): Declare.
7853 (cgraph_edge_recursive_p): New inline function.
7854 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7855 (cgraph_clone_edge): Copy it.
7856 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7857 Account for call stmt time.
7858 (cgraph_estimate_time_after_inlining): Take edge argument.
7859 (cgraph_estimate_edge_growth): Account call stmt size.
7860 (cgraph_estimate_size_after_inlining): Take edge argument.
7861 (cgraph_mark_inline_edge): Adjust.
7862 (cgraph_check_inline_limits): Likewise.
7863 (cgraph_recursive_inlining_p): Remove.
7864 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7865 (cgraph_decide_recursive_inlining): Take edge argument and
7867 (cgraph_decide_inlining_of_small_functions): Do not avoid
7868 diags for recursive inlining here.
7869 (cgraph_flatten): Adjust.
7870 (cgraph_decide_inlining_incrementally): Likewise.
7871 (estimate_function_body_sizes): Remove call cost handling.
7872 (compute_inline_parameters): Initialize caller edge call costs.
7873 (cgraph_estimate_edge_growth): New function.
7874 (cgraph_estimate_growth): Use it.
7875 (cgraph_edge_badness): Likewise.
7876 (cgraph_check_inline_limits): Take an edge argument.
7877 (cgraph_decide_inlining_of_small_functions): Adjust.
7878 (cgraph_decide_inlining): Likewise.
7879 * tree-inline.c (estimate_num_insns): Only account for call
7880 return value if it is used.
7881 (expand_call_inline): Avoid diagnostics on recursive inline
7883 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7884 (input_edge): Input edge call costs.
7886 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7888 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7890 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7892 * doc/invoke.texi (Spec Files): Fix typo.
7894 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7896 * profile.c (branch_prob): Move declaration of local variable. Remove
7897 obsolete ??? comment. Expand the location explicitly instead of using
7898 the LOCATION_FILE and LOCATION_LINE macros.
7900 2011-04-06 Wei Guozhi <carrot@google.com>
7903 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7904 (arm_cond_branch): Likewise.
7905 (arm_cond_branch_reversed): Likewise.
7906 (arm_jump): Likewise.
7907 (push_multi): Likewise.
7908 * config/arm/constraints.md (Py): New constraint.
7910 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7913 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7915 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7916 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7917 #ifdef DBX_DEBUGGING_INFO.
7919 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7922 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7923 if old and new states differ.
7925 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7927 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7928 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7929 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7930 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7931 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7933 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7934 ColdFire options to -mcpu= options.
7936 2011-04-05 Jeff Law <law@redhat.com>
7938 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7939 check if BB is a successor of LOOP->header and return
7940 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7942 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7944 * cprop.c (struct reg_use): Remove.
7945 (reg_use_table): Make an array of RTX.
7946 (find_used_regs, constprop_register, local_cprop_pass,
7947 bypass_block): Simplify users of reg_use_table.
7948 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7949 on one of the uses found by find_used_regs.
7951 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7954 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7957 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7959 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7961 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7963 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7966 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7968 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7970 * combine.c: Include obstack.h.
7971 (struct insn_link): Define.
7972 (uid_log_links): Adjust type.
7973 (FOR_EACH_LOG_LINK): New macro.
7974 (insn_link_obstack): Declare.
7975 (alloc_insn_link): Define.
7976 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7977 type of link variables.
7978 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7979 (try_combine, record_promoted_values, distribute_notes): Likewise.
7980 (distribute_links): Likewise. Tweak prototype.
7981 (clear_log_links): Delete.
7982 (adjust_for_new_dest): Call alloc_insn_link.
7983 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7985 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7987 * gcse.c (modify_mem_list): Convert to an array of VECs.
7988 (canon_modify_mem_list, compute_transp): Tweak formatting.
7989 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7990 (load_killed_in_block_p): Likewise.
7991 (record_last_mem_set_info): Likewise.
7992 (clear_modify_mem_tables): Likewise.
7994 2011-04-05 Tom de Vries <tom@codesourcery.com>
7997 * function.c (emit_use_return_register_into_block): Only define if
8000 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8002 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8004 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8006 * config/rx/rx-opts.h: New.
8007 * config/rx/rx.c (rx_cpu_type): Remove.
8008 (rx_handle_option): Don't assert that global structures are in
8009 use. Access variables via opts pointer. Defer most handling of
8010 OPT_mint_register_. Use error_at.
8011 (rx_option_override): Handle deferred OPT_mint_register_ here.
8012 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8013 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8014 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8015 (rx_cpu_types): New Enum and EnumValue entries.
8016 (mint-register=): Use Defer and use Var accordingly.
8018 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8020 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8021 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8022 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8024 (debug_free_queue, debug_nesting, symbol_queue_index):
8026 * dbxout.c: ...to here. Make static.
8028 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8030 * gcse.c (modify_pair): Define. Define a VEC of it.
8031 (canon_modify_mem_list): Convert to an array of VECs.
8032 (free_insn_expr_list_list): Delete.
8033 (clear_modify_mem_tables): Call VEC_free instead.
8034 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8035 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8036 (canon_list_insert, compute_transp): Likewise.
8038 2011-04-05 Tom de Vries <tom@codesourcery.com>
8041 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8044 2011-04-05 Tom de Vries <tom@codesourcery.com>
8047 * function.c (emit_use_return_register_into_block): New function.
8048 (thread_prologue_and_epilogue_insns): Use
8049 emit_use_return_register_into_block.
8051 2011-04-05 Tom de Vries <tom@codesourcery.com>
8054 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8057 2011-04-05 Tom de Vries <tom@codesourcery.com>
8059 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8061 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8063 * config/arm/arm.md (define_constants for unspec): Replace with
8065 (define_constants for unspecv): Replace with define_c_enum.
8066 * config/arm/neon.md (define_constants for unspec): Replace with
8069 2011-04-04 Richard Henderson <rth@redhat.com>
8072 * dwarf2out.c (output_line_info): Always emit line info from
8073 at least one section.
8074 (dwarf2out_init): Create text_section_line_info here ...
8075 (set_cur_line_info_table): ... not here.
8077 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8080 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8083 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8085 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8087 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8088 (expr_equiv_p): Remove.
8089 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8090 (hash_scan_set): Update call to insert_set_in_table.
8091 (dump_hash_table): Dump <dest, src> pair.
8092 (lookup_set): Simplify. Lookup <dest, src> pair.
8093 (compute_transp): Remove, fold heavily simplified code into...
8094 (compute_local_properties): ...here. Expect COMP and TRANSP
8096 (find_avail_set): Take set directly from struct expr.
8097 (find_bypass-set): Likewise.
8098 (bypass_block): Likewise.
8099 (cprop_insn): Likewise. Remove redundant INSN_P test.
8101 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8102 checks on form of COND from find_implicit_sets to here.
8103 (find_implicit_sets): Cleanup control flow. Split critical edges
8104 if it exposes implicit sets. Allocate/resize implicit_sets as
8106 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8107 changed something. Run df_analyze after find_implicit_sets if any
8108 edges were split. Do not allocate implicit_sets here.
8110 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8111 (gcse_obstack): Renamed to cprop_obstack.
8112 (GNEW, GNEWVEC, GNEWVAR): Remove.
8114 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8115 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8116 (gcse_alloc): Likewise, and rename to cprop_alloc.
8117 (alloc_gcse_men, free_gcse_mem): Remove.
8118 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8119 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8120 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8122 * cprop.c (oprs_not_set_p): Remove.
8123 (mark_set, mark_clobber): Remove.
8124 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8125 (reg_not_set_p): New function.
8126 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8127 (cprop_insn): Likewise.
8128 (cprop_jump): Use FOR_EACH_EDGE.
8130 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8133 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8134 (rank_for_schedule): Use scheduled_insns vector instead of
8135 last_scheduled_insn.
8136 (ok_for_early_queue_removal): Likewise.
8137 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8139 (choose_ready): Likewise.
8140 (commit_schedule): Use VEC_iterate.
8141 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8142 a dbg_cnt, use it and ensure the first insn is in the ready list.
8143 (haifa_sched_init): Allocate scheduled_insns.
8144 (sched_extend_ready_list): Don't allocate it; reserve space.
8145 (haifa_sched_finish): Free it.
8147 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8149 * optc-gen.awk: Always remove type from Variable entry before
8150 recording in var_seen.
8152 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8154 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8155 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8156 call to tidy_fallthru_edges.
8158 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8160 * doc/options.texi (ToLower): Document.
8161 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8162 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8163 * opts.h (cl_option): Add cl_tolower field.
8164 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8165 arguments with lowercase strings.
8166 * config/rx/rx.opt (mcpu=): Add ToLower.
8167 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8170 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8172 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8174 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8176 * config/vax/vax.c: Include reload.h.
8178 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8180 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8181 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8182 (sparc_preferred_reload_class): New function.
8184 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8187 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8188 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8190 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8192 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8193 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8195 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8197 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8198 (ASM_OUTPUT_ALIGNED_BSS): Define.
8200 2011-04-03 Michael Matz <matz@suse.de>
8202 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8203 and next_slot members.
8204 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8205 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8206 (lto_streamer_cache_append): Declare.
8207 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8208 unsigned index, remove offset parameter, ensure that we append
8209 or update existing entries.
8210 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8211 parameter, update next_slot for append.
8212 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8214 (lto_streamer_cache_insert_at): Likewise.
8215 (lto_streamer_cache_append): New function.
8216 (lto_streamer_cache_lookup): Use unsigned index.
8217 (lto_streamer_cache_get): Likewise.
8218 (lto_record_common_node): Don't test tree_node_can_be_shared.
8219 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8220 (lto_streamer_cache_delete): Don't free offsets member.
8221 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8222 (lto_output_string_with_length): Use lto_output_data_stream.
8223 (lto_output_tree_header): Remove ix parameter, don't write it.
8224 (lto_output_builtin_tree): Likewise.
8225 (lto_write_tree): Adjust callers to above, don't track and write
8226 offset, write unsigned index.
8227 (output_unreferenced_globals): Don't emit all global vars.
8228 (write_global_references): Use unsigned indices.
8229 (lto_output_decl_state_refs): Likewise.
8230 (write_symbol): Likewise.
8231 * lto-streamer-in.c (lto_input_chain): Move earlier.
8232 (input_function): Use unsigned index.
8233 (input_alias_pairs): Don't read and then ignore all global vars.
8234 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8235 don't pass it back, use lto_streamer_cache_append.
8236 (lto_register_var_decl_in_symtab): Use unsigned index.
8237 (lto_register_function_decl_in_symtab): Likewise.
8238 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8240 (lto_get_builtin_tree): Don't read index, use
8241 lto_streamer_cache_append.
8242 (lto_read_tree): Adjust call to lto_materialize_tree.
8244 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8245 don't use function calls in arguments to MIN.
8247 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8250 * gimple.c (gimple_type_leader_entry): Mark deletable.
8252 2011-04-03 Alan Modra <amodra@gmail.com>
8254 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8256 2011-04-03 Michael Matz <matz@suse.de>
8258 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8260 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8262 2011-04-03 Michael Matz <matz@suse.de>
8264 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8265 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8266 without function context.
8267 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8268 current_function_decl and cfun.
8270 2011-04-03 Michael Matz <matz@suse.de>
8272 * tree.c (decl_init_priority_insert): Don't create entry for
8274 (decl_fini_priority_insert): Ditto.
8275 (fields_compatible_p, find_compatible_field): Remove.
8276 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8277 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8279 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8281 * combine.c (try_combine): Remove useless local variable.
8283 2011-04-03 Richard Guenther <rguenther@suse.de>
8284 Ira Rosen <ira.rosen@linaro.org>
8286 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8287 non-variable offsets and compare the remaining bases of the two
8288 accesses instead of looking for exact same data-ref.
8290 2011-04-02 Kai Tietz <ktietz@redhat.com>
8293 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8295 * i386.c (ix86_is_msabi_thiscall): New helper function.
8296 (ix86_is_type_thiscall): New helper function.
8297 (ix86_comp_type_attributes): Handle thiscall for method-functions
8299 (init_cumulative_args): Likewise.
8300 (find_drap_reg): Likewise.
8301 (ix86_static_chain): Likewise.
8302 (x86_this_parameter): Likewise.
8303 (x86_output_mi_thunk): Likewise.
8305 2011-04-01 Olivier Hainque <hainque@adacore.com>
8306 Nicolas Setton <setton@adacore.com>
8307 Eric Botcazou <ebotcazou@adacore.com>
8309 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8310 (add_gnat_descriptive_type_attribute): New function.
8311 (gen_array_type_die): Call it.
8312 (gen_enumeration_type_die): Likewise.
8313 (gen_struct_or_union_type_die): Likewise.
8314 (modified_type_die): Likewise.
8315 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8316 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8317 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8319 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8322 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8323 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8326 2011-03-17 Richard Guenther <rguenther@suse.de>
8329 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8330 origin for decls in other ltrans units.
8331 (input_varpool_node): Likewise.
8333 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8336 * expr.c (expand_assignment): Handle all possibilities
8337 if TO_RTX is CONCAT.
8338 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8339 (store_split_bit_field): If SUBREG_REG (op0) or
8340 op0 itself has smaller mode than word, return it
8341 for offset 0 and const0_rtx for out-of-bounds stores.
8342 If word is const0_rtx, skip it.
8344 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8346 * config/h8300/h8300.c (print_operand_address): Rename to...
8347 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8348 Call h8300_print_operand and h8300_print_operand_address instead of
8349 print_operand and print_operand_address. Declare.
8350 (print_operand): Renake to...
8351 (h8300_print_operand): ...this. Make static. Adjust comments.
8352 Call h8300_print_operand instead of print_operand. Declare.
8353 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8354 (h8300_register_move_cost): Likewise.
8355 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8356 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8357 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8358 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8359 * config/h8300/h8300-protos.h (print_operand): Delete.
8360 (print_operand_address): Delete.
8362 2011-04-01 Richard Henderson <rth@redhat.com>
8365 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8366 in strict mode before dwarf4. Re-order tests to early out
8367 before switching sections.
8369 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8371 * config/h8300/constraints.md: New file.
8372 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8373 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8374 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8375 * config/h8300/predicates.md (bit_operand): Likewise.
8376 (incdec_operand): Use satisfies_constraint_M and
8377 satisfies_constraint_O. Don't use C code block.
8378 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8379 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8380 (compute_mov_length): Use satisfies_constraint_G.
8381 (fix_bit_operand): Use satisfies_constraint_U.
8382 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8383 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8384 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8385 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8386 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8387 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8388 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8389 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8390 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8391 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8392 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8393 (EXTRA_MEMORY_CONSTRAINT): Delete.
8395 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8396 Michael Meissner <meissner@linux.vnet.ibm.com>
8399 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8400 operands, as per the specifications.
8402 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8403 (vec_extract_evenv4sf): Ditto.
8404 (vec_extract_evenv8hi): Ditto.
8405 (vec_extract_evenv16qi): Ditto.
8406 (vec_extract_oddv4si): Ditto.
8408 2011-03-31 Mark Wielaard <mjw@redhat.com>
8410 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8411 high_pc attribute if the CU has no associated code. Only output
8412 DW_AT_entry_pc for CU if not generating strict dwarf and
8415 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8417 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8418 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8420 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8421 * final.c (final_start_function): Call the new function rather
8422 than using a NULL argument for dwarf2out_frame_debug.
8424 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8425 that contains the prologue.
8427 * haifa-sched.c (queue_insn): New arg REASON. All callers
8428 changed. Print it in debugging output.
8430 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8432 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8433 Split most of the code into...
8434 (begin_move_insn): ... here. New function.
8435 (ebb_sched_info): Add a pointer to it.
8436 * haifa-sched.c (scheduled_insns): New static variable.
8437 (sched_extend_ready_list): Allocate it.
8438 (schedule_block): Use it to record the order of scheduled insns.
8439 Perform RTL changes to move insns only after all scheduling
8440 decisions have been made.
8441 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8442 begin_move_insn field.
8443 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8444 * sched-int.h (struct haifa_sched_info): Remove second argument
8445 from begin_schedule_ready hook. Add new member begin_move_insn.
8446 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8447 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8449 * haifa-sched.c (prune_ready_list): New function, broken out of
8451 (schedule_block): Use it.
8453 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8455 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8457 2011-04-01 Kai Tietz <ktietz@redhat.com>
8459 * config.gcc (*-*-mingw*): Allow as option the
8460 posix threading model.
8461 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8462 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8464 (CPP_SPEC): Add pthread/no-pthread handling.
8465 (LIB_SPEC): Likewise.
8466 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8467 (LIB_SPEC): Likewise.
8468 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8469 flag to pass -pthread option for shared libgcc build.
8470 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8471 for shared libgcc build.
8472 * config/i386/t-mingw-pthread: New file.
8473 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8474 New define to enable use of library pthread by default.
8475 * config/i386/mingw.opt (pthread): New driver option.
8476 (no-pthread): New driver option.
8477 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8478 * config/i386/mingw-w64.opt: Likewise.
8480 2011-04-01 Gary Funck <gary@intrepid.com>
8482 * c-decl.c (grokdeclarator): Fix formatting.
8484 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8486 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8487 instead of n_operands.
8488 (set_storage_via_setmem): Likewise.
8489 * optabs.c (maybe_gen_insn): Likewise.
8490 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8491 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8492 (mips_expand_builtin_direct): Likewise.
8493 * config/spu/spu.c (expand_builtin_args): Likewise.
8495 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8497 * recog.h (insn_data_d): Add n_generator_args.
8498 * genoutput.c (data): Likewise.
8499 (output_insn_data): Print it.
8500 (max_opno, num_dups): Delete.
8501 (scan_operands): Just fill in "d->operand[...]".
8502 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8504 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8506 * gensupport.h (pattern_stats): New structure.
8507 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8508 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8509 (max_operand_1, max_operand_vec): Delete.
8510 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8512 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8514 * emit-rtl.c (emit_pattern_after_setloc): New function.
8515 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8516 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8517 (emit_pattern_after): New function.
8518 (emit_insn_after, emit_jump_insn_after): Call it.
8519 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8520 (emit_pattern_before_setloc): New function.
8521 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8522 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8524 (emit_pattern_before): New function.
8525 (emit_insn_before, emit_jump_insn_before): Call it.
8526 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8528 2011-03-31 Richard Henderson <rth@redhat.com>
8530 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8531 (dw_separate_line_info_entry): Remove.
8532 (enum dw_line_info_opcode): New.
8533 (dw_line_info_entry): Use it.
8534 (dw_line_info_table, dw_line_info_table_p): New.
8535 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8536 (line_info_table, line_info_label_num): Remove.
8537 (line_info_table_in_use): Remove.
8538 (separate_line_info_table): Remove.
8539 (separate_line_info_table_allocated): Remove.
8540 (separate_line_info_table_in_use): Remove.
8541 (LINE_INFO_TABLE_INCREMENT): Remove.
8542 (line_info_label_num): New.
8543 (cur_line_info_table): New.
8544 (text_section_line_info, cold_text_section_line_info): New.
8545 (separate_line_info): New.
8546 (SEPARATE_LINE_CODE_LABEL): Remove.
8547 (print_dwarf_line_table): Remove.
8548 (debug_dwarf): Don't dump it.
8549 (output_one_line_info_table): New.
8550 (output_line_info): Use it.
8551 (new_line_info_table): New.
8552 (set_cur_line_info_table): New.
8553 (dwarf2out_switch_text_section): Use it.
8554 (dwarf2out_begin_function): Likewise.
8555 (push_dw_line_info_entry): New.
8556 (dwarf2out_source_line): Rewrite for new line info tables.
8557 (dwarf2out_init): Remove dead initailizations.
8559 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8561 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8563 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8564 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8565 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8566 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8567 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8568 * opt-functions.awk (flag_init, switch_bit_fields): New.
8569 (switch_flags): Don't handle flags moved to bit-fields. Don't
8570 generate CL_MISSING_OK or CL_SAVE.
8571 * optc-gen.awk: Update to generate bit-field output as well as
8573 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8574 bit-field instead of CL_REJECT_DRIVER flag.
8575 * opts-common.c (generate_canonical_option,
8576 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8577 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8578 instead of CL_REJECT_NEGATIVE flag.
8579 * toplev.c (print_switch_values): Use cl_report bit-field instead
8582 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8584 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8585 a zero minimum index only if it is redundant.
8587 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8589 PR rtl-optimization/48381
8590 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8591 instead of ira_class_hard_reg_index for calculating conflicting
8594 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8596 * cprop.c: Clean up hash table building.
8597 (reg_avail_info): Remove.
8598 (oprs_available_p): Remove.
8599 (record_last_reg_set_info): Remove.
8600 (record_last_set_info): Remove.
8601 (reg_available_p): New function.
8602 (gcse_constant_p): Do not treat unfolded conditions as constants.
8603 (make_set_regs_unavailable): New function.
8604 (hash_scan_set): Simplify with new reg_available_p.
8605 (compute_hash_table_work): Traverse insns stream only once.
8606 Do not compute reg_avail_info. Traverse insns in reverse order.
8607 Record implicit sets after recording explicit sets from the block.
8609 2011-03-31 Michael Matz <matz@suse.de>
8611 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8613 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8615 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8616 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8617 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8618 (h8300_mode_dependent_address_p): New function.
8619 (h8300_get_index): Make static.
8621 2011-03-31 Jeff Law <law@redhat.com>
8623 * reload1.c (elimination_effects): Fix typo in recent change.
8625 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8626 typo potentially leading to null pointer dereference.
8628 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8629 (setup_save_areas): Corresponding changes to avoid useless
8632 * jump.c (reversed_comparison_code_parts): Avoid successive return
8633 statements when REVERSE_CONDITION is defined.
8635 * expr.c (expand_assignment): Avoid useless assignments.
8636 (expand_expr_real_1): Likewise.
8637 (expand_expr_real_2): Avoid useless statements.
8639 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8641 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8643 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8646 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8648 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8651 * doc/tm.texi.in (TARGET_VERSION): Remove.
8652 * doc/tm.texi: Regenerate.
8653 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8654 * collect2.c (main): Don't use TARGET_VERSION.
8655 * mips-tdump.c (main): Don't use TARGET_VERSION.
8656 * mips-tfile.c (main): Don't use TARGET_VERSION.
8657 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8658 * config/rs6000/vxworksae.h: Remove.
8659 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8660 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8661 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8662 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8663 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8664 * config/arm/arm.h (TARGET_VERSION): Remove.
8665 * config/arm/coff.h (TARGET_VERSION): Remove.
8666 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8667 * config/arm/elf.h (TARGET_VERSION): Remove.
8668 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8669 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8670 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8671 * config/arm/pe.h (TARGET_VERSION): Remove.
8672 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8673 * config/arm/semi.h (TARGET_VERSION): Remove.
8674 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8675 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8676 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8677 * config/avr/avr.h (TARGET_VERSION): Remove.
8678 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8679 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8680 * config/frv/frv.h (TARGET_VERSION): Remove.
8681 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8682 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8683 * config/i386/darwin.h (TARGET_VERSION): Remove.
8684 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8685 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8686 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8687 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8688 * config/i386/gnu.h (TARGET_VERSION): Remove.
8689 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8690 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8691 * config/i386/linux.h (TARGET_VERSION): Remove.
8692 * config/i386/linux64.h (TARGET_VERSION): Remove.
8693 * config/i386/lynx.h (TARGET_VERSION): Remove.
8694 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8695 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8696 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8697 * config/i386/netware.h (TARGET_VERSION): Remove.
8698 * config/i386/nto.h (TARGET_VERSION): Remove.
8699 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8700 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8701 * config/ia64/elf.h (TARGET_VERSION): Remove.
8702 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8703 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8704 * config/ia64/linux.h (TARGET_VERSION): Remove.
8705 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8706 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8707 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8708 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8709 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8710 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8711 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8712 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8713 * config/m68k/linux.h (TARGET_VERSION): Remove.
8714 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8715 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8716 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8717 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8718 * config/mep/mep.h (TARGET_VERSION): Remove.
8719 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8720 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8721 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8722 * config/mips/linux.h (TARGET_VERSION): Remove.
8723 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8724 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8725 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8726 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8727 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8728 * config/pa/pa.h (TARGET_VERSION): Remove.
8729 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8730 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8731 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8732 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8733 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8734 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8735 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8736 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8737 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8738 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8739 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8740 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8741 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8742 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8743 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8744 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8745 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8746 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8747 * config/s390/linux.h (TARGET_VERSION): Remove.
8748 * config/s390/s390.h (TARGET_VERSION): Remove.
8749 * config/s390/tpf.h (TARGET_VERSION): Remove.
8750 * config/score/score.h (TARGET_VERSION): Remove.
8751 * config/sh/linux.h (TARGET_VERSION): Remove.
8752 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8753 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8754 * config/sh/sh.h (TARGET_VERSION): Remove.
8755 * config/sh/sh64.h (TARGET_VERSION): Remove.
8756 * config/sh/superh.h (TARGET_VERSION): Remove.
8757 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8758 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8759 * config/sparc/linux.h (TARGET_VERSION): Remove.
8760 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8761 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8762 TARGET_NAME32, TARGET_NAME): Remove.
8763 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8764 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8765 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8766 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8767 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8768 * config/spu/spu.h (TARGET_VERSION): Remove.
8769 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8770 * config/v850/v850.h (TARGET_VERSION): Remove.
8771 * config/vax/linux.h (TARGET_VERSION): Remove.
8772 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8773 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8774 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8776 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8779 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8780 frame-related from frame-unrelated adjustments to the stack pointer.
8782 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8784 * common.opt (fdebug-types-section): Move earlier.
8785 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8787 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8789 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8792 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8794 * tree.h (CASE_CHAIN): Define.
8795 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8796 (gimple_redirect_edge_and_branch): Likewise.
8798 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8801 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8804 2011-03-30 Jeff Law <law@redhat.com>
8806 * PR bootstrap/48371
8807 * reload1.c (reload): Fix botch in last change.
8809 * reload.h (struct reload): Fix typo introduced in last change.
8811 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8813 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8814 Undocumented. Remove help text.
8815 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8818 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8820 * doc/options.texi (NegativeAlias): Document.
8821 (Alias): Mention NegativeAlias.
8822 * opt-functions.awk: Handle NegativeAlias.
8823 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8824 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8825 * opts.h (CL_NEGATIVE_ALIAS): Define.
8826 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8827 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8829 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8831 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8832 mno-spe and mno-isel instead of mspe=no and -misel=no.
8834 2011-03-29 Mark Wielaard <mjw@redhat.com>
8836 * common.opt (fdebug-types-section): New flag.
8837 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8838 * dwarf2out.c (use_debug_types): New define.
8839 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8840 (print_die): Guard output of type unit signatures using
8842 (build_abbrev_table): Replace assert of dwarf_version >= 4
8843 with assert on use_debug_types.
8844 (size_of_die): Likewise.
8845 (unmark_dies): Likewise.
8846 (value_format): Decide AT_ref_external form on use_debug_types.
8847 (output_die): Replace dwarf_version version check guard with
8848 use_debug_types where appropriate.
8849 (modified_type_die): Likewise.
8850 (gen_reference_type_die): Likewise.
8851 (dwarf2out_start_source_file): Likewise.
8852 (dwarf2out_end_source_file): Likewise.
8853 (prune_unused_types_walk_attribs): Likewise.
8854 (dwarf2out_finish): Likewise.
8856 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8858 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8860 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8862 PR rtl-optimization/48332
8863 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8864 mode of input operand N and modeN to its actual mode.
8866 2011-03-30 Jeff Law <law@redhat.com>
8868 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8869 define accessor macro.
8870 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8871 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8872 (reg_equiv_init): Likewise.
8873 (reg_equivs_size): New variable.
8874 (reg_equiv_init_size): Remove.
8875 (allocate_initial_values): Move prototype to here from....
8876 * integrate.h (allocate_initial_values): Remove prototype.
8877 * integrate.c: Include reload.h.
8878 (allocate_initial_values): Corresponding changes.
8879 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8880 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8881 (update_equiv_regs): Corresponding changes.
8882 (ira): Corresponding changes.
8883 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8884 (push_secondary_reload): Corresponding changes.
8885 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8886 (make_memloc, find_reloads_address): Corresponding changes.
8887 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8888 (find_reloads_address_1): Corresponding changes.
8889 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8890 (refers_to_regno_for_reload_p): Corresponding changes.
8891 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8892 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8893 * reload1.c: Include ggc.h.
8894 (grow_reg_equivs): New function.
8895 (replace_pseudos_in, reload): Corresponding changes.
8896 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8897 (eliminate_regs_1, elimination_effects): Corresponding changes.
8898 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8899 (delete_output_reload): Likewise.
8900 * caller-save.c (mark_referenced_regs): Corresponding changes.
8901 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8902 * frv/predicates.md (frv_load_operand): Corresponding changes.
8903 * microblaze/microblaze.c (double_memory_operand): Corresponding
8905 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8906 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8907 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8908 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8909 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8911 * pa/pa.c (emit_move_sequence): Corresponding changes.
8912 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8914 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8917 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8918 structure modes. Don't check neon_vector_mem_operand for
8919 vector or structure modes.
8921 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8922 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8925 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8926 operand 1 and reshuffle the operands to match.
8927 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8929 2011-03-30 Christian Schüler <cschueler@gmx.de>
8932 * config/c.opt (F): Added 'Driver' to -F option.
8935 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8937 * config/darwin.opt: Added '-arch' option.
8939 2011-03-30 Nick Clifton <nickc@redhat.com>
8941 * config/rx/rx.md: Add peepholes and patterns to combine
8942 extending loads and simple arithmetic instructions.
8943 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8944 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8945 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8946 modes to use pre-decrement and post-increment addressing.
8947 (rx_is_restricted_memory_address): Add range checking of REG+INT
8949 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8950 (rx_memory_move_cost): Adjust cost of stores.
8951 (rx_adjust_insn_length): New function.
8953 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8956 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8957 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8958 matching arg00/arg01 types.
8960 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8962 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8963 last_location to UNKNOWN_LOCATION.
8965 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8968 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8971 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8972 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8975 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8977 (sparc_cpu): Likewise.
8978 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8981 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8985 PR rtl-optimization/48345
8986 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8987 hard regs for given mode from profitable regs when doing secondary
8990 2011-03-29 Jeff Law <law@redhat.com>
8993 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8994 do_not_duplicate field.
8995 (lookup_redirection_data): Corresponding changes.
8996 (create_duplicates): Always create a template block.
8997 (redirect_edges): Remove code which reused the original block
8998 when it was going to become unreachable code.
8999 (thread_block): Don't set do_not_duplicate field.
9001 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9003 * lto-opts.c (register_user_option_p, lto_register_user_option):
9004 Make type argument unsigned.
9005 * lto-streamer.h (lto_register_user_option): Make type argument
9007 * opth-gen.awk: Make CL_* macros unsigned.
9008 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9009 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9010 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9011 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9012 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9013 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9014 (find_opt): Make lang_mask argument unsigned.
9016 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9018 PR rtl-optimization/48331
9019 PR rtl-optimization/48334
9020 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9021 for any used algorithm.
9023 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9025 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9028 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9030 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9031 (alpha_option_override): Don't set alpha_sr_alias_set.
9032 (emit_frame_store_1): Use gen_frame_mem rather than calling
9034 (alpha_expand_epilogue): Ditto.
9036 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9038 PR tree-optimization/48290
9039 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9040 vectorization, check that relevant phis in the basic block after
9041 the inner loop are really inner loop's exit phis.
9043 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9046 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9047 (cached_dw_loc_list_def): New structure.
9048 (cached_dw_loc_list): New typedef.
9049 (cached_dw_loc_list_table): New variable.
9050 (cached_dw_loc_list_table_hash): New function.
9051 (cached_dw_loc_list_table_eq): Likewise.
9052 (add_location_or_const_value_attribute): Take a bool cache_p.
9053 Cache the list when the parameter is true.
9054 (gen_formal_parameter_die): Update caller.
9055 (gen_variable_die): Likewise.
9056 (dwarf2out_finish): Likewise.
9057 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9058 while generating debug info for the decl.
9059 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9060 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9061 (resolve_addr): Cache the result of resolving a chain of
9064 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9066 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9067 conflict object hard regset nodes have intersecting hard reg sets.
9069 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9070 after regstat_init_n_sets_and_refs.
9072 * ira.c: Add more comments at the top.
9073 (setup_stack_reg_pressure_class, setup_pressure_classes):
9074 Add comments how we compute the register pressure classes.
9075 (setup_allocno_and_important_classes): Add more comments.
9076 (setup_class_translate_array, reorder_important_classes)
9077 (setup_reg_class_relations): Add comments.
9079 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9082 * ira-color.c: Add 2011 to the Copyright line.
9083 (assign_hard_reg): Add more comments.
9084 (improve_allocation): Ditto.
9086 * ira-costs.c: Add 2011 to the Copyright line.
9087 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9089 (setup_regno_cost_classes_by_mode): Ditto.
9091 Initial patches from ira-improv branch:
9093 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9095 * ira-build.c (ira_create_object): Remove initialization of
9096 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9097 (ira_create_allocno): Remove initialization of
9098 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9099 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9100 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9101 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9102 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9103 Initialize ALLOCNO_ADD_DATA.
9104 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9105 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9107 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9108 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9110 * ira.c (ira_reallocate): Remove.
9111 (setup_pressure_classes): Call
9112 ira_init_register_move_cost_if_necessary. Use
9113 ira_register_move_cost instead of ira_get_register_move_cost.
9114 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9115 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9117 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9118 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9119 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9120 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9121 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9122 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9124 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9125 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9126 (struct allocno_color_data): New.
9127 (allocno_color_data_t): New typedef.
9128 (allocno_color_data): New definition.
9129 (ALLOCNO_COLOR_DATA): New macro.
9130 (struct object_color_data): New.
9131 (object_color_data_t): New typedef.
9132 (object_color_data): New definition.
9133 (OBJECT_COLOR_DATA): New macro.
9134 (update_copy_costs, calculate_allocno_spill_cost): Call
9135 ira_init_register_move_cost_if_necessary. Use
9136 ira_register_move_cost instead of ira_get_register_move_cost.
9137 (move_spill_restore, update_curr_costs): Ditto.
9138 (allocno_spill_priority): Make it inline.
9139 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9140 (struct coalesce_data, coalesce_data_t): New.
9141 (allocno_coalesce_data): New definition.
9142 (ALLOCNO_COALESCE_DATA): New macro.
9143 (merge_allocnos, coalesced_allocno_conflict_p): Use
9144 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9145 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9146 (coalesce_allocnos): Ditto.
9147 (setup_coalesced_allocno_costs_and_nums): Ditto.
9148 (collect_spilled_coalesced_allocnos): Ditto.
9149 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9150 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9151 (coalesce_spill_slots): Ditto.
9152 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9153 free allocno_coalesce_data.
9155 * ira-conflicts.c: Fix formatting.
9156 (process_regs_for_copy): Call
9157 ira_init_register_move_cost_if_necessary. Use
9158 ira_register_move_cost instead of ira_get_register_move_cost.
9159 (build_object_conflicts): Optimize.
9161 * ira-costs.c (record_reg_classes): Optimize. Call
9162 ira_init_register_move_cost_if_necessary. Use
9163 ira_register_move_cost, ira_may_move_in_cost, and
9164 ira_may_move_out_cost instead of ira_get_register_move_cost and
9165 ira_get_may_move_cost.
9166 (record_address_regs): Ditto.
9167 (scan_one_insn): Optimize.
9168 (find_costs_and_classes): Optimize.
9169 (process_bb_node_for_hard_reg_moves): Call
9170 ira_init_register_move_cost_if_necessary. Use
9171 ira_register_move_cost instead of ira_get_register_move_cost.
9173 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9174 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9175 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9176 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9178 (ira_initiate_emit_data, ira_finish_emit_data)
9179 (create_new_allocno): New functions.
9180 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9181 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9182 Use ira_register_move_cost instead of ira_get_register_move_cost.
9184 * ira-int.h: Fix some comments.
9185 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9186 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9187 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9188 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9190 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9191 bitfield after mode. Make hard_regno a short int. Make
9192 hard_regno short. Remove first_coalesced_allocno and
9193 next_coalesced_allocno. Move mem_optimized_dest_p,
9194 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9195 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9196 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9197 temp, colorable_p. Add new member add_data.
9198 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9199 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9200 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9201 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9202 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9203 (ALLOCNO_ADD_DATA): New macro.
9204 (ira_emit_data_t): New typedef.
9205 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9206 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9207 from struct ira_allocno.
9208 (ALLOCNO_EMIT_DATA): New macro.
9209 (ira_allocno_emit_data, allocno_emit_reg): New.
9210 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9211 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9212 (OBJECT_ADD_DATA): New macro.
9213 (ira_reallocate): Remove.
9214 (ira_initiate_emit_data, ira_finish_emit_data): New.
9215 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9216 (ira_init_register_move_cost_if_necessary): New.
9217 (ira_object_conflict_iter_next): Merge into
9218 ira_object_conflict_iter_cond.
9219 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9221 * ira-live.c (process_single_reg_class_operands): Call
9222 ira_init_register_move_cost_if_necessary. Use
9223 ira_register_move_cost instead of ira_get_register_move_cost.
9225 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9227 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9229 * ira-costs.c: Fix formatting.
9230 (cost_classes, cost_classes_num): Remove.
9231 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9232 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9233 (cost_classes_del, cost_classes_htab): New.
9234 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9235 (initiate_regno_cost_classes, setup_cost_classes): New.
9236 (setup_regno_cost_classes_by_aclass): New.
9237 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9238 (record_reg_classes): Use regno_cost_classes instead of
9239 cost_classes. Move checking opposite operand up.
9240 (record_address_regs): Use regno_cost_classes
9241 instead of cost_classes.
9242 (scan_one_insn): Ditto. Use always general register.
9243 (print_allocno_costs): Use regno_cost_classes instead of
9245 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9246 (find_costs_and_classes): Set up cost classes for each registers.
9247 Use also their mode for this. Use regno_cost_classes instead of
9249 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9251 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9252 (ira_costs, ira_set_pseudo_classes): Call
9253 initiate_regno_cost_classes and finish_regno_cost_classes.
9255 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9257 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9259 * target.def (ira_cover_classes): Remove.
9261 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9263 * doc/tm.texi.in: Ditto.
9265 * ira-conflicts.c: Remove mentioning cover classes from the file.
9266 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9267 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9269 * targhooks.c (default_ira_cover_classes): Remove.
9271 * targhooks.h (default_ira_cover_classes): Ditto.
9273 * haifa-sched.c: Remove mentioning cover classes from the file.
9274 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9275 ira_pressure_classes and ira_pressure_classes_num instead of
9276 ira_reg_class_cover_size and ira_reg_class_cover. Use
9277 sched_regno_pressure_class instead of sched_regno_cover_class.
9278 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9279 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9281 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9282 classes from the file.
9283 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9284 (struct object_hard_regs, struct object_hard_regs_node): New.
9285 (struct ira_object): New members profitable_hard_regs,
9286 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9287 (struct ira_allocno): Rename cover_class to aclass. Rename
9288 cover_class_cost and updated_cover_class_cost to class_cost and
9289 updated_class_cost. Remove splay_removed_p and
9290 left_conflict_size. Add new members colorable_p.
9291 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9292 (ALLOCNO_COLORABLE_P): New macro.
9293 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9294 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9295 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9296 (OBJECT_...): Rename parameter C to O.
9297 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9298 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9299 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9300 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9301 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9302 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9303 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9304 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9305 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9306 x_ira_reg_class_subunion.
9307 (ira_max_memory_move_cost, ira_max_register_move_cost)
9308 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9309 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9310 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9311 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9312 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9313 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9314 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9315 (ira_tune_allocno_costs_and_cover_classes): Rename to
9316 ira_tune_allocno_costs.
9317 (ira_debug_hard_regs_forest): New.
9318 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9319 (ira_object_conflict_iter_next): Fix comments.
9320 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9321 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9322 cover_class to aclass.
9323 (ira_allocate_and_accumulate_costs): Ditto.
9324 (ira_allocate_and_set_or_copy_costs): Ditto.
9326 * opts.c (decode_options): Remove ira_cover_class check.
9328 * ira-color.c: Remove mentioning cover classes from the file. Use
9329 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9330 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9331 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9332 (splay-tree.h): Remove include.
9333 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9334 before copy_freq_compare_func.
9335 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9336 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9338 (hard_regs_roots, hard_regs_node_vec): Ditto.
9339 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9340 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9341 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9342 (create_new_object_hard_regs_node): Ditto.
9343 (add_new_object_hard_regs_node_to_forest): Ditto.
9344 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9345 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9347 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9348 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9349 (remove_unused_object_hard_regs_nodes): Ditto.
9350 (enumerate_object_hard_regs_nodes): Ditto.
9351 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9352 (object_hard_regs_subnode_t): Ditto.
9353 (struct object_hard_regs_subnode): Ditto.
9354 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9355 (setup_object_hard_regs_subnode_index): Ditto.
9356 (get_object_hard_regs_subnodes_num): Ditto.
9357 (form_object_hard_regs_nodes_forest): Ditto.
9358 (finish_object_hard_regs_nodes_tree): Ditto.
9359 (finish_object_hard_regs_nodes_forest): Ditto.
9360 (allocnos_have_intersected_live_ranges_p): Rename to
9361 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9362 (pseudos_have_intersected_live_ranges_p): Rename to
9363 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9364 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9365 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9366 (update_copy_costs): Remove assert. Skip cost update if the hard
9367 reg does not belong the class.
9368 (assign_hard_reg): Process only profitable hard regs.
9369 (uncolorable_allocnos_num): Make it scalar.
9370 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9371 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9372 and ira_reg_class_max_nregs.
9373 (bucket_allocno_compare_func): Check frequency first.
9374 (sort_bucket): Add compare function as a parameter.
9375 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9376 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9377 (push_allocno_to_stack): Rewrite for checking new allocno
9379 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9380 (push_only_colorable): Pass new parameter to sort_bucket.
9381 (push_allocno_to_spill): Remove.
9382 (allocno_spill_priority_compare): Make it inline and rewrite.
9383 (splay_tree_allocate, splay_tree_free): Remove.
9384 (allocno_spill_sort_compare): New function.
9385 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9386 build and use splay tree. Choose first allocno in uncolorable
9387 allocno bucket to spill. Remove setting spill cost.
9388 (all_conflicting_hard_regs): Remove.
9389 (setup_allocno_available_regs_num): Check only profitable hard
9390 regs. Print info about hard regs nodes.
9391 (setup_allocno_left_conflicts_size): Remove.
9392 (put_allocno_into_bucket): Don't call
9393 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9394 (improve_allocation): New.
9395 (color_allocnos): Call setup_profitable_hard_regs,
9396 form_object_hard_regs_nodes_forest, improve_allocation,
9397 finish_object_hard_regs_nodes_forest. Setup spill cost.
9398 (print_loop_title): Use pressure classes.
9399 (color_allocnso): Ditto.
9400 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9401 and allocnos_for_spilling.
9402 (ira_sort_regnos_for_alter_reg): Don't setup members
9403 {first,next}_coalesced_allocno.
9404 (color): Remove allocating and freeing removed_splay_allocno_vec.
9405 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9406 prohibited_class_mode_regs.
9408 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9410 (update_allocno_pressure_excess_length): Use pressure classes.
9411 (inc_register_pressure, dec_register_pressure): Check for pressure
9413 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9414 pressure class. Use ira_reg_class_nregs instead of
9415 ira_reg_class_max_nregs.
9416 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9417 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9418 (single_reg_class): Use ira_reg_class_nregs instead of
9419 ira_reg_class_max_nregs.
9420 (process_bb_node_lives): Use pressure classes.
9422 * ira-emit.c: Remove mentioning cover classes from the file. Use
9423 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9424 (change_loop): Use pressure classes.
9425 (modify_move_list): Call ira_set_allocno_class instead of
9426 ira_set_allocno_cover_class.
9428 * ira-build.c: Remove mentioning cover classes from the file. Use
9429 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9430 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9431 ALLOCNO_UPDATED_CLASS_COST instead of
9432 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9433 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9434 (ira_create_allocno): Remove initialization of
9435 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9436 ALLOCNO_COLORABLE_P.
9437 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9438 Update conflict regs for the objects.
9439 (create_cap_allocno): Remove assert. Don't propagate
9440 ALLOCNO_AVAILABLE_REGS_NUM.
9441 (ira_free_allocno_costs): New function.
9442 (finish_allocno): Change a part of code into call of
9443 ira_free_allocno_costs.
9444 (low_pressure_loop_node_p): Use pressure classes.
9445 (object_range_compare_func): Don't compare classes.
9446 (setup_min_max_conflict_allocno_ids): Ditto.
9448 * loop-invariant.c: Remove mentioning cover classes from the file.
9449 Use ira_pressure_classes and ira_pressure_classes_num instead of
9450 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9451 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9452 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9453 Use reg_allocno_class instead of reg_cover_class.
9454 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9455 STACK_REG_COVER_CLASS.
9456 (get_regno_cover_class): Rename to get_regno_pressure_class.
9457 (move_loop_invariants): Initialize and finalize regstat.
9459 * ira.c: Remove mentioning cover classes from the file. Add
9460 comments about coloring without cover classes. Use ALLOCNO_CLASS
9461 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9462 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9463 setup_class_subset_and_memory_move_costs.
9464 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9465 (setup_cover_and_important_classes): Rename to
9466 setup_allocno_and_important_classes.
9467 (setup_class_translate_array): New.
9468 (setup_class_translate): Call it for allocno and pressure classes.
9469 (cover_class_order): Rename to allocno_class_order.
9470 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9471 of ira_class_translate.
9472 (reorder_important_classes): Set up ira_important_class_nums.
9473 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9474 (print_class_cover): Rename to print_classes. Add parameter.
9475 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9476 Print pressure classes too.
9477 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9478 setup_reg_subclasses.
9479 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9480 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9481 (setup_prohibited_class_mode_regs): Use
9482 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9483 (clarify_prohibited_class_mode_regs): New function.
9484 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9485 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9486 (ira_init_once): Initialize them.
9487 (free_register_move_costs): Process them.
9488 (ira_init): Move calls of find_reg_classes and
9489 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9490 Call clarify_prohibited_class_mode_regs.
9491 (ira_no_alloc_reg): Remove.
9492 (too_high_register_pressure_p): Use pressure classes.
9494 * sched-deps.c: Remove mentioning cover classes from the file.
9495 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9496 ira_pressure_classes and ira_pressure_classes_num instead of
9497 ira_reg_class_cover_size and ira_reg_class_cover.
9498 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9499 sched_regno_pressure_class instead of sched_regno_cover_class.
9500 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9501 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9503 * ira.h: Add 2010 to Copyright.
9504 (ira_no_alloc_reg): Remove external.
9505 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9506 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9507 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9508 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9509 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9510 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9511 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9512 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9513 x_ira_no_alloc_regs.
9514 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9515 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9516 ira_allocno_classes_num and ira_allocno_classes.
9517 (ira_class_translate): Rename to ira_allocno_class_translate.
9518 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9519 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9520 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9521 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9522 (ira_no_alloc_regs): New.
9524 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9525 classes from the file. Use ALLOCNO_CLASS instead of
9526 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9527 ALLOCNO_COVER_CLASS_COST.
9528 (regno_cover_class): Rename to regno_aclass.
9529 (record_reg_classes): Use ira_reg_class_subunion instead of
9530 ira_reg_class_union.
9531 (record_address_regs): Check overflow.
9532 (scan_one_insn): Ditto.
9533 (print_allocno_costs): Print total mem cost fore regional allocation.
9534 (print_pseudo_costs): Use REG_N_REFS.
9535 (find_costs_and_classes): Use classes intersected with them on the
9536 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9537 ira_reg_class_union. Use ira_allocno_class_translate and
9538 regno_aclass instead of ira_class_translate and regno_cover_class.
9539 Modify code for finding regno_aclass. Setup preferred classes for
9541 (setup_allocno_cover_class_and_costs): Rename to
9542 setup_allocno_class_and_costs. Use regno_aclass instead of
9543 regno_cover_class. Use ira_set_allocno_class instead of
9544 ira_set_allocno_cover_class.
9545 (init_costs, finish_costs): Use regno_aclass instead of
9547 (ira_costs): Use setup_allocno_class_and_costs instead of
9548 setup_allocno_cover_class_and_costs.
9549 (ira_tune_allocno_costs_and_cover_classes): Rename to
9550 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9551 by processing objects. Use ira_reg_class_max_nregs instead of
9552 ira_reg_class_nregs.
9554 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9556 * sched-int.h: Remove mentioning cover classes from the file.
9557 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9559 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9560 classes from the file.
9561 (struct reg_pref): Rename coverclass into allocnoclass.
9562 (reg_cover_class): Rename to reg_allocno_class.
9564 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9566 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9568 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9570 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9572 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9574 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9576 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9578 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9580 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9582 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9584 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9585 (i386_ira_cover_classes): Ditto.
9587 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9589 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9591 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9593 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9595 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9597 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9599 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9600 (mips_ira_cover_classes): Ditto.
9602 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9604 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9606 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9608 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9610 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9612 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9613 (IRA_COVER_CLASSES_VSX): Ditto.
9615 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9616 (rs6000_ira_cover_classes): Ditto.
9618 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9620 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9622 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9624 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9626 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9628 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9630 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9632 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9634 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9636 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9638 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9641 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9642 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9643 dw_fde_unlikely_section_end_label, cold_in_std_section,
9644 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9645 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9647 (output_fde): Use dw_fde_second_{begin,end} if second is
9648 true, otherwise dw_fde_{begin,end}.
9649 (output_call_frame_info): Test dw_fde_second_begin != NULL
9650 instead of dw_fde_switched_sections.
9651 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9652 fields, initialize new fields. Initialize in_std_section
9653 unconditionally from the first partition.
9654 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9655 dw_fde_second_begin is non-NULL.
9656 (dwarf2out_switch_text_section): Stop initializing removed
9657 dw_fde_struct fields, initialize new fields, initialize
9658 also dw_fde_end here. Set dw_fde_switch_cfi even when
9659 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9660 (struct var_loc_list_def): Add last_before_switch field.
9661 (arange_table, arange_table_allocated, arange_table_in_use,
9662 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9663 (size_of_aranges): Count !in_std_section and !second_in_std_section
9664 hunks in fdes, instead of looking at arange_table_in_use.
9665 (output_aranges): Add aranges_length argument, don't call
9666 size_of_aranges here. Instead of using aranges_table*
9667 emit ranges for fdes when !in_std_section resp.
9668 !second_in_std_section.
9669 (dw_loc_list): Break ranges crossing section switch.
9670 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9671 use dw_fde_second_end instead of dw_fde_end as end of last range.
9672 (gen_subprogram_die): Don't call add_arange. Use
9673 dw_fde_{begin,end} for first partition and if switched
9674 section dw_fde_second_{begin,end} for the second.
9675 (var_location_switch_text_section_1,
9676 var_location_switch_text_section): New functions.
9677 (dwarf2out_begin_function): Initialize cold_text_section even
9678 when function_section () isn't text_section.
9679 (prune_unused_types): Don't walk arange_table.
9680 (dwarf2out_finish): Don't needlessly test
9681 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9682 If info_section_emitted, call size_of_aranges and if it indicates
9683 non-empty .debug_aranges, call output_aranges with the computed
9684 size. Stop using removed dw_fde_struct fields, use
9685 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9689 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9690 create ENTRY_VALUE if incoming or address of incoming's MEM
9692 * dwarf2out.c (mem_loc_descriptor): Don't emit
9693 DW_OP_GNU_entry_value of DW_OP_fbreg.
9694 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9695 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9696 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9697 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9699 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9700 is a REG_P or MEM_P with REG_P address, compute hash directly
9701 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9702 (preserve_only_constants): Don't clear VALUES forwaring
9703 ENTRY_VALUE to some other VALUE.
9705 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9707 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9710 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9712 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9713 block before expanding the statement.
9714 (expand_gimple_stmt_1): Likewise. Set them here...
9715 (expand_gimple_stmt): ...and not here. Tidy.
9716 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9719 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9721 * Makefile.in: New rule for cprop.o.
9722 * gcse.c: Move constant/copy propagation to cprop.c.
9723 (compute_local_properties): Only handle expression tables.
9724 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9725 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9726 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9727 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9728 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9729 compute_cprop_data, find_used_regs, try_replace_reg,
9730 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9731 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9732 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9733 find_bypass_set, reg_killed_on_edge, bypass_block,
9734 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9735 execute_rtl_cprop, pass_rtl_cprop): Move to...
9736 * cprop.c: ...here. New file, constant/copy propagation for RTL
9737 moved from gcse.c to here with minor cleanups in duplicated code.
9739 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9741 * config/i386/i386.c (flag_opts): Fix a typo in
9742 -mavx256-split-unaligned-store.
9744 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9746 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9747 LIBCALL_VALUE): Remove macros.
9748 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9749 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9750 (h8300_function_value, h8300_libcall_value,
9751 h8300_function_value_regno_p): New functions.
9753 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9755 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9757 2011-03-28 Jeff Law <law@redhat.com>
9759 * tree-ssa-threadupdate.c (redirect_edges): Call
9760 create_edge_and_update_destination_phis as needed.
9761 (create_edge_and_update_destination_phis): Accept new BB argument.
9762 All callers updated.
9763 (thread_block): Do not update the profile when threading around
9764 intermediate blocks.
9765 (thread_single_edge): Likewise.
9766 (determine_bb_domination_status): If BB is not a successor of the
9767 loop header, return NONDOMINATING.
9768 (register_jump_thread): Note when we register a jump thread around
9769 an intermediate block.
9770 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9771 (thread_across_edge): Use it.
9773 2011-03-28 Tristan Gingold <gingold@adacore.com>
9775 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9776 when for_return is 2.
9778 2011-03-28 Jeff Law <law@redhat.com>
9780 * var-tracking.c (canonicalize_values_mark): Delete unused
9782 (canonicalize_values_star, set_variable_part): Likewise.
9783 (clobber_variable_part, delete_variable_part): Likewise.
9785 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9787 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9789 2011-03-28 Martin Jambor <mjambor@suse.cz>
9791 * tree-inline.c (expand_call_inline): Do not check that destination
9793 (optimize_inline_calls): Assert that destination node is analyzed.
9794 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9795 not call tree_lowering_passes.
9796 * cgraph.h (cgraph_analyze_function): Declare.
9797 * cgraphunit.c (cgraph_analyze_function): Make public.
9799 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9801 * config/sparc/sparc-opts.h: New.
9802 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9803 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9804 (sparc_option_override): Store processor_type enumeration rather
9805 than string in cpu_default. Remove name and enumeration from
9806 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9807 without using sparc_select. Use target_flags_explicit instead of
9809 * config/sparc/sparc.h (enum processor_type): Move to
9811 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9812 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9813 HeaderInclude entry.
9814 (mcpu=, mtune=): Use Var and Enum.
9815 (sparc_processor_type): New Enum and EnumValue entries.
9817 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9818 Iain Sandoe <iains@gcc.gnu.org>
9821 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9823 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9825 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9826 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9827 Insert new statements at it in lieu of STMT.
9828 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9829 * tree-vect-stmts.c (vectorizable_store): Likewise.
9830 (vectorizable_load): Likewise.
9832 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9834 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9839 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9841 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9842 unaligned 256bit load/store.
9843 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9844 (*avx_movdqu<avxmodesuffix>): Likewise.
9846 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9849 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9850 * config/pa/pa.md (iordi3): Use new predicate in expander.
9853 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9855 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9856 FUNCTION_VALUE_REGNO_P): Remove macros.
9857 * config/mips/mips-protos.h (mips_function_value): Remove.
9858 * config/mips/mips.c (mips_function_value): Rename to...
9859 (mips_function_value_1): ... this. Make static. Handle receiving
9860 the function type in 'fn_decl_or_type' argument.
9861 (mips_function_value, mips_libcall_value,
9862 mips_function_value_regno_p): New function.
9863 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9864 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9866 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9868 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9869 and -mavx256-split-unaligned-store.
9870 (ix86_option_override_internal): Split 32-byte AVX unaligned
9871 load/store by default.
9872 (ix86_avx256_split_vector_move_misalign): New.
9873 (ix86_expand_vector_move_misalign): Use it.
9875 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9876 -mavx256-split-unaligned-store.
9878 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9879 256bit load/store. Generate unaligned store on misaligned memory
9881 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9883 (*avx_movdqu<avxmodesuffix>): Likewise.
9885 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9886 -mavx256-split-unaligned-store.
9888 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9891 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9894 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9896 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9897 opno arguments with an expand_operand. Use create_input_operand.
9898 (mips_prepare_builtin_target): Delete.
9899 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9901 (mips_expand_builtin_direct): Use create_output_operand and
9902 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9903 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9904 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9906 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9908 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9910 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9912 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9914 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9915 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9916 basic blocks and call commit_edge_insertions directly.
9917 (fixup_abnormal_edges): Move from here to...
9918 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9919 on the edges and return whether some have actually been inserted.
9920 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9923 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9925 PR rtl-optimization/48144
9926 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9927 (merge_expr_data): ... here.
9928 (av_set_intersect): Rename to av_set_code_motion_filter.
9929 Update all callers. Call merge_history_vect when an expression
9930 is found in both sets.
9931 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9933 2011-03-26 Alan Modra <amodra@gmail.com>
9935 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9936 cmodel medium addresses.
9937 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9938 64-bit gpr loads and stores.
9939 (rs6000_secondary_reload_ppc64): New function.
9940 * config/rs6000/rs6000-protos.h: Declare it.
9941 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9943 2011-03-26 Alan Modra <amodra@gmail.com>
9946 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9947 GNU Go in traceback table.
9949 2011-03-25 Richard Henderson <rth@redhat.com>
9951 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9952 if there are exactly 6 operands.
9953 (set_storage_via_setmem): Similarly.
9955 2011-03-25 Kai Tietz <ktietz@redhat.com>
9957 * collect2.c (write_c_file_stat): Handle backslash
9958 as right-hand directory separator.
9959 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9960 checking just for slash.
9961 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9962 instead of checking for trailing slash.
9963 * gcc.c (record_temp_file): Use filename_cmp instead
9965 (do_spec_1): Likewise.
9966 (replace_outfile_spec_function): Likewise.
9967 (is_directory): Use filename_ncmp instead of strncmp.
9968 (print_multilib_info): Likewise.
9969 * gcov.c (find_source): Use filename_cmp instead
9971 (make_gcov_file_name): Fix order of slash/backslash
9973 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9974 (add_standard_paths): Likewise.
9975 * mips-tfile.c (saber_stop): Handle backslash.
9976 * prefix.c (update_path): Use filename_ncmp instead of
9978 * profile.c (output_location): Use filename_cmp instead
9980 * read-md.c (handle_toplevel_file): Handle backslash.
9981 * tlink.c (frob_extension): Likewise.
9982 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9984 * tree-dump.c (dequeue_and_dump): Handle backslash.
9985 * tree.c (get_file_function_name): Likewise.
9986 * gengtype.c (read_input_list): Likewise.
9987 (get_file_realbasename): Likewise.
9988 (get_output_file_with_visibility): Use filename_cmp
9991 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9993 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9996 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9998 * fold-const.c (expr_location_or): New function.
9999 (fold_truth_not_expr): Call it.
10001 2011-03-25 Jeff Law <law@redhat.com>
10003 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10005 * c-family/c-common.c (def_fn_type): Likewise.
10006 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10007 * emit-rtl.c (gen_rtvec): Likewise.
10008 * lto/lto-lang.c (def_fn_type): Likewise.
10010 2011-03-25 Richard Guenther <rguenther@suse.de>
10012 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10013 also generate copies.
10014 (fini_copy_prop): Handle constant values properly.
10016 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10018 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10019 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10020 (hash_loc_operands, compare_loc_operands): Handle
10021 DW_OP_GNU_entry_value.
10023 2011-03-25 Kai Tietz <ktietz@redhat.com>
10025 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10026 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10027 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10028 comment and use macro TARGET_64BIT_MS_ABI instead.
10029 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10030 and change default behavior for 32-bit MS_ABI.
10031 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10032 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10034 (ix86_cfun_abi): Likewise.
10035 (ix86_maybe_switch_abi): Adjust comment.
10036 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10037 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10038 instead of checking for SYSV_ABI.
10039 (ix86_nsaved_sseregs): Likewise.
10040 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10042 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10043 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10044 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10045 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10046 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10048 2011-03-25 Richard Guenther <rguenther@suse.de>
10050 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10051 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10052 (verify_gimple): Remove.
10053 * tree-cfg.c (verify_gimple_call): Merge verification
10055 (verify_gimple_phi): Merge verification from verify_stmts.
10056 (verify_gimple_label): New function.
10057 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10058 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10059 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10060 (verify_stmts): Rename to verify_gimple_in_cfg.
10061 (verify_gimple_in_cfg): New function.
10062 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10063 * tree-ssa.c (verify_ssa): Likewise.
10064 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10066 2011-03-25 Richard Guenther <rguenther@suse.de>
10068 * passes.c (init_optimization_passes): Add FRE pass after
10071 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10072 Andrew Stubbs <ams@codesourcery.com>
10074 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10076 (arm_movdi_vfp_cortexa8): New pattern.
10077 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10078 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10079 instructions when tuning for Cortex-A8. Set attribute "arch".
10080 * config/arm/arm.md: Move include arm-tune.md up a bit.
10081 (define_attr "arch"): Add "onlya8" and "nota8" values.
10082 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10084 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10088 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10090 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10091 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10092 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10093 * passes.c (init_optimization_passes): Move
10094 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10096 2011-03-25 Kai Tietz <ktietz@redhat.com>
10098 * c-typeck.c (comptypes_internal): Replace target
10099 hook call of comp_type_attributes by version in tree.c file.
10100 * gimple.c (gimple_types_compatible_p_1): Likewise.
10101 * tree-ssa.c (useless_type_conversion_p): Likewise.
10102 * tree.c (build_type_attribute_qual_variant): Likewise.
10103 (attribute_value_equal): New static helper function.
10104 (comp_type_attributes): New function.
10105 (merge_attributes): Use attribute_value_equal for comparison.
10106 (attribute_list_contained): Likewise.
10107 * tree.h (comp_type_attributes): New prototype.
10109 2011-03-25 Richard Guenther <rguenther@suse.de>
10111 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10112 of complex types at -O0.
10113 (verify_gimple_assign_binary): Likewise.
10114 (verify_gimple_assign_ternary): Likewise.
10116 2011-03-24 Mark Wielaard <mjw@redhat.com>
10118 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10119 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10121 2011-03-24 Mark Wielaard <mjw@redhat.com>
10124 * dwarf2out.c (output_abbrev_section): Only write table when
10125 abbrev_die_table_in_use > 1.
10127 2011-02-24 Richard Henderson <rth@redhat.com>
10129 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10130 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10131 (alpha_expand_unaligned_load_words): Use extql.
10132 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10133 (emit_insxl): Handle all modes for consistency.
10135 2011-02-24 Richard Henderson <rth@redhat.com>
10137 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10138 (alpha_expand_unaligned_load): Likewise.
10139 (alpha_expand_unaligned_store): Likewise.
10140 (alpha_expand_unaligned_load_words): Likewise.
10141 (alpha_expand_unaligned_store_words): Likewise.
10142 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10143 (alpha_split_lock_test_and_set_12): Likewise.
10144 (print_operand, alpha_fold_builtin_extxx): Likewise.
10145 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10146 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10147 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10148 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10149 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10150 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10151 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10152 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10153 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10154 (extwl, extll, extql): Similarly.
10155 (inswh, inslh, insqh): Similarly.
10156 (mskbl, mskwl, mskll, mskql): Similarly.
10157 (mskwh, msklh, mskqh): Similarly.
10159 2011-02-24 Richard Henderson <rth@redhat.com>
10161 * config/alpha/alpha.md (attribute isa): Add er, ner.
10162 (attribute enabled): Handle them.
10163 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10165 2011-02-24 Richard Henderson <rth@redhat.com>
10167 * config/alpha/alpha.md (attribute isa): Add vms.
10168 (attribute enabled): Handle it.
10169 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10170 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10171 (*movtf): Rename from *movtf_internal for consistency.
10172 (*movsi): Merge with *movsi_nt_vms.
10173 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10174 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10175 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10176 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10178 2011-02-24 Richard Henderson <rth@redhat.com>
10180 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10181 (extendqisi2, extendhisi2): Likewise.
10182 (extendqidi2): Simplify BWX/non-BWX expansions.
10183 (extendhidi2): Similarly.
10185 2011-02-24 Richard Henderson <rth@redhat.com>
10187 * config/alpha/alpha.md (attribute isa): New.
10188 (attribute enabled): New.
10189 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10190 (zero_extendqisi2, zero_extendqidi2): Similarly.
10191 (zero_extendhisi2, zero_extendhidi2): Similarly.
10192 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10194 2011-02-24 Richard Henderson <rth@redhat.com>
10196 * config/alpha/predicates.md (input_operand): Revert last change;
10197 update comment to mention 32-bit VMS rather than Windows.
10199 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10201 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10202 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10203 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10204 * passes.c (init_optimization_passes): Move
10205 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10207 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10209 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10211 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10213 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10216 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10219 * simplify-rtx.c (simplify_const_unary_operation): Call
10220 real_convert when changing mode class with FLOAT_EXTEND.
10222 2011-03-24 Nick Clifton <nickc@redhat.com>
10224 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10225 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10226 * config/rx/rx.c (rx_option_override): Set align_jumps,
10227 align_loops and align_labels if not set by the user.
10228 (rx_align_for_label): New function.
10229 (rx_max_skip_for_label): New function.
10230 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10231 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10232 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10233 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10234 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10236 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10238 PR rtl-optimization/48263
10239 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10240 and original commutative_p handling. Use maybe_gen_insn.
10242 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10244 * reload.c (find_reloads_subreg_address): Add address_reloaded
10245 parameter and return true there if the full address has been
10247 (find_reloads_toplev): Pass address_reloaded flag.
10248 (find_reloads_address_1): Don't use address_reloaded parameter.
10250 2011-03-24 Jeff Law <law@redhat.com>
10252 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10253 unused variable "ann".
10254 (remove_unused_locals): Likewise.
10256 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10259 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10262 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10264 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10265 for invalid symbolic addresses.
10266 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10269 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10271 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10272 the argument in calls to fold_truth_not_expr.
10274 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10276 * tree.c (record_node_allocation_statistics): New function.
10277 (make_node_stat, copy_node_stat, build_string): Call it.
10278 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10279 (build1_stat, build_omp_clause): Likewise.
10281 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10283 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10286 2011-03-24 Richard Guenther <rguenther@suse.de>
10288 PR tree-optimization/48271
10289 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10290 blocks that still exist.
10292 2011-03-24 Richard Guenther <rguenther@suse.de>
10294 PR tree-optimization/48270
10295 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10296 not free datarefs before ddrs.
10298 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10300 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10301 from the address built for a reference with variable offset.
10303 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10306 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10307 alternatives that can be handled with movq or movabsq insn.
10308 (*movdf_internal): Disable for !TARGET_64BIT.
10309 (*movdf_internal_nointeger): Ditto.
10310 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10312 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10314 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10315 (FUNCTION_ARG_ADVANCE): Likewise.
10316 * tm.texi.in: Change references to them to hook references.
10317 * tm.texi: Regenerate.
10318 * targhooks.c (default_function_arg): Eliminate check for target macro.
10319 (default_function_incoming_arg): Likewise.
10320 (default_function_arg_advance): Likewise.
10321 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10322 (function_arg_advance): Likewise.
10323 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10325 2011-03-24 Richard Guenther <rguenther@suse.de>
10327 PR middle-end/48269
10328 * tree-object-size.c (addr_object_size): Do not double-account
10329 for MEM_REF offsets.
10331 2011-03-24 Diego Novillo <dnovillo@google.com>
10333 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10334 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10335 (lto_input_data_block): Move from lto-opts.c. Make extern.
10337 (lto_input_string): Rename from input_string. Make extern.
10339 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10340 output_string_with_length.
10341 Output 0 to indicate a non-NULL string. Update all callers to
10343 (lto_output_string): Rename from output_string. Make extern.
10345 (lto_output_decl_state_streams): Make extern.
10346 (lto_output_decl_state_refs): Make extern.
10347 * lto-streamer.h (lto_input_string): Declare.
10348 (lto_input_data_block): Declare.
10349 (lto_output_string): Declare.
10350 (lto_output_string_with_length): Declare.
10351 (lto_output_decl_state_streams): Declare.
10352 (lto_output_decl_state_refs): Declare.
10354 2011-03-24 Richard Guenther <rguenther@suse.de>
10356 PR tree-optimization/46562
10357 * tree.c (build_invariant_address): New function.
10358 * tree.h (build_invariant_address): Declare.
10359 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10360 a renamed function moved ...
10361 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10362 Take valueization callback parameter.
10363 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10364 * gimple-fold.h: New file.
10365 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10366 (ccp_fold, fold_const_aggregate_ref,
10367 fold_ctor_reference, fold_nonarray_ctor_reference,
10368 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10369 get_base_constructor): Move ...
10370 * gimple-fold.c: ... here.
10371 (gimple_fold_stmt_to_constant_1): New function
10372 split out from ccp_fold. Take a valueization callback parameter.
10373 Valueize all operands.
10374 (gimple_fold_stmt_to_constant): New wrapper function.
10375 (fold_const_aggregate_ref_1): New function split out from
10376 fold_const_aggregate_ref. Take a valueization callback parameter.
10377 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10378 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10379 invariant POINTER_PLUS_EXPRs to invariant form.
10380 (vn_valueize): New function.
10381 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10382 * tree-vrp.c (vrp_valueize): New function.
10383 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10384 to fold statements to constants.
10385 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10386 function declarations.
10387 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10388 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10390 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10392 * config/h8300/predicates.md (jump_address_operand): Fix register
10395 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10397 * doc/invoke.texi (max-stores-to-sink): Document.
10398 * params.h (MAX_STORES_TO_SINK): Define.
10399 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10400 if either vectorization or if-conversion is disabled.
10401 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10402 tree-vect-data-refs.c vect_equal_offsets.
10403 (dr_equal_offsets_p): New function.
10404 (find_data_references_in_bb): Remove static.
10405 * tree-data-ref.h (find_data_references_in_bb): Declare.
10406 (dr_equal_offsets_p): Likewise.
10407 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10408 (vect_drs_dependent_in_basic_block): Update calls to
10409 vect_equal_offsets.
10410 (vect_check_interleaving): Likewise.
10411 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10412 (cond_if_else_store_replacement): Rename to...
10413 (cond_if_else_store_replacement_1): ... this. Change arguments and
10415 (cond_if_else_store_replacement): New function.
10416 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10417 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10419 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10422 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10423 to subtract lower bound instead of GEN_INT().
10425 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10430 * doc/extend.texi (Alignment): Move section to match order in TOC.
10431 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10432 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10434 2011-03-23 Jeff Law <law@redhat.com>
10436 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10437 before removing the edge.
10439 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10440 it may have been freed by redirect_branch_edge or
10441 redirect_edge_succ_nodup.
10443 2011-03-23 Richard Guenther <rguenther@suse.de>
10445 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10446 (check_va_list_escapes): Likewise.
10447 (check_all_va_list_escapes): Likewise.
10449 2011-03-23 Richard Guenther <rguenther@suse.de>
10451 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10452 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10453 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10454 (alias.o): Likewise.
10455 (ipa-type-escape.o): Remove.
10456 (ipa-struct-reorg.o): Likewise.
10457 (GTFILES): Remove ipa-struct-reorg.c.
10458 * alias.c: Do not include ipa-type-escape.h.
10459 * tree-ssa-alias.c: Likewise.
10460 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10461 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10462 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10463 and ipa-type-escape passes.
10464 * tree-pass.h (pass_ipa_type_escape): Remove.
10465 (pass_ipa_struct_reorg): Likewise.
10466 * ipa-struct-reorg.h: Remove.
10467 * ipa-struct-reorg.c: Likewise.
10468 * ipa-type-escape.h: Likewise.
10469 * ipa-type-escape.c: Likewise.
10470 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10471 (--param struct-reorg-cold-struct-ratio): Likewise.
10472 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10473 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10474 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10476 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10478 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10479 cpu attribute value.
10480 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10481 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10482 * config/s390/s390.c (processor_flags_table): New constant array.
10483 (s390_handle_arch_option): Remove.
10484 (s390_handle_option): Remove s390_handle_arch_option invocations
10485 and OPT_mwarn_framesize_ handling.
10486 (s390_option_override): Remove s390_handle_arch_option invocation.
10487 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10489 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10490 * config/s390/s390.opt (s390_tune, s390_arch)
10491 (march=): Replace s390_arch_option enum and values with
10492 processor_type. Set variable name to s390_arch. Set
10493 initialization value.
10494 (mtune=): Replace s390_arch_option with processor_type. Set
10495 variable name to s390_tune. Set initialization value.
10497 2011-03-23 Julian Brown <julian@codesourcery.com>
10499 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10500 accesses which are not naturally aligned.
10502 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10505 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10507 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10509 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10510 parameter from "int" to "enum insn_code".
10511 (expand_operand_type): New enum.
10512 (expand_operand): New structure.
10513 (create_expand_operand): New function.
10514 (create_fixed_operand, create_output_operand): Likewise
10515 (create_input_operand, create_convert_operand_to): Likewise.
10516 (create_convert_operand_from, create_address_operand): Likewise.
10517 (create_integer_operand): Likewise.
10518 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10519 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10520 (expand_insn, expand_jump_insn): Likewise.
10521 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10522 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10523 (expand_movstr, expand_builtin___clear_cache): Likewise.
10524 (expand_builtin_lock_release): Likewise.
10525 * explow.c (allocate_dynamic_stack_space): Likewise.
10526 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10527 and use the default handling in that case.
10528 * expmed.c (check_predicate_volatile_ok): Delete.
10529 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10530 (emit_cstore): Likewise.
10531 * expr.c (emit_block_move_via_movmem): Likewise.
10532 (set_storage_via_setmem, expand_assignment): Likewise.
10533 (emit_storent_insn, try_casesi): Likewise.
10534 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10535 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10536 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10537 (expand_twoval_unop, expand_twoval_binop): Likewise.
10538 (expand_unop_direct, emit_indirect_jump): Likewise.
10539 (emit_conditional_move, vector_compare_rtx): Likewise.
10540 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10541 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10542 (expand_sync_lock_test_and_set): Likewise.
10543 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10544 (emit_unop_insn): Likewise.
10545 (expand_copysign_absneg): Change icode to an insn_code.
10546 (create_convert_operand_from_type): New function.
10547 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10548 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10549 (expand_insn, expand_jump_insn): Likewise.
10550 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10551 than const_int_operand for operand 2.
10553 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10555 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10558 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10560 * emit-rtl.c (emit_pattern_before_noloc): New function.
10561 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10562 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10563 (emit_pattern_after_noloc): New function.
10564 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10565 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10567 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10569 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10570 (__ffsDI2): Likewise.
10572 2011-03-22 Richard Henderson <rth@redhat.com>
10574 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10575 of !TARGET_ABI_OPEN_VMS.
10576 (alpha_trampoline_init, alpha_start_function): Likewise.
10577 (alpha_expand_epilogue, alpha_file_start): Likewise.
10578 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10579 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10580 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10581 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10582 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10584 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10586 * config/s390/s390-opts.h: New.
10587 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10588 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10589 s390_stack_guard): Remove.
10590 (s390_handle_arch_option): Return void. Take enum
10591 s390_arch_option value instead of string and searching array.
10592 (s390_handle_option): Don't assert that global structures are in
10593 use. Access variables via opts pointer. Use error_at. Don't use
10594 sscanf for -mstack-guard= or -mstack-size=. Update call to
10595 s390_handle_arch_option.
10596 (s390_option_override): Update call to s390_handle_arch_option.
10597 (s390_emit_prologue): Use %d format for s390_stack_size in
10598 diagnostic. Use %wd for HOST_WIDE_INT.
10599 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10600 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10601 * config/s390/s390.opt (config/s390/s390-opts.h): New
10602 HeaderInclude entry.
10603 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10604 s390_arch_flags, s390_warn_framesize): New Variable entries.
10605 (s390_arch_option): New Enum and EnumValue entries.
10606 (march=): Use Enum instead of Var.
10607 (mstack-guard=, mstack-size=): Use UInteger and Var.
10608 (mtune=): Use Enum.
10610 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10612 * config/score/score.c (score_handle_option): Don't assert that
10613 global structures are in use. Access target_flags via opts
10614 pointer. Use value of -march= option to determine target_flags
10616 * config/score/score.opt (march=): Use Enum.
10617 (score_arch): New Enum and EnumValue entries.
10619 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10621 * config/mep/mep.c (option_mtiny_specified): Remove.
10622 (mep_option_override): Move register handling for -mivc2 from
10623 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10624 instead of option_mtiny_specified.
10625 (mep_handle_option): Access target_flags via opts pointer. Don't
10626 assert that global structures are in use. Defer part of -mivc2
10627 handling and move it to mep_option_override.
10628 * config/mep/mep.opt (IVC2): New Mask entry.
10629 (mivc2): Use Var and Defer instead of Mask.
10631 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10633 * config/v850/v850-opts.h: New.
10634 * config/v850/v850.c (small_memory): Replace with
10635 small_memory_physical_max array. Make that array static const.
10636 (v850_handle_memory_option): Take integer value of argument. Take
10637 gcc_options pointer, option text and location. Return void.
10638 Update for changes to small memory structures.
10639 (v850_handle_option): Access target_flags via opts pointer. Don't
10640 assert that global structures are in use. Update calls to
10641 v850_handle_memory_option.
10642 (v850_encode_data_area): Update references to small memory settings.
10643 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10644 (enum small_memory_type): Move to v850-opts.h.
10645 * config/v850/v850.opt (config/v850/v850-opts.h): New
10646 HeaderInclude entry.
10647 (small_memory_max): New Variable entry.
10648 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10649 (mtda, mzda): Likewise.
10651 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10653 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10654 pointer. Don't assert that global structures are in use.
10656 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10658 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10659 via opts pointer. Don't assert that global structures are in use.
10661 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10663 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10664 (munix=93): Use Var.
10665 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10666 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10667 * config/pa/pa-opts.h: New.
10668 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10669 (pa_handle_option): Don't assert that global structures are in
10670 use. Access target_flags via opts pointer. Don't handle
10671 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10673 (pa_option_override): Handle deferred OPT_mfixed_range_.
10675 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10677 * config/mn10300/mn10300-opts.h: New.
10678 * config/mn10300/mn10300.c (mn10300_processor,
10679 mn10300_tune_string): Remove.
10680 (mn10300_handle_option): Don't assert that global structures are
10681 in use. Access mn10300_processor via opts pointer. Don't handle
10683 * config/mn10300/mn10300.h (enum processor_type): Move to
10685 (mn10300_processor): Remove.
10686 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10687 HeaderInclude entry.
10688 (mn10300_processor): New Variable entry.
10691 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10693 * config/microblaze/microblaze.c: Don't include opts.h.
10694 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10695 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10696 (mno-clearbss): Use Var and Warn.
10698 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10700 * config/m32r/m32r-opts.h: New.
10701 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10702 (m32r_handle_option): Don't assert that global structures are in
10703 use. Access target_flags and m32r_cache_flush_func via opts
10704 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10705 OPT_mno_flush_trap here.
10706 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10707 include of m32r-opts.h.
10708 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10709 HeaderInclude entry.
10710 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10711 (mmodel=): Use Enum and Var.
10712 (m32r_model): New Enum and EnumValue entries.
10713 (mno-flush-trap): Use Var.
10714 (msdata=): Use Enum and Var.
10715 (m32r_sdata): New Enum and EnumValue entries.
10717 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10719 * config/m32c/m32c.c: Don't include opts.h.
10720 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10721 m32c_handle_option): Remove.
10722 (m32c_option_override): Check global_options_set.x_target_memregs
10723 instead of target_memregs_set.
10724 * config/m32c/m32c.h (target_memregs): Remove.
10725 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10728 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10730 * config/iq2000/iq2000-opts.h: New.
10731 * config/iq2000/iq2000.c: Don't include opts.h.
10732 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10733 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10734 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10735 HeaderInclude entry.
10736 (iq2000_tune): New Variable entry.
10737 (march=): Add comment. Use Enum.
10738 (iq2000_arch): New Enum and EnumValue entries.
10739 (mcpu=): Use Enum and Var.
10740 (iq2000_tune): New Enum and EnumValue entries.
10742 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10744 * config/ia64/ia64-opts.h: New.
10745 * config/ia64/ia64.c (ia64_tune): Remove.
10746 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10747 here. Use error_at.
10748 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10749 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10750 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10751 HeaderInclude entry.
10752 (ia64_tune): New Variable entry.
10753 (mfixed-range=): Use Defer and Var.
10754 (mtune=): Use Enum and Var.
10755 (ia64_tune): New Enum and EnumValue entries.
10757 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10759 * config/frv/frv-opts.h: New.
10760 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10762 (frv_cpu_type): Remove.
10763 * config/frv/frv.c: Don't include opts.h.
10764 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10765 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10766 (frv_cpu_type): New Variable entry.
10767 (frv_cpu): New Enum and EnumValue entries.
10769 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10771 * config/cris/cris.c (cris_handle_option): Access target_flags via
10772 opts pointer. Don't assert that global structures are in use.
10773 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10774 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10776 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10778 * config/bfin/bfin-opts.h: New.
10779 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10780 bfin_si_revision, bfin_workarounds): Remove.
10781 (bfin_cpus): Make static const.
10782 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10783 not bfin_lib_id_given.
10784 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10785 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10786 pointer. Use error_at. Don't assert that global structures are in use.
10787 * config/bfin/bfin.h: Include bfin-opts.h.
10788 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10789 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10790 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10791 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10794 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10796 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10797 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10798 or -msoft-float here.
10799 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10800 -msoft-float and -mhard-float.
10801 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10802 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10804 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10806 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10807 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10809 (LIBGCC_SPEC): Don't handle -msoft-float.
10810 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10812 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10814 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10815 -mfloat-abi=*, not -msoft-float and -mhard-float.
10816 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10818 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10819 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10820 mhard-float and msoft-float.
10821 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10822 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10823 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10824 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10826 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10827 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10829 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10831 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10834 2011-03-22 Richard Henderson <rth@redhat.com>
10836 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10837 TARGET_ABI_WINDOWS_NT.
10838 (alpha_output_function_end_prologue): Likewise.
10839 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10840 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10841 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10842 (trap, *movsi_nt_vms): Likewise.
10843 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10844 (*tablejump_osf_nt_internal): Remove.
10845 * config/alpha/predicates.md (input_operand): Only test Pmode.
10847 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10849 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10850 via opts pointer. Use error_at. Don't assert that global
10851 structures are in use.
10853 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10855 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10856 (ix86_handle_option): Access ix86_isa_flags and
10857 ix86_isa_flags_explicit via opts pointer. Don't assert that
10858 global structures are in use.
10859 (ix86_function_specific_save, ix86_function_specific_restore):
10860 Update ix86_isa_flags_explicit field name.
10861 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10862 (ix86_isa_flags_explicit): Rename TargetSave entry to
10863 x_ix86_isa_flags_explicit.
10865 2011-03-22 Richard Henderson <rth@redhat.com>
10867 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10868 (alpha_option_override, direct_return): Likewise.
10869 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10870 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10871 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10872 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10873 (alpha_expand_epilogue, alpha_end_function): Likewise.
10874 (alpha_init_libfuncs): Likewise.
10875 (struct machine_function): Remove unicosmk members.
10876 (print_operand) ['t']: Remove.
10877 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10878 unicosmk_output_module_name, unicosmk_output_common,
10879 current_section_align, unicosmk_output_text_section_asm_op,
10880 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10881 unicosmk_section_type_flags, unicosmk_unique_section,
10882 unicosmk_asm_named_section, unicosmk_insert_attributes,
10883 unicosmk_output_align, unicosmk_defer_case_vector,
10884 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10885 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10886 unicosmk_output_ssib, unicosmk_add_call_info_word,
10887 unicosmk_extern_head, unicosmk_output_default_externs,
10888 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10889 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10890 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10891 * config/alpha/alpha-protos.h: Update.
10892 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10893 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10894 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10895 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10896 (*mulsi_se, mulvsi3): Likewise.
10897 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10898 (*divmodsi_internal, call, call_value, realign): Likewise.
10899 (moddi3, umoddi3): Likewise; remove duplicate expander.
10900 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10901 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10902 (*movdi_nofix): Remove r/U alternative.
10903 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10904 * config/alpha/constraints.md ("U"): Remove.
10905 * config/alpha/predicates.md (call_operand"): Don't test
10906 TARGET_ABI_UNICOSMK.
10908 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10910 * target.def (handle_option): Take gcc_options and
10911 cl_decoded_option pointers and location_t.
10912 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10913 * doc/tm.texi: Regenerate.
10914 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10915 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10916 * lto-opts.c (lto_reissue_options): Generate option structure for
10917 targetm.handle_option call.
10918 * opts.c (target_handle_option): Update call to
10919 targetm.handle_option. Remove assertions about values now passed
10921 * targhooks.c (default_target_handle_option): New.
10922 * targhooks.h (default_target_handle_option): Declare.
10923 * config/alpha/alpha.c: Include opts.h.
10924 (alpha_handle_option): Update to new hook interface.
10925 * config/arm/arm.c: Include opts.h.
10926 (arm_handle_option): Update to new hook interface.
10927 * config/arm/t-arm (arm.o): Update dependencies.
10928 * config/bfin/bfin.c: Include opts.h.
10929 (bfin_handle_option): Update to new hook interface.
10930 * config/cris/cris.c: Include opts.h.
10931 (cris_handle_option): Update to new hook interface.
10932 * config/frv/frv.c: Include opts.h.
10933 (frv_handle_option): Update to new hook interface.
10934 * config/i386/i386.c: Include opts.h.
10935 (ix86_handle_option): Update to new hook interface.
10936 (ix86_valid_target_attribute_inner_p): Generate option structure
10937 for call to ix86_handle_option.
10938 * config/i386/t-i386 (i386.o): Update dependencies.
10939 * config/ia64/ia64.c: Include opts.h.
10940 (ia64_handle_option): Update to new hook interface.
10941 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10942 * config/iq2000/iq2000.c: Include opts.h.
10943 (iq2000_handle_option): Update to new hook interface.
10944 * config/m32c/m32c.c: Include opts.h.
10945 (m32c_handle_option): Update to new hook interface.
10946 * config/m32r/m32r.c: Include opts.h.
10947 (m32r_handle_option): Update to new hook interface.
10948 * config/m68k/m68k.c: Include opts.h.
10949 (m68k_handle_option): Update to new hook interface.
10950 * config/mep/mep.c: Include opts.h.
10951 (mep_handle_option): Update to new hook interface.
10952 * config/microblaze/microblaze.c: Include opts.h.
10953 (microblaze_handle_option): Update to new hook interface.
10954 * config/mips/mips.c: Include opts.h.
10955 (mips_handle_option): Update to new hook interface.
10956 * config/mn10300/mn10300.c: Include opts.h.
10957 (mn10300_handle_option): Update to new hook interface.
10958 * config/pa/pa.c: Include opts.h.
10959 (pa_handle_option): Update to new hook interface.
10960 * config/pdp11/pdp11.c: Include opts.h.
10961 (pdp11_handle_option): Update to new hook interface.
10962 * config/rs6000/rs6000.c: Include opts.h.
10963 (rs6000_handle_option): Update to new hook interface.
10964 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10965 * config/rx/rx.c: Include opts.h.
10966 (rx_handle_option): Update to new hook interface.
10967 * config/s390/s390.c: Include opts.h.
10968 (s390_handle_option): Update to new hook interface.
10969 * config/score/score.c: Include opts.h.
10970 (score_handle_option): Update to new hook interface.
10971 * config/sh/sh.c: Include opts.h.
10972 (sh_handle_option): Update to new hook interface.
10973 * config/sparc/sparc.c: Include opts.h.
10974 (sparc_handle_option): Update to new hook interface.
10975 * config/v850/v850.c: Include opts.h.
10976 (v850_handle_option): Update to new hook interface.
10978 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10980 * gcc.c (driver_unknown_option_callback): Only permit and save
10981 unknown -Wno- options.
10982 (driver_wrong_lang_callback): Save options directly instead of via
10983 driver_unknown_option_callback.
10985 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10987 * combine.c (simplify_set): Try harder to find the best CC mode when
10988 simplifying a nested COMPARE on the RHS.
10990 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10992 * config/alpha/gnu.h: Remove.
10993 * config/arc: Remove directory.
10994 * config/arm/netbsd.h: Remove.
10995 * config/arm/t-pe: Remove.
10996 * config/crx: Remove directory.
10997 * config/i386/netbsd.h: Remove.
10998 * config/m68hc11: Remove directory.
10999 * config/m68k/uclinux-oldabi.h: Remove.
11000 * config/mcore/mcore-pe.h: Remove.
11001 * config/mcore/t-mcore-pe: Remove.
11002 * config/netbsd-aout.h: Remove.
11003 * config/rs6000/gnu.h: Remove.
11004 * config/sh/sh-symbian.h: Remove.
11005 * config/sh/symbian-base.c: Remove.
11006 * config/sh/symbian-c.c: Remove.
11007 * config/sh/symbian-cxx.c: Remove.
11008 * config/sh/symbian-post.h: Remove.
11009 * config/sh/symbian-pre.h: Remove.
11010 * config/sh/t-symbian: Remove.
11011 * config/svr3.h: Remove.
11012 * config/vax/netbsd.h: Remove.
11013 * config.build: Don't handle i[34567]86-*-pe.
11014 * config.gcc: Remove handling of deprecations for most deprecated
11016 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11017 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11018 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11019 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11020 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11021 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11023 * config.host: Don't handle i[34567]86-*-pe.
11024 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11025 (ASM_SPEC32): Don't handle -mcall-gnu.
11026 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11028 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11029 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11030 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11031 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11032 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11033 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11034 conditional on SYMBIAN.
11035 * configure.ac: Don't handle powerpc*-*-gnu*.
11036 * configure: Regenerate.
11037 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11038 * doc/install-old.texi (m6811, m6812): Don't mention.
11039 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11040 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11041 (m68k-uclinuxoldabi): Don't mention.
11042 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11044 (-mcall-gnu): Remove.
11045 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11046 families): Remove constraint documentation.
11048 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11050 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11051 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11052 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11054 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11057 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11058 vector when peeking at the next token for vector, don't expand the
11061 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11063 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11064 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11065 * config/avr/avr.c (init_cumulative_args)
11066 (avr_function_arg_advance): Use it.
11067 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11069 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11070 (avr_function_ok_for_sibcall): ...this new function.
11071 (avr_lookup_function_attribute1): New static Function.
11072 (avr_naked_function_p, interrupt_function_p)
11073 (signal_function_p, avr_OS_task_function_p)
11074 (avr_OS_main_function_p): Use it.
11075 * config/avr/avr.md ("sibcall", "sibcall_value")
11076 ("sibcall_epilogue"): New expander.
11077 ("*call_insn", "*call_value_insn"): New insn.
11078 ("call_insn", "call_value_insn"): Remove
11079 ("call", "call_value", "epilogue"): Change expander to handle
11082 2011-03-21 Nick Clifton <nickc@redhat.com>
11084 * doc/invoke.texi (Overall Options): Move closing brace to end of
11086 (Optimization Options): Add missing @gol.
11087 (Directory Options): Likewise.
11088 (i386 and x86-64 Options): Likewise.
11089 (RS6000 and PowerPC Options): Likewise.
11090 (i386 and x86-64 Windows Options): Likewise.
11091 (V850 Options): Add text missing from descriptions.
11093 2011-03-22 Richard Henderson <rth@redhat.com>
11095 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11096 (avr_incoming_return_addr_rtx): New.
11097 (emit_push_byte): New.
11098 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11099 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11100 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11101 (emit_pop_byte): New.
11102 (expand_epilogue): Use it. Pop frame pointer by bytes.
11103 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11104 (INCOMING_RETURN_ADDR_RTX): New.
11105 (INCOMING_FRAME_SP_OFFSET): New.
11106 (ARG_POINTER_CFA_OFFSET): New.
11107 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11108 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11111 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11113 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11115 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11116 (FUNCTION_ARG_ADVANCE): Likewise.
11117 * tm.texi.in: Change references to them to hook references.
11118 * tm.texi: Regenerate.
11119 * targhooks.c (default_function_arg): Eliminate check for target
11121 (default_function_incoming_arg): Likewise.
11122 (default_function_arg_advance): Likewise.
11123 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11124 (function_arg_advance): Likewise.
11125 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11127 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11129 * tree.c (build_call_1): New function.
11130 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11132 2011-03-22 Richard Guenther <rguenther@suse.de>
11134 PR tree-optimization/48228
11135 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11136 for single-arg PHIs.
11138 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11140 PR rtl-optimization/48143
11141 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11142 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11143 sse2_cvtps2pd): Likewise.
11145 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11147 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11149 2011-03-22 Richard Guenther <rguenther@suse.de>
11151 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11152 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11153 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11154 and REALIGN_LOAD_EXPR.
11155 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11156 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11157 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11158 DOT_PROD_EXPR case ...
11159 (expand_expr_real_2): ... here.
11160 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11161 and REALIGN_LOAD_EXPR.
11162 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11163 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11164 (vect_create_epilog_for_reduction): Likewise.
11165 (vectorizable_reduction): Likewise.
11166 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11167 * tree-vect-stmts.c (vectorizable_load): Likewise.
11169 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11171 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11173 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11175 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11176 handling for PLTOFF/GOTOFF.
11178 2011-03-22 Nick Clifton <nickc@redhat.com>
11180 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11181 trailing backslash from the end of the macro definition.
11183 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11185 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11188 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11190 * expr.h (prepare_operand): Move to...
11191 * optabs.h (prepare_operand): ...here and change the insn code
11192 parameter from "int" to "enum insn_code".
11193 (insn_operand_matches): Declare.
11194 * expr.c (init_expr_target): Use insn_operand_matches.
11195 (compress_float_constant): Likewise.
11196 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11197 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11198 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11199 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11201 (gen_cond_trap): Likewise.
11202 (prepare_operand): Likewise. Change icode to an insn_code.
11203 (insn_operand_matches): New function.
11204 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11205 * reload1.c (gen_reload): Likewise.
11206 * targhooks.c (default_secondary_reload): Likewise.
11208 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11210 * config/alpha/alpha.md (unspec): New define_c_enum.
11213 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11216 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11217 between a call and its CALL_ARG_LOCATION note.
11219 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11221 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11223 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11227 * c-common.c (shorten_compare): If primopN is first sign-extended
11228 to opN and then zero-extended to result type, set primopN to opN.
11230 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11232 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11233 for barrier handlers.
11235 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11237 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11238 UNSPEC constants to be in the unspec enumeration, and redefine
11239 all UNSPECV constants to be in the unspecv enumeration, so that
11240 dumps print which unspec/unspec_volatile this is.
11241 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11242 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11243 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11244 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11245 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11247 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11248 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11249 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11250 * config/rs6000/sync.md (isync, lwsync): Ditto.
11252 2011-03-21 Richard Guenther <rguenther@suse.de>
11254 * params.def (lto-min-partition): Fix typo.
11256 2011-03-21 Richard Guenther <rguenther@suse.de>
11259 * c-decl.c (grokdeclarator): Drop to the main variant only
11260 for array types. Drop flag_gen_aux_info check.
11262 2011-03-21 Richard Guenther <rguenther@suse.de>
11264 PR translation/47911
11265 * params.def (lto-partitions): Fix typo.
11266 (lto-min-partition): Fix wording.
11268 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11270 * config/rs6000/t-freebsd: Remove duplication from file.
11272 2011-03-21 Richard Guenther <rguenther@suse.de>
11274 PR middle-end/47661
11275 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11277 2011-03-21 Richard Guenther <rguenther@suse.de>
11280 * params.def (lto-partitions): Require at least 1 partition.
11282 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11284 * gthr-solaris.h: Remove.
11285 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11286 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11287 (LIB_SPEC): Likewise.
11288 * config/sol2.opt (threads): Remove.
11289 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11290 (sparc*-*-solaris2*): Likewise.
11291 * configure.ac (enable_threads): Enable solaris support.
11292 * configure: Regenerate.
11293 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11294 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11297 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11299 * config.gcc: Obsolete *-*-solaris2.8*.
11300 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11302 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11305 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11306 reference. Solaris 8 perl works.
11308 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11311 * doc/install.texi (Prerequisites): Move jar etc. up.
11312 Explain support library version requirements.
11314 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11317 * doc/install.texi (Prerequisites): Move Perl to build
11318 requirements. Always necessary on Solaris 2 with Sun ld.
11320 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11322 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11324 (Specific, i?86-*-solaris2.[89]): Likewise.
11325 (Specific, i?86-*-solaris2.10): Likewise.
11326 (Specific, mips-sgi-irix6): Likewise.
11327 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11328 Update for binutils 2.21.
11330 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11332 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11333 Allow -fuse-linker-plugin for non-default plugin linker.
11334 * configure: Regenerate.
11336 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11339 * gengtype.c (files_rules): Added rule for cp/parser.h.
11341 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11344 * config/s390/s390.c (s390_delegitimize_address): Don't call
11345 lowpart_subreg if orig_x has BLKmode.
11347 2011-03-21 Kai Tietz <ktietz@redhat.com>
11350 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11351 * tree.h (attribute_spec): Add new member affects_type_identity.
11352 * attribs.c (empty_attribute_table): Adjust attribute_spec
11354 * config/alpha/alpha.c: Likewise.
11355 * config/arc/arc.c: Likewise.
11356 * config/arm/arm.c: Likewise.
11357 * config/avr/avr.c: Likewise.
11358 * config/bfin/bfin.c: Likewise.
11359 * config/crx/crx.c: Likewise.
11360 * config/darwin.h: Likewise.
11361 * config/h8300/h8300.c: Likewise.
11362 * config/i386/cygming.h: Likewise.
11363 * config/i386/i386.c: Likewise.
11364 * config/ia64/ia64.c: Likewise.
11365 * config/m32c/m32c.c: Likewise.
11366 * config/m32r/m32r.c: Likewise.
11367 * config/m68hc11/m68hc11.c: Likewise.
11368 * config/m68k/m68k.c: Likewise.
11369 * config/mcore/mcore.c: Likewise.
11370 * config/mep/mep.c: Likewise.
11371 * config/microblaze/microblaze.c: Likewise.
11372 * config/mips/mips.c: Likewise.
11373 * config/rs6000/rs6000.c: Likewise.
11374 * config/rx/rx.c: Likewise.
11375 * config/sh/sh.c: Likewise.
11376 * config/sol2.h: Likewise.
11377 * config/sparc/sparc.c: Likewise.
11378 * config/spu/spu.c: Likewise.
11379 * config/stormy16/stormy16.c: Likewise.
11380 * config/v850/v850.c: Likewise.
11382 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11384 * simplify-rtx.c (simplify_binary_operation_1): Handle
11385 (xor (and A B) C) case when B and C are both constants.
11387 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11389 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11391 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11394 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11396 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11398 PR rtl-optimization/48156
11399 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11400 assume df and df_lr are not NULL.
11402 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11405 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11406 between a call and its CALL_ARG_LOCATION note.
11408 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11411 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11412 between a call and its corresponding CALL_ARG_LOCATION note.
11414 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11416 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11417 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11418 * haifa-sched.c (setup_ref_regs): Ditto.
11419 * caller-save.c (add_used_regs_1): Ditto.
11420 * dse.c (look_for_hardregs): Ditto.
11421 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11422 * sched-rgn.c (check_live_1): Ditto.
11424 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11426 * c-decl.c (diagnose_mismatched_decls): Give an error for
11427 redefining a typedef with variably modified type.
11429 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11431 * c-decl.c (grokfield): Don't allow typedefs for structures or
11432 unions with no tag by default.
11433 * doc/extend.texi (Unnamed Fields): Update.
11435 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11437 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11438 Rewrite using indirect functions.
11439 (lwp_slwpcb): Ditto.
11440 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11441 (avx_vinsertf128<mode>): Ditto.
11443 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11445 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11448 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11450 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11451 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11453 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11455 PR rtl-optimization/48170
11456 * gcse.c (hoist_code): Remove bogus asserts.
11458 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11460 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11461 computation for prologue/epilogue.
11463 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11465 * Makefile.in (check-consistency): Remove.
11467 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11470 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11471 arange_table_in_use is 0, but either text_section_used or
11472 cold_text_section_used is true. Don't call it if
11473 !info_section_emitted.
11475 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11477 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11478 FUNCTION_VALUE_REGNO_P): Remove.
11479 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11481 * config/avr/avr.c (avr_ret_register): Make static inline.
11482 (avr_function_value_regno_p): New function.
11483 (avr_libcall_value): Make static. Add 'func' argument.
11484 (avr_function_value): Make static. Rename 'func' argument to
11485 'fn_decl_or_type', forward it to avr_libcall_value. Call
11486 avr_ret_register function instead of RET_REGISTER macro.
11487 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11489 2011-03-18 Jason Merrill <jason@redhat.com>
11492 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11494 2011-03-18 Richard Guenther <rguenther@suse.de>
11496 * doc/install.texi (--enable-gold): Remove.
11497 (--with-plugin-ld): Document.
11498 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11500 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11502 PR middle-end/47790
11503 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11504 again after expansion changes.
11506 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11508 * combine.c (try_combine): Do simplification only call of
11509 subst() on i2 even when i1 is present. Update comments.
11511 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11513 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11514 and UNSPEC_PCREL_SYMOFF.
11516 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11518 * config/s390/s390.md: Use define_c_enum for the unspec constant
11521 2011-03-18 Richard Henderson <rth@redhat.com>
11522 Jakub Jelinek <jakub@redhat.com>
11525 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11526 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11528 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11530 PR middle-end/47725
11531 * combine.c (cant_combine_insn_p): Don't check zero/sign
11532 extended hard registers.
11534 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11536 PR middle-end/47725
11537 * combine.c (cant_combine_insn_p): Check zero/sign extended
11540 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11542 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11543 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11544 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11545 Change return type to bool.
11546 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11548 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11551 * var-tracking.c (prepare_call_arguments): If CALL target
11552 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11553 pc instead of looking it up using cselib_lookup and use
11554 Pmode for it if x has VOIDmode.
11555 * dwarf2out.c (gen_subprogram_die): If also both first and
11556 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11559 * function.c (assign_parms): For data.passed_pointer parms
11560 use MEM of data.entry_parm instead of data.entry_parm itself
11561 as DECL_INCOMING_RTL.
11562 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11563 also when passed and declared mode is the same, DECL_RTL
11564 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11567 2011-03-16 Jeff Law <law@redhat.com>
11569 PR rtl-optimization/37273
11570 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11571 handle them like argument loads from stack slots. Do not double
11572 count memory for memory constants and argument loads from stack slots.
11574 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11577 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11579 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11582 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11584 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11587 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11589 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11590 Clear call_arg_locations and call_arg_loc_last always.
11592 PR middle-end/48152
11593 * var-tracking.c (prepare_call_arguments): If argument needs to be
11594 passed by reference, adjust argtype and mode.
11596 2011-03-17 Richard Guenther <rguenther@suse.de>
11598 PR middle-end/48134
11599 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11600 a value make sure to fold the statement.
11602 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11605 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11606 return condition with !cfun->calls_alloca.
11608 2011-03-17 Richard Guenther <rguenther@suse.de>
11611 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11612 origin for decls in other ltrans units.
11613 (input_varpool_node): Likewise.
11615 2011-03-17 Richard Guenther <rguenther@suse.de>
11617 PR middle-end/48165
11618 * tree-object-size.c (compute_object_offset): Properly return
11619 the offset operand of MEM_REFs as sizetype.
11621 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11623 PR rtl-optimization/48141
11624 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11625 * dse.c: Include params.h.
11626 (active_local_stores_len): New variable.
11627 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11629 (record_store, check_mem_read_rtx): Decrease it when removing
11631 (scan_insn): Likewise. Increase it when adding to chain, if it
11632 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11633 set active_local_stores to NULL before the addition.
11634 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11636 PR rtl-optimization/48141
11637 * dse.c (record_store): If no positions are needed in an insn
11638 that cannot be deleted, at least unchain it from active_local_stores.
11640 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11643 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11644 (lookup_type_die_strip_naming_typedef): ... here.
11645 (get_context_die): Use it.
11646 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11647 the anonymous struct named by the naming typedef.
11649 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11652 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11653 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11655 2011-03-16 Jeff Law <law@redhat.com>
11657 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11658 check for operands of conditional. Allow type to be a pointer.
11660 2011-03-16 Richard Guenther <rguenther@suse.de>
11662 PR tree-optimization/48149
11663 * fold-const.c (fold_binary_loc): Fold
11664 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11666 2011-03-16 Richard Guenther <rguenther@suse.de>
11668 PR tree-optimization/26134
11669 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11670 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11671 (non_rewritable_mem_ref_base): Handle complex type component
11672 accesses, constrain offsets for vector and complex extracts
11675 2011-03-16 Richard Guenther <rguenther@suse.de>
11677 PR tree-optimization/48146
11678 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11679 operands avoiding the need for renaming.
11681 2011-03-16 Richard Guenther <rguenther@suse.de>
11683 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11684 constant folding. Move MEM_REF canonicalization first.
11685 Rely on fold_const_aggregate_ref for initializer folding.
11686 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11688 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11690 PR middle-end/48136
11691 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11692 arg0/arg1 or their arguments are always fold converted to matching
11695 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11698 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11701 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11702 Handle in-tree gold.
11703 (ld_vers): Extract binutils version for gold.
11704 (gcc_cv_ld_hidden): Handle gold here.
11705 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11706 * configure: Regenerate.
11707 * config.in: Regenerate.
11708 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11709 -fuse-linker-plugin otherwise.
11710 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11711 (LINK_COMMAND_SPEC): Use it.
11712 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11714 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11716 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11717 * calls.c: Remove debug.h include.
11718 (emit_call_1): Don't call virtual_call_token debug hook.
11719 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11720 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11721 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11722 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11723 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11724 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11725 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11726 dwarf2out_virtual_call): Remove.
11727 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11728 copy_call_info and virtual_call hooks.
11729 (dwarf2out_init): Don't initialize vcall_insn_table,
11730 debug_dcall_section and debug_vcall_section.
11731 (prune_unused_types): Don't mark nodes from dcall_table.
11732 (dwarf2out_finish): Don't output dcall or vcall tables.
11733 * final.c (final_scan_insn): Don't call direct_call or
11734 virtual_call debug hooks.
11735 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11736 virtual_call_token, copy_call_info and virtual_call hooks.
11737 (debug_nothing_uid): Remove prototype.
11738 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11739 copy_call_info and virtual_call hooks.
11740 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11741 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11742 * debug.c (do_nothing_debug_hooks): Likewise.
11743 (debug_nothing_uid): Remove.
11744 * doc/invoke.texi (-fenable-icf-debug): Remove.
11745 * common.opt (-fenable-icf-debug): Likewise.
11747 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11748 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11749 call's MEM. Handle functions returning aggregate through a hidden
11750 first pointer. For virtual calls add clobbered pc to call arguments
11752 * dwarf2out.c (gen_subprogram_die): Emit
11753 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11757 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11758 * rtl.h (ENTRY_VALUE_EXP): Define.
11759 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11760 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11761 * print-rtl.c (print_rtx): Likewise.
11762 * gengtype.c (adjust_field_rtx_def): Likewise.
11763 * var-tracking.c (vt_add_function_parameter): Adjust
11764 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11765 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11766 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11767 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11768 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11770 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11771 Call var_location debug hook even on CALL_INSNs.
11772 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11773 * rtl.def (ENTRY_VALUE): New.
11774 * dwarf2out.c: Include cfglayout.h.
11775 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11776 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11777 (struct call_arg_loc_node): New type.
11778 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11779 tail_call_site_count): New variables.
11780 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11781 DW_TAG_GNU_call_site_parameter.
11782 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11783 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11784 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11785 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11786 and DW_AT_GNU_all_source_call_sites.
11787 (mem_loc_descriptor): Handle ENTRY_VALUE.
11788 (add_src_coords_attributes): Don't add enything if
11789 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11790 (dwarf2out_abstract_function): Save and clear call_arg_location,
11791 call_site_count and tail_call_site_count around dwarf2out_decl call.
11792 (gen_call_site_die): New function.
11793 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11794 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11795 (dwarf2out_function_decl): Clear call_arg_locations,
11796 call_arg_loc_last, set call_site_count and tail_call_site_count
11797 to -1 and free block_map.
11798 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11799 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11800 followed by any real instructions.
11801 (dwarf2out_begin_function): Set call_site_count and
11802 tail_call_site_count to 0.
11803 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11804 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11805 attempt to force a DIE for it and worst case remove the attribute.
11806 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11807 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11809 * var-tracking.c: Include tm_p.h.
11810 (vt_stack_adjustments): For calls call note_register_arguments.
11811 (argument_reg_set): New variable.
11812 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11813 ensure the VALUE is resolved.
11814 (call_arguments): New variable.
11815 (prepare_call_arguments): New function.
11816 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11817 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11818 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11819 always use the best expression.
11820 (vt_expand_loc): Add ignore_cur_loc argument.
11821 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11822 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11823 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11824 note for all calls.
11825 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11826 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11827 argument. Don't call cselib_preserve_only_values and
11828 cselib_reset_table.
11829 (note_register_arguments): New function.
11830 (vt_initialize): Compute argument_reg_set. Call
11831 vt_add_function_parameters before processing basic blocks instead of
11832 afterwards. For calls call prepare_call_arguments before calling
11833 cselib_process_insn.
11834 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11835 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11836 (var-tracking.o): Depend on $(TM_P_H).
11837 * cfglayout.h (insn_scope): New prototype.
11838 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11839 * cfglayout.c (insn_scope): No longer static.
11840 * insn-notes.def (CALL_ARG_LOCATION): New.
11841 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11842 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11843 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11844 nothing for DECL_EXTERNAL BLOCK_VARS.
11846 2011-03-16 Alan Modra <amodra@gmail.com>
11849 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11850 create invalid offset address for vsx splat insn.
11851 * config/rs6000/predicates.md (splat_input_operand): New.
11852 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11854 2011-03-15 Xinliang David Li <davidxl@google.com>
11857 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11858 (normalize_preds): New function.
11859 (is_use_properly_guarded): Normalize def predicates.
11861 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11864 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11865 in the output template.
11867 2011-03-15 Richard Guenther <rguenther@suse.de>
11869 PR middle-end/47650
11870 * tree-pretty-print.c (dump_function_declaration): Properly
11871 dump unprototyped and varargs function types.
11873 2011-03-15 Richard Guenther <rguenther@suse.de>
11875 PR tree-optimization/13954
11876 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11879 2011-03-15 Richard Guenther <rguenther@suse.de>
11881 PR tree-optimization/48037
11882 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11883 selects into BIT_FIELD_REFs.
11884 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11887 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11889 PR tree-optimization/48129
11890 * builtins.c (fold_builtin_snprintf): Convert to type of
11891 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11892 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11894 2011-03-15 Richard Guenther <rguenther@suse.de>
11896 PR tree-optimization/41490
11897 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11898 value but with VUSE.
11899 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11901 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11902 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11903 * tree-tailcall.c (find_tail_calls): Ignore returns.
11905 2011-03-15 Richard Guenther <rguenther@suse.de>
11907 PR middle-end/48031
11908 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11909 or variable-indexed array accesses when in gimple form.
11911 2011-03-15 Richard Guenther <rguenther@suse.de>
11913 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11915 2011-03-15 Alan Modra <amodra@gmail.com>
11918 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11919 presume symbol_refs without a symbol_ref_decl are suitably
11920 aligned, nor other trees we may see here. Handle anchor symbols.
11921 (legitimate_constant_pool_address_p): Comment. Add mode param.
11922 Check cmodel=medium addresses. Adjust all calls.
11923 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11924 creating cmodel=medium optimized access to locals.
11925 * config/rs6000/constraints.md (R): Pass QImode to
11926 legitimate_constant_pool_address_p.
11927 * config/rs6000/predicates.md (input_operand): Pass mode to
11928 legitimate_constant_pool_address_p.
11929 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11932 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11935 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11936 64-bit constants being loaded into registers other than GPRs such
11937 as loading 0 into a VSX register.
11939 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11941 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11943 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11945 PR middle-end/47917
11946 * builtins.c (fold_builtin_snprintf): New function.
11947 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11948 (fold_builtin_4): Likewise.
11950 PR middle-end/38878
11951 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11952 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11953 and C - X == X also strip nops from +/-/p+ operand.
11954 When optimizing -X == C, fold C to arg0's type.
11957 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11958 emit it as add_AT_int instead of add_AT_unsigned.
11960 2011-03-14 Tom Tromey <tromey@redhat.com>
11962 * unwind-dw2.c: Include sys/sdt.h if it exists.
11963 (_Unwind_DebugHook): Use STAP_PROBE2.
11964 * config.in, configure: Rebuild.
11965 * configure.ac: Check for sys/sdt.h.
11967 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11969 * config/i386/i386.md (ROUND_FLOOR): New constant.
11970 (ROUND_CEIL): Ditto.
11971 (ROUND_TRUNC): Ditto.
11972 (ROUND_MXCSR): Ditto.
11973 (ROUND_NO_EXC): Ditto.
11974 (rint<mode>2): Use new defines instead of numerical constants.
11975 (floor<mode>2): Ditto.
11976 (ceil<mode>2): Ditto.
11977 (btrunc<mode>2): Ditto.
11978 * config/i386/i386-builtin-types.def: Define ROUND function type
11980 * config/i386/i386.c (enum ix86_builtins): Add
11981 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11982 (struct builtin_description): Add
11983 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11984 (ix86_expand_sse_round): New static function.
11985 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11987 (ix86_builtin_vectorized_function): Handle
11988 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11990 2011-03-14 Tom Tromey <tromey@redhat.com>
11992 * c-parser.c (c_parser_asm_string_literal): Clear
11993 warn_overlength_strings.
11995 2011-03-14 Tom Tromey <tromey@redhat.com>
11997 * c-parser.c (disable_extension_diagnostics): Save
11998 warn_overlength_strings.
11999 (restore_extension_diagnostics): Restore warn_overlength_strings.
12001 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12003 * BASE-VER: Change to 4.7.0.
12005 2011-03-14 Richard Guenther <rguenther@suse.de>
12007 PR middle-end/48098
12008 * tree.c (build_vector_from_val): Adjust assert to requirements
12011 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12014 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12016 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12018 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12019 terms of target_flags_explicit. Adjust copyright year.
12021 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12022 * config/rs6000/t-freebsd: New file. Add override for
12025 2011-03-13 Chris Demetriou <cgd@google.com>
12027 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12028 (-fno-diagnostics-show-option): this, to reflect current default.
12029 (-Werror=): Update text about -fno-diagnostics-show-option.
12031 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12034 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12035 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12036 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12037 mode is not V2DImode or V2DFmode.
12038 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12039 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12040 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12042 (movdi_internal64): Likewise.
12044 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12046 PR tree-optimization/47127
12047 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12049 (set_cloog_options): Same.
12050 (scop_to_clast): Same.
12051 (print_clast_stmt): Do not call cloog_state_malloc and
12053 (print_generated_program): Same.
12055 * graphite-clast-to-gimple.h (cloog_state): Declared.
12056 (scop_to_clast): Adjust declaration.
12057 * graphite.c (cloog_state): Defined here.
12058 (graphite_initialize): Call cloog_state_malloc.
12059 (graphite_finalize): Call cloog_state_free.
12061 2011-03-11 Jason Merrill <jason@redhat.com>
12063 * attribs.c (lookup_attribute_spec): Take const_tree.
12066 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12068 * config/sparc/sparc.c (sparc_option_override): Use
12069 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12071 2011-03-11 Richard Guenther <rguenther@suse.de>
12073 PR tree-optimization/48067
12074 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12075 multiplication result will be only used once on the target
12078 2011-03-11 Richard Guenther <rguenther@suse.de>
12080 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12082 2011-03-11 Richard Guenther <rguenther@suse.de>
12085 * tree.c (find_decls_types_r): Do not walk types only reachable
12086 from IDENTIFIER_NODEs.
12088 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12090 PR middle-end/48044
12091 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12092 all vnode->force_output nodes as needed.
12094 2011-03-11 Jason Merrill <jason@redhat.com>
12097 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12098 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12100 2011-03-11 Martin Jambor <mjambor@suse.cz>
12102 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12105 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12107 PR tree-optimization/48063
12108 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12109 inline functions called once if !tree_can_inline_p (node->callers).
12111 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12113 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12115 * config/score/score3.c: Delete.
12116 * config/score/score3.h: Delete.
12117 * config/score/mul-div.S: Delete.
12118 * config/score/sfp-machine.h: Add new file.
12119 * config/score/constraints.md: Add new file.
12120 * config/score/t-score-softfp: Add new file.
12121 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12122 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12123 (score7_extra_constraint): Delete.
12124 (score7_option_override): Remove unused code.
12125 * config/score/score.c: Remove score3 and score5 define and code.
12126 * config/score/score.h: Remove score3 and score5 define and code.
12127 * config/score/score.md: Remove score3 template and unusual insn.
12128 * config/score/score.opt: Remove score3 and score5 options.
12130 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12132 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12133 when _HPUX_SOURCE is defined.
12134 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12136 2011-03-10 Jason Merrill <jason@redhat.com>
12139 * stor-layout.c (layout_type): Don't set structural equality
12140 on arrays of incomplete type.
12141 * tree.c (type_hash_eq): Handle comparing them properly.
12143 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12146 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12147 result mode matches original rtl mode.
12149 2011-03-10 Nick Clifton <nickc@redhat.com>
12151 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12152 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12154 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12156 PR rtl-optimization/47866
12157 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12158 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12159 if target wasn't scalar.
12160 * function.c (assign_stack_temp_for_type): Assert that neither
12161 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12162 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12164 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12166 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12168 * config/s390/s390-protos.h (s390_label_align): New prototype.
12169 * config/s390/s390.c (s390_label_align): New function.
12170 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12172 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12175 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12176 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12177 (output_vec_const_move): Ditto.
12179 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12181 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12182 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12183 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12184 Change 'rclass' argument and result type to reg_class_t.
12185 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12187 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12189 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12190 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12191 (TARGET_MEMORY_MOVE_COST): Define.
12192 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12194 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12197 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12200 PR tree-optimization/48022
12201 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12204 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12207 * var-tracking.c (find_use_val): Return NULL for
12208 cui->sets && cui->store_p BLKmode MEMs.
12210 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12212 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12214 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12215 xstormy16_print_operand_address): Remove.
12216 * config/stormy16/stormy16.c (xstormy16_print_operand,
12217 xstormy16_print_operand_address): Make static.
12218 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12220 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12223 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12224 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12227 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12230 * cfgloopmanip.c (fix_bb_placements): Return immediately
12231 if FROM is BASE_LOOP's header.
12233 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12235 * gimplify.c (gimplify_function_tree): Fix building calls
12236 to __builtin_return_address.
12238 2011-03-07 Alan Modra <amodra@gmail.com>
12240 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12241 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12242 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12243 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12245 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12246 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12247 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12248 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12249 * config/rs6000/rs6000.c
12250 (rs6000_elf_end_indicate_exec_stack): Rename to..
12251 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12252 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12253 (rs6000_file_start): ..here.
12254 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12255 file scope variables.
12256 (call_ABI_of_interest): New function.
12257 (init_cumulative_args): Set above vars when function return value
12258 is a float, vector, or small struct.
12259 (rs6000_function_arg_advance_1): Likewise for function args.
12260 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12261 references float args.
12263 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12265 * doc/cfg.texi: Remove "See" before @ref.
12266 * doc/invoke.texi: Likewise.
12268 2011-03-05 Jason Merrill <jason@redhat.com>
12270 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12272 2011-03-05 Anthony Green <green@moxielogic.com>
12274 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12276 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12278 PR rtl-optimization/47899
12279 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12280 to flow_loop_nested_p when moving the loop upward.
12282 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12285 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12287 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12289 PR tree-optimization/47967
12290 * ipa-cp.c (build_const_val): Return NULL instead of creating
12291 VIEW_CONVERT_EXPR for mismatching sizes.
12292 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12293 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12294 give up on versioning.
12296 2011-03-05 Alan Modra <amodra@gmail.com>
12299 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12300 full cmodel medium/large lo_sum + high addresses.
12302 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12304 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12305 pool references in UNSPEC_LTREL_OFFSET.
12307 2011-03-04 Jan Hubicka <jh@suse.cz>
12310 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12311 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12312 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12314 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12315 cgraph_add_thunk): Add node pointers.
12316 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12317 associated to right node.
12318 (input_node): Update use of cgraph_same_body_alias
12319 and cgraph_add_thunk.
12321 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12323 * config/i386/i386.opt (mprefer-avx128): New flag.
12324 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12325 modes when the flag -mprefer-avx128 is on.
12327 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12329 * dwarf2out.c (compare_loc_operands): Fix address handling.
12331 2011-03-04 Alan Modra <amodra@gmail.com>
12333 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12335 2011-03-04 Richard Guenther <rguenther@suse.de>
12337 PR middle-end/47968
12338 * expmed.c (extract_bit_field_1): Prefer vector modes that
12339 vec_extract patterns can handle.
12341 2011-03-04 Richard Guenther <rguenther@suse.de>
12343 PR middle-end/47975
12344 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12346 2011-03-04 Richard Henderson <rth@redhat.com>
12348 * explow.c (emit_stack_save): Remove 'after' parameter.
12349 (emit_stack_restore): Likewise.
12350 * expr.h: Update to match.
12351 * builtins.c, calls.c, stmt.c: Likewise.
12352 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12353 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12354 * function.c (expand_function_end): Insert the emit_stack_save
12355 sequence before parm_birth_insn instead of after.
12357 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12359 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12360 (ssse3_pmaddubsw128): Ditto.
12361 (ssse3_pmaddubsw): Ditto.
12363 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12365 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12367 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12370 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12371 on TYPE_SIZE_UNIT if it is a DECL.
12374 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12375 first operand is not is_gimple_mem_ref_addr, try to fold it.
12376 If the operand still isn't is_gimple_mem_ref_addr, clear
12379 2011-03-03 Richard Guenther <rguenther@suse.de>
12381 PR middle-end/47283
12382 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12384 (refs_may_alias_p_1): For release branches return true if
12385 we are confused by our input.
12387 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12389 * config/s390/s390.c (s390_function_value): Rename to ...
12390 (s390_function_and_libcall_value): ... this.
12391 (s390_function_value): New function.
12392 (s390_libcall_value): New function.
12393 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12394 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12395 target macro definitions.
12396 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12398 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12400 * config/i386/freebsd64.h (CC1_SPEC): Define.
12401 * config/i386/linux64.h (CC1_SPEC): Define.
12402 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12404 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12406 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12408 * config/stormy16/stormy16.c: Include reload.h.
12409 (xstormy16_memory_move_cost): New function.
12410 (TARGET_MEMORY_MOVE_COST): Define.
12412 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12414 PR rtl-optimization/47925
12415 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12416 with side effects. Remove the more-specific check for volatile asms.
12418 2011-03-02 Alan Modra <amodra@gmail.com>
12421 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12422 toc relative addresses for valid offsets.
12424 2011-03-01 Richard Guenther <rguenther@suse.de>
12426 PR tree-optimization/47890
12427 * tree-vect-loop.c (get_initial_def_for_induction): Set
12428 related stmt properly.
12430 2011-03-01 Richard Guenther <rguenther@suse.de>
12433 * lto-streamer.c (lto_record_common_node): Also register
12434 the canonical type.
12436 2011-03-01 Richard Guenther <rguenther@suse.de>
12439 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12440 Do not stream DECL_ABSTRACT_ORIGIN.
12441 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12442 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12443 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12444 Do not stream DECL_ABSTRACT_ORIGIN.
12445 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12446 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12448 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12450 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12451 FUNCTION_VALUE_REGNO_P): Remove.
12452 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12453 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12454 Add 'outgoing' argument.
12455 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12457 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12458 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12460 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12463 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12464 (lookup_filename): Likewise.
12465 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12467 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12468 Jakub Jelinek <jakub@redhat.com>
12470 PR middle-end/47893
12471 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12472 (assign_stack_local_1): Change last argument type to int.
12473 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12474 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12475 don't record padding space into frame_space_list nor use those areas.
12476 (assign_stack_local): Adjust caller.
12477 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12478 of assign_stack_local, pass 0 as last argument.
12479 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12482 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12485 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12486 Use target address_mode and pointer_mode hooks instead of hardcoded
12487 Pmode and ptr_mode. Handle some simple cases of extending if
12488 POINTERS_EXTEND_UNSIGNED < 0.
12489 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12490 Call convert_debug_memory_address.
12491 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12492 convert_debug_memory_address.
12494 PR middle-end/46790
12495 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12496 * configure: Regenerated.
12497 * config.in: Regenerated.
12498 * varasm.c (default_function_section): Return NULL
12499 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12501 2011-02-28 Martin Jambor <mjambor@suse.cz>
12503 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12504 the description to match the printed values.
12506 2011-02-28 Richard Guenther <rguenther@suse.de>
12508 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12509 of the copied scope tree.
12511 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12513 * doc/extend.texi (Function Attributes): Avoid deeply (and
12514 wrongly) nested tables.
12516 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12518 PR middle-end/47903
12519 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12520 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12521 r isn't op0 nor op1.
12523 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12525 * config/avr/avr.md: Remove magic comment for emacs.
12527 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12530 * config/avr/avr.c (avr_option_override): Use error on bad options.
12531 (avr_help): New function.
12532 (TARGET_HELP): Define.
12534 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12537 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12538 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12540 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12542 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12543 (ARM Options): Ditto.
12544 (i386 and x86-64 Options): Ditto.
12545 (RX Options): Ditto.
12546 (SPARC Options): Ditto.
12548 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12550 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12551 FreeBSD 6 and later. Generally use cpu generic.
12553 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12555 * doc/cpp.texi: Update copyright years.
12557 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12560 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12562 2011-02-25 Jon Beniston <jon@beniston.com>
12565 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12566 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12567 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12568 (lm32_block_move_inline): Add type cast to remove warning.
12569 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12570 (gen_int_relational): Move declarations to start of function.
12572 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12574 PR tree-optimization/45470
12575 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12576 can throw internally only.
12577 * tree-vect-stmts.c (vectorizable_call): Likewise.
12579 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12581 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12582 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12583 * config/stormy16/stormy16-protos.h
12584 (xstormy16_preferred_reload_class): Remove.
12585 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12586 static. Change 'rclass' argument and return type to reg_class_t.
12587 (TARGET_PREFERRED_RELOAD_CLASS,
12588 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12590 2011-02-24 Richard Guenther <rguenther@suse.de>
12592 * lto-streamer-in.c (input_bb): Do not find referenced vars
12593 in debug statements.
12595 2011-02-23 Jason Merrill <jason@redhat.com>
12597 * common.opt (fabi-version): Document v5 and v6.
12599 2011-02-23 Richard Guenther <rguenther@suse.de>
12601 PR tree-optimization/47849
12602 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12604 2011-02-23 Jie Zhang <jie@codesourcery.com>
12606 * opts-common.c (decode_cmdline_option): Print empty string
12607 argument as "" in decoded->orig_option_with_args_text.
12608 * gcc.c (execute): Print empty string argument as ""
12609 in the verbose output.
12610 (do_spec_1): Keep empty string argument.
12612 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12614 * config.gcc: Declare score-* and crx-* obsolete.
12616 2011-02-23 Jie Zhang <jie@codesourcery.com>
12618 PR rtl-optimization/47763
12619 * web.c (web_main): Ignore naked clobber when replacing register.
12621 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12623 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12626 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12629 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12631 2011-02-22 Mike Stump <mikestump@comcast.net>
12633 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12635 * configure: Regenerate.
12637 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12639 PR rtl-optimization/46002
12640 * ira-color.c (update_copy_costs): Change class intersection
12641 test to reg_class_contents[] test of 'hard_regno'.
12643 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12645 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12646 than Driver option.
12647 * config/hpux11.opt (mt): Likewise.
12648 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12649 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12650 * config/vax/elf.opt (mno-asm-pic): Likewise.
12651 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12653 2011-02-21 Mike Stump <mikestump@comcast.net>
12656 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12657 tree so we can get save the type.
12658 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12659 for CFString instead of trying to use past the end of the builtins.
12660 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12661 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12662 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12663 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12664 Rename to darwin_builtin_cfstring.
12665 (darwin_init_cfstring_builtins): Return the built type.
12667 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12670 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12671 (_mm256_insert_epi64): Use _mm_insert_epi64.
12673 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12675 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12676 * config/stormy16/stormy16-protos.h
12677 (xstormy16_mode_dependent_address_p): Remove.
12678 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12679 Make static. Change return type to bool. Change argument type to
12680 const_rtx. Remove dead code.
12681 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12683 2011-02-21 Richard Guenther <rguenther@suse.de>
12686 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12687 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12688 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12690 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12691 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12693 2011-02-20 Richard Guenther <rguenther@suse.de>
12696 * tree.c (free_lang_data_in_decl): Clean builtins from
12697 the TU decl BLOCK_VARS.
12699 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12703 * haifa-sched.c (fix_tick_ready): Skip tick computation
12706 2011-02-19 Richard Guenther <rguenther@suse.de>
12709 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12710 Remove lazy BLOCK_VARS streaming.
12711 (lto_input_ts_block_tree_pointers): Likewise.
12712 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12714 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12716 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12718 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12720 * config/i386/biarch32.h, config/i386/mach.h,
12721 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12723 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12726 * config/i386/i386.md (peephole2 for shift and plus): Use
12727 operands[1] original mode in the first insn.
12729 2011-02-18 Mike Stump <mikestump@comcast.net>
12731 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12733 2011-02-18 Jan Hubicka <jh@suse.cz>
12735 PR middle-end/47788
12736 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12737 to zero when the function is not inlinable at all.
12739 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12741 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12742 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12743 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12744 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12745 * config/pa/t-pa64: Likewise.
12746 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12748 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12751 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12753 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12756 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12758 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12760 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12761 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12762 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12763 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12764 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12765 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12766 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12767 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12768 m32r_legitimate_address_p): New functions.
12769 * config/m32r/constraints.md (constraint "S"): Don't use
12770 STORE_PREINC_PREDEC_P.
12771 (constraint "U"): Don't use LOAD_POSTINC_P.
12773 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12775 PR rtl-optimization/46178
12776 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12777 compute ira_hard_regno_cover_class[].
12779 2011-02-18 Richard Guenther <rguenther@suse.de>
12782 * lto-streamer.h (lto_global_var_decls): Declare.
12783 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12784 statics for global var processing.
12786 2011-02-18 Richard Guenther <rguenther@suse.de>
12788 PR tree-optimization/47737
12789 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12790 edge dominance check.
12792 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12795 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12796 avoid invalid rtx sharing.
12798 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12800 * doc/cpp.texi (Obsolete Features): Add background on the
12801 origin of assertions.
12803 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12805 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12807 * config/darwin.c (output_objc_section_asm_op): Added support for
12809 (is_objc_metadata): New.
12810 (darwin_objc2_section): New.
12811 (darwin_objc1_section): New.
12812 (machopic_select_section): Added support for ABI v1 and v2.
12813 (darwin_emit_objc_zeroed): New.
12814 (darwin_output_aligned_bss): Detect objc metadata and treat it
12816 (darwin_asm_output_aligned_decl_common): Same.
12817 (darwin_asm_output_aligned_decl_local): Same.
12818 * config/darwin-sections.def: Updated for ABI v1 and v2.
12819 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12820 compiling Objective-C code for the NeXT runtime, default to using
12821 ABI version 0 for 32-bit, and version 2 for 64-bit.
12823 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12825 * common.opt (optimize_fast): New Variable.
12826 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12827 instead of local variable ofast.
12829 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12831 * doc/invoke.texi (fobjc-abi-version): Documented.
12832 (fobjc-nilcheck): Documented.
12833 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12836 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12839 * common.opt (export-dynamic): New Driver option.
12840 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12842 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12844 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12846 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12847 Jan Hubicka <jh@suse.cz>
12851 * cfgexpand.c (account_used_vars_for_block): Remove.
12852 (estimated_stack_frame_size): Use referenced vars.
12853 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12854 that were referenced in the original function. Test src_fn
12855 rather than cfun. Drop redundant get_var_ann.
12856 (setup_one_parameter): Drop redundant get_var_ann.
12857 (declare_return_variable): Likewise.
12858 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12859 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12860 * ipa-inline.c (compute_inline_parameters): Do not compute
12861 disregard_inline_limits here.
12862 (compute_inlinable_for_current, pass_inlinable): New.
12863 (pass_inline_parameters): Require PROP_referenced_vars.
12864 * cgraphunit.c (cgraph_process_new_functions): Don't run
12865 compute_inline_parameters explicitly unless function is in SSA form.
12866 (cgraph_analyze_function): Set .disregard_inline_limits.
12867 * tree-sra.c (convert_callers): Compute inliner parameters
12868 only for functions already in SSA form.
12870 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12872 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12873 -mlittle-endian-data.
12875 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12877 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12878 -mno-fpu, not -fpu and -no-fpu.
12879 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12880 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12882 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12885 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12886 input reload with PLUS RTX.
12888 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12890 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12891 of InverseVar(MDMX).
12893 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12895 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12898 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12900 * config/mn10300/mn10300.opt (mno-crt0): New.
12902 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12904 * config/m68k/uclinux.opt (static-libc): New Driver option.
12906 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12908 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12910 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12912 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12913 %{muser-extend-enabled}.
12915 2011-02-16 Richard Guenther <rguenther@suse.de>
12917 PR tree-optimization/47738
12918 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12919 the TODO from tree_predictive_commoning.
12921 2011-02-15 Jeff Law <law@redhat.com>
12924 2011-01-25 Jeff Law <law@redhat.com>
12926 PR rtl-optimization/37273
12927 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12928 handle them like argument loads from stack slots. Do not double
12929 count memory for memory constants and argument loads from stack slots.
12931 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12933 PR middle-end/47725
12934 * combine.c (cant_combine_insn_p): Revert the last change.
12936 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12939 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12940 mode for vector constants. Remove code that checks for TImode.
12942 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12946 * cgraph.h (compute_inline_parameters): Return void.
12947 * ipa-inline.c (compute_inline_parameters): Adjust.
12949 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12953 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12955 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12956 * ipa-inline.c (compute_inline_parameters): Adjust.
12958 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12962 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12963 Adjust all users. Pass FN to...
12964 * tree-flow-inline.h (first_referenced_var): ... this. Add
12966 * ipa-struct-reorg.c: Adjust.
12967 * tree-dfa.c: Adjust.
12968 * tree-into-ssa.c: Adjust.
12969 * tree-sra.c: Adjust.
12970 * tree-ssa-alias.c: Adjust.
12971 * tree-ssa-live.c: Adjust.
12972 * tree-ssa.c: Adjust.
12973 * tree-ssanames.c: Adjust.
12974 * tree-tailcall.c: Adjust.
12976 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12980 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12981 Adjust all callers.
12982 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12983 * tree-flow-inline.h: Adjust.
12984 * gimple-pretty-print.c: Adjust.
12985 * tree-into-ssa.c: Adjust.
12986 * tree-ssa.c: Adjust.
12987 * cfgexpand.c: Adjust.
12989 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12991 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12992 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12993 (EXTRA_CONSTRAINT): Delete.
12994 * config/iq2000/constraints.md: New file.
12995 * config/iq2000/iq2000.md: Include it.
12996 (define_insn ""): Delete.
12997 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12998 unsupported constraint letters from patterns.
12999 (call_value, call_value_internal1): Likewise.
13000 (call_value_multiple_internal1): Likewise.
13002 2011-02-15 Nick Clifton <nickc@redhat.com>
13004 * config/mn10300/mn10300.c: Include tm-constrs.h.
13005 (struct liw_data): New data structure describing an LIW candidate
13007 (extract_bundle): Use struct liw_data. Allow small integer
13008 operands for some instructions.
13009 (check_liw_constraints): Use struct liw_data. Remove swapped
13010 parameter. Add comments describing the checks. Fix bug when
13011 assigning the source of liw1 to the source of liw2.
13012 (liw_candidate): Delete. Code moved into extract_bundle.
13013 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13015 * config/mn10300/predicates.md (liw_operand): New predicate.
13016 Allows registers and small integer constants.
13017 * config/mn10300/constraints.md (O): New constraint. Accetps
13018 integers in the range -8 to +7 inclusive.
13019 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13020 for moving a small integer into a register. Give this alternative
13022 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13023 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13024 using the J,K,L and M constraints,
13025 (liw): Remove SI mode on second operands to allow for HI and QI
13027 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13030 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13032 PR middle-end/47725
13033 * combine.c (cant_combine_insn_p): Check zero/sign extended
13036 2011-02-15 Richard Guenther <rguenther@suse.de>
13038 PR tree-optimization/47743
13039 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13040 for a non-type-compatible VN lookup bail out.
13042 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13044 * config/fr30/constraints.md: New file.
13045 * config/fr30/fr30.md: Include it.
13046 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13047 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13048 (EXTRA_CONSTRAINT): Delete.
13050 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13052 * config/frv/constraints.md: New file.
13053 * config/frv/predicates.md: Include it.
13054 * config/frv/frv.c (reg_class_from_letter): Delete.
13055 (frv_option_override): Don't initialize it.
13056 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13057 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13058 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13059 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13060 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13061 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13062 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13063 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13064 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13065 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13066 (REG_CLASS_FROM_CONSTRAINT): Delete.
13068 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13070 PR middle-end/47581
13071 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13072 if frame size is 0 in a leaf function.
13074 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13077 * config/alpha/host-osf.c: New file.
13078 * config/alpha/x-osf: New file.
13079 * config.host (alpha*-dec-osf*): Use it.
13081 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13083 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13084 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13085 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13086 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13088 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13090 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13092 * config/stormy16/constraints.md: New file.
13093 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13094 Use satisfies_constraint_Q and satisfies_constraint_R.
13095 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13097 (xstormy16_legitiamte_address_p): Declare.
13098 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13099 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13100 (EXTRA_CONSTRAINT): Delete.
13101 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13103 (xstormy16_extra_constraint_p): Delete.
13105 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13107 PR tree-optimization/46494
13108 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13109 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13110 (pass_rtl_loop_done): Add TODO_verify_flow.
13111 * fwprop.c (pass_rtl_fwprop): Likewise.
13112 * modulo-sched.c (pass_sms): Likewise.
13113 * tree-ssa-dom.c (pass_dominator): Likewise.
13114 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13115 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13116 (pass_tree_loop_done): Likewise.
13117 * tree-ssa-pre.c (execute_pre): Likewise.
13118 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13119 * tree-ssa-sink.c (pass_sink_code): Likewise.
13120 * tree-vrp.c (pass_vrp): Likewise.
13122 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13124 * config/v850/constraints.md: New file.
13125 * config/v850/v850.md: Include it.
13126 * config/v850/predicates.md (reg_or_0_operand): Use
13127 satisfies_constraint_G.
13128 (special_symbolref_operand): Use satisfies_constraint_K.
13129 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13130 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13131 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13132 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13133 (EXTRA_CONSTRAINT): Delete.
13134 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13135 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13136 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13138 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13141 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13144 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13146 * config/mcore/constraints.md: New file.
13147 * config/mcore/mcore.md: Include it.
13148 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13149 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13150 (REG_CLASS_FROM_LETTER): Delete.
13151 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13152 insn_const_int_ok_for_constraint.
13153 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13154 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13155 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13156 (EXTRA_CONSTRAINT): Delete.
13158 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13161 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13162 (IS_SIGHANDLER): Define.
13163 (sparc64_is_sighandler): New function, split off from
13164 sparc64_fallback_frame_state.
13165 (sparc_is_sighandler): New function, split off from
13166 sparc_fallback_frame_state.
13167 (sparc64_fallback_frame_state): Merge with ...
13168 (sparc_fallback_frame_state): ... this into ...
13169 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13170 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13171 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13172 stack instead of hardcoded offsets.
13174 2011-02-14 Andriy Gapon <avg@freebsd.org>
13177 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13179 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13181 * configure: Regenerate.
13183 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13186 * gcc.c (asm_options): Correct spec matching --target-help.
13188 2011-02-12 Martin Jambor <mjambor@suse.cz>
13190 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13191 to gimple call error.
13193 2011-02-12 Mike Stump <mikestump@comcast.net>
13195 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13196 comments in backslash regions.
13198 2011-02-12 Mike Stump <mikestump@comcast.net>
13199 Jakub Jelinek <jakub@redhat.com>
13200 Iain Sandoe <iains@gcc.gnu.org>
13203 * dwarf2out.c (output_cfa_loc): When required, apply the
13204 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13205 (output_loc_sequence): Likewise.
13206 (output_loc_operands_raw): Likewise.
13207 (output_loc_sequence_raw): Likewise.
13208 (output_cfa_loc): Likewise.
13209 (output_loc_list): Suppress register number adjustment when
13210 calling output_loc_sequence()
13211 (output_die): Likewise.
13213 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13215 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13217 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13218 xtensa_memory_move_cost): New functions.
13219 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13221 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13224 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13225 in the current directory.
13226 * configure: Rebuilt.
13228 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13230 * config/darwin.c (darwin_override_options): Add a hunk missed
13231 from the commit of r168571. Trim comment line lengths and
13232 correct indents of the preceding block.
13234 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13236 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13239 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13241 * common.opt (nostartfiles): New Driver option.
13243 2011-02-11 Xinliang David Li <davidxl@google.com>
13245 PR tree-optimization/47707
13246 * tree-chrec.c (convert_affine_scev): Keep type precision.
13248 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13250 PR tree-optimization/47420
13251 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13253 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13255 PR rtl-optimization/47614
13256 * rtl.h (check_for_inc_dec): Declare.
13257 * dse.c (check_for_inc_dec): Externalize...
13258 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13259 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13261 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13264 * gcc.c (main): Do not compile inputs if there were errors in
13266 * opts-common.c (read_cmdline_option): Check for wrong language
13267 after other error checks.
13269 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13271 * cgraph.c: Fix comment typos.
13272 * cgraph.h: Likewise.
13273 * cgraphunit.c: Likewise.
13274 * ipa-cp.c: Likewise.
13275 * ipa-inline.c: Likewise.
13276 * ipa-prop.c: Likewise.
13277 * ipa-pure-const.c: Likewise.
13278 * ipa-ref.c: Likewise.
13279 * ipa-reference.c: Likewise.
13281 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13284 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13286 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13289 * doc/sourcebuild.texi (Require Support): Document
13290 dg-require-ascii-locale.
13292 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13294 * doc/lto.texi (Write summary): Fix missing parentheses.
13296 2011-02-10 DJ Delorie <dj@redhat.com>
13298 * config/m32c/m32c.c (m32c_option_override): Disable
13299 -fcombine-stack-adjustments until flag value tracking and compare
13300 optimization can be rewritten.
13302 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13304 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13306 (PROCESSOR_DEFAULT64): Likewise.
13308 2011-02-10 Richard Henderson <rth@redhat.com>
13310 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13311 change from 2011-02-03.
13312 * config/rx/rx.c (flags_from_code): Likewise.
13313 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13314 is valid, n/pz otherwise.
13315 (rx_select_cc_mode): Return CCmode if Y is not zero.
13317 2011-02-10 Richard Guenther <rguenther@suse.de>
13319 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13321 2011-02-10 Richard Guenther <rguenther@suse.de>
13323 PR tree-optimization/47677
13324 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13326 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13329 * combine.c (make_compound_operation): Only change shifts into
13330 multiplication for SCALAR_INT_MODE_P.
13332 2011-02-10 Jie Zhang <jie@codesourcery.com>
13336 2011-02-05 Jie Zhang <jie@codesourcery.com>
13338 * web.c (entry_register): Don't clobber the number of the
13339 first uninitialized reference in used[].
13341 2011-02-09 Richard Guenther <rguenther@suse.de>
13343 PR tree-optimization/47664
13344 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13347 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13351 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13353 (PROCESSOR_DEFAULT64): Same.
13354 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13356 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13358 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13360 2011-02-09 Martin Jambor <mjambor@suse.cz>
13362 PR middle-end/45505
13363 * tree-sra.c (struct access): New flags grp_scalar_read and
13364 grp_scalar_write. Changed description of assignment read and write
13366 (dump_access): Dump new flags, reorder all of them.
13367 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13368 to detect multiple scalar reads.
13369 (analyze_access_subtree): Use the new scalar read write flags instead
13370 of the old flags. Adjusted comments.
13372 2011-02-08 DJ Delorie <dj@redhat.com>
13375 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13378 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13380 * config/m68k/uclinux.opt: New.
13381 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13383 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13385 * config/cris/elf.opt (sim): New Driver option.
13387 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13389 * config/xtensa/elf.opt: New.
13390 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13392 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13394 * config/vax/elf.opt: New.
13395 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13397 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13399 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13401 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13403 * config/gnu-user.opt: New.
13404 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13405 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13406 *-*-uclinux*): Use gnu-user.opt.
13408 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13410 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13411 * config/i386/gnu.h (CPP_SPEC): Likewise.
13413 2011-02-08 Ian Lance Taylor <iant@google.com>
13415 * common.opt (fcx-limited-range): Add SetByCombined flag.
13416 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13417 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13418 (fassociative-math, freciprocal-math): Likewise.
13419 (funsafe-math-optimizations): Likewise.
13420 * opth-gen.awk: Handle SetByCombined.
13421 * optc-gen.awk: Likewise.
13422 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13423 (set_unsafe_math_optimizations_flags): Likewise.
13424 * doc/options.texi (Option properties): Document SetByCombined.
13426 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13428 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13429 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13430 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13431 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13432 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13434 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13436 PR tree-optimization/46834
13437 PR tree-optimization/46994
13438 PR tree-optimization/46995
13439 * graphite-sese-to-poly.c (used_outside_reduction): New.
13440 (detect_commutative_reduction): Call used_outside_reduction.
13441 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13442 translate_scalar_reduction_to_array only when at least one
13443 loop-phi/close-phi tuple has been detected.
13445 2011-02-08 Richard Guenther <rguenther@suse.de>
13447 PR middle-end/47639
13448 * tree-vect-generic.c (expand_vector_operations_1): Update
13450 (expand_vector_operations): ... not here. Cleanup EH info
13451 and the CFG if required.
13453 2011-02-08 Richard Guenther <rguenther@suse.de>
13455 PR tree-optimization/47641
13456 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13457 require type compatibility.
13459 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13461 * gimple-low.c (lower_function_body): Don't remove the location of
13462 the return statement here.
13463 (lower_gimple_return): Do it here instead but only if the return
13464 statement is actually used twice.
13466 2011-02-08 Richard Guenther <rguenther@suse.de>
13468 PR tree-optimization/47632
13469 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13470 unused up_to_stmt parameter, return whether cfg-cleanup is
13471 necessary, remove EH info properly.
13472 (forward_propagate_into_gimple_cond): Adjust caller.
13473 (forward_propagate_into_cond): Likewise.
13474 (forward_propagate_comparison): Likewise.
13475 (tree_ssa_forward_propagate_single_use_vars): Make
13476 forward_propagate_comparison case similar to the two others.
13478 2011-02-08 Nick Clifton <nickc@redhat.com>
13480 * config/mn10300/mn10300.opt (mliw): New command line option.
13481 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13482 (liw_bundling): New automaton.
13483 (liw): New attribute.
13484 (liw_op): New attribute.
13485 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13486 (movsi_internal): Add LIW attributes.
13487 (andsi3): Likewise.
13488 (iorsi3): Likewise.
13489 (xorsi3): Likewise.
13490 (addsi3): Separate register and immediate alternatives.
13491 Add LIW attributes.
13492 (subsi3): Likewise.
13494 (aslsi3): Likewise.
13495 (lshrsi3): Likewise.
13496 (ashrsi3): Likewise.
13497 (liw): New pattern.
13498 * config/mn10300/mn10300.c (liw_op_names): New
13499 (mn10300_print_operand): Handle 'W' operand descriptor.
13500 (extract_bundle): New function.
13501 (check_liw_constraints): New function.
13502 (liw_candidate): New function.
13503 (mn10300_bundle_liw): New function.
13504 (mn10300_reorg): New function.
13505 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13506 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13507 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13508 __LIW__ or __NO_LIW__.
13509 * doc/invoke.texi: Describe the -mliw command line option.
13511 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13513 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13514 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13515 pthread_mutex_unlock): Remove.
13516 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13517 * config/pa/t-pa64: Likewise.
13518 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13519 shared libc if not linking against libpthread.
13520 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13522 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13525 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13526 on 10.6 and later to ensure that we always use the unwinder from
13527 the system. Only add -no_compact_unwind when tarteting darwin
13530 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13533 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13534 (vec_interleave_lowv2sf): Ditto.
13535 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13536 (vec_extract_oddv2sf): Ditto.
13538 2011-02-07 Mike Stump <mikestump@comcast.net>
13541 Add __ieee_divdc3 entry point.
13542 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13544 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13545 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13546 * config/darwin.c (darwin_rename_builtins): Add.
13547 * config/darwin-protos.h (darwin_rename_builtins): Add.
13549 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13552 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13555 2011-02-07 Mike Stump <mikestump@comcast.net>
13557 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13559 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13562 * config/avr/libgcc.S (exit): Move .endfunc
13564 2011-02-07 Richard Guenther <rguenther@suse.de>
13566 PR tree-optimization/47615
13567 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13568 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13569 (run_scc_vn): Initialize it.
13570 (visit_reference_op_load): Use it.
13571 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13573 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13575 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13576 DImode trapping arithmetic libfuncs.
13578 2011-02-07 Richard Guenther <rguenther@suse.de>
13580 PR tree-optimization/47621
13581 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13583 (execute_update_addresses_taken): ... here. Make it more
13584 conservative in what we accept.
13586 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13588 * config/sparc/freebsd.h (ASM_SPEC): Define.
13589 * config/sparc/vxworks.h (ASM_SPEC): Define.
13591 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13593 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13595 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13597 * doc/invoke.texi: Remove reference to compiler internals from
13598 user documentation.
13600 * reg-notes.def: Remove REG_VALUE_PROFILE.
13601 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13603 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13605 PR middle-end/47610
13606 * varasm.c (default_section_type_flags): If decl is NULL,
13607 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13609 2011-02-05 Jie Zhang <jie@codesourcery.com>
13612 * web.c (entry_register): Don't clobber the number of the
13613 first uninitialized reference in used[].
13615 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13617 PR tree-optimization/46194
13618 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13619 (build_classic_dist_vector_1): Do not represent classic distance
13620 vectors when the access functions are variating in different loops.
13622 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13624 * config/mips/iris6.opt: New.
13625 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13627 2011-02-04 Richard Henderson <rth@redhat.com>
13628 Steve Ellcey <sje@cup.hp.com>
13631 * config/ia64/predicates.md (mux1_brcst_element): New.
13632 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13633 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13634 (ia64_unpack_sign): New.
13635 (ia64_expand_unpack): Rewrite using new routines.
13636 (ia64_expand_widen_sum): Ditto.
13637 (ia64_expand_dot_prod_v8qi): Ditto.
13638 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13639 routines, add endian check.
13640 (pmpy2_even): Rename from pmpy2_r, add endian check.
13641 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13642 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13643 (vec_widen_smult_hi_v4hi): Ditto.
13644 (vec_widen_umult_lo_v4hi): Ditto.
13645 (vec_widen_umult_hi_v4hi): Ditto.
13646 (mulv2si3): Change endian checks.
13647 (sdot_prodv4hi): Rewrite with new calls.
13648 (udot_prodv4hi): New.
13649 (vec_pack_ssat_v4hi): Add endian check.
13650 (vec_pack_usat_v4hi): Ditto.
13651 (vec_pack_ssat_v2si): Ditto.
13652 (max1_even): Rename from max1_r, add endian check.
13653 (max1_odd): Rename from max1_l, add endian check.
13654 (*mux1_rev): Format change.
13655 (*mux1_mix): Ditto.
13656 (*mux1_shuf): Ditto.
13657 (*mux1_alt): Ditto.
13658 (*mux1_brcst_v8qi): Use new predicate.
13659 (vec_extract_evenv8qi): Remove endian check.
13660 (vec_extract_oddv8qi): Ditto.
13661 (vec_interleave_lowv4hi): Format change.
13662 (vec_interleave_highv4hi): Ditto.
13663 (mix2_even): Rename from mix2_r, add endian check.
13664 (mix2_odd): Rename from mux2_l, add endian check.
13665 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13666 (vec_extract_evenodd_helper): Format change.
13667 (vec_extract_evenv4hi): Remove endian check.
13668 (vec_extract_oddv4hi): Remove endian check.
13669 (vec_interleave_lowv2si): Format change.
13670 (vec_interleave_highv2si): Format change.
13671 (vec_initv2si): Remove endian check.
13672 (vecinit_v2si): Add endian check.
13673 (reduc_splus_v2sf): Add endian check.
13674 (reduc_smax_v2sf): Ditto.
13675 (reduc_smin_v2sf): Ditto.
13676 (vec_initv2sf): Remove endian check.
13677 (fpack): Add endian check.
13678 (fswap): Add endian check.
13679 (vec_interleave_highv2sf): Add endian check.
13680 (vec_interleave_lowv2sf): Add endian check.
13681 (fmix_lr): Add endian check.
13682 (vec_setv2sf): Format change.
13683 (*vec_extractv2sf_0_be): Use shift to extract operand.
13684 (*vec_extractv2sf_1_be): New.
13685 (vec_pack_trunc_v4hi): Add endian check.
13686 (vec_pack_trunc_v2si): Format change.
13688 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13690 PR inline-asm/23200
13691 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13692 do bb, locus and block comparison and disallow loads if it is not set.
13693 (stmt_is_replaceable_p): New function.
13694 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13696 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13697 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13699 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13701 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13703 * config/rs6000/xilinx.opt: New.
13704 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13706 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13708 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13710 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13712 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13713 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13714 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13715 secondary_reload_info, xtensa_secondary_reload): Remove.
13716 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13717 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13718 (xtensa_preferred_reload_class): Make static. Change return and
13719 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13720 Use CONST_DOUBLE_P predicate.
13721 (xtensa_preferred_output_reload_class): New function.
13722 (xtensa_secondary_reload): Make static.
13724 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13726 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13727 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13728 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13730 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13732 PR middle-end/31490
13733 * output.h (SECTION_RELRO): Define.
13734 (SECTION_MACH_DEP): Adjust.
13735 (get_variable_section): New prototype.
13736 * varpool.c (varpool_finalize_named_section_flags): New function.
13737 (varpool_assemble_pending_decls): Call it.
13738 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13739 * cgraphunit.c (cgraph_output_in_order): Call
13740 varpool_finalize_named_section_flags.
13741 * varasm.c (get_section): Allow section flags conflicts between
13742 relro and read-only sections if the section hasn't been declared yet.
13743 Set SECTION_OVERRIDE after diagnosing section type conflict.
13744 (get_variable_section): No longer static.
13745 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13746 readonly sections that need relocations.
13747 (decl_readonly_section_1): New function.
13748 (decl_readonly_section): Use it.
13751 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13752 Steve Ellcey <sje@cup.hp.com>
13754 PR middle-end/31490
13755 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13756 if section attribute used.
13758 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13760 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13761 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13762 (darwin_init_sections): Remove assertion.
13764 2011-02-03 Nick Clifton <nickc@redhat.com>
13766 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13768 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13769 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13770 instead of "n" and "pz".
13771 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13774 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13777 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13778 fma, expand FMA_EXPR as fma{,f,l} call.
13781 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13782 copy them into a unsigned char variable and pass address of it to
13783 lto_output_data_stream.
13786 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13787 around backend_init_target and lang_dependent_init_target calls.
13788 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13789 (verify_cgraph_node): Don't call set_cfun here. Use
13790 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13791 Set error_found for incorrectly represented calls to thunks.
13793 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13796 PR rtl-optimization/43494
13797 * rtl.h (for_each_inc_dec_fn): New type.
13798 (for_each_inc_dec): Declare.
13799 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13800 (for_each_inc_dec_find_inc_dec): New fn.
13801 (for_each_inc_dec_find_mem): New fn.
13802 (for_each_inc_dec): New fn.
13803 * dse.c (struct insn_size): Remove.
13804 (replace_inc_dec, replace_inc_dec_mem): Remove.
13805 (emit_inc_dec_insn_before): New fn.
13806 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13807 (canon_address): Pass mem modes to cselib_lookup.
13808 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13809 (cselib_lookup_from_insn): Likewise.
13810 (cselib_subst_to_values): Likewise.
13811 * cselib.c (find_slot_memmode): New var.
13812 (cselib_find_slot): New fn. Use it instead of
13813 htab_find_slot_with_hash everywhere.
13814 (entry_and_rtx_equal_p): Use find_slot_memmode.
13815 (autoinc_split): New fn.
13816 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13817 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13818 Deal with autoinc. Special-case recursion into MEMs.
13819 (cselib_hash_rtx): Likewise.
13820 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13821 address and MEM modes.
13822 (cselib_subst_to_values): Add memmode, pass it on.
13824 (cselib_lookup): Add memmode argument, pass it on.
13825 (cselib_lookup_from_insn): Add memmode.
13826 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13827 (struct cselib_record_autoinc_data): New.
13828 (cselib_record_autoinc_cb): New fn.
13829 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13830 mode to cselib_lookup. Reset autoinced REGs here instead of...
13831 (cselib_process_insn): ... here.
13832 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13834 (add_uses): Likewise, also to cselib_subst_to_values.
13835 (add_stores): Likewise.
13836 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13837 cselib_subst_to_values.
13838 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13839 * gcse.c (do_local_cprop): Adjusted.
13840 * postreload.c (reload_cse_simplify_set): Adjusted.
13841 (reload_cse_simplify_operands): Adjusted.
13842 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13844 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13846 PR tree-optimization/45122
13847 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13848 unsafe assumptions when there's more than one loop exit.
13850 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13853 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13854 Document using vector double with the load/store builtins, and
13855 that the load/store builtins always use Altivec instructions.
13857 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13858 to use altivec memory instructions, even on VSX.
13859 (vector_altivec_store_<mode>): Ditto.
13861 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13864 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13865 V2DF, V2DI support to load/store overloaded builtins.
13867 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13868 altivec load/store builtins for V2DF/V2DI types.
13870 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13871 set avoid indexed addresses on power6 if -maltivec.
13872 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13873 vector_altivec_load/vector_altivec_store builtins.
13874 (altivec_expand_st_builtin): Ditto.
13875 (altivec_expand_builtin): Add VSX memory builtins.
13876 (rs6000_init_builtins): Add V2DI types to internal types.
13877 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13878 load/store builtins.
13879 (rs6000_address_for_altivec): Insure memory address is appropriate
13882 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13883 vec_vsx_ld and vec_vsx_st.
13884 (vsx_store_<mode>): Ditto.
13886 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13887 variables to hold long long types for VSX vector memory builtins.
13888 (RS6000_BTI_unsigned_long_long): Ditto.
13889 (long_long_integer_type_internal_node): Ditti.
13890 (long_long_unsigned_type_internal_node): Ditti.
13892 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13893 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13894 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13896 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13898 (vec_vsx_st): Ditto.
13900 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13902 * config/pa/pa-hpux10.opt: New.
13903 * config/hpux11.opt (pthread): New Driver option.
13904 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13905 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13907 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13909 * config/ia64/vms.opt: New.
13910 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13912 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13915 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13916 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13917 generator functions.
13918 (vsx_floatuns<VSi><mode>2): Ditto.
13919 (vsx_fix_trunc<mode><VSi>2): Ditto.
13920 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13922 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13924 * config/i386/djgpp.opt (posix): New Driver option.
13926 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13928 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13929 Move to the unsupported targets list.
13931 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13933 PR rtl-optimization/47525
13934 * df-scan.c: Update copyright years.
13935 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13936 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13938 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13940 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13941 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13942 (ASM_OUTPUT_ASCII): Remove.
13943 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13945 2011-02-02 Jeff Law <law@redhat.com>
13947 PR middle-end/47543
13948 * reload.c (find_reloads_address): Handle reg+d address where both
13949 components are invalid by reloading the entire address.
13951 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13952 Richard Guenther <rguenther@suse.de>
13954 PR tree-optimization/40979
13956 * passes.c (init_optimization_passes): After LIM call copy_prop
13957 and DCE to clean up.
13958 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13960 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13962 PR tree-optimization/47576
13963 PR tree-optimization/47555
13964 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13965 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13966 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13967 * tree-scalar-evolution.c (follow_ssa_edge): Use
13968 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13970 2011-02-02 Richard Guenther <rguenther@suse.de>
13972 PR tree-optimization/47566
13973 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13975 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13979 * tree-inline.c (declare_return_variable): Remove unused caller
13984 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13985 * cfgexpand.c (account_used_vars_for_block): Use them.
13986 * tree-nrv.c (tree_nrv): Likewise.
13987 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13988 (dump_scope_block): Likewise.
13989 (remove_unused_locals): Likewise.
13993 * tree-inline.c (declare_return_variable): Add result decl to
13994 local decls only once.
13995 * gimple-low.c (record_vars_into): Mark newly-created variables
13998 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14004 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14006 (no_real_insns_p, schedule_block, set_priorities): Drop special
14007 treatment of boundary debug insns.
14008 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14009 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14010 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14011 (BOUNDARY_DEBUG_INSN_P): Likewise.
14012 (SCHEDULE_DEBUG_INSN_P): Likewise.
14013 * sched-rgn.c (init_ready_list): Drop special treatment of
14014 boundary debug insns.
14015 * final.c (rest_of_clean_state): Clear notes' BB.
14017 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14019 * config/openbsd.opt (assert=): New Driver option.
14021 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14023 * config/i386/nto.opt: New.
14024 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14026 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14028 * config/i386/netware.opt: New.
14029 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14031 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14033 * config/interix.opt (posix): New Driver option.
14035 2011-02-01 DJ Delorie <dj@redhat.com>
14037 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14039 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14042 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14044 PR tree-optimization/47561
14045 * toplev.c (process_options): Print the Graphite flags. Add
14046 flag_loop_flatten to the list of options requiring Graphite.
14048 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14050 * config/i386/cygming.opt (posix): New Driver option.
14052 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14054 * config/arm/vxworks.opt: New.
14055 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14057 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14059 * config/alpha/elf.opt: New.
14060 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14061 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14063 2011-02-01 Richard Guenther <rguenther@suse.de>
14065 PR tree-optimization/47559
14066 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14067 store-motion on references that can throw.
14069 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14071 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14072 * tree-pass.h (TDF_CSELIB): New macro.
14073 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14074 cselib_lookup): Check for it rather than for TDF_DETAILS.
14076 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14079 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14080 is HOST_BIT_BUCKET.
14082 * opts.c (finish_options): Don't add x_aux_base_name if it is
14085 2011-02-01 Richard Guenther <rguenther@suse.de>
14087 PR tree-optimization/47555
14089 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14091 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14093 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14096 * config/lm32/t-lm32: Add multilib for all CPU options.
14098 2011-02-01 Richard Guenther <rguenther@suse.de>
14100 PR tree-optimization/47541
14101 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14102 sure to have a field at offset zero.
14104 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14106 * config/arc/arc.opt (EB, EL): New Driver options.
14108 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14110 * config/alpha/osf5.opt: New.
14111 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14113 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14115 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14117 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14119 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14120 -floop-interchange.
14121 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14122 is an alias of -floop-interchange and that it requires the
14123 Graphite infrastructure.
14124 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14125 flag_loop_interchange based on the value of flag_tree_loop_linear.
14127 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14128 Richard Guenther <rguenther@suse.de>
14130 PR tree-optimization/47538
14131 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14132 type instead of r1type, except for comparisons. For right
14133 shifts and comparisons punt if there are mismatches in
14134 sizetype vs. non-sizetype types.
14136 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14138 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14141 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14143 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14145 * configure: Regenerate.
14147 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14149 * configure.ac (gcc_cv_ld_static_option): Define.
14150 (gcc_cv_ld_dynamic_option): Define.
14151 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14153 (HAVE_LD_STATIC_DYNAMIC): Update message.
14154 (LD_STATIC_OPTION): Define.
14155 (LD_DYNAMIC_OPTION): Define.
14156 * configure: Regenerate.
14157 * config.in: Regenerate.
14158 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14159 HAVE_LD_STATIC_DYNAMIC]: Use them.
14161 2011-01-31 Nick Clifton <nickc@redhat.com>
14163 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14164 registers inside interrupt handlers if the handler is not a leaf
14167 2011-01-31 Nick Clifton <nickc@redhat.com>
14169 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14170 reg_renumber returning an INVALID_REGNUM.
14172 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14175 * doc/install.texi: Document host options discarded when cross
14176 configuring target libraries.
14178 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14181 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14184 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14186 (no_real_insns_p, schedule_block, set_priorities): Drop special
14187 treatment of boundary debug insns.
14188 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14189 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14190 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14191 (BOUNDARY_DEBUG_INSN_P): Likewise.
14192 (SCHEDULE_DEBUG_INSN_P): Likewise.
14193 * sched-rgn.c (init_ready_list): Drop special treatment of
14194 boundary debug insns.
14195 * final.c (rest_of_clean-state): Clear notes' BB.
14197 2011-01-31 Alan Modra <amodra@gmail.com>
14199 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14200 toc relative expressions as we do in print_operand_address.
14202 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14204 * doc/extend.texi: Follow spelling conventions.
14205 * doc/invoke.texi: Fix a typo.
14207 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14209 * config/hpux11.opt: New.
14210 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14211 ia64*-*-hpux*): Use hpux11.opt.
14213 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14215 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14218 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14220 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14223 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14225 * doc/install.texi (Binaries): Remove outdated reference for
14226 Motorola 68HC11/68HC12 downloads.
14228 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14230 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14233 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14236 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14239 2011-01-28 Ahmad Sharif <asharif@google.com>
14241 * value-prof.c (check_counter): Corrected error message.
14243 2011-01-29 Jie Zhang <jie@codesourcery.com>
14245 * config/arm/arm.c (arm_legitimize_reload_address): New.
14246 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14247 arm_legitimize_reload_address.
14248 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14250 2011-01-28 Ian Lance Taylor <iant@google.com>
14252 * godump.c (go_define): Ignore macros whose definitions include
14253 two adjacent operands.
14255 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14258 * varasm.c (force_const_mem): Store copy of x in desc->constant
14259 instead of x itself.
14260 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14261 itself into REG_EQUAL note.
14263 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14265 * config/freebsd.opt (posix, rdynamic): New Driver options.
14267 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14269 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14270 -Bstatic/-Bdynamic.
14271 * configure: Regenerate.
14273 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14275 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14276 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14278 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14280 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14281 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14282 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14283 (s390_preferred_reload_class): Make static. Change return and
14284 'rclass' argument type to reg_class_t.
14286 2011-01-27 Jan Hubicka <jh@suse.cz>
14288 PR middle-end/46949
14289 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14290 (process_function_and_variable_attributes): Check defined weakrefs.
14292 2011-01-27 Martin Jambor <mjambor@suse.cz>
14294 PR tree-optimization/47228
14295 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14296 build_ref_for_offset.
14298 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14300 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14302 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14304 PR rtl-optimization/46856
14305 * postreload.c (reload_combine_recognize_const_pattern): Do not
14306 separate cc0 setter and user on cc0 targets.
14308 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14311 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14312 passed a VOID_TYPE expression, immediately emit an error and
14313 return error_mark_node.
14315 2011-01-26 Jeff Law <law@redhat.com>
14317 PR rtl-optimization/47464
14318 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14319 rather than may_trap_p as needed.
14321 2011-01-26 DJ Delorie <dj@redhat.com>
14323 PR rtl-optimization/46878
14324 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14325 setter/user dependency as well.
14327 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14329 PR rtl-optimization/44469
14330 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14331 after removing trivially dead basic blocks.
14333 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14335 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14336 * config/frv/frv.h (LINK_SPEC): Likewise.
14337 * config/i386/netware.h (LINK_SPEC): Likewise.
14338 * config/m68k/linux.h (ASM_SPEC): Likewise.
14339 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14340 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14341 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14342 * config/sparc/linux.h (ASM_SPEC): Likewise.
14343 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14344 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14346 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14348 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14349 * config/frv/frv.h (ASM_SPEC): Likewise.
14350 * config/m68k/linux.h (ASM_SPEC): Likewise.
14351 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14352 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14353 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14354 * config/sparc/linux.h (ASM_SPEC): Likewise.
14355 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14356 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14358 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14360 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14361 * config/frv/frv.h (LINK_SPEC): Likewise.
14362 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14364 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14366 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14367 * config/frv/frv.h (ASM_SPEC): Likewise.
14368 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14369 * config/m68k/linux.h (ASM_SPEC): Likewise.
14370 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14371 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14372 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14373 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14374 * config/sparc/linux.h (ASM_SPEC): Likewise.
14375 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14376 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14377 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14379 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14382 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14384 (vec_extract_evenodd_help): Ditto.
14385 (vec_extract_evenv4hi): Ditto.
14386 (vec_extract_oddv4hi): Ditto.
14387 (vec_interleave_lowv2si): Ditto.
14388 (vec_interleave_highv2si): Ditto.
14389 (vec_extract_evenv2si): Ditto.
14390 (vec_extract_oddv2si: Ditto.
14391 (vec_pack_trunc_v2si): Ditto.
14393 2011-01-22 Jan Hubicka <jh@suse.cz>
14396 * cgraph.h (cgraph_local_info): New field can_change_signature.
14397 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14398 signature can change.
14399 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14401 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14402 (cgraph_function_versioning): We can not change signature of functions
14403 that don't allow that.
14404 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14405 (lto_input_node): Likewise.
14406 * ipa-inline.c (compute_inline_parameters): Compute
14407 local.can_change_signature.
14408 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14409 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14410 functions that can not change signature.
14411 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14412 init_cumulative_args): Do not use local calling conventions
14413 for functions that can not change signature.
14415 2011-01-22 Jan Hubicka <jh@suse.cz>
14417 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14419 2011-01-26 Richard Guenther <rguenther@suse.de>
14421 PR tree-optimization/47190
14422 * cgraphunit.c (process_common_attributes): New function.
14423 (process_function_and_variable_attributes): Use it.
14425 2011-01-26 Richard Guenther <rguenther@suse.de>
14428 * cgraphbuild.c (record_eh_tables): Record reference to personality
14431 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14434 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14435 non-debug insns from moving up.
14437 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14440 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14441 t-dlldir{,-x} fragment for build and add it to tmake_file.
14442 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14443 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14444 * config/i386/t-dlldir: New file.
14445 (SHLIB_DLLDIR): Define.
14446 * config/i386/t-dlldir-x: New file.
14447 (SHLIB_DLLDIR): Define.
14448 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14449 (SHLIB_INSTALL): Use it.
14451 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14454 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14455 lower bound of the allowed Thumb-2 coprocessor load/store
14456 index range to -256. Add explaining comment.
14458 2011-01-25 Ian Lance Taylor <iant@google.com>
14460 * godump.c (go_define): Improve lexing of macro expansion to only
14461 accept expressions which match Go spec.
14463 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14466 * tree.c (handle_dll_attribute): Handle it.
14467 * doc/extend.texi (@item dllexport): Mention it.
14468 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14470 2011-01-25 Ian Lance Taylor <iant@google.com>
14472 PR tree-optimization/26854
14473 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14474 (decl_jump_unsafe): Move higher in file, with no other change.
14475 (bind): Set has_jump_unsafe_decl if appropriate.
14476 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14477 (check_earlier_gotos): Likewise.
14478 (c_check_switch_jump_warnings): Likewise.
14480 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14482 * doc/invoke.texi (Warning Options): Add missing hyphen.
14483 (-fprofile-dir): Minor grammatical fixes.
14484 (-fbranch-probabilities): Likewise.
14486 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14490 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14492 (no_real_insns_p, schedule_block, set_priorities): Drop special
14493 treatment of boundary debug insns.
14494 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14495 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14496 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14497 (BOUNDARY_DEBUG_INSN_P): Likewise.
14498 (SCHEDULE_DEBUG_INSN_P): Likewise.
14499 * sched-rgn.c (init_ready_list): Drop special treatment of
14500 boundary debug insns.
14501 * final.c (rest_of_clean-state): Clear notes' BB.
14503 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14505 * Makefile.in (LAMBDA_H): Removed.
14506 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14507 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14508 lambda-trans.o, and tree-loop-linear.o.
14509 (lto-symtab.o): Remove dependence on LAMBDA_H.
14510 (tree-loop-linear.o): Remove rule.
14511 (lambda-mat.o): Same.
14512 (lambda-trans.o): Same.
14513 (lambda-code.o): Same.
14514 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14515 (tree-vect-slp.o): Same.
14516 * hwint.h (gcd): Moved here.
14517 (least_common_multiple): Same.
14518 * lambda-code.c: Removed.
14519 * lambda-mat.c: Removed.
14520 * lambda-trans.c: Removed.
14521 * lambda.h: Removed.
14522 * tree-loop-linear.c: Removed.
14523 * lto-symtab.c: Do not include lambda.h.
14524 * omega.c (gcd): Removed.
14525 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14526 * tree-data-ref.c (print_lambda_vector): Moved here.
14527 (lambda_vector_copy): Same.
14528 (lambda_matrix_copy): Same.
14529 (lambda_matrix_id): Same.
14530 (lambda_vector_first_nz): Same.
14531 (lambda_matrix_row_add): Same.
14532 (lambda_matrix_row_exchange): Same.
14533 (lambda_vector_mult_const): Same.
14534 (lambda_vector_negate): Same.
14535 (lambda_matrix_row_negate): Same.
14536 (lambda_vector_equal): Same.
14537 (lambda_matrix_right_hermite): Same.
14538 * tree-data-ref.h: Do not include lambda.h.
14539 (lambda_vector): Moved here.
14540 (lambda_matrix): Same.
14541 (dependence_level): Same.
14542 (lambda_transform_legal_p): Removed declaration.
14543 (lambda_collect_parameters): Same.
14544 (lambda_compute_access_matrices): Same.
14545 (lambda_vector_gcd): Same.
14546 (lambda_vector_new): Same.
14547 (lambda_vector_clear): Same.
14548 (lambda_vector_lexico_pos): Same.
14549 (lambda_vector_zerop): Same.
14550 (lambda_matrix_new): Same.
14551 * tree-flow.h (least_common_multiple): Removed declaration.
14552 * tree-parloops.c (lambda_trans_matrix): Moved here.
14553 (LTM_MATRIX): Same.
14554 (LTM_ROWSIZE): Same.
14555 (LTM_COLSIZE): Same.
14556 (LTM_DENOMINATOR): Same.
14557 (lambda_trans_matrix_new): Same.
14558 (lambda_matrix_vector_mult): Same.
14559 (lambda_transform_legal_p): Same.
14560 * tree-pass.h (pass_linear_transform): Removed declaration.
14561 * tree-ssa-loop.c (tree_linear_transform): Removed.
14562 (gate_tree_linear_transform): Removed.
14563 (pass_linear_transform): Removed.
14564 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14565 flag_loop_interchange.
14567 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14569 PR tree-optimization/47265
14570 PR tree-optimization/47443
14571 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14572 if name still has some uses.
14574 2011-01-25 Martin Jambor <mjambor@suse.cz>
14576 PR tree-optimization/47382
14577 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14578 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14580 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14582 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14583 sjlj_except_unwind_info.
14585 2011-01-25 Richard Guenther <rguenther@suse.de>
14587 PR tree-optimization/47426
14588 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14589 visible functions results escape.
14591 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14594 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14595 (arm_get_frame_offsets): Use it.
14597 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14598 Jakub Jelinek <jakub@redhat.com>
14600 PR tree-optimization/47271
14601 * tree-if-conv.c (bb_postdominates_preds): New.
14602 (if_convertible_bb_p): Call bb_postdominates_preds.
14603 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14604 (predicate_scalar_phi): Call bb_postdominates_preds.
14606 2011-01-25 Nick Clifton <nickc@redhat.com>
14608 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14609 * config/rx/rx.c (rx_function_value): Likewise.
14610 (rx_promote_function_mode): Likewise.
14611 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14612 in order to make it legitimate.
14613 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14614 make sure that the first operand is the same as the result register.
14615 (addsi3_unspec): Delete.
14616 (subdi3): Do not accept immediate operands.
14617 (subdi3_internal): Likewise.
14619 2011-01-25 Jeff Law <law@redhat.com>
14621 PR rtl-optimization/37273
14622 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14623 handle them like argument loads from stack slots. Do not double
14624 count memory for memory constants and argument loads from stack slots.
14626 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14628 PR tree-optimization/47427
14629 PR tree-optimization/47428
14630 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14631 coalesce if the new root var would be TREE_READONLY.
14633 2011-01-25 Richard Guenther <rguenther@suse.de>
14635 PR middle-end/47414
14636 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14637 correct type for TBAA.
14639 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14641 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14642 (close_phi_written_to_memory): Call for_each_index with
14643 dr_indices_valid_in_loop.
14645 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14647 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14648 when it is initialized.
14650 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14652 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14653 call to graphite_find_data_references_in_stmt.
14654 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14655 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14656 call to graphite_find_data_references_in_stmt.
14657 (analyze_drs_in_stmts): Same.
14658 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14659 in which the scalar analysis of indices is performed.
14660 (create_data_ref): Same. Update call to dr_analyze_indices.
14661 (find_data_references_in_stmt): Update call to create_data_ref.
14662 (graphite_find_data_references_in_stmt): Same.
14663 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14665 (create_data_ref): Same.
14666 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14667 call to create_data_ref.
14669 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14671 * graphite-sese-to-poly.c (build_poly_scop): Move
14672 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14674 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14676 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14677 VAR_DECL, PARM_DECL, and RESULT_DECL.
14679 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14681 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14682 in a reduction PBB.
14683 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14684 that have already been marked as PBB_IS_REDUCTION.
14686 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14688 * graphite-scop-detection.c (same_close_phi_node): New.
14689 (remove_duplicate_close_phi): New.
14690 (make_close_phi_nodes_unique): New.
14691 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14693 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14695 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14696 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14697 of both data references to be the same.
14699 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14701 * graphite-dependences.c (build_lexicographical_constraint): Remove
14702 the gdim parameter.
14703 (build_lexicographical_constraint): Adjust call to
14704 ppl_powerset_is_empty.
14705 (dependence_polyhedron): Same.
14706 (graphite_legal_transform_dr): Same.
14707 (graphite_carried_dependence_level_k): Same.
14708 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14710 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14712 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14714 * graphite-sese-to-poly.c
14715 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14716 (close_phi_written_to_memory): New.
14717 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14720 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14722 * doc/install.texi: Update the expected version number of PPL to 0.11.
14723 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14724 #if PPL_VERSION_MINOR < 11.
14726 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14728 * graphite-dependences.c: Include graphite-cloog-util.h.
14729 (new_poly_ddr): Inlined into dependence_polyhedron.
14730 (free_poly_ddr): Moved close by new_poly_ddr.
14731 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14732 Early return NULL when ppl_powerset_is_empty returns true.
14733 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14734 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14735 (graphite_legal_transform_dr): Call new_poly_ddr.
14736 (graphite_carried_dependence_level_k): Same.
14737 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14738 (dot_transformed_deps_stmt_1): Removed.
14739 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14740 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14741 (dot_deps_1): Call dot_deps_2.
14742 * Makefile.in (graphite-dependences.o): Add missing dependence on
14743 graphite-cloog-util.h.
14745 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14747 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14748 (build_lexicographical_constraint): Same.
14749 (dependence_polyhedron_1): Same.
14750 (graphite_legal_transform_dr): Same.
14751 (graphite_carried_dependence_level_k): Same.
14752 * graphite-ppl.c (ppl_powerset_is_empty): New.
14753 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14754 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14756 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14758 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14759 the "a followed by b" relation and document it.
14761 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14763 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14764 iteration when the bag of constraints is empty.
14766 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14768 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14770 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14772 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14773 nest and two loop depths as parameters.
14774 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14775 lst_perfect_nestify.
14777 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14779 * graphite-dependences.c (print_pddr): Call
14780 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14782 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14784 * graphite-ppl.c (debug_gmp_value): New.
14785 * graphite-ppl.h (debug_gmp_value): Declared.
14787 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14789 * doc/install.texi: Document availability of cloog-0.16.
14791 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14793 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14794 invalid postdominance info.
14796 2011-01-24 Jan Hubicka <jh@suse.cz>
14799 * doc/extend.texi (weak pragma): Drop claim that it must
14800 appear before definition.
14801 * varasm.c (merge_weak, declare_weak): Only sanity check
14802 that DECL is not output at a time it is declared weak.
14804 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14806 * machmode.def: Fixed comments.
14808 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14810 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14812 2011-01-24 Paul Koning <ni1d@arrl.net>
14814 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14817 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14820 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14821 (block_info): Add scanned and prev.
14822 (move_or_delete_vzeroupper_2): Return if the basic block
14823 has been scanned and the upper 128bit state is unchanged
14824 from the last scan.
14825 (move_or_delete_vzeroupper_1): Return true if the exit
14827 (move_or_delete_vzeroupper): Visit basic blocks using the
14828 work-list based algorithm based on vt_find_locations in
14831 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14833 2011-01-24 Nick Clifton <nickc@redhat.com>
14835 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14836 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14837 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14838 then define __v850e1__.
14839 * doc/invoke.texi: Document -mv850es.
14841 2011-01-24 Richard Henderson <rth@redhat.com>
14843 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14844 compound unordered comparisons.
14845 * config/rx/rx.c (rx_split_fp_compare): Remove.
14846 * config/rx/rx-protos.h: Update.
14847 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14848 (cbranchsf4): Don't call rx_split_fp_compare.
14849 (*cbranchsf4): Use rx_split_cbranch.
14850 (*cmpsf): Don't accept "i" constraint.
14851 (*conditional_branch): Only valid after reload.
14852 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14854 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14857 * config/rs6000/altivec.md (vector constant splitters): Add
14858 support for creating vector single precision constants if -mvsx is
14859 used and we would create the constant using Altivec primitives.
14861 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14862 Richard Sandiford <rdsandiford@googlemail.com>
14864 PR rtl-optimization/47166
14865 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14866 mechanism for PRE_MODIFY and POST_MODIFY.
14867 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14870 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14872 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14874 2011-01-22 Jan Hubicka <jh@suse.cz>
14877 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14879 2011-01-22 Jan Hubicka <jh@suse.cz>
14881 PR tree-optimization/43884
14883 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14884 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14886 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14888 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14889 * config/s390/s390.c (s390_register_move_cost,
14890 s390_memory_move_cost): New.
14891 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14893 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14895 PR middle-end/47401
14896 * except.c (sjlj_assign_call_site_values): Move setting the
14897 crtl->uses_eh_lsda flag to ...
14898 (sjlj_mark_call_sites): ... here.
14899 (sjlj_emit_function_enter): Support NULL dispatch label.
14900 (sjlj_build_landing_pads): In a function with no landing pads
14901 that still has must-not-throw regions, generate code to register
14902 a personality function with empty LSDA.
14904 2011-01-21 Richard Henderson <rth@redhat.com>
14906 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14908 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14910 * compare-elim.c: New file.
14911 * Makefile.in (OBJS-common): Add it.
14912 (compare-elim.o): New.
14913 * common.opt (fcompare-elim): New.
14914 * opts.c (default_options_table): Add OPT_fcompare_elim.
14915 * tree-pass.h (pass_compare_elim_after_reload): New.
14916 * passes.c (init_optimization_passes): Add it.
14917 * recog.h: Protect against re-inclusion.
14918 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14919 * doc/invoke.texi (-fcompare-elim): Document it.
14920 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14921 * doc/tm.texi: Rebuild.
14923 2011-01-22 Nick Clifton <nickc@redhat.com>
14925 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14926 rx_split_fp_compare.
14928 2011-01-22 Nick Clifton <nickc@redhat.com>
14930 * config/rx/rx.md (UNSPEC_CONST): New.
14931 (deallocate_and_return): Wrap the amount popped off the stack in
14932 an UNSPEC_CONST in order to stop it being rejected by
14933 -mmax-constant-size.
14934 (pop_and_return): Add a "(return)" rtx.
14935 (call): Drop the immediate operand.
14936 (call_internal): Likewise.
14937 (call_value): Likewise.
14938 (call_value_internal): Likewise.
14939 (sibcall_internal): Likewise.
14940 (sibcall_value_internal): Likewise.
14941 (sibcall): Likewise. Generate an explicit call using
14943 (sibcall_value): Likewise.
14944 (mov<>): FAIL if a constant operand is not legitimate.
14945 (addsi3_unpsec): New pattern.
14947 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14948 (ok_for_max_constant): New function.
14949 (gen_safe_add): New function.
14950 (rx_expand_prologue): Use gen_safe_add.
14951 (rx_expand_epilogue): Likewise.
14952 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14955 2011-01-21 Jeff Law <law@redhat.com>
14957 PR tree-optimization/47053
14958 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14959 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14960 statements are deleted.
14961 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14962 is nonempty, then purge dead edges and cleanup the CFG.
14964 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14967 Temporarily revert:
14968 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14970 * tree-dfa.c (create_var_ann): Mark variable as used.
14972 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14974 PR middle-end/45566
14975 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14976 notes from other section in hot/cold partitioning even if
14977 last_action is -3. Increment call_site_base.
14979 PR rtl-optimization/47366
14980 * fwprop.c (forward_propagate_into): Return bool. If
14981 any changes are made, -fnon-call-exceptions is used and
14982 REG_EH_REGION note is present, call purge_dead_edges
14983 and return true if it purged anything.
14984 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14985 any EH edges were purged.
14987 2011-01-21 Jeff Law <law@redhat.com>
14989 PR rtl-optimization/41619
14990 * caller-save.c (setup_save_areas): Break out code to determine
14991 which hard regs are live across calls by examining the reload chains
14992 so that it is always used.
14993 Eliminate code which checked REG_N_CALLS_CROSSED.
14995 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14997 PR tree-optimization/47355
14998 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14999 NOP has non-debug uses beyond PHIs in new_bb.
15001 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15004 * cfgexpand.c (account_used_vars_for_block): Only account vars
15005 that are annotated as used.
15006 (estimated_stack_frame_size): Don't set TREE_USED.
15007 * tree-dfa.c (create_var_ann): Mark variable as used.
15009 2011-01-21 Richard Guenther <rguenther@suse.de>
15011 PR middle-end/47395
15012 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15014 2011-01-21 Richard Guenther <rguenther@suse.de>
15016 PR tree-optimization/47365
15017 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15018 (vn_reference_lookup_pieces): Adjust.
15019 (vn_reference_lookup): Likewise.
15020 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15021 (vn_reference_lookup_3): Only look through kills if in
15022 VN_WALKREWRITE mode.
15023 (vn_reference_lookup_pieces): Adjust.
15024 (vn_reference_lookup): Likewise.
15025 (visit_reference_op_load): Likewise.
15026 (visit_reference_op_store): Likewise.
15027 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15028 (compute_avail): Likewise.
15029 (eliminate): Likewise.
15031 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15033 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15034 DECL_IGNORED_P non-reg vars if they are used.
15036 PR tree-optimization/47391
15037 * varpool.c (const_value_known_p): Return false if
15040 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15043 * config/i386/i386.c (ix86_local_alignment): Handle
15044 case for va_list_type_node is nil.
15045 (ix86_canonical_va_list_type): Likewise.
15047 2011-01-21 Alan Modra <amodra@gmail.com>
15049 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15050 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15052 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15054 * config/arm/arm.md (define_attr type): Rename f_load
15055 and f_store to f_fpa_load and f_fpa_store. Update.
15056 (write_conflict): Deal with rename fallout.
15057 (*push_fp_multi): Likewise.
15058 * config/arm/fpa.md (f_load): Use f_fpa_load.
15059 (f_store): Use f_fpa_store.
15060 (*movsf_fpa): Likewise.
15061 (*movdf_fpa): Likewise.
15062 (*movxf_fpa): Likewise.
15063 (*thumb2_movsf_fpa): Likewise.
15064 (*thumb2_movdf_fpa): Likewise.
15065 (*thumb2_movxf_fpa): Likewise.
15066 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15067 f_loadd and f_stored.
15068 (*thumb2_movdi_vfp): Likewise.
15069 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15070 (*thumb2_movsi_vfp): Likewise.
15071 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15072 Use f_loads instead of f_load.
15073 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15075 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15077 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15078 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15079 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15080 (xtensa_mode_dependent_address_p): New function.
15081 (constantpool_address_p): Make static. Change return type to bool.
15082 Change argument type to const_rtx. Use CONST_INT_P predicate.
15084 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15087 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15089 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15092 * cfgexpand.c (expand_debug_expr): Instead of generating
15093 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15096 2011-01-20 Richard Guenther <rguenther@suse.de>
15098 PR middle-end/47370
15099 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15100 the pointer operand of MEM_REFs.
15102 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15104 PR tree-optimization/46130
15105 * ipa-split.c (consider_split): If return_bb contains non-virtual
15106 PHIs other than for retval or if split_function would not adjust it,
15109 2011-01-20 Richard Guenther <rguenther@suse.de>
15111 PR tree-optimization/47167
15112 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15113 Revert previous change, only avoid enumeral type changes.
15115 2011-01-19 Mike Stump <mikestump@comcast.net>
15117 * doc/tm.texi.in (BRANCH_COST): Englishify.
15118 * doc/tm.texi (BRANCH_COST): Likewise.
15120 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15123 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15124 (gen_scheduled_generic_parms_dies): New functions.
15125 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15126 generation for the end of CU compilation.
15127 (dwarf2out_finish): Generate template parameters DIEs here.
15129 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15132 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15133 debug bind stmt on merge edges.
15135 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15139 * function.c (instantiate_expr): Instantiate incoming rtl of
15140 implicit arguments, and recurse on VALUE_EXPRs.
15141 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15142 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15144 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15146 * c-parser.c (c_parser_for_statement): Initialize
15147 collection_expression.
15149 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15151 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15153 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15155 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15156 (LINK_SHLIB_SPEC): Don't use %(link_path).
15157 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15159 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15161 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15162 (NO_SHARED_LIB_SUPPORT): Remove.
15163 (LINK_SHLIB_SPEC): Remove one conditional definition.
15165 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15167 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15169 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15170 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15171 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15172 %{call_shared} and conditionals on these options not being passed.
15173 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15176 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15178 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15181 * ipa-split.c: Spelling fixes.
15183 2011-01-19 Richard Henderson <rth@redhat.com>
15185 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15186 (*mulsi3): Likewise.
15188 * longlong.h [__mn10300__] (count_leading_zeros): New.
15189 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15190 [__mn10300__] (add_ssaaaa, subddmmss): New.
15191 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15192 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15194 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15196 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15198 2011-01-19 Richard Henderson <rth@redhat.com>
15200 * config/mn10300/mn10300.md (addsi3_flags): New.
15201 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15202 (subsi3_flags, subc_internal, subdi3): New.
15203 (subdi3_internal, *subdi3_degenerate): New.
15204 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15206 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15207 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15208 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15209 * config/mn10300/mn10300-protos.h: Update.
15210 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15211 (return_ret): Likewise. Rename from return_internal_regs.
15212 (return_internal): Remove.
15214 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15215 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15216 (mn10300_legitimate_constant_p): Likewise.
15217 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15218 (mn10300_frame_size): New.
15219 (mn10300_expand_prologue): Use it.
15220 (mn10300_expand_epilogue): Likewise.
15221 (mn10300_initial_offset): Likewise.
15222 * config/mn10300/mn10300-protos.h: Update.
15223 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15224 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15225 (prologue, epilogue, return_internal): Tidy output code.
15226 (mn10300_store_multiple_operation, return): Likewise.
15227 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15228 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15229 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15230 (load_pic, am33_load_pic): New.
15231 (mn10300_load_pic0, mn10300_load_pic1): New.
15233 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15234 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15235 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15236 (cc_flags_for_mode, cc_flags_for_code): New.
15237 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15238 overflow flag is not valid. Validate that the flags we need
15239 for the comparison are valid.
15240 (mn10300_output_cmp): Remove.
15241 (mn10300_output_add): New.
15242 (mn10300_select_cc_mode): Use cc_flags_for_code.
15243 (mn10300_split_cbranch): New.
15244 (mn10300_match_ccmode): New.
15245 (mn10300_split_and_operand_count): New.
15246 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15248 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15249 (addsi3): ... here. Use mn10300_output_add.
15250 (*addsi3_flags): New.
15251 (*am33_subsi3, *mn10300_subsi3): Merge...
15252 (subsi3): ... here. Use attribute isa.
15253 (*subsi3_flags): New.
15254 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15256 (*am33_andsi3, *mn10300_andsi3): Merge...
15257 (andsi3): ... here.
15258 (*andsi3_flags): New.
15259 (andsi3 splitters): New.
15260 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15261 (iorsi3): ... here.
15262 (*iorsi3_flags): New.
15263 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15264 (xorsi3): ... here.
15265 (*xorsi3_flags): New.
15266 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15267 (one_cmplsi2): ... here.
15268 (*one_cmplsi2_flags): New.
15269 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15270 instead of "dax" in constraints. Use mn10300_split_cbranch.
15271 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15272 use matching constraints to eliminate a self-comparison.
15273 (*integer_conditional_branch): Rename from integer_conditional_branch.
15274 Use int_mode_flags to match CC_REG.
15275 (*cbranchsi4_btst, *btstsi): New.
15276 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15277 mn10300_split_cbranch.
15278 (*am33_cmpsf): Rename from am33_cmpsf.
15279 (*float_conditional_branch): Rename from float_conditional_branch.
15280 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15281 (zero_extendqisi2): ... here.
15282 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15283 (zero_extendhisi2): ... here.
15284 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15285 (extendqisi2): ... here.
15286 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15287 (extendhisi2): ... here.
15288 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15289 (ashlsi3): ... here.
15290 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15291 (lshrsi3): ... here.
15292 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15293 (ashrsi3): ... here.
15294 (consecutive add peephole): Remove.
15295 * config/mn10300/predicates.md (label_ref_operand): New.
15296 (int_mode_flags): New.
15297 (CCZN_comparison_operator): New.
15299 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15300 (throughput_42_latency_43): New reservation.
15301 (mulsidi3, umulsidi3): New expanders.
15302 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15303 the MDR register to allocation; separately allocate the low and
15304 high parts of the DImode result.
15305 (umulsidi3_internal): Similarly.
15306 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15307 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15308 (udivsi3, umodsi3): Remove.
15309 (udivmodsi4, divmodsi4): New expanders.
15310 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15311 (*divmodsi4): Simiarly.
15312 (ext_internal): New.
15314 * config/mn10300/constraints.md ("z"): New constraint.
15315 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15316 (FIXED_REGISTERS): Don't fix MDR.
15317 (CALL_USED_REGSITERS): Reformat nicely.
15318 (REG_ALLOC_ORDER): Add MDR.
15319 (enum regclass): Add MDR_REGS.
15320 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15321 (IRA_COVER_CLASSES): Add MDR_REGS.
15322 (REGNO_REG_CLASS): Handle MDR_REG.
15323 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15324 (mn10300_register_move_cost): Likewise.
15325 * config/mn10300/mn10300.md (MDR_REG): New.
15326 (*movsi_internal): Handle moves to/from MDR_REGS.
15328 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15330 (mn10300_secondary_reload): Tidy combination reload classes.
15331 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15332 addresses for AM33. Allow symbolic offsets for reg+imm.
15333 (mn10300_regno_in_class_p): New.
15334 (mn10300_legitimize_reload_address): New.
15335 * config/mn10300/mn10300.h (enum reg_class): Remove
15336 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15337 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15338 SP_OR_GENERAL_REGS.
15339 (REG_CLASS_NAMES): Update to match.
15340 (REG_CLASS_CONTENTS): Likewise.
15341 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15342 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15343 (REGNO_IN_RANGE_P): Remove.
15344 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15345 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15346 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15347 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15348 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15349 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15350 (REGNO_GENERAL_P): New.
15351 (HAVE_POST_MODIFY_DISP): New.
15352 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15353 (LEGITIMIZE_RELOAD_ADDRESS): New.
15354 * config/mn10300/mn10300-protos.h: Update.
15356 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15357 DATA_REGS for AM33 stack-pointer destination.
15358 (mn10300_preferred_output_reload_class): Likewise.
15359 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15360 into a form appropriate for ...
15361 (TARGET_SECONDARY_RELOAD): New.
15362 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15363 * config/mn10300/mn10300-protos.h: Update.
15364 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15365 reload_insi; use the "A" constraint for the scratch; handle AM33
15366 moves of sp to non-address registers.
15368 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15369 (*movqi_internal): ... here.
15370 (*am33_movhi, *mn10300_movhi): Merge into...
15371 (*movhi_internal): ... here.
15372 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15373 as the source/destination of moves from/to SP.
15374 (movsf): Only allow for AM33-2.
15375 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15376 any integer constant constraint. Only allow for AM33-2. Tidy
15377 all of the alternative outputs.
15378 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15379 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15381 (udivsi3, umodsi3): New patterns for MN103 only.
15383 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15385 * doc/tm.texi.in: Spell out that a lack of register class unions
15387 * doc/tm.texi: Regenerate.
15389 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15391 PR rtl-optimization/47337
15392 * dce.c (check_argument_store): New function.
15393 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15395 PR tree-optimization/47290
15396 * tree-eh.c (infinite_empty_loop_p): New function.
15397 (cleanup_empty_eh): Use it.
15399 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15402 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15403 (a64_expand_widen_sum): Ditto.
15404 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15405 (vec_extract_evenodd_help): Ditto.
15406 (vec_extract_evenv4hi): Ditto.
15407 (vec_extract_oddv4hi): Ditto.
15408 (vec_extract_evenv2si): Ditto.
15409 (vec_extract_oddv2si): Ditto.
15410 (vec_extract_evenv2sf): Ditto.
15411 (vec_extract_oddv2sf): Ditto.
15412 (vec_pack_trunc_v4hi: Ditto.
15413 (vec_pack_trunc_v2si): Ditto.
15414 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15415 (vec_interleave_highv8qi): Ditto.
15417 (vec_extract_oddv8qi): Ditto.
15418 (vec_interleave_lowv4hi): Ditto.
15419 (vec_interleave_highv4hi): Ditto.
15420 (vec_interleave_lowv2si): Ditto.
15421 (vec_interleave_highv2si): Ditto.
15423 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15425 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15426 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15427 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15428 (pa_c_mode_for_suffix): New.
15429 (TARGET_EXPAND_BUILTIN): Define.
15430 (TARGET_C_MODE_FOR_SUFFIX): Define.
15431 (pa_builtins): Define.
15432 (pa_init_builtins): Register __float128 type and init new support
15434 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15435 * config/pa/quadlib.c (_U_Qfcopysign): New.
15437 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15439 PR middle-end/46894
15440 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15441 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15444 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15446 PR tree-optimization/47179
15447 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15448 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15450 2011-01-18 Richard Guenther <rguenther@suse.de>
15452 PR rtl-optimization/47216
15453 * emit-rtl.c: Include tree-flow.h.
15454 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15455 of replicating it with different semantics.
15456 * Makefile.in (emit-rtl.o): Adjust.
15458 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15460 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15461 (cortex_a9_dp): Handle neon types correctly.
15463 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15465 PR rtl-optimization/47299
15466 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15467 subtarget. Use normal multiplication if both operands are constants.
15468 * expmed.c (expand_widening_mult): Don't try to optimize constant
15469 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15472 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15474 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15475 spacing after 'e.g.', typos, comma, hyphenation.
15477 2011-01-17 Richard Henderson <rth@redhat.com>
15479 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15480 (rx_restricted_mem_operand): New.
15481 (rx_shift_operand): Use register_operand.
15482 (rx_source_operand, rx_compare_operand): Likewise.
15483 * config/rx/rx.md (addsi3_flags): New expander.
15484 (adddi3): Rewrite as expander.
15485 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15486 (subsi3_flags): New expander.
15487 (subdi3): Rewrite as expander.
15488 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15490 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15491 (rx_init_builtins): Remove sat builtin.
15492 (rx_expand_builtin): Likewise.
15493 * config/rx/rx.md (ssaddsi3): New.
15494 (*sat): Rename from sat. Represent the CC_REG input.
15496 * config/rx/predicates.md (rshift_operator): New.
15497 * config/rx/rx.c (rx_expand_insv): Remove.
15498 * config/rx/rx-protos.h: Update.
15499 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15500 operand to the canonical position.
15501 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15502 (*bitclr, *bitclr_in_memory): Similarly.
15503 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15504 (insv): Retain the zero_extract in the expansion.
15506 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15507 (bswaphi2, bitinvert, revw): Likewise.
15509 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15510 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15511 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15512 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15513 (bitset, bitset_in_memory): Likewise.
15514 (bitinvert, bitinvert_in_memory): Likewise.
15515 (bitclr, bitclr_in_memory): Likewise.
15516 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15517 (rx_strend, rx_cmpstrn): Likewise.
15518 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15519 (bitop peep2 patterns): Remove.
15521 * config/rx/rx.c (rx_match_ccmode): New.
15522 * config/rx/rx-protos.h: Update.
15523 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15524 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15525 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15526 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15527 (fix_truncsfsi2, floatsisf2): Likewise.
15528 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15529 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15530 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15531 (*subsi3_flags, *xorsi3_flags): New.
15533 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15535 * config/rx/rx.c (rx_print_operand): Remove workaround for
15536 unsplit comparison operations.
15538 * config/rx/rx.md (movsicc): Split after reload.
15539 (*movsicc): Merge *movsieq and *movsine via match_operator.
15540 (*stcc): New pattern.
15542 * config/rx/rx.c (rx_float_compare_mode): Remove.
15543 * config/rx/rx.h (rx_float_compare_mode): Remove.
15544 * config/rx/rx.md (cstoresi4): Split after reload.
15545 (*sccc): New pattern.
15547 * config/rx/predicates.md (label_ref_operand): New.
15548 (rx_z_comparison_operator): New.
15549 (rx_zs_comparison_operator): New.
15550 (rx_fp_comparison_operator): New.
15551 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15552 Validate that the flags are set properly for the comparison.
15553 (rx_gen_cond_branch_template): Remove.
15554 (rx_cc_modes_compatible): Remove.
15555 (mode_from_flags): New.
15556 (flags_from_code): Rename from flags_needed_for_conditional.
15557 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15558 (rx_select_cc_mode): Likewise.
15559 (rx_split_fp_compare): New.
15560 (rx_split_cbranch): New.
15561 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15562 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15563 (*cbranchsf4): Similarly.
15564 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15565 match_operator and rx_split_cbranch.
15566 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15567 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15568 (*cmpsi): Rename from cmpsi.
15569 (*tstsi): Rename from tstsi.
15570 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15571 (*conditional_branch): Rename from conditional_branch.
15572 (*reveresed_conditional_branch): Remove.
15573 (b<code>): Remove expander.
15574 * config/rx/rx-protos.h: Update.
15576 * config/rx/rx.c (rx_compare_redundant): Remove.
15577 * config/rx/rx.md (cmpsi): Don't use it.
15578 * config/rx/rx-protos.h: Update.
15580 * config/rx/rx-modes.def (CC_F): New mode.
15581 * config/rx/rx.c (rx_select_cc_mode): New.
15582 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15583 * config/rx/rx-protos.h: Update.
15585 2011-01-17 Richard Henderson <rth@redhat.com>
15587 * except.c (dump_eh_tree): Fix stray ; after for statement.
15589 2011-01-17 Richard Guenther <rguenther@suse.de>
15591 PR tree-optimization/47313
15592 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15593 handling before copying the body. Properly deal with
15594 by-reference result in SSA form.
15596 2011-01-17 Ian Lance Taylor <iant@google.com>
15599 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15600 (struct_value_alias_set): Don't define.
15601 (sparc_option_override): Don't set sparc_sr_alias_set and
15602 struct_value_alias_set.
15603 (save_or_restore_regs): Use gen_frame_mem rather than calling
15605 (sparc_struct_value_rtx): Likewise.
15607 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15610 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15611 (_mm_maskstore_pd): Likewise.
15612 (_mm_maskload_ps): Likewise.
15613 (_mm_maskstore_ps): Likewise.
15614 (_mm256_maskload_pd): Change mask to __m256i.
15615 (_mm256_maskstore_pd): Likewise.
15616 (_mm256_maskload_ps): Likewise.
15617 (_mm256_maskstore_ps): Likewise.
15619 * config/i386/i386-builtin-types.def: Updated.
15620 (ix86_expand_special_args_builtin): Likewise.
15622 * config/i386/i386.c (bdesc_special_args): Update
15623 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15624 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15625 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15626 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15628 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15629 Use <avxpermvecmode> on mask register.
15630 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15632 2011-01-17 Olivier Hainque <hainque@adacore.com>
15633 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15634 Eric Botcazou <ebotcazou@adacore.com>
15637 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15638 if <= USHRT_MAX in 32-bit mode.
15640 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15642 * doc/install.texi (Configuration, Specific): Wrap long
15643 lines in examples. Allow line wrapping in long options
15644 and URLs where beneficial for PDF output.
15646 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15648 * config/mips/mips.c (mips_classify_symbol): Don't return
15649 SYMBOL_PC_RELATIVE for nonlocal labels.
15651 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15653 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15655 2011-01-15 Jan Hubicka <jh@suse.cz>
15657 PR tree-optimization/47276
15658 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15659 declarations as needed.
15661 2011-01-15 Martin Jambor <mjambor@suse.cz>
15663 * common.opt (fdevirtualize): New flag.
15664 * doc/invoke.texi (Option Summary): Document it.
15665 * opts.c (default_options_table): Add devirtualize flag.
15666 * ipa-prop.c (detect_type_change): Return immediately if
15667 devirtualize flag is not set.
15668 (detect_type_change_ssa): Likewise.
15669 (compute_known_type_jump_func): Likewise.
15670 (ipa_analyze_virtual_call_uses): Likewise.
15672 2011-01-14 Martin Jambor <mjambor@suse.cz>
15674 PR tree-optimization/45934
15675 PR tree-optimization/46302
15676 * ipa-prop.c (type_change_info): New type.
15677 (stmt_may_be_vtbl_ptr_store): New function.
15678 (check_stmt_for_type_change): Likewise.
15679 (detect_type_change): Likewise.
15680 (detect_type_change_ssa): Likewise.
15681 (compute_complex_assign_jump_func): Check for dynamic type change.
15682 (compute_complex_ancestor_jump_func): Likewise.
15683 (compute_known_type_jump_func): Likewise.
15684 (compute_scalar_jump_functions): Likewise.
15685 (ipa_analyze_virtual_call_uses): Likewise.
15686 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15688 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15690 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15691 * config/i386/i386.opt (msse5): New Alias.
15693 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15695 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15696 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15697 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15698 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15700 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15702 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15704 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15705 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15706 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15707 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15709 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15711 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15713 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15715 2011-01-14 Mike Stump <mikestump@comcast.net>
15717 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15718 * config/fr30/fr30.md: Likweise
15719 (movsi_push): Likewise.
15720 (movsi_pop): Likewise.
15721 (enter_func): Likewise.
15722 * config/moxie/moxie.md (movsi_push): Likewise.
15723 (movsi_pop): Likewise.
15725 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15727 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15728 %{no_archive} %{exact_version}.
15729 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15730 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15731 %{no_archive} %{exact_version}.
15732 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15733 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15734 * config/mips/vxworks.h: Likewise.
15736 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15738 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15740 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15742 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15743 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15745 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15747 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15750 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15752 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15754 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15755 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15757 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15758 Don't handle -shlib.
15760 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15762 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15763 (CC1_SPEC): Don't handle -profile.
15765 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15767 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15768 * config/mips/mips.h (CC1_SPEC): Likewise.
15770 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15772 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15773 * config/mips/mips.h (CC1_SPEC): Likewise.
15775 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15777 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15778 * config/m32r/linux.h (LINK_SPEC): Likewise.
15779 * config/mips/linux.h (LINK_SPEC): Likewise.
15780 * config/mips/linux64.h (LINK_SPEC): Likewise.
15781 * config/sparc/linux.h (LINK_SPEC): Likewise.
15782 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15783 LINK_SPEC): Likewise.
15784 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15786 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15788 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15790 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15792 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15794 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15795 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15797 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15799 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15801 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15803 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15804 supports -Bstatic/-Bdynamic.
15805 * configure: Regenerate.
15807 2011-01-14 Jan Hubicka <jh@suse.cz>
15808 Jack Howarth <howarth@bromo.med.uc.edu>
15811 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15812 when checking debug_info_level. Test write_symbols instead of
15813 debug_hooks->var_location when setting flag_var_tracking_uninit.
15815 2011-01-14 Richard Guenther <rguenther@suse.de>
15817 PR tree-optimization/47179
15818 * target.def (ref_may_alias_errno): New target hook.
15819 * targhooks.h (default_ref_may_alias_errno): Declare.
15820 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15821 (default_ref_may_alias_errno): New function.
15822 * target.h (struct ao_ref_s): Declare.
15823 * tree-ssa-alias.c: Include target.h.
15824 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15825 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15826 (targhooks.o): Likewise.
15827 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15828 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15830 2011-01-14 Richard Guenther <rguenther@suse.de>
15832 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15834 2011-01-14 Richard Guenther <rguenther@suse.de>
15836 PR tree-optimization/47280
15837 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15838 return CFG changes.
15839 (tree_ssa_forward_propagate_single_use_vars): Deal with
15840 CFG changes from associate_plusminus.
15842 2011-01-14 Richard Guenther <rguenther@suse.de>
15844 PR middle-end/47281
15846 2011-01-11 Richard Guenther <rguenther@suse.de>
15848 PR tree-optimization/46076
15849 * tree-ssa.c (useless_type_conversion_p): Conversions from
15850 unprototyped to empty argument list function types are useless.
15852 2011-01-14 Richard Guenther <rguenther@suse.de>
15854 PR tree-optimization/47286
15855 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15857 2011-01-14 Martin Jambor <mjambor@suse.cz>
15859 PR middle-end/46823
15860 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15862 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15864 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15865 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15866 * config/xtensa/xtensa.c (xtensa_libcall_value,
15867 xtensa_function_value_regno_p): New functions.
15868 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15870 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15873 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15875 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15876 New function prototype.
15877 * config/i386/winnt.c (i386_pe_assemble_visibility):
15878 Warn only if attribute was specified by user.
15880 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15883 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15885 (floatunsdidf2_fcfidu): Ditto.
15887 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15889 * config/s390/s390.c (print_operand_address): Replace 'error' with
15890 'output_operand_lossage'.
15891 (print_operand): Likewise.
15893 2011-01-13 Jeff Law <law@redhat.com>
15895 PR rtl-optimization/39077
15896 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15897 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15898 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15899 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15900 * gcse.c (prune_insertions_deletions): New function.
15901 (compute_pre_data): Use it.
15903 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15906 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15908 (prune_unused_types_mark): Use it.
15910 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15912 PR rtl-optimization/45352
15913 * sel-sched.c: Update copyright years.
15914 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15915 in the advancing loop when we have issued issue_rate insns.
15917 2011-01-12 Richard Henderson <rth@redhat.com>
15919 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15920 (TARGET_MD_ASM_CLOBBERS): New.
15922 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15923 (TARGET_DELEGITIMIZE_ADDRESS): New.
15925 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15926 (clzsi2, *bsch): New patterns.
15928 * config/mn10300/mn10300.md (INT): New mode iterator.
15929 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15931 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15932 flag_split_wide_types.
15934 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15935 (mn10300_trampoline_init): Rewrite without a template, an immediate
15936 load and a direct branch.
15937 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15939 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15941 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15942 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15943 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15944 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15946 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15949 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15952 2011-01-12 Jan Hubicka <jh@suse.cz>
15955 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15956 (PLUGIN_COND_CLOSE): New macro.
15957 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15959 2011-01-12 Richard Guenther <rguenther@suse.de>
15962 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15963 register variables in a MEM_REF.
15965 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15967 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15968 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15969 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15970 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15971 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15972 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15973 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15974 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15975 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15976 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15977 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15978 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15979 * config/gnu-user.h: New. Copied from linux.h.
15980 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15981 GNU_USER_TARGET_STARTFILE_SPEC.
15982 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15983 GNU_USER_TARGET_ENDFILE_SPEC.
15984 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15985 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15986 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15987 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15988 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15989 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15990 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15991 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15992 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15993 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15994 * config/arm/linux-eabi.h (CC1_SPEC): Use
15995 GNU_USER_TARGET_CC1_SPEC.
15996 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15997 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15998 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15999 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16000 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16001 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16002 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16003 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16005 2011-01-12 Richard Guenther <rguenther@suse.de>
16008 * doc/invoke.texi (ffast-math): Document it is turned on
16011 2011-01-12 Jan Hubicka <jh@suse.cz>
16013 PR tree-optimization/47233
16014 * opts.c (common_handle_option): Disable ipa-reference with profile
16017 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16019 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16022 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16024 * c-parser.c (c_lex_one_token): Updated and reindented some
16025 comments. No changes in code.
16027 2011-01-11 Ian Lance Taylor <iant@google.com>
16029 * godump.c (go_output_var): Don't output the variable if there is
16030 already a type with the same name.
16032 2011-01-11 Ian Lance Taylor <iant@google.com>
16034 * godump.c (go_format_type): Don't generate float80.
16036 2011-01-11 Richard Henderson <rth@redhat.com>
16038 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16039 declaration. Rewrite for both speed and size.
16040 (mn10300_address_cost_1): Remove.
16041 (mn10300_register_move_cost): New.
16042 (mn10300_memory_move_cost): New.
16043 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16044 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16045 extensions, shifts, BSWAP, CLZ.
16046 (mn10300_wide_const_load_uses_clr): Remove.
16047 (TARGET_REGISTER_MOVE_COST): New.
16048 (TARGET_MEMORY_MOVE_COST): New.
16049 * config/mn10300/mn10300-protos.h: Update.
16050 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16052 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16053 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16054 * config/mn10300/mn10300-protos.h: Update.
16055 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16056 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16057 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16058 (*test_int_bitfield, *test_byte_bitfield): Remove.
16059 (*bit_test, *subreg_bit_test): Remove.
16060 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16062 * config/mn10300/constraints.md ("c"): Rename from "A".
16063 ("A", "D"): New constraint letters.
16064 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16065 (fmssf4, fnmasf4, fnmssf4): Likewise.
16067 * config/mn10300/mn10300.md (isa): New attribute.
16068 (enabled): New attribute.
16070 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16071 (abssf2, negsf2): Define only for hardware fp.
16072 (sqrtsf2): Reformat.
16073 (addsf3, subsf3, mulsf3): Merge expander and insn.
16075 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16076 (DEBUGGER_AUTO_OFFSET): Remove.
16077 (DEBUGGER_ARG_OFFSET): Remove.
16079 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16080 Emit register stores with the same offsets as the hardware.
16081 (mn10300_store_multiple_operation): Don't check that the register
16082 save offsets are monotonic.
16083 * config/mn10300/mn10300-protos.h: Update.
16085 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16087 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16088 in terms of the value on the stack, not the MDR register.
16090 2011-01-11 Jan Hubicka <jh@suse.cz>
16094 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16095 (symbol_alias_set_destroy, symbol_alias_set_contains,
16096 propagate_aliases_backward): Declare.
16097 * lto-streamer-out.c (struct sets): New sturcture.
16098 (trivally_defined_alias): New function.
16099 (output_alias_pair_p): Rewrite.
16100 (output_unreferenced_globals): Fix output of alias pairs.
16101 (produce_symtab): Likewise.
16102 * ipa.c (function_and_variable_visibility): Set weak alias destination
16104 * varasm.c (symbol_alias_set_t): Remove.
16105 (symbol_alias_set_destroy): Export.
16106 (propagate_aliases_forward, propagate_aliases_backward): New functions
16108 (compute_visible_aliases): ... this one; remove.
16109 (trivially_visible_alias): New
16110 (trivially_defined_alias): New.
16111 (remove_unreachable_alias_pairs): Rewrite.
16112 (finish_aliases_1): Reorganize code checking if alias is defined.
16113 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16116 2011-01-11 Richard Guenther <rguenther@suse.de>
16118 PR tree-optimization/46076
16119 * tree-ssa.c (useless_type_conversion_p): Conversions from
16120 unprototyped to empty argument list function types are useless.
16122 2011-01-11 Richard Guenther <rguenther@suse.de>
16124 PR middle-end/45235
16125 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16126 volatile MEMs as MEM_READONLY_P.
16128 2011-01-11 Richard Guenther <rguenther@suse.de>
16130 PR tree-optimization/47239
16131 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16133 2011-01-11 Jeff Law <law@redhat.com>
16135 PR tree-optimization/47086
16136 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16137 IVs from statements that might throw.
16139 2011-01-10 Jan Hubicka <jh@suse.cz>
16142 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16144 2011-01-10 Jan Hubicka <jh@suse.cz>
16147 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16148 when correcting profile.
16150 2011-01-10 Jan Hubicka <jh@suse.cz>
16153 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16154 DECL_FINI_PRIORITY.
16155 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16156 Restore DECL_FINI_PRIORITY.
16158 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16160 * doc/gimple.texi: Fix quoting of multi-word return values in
16161 @deftypefn statements. Ensure presence of return value. Wrap
16162 overlong @deftypefn lines.
16163 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16164 descriptions of removed functions.
16165 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16166 of multi-word return value in @deftypefn statement.
16168 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16170 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16171 (Conditional Expressions, Logical Operators)
16172 (Statement and operand traversals): Do not indent smallexample
16173 code. Fix duplicate function argument in example.
16175 2011-01-10 Jeff Law <law@redhat.com>
16177 PR tree-optimization/47141
16178 * ipa-split.c (split_function): Handle case where we are
16179 returning a value and the return block has a virtual operand phi.
16181 2011-01-10 Jan Hubicka <jh@suse.cz>
16183 PR tree-optimization/47234
16184 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16185 (pass_feedback_split_functions): Declare.
16186 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16188 * ipa-split.c (gate_split_functions): Update comments; disable
16189 split-functions for profile_arc_flag and branch_probabilities.
16190 (gate_feedback_split_functions): New function.
16191 (execute_feedback_split_functions): New function.
16192 (pass_feedback_split_functions): New global var.
16194 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16197 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16198 calling gimple_call_set_cannot_inline.
16200 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16202 * config/darwin-sections.def: Remove unused section.
16204 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16207 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16209 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16212 * c-parser.c (c_parser_declaration_or_fndef): Improved
16215 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16217 * config/i386/winnt.c (i386_pe_start_function): Make sure
16218 to switch back to function's section.
16220 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16224 * plugin.c: Move include of dlfcn.h from here...
16225 * system.h: ... to here.
16227 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16229 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16231 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16232 two extra empty pages in PDF output.
16234 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16237 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16238 for error recovery purposes behave as if it was not specified so
16239 that the default type is usd.
16241 2011-01-07 Jan Hubicka <jh@suse.cz>
16243 PR tree-optmization/46469
16244 * ipa.c (function_and_variable_visibility): Clear needed flags on
16245 nodes with external decls; handle weakrefs merging correctly.
16247 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16249 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16252 2011-01-07 Jan Hubicka <jh@suse.cz>
16254 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16255 and no longer claim that gold is required for linker plugin.
16256 * configure: Regenerate.
16257 * gcc.c (PLUGIN_COND): New macro.
16258 (LINK_COMMAND_SPEC): Use it.
16259 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16260 * config.in (HAVE_LTO_PLUGIN): New.
16261 * configure.ac (--with-lto-plugin): New parameter; autodetect
16264 2011-01-07 Jan Hubicka <jh@suse.cz>
16266 PR tree-optimization/46367
16267 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16268 when we can update original.
16269 (cgraph_mark_inline_edge): Sanity check.
16270 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16272 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16274 * config/spu/spu.h (ASM_COMMENT_START): Define.
16276 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16279 * gcc.c (%>S): New.
16280 (SWITCH_KEEP_FOR_GCC): Likewise.
16281 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16282 (do_spec_1): Handle "%>".
16284 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16286 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16289 * config/i386/i386.c (ix86_delegitimize_address): If
16290 simplify_gen_subreg fails, return orig_x.
16293 * value-prof.c (gimple_stringop_fixed_value): Handle
16294 lhs of the call properly.
16296 2011-01-07 Jan Hubicka <jh@suse.cz>
16299 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16301 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16303 * target.def (function_switched_text_sections): New hook.
16304 * doc/tm.texi: Regenerated.
16305 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16306 * final.c (default_function_switched_text_sections): New.
16307 (final_scan_insn): Call function_switched_text_sections when a
16308 mid-function section change occurs.
16309 * output.h (default_function_switched_text_sections): Declare.
16310 * config/darwin-protos.h (darwin_function_switched_text_sections):
16312 * config/darwin.c (darwin_function_switched_text_sections): New.
16313 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16315 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16317 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16318 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16319 the secondary code fragment when outputting for DWARF == 2.
16321 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16323 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16324 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16326 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16327 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16329 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16332 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16333 when it is not empty.
16335 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16338 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16339 (case ${target}): Add btver1.
16340 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16341 -march=native recognize btver1 processors.
16342 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16343 btver1 def_and_undef
16344 * config/i386/i386.c (struct processor_costs btver1_cost): New
16346 (m_BTVER1): New definition.
16347 (m_AMD_MULTIPLE): Includes m_BTVER1.
16348 (initial_ix86_tune_features): Add btver1 tune.
16349 (processor_target_table): Add btver1 entry.
16350 (static const char *const cpu_names): Add btver1 entry.
16351 (software_prefetching_beneficial_p): Add btver1.
16352 (ix86_option_override_internal): Add btver1 instruction sets.
16353 (ix86_issue_rate): Add btver1.
16354 (ix86_adjust_cost): Add btver1.
16355 * config/i386/i386.h (TARGET_BTVER1): New definition.
16356 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16357 (enum processor_type): Add PROCESSOR_BTVER1.
16358 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16360 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16363 * config/i386/i386.c (legitimize_tls_address)
16364 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16365 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16366 (tls_initial_exec_64_sun): New pattern.
16368 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16370 * doc/invoke.texi (Overall Options): Improve wording and markup
16371 of the description of -wrapper.
16373 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16375 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16376 rdynamic, threads): New Driver options.
16378 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16381 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16382 if coming from .tdata.
16383 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16385 2011-01-06 Jan Hubicka <jh@suse.cz>
16388 * collect2.c (main): Do not enable LTOmode when plugin is active.
16390 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16393 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16394 --version output if supported.
16395 * configure: Regenerate.
16397 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16399 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16402 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16405 * c-convert.c (convert): When converting a complex expression
16406 other than COMPLEX_EXPR to a different complex type, ensure
16407 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16408 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16409 when converting COMPLEX_TYPE.
16411 2011-01-06 Ira Rosen <irar@il.ibm.com>
16413 PR tree-optimization/47139
16414 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16415 only the last reduction value is used outside the loop. Update
16418 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16420 * config/rtems.opt: New.
16421 * config.gcc (*-*-rtems*): Use rtems.opt.
16423 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16425 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16426 processors do not support 3DNow instructions.
16428 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16430 * config/spu/spu.c (spu_option_override): Set parameter
16431 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16433 2011-01-05 Jan Hubicka <jh@suse.cz>
16435 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16436 at the command line.
16438 2011-01-05 Martin Jambor <mjambor@suse.cz>
16441 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16442 deltas on streamed outgoing edges.
16443 (output_node_opt_summary): Output info for outgoing edges only when
16444 the node is in new parameter set.
16445 (output_cgraph_opt_summary): New parameter set, passed to the two
16446 aforementioned functions. Update its forward declaration and its
16449 2011-01-05 Tom Tromey <tromey@redhat.com>
16451 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16452 operator to c_finish_omp_atomic.
16453 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16454 (build_unary_op): Update.
16455 (build_modify_expr): Update.
16456 (build_asm_expr): Update.
16458 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16460 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16461 newly inserted insns.
16462 (pad_bb): Likewise.
16463 (spu_emit_branch_hint): Likewise.
16464 (insert_hbrp_for_ilb_runout): Likewise.
16465 (spu_machine_dependent_reorg): Call df_finish_pass after
16466 schedule_insns returns.
16468 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16470 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16472 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16474 PR tree-optimization/47005
16475 * tree-sra.c (struct access): Add 'non_addressable' bit.
16476 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16477 (decide_one_param_reduction): Return 0 if the parameter is passed by
16478 reference and one of the accesses in the group is non_addressable.
16480 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16482 PR tree-optimization/47056
16483 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16484 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16485 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16487 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16489 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16490 initializer. Skip view conversions from aggregate types.
16492 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16495 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16497 2011-01-04 Philipp Thomas <pth@suse.de>
16499 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16502 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16504 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16505 on empty epilogue sequences.
16507 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16509 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16510 non-static): New Driver options.
16512 2011-01-04 Jie Zhang <jie@codesourcery.com>
16515 * gcc.c (default_compilers[]): Set combinable field to 0
16516 for all assembly languages.
16518 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16520 * config/mips/loongson3a.md: New file.
16521 * config/mips/mips.md: Include loongson3a.md.
16522 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16525 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16527 PR middle-end/47017
16528 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16529 instead of convert_memory_address_addr_space on the base expression.
16531 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16533 * config/spu/spu.c (spu_option_override): Update error text
16534 for bad -march= / -mtune= values.
16536 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16538 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16539 if branch-hint optimization will be performed.
16541 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16543 PR tree-optimization/47148
16544 * ipa-split.c (split_function): Convert arguments to
16545 DECL_ARG_TYPE if possible.
16547 PR tree-optimization/47155
16548 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16549 when computing uns.
16551 PR rtl-optimization/47157
16552 * combine.c (try_combine): If undobuf.other_insn becomes
16553 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16554 and set *new_direct_jump_p too.
16556 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16558 PR tree-optimization/47021
16559 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16561 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16563 * gcc.c (process_command): Update copyright notice dates.
16564 * gcov.c (print_version): Likewise.
16565 * gcov-dump.c (print_version): Likewise.
16566 * mips-tfile.c (main): Likewise.
16567 * mips-tdump.c (main): Likewise.
16569 2011-01-03 Martin Jambor <mjambor@suse.cz>
16571 PR tree-optimization/46801
16572 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16573 aggregate fields start at byte boundary instead of the bit-field flag.
16575 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16578 * gcc.c (main): Revert revision 168407.
16580 2011-01-03 Martin Jambor <mjambor@suse.cz>
16582 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16584 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16586 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16587 vector optab to expand vector/scalar shift, update gimple to vector.
16589 2011-01-03 Martin Jambor <mjambor@suse.cz>
16591 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16594 2011-01-03 Martin Jambor <mjambor@suse.cz>
16596 PR tree-optimization/46984
16597 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16599 (cgraph_create_indirect_edge): Fixed line length.
16600 (cgraph_indirect_call_info): Declare.
16601 (cgraph_make_edge_direct) Update declaration.
16602 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16603 (cgraph_create_indirect_edge): Use it.
16604 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16606 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16607 the new thunk_delta representation.
16608 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16610 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16611 (ipa_read_indirect_edge_info): Likewise.
16612 * lto-cgraph.c (output_edge_opt_summary): New function.
16613 (output_node_opt_summary): Call it on all outgoing edges.
16614 (input_edge_opt_summary): New function.
16615 (input_node_opt_summary): Call it on all outgoing edges.
16617 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16620 * gcc.c (main): Don't check have_o when settting combine_inputs.
16622 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16624 * regrename.c: Add general comment describing the pass.
16625 (struct du_head): Remove 'length' field.
16626 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16627 (regrename_optimize): Do not sort chains. Rework comments, add others.
16628 Force renaming to the preferred class (if any) in the first pass and do
16629 not consider registers that belong to it in the second pass.
16630 (create_new_chain): Do not set 'length' field.
16631 (scan_rtx_reg): Likewise.
16633 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16635 PR tree-optimization/47140
16636 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16637 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16638 to bit_value_binop.
16640 PR rtl-optimization/47028
16641 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16642 parm_birth_insn instead of at the beginning of first bb.
16644 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16646 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16647 Remove the word "see" before "@pxref".
16648 * doc/rtl.texi: Remove the word "see" before "@pxref".
16650 2011-01-01 Jan Hubicka <jh@suse.cz>
16652 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16655 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16658 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16661 Copyright (C) 2011 Free Software Foundation, Inc.
16663 Copying and distribution of this file, with or without modification,
16664 are permitted in any medium without royalty provided the copyright
16665 notice and this notice are preserved.