1 2011-06-02 Julian Brown <julian@codesourcery.com>
3 * arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2 tuning.
4 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
5 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
6 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
8 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
9 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
10 (arm_fa726te_tune): Add prefer_constant_pool setting.
11 (arm_v6t2_tune, arm_cortex_tune): New.
12 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
13 prefer_constant_pool setting.
15 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
17 * config/i386/i386.c (standard_sse_constant_p) <case 1>:
18 Simplify switch statement.
19 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
20 (*movdf_internal) <case 6,7,8>: Ditto.
22 * config/i386/constraints.md (Y4): New constraint.
23 * config/i386/sse.md (vec_set<mode>_0): Merge with
24 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
25 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
26 *vec_extractv2di_1_sse.
27 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
28 and *vec_concatv2di_rex64_sse.
30 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
33 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
34 of cgraph_local_info for null before attempting to use it.
36 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
38 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
39 (current_function_dynamic_alloc_count): Delete.
40 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
41 (expand_builtin_nonlocal_goto): Remove obsolete comment.
42 (expand_builtin_update_setjmp_buf): Remove dead code.
43 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
44 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
46 * function.c (instantiate_virtual_regs): Likewise.
47 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
48 for a block with a single abnormal incoming edge.
49 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
50 (SETJMP_VIA_SAVE_AREA): Delete.
51 * config/sparc/sparc-protos.h (load_got_register): Declare.
52 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
53 (load_got_register): Make global.
54 (sparc_frame_pointer_required): Add 'static'.
55 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
56 (sparc_builtin_setjmp_frame_value): New function.
57 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
58 (save_stack_nonlocal): New expander.
59 (restore_stack_nonlocal): Likewise.
60 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
61 (nonlocal_goto_internal): New insn.
62 (goto_handler_and_restore): Delete.
63 (builtin_setjmp_setup): Likewise.
64 (do_builtin_setjmp_setup): Likewise.
66 (builtin_setjmp_receiver): New expander.
68 2011-06-01 David Li <davidxl@google.com>
71 * tree-pretty-print.c (dump_function_header): Format cleanup.
73 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
76 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
77 needed when original operands are used for msw_skip comparison.
79 2011-06-01 Jakub Jelinek <jakub@redhat.com>
82 * var-tracking.c (add_uses, add_stores): Don't call
83 cselib_subst_to_values on ENTRY_VALUE.
85 2011-06-01 Diego Novillo <dnovillo@google.com>
87 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
88 output_record_start with LTO_null instead of output_zero.
89 (lto_output_ts_binfo_tree_pointers): Likewise.
90 (lto_output_tree): Likewise.
91 (output_eh_try_list): Likewise.
92 (output_eh_region): Likewise.
93 (output_eh_lp): Likewise.
94 (output_eh_regions): Likewise.
95 (output_bb): Likewise.
96 (output_function): Likewise.
97 (output_unreferenced_globals): Likewise.
98 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
99 instead of NUM_TREE_CODES.
100 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
101 (lto_output_int_in_range): Change << to >> when shifting VAL.
103 2011-06-01 Diego Novillo <dnovillo@google.com>
105 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
106 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
108 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
111 * optabs.h (valid_multiword_target_p): Declare.
112 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
113 doing multi-word operations.
114 * optabs.c (expand_binop): Likewise.
115 (expand_doubleword_bswap): Likewise.
116 (expand_absneg_bit): Likewise.
117 (expand_unop): Likewise.
118 (expand_copysign_bit): Likewise.
119 (multiword_target_p): New function.
121 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
123 PR rtl-optimization/48830
124 PR rtl-optimization/48808
125 PR rtl-optimization/48792
126 * reload.c (push_reload): Check contains_reg_of_mode.
127 * reload1.c (strip_paradoxical_subreg): New function.
128 (gen_reload_chain_without_interm_reg_p): Use it to handle
130 (emit_output_reload_insns, gen_reload): Likewise.
132 2011-06-01 David Li <davidxl@google.com>
134 * predict.c : Change pass name
137 * tree-profile.c: Ditto.
140 2011-06-01 David Li <davidxl@google.com>
142 * tree-pretty-print.c (dump_function_header): New function.
143 * final.c (rest_of_clean_state): Use header dumper.
144 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
145 * passes.c (pass_init_dump_file): Use header dumper.
147 2011-06-01 Jakub Jelinek <jakub@redhat.com>
149 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
150 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
151 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
153 (mem_loc_descriptor): Use them.
155 * var-tracking.c (create_entry_value): New function.
156 (vt_add_function_parameter): Use it.
158 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
160 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
161 Include <signal.h>, <ucontext.h>.
162 (sigill_caught): Define.
163 (sigill_hdlr): New function.
164 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
165 insns can be executed.
166 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
167 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
169 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
171 * config/t-slibgcc-darwin: Move to ...
172 * config/t-slibgcc-dummy: ... this. Clarify comments.
173 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
174 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
175 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
176 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
177 Remove i386/t-crtstuff from tmake_file.
178 (i[34567]86-*-solaris2*): Remove t-svr4,
179 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
181 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
182 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
183 sparc/t-crtfm from tmake_file.
184 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
185 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
187 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
188 * config/i386/t-nwld (SHLIB_LINK): Remove.
189 * config/i386/t-rtems-i386: Rename to ...
190 * config/i386/t-rtems: ... this.
191 ($(T)crti.o, $(T)crtn.o): Remove.
192 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
193 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
194 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
195 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
196 EXTRA_MULTILIB_PARTS): Remove.
197 * config/sparc/t-sol2-64: Likewise.
198 * config/sparc/t-sol2: Remove.
199 * config/sparc/t-crtin: Remove.
200 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
201 * config/i386/gmon-sol2.c: Remove.
202 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
203 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
204 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
205 * config/i386/sol2-gc1.asm: Remove.
206 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
207 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
208 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
209 * config/t-slibgcc-sld: Remove.
211 2011-06-01 Jakub Jelinek <jakub@redhat.com>
213 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
214 base_type_for_mode with op_mode instead of mode.
216 2011-06-01 Paul Brook <paul@cpodesourcery.com>
218 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
220 * config/arm/arm-tune.md: Regenerate.
221 * config/arm/arm-tables.opt: Regenerate.
222 * config/arm/arm.c (FL_DIV): Rename...
223 (FL_THUMB_DIV): ... to this.
224 (FL_ARM_DIV): Define.
225 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
226 (arm_arch_hwdiv): Remove.
227 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
228 (arm_issue_rate): Add cortexr5.
229 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
230 __ARM_ARCH_EXT_IDIV__.
231 (TARGET_IDIV): Define.
232 (arm_arch_hwdiv): Remove.
233 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
234 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
235 (divsi3, udivsi3): New patterns.
236 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
237 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
239 2011-06-01 Martin Jambor <mjambor@suse.cz>
241 * ipa-utils.c (ipa_dfs_info): New field scc_no.
242 * ipa-utils.c (searchc): Set scc_no.
244 2011-06-01 Martin Jambor <mjambor@suse.cz>
246 * ipa-utils.c (searchc_env): New field allow_overwritable.
247 (searchc): do not ignore edges to overwritable nodes if indicated
248 by env->allow_overwritable.
249 (ipa_reduced_postorder): Set env.allow_overwritable.
251 2011-06-01 Richard Guenther <rguenther@suse.de>
253 * tree.c (free_lang_data): Do not reset boolean_type_node nor
255 * lto-streamer.c (lto_record_common_node): Take node pointer,
256 do not register types.
257 (lto_preload_common_nodes): Explicitly skip preloading nodes
258 that differ between frontends.
260 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
262 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
265 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
267 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
268 parameter value for dump. Dump cost on outermost call only.
269 (rs6000_memory_move_cost): Dump cost on outermost call only.
271 2011-05-31 Jakub Jelinek <jakub@redhat.com>
273 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
274 DW_OP_GNU_convert ops.
276 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
277 cselib_preserve_constants.
278 (cselib_lookup_1): If cselib_preserve_constants,
279 a new VALUE is being created for REG and there is a VALUE for the
280 same register in wider mode, add another loc with lowpart SUBREG of
282 (cselib_subst_to_values): Handle ENTRY_VALUE.
283 * var-tracking.c (replace_expr_with_values): Return NULL for
285 * dwarf2out.c (convert_descriptor_to_signed): New function.
286 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
287 instead of two shifts.
288 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
289 the right mode if needed.
290 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
291 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
292 convert_descriptor_to_signed.
293 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
294 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
297 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
299 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
301 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
302 of X87MODEI12 and SWI48x instead of SSEMODEI24.
303 (SWI248x): New mode iterator, rename from X87MODEI.
304 (X87MODEI): Remove mode iterator.
308 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
310 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
311 * doc/invoke.texi: Document max-vartrack-expr-depth.
312 * var-tracking.c (EXPR_DEPTH): New.
313 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
315 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
317 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
318 * config/i386/sse.md: Add n to negated FMA pattern names.
320 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
322 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
324 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
326 * gengtype-state.c (read_state_params_structs): Initialize previous.
328 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
330 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
331 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
333 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
335 * config/i386/i386.md (*movtf_internal): Avoid allocating general
336 registers. Penalize F*r->o alternative to prevent partial memory
337 stalls. Slightly penalize *roF->*r alternative. Generate SSE
338 CONST_DOUBLE immediates when optimizing function for size. Do not move
339 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
340 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
341 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
342 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
344 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
346 (fp_register_operand splitters): Use fp_register_operand
347 constraint. Do not use FP_REG_P in insn condition.
348 (any_fp_register_operand splitters): Use any_fp_register_operand
349 constraint. Do not use ANY_FP_REG_P in insn condition.
351 2011-05-31 Jan Hubicka <jh@suse.cz>
353 * cgraph.h (cgraph_inline_failed_t): Give enum a name
354 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
355 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
356 (lto_output_edge): Use output_enum and var_len_unsigned.
357 (lto_output_varpool_node): Likewise.
358 (input_overwrite_node): Do not take resolution parameter;
359 extract it from a bitpack.
360 (input_node): Do not read resolution; use input_enum and
362 (input_varpool_node): Likewise.
363 (input_edge): Likewise.
364 (input_cgraph_1): Likewise.
366 2011-05-31 Richard Guenther <rguenther@suse.de>
368 * gimple.c (gimple_register_canonical_type): Do not register
369 any types via gimple_register_type.
371 2011-05-31 Jan Hubicka <jh@suse.cz>
373 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
376 2011-05-31 Jakub Jelinek <jakub@redhat.com>
378 PR rtl-optimization/49235
379 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
380 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
382 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
384 PR tree-optimization/49093
385 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
388 2011-05-31 Dodji Seketeli <dodji@redhat.com>
391 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
392 for concrete functions containing the code of cloned functions.
394 2011-05-31 Richard Guenther <rguenther@suse.de>
396 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
398 (forward_propagate_into_comparison_1): ... this.
399 (forward_propagate_comparison): Rename to ...
400 (forward_propagate_into_comparison): ... this. Split out
401 real forward propagation code to ...
402 (forward_propagate_comparison): ... this.
403 (forward_propagate_into_gimple_cond): Remove looping.
404 (forward_propagate_into_cond): Likewise.
405 (simplify_not_neg_expr): Return whether we have done something.
406 (simplify_gimple_switch): Likewise.
407 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
408 (ssa_forward_propagate_and_combine): ... this. Re-structure
409 to do a forward forward-propagation walk on BBs and a backward
410 stmt combining walk on BBs. Consistently re-scan changed statements.
411 (pass_forwprop): Adjust.
413 2011-05-30 Ian Lance Taylor <iant@google.com>
415 * godump.c (go_format_type): Correct length of name added to
416 obstack for anonymous field.
418 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
421 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
422 part of the second operand is 0.
424 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
426 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
427 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
428 to memory for !TARGET_MEMORY_MISMATCH_STALL.
429 (*movdf_internal_rex64): Do not penalize F->r alternative.
430 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
431 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
432 when optimizing function for size. Do not move CONST_DOUBLEs
433 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
434 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
435 SUBREGs. Do not check for MEM_P operands in the insn condition,
436 check for ANY_FP_REGNO_P instead.
437 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
438 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
440 * config/i386/i386.c (ix86_option_override_internal): Do not
441 set TARGET_INTEGER_DFMODE_MOVES here.
443 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
446 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
448 2011-05-30 Jakub Jelinek <jakub@redhat.com>
450 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
451 DW_TAG_rvalue_reference_type even for
452 -gdwarf-4 -fno-debug-types-section.
454 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
456 PR tree-optimization/46728
457 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
458 (build_and_insert_binop): New.
459 (gimple_expand_builtin_pow): Reorder args for
460 build_and_insert_call; use build_and_insert_binop; add more
461 optimizations for fractional exponents.
463 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
468 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
470 * tree.h (struct tree_identifier): Inherit from tree_typed, not
472 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
473 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
474 TS_BASE instead of TS_COMMON.
475 * varasm.c (assemble_name): Remove assert.
477 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
479 * config.gcc: Keep obselete list sorted.
481 2011-05-30 Jakub Jelinek <jakub@redhat.com>
482 Eric Botcazou <ebotcazou@adacore.com>
484 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
485 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
486 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
487 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
488 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
490 2011-05-30 Richard Guenther <rguenther@suse.de>
492 * gimple.c (gimple_types_compatible_p_1): Compare record
493 and union type members properly.
495 2011-05-30 Richard Guenther <rguenther@suse.de>
497 PR tree-optimization/49210
498 * ipa-split.c (split_function): Care for the case where the call
499 result is not trivially convertible to the result holding variable.
501 2011-05-30 Richard Guenther <rguenther@suse.de>
503 PR tree-optimization/49218
504 * tree-vrp.c (adjust_range_with_scev): Properly check whether
507 2011-05-30 Richard Guenther <rguenther@suse.de>
509 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
510 New function split out from ...
511 (forward_propagate_into_gimple_cond): ... here. Adjust.
512 (forward_propagate_into_cond): Likewise.
513 (forward_propagate_comparison): Also propagate into
514 comparisons on assignment RHS. Change return value to
515 behave similar to forward_propagate_into_cond.
516 (tree_ssa_forward_propagate_single_use_vars): Handle
517 strict-overflow warnings properly for forward_propagate_comparison.
519 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
521 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
523 * configure: Regenerate.
525 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
527 PR tree-optimization/49199
528 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
529 non-reduction operands are either defined in the loop or by induction.
531 2011-05-29 Xinliang David Li <davidxl@google.com>
533 * opts-global.c (handle_common_deferred_options): Handle new options.
534 * passes.c (register_one_dump_file): Call register_pass_name.
535 (execute_one_pass): Check explicit enable/disable flag.
536 (passr_hash): New function.
538 (register_pass_name): Ditto.
539 (get_pass_by_name): Ditto.
542 (enable_pass): Ditto.
543 (disable_pass): Ditto.
544 (is_pass_explicitly_enabled_or_disabled): Ditto.
546 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
548 * config/i386/i386.md (*movoi_internal_avx): Use
549 standard_sse_constant_opcode for alternative 0.
550 (*movti_internal_sse): Ditto.
551 (*movti_internal_rex64): Use standard_sse_constant_opcode for
553 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
555 (*movsi_internal): Ditto.
556 (*movdi_internal): Ditto. Add ssecvt type moves.
558 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
561 * rtlanal.c (simplify_subreg_regno): Adjust comment.
563 2011-05-29 Jakub Jelinek <jakub@redhat.com>
565 PR rtl-optimization/49095
566 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
567 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
569 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
572 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
573 recurse_p argument. Only follow register copies if it is set,
574 and prevent mips_find_pic_call_symbol from recursing.
575 (mips_find_pic_call_symbol): Add a recurse_p argument.
576 Pass it to mips_pic_call_symbol_from_set.
577 (mips_annotate_pic_calls): Update accordingly.
579 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
581 * emit-rtl.c (try_split): Use a loop to search for
582 NOTE_INSN_CALL_ARG_LOCATIONs.
584 2011-05-29 Richard Guenther <rguenther@suse.de>
586 PR tree-optimization/49217
587 * ipa-pure-const.c (propagate_pure_const): Fix typos.
589 2011-05-28 Jan Hubicka <jh@suse.cz>
591 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
593 (string_slot_free): Remove
594 (create_output_block): Initialize obstack.
595 (destroy_output_block): Free obstack.
596 (lto_string_index): Add PERSISTENT parameter; do not duplicate
597 the string unless it needs to be added into the hash.
598 (lto_output_string_with_length): Add persistent attribute;
600 (lto_output_string): Add PERSISTENT parameter.
601 (output_string_cst, output_identifier): Simplify.
602 (lto_output_location_bitpack): Update.
603 (lto_output_builtin_tree): Update.
604 * lto-streamer.h (struct output_block): Add obstack.
605 (lto_output_string, lto_output_string_with_length): Remove
606 declarations; functions are static now.
608 2011-05-28 Jan Hubicka <jh@suse.cz>
610 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
611 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
612 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
613 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
614 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
615 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
616 unpack_ts_decl_with_vis_value_fields,
617 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
618 lto_get_builtin_tree): Use enum and variable length i/o.
619 * basic-block.h (profile_status_d): Add PROFILE_LAST.
620 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
622 (bp_pack_enum, bp_unpack_enum): New macros.
624 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
626 * genrecog.c: Remove redundant forward declarations.
628 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
630 * config.gcc: Deprecate mips*-*-openbsd*.
632 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
635 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
638 2011-05-27 Andrew Pinski <pinskia@gmail.com>
641 * gengtype.c (vec_prefix_type): New function.
642 (note_def_vec): Use vec_prefix_type and change the length
643 attribute to be based on the prefix.
644 * vec.c: Include coretypes.h before vec.h.
645 (struct vec_prefix): Remove.
646 (vec_gc_p_reserve): Change the offsetof to sizeof.
647 (vec_gc_p_reserve_exact): Likewise.
648 (vec_heap_p_reserve): Likewise.
649 (vec_heap_p_reserve_exact): Likewise.
650 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
651 (vec_stack_p_reserve): Change the offsetof to sizeof.
652 (vec_stack_p_reserve_exact): Likewise.
653 * vec.h (struct vec_prefix): New struct definition.
654 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
655 (VEC_T_GTY(T,B)): Likewise.
656 (DEF_VEC_FUNC_P(T)): Use prefix field.
657 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
658 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
660 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
662 PR tree-optimization/46728
663 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
664 (powi_as_mults): Add gimple_set_location.
665 (build_and_insert_call): New.
666 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
667 0.5, 0.25, 0.75, 1./3., or 1./6.
669 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
671 * doc/contrib.texi: Update copyright years.
672 (Contributors): Add Zdenek Sojka.
674 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
676 * c-decl.c (c_push_function_context): Copy the current statement
678 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
679 (finish_struct): Call building_stmt_list_p instead of checking
681 * c-parser.c (c_parser_postfix_expression): Likewise.
682 * c-typeck.c (c_end_compound_stmt): Likewise.
683 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
684 * tree-iterator.c (stmt_list_cache): Change to a VEC.
685 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
686 (free_stmt_list): Likewise.
687 * tree.h (struct tree_statement_list): Include typed_tree instead
689 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
690 as TS_TYPED instead of TS_COMMON.
692 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
693 Uros Bizjak <ubizjak@gmail.com>
695 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
696 (HAVE_AS_IX86_TLSGDPTL): Define.
697 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
698 (HAVE_AS_IX86_TLSLDMPLT): Define.
699 * configure: Regenerate.
700 * config.in: Regenerate.
701 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
702 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
703 TARGET_SUN_TLS, use @tlsgdplt or @plt.
704 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
705 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
707 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
709 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
711 * sched-int.h (struct _haifa_deps_insn_data): New members cond
713 (INSN_COND, INSN_REVERSE_COND): New macros.
714 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
716 (sched_get_condition_with_rev): Cache the results, and look them up
718 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
719 are clobbered by the current insn.
720 * target.def (exposed_pipline): New sched data hook.
721 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
722 * doc/tm.texi: Regenerate.
724 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
726 PR tree-optimization/49170
727 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
730 2011-05-27 Richard Guenther <rguenther@suse.de>
733 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
736 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
738 * haifa-sched.c (sched_scan_info): Remove.
739 (schedule_block): Call sched_extend_luids rather than sched_init_luids
741 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
743 (sched_scan): Remove.
744 (sched_extend_luids): Renamed from luids_extend_insn and no longer
745 static. All callers changed.
746 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
747 static. All callers changed.
748 (sched_init_luids): Remove all arguments except the first. All
749 callers changed. Don't use sched_scan.
750 (haifa_init_h_i_d): Likewise.
751 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
752 manually rather than using sched_init_luids. Likewise with
753 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
754 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
755 rather than sched_init_luids with NULL args.
756 * sel-sched-ir.c (new_insns): Remove variable.
757 (sched_scan): New static function, previously in haifa-sched.c. Remove
758 all arguments but the first two; all callers changed.
759 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
760 rather than sched_init_luids.
761 (sel_init_bbs): Remove second argument. All callers changed.
762 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
764 (create_insn_rtx_from_pattern): Likewise.
765 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
766 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
767 (sched_init_insn_luid, sched_extend_luids): Declare.
768 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
771 2011-05-27 Richard Guenther <rguenther@suse.de>
774 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
775 A CMP B ? (T) true : (T) false for non-integral types T again.
777 2011-05-27 Jan Hubicka <jh@suse.cz>
779 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
780 so 0 means NULL string.
781 (lto_output_string_with_length): ... here.
782 (lto_output_string, output_string_cst, output_identifier): Update
783 handling of NULL strings.
784 (lto_output_location_bitpack): New function.
785 (lto_output_location): Use it.
786 (lto_output_tree_ref): Use output_record_start.
787 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
789 * lto-streamer-in.c (string_for_index): Break out from ...; offset
791 (input_string_internal): ... here;
792 (input_string_cst, input_identifier, lto_input_string): Update handling
794 (lto_input_location_bitpack): New function
795 (lto_input_location): Use it.
796 (unpack_ts_type_common_value_fields): Pack align & alias in var len
798 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
799 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
800 (bp_pack_value): Sanity check the value range.
801 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
803 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
806 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
808 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
809 call_arg_location instructions down the floor.
811 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
813 PR rtl-optimization/49154
814 * ira.c (setup_pressure_classes): Process class without sublcasses
815 as a candidate for pressure classes.
817 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
819 PR rtl-optimization/48575
820 * genrecog.c (position_type): New enum.
821 (position): New structure.
822 (decision): Use position structure instead of a string.
823 (root_pos, peep2_insn_pos_list): New variables.
824 (next_position, compare_positions): New functions.
825 (new_decision): Use position structures instead of strings.
826 (maybe_both_true): Likewise.
827 (change_state): Likewise.
828 (write_tree): Likewise.
829 (make_insn_sequence): Likewise.
831 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
833 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
834 TS_BASE instead of TS_COMMON.
835 (find_decls_types_r): Check for TS_TYPED structure before looking at
837 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
839 (BLOCK_CHAIN): Use new chain field.
841 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
843 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
844 moves expensive on Power7 also.
846 2011-05-26 Richard Guenther <rguenther@suse.de>
848 * fold-const.c (fold_unary_loc): Remove bogus code.
850 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
852 * tree.h (struct tree_identifier): Inherit from tree_typed, not
854 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
855 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
856 TS_BASE instead of TS_COMMON.
857 * varasm.c (assemble_name): Remove assert.
859 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
861 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
863 * libgcc-std.ver: Delete file.
865 2011-05-26 Richard Guenther <rguenther@suse.de>
867 PR tree-optimization/48702
868 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
869 only when we know the base address is within bounds.
870 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
871 assume the base address of TARGET_MEM_REFs is in bounds.
873 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
876 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
877 declaration in TARGET_SOLARIS.
879 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
881 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
882 The instruction is then expanded explicitly.
883 (supported_compare): Callable instruction.
886 2011-05-26 Jakub Jelinek <jakub@redhat.com>
889 * gimplify.c (shortcut_cond_r): Don't special case
890 COND_EXPRs if they have void type on one of their arms.
892 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
894 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
895 to reduce duplication, and to achieve a slightly more logical order
898 2011-05-26 Jakub Jelinek <jakub@redhat.com>
900 PR tree-optimization/49161
901 * tree-vrp.c (struct case_info): New type.
902 (compare_case_labels): Sort case_info structs instead of
903 trees, and not primarily by CASE_LABEL uids but by
904 label_for_block indexes.
905 (find_switch_asserts): Put case labels into struct case_info
906 array instead of TREE_VEC, adjust sorting, compare label_for_block
907 values instead of CASE_LABELs.
909 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
911 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
912 ("orndi3_neon"): Likewise.
913 ("bic<mode>3_neon"): Likewise.
915 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
917 PR tree-optimization/49038
918 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
919 Ensure at least one epilogue iteration if required by data
921 * tree-vectorizer.h (struct _loop_vec_info): Add new field
922 to mark loops that require peeling for gaps.
923 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
924 (vect_get_known_peeling_cost): Take peeling for gaps into
926 (vect_transform_loop): Generate epilogue if required by data
928 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
929 loop as requiring an epilogue if there are gaps in the end of
932 2011-05-25 Ian Lance Taylor <iant@google.com>
934 * godump.c (go_format_type): Output the first field with a usable
937 2011-05-25 Ian Lance Taylor <iant@google.com>
939 * godump.c (go_format_type): Check for invalid type names, pointer
940 target types, and struct field types.
942 2011-05-25 Jason Merrill <jason@redhat.com>
944 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
946 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
948 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
950 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
952 * config/i386/i386.md (*movqi_extv_1)): Put back
953 "register_operand" check in "type" calculation.
954 (*movqi_extzv_2): Likewise.
956 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
958 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
960 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
963 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
964 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
965 __divxc3, __divtc3): Wrap definitions in #ifndef.
967 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
970 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
971 "register_operand" check and replace q_regs_operand with
972 QIreg_operand in "type" calculation.
973 (*movqi_extv_1): Likewise.
974 (*movqi_extzv_2_rex64): Likewise.
975 (*movqi_extzv_2): Likewise.
977 * config/i386/predicates.md (QIreg_operand): New.
979 2011-05-25 Richard Guenther <rguenther@suse.de>
981 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
982 type-based offset disambiguation, streamline MEM_REF and
983 TARGET_MEM_REF handling.
985 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
987 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
988 (bdesc_special_args): Add pause intrinsic.
990 * config/i386/i386.md (UNSPEC_PAUSE): New.
993 * config/i386/ia32intrin.h (__pause): Likewise.
995 * doc/extend.texi (X86 Built-in Functions): Add documentation for
998 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1000 PR tree-optimization/46728
1001 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1002 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1004 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1006 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1007 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1008 instead of TS_COMMON.
1010 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1012 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1013 LIBGCC2_GNU_PREFIX is defined.
1015 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1016 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1017 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1018 __clz_tab): Define using __N.
1019 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1020 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1021 * target.def (libfunc_gnu_prefix): New hook.
1022 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1023 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1024 * doc/tm.texi: Regenerate.
1025 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1026 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1028 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1029 (init_optabs): Likewise for the bswap libfuncs.
1030 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1032 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1033 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1034 * libgcc-std.ver: Remove.
1035 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1036 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1038 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1039 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1040 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1041 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1042 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1043 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1044 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1045 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1046 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1047 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1049 2011-05-25 Jan Hubicka <jh@suse.cz>
1051 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1052 (lto_output_tree): Use output_record_start.
1053 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1054 (lto_get_pickled_tree): Use input_record_start.
1055 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1056 (lto_value_range_error): New function.
1057 * lto-streamer.h (lto_value_range_error): Declare.
1058 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1059 (lto_output_enum, lto_input_enum): New macros.
1061 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1063 * common.opt (flag_stack_usage_info): New variable.
1064 (-Wstack-usage): New option.
1065 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1066 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1067 <OPT_fstack_usage>: Likewise.
1068 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1069 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1070 of flag_stack_usage.
1071 (emit_library_call_value_1): Likewise.
1072 * explow.c (allocate_dynamic_stack_space): Likewise.
1073 * function.c (instantiate_virtual_regs ): Likewise.
1074 (prepare_function_start): Likewise.
1075 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1076 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1077 * config/arm/arm.c (arm_expand_prologue): Likewise.
1078 (thumb1_expand_prologue): Likewise.
1079 * config/avr/avr.c (expand_prologue): Likewise.
1080 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1081 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1082 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1083 * config/mips/mips.c (mips_expand_prologue): Likewise.
1084 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1085 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1086 * config/s390/s390.c (s390_emit_prologue): Likewise.
1087 * config/sh/sh.c (sh_expand_prologue): Likewise.
1088 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1089 * config/spu/spu.c (spu_expand_prologue): Likewise.
1091 2011-05-25 Richard Guenther <rguenther@suse.de>
1093 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1094 (gimple_canonical_types_compatible_p): Likewise.
1096 2011-05-25 Jan Hubicka <jh@suse.cz>
1099 * ipa.c (function_and_variable_visibility): Only add to same
1100 comdat group list if DECL_ONE_ONLY.
1102 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1104 PR rtl-optimization/49014
1105 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1107 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1110 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1112 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1114 PR rtl-optimization/48757
1115 * ira-build.c (loop_with_eh_edge_p): Rename to
1116 loop_with_complex_edge_p, check edges on complexity, make function
1118 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1121 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1123 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1124 force flag_ira_share_save_slots to 0.
1126 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1128 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1129 (vt_initialize): Set PROLOGUE_BB unconditionally.
1130 Add block comment about CFA_BASE_RTX machinery.
1131 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1132 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1134 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1137 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1138 parsing of syntax error in ObjC instance variable lists. In
1139 particular, avoid an infinite loop if there is a stray ']'.
1140 Updated error message.
1142 2011-05-24 Ian Lance Taylor <iant@google.com>
1144 * godump.c (go_define): Don't accept a string immediately after
1147 2011-05-24 Ian Lance Taylor <iant@google.com>
1149 * godump.c (struct godump_container): Add invalid_hash field.
1150 (go_format_type): Return false if type is found in invalid_hash.
1151 (go_output_typedef): Add invalid type to invalid_hash.
1152 (go_finish): Create and delete invalid_hash.
1154 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1156 PR tree-optimization/46728
1157 * tree-ssa-math-opts.c (powi_table): New.
1158 (powi_lookup_cost): New.
1160 (powi_as_mults_1): New.
1161 (powi_as_mults): New.
1162 (gimple_expand_builtin_powi): New.
1163 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1164 (gate_cse_sincos): Remove sincos/cexp restriction.
1166 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1169 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1171 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1172 * mips-tdump.c: Likewise.
1174 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1177 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1178 add -mno-XXX. Handle FMA.
1180 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1182 PR rtl-optimization/48633
1183 * ira-build.c (loop_with_eh_edge_p): New function.
1184 (mark_loops_for_removal): Use it.
1186 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1188 PR rtl-optimization/48971
1189 * ira.c (setup_pressure_classes): Don't check register move cost
1190 for classes with one registers. Don't add pressure class if there
1191 is a pressure class with the same available hard registers.
1192 Check contains_reg_of_mode. Fix a typo in collecting
1193 temp_hard_regset. Ignore hard registers not belonging to a class.
1195 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1198 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1200 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1201 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1203 PR gcov-profile/48845
1204 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1206 2011-05-24 Richard Guenther <rguenther@suse.de>
1208 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1209 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1210 (gimple_types_compatible_p_1): Adjust.
1211 (iterative_hash_canonical_type): Do not bother about complete vs.
1213 (gimple_canonical_types_compatible_p): Likewise.
1215 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1217 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1219 2011-05-24 Richard Guenther <rguenther@suse.de>
1222 * gimple.c (gimple_register_canonical_type): Revert
1224 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1225 does not for a tree for the case where it matters. Cache
1226 pointer-type alias-sets.
1228 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1230 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1231 (OBJS): Remove options.o, opts-common.o and prefix.o.
1232 (OBJS-libcommon-target): New.
1233 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1234 (BACKEND): Include libcommon-target.a.
1235 (MOSTLYCLEANFILES): Include libcommon-target.a.
1236 (libcommon-target.a): New.
1237 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1240 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1242 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1243 parts of output shared with the driver.
1244 * optc-gen.awk: Don't generate parts of output not shared with the
1246 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1247 * doc/options.texi (SourcerInclude): Mention options-save.c.
1248 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1249 (OBJS): Add options-save.o.
1250 (options-save.c, options-save.o): New.
1251 (options.o): Update dependencies.
1252 (gcc-options.o): Remove.
1253 (mostlyclean): Remove options-save.c.
1255 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1258 * dbxout.c: Include cgraph.h.
1259 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1260 and without value expr, return NULL if no varpool node exists for
1261 it or if it is not needed.
1262 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1265 * c-decl.c (start_decl): Convert expr to void_type_node.
1267 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1269 PR rtl-optimization/48826
1270 * emit-rtl.c (try_split): When splitting a call that is followed
1271 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1273 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1275 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1276 parameters passed in memory prefer using DECL_INCOMING_RTL over
1277 the pseudos it will be copied into.
1279 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1282 * config/i386/i386.c (ix86_option_override_internal): Save the
1283 initial options after checking vzeroupper.
1285 2011-05-23 David Li <davidxl@google.com>
1287 PR tree-optimization/48988
1288 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1289 Initialize has_valid_pred for each pred chain.
1291 2011-05-23 Richard Guenther <rguenther@suse.de>
1293 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1294 (iterative_hash_gimple_type): Always hash type names.
1296 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1298 * c-typeck.c (build_function_call_vec): Tweak call to
1299 check_function_arguments.
1301 2011-05-23 Richard Guenther <rguenther@suse.de>
1303 PR tree-optimization/49115
1304 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1305 is not necessarily carried out, do not claim it kills the ref.
1306 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1308 2011-05-23 Richard Guenther <rguenther@suse.de>
1311 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1312 what pointer types we accept for folding.
1314 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1316 * gthr-gnat.c: Remove.
1317 * gthr-gnat.h: Remove.
1318 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1319 * config/t-freebsd (LIB2ADDEH): Likewise.
1320 * config/t-linux (LIB2ADDEH): Likewise.
1321 * config/t-sol2 (LIB2ADDEH): Likewise.
1322 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1323 * configure.ac (target_thread_file): Remove gnat handling.
1324 * configure: Regenerate.
1325 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1327 2011-05-23 Tristan Gingold <gingold@adacore.com>
1328 Eric Botcazou <ebotcazou@adacore.com>
1330 * gcov.c (create_file_names): If no object directory is specified,
1331 keep the directory of the file.
1333 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1335 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1336 * configure: Regenerate.
1338 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1341 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1342 failed and the comparison has a single bit signed type, use
1343 constm1_rtx instead of const1_rtx for true value.
1344 (do_store_flag): If ops->type is single bit signed type, disable
1345 signel bit test optimization and pass -1 instead of 1 as last
1346 parameter to emit_store_flag_force.
1348 2011-05-23 Tom de Vries <tom@codesourcery.com>
1351 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1353 (infer_loop_bounds_from_undefined): Use new function.
1355 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1357 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1358 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1359 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1361 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1363 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1365 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1366 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1369 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1371 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1373 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1375 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1376 UNSPEC_MOVE_PIC pattern.
1378 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1380 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1381 (sparc-*-rtems*): Likewise.
1382 (sparc64-*-elf*): Likewise.
1383 (sparc64-*-rtems*): Likewise.
1384 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1385 * config/sparc/t-crtin: New file.
1386 * config/sparc/t-sol2 (crti.o): Delete rule.
1388 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1389 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1390 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1391 (ENDFILE_SPEC): Add crtn.o.
1393 2011-05-22 Tom de Vries <tom@codesourcery.com>
1396 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1397 CODE_CONTAINS_STRUCT (TS_COMMON).
1399 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1402 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1403 only after deciding which mode to use.
1405 2011-05-22 Tom de Vries <tom@codesourcery.com>
1408 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1409 for call to get_shiftadd_cost.
1411 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1414 * config/i386/cpuid.h (bit_MMXEXT): New define.
1416 2011-05-22 Nick Clifton <nickc@redhat.com>
1418 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1419 initialisation of non-existant args[2] element. Use args[] array
1420 not arg[] array to pass arguments to build_function_type_list.
1422 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1424 PR tree-optimization/49087
1425 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1427 2011-05-21 Jason Merrill <jason@redhat.com>
1430 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1431 static storage duration.
1433 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1435 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1438 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1440 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1441 false if there are call-saved registers here...
1442 (sparc_can_use_return_insn_p): ...but here instead.
1443 (save_or_restore_regs): Fix thinko.
1444 (sparc_expand_prologue): Use current_function_is_leaf.
1445 (sparc_frame_pointer_required): Likewise.
1447 2011-05-21 Nick Clifton <nickc@redhat.com>
1450 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1452 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1454 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1455 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1457 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1459 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1460 * optc-gen.awk: Move common code to opt-read.awk.
1461 * opth-gen.awk: Likewise.
1462 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1464 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1466 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1468 2011-05-20 Tom de Vries <tom@codesourcery.com>
1471 * tree-ssa-loop-ivopts.c: Include expmed.h.
1472 (get_shiftadd_cost): New function.
1473 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1475 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1478 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1479 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1481 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1483 * Makefile.in: Update comment referring to $(OBJS-common).
1485 2011-05-20 Ian Lance Taylor <iant@google.com>
1487 * godump.c (go_output_typedef): Put enum constants in the macro
1488 hash table to avoid duplicate Go const definitions.
1490 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1492 * Makefile.in (LIBDEPS): Add libcommon.a.
1494 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1495 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1496 pretty-print.o and version.o.
1497 (OBJS-libcommon): New.
1498 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1499 (BACKEND): Add libcommon.a.
1500 (MOSTLYCLEANFILES): Likewise.
1502 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1503 (cpp$(exeext)): Likewise.
1504 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1505 pretty-print.o and input.o.
1506 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1507 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1509 (mips-tfile): Don't explicitly use version.o.
1510 (mips-tdump): Likewise.
1511 (gcov.o): Depend on $(DIAGNOSTIC_H).
1512 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1513 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1514 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1515 * gcov-dump.c: Include intl.h and diagnostic.h.
1516 (main): Initialize diagnostics.
1517 * gcov.c: Include diagnostic.h.
1519 (main): Initialize diagnostics.
1520 * lto-wrapper.c: Include diagnostic.h.
1521 (main): Initialize diagnostics.
1523 2011-05-20 Michael Matz <matz@suse.de>
1525 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1527 2011-05-20 Michael Matz <matz@suse.de>
1528 Richard Guenther <rguenther@suse.de>
1530 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1531 use lto_streamer_cache_append directly instead of returning a VEC.
1532 (preload_common_node): Remove.
1533 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1535 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1537 2011-05-20 Richard Guenther <rguenther@suse.de>
1539 PR tree-optimization/49079
1540 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1541 MEM_REFs correctly for the trailing array access detection.
1542 Special case constants the same way as decls for overall size
1545 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1547 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1550 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1552 PR tree-optimization/49073
1553 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1554 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1555 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1557 2011-05-20 Richard Guenther <rguenther@suse.de>
1560 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1561 of pointer types the same way the middle-end does.
1563 2011-05-20 Richard Guenther <rguenther@suse.de>
1565 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1566 or pointer-to chains. Delay all fixup to uniquify_nodes.
1568 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1570 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1571 (fma4_fmaddsub): Likewise
1573 2011-05-19 Jan Hubicka <jh@suse.cz>
1575 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1576 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1577 (type_pair_cache): New static var.
1578 (lookup_type_pair): Use fixed sized custom hash; make inline.
1579 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1580 calls of lookup_type_pair.
1581 (print_gimple_types_stats): Remove cache stats.
1582 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1585 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1587 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1588 when TARGET_RDRND is active.
1589 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1590 Generate dummy SImode target register when target is NULL.
1592 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1594 * config/arm/arm-fpus.def: New.
1595 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1597 * config/arm/arm-tables.opt: Regenerate.
1598 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1599 (arm_option_override): Don't decode FPU name to string here.
1600 * config/arm/arm.opt (mfpu=): Use Enum.
1601 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1602 Update dependencies.
1604 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1606 * collect2.c: Include diagnostic.h.
1607 (fatal_perror, fatal, error, fancy_abort): Remove.
1608 (main): Set progname. Call xmalloc_set_program_name and
1609 diagnostic_initialize.
1610 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1611 scan_libraries, resolve_lib_name): Call fatal_error instead of
1612 fatal and fatal_perror.
1613 * collect2.h (error, fatal, fatal_perror): Don't declare.
1614 * tlink.c: Include diagnostic-core.h.
1615 (recompile_files): Call fatal_error instead of fatal_perror.
1616 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1617 pretty-print.o and input.o.
1618 (collect2.o, tlink.o): Update dependencies.
1620 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1622 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1624 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1627 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1628 COMDAT group syntax, both SPARC and x86 variants.
1629 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1630 * configure: Regenerate.
1631 * config/sol2.h (TARGET_SOLARIS): Define.
1632 (PUSHSECTION_FORMAT): Remove.
1633 (SECTION_NAME_FORMAT): Define.
1634 * config/sol2.c: Include hashtab.h.
1635 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1636 expansion, using SECTION_NAME_FORMAT.
1637 (solaris_comdat_htab): New variable.
1638 (struct comdat_entry): Define.
1639 (comdat_hash): New function.
1640 (comdat_eq): New function.
1641 (solaris_elf_asm_comdat_section): New function.
1642 (solaris_define_comdat_signature): New function.
1643 (solaris_code_end): New function.
1644 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1645 (solaris_code_end): Declare.
1646 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1647 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1649 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1650 Remove ATTRIBUTE_UNUSED.
1651 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1652 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1653 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1654 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1655 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1656 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1657 (PUSHSECTION_FORMAT): Remove.
1658 (SECTION_NAME_FORMAT): Redefine.
1660 2011-05-19 Kai Tietz <ktietz@redhat.com>
1662 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1663 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1664 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1666 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1667 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1669 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1671 2011-05-19 Richard Guenther <rguenther@suse.de>
1674 * tree-object-size.c (addr_object_size): If the pointed-to
1675 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1677 2011-05-19 Richard Guenther <rguenther@suse.de>
1679 * gimple.c (gimple_types_compatible_p_1): Compare names of
1680 the types themselves.
1681 (iterative_hash_gimple_type): And hash them that way.
1682 (gimple_register_type_1): If we register a main variant properly
1683 initialize the leader to ourselves.
1685 2011-05-19 Tom de Vries <tom@codesourcery.com>
1688 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1689 get_loop_invariant_expr_id.
1690 (get_loop_invariant_expr_id): Use get_expr_id.
1691 (parm_decl_cost): New function.
1692 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1693 Improve bound cost estimation. Use different inv_expr_id for elim and
1696 2011-05-19 Tom de Vries <tom@codesourcery.com>
1699 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1700 cost_base.cost == 0.
1702 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1705 * config/i386/sse.md
1706 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1709 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1711 PR tree-optimization/49039
1712 * tree-vrp.c (extract_range_from_binary_expr): For
1713 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1714 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1716 2011-05-18 Tom de Vries <tom@codesourcery.com>
1719 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1721 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1723 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1724 (*tls_global_dynamic_64): Ditto.
1725 (*tls_local_dynamic_base_32_gnu): Ditto.
1726 (*tls_local_dynamic_base_64): Ditto.
1727 (tls_initial_exec_64_sun): Ditto.
1729 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1731 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1732 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1734 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1735 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1736 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1737 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1738 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1739 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1740 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1742 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1744 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1745 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1746 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1747 target_thread_pointer, arm_structure_size_boundary, struct
1748 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1749 struct abi_name, arm_all_abis): Remove.
1750 (arm_option_override) Don't process most enumerated option values here.
1751 Don't process target_fpe_name here. Work with integer not string for
1752 structure size boundary; use separate diagnostics for each case.
1753 * config/arm/arm.h (enum float_abi_type, enum
1754 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1756 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1757 arm_structure_size_boundary): Remove.
1758 * config/arm/arm.opt (mabi=): Use Enum and Init.
1759 (arm_abi_type): New Enum and EnumValue entries.
1760 (mfloat-abi=): Use Enum and Init.
1761 (float_abi_type): New Enum and EnumValue entries.
1762 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1763 (mfp16-format=): Use Enum and Init.
1764 (arm_fp16_format_type): New Enum and EnumValue entries.
1765 (mstructure-size-boundary=): Use UInteger and Init.
1766 (mtp=): Use Enum and Init.
1767 (arm_tp_type): New Enum and EnumValue entries.
1769 2011-05-18 Richard Guenther <rguenther@suse.de>
1771 PR tree-optimization/49018
1772 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1773 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1774 gimple_has_side_effects.
1776 2011-05-18 Richard Guenther <rguenther@suse.de>
1778 * gimple.c (gimple_register_type_1): New function, split out from ...
1779 (gimple_register_type): ... here. Avoid infinite recursion.
1781 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1783 PR tree-optimization/41881
1784 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1785 reduction_chains along with a macro for its access.
1786 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1787 (destroy_loop_vec_info): Free reduction chains.
1788 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1789 (vect_is_slp_reduction): New function.
1790 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1791 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1792 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1793 definition types for reduction chains.
1794 (vect_supported_load_permutation_p): Don't allow permutations for
1796 (vect_analyze_slp_instance): Support reduction chains.
1797 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1798 (vect_get_constant_vectors): Handle reduction chains.
1799 (vect_schedule_slp_instance): Mark the first statement of the
1800 reduction chain as reduction.
1802 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1804 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1805 names for group elements access.
1806 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1807 reduction chains as well. Remove data reference and interleaving
1808 related words from the fields names.
1809 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1811 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1812 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1813 vect_update_interleaving_chain, vect_same_range_drs,
1814 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1815 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1816 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1817 vect_analyze_group_access, vect_analyze_data_ref_access,
1818 vect_create_data_ref_ptr, vect_transform_strided_load,
1819 vect_record_strided_load_vectors): Likewise.
1820 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1821 vect_model_load_cost, vectorizable_store, vectorizable_load,
1822 vect_remove_stores, new_stmt_vec_info): Likewise.
1823 * tree-vect-slp.c (vect_build_slp_tree,
1824 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1826 2011-05-18 Richard Guenther <rguenther@suse.de>
1829 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1830 operand verification.
1831 (verify_gimple_assign_binary): Likewise.
1832 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1833 to non-1-precision BOOLEAN_TYPEs.
1835 2011-05-18 Tom de Vries <tom@codesourcery.com>
1838 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1840 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1842 PR tree-optimization/49000
1843 * tree-ssa.c (execute_update_addresses_taken): Call
1844 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1845 be rewritten and decl has been marked for renaming, reset
1848 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1850 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1851 enum_opts_set when testing if attributes have set -mfpmath=.
1853 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1855 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1857 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1859 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1861 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1862 id.transform_lang_insert_block with NULL.
1864 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1866 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1867 (output_fp_compare): Change args 3 and 4 to bool.
1868 (ix86_expand_call): Change arg 6 to bool.
1869 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1870 (ix86_attr_length_vex_default): Change arg 3 to bool.
1871 * config/i386/i386.md: Update all uses.
1872 * config/i386/i386.c: Ditto.
1873 (ix86_flags_dependent): Change return type to bool.
1875 2011-05-17 Richard Guenther <rguenther@suse.de>
1877 * gimple.c (type_hash_pair_compare): Fix comparison.
1879 2011-05-17 Richard Guenther <rguenther@suse.de>
1881 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1882 case some more, fix final hash value of the non-singleton case.
1884 2011-05-17 Richard Guenther <rguenther@suse.de>
1888 2011-05-16 Richard Guenther <rguenther@suse.de>
1890 * gimple.c (gimple_types_compatible_p_1): Use names of the
1891 type itself, not its main variant.
1892 (iterative_hash_gimple_type): Likewise.
1894 2011-05-17 Richard Guenther <rguenther@suse.de>
1896 * gimple.c (gimple_register_canonical_type): Use the main-variant
1897 leader for computing the canonical type.
1899 2011-05-17 Nick Clifton <nickc@redhat.com>
1901 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1904 * config/rx/rx.md: Add peephole to remove redundant extensions
1906 (bitset_in_memory): Use rx_restricted_mem_operand.
1907 (bitinvert_in_memory): Likewise.
1908 (bitclr_in_memory): Likewise.
1910 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1911 Nick Clifton <nickc@redhat.com>
1913 * config/rx/rx.md: Add peepholes to match a register move followed
1914 by a comparison of the moved register. Replace these with an
1915 addition of zero that does both actions in one instruction.
1917 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1920 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1921 predicate to allow CONST_INT.
1922 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1924 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1926 * opts-common.c (opt_enum_arg_to_value): New.
1927 * opts.h (opt_enum_arg_to_value): Declare.
1928 * config/i386/i386.opt (fpmath): Remove.
1929 (mfpmath=): Use Enum, Init and Save.
1930 (fpmath_unit): New Enum and EnumValue entries.
1931 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1932 name for function fpmath state.
1933 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1934 * config/i386/i386.c: Include diagnostic.h.
1935 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1936 (ix86_target_string): Take enum fpmath_unit value instead of string.
1937 (ix86_debug_options): Update call to ix86_target_string.
1938 (ix86_option_override_internal): Don't process fpmath strings here.
1939 (x86_function_specific_save, ix86_function_specific_restore):
1940 Don't handle fpmath state specially.
1941 (ix86_function_specific_print): Pass fpmath state to
1942 ix86_target_string instead of printing in this function.
1943 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1944 Handle enum attributes.
1945 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1946 (ix86_valid_target_attribute_tree): Update option_strings
1947 handling. Handle fpmath as enum option.
1948 (ix86_can_inline_p): Update field names for function fpmath state.
1949 (ix86_expand_builtin): Update call to ix86_target_string.
1950 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1951 (ix86_fpmath): Remove.
1952 * config/i386/t-i386 (i386.o): Update dependencies.
1954 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1956 PR preprocessor/48677
1957 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1958 from decoded_options[0], not from itself.
1960 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1962 * config/i386/constraints.md (z): New constraint.
1963 * config/i386/i386.c (c): New mode attribute.
1964 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1965 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1966 constraint for operand 0.
1967 (*call_vzeroupper): Ditto.
1968 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1969 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1970 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1971 Use "lzm" constraint for operand 0.
1972 (*call_pop_vzeroupper): Ditto.
1973 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1974 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1975 constraint for operand 0.
1976 (*sibcall_vzeroupper): Ditto.
1977 (*sibcall_rex64_ms_sysv): Ditto.
1978 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1979 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1980 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1981 (*sibcall_pop_vzeroupper): Ditto.
1982 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1983 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1984 mode iterator. Use "<c>zm" constraint for operand 1.
1985 (*call_value_vzeroupper): Ditto.
1986 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1988 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1989 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1990 *call_value_pop_1. Use "lzm" constraint for operand 1.
1991 (*call_value_pop_vzeroupper): Ditto.
1992 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1993 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1994 mode iterator. Use "Uz" constraint for operand 1.
1995 (*sibcall_value_vzeroupper): Ditto.
1996 (*sibcall_value_rex64_ms_sysv): Ditto.
1997 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1998 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1999 constraint for operand 1.
2000 (*sibcall_value_pop_vzeroupper): Ditto.
2001 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2002 and "z" constraint for operand 2.
2003 (*tls_global_dynamic_32_gnu): Ditto.
2004 (*tls_local_dynamic_base_32_gnu): Ditto.
2005 (*tls_local_dynamic_base_64): Ditto.
2006 (*tls_local_dynamic_32_once): Ditto.
2007 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2009 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2011 2011-05-16 Richard Guenther <rguenther@suse.de>
2013 * gimple.c (gimple_types_compatible_p_1): Use names of the
2014 type itself, not its main variant.
2015 (iterative_hash_gimple_type): Likewise.
2017 2011-05-16 Richard Guenther <rguenther@suse.de>
2019 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2020 always visit pointer target and function result and argument types.
2022 2011-05-16 Jason Merrill <jason@redhat.com>
2025 * tree-inline.c (copy_statement_list): Put back recursion.
2027 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2031 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2032 * config/avr/avr.md ("*ior<mode>qi.byte0",
2033 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2035 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2038 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2039 register is needed for a function argument.
2041 2011-05-16 Richard Guenther <rguenther@suse.de>
2043 * gimple.c (struct type_hash_pair): New type.
2044 (type_hash_pair_compare): New function.
2045 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2047 2011-05-16 Revital Eres <revital.eres@linaro.org>
2049 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2051 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2053 * config/i386/i386.md (floating point move splitters): Fix
2054 usage of standard_80387_constant_p.
2055 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2057 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2059 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2061 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2063 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2064 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2065 (tree_ssa_lim_finalize): Likewise.
2067 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2069 * config/i386/constraint.md (Yd, Yx): New register constraints.
2070 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2071 Yd conditional register constraint.
2072 (*movtf_internal): Use standard_sse_constant_opcode.
2073 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2074 Yx conditional register constraint.
2075 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2076 Yd conditional register constraint. Use standard_sse_constant_p to
2077 check for valid SSE constants and call standard_sse_constant_opcode to
2079 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2080 constants and call standard_sse_constant_opcode to output SSE insn.
2081 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2082 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2083 optimize_size is set.
2084 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2086 2011-05-14 Tobias Burnus <burnus@net-b.de>
2088 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2090 2011-05-13 Martin Jambor <mjambor@suse.cz>
2092 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2093 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2094 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2095 (evaluate_conditions_for_ipcp_clone): Removed.
2096 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2097 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2098 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2100 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2102 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2103 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2104 lieu of MAY_HAVE_DEBUG_STMTS.
2105 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2106 debug statements if !MAY_HAVE_DEBUG_STMTS.
2108 2011-05-13 Martin Thuresson <martint@google.com>
2110 PR gcov-profile/47793
2111 * libgcov.c (gcov_exit): Support relative profile paths.
2112 * doc/invoke.texi (-fprofile-dir): Update for above change.
2114 2011-05-13 Richard Guenther <rguenther@suse.de>
2116 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2117 type-pair caching, do not compare hashes.
2119 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2122 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2123 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2125 2011-05-13 Kai Tietz <ktietz@redhat.com>
2127 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2128 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2129 compatible type for TRUTH_NOT_EXPR.
2131 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2133 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2134 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2135 can_create_pseudo_p ().
2137 2011-05-13 Richard Guenther <rguenther@suse.de>
2140 * gimple.c (iterative_hash_gimple_type): Revert change in
2141 pointer target and function result and argument hashing.
2143 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2145 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2146 (*movxf_internal_nointeger): Ditto.
2147 (*movdf_internal_rex64): Ditto.
2148 (*movdf_internal): Ditto.
2149 (*movdf_internal_nointeger): Ditto.
2150 (*movsf_internal): Ditto.
2151 (sincos splitters): Use can_create_pseudo ().
2153 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2155 * config/i386/i386-opts.h: New.
2156 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2157 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2158 ix86_section_threshold): Remove.
2159 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2160 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2162 (ix86_option_override_internal): Don't decode strings for options
2163 other than -march=, -mtune= and -mfpmath=. Don't allow for
2164 __attribute__ uses in remaining diagnostics for options with
2165 string arguments. Don't check for integer arguments being negative.
2166 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2167 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2168 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2169 ix86_branch_cost, ix86_section_threshold): Remove.
2170 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2172 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2174 (masm=): Use Enum and Init.
2175 (asm_dialect): New Enum and EnumValue entries.
2176 (mbranch-cost=): Use UInteger.
2177 (mlarge-data-threshold=): Use UInteger and Init.
2178 (mcmodel=): Use Enum and Init.
2179 (cmodel): New Enum and EnumValue entries.
2180 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2181 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2182 mregparm=): Use UInteger.
2183 (mstringop-strategy=): Use Enum and Init.
2184 (stringop_alg): New Enum and EnumValue entries.
2185 (mtls-dialect=): Use Enum and Init.
2186 (tls_dialect): New Enum and EnumValue entries.
2187 (mabi=): Use Enum and Init.
2188 (calling_abi): New Enum and EnumValue entries.
2189 (mveclibabi=): Use Enum and Init.
2190 (ix86_veclibabi): New Enum and EnumValue entries.
2192 2011-05-13 Nick Clifton <nickc@redhat.com>
2194 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2195 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2197 2011-05-13 Kai Tietz <ktietz@redhat.com>
2200 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2201 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2202 (gimple_boolify): Check for cast for boolean_type_node instead for
2205 2011-05-13 Richard Guenther <rguenther@suse.de>
2207 PR tree-optimization/48172
2208 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2209 multiplying by number of iterations for equal step.
2210 (vect_create_cond_for_alias_checks): Likewise.
2212 2011-05-13 Andreas Schwab <schwab@redhat.com>
2214 * configure.ac: Use AS_HELP_STRING throughout.
2215 * configure: Regenerate.
2217 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2219 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2220 (ix86_emit_restore_regs_using_mov): Likewise.
2221 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2223 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2225 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2226 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2227 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2228 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2229 RTX_OK_FOR_OLO10_P): ...here.
2230 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2233 2011-05-12 Kai Tietz <ktietz@redhat.com>
2235 * gimplify.c (gimple_boolify): Re-boolify expression
2236 arguments even if expression type is of kind BOOLEAN_TYPE.
2237 (gimplify_boolean_expr): Removed.
2238 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2239 and XOR. Additional take care that we keep expression's type.
2240 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2241 of TRUTH_AND|OR|XOR_EXPR.
2243 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2245 PR tree-optimization/48975
2246 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2247 on all bbs here and free and clear ifc_bbs at the end.
2249 2011-05-12 Richard Guenther <rguenther@suse.de>
2251 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2252 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2253 until after simple checks.
2254 (gimple_types_compatible_p): Likewise.
2255 (iterative_hash_gimple_type): Always hash pointer targets
2256 and function return and argument types.
2257 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2258 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2259 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2260 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2261 completely in the simple compare section.
2262 (gimple_register_canonical_type): Query the cache again after
2265 2011-05-12 Richard Guenther <rguenther@suse.de>
2267 PR tree-optimization/48172
2268 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2269 the number of iterations from the segment size calculation.
2270 (vect_create_cond_for_alias_checks): Adjust.
2272 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2275 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2276 if validate_subreg fails.
2278 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2280 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2281 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2284 2011-05-12 DJ Delorie <dj@redhat.com>
2286 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2287 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2288 created builtin into rx_builtins array.
2289 (rx_builtin_decl): New function.
2290 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2292 2011-05-12 DJ Delorie <dj@redhat.com>
2293 Nick Clifton <nickc@redhat.com>
2295 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2296 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2297 (rx_is_legitimate_address): Add pre-decrement and post-increment
2298 addressing in HImode and QImode. Fix test for out of range
2300 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2301 (rx_align_for_label): Test label before extracting its usage count.
2302 (rx_adjust_insn_lengths): Fix selection of insn codes.
2303 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2305 2011-05-11 Jason Merrill <jason@redhat.com>
2307 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2309 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2311 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2312 reindent the subsequent block.
2314 2011-05-11 Satoru Takabayashi <satorux@google.com>
2315 Paul Pluzhnikov <ppluzhnikov@google.com>
2317 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2318 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2319 * config.in: Add LINKER_HASH_STYLE.
2320 * configure.ac: Add --with-linker-hash-style.
2321 * configure: Regenerate.
2323 2011-05-11 Richard Guenther <rguenther@suse.de>
2326 * gimple.c (iterative_hash_canonical_type): Fix typo.
2328 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2330 * config/i386/i386.c (legitimize_tls_address)
2331 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2332 expanders directly for TARGET_GNU2_TLS. Determine pic and
2333 __tls_get_addr symbol reference here. Update call to
2334 gen_tls_global_dynamic_{32,64} for added arguments.
2335 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2336 expanders directly for TARGET_GNU2_TLS. Determine
2337 __tls_get_addr symbol reference here. Update call to
2338 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2339 unique UNSPEC REG_EQUIV to libcall block.
2340 (ix86_tls_get_addr): Declare static.
2341 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2342 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2343 Do not determine pic and __tls_get_addr symbol reference here. Do not
2344 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2345 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2346 (tls_global_dynamic_64): Add operand 2. Do not determine
2347 __tls_get_addr symbol reference here. Do not call
2348 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2349 (tls_local_dynamic_base64): Ditto for operand 1.
2351 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2353 * function.c (expand_function_start): Initialize stack_check_probe_note
2354 only if the generic stack checking mechanism is used.
2356 2011-05-11 Richard Guenther <rguenther@suse.de>
2358 PR tree-optimization/15256
2359 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2360 (A & B) | C, combine (A op CST1) op CST2.
2361 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2362 visit assigns that have uses.
2364 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2366 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2367 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2368 (unpack_ts_type_common_value_fields): ...this. Update comment.
2369 (unpack_value_fields): Adjust for renaming.
2370 (lto_input_ts_type_tree_pointers): Split into...
2371 (lto_input_ts_type_common_tree_pointer): ...this and...
2372 (lto_input_ts_type_non_common_tree_pointers): ...this.
2373 (lto_input_tree_pointers): Adjust for above split.
2374 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2375 (pack_ts_type_common_value_fields): ...this. Update comment.
2376 (lto_output_ts_type_tree_pointers): Split into...
2377 (lto_output_ts_type_common_tree_pointers): ...this and...
2378 (lto_output_ts_type_non_common_tree_pointers): ...this.
2379 (lto_output_tree_pointers): Adjust for above split.
2380 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2381 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2382 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2383 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2385 (struct tree_type): Split into...
2386 (struct tree_type_common: ...this and...
2387 (struct tree_type_with_lang_specific): ...this and...
2388 (struct tree_type_non_common): ...this. Adjust accessor macros
2390 (TYPE_VALUES_RAW): Define.
2391 (union tree_node): Update for above changes.
2392 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2394 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2395 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2396 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2397 * treestructu.def (TS_TYPE): Remove.
2398 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2401 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2404 * tree-ssa.c (reset_debug_uses): New function.
2405 * tree-flow.h (reset_debug_uses): New prototype.
2406 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2407 * tree-loop-distribution.c (generate_loops_for_partition): Call
2408 reset_debug_uses on the stmts that will be removed. Keep around
2409 all debug stmts, don't count them as bits in partition bitmap.
2410 (generate_builtin): Don't count debug stmts or labels as bits in
2413 2011-05-11 Richard Guenther <rguenther@suse.de>
2415 * gimple.c (gimple_type_hash_1): Merge with ...
2416 (gimple_type_hash): ... this.
2417 (gtc_visit): Remove mode parameter and simplify accordingly.
2418 (gimple_types_compatible_p_1): Likewise.
2419 (gimple_types_compatible_p): Likewise.
2420 (iterative_hash_gimple_type): Likewise.
2422 (gimple_type_eq): Adjust.
2424 2011-05-11 Revital Eres <revital.eres@linaro.org>
2426 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2427 enters the branch create an anti edge in the opposite direction
2428 to prevent the creation of reg-moves.
2429 * modulo-sched.c: Adjust comment to reflect the fact we are
2430 scheduling closing branch.
2431 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2432 (stage_count): New field in struct partial_schedule.
2433 (calculate_stage_count): New function.
2434 (normalize_sched_times): Rename to reset_sched_times and handle
2435 incrementing the sched time of the nodes by a constant value
2436 passed as parameter.
2437 (duplicate_insns_of_cycles): Skip closing branch.
2438 (sms_schedule_by_order): Schedule closing branch.
2439 (ps_insn_find_column): Handle closing branch.
2440 (sms_schedule): Call reset_sched_times and adjust the code to
2441 support scheduling of the closing branch.
2442 (ps_insert_empty_row): Update calls to normalize_sched_times
2443 and rotate_partial_schedule functions.
2445 2011-05-11 Richard Guenther <rguenther@suse.de>
2448 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2450 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2452 * opts.c (finish_options): Move warning settings from process_options.
2453 * toplev.c (process_options): Move warning settings to finish_options.
2455 2011-05-11 Richard Guenther <rguenther@suse.de>
2457 PR tree-optimization/18041
2458 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2459 (simplify_bitwise_binary): ... this. Handle operand conversions
2460 by applying them to the result instead.
2461 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2463 2011-05-11 Richard Guenther <rguenther@suse.de>
2465 * gimple.c (gimple_canonical_types_compatible_p): Split out
2466 from gimple_types_compatible_p and friends. Do not recurse
2467 to pointed-to types.
2468 (gimple_canonical_type_eq): Use it.
2469 (iterative_hash_canonical_type): Split out from
2470 iterative_hash_gimple_type and friends. Do not recurse
2471 to pointed-to types.
2472 (gimple_canonical_type_hash): Use it, allocate the hash here.
2474 2011-05-11 Revital Eres <revital.eres@linaro.org>
2476 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2479 2011-05-11 Revital Eres <revital.eres@linaro.org>
2481 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2482 instead of PREV_INSN.
2484 2011-05-11 Revital Eres <revital.eres@linaro.org>
2486 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2487 * loop-doloop.c (doloop_condition_get): Likewise.
2488 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2490 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2492 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2494 * tree.def (CASE_LABEL_EXPR): Add an operand.
2495 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2497 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2499 * c-decl.c (c_override_global_bindings_to_false): Remove.
2500 (global_bindings_p): Don't check
2501 c_override_global_bindings_to_false.
2502 * c-tree.h (c_override_global_bindings_to_false): Remove.
2503 * c-typeck.c (composite_type): Don't set
2504 c_override_global_bindings_to_false.
2506 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2508 PR target/48857, 48495
2509 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2511 (VSX_MOVE_MODE): Ditto.
2512 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2513 VSX vector types. Add V2DImode.
2514 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2515 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2516 (MODES_TIEABLE_P): Ditto.
2518 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2519 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2521 (init_cumulative_args): Ditto.
2522 (rs6000_function_arg_boundary): Ditto.
2523 (rs6000_function_arg_advance_1): Ditto.
2524 (rs6000_function_arg): Ditto.
2525 (rs6000_function_ok_for_sibcall): Ditto.
2526 (emit_frame_save): Ditto.
2527 (rs6000_function_value): Ditto.
2528 (rs6000_libcall_value): Ditto.
2530 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2532 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2533 i386/darwin-lib.h to $libgcc_tm_file.
2534 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2536 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2538 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2540 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2542 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2543 * config/rs6000/rs6000-tables.opt: New file (generated).
2544 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2545 rs6000/rs6000-tables.opt to extra_options.
2546 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2547 * config/rs6000/rs6000.c (rs6000_select): Remove.
2548 (processor_target_table): Move contents to rs6000-cpus.def.
2549 (darwin_rs6000_override_options): Check
2550 global_options_set.x_rs6000_cpu_index instead of
2551 rs6000_select[1].string.
2552 (rs6000_option_override_internal): Likewise.
2553 (rs6000_handle_option): Don't assert that global structures are in
2554 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2555 (rs6000_default_cpu): New variable.
2556 (rs6000_file_start): Set it instead of local default_cpu. Check
2557 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2558 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2559 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2560 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2561 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2562 rs6000_select): Remove.
2563 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2565 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2566 * config/rs6000/t-rs6000
2567 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2568 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2569 global_options_set.x_rs6000_cpu_index instead of
2570 rs6000_select[1].string.
2571 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2572 global_options_set.x_rs6000_cpu_index instead of
2573 rs6000_select[1].string.
2575 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2577 * config.gcc (libgcc_tm_file): Define instead of including files
2578 from ../../libgcc/config/ in tm_file.
2579 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2580 * configure: Regenerate.
2581 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2582 libgcc_tm.h, cs-libgcc_tm.h): New.
2583 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2584 (clean): Remove libgcc_tm.h.
2585 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2586 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2587 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2589 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2592 * config/avr/avr.c (avr_ret_register): Return unsigned int
2594 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2595 it to avr_libcall_value.
2596 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2598 (avr_expand_binop_builtin): Ditto.
2599 (avr_expand_unop_builtin): Ditto.
2601 2011-05-10 DJ Delorie <dj@redhat.com>
2603 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2604 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2605 * config/rx/rx.c (rx_align_for_label): Add label and
2606 uses_threshold parameters. Do not align when the label is not
2608 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2610 2011-05-10 Richard Guenther <rguenther@suse.de>
2612 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2613 a series of conversions and apply foldings similar to what
2615 (tree_ssa_forward_propagate_single_use_vars): Call it.
2617 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2619 PR tree-optimization/48611
2620 PR tree-optimization/48794
2621 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2622 referenced from RESX or EH_DISPATCH arguments.
2625 * dfp.c (decimal_to_decnumber): Handle conversion from
2626 dconst{1,2,m1,half}.
2628 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2630 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2631 for !flag_prefer_avx128.
2632 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2634 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2636 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2637 (fold_ternary_loc): Use expr_location_or.
2639 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2642 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2643 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2644 Pmode and mem_mode is not VOIDmode.
2646 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2648 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2649 TYPE_QUAL_RESTRICT): Convert to enum.
2651 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2653 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2654 (const_pow2_1_to_8_operand): Ditto.
2655 (const_pow2_1_to_128_operand): Ditto.
2656 (const_pow2_1_to_32768_operand): Ditto.
2657 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2658 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2659 in insn constraint to check integer value of operand 3.
2660 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2662 (PINSR_MODE): New mode iterator.
2663 (sse2p4_1): New mode attribute.
2664 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2665 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2666 iterator. Use const_int_operand instead of
2667 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2668 exact_log2 in insn constraint to check integer value of operand 3.
2670 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2672 * config/i386/sse.md (blendbits): Remove mode attribute.
2673 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2674 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2675 Check integer value of operand 3 in insn constraint.
2677 2011-05-09 Richard Guenther <rguenther@suse.de>
2679 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2681 (lto_symtab_merge): Likewise. Do not register types here.
2682 (lto_symtab_merge_decls_2): Likewise.
2683 (lto_symtab_merge_decls_1): Likewise.
2684 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2685 * gimple.c (enum gtc_mode): Declare.
2686 (gimple_types_compatible_p): Make static.
2688 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2690 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2691 temporary register to match Pmode.
2693 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2695 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2696 and *vec_concatv4si_1_avx.
2698 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2700 PR rtl-optimization/48927
2701 * ira-conflicts.c (commutative_constraint_p): Use
2702 recog_data.alternative_enabled_p to disable alternatives where
2703 "enabled" attribute is false.
2704 (get_dup_num): Ditto.
2705 * ira-lives.c (single_reg_class): Ditto.
2706 (ira_implicitly_set_insn_hard_regs): Ditto.
2708 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2710 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2711 (dataflow_set_preserve_mem_locs): Likewise.
2713 2011-05-09 Philipp Thomas <pth@suse.de>
2715 * config/mep/mep.c (mep_validate_vliw): Syntax description
2716 should not be translated.
2718 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2720 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2721 * config/mips/mips-tables.opt: New file (generated).
2722 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2723 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2724 MIPS_ARCH_OPTION_NATIVE): Define.
2725 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2727 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2728 mips_parse_cpu): Remove.
2729 (mips_cpu_info_from_opt, mips_default_arch): New.
2730 (mips_handle_option): Don't assert that global structures are in
2731 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2732 (mips_option_override): Use new variables and functions to set
2733 state of these options. Use strcmp to check for individual CPU names.
2734 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2736 * config/mips/mips.opt (march=): Use ToLower and Enum.
2737 (mips): Use ToLower, Enum and Var.
2738 (mtune=): Use ToLower and Enum.
2739 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2741 2011-05-08 Jan Hubicka <jh@suse.cz>
2743 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2744 Arrange type pairs to be UID ordered.
2745 (gimple_lookup_type_leader): Make inline.
2747 2011-05-09 Nick Clifton <nickc@redhat.com>
2750 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2754 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2757 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2759 * combine.c (simplify_comparison): Abstract out parts into...
2760 (simplify_compare_const): ... new function.
2761 (try_combine): Generalize parallel arithmetic/compare combining
2762 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2764 2011-05-08 Jan Hubicka <jh@suse.cz>
2766 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2767 (cgraph_create_virtual_clone): Call hooks once virtual clone
2769 * cgraph.h (cgraph_clone_node): Update prototype.
2770 * ipa-cp.c (ipcp_estimate_growth): Use
2771 estimate_ipcp_clone_size_and_time.
2772 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2773 * lto-cgraph.c (input_node): Update.
2774 * ipa-inline.c (recursive_inlining): Update.
2775 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2776 (evaluate_conditions_for_known_args): Break out from ...
2777 (evaluate_conditions_for_edge): ... here.
2778 (evaluate_conditions_for_ipcp_clone): New function.
2779 (inline_node_duplication_hook): Update clone summary based
2781 (estimate_callee_size_and_time): Rename to ...
2782 (estimate_node_size_and_time): take NODE instead of EDGE;
2783 take POSSIBLE_TRUTHS as argument.
2784 (estimate_callee_size_and_time): Update.
2785 (estimate_ipcp_clone_size_and_time): New function.
2786 (do_estimate_edge_time): Update.
2788 2011-05-08 Richard Guenther <rguenther@suse.de>
2792 * expmed.c (expand_shift_1): Compute adjusted constant shift
2795 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2797 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2799 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2801 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2803 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2805 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2807 2011-05-07 Jan Hubicka <jh@suse.cz>
2809 * ipa-inline-transform.c (inline_call): Account when program size
2811 * ipa-inline.c (relative_time_benefit): New function.
2812 (edge_badness): Reorganize to be power 2 based; fix thinko when
2813 computing badness for negative growth; update comments to match
2814 reality; better dumps.
2816 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2818 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2819 type to bool and adjust comment.
2820 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2821 (fold_mathfn_compare): Remove calls to global_bindings_p.
2822 (fold_inf_compare): Likewise.
2823 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2824 * c-tree.h (global_bindings_p): Adjust prototype.
2825 * c-decl.c (global_bindings_p): Return bool and simplify.
2827 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2829 PR tree-optimization/48837
2830 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2831 when accumulator transformation is performed.
2833 2011-05-06 Jan Hubicka <jh@suse.cz>
2835 * i386.h (ix86_tune_indices): Add
2836 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2837 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2838 * i386.c (initial_ix86_tune_features): Add
2839 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2840 (software_prefetching_beneficial_p): Remove predicate.
2841 (ix86_option_override_internal): Use new macro.
2843 2011-05-06 Jan Hubicka <jh@suse.cz>
2845 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2847 2011-05-06 Jan Hubicka <jh@suse.cz>
2849 * cgraph.c (cgraph_add_thunk): Create real function node instead
2850 of alias node; finalize it and mark needed/reachale; arrange visibility
2851 to be right and add it into the corresponding same comdat group list.
2852 (dump_cgraph_node): Dump thunks.
2853 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2854 cgraph_function_with_gimple_body_p,
2855 cgraph_first_function_with_gimple_body,
2856 cgraph_next_function_with_gimple_body): New functions.
2857 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2859 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2860 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2861 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2862 devirtualization when optimizing.
2863 (verify_cgraph_node): Verify thunks.
2864 (cgraph_analyze_function): Analyze thunks.
2865 (cgraph_mark_functions_to_output): Output thunks only in combination
2866 with function they are assigned to.
2867 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2868 alias into normal node.
2869 (assemble_thunks): New functoin.
2870 (cgraph_expand_function): Use it.
2871 * lto-cgraph.c (lto_output_node): Stream thunks.
2872 (input_overwrite_node): Stream in thunks.
2873 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2874 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2875 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2876 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2877 (inline_analyze_function): Do not care about thunk jump functions.
2878 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2879 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2880 cgraph_function_with_gimple_body_p.
2881 * passes.c (do_per_function_toporder): Use
2882 cgraph_function_with_gimple_body_p.
2883 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2884 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2885 (function_called_by_processed_nodes_p): Likewise.
2887 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2889 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2890 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2892 (mabi=): Replace with separate entries for mabi=altivec,
2893 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2894 mabi=ieeelongdouble and mabi=ibmlongdouble.
2895 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2896 check for -mabi=spe without SPE ABI support here.
2897 (rs6000_handle_option): Replace OPT_mabi_ handling with
2898 OPT_mabi_altivec and OPT_mabi_spe handling.
2900 2011-05-06 Cary Coutant <ccoutant@google.com>
2902 * dwarf2out.c (contains_subprogram_definition): New function.
2903 (should_move_die_to_comdat): Call it.
2905 2011-05-06 Jeff Law <law@redhat.com>
2907 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2908 remove_ctrl_stmt_and_useless_edges.
2909 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2910 (fixup_template_block, thread_single_edge): Likewise.
2911 (mark_threaded_blocks): Use THREAD_TARGET.
2913 2011-05-06 Alan Modra <amodra@gmail.com>
2916 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2917 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2919 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2921 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2922 constraint modifier to "r".
2924 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2926 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2927 fall through for OPT_mcmodel_.
2929 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2931 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2933 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2935 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2938 * config/arm/arm.opt (marm): Document it.
2939 (mthumb): Reject negative variant.
2941 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2944 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2945 Fix typo in "ccvt" variable name.
2947 2011-05-06 Tristan Gingold <gingold@adacore.com>
2950 * config/vms/vms-ar.c (main): Remove cwd variable.
2952 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2955 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2957 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2959 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2960 * gimplify.c (gimplify_switch_expr): Likewise.
2961 * omp-low.c (expand_omp_sections): Likewise.
2962 * tree-eh.c (lower_try_finally_switch): Likewise.
2963 (lower_eh_dispatch): Likewise.
2964 * tree.h (build_case_label): Declare.
2965 * tree.c (build_case_label): Define.
2967 2011-05-05 Jason Merrill <jason@redhat.com>
2970 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2971 (copy_statement_list): Don't recurse.
2972 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2975 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2977 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2978 through from -mfpu= handling.
2979 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2981 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2983 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2986 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2988 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2990 (hppa[12]*-*-hpux11*): Ditto.
2991 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2992 * config/ia64/hpux-unix2003.h: New.
2993 * config/pa/pa-hpux1131.opt: New.
2994 * config/pa/pa-hpux1131.h: New.
2995 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2996 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2997 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2999 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3002 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3003 instead of mode as 3rd argument to recursive call.
3004 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3005 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3007 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3008 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3009 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3010 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3012 2011-05-05 Julian Brown <julian@codesourcery.com>
3014 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3015 parenthesis in D-register case.
3017 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3019 * opt-functions.awk (var_type_struct): Handle Enum options.
3020 * optc-gen.awk: Don't check range of variables of character type.
3021 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3022 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3023 rs6000_sdata_name, rs6000_explicit_options): Remove.
3024 (rs6000_option_override_internal): Check for -malign-power here.
3025 Use global_options_set instead of rs6000_explicit_options.
3026 (rs6000_parse_fpu_option): Remove.
3027 (rs6000_handle_option): Access variables via opts and opts_set
3028 pointers. Use error_at and warning_at. Add fall-through
3029 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3030 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3031 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3032 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3033 here. Don't use rs6000_parse_fpu_option.
3034 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3035 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3036 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3038 (mspe): Use Var and Save.
3039 (mtraceback=): Use Enum and Var.
3040 (rs6000_traceback_type): New Enum and EnumValue entries.
3041 (mfloat-gprs=): Use Enum, Var and Save.
3042 (rs6000_float_gprs): New Enum and EnumValue entries.
3043 (mlong-double-): use Var and Save.
3044 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3045 (malign-): Use Enum and Var.
3046 (rs6000_alignment_flags): New Enum and EnumValue entries.
3048 (fpu_type_t): New Enum and EnumValue entries.
3049 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3050 global_options_set instead of rs6000_explicit_options.
3051 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3052 global_options_set instead of rs6000_explicit_options.
3053 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3054 global_options_set instead of rs6000_explicit_options.
3055 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3056 global_options_set instead of rs6000_explicit_options.
3057 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3058 global_options_set instead of rs6000_explicit_options.
3059 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3060 global_options_set instead of rs6000_explicit_options.
3061 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3063 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3064 global_options_set instead of rs6000_explicit_options.
3065 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3066 (rs6000_cmodel): New Enum and EnumValue entries.
3067 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3068 global_options_set instead of rs6000_explicit_options.
3069 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3070 (mtls-size=): Use Enum and Var.
3071 (rs6000_tls_size): New Enum and EnumValue entries.
3073 2011-05-05 Michael Matz <matz@suse.de>
3075 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3076 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3077 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3078 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3079 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3080 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3081 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3082 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3083 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3084 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3085 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3086 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3087 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3088 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3089 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3090 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3092 2011-05-05 Richard Guenther <rguenther@suse.de>
3094 * expmed.c (expand_variable_shift): Rename to ...
3095 (expand_shift_1): ... this. Take an expanded shift amount.
3096 For rotates recurse directly not building trees for the shift amount.
3097 (expand_variable_shift): Wrap around expand_shift_1.
3098 (expand_shift): Adjust.
3100 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3102 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3104 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3106 * tree.h (get_pending_sizes): Remove prototype.
3107 (put_pending_size): Likewise.
3108 (put_pending_sizes): Likewise.
3109 * stor-layout.c (pending_sizes): Delete.
3110 (get_pending_sizes): Likewise.
3111 (put_pending_size): Likewise.
3112 (put_pending_sizes): Likewise.
3113 (variable_size): Do not call put_pending_size and tidy up.
3114 * function.h (struct function): Remove dont_save_pending_sizes_p.
3115 * lto-streamer-in.c (input_function): Do not stream it.
3116 * lto-streamer-out.c (output_function): Likewise.
3117 * tree-inline.c (initialize_cfun): Do not copy it.
3118 * c-decl.c (store_parm_decls): Do not set it.
3119 * omp-low.c (create_task_copyfn): Likewise.
3120 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3122 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3124 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3126 (*movdf_internal): Ditto.
3127 (*movdf_internal_nointeger): Ditto.
3128 (*movsf_internal): Ditto.
3130 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3132 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3133 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3134 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3135 (c_variable_size): Remove.
3136 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3137 call put_pending_sizes.
3138 (get_parm_info): Add parameter expr. Use it to set
3139 arg_info->pending_sizes.
3140 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3142 * c-parser.c (c_parser_parms_declarator): Update call to
3143 c_parser_parms_list_declarator.
3144 (c_parser_parms_list_declarator): Take parameter expr. Update
3145 call to push_parm_decl. Update recursive call. Don't call
3146 get_pending_sizes. Update calls to get_parm_info.
3147 (c_parser_objc_method_definition): Update calls to
3148 c_parser_objc_method_decl and objc_start_method_definition.
3149 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3150 (c_parser_objc_method_decl): Add parameter expr. Update call to
3152 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3153 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3154 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3156 2011-05-05 Michael Hope <michael.hope@linaro.org>
3159 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3162 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3164 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3165 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3166 (spu_output_mi_thunk): New function.
3168 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3170 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3171 targetm.asm_out.print_operand.
3172 * config/sol2.c: Include target.h.
3174 2011-05-04 Jan Hubicka <jh@suse.cz>
3176 * ipa-inline.c (reset_edge_caches): New function.
3177 (update_caller_keys): Add check_inlinablity_for; do not
3178 reset edge caches; remove now unnecesary loop.
3179 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3180 (update_all_callee_keys): Likewise.
3181 (inline_small_functions): Sanity check cache; update code
3184 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3186 PR rtl-optimization/47612
3187 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3188 as the last insn of the sequence to be moved.
3190 2011-05-04 Tobias Burnus <burnus@net-b.de>
3193 * doc/invoke.texi (Ofast): Document that it
3194 enables Fortran's -fno-protect-parens.
3196 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3198 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3200 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3202 * stor-layout.c (variable_size): Do not issue errors.
3204 2011-05-04 Richard Guenther <rguenther@suse.de>
3206 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3207 for array-ref indices.
3208 (tree_coverage_counter_addr): Likewise.
3209 (build_fn_info_type): Use size_int for index types.
3210 (build_gcov_info): Likewise.
3212 2011-05-04 Richard Guenther <rguenther@suse.de>
3214 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3216 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3217 for constructor indices.
3218 (push_init_level): Likewise.
3220 2011-05-04 Richard Guenther <rguenther@suse.de>
3222 * explow.c (promote_mode): Move variable declarations before code.
3224 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3226 * tree.h (build_function_type_array): Declare.
3227 (build_varargs_function_type_array): Declare.
3228 (build_function_type_vec, build_varargs_function_type_vec): Define.
3229 * tree.c (build_function_type_array_1): New function.
3230 (build_function_type_array): New function.
3231 (build_varargs_function_type_array): New function.
3233 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3235 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3236 before setting STMT_VINFO_TYPE.
3238 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3240 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3241 instead of spu_pass_by_reference.
3243 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3245 * calls.c (emit_library_call_value_1): Invoke
3246 promote_function_mode hook on libcall arguments.
3247 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3248 argument being NULL.
3249 * targhooks.c (default_promote_function_mode): Lisewise.
3250 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3251 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3253 * doc/tm.texi: Document that TYPE argument might be NULL.
3255 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3257 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3259 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3262 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3264 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3266 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3267 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3269 * mips-tfile.c: ... here.
3270 Don't include coretypes.h, tm.h, filenames.h.
3271 (saber_stop): Remove definition and all calls.
3272 [__SABER__]: Remove.
3273 (__LINE__): Remove default.
3274 (Size_t, Ptrdiff_t): Remove definitions.
3275 Replace by size_t, ptrdiff_t.
3276 [!MIPS_DEBUGGING_INFO]: Remove.
3277 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3278 (progname): Add const.
3280 Replace all uses by static.
3281 (ALIGN_SYMTABLE_OFFSET): Remove default.
3282 * mips-tdump.c: Don't include coretypes.h, tm.h.
3283 Remove !MIPS_IS_STAB guard.
3284 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3285 $(TM_H), filenames.h dependencies.
3286 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3288 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3291 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3292 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3294 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3297 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3298 account and save/restore RETS.
3299 (PROFILE_BEFORE_PROLOGUE): Define.
3300 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3301 the push insn to use predecrement.
3303 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3306 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3308 2011-05-04 Nick Clifton <nickc@redhat.com>
3310 * config/mn10300/mn10300.c: Include cfgloop.h.
3312 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3313 Lcc or a FLcc insn into the instruction stream.
3314 (mn10300_block_contains_call): New function. Returns true if the
3315 given basic block contains a CALL insn.
3316 (mn10300_loop_contains_call_insn): New function. Returns true if
3317 the given loop contains a CALL insn.
3318 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3319 to use the SETLB and Lcc or FLcc insns.
3320 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3321 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3322 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3323 disable the SETLB optimization.
3324 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3325 __SETLB__ or __NO_SETLB__.
3326 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3327 (movsf_internal): Handle MDR register.
3328 (cmpsi): Make visible.
3329 (setlb): New pattern.
3331 (FLcc): New pattern.
3333 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3336 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3337 for reg<->xmm moves.
3338 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3339 (vec_concatv2di_rex64_sse): Ditto.
3340 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3341 (*vec_extractv2di_1_rex64): Ditto.
3344 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3346 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3348 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3350 2011-05-04 Richard Guenther <rguenther@suse.de>
3352 * tree.h (int_const_binop): Remove notrunc argument.
3353 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3354 create integer constants that are properly truncated.
3355 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3356 (const_binop): Remove zero notrunc argument to int_const_binop.
3357 (size_binop_loc): Likewise.
3358 (fold_div_compare): Likewise.
3359 (maybe_canonicalize_comparison_1): Likewise.
3360 (fold_comparison): Likewise.
3361 (fold_binary_loc): Likewise.
3362 (multiple_of_p): Likewise.
3363 * expr.c (store_constructor): Likewise.
3364 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3365 (maybe_fold_stmt_addition): Likewise.
3366 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3367 * stor-layout.c (layout_type): Likewise.
3368 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3369 * tree-sra.c (build_ref_for_offset): Likewise.
3370 (build_user_friendly_ref_for_offset): Likewise.
3371 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3372 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3373 * tree-ssa-loop-niter.c (inverse): Likewise.
3374 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3375 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3376 * tree-switch-conversion.c (check_range): Likewise.
3377 (build_constructors): Likewise.
3378 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3379 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3380 (extract_range_from_assert): Likewise.
3381 (vrp_int_const_binop): Likewise.
3382 (extract_range_from_binary_expr): Likewise.
3383 (extract_range_from_unary_expr): Likewise.
3384 (check_array_ref): Likewise.
3385 (find_case_label_range): Likewise.
3386 (simplify_div_or_mod_using_ranges): Likewise.
3387 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3388 comparing case labels for merging.
3390 2011-05-03 Mark Wielaard <mjw@redhat.com>
3392 * dwarf2out.c (debug_str_hash_forced): Removed.
3393 (gen_label_for_indirect_string): Removed.
3394 (get_debug_string_label): Removed.
3395 (AT_string_form): Generate label directly.
3396 (output_indirect_string): Test indirect_string_node for
3397 DW_FORM_strp instead of checking label and refcount.
3398 (prune_indirect_string): Removed.
3399 (prune_unused_types): Don't check debug_str_hash_forced or
3400 call prune_indirect_string.
3402 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3405 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3407 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3411 * combine.c (try_combine): Skip debug insns at m_split tests.
3413 2011-04-26 Mark Wielaard <mjw@redhat.com>
3416 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3417 when info_section_emitted.
3419 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3421 * config/mips/mips-opts.h: New.
3422 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3424 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3425 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3426 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3428 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3430 (mips_abi, mips_code_readable): Don't declare.
3431 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3432 (mabi=): Use Enum and Var.
3433 (mips_abi): New Enum and EnumValue entries.
3434 (mcode-readable=): Use Enum and Var.
3435 (mips_code_readable_setting): New Enum and EnumValue entries.
3436 (mr10k-cache-barrier=): Use Enum and Var.
3437 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3439 2011-05-03 Jan Hubicka <jh@suse.cz>
3441 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3442 replace hash by pointer map.
3443 (cgraph_node_set_element_def, cgraph_node_set_element,
3444 const_cgraph_node_set_element, varpool_node_set_element_def,
3445 varpool_node_set_element, const_varpool_node_set_element): Remove.
3446 (free_cgraph_node_set, free_varpool_node_set): New function.
3447 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3448 * tree-emutls.c: Free varpool node set.
3449 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3450 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3451 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3452 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3453 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3454 Move here from ipa.c; implement using pointer_map
3455 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3456 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3457 debug_cgraph_node_set, varpool_node_set_new,
3458 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3459 dump_varpool_node_set, debug_varpool_node_set):
3460 Move to ipa-uitls.c.
3461 * passes.c (ipa_write_summaries): Update.
3463 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3465 From Mike Frysinger:
3466 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3467 bf542/bf544/bf547/bf548/bf549.
3469 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3471 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3473 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3476 * config/bfin/bfin.md (MOVCC): New mode_macro.
3477 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3478 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3479 comments from generated assembly.
3481 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3484 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3485 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3486 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3487 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3488 * config/bfin/lib1funcs.asm (___muldi3): New function.
3490 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3492 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3493 build_function_type_list instead of build_function_type.
3494 Rearrange initialization of `args' to do so.
3496 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3498 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3499 instead of build_function_type.
3501 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3503 * config/rs6000/rs6000.c (spe_init_builtins): Call
3504 build_function_type_list instead of build_function_type.
3505 (paired_init_builtins, altivec_init_builtins): Likewise.
3506 (builtin_function_type): Likewise.
3508 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3510 * config/sh/sh.c (sh_media_init_builtins): Call
3511 build_function_type_list instead of build_function_type.
3513 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3515 * config/sparc/sparc.c (sparc_file_end): Call
3516 build_function_type_list instead of build_function_type.
3518 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3520 * config/alpha/alpha.c (alpha_init_builtins): Call
3521 build_function_type_list instead of build_function_type.
3523 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3525 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3526 build_function_type_list instead of build_function_type.
3528 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3530 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3531 build_function_type_list instead of build_function_type.
3532 Delete `endlink' variable.
3534 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3536 * config/avr/avr.c (avr_init_builtins): Call
3537 build_function_type_list instead of build_function_type.
3539 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3541 * config/picochip/picochip.c (picochip_init_builtins): Call
3542 build_function_type_list instead of build_function_type.
3543 Delete `endlink' variable.
3545 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3547 * config/bfin/bfin.c (bfin_init_builtins): Call
3548 build_function_type_list instead of build_function_type.
3550 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3553 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3554 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3556 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3559 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3560 libbffastfp overrides libgcc when -mfast-fp.
3562 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3564 Originally from Bernd Schmidt
3565 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3566 * config/bfin/bfin.c (override_options): Test it and error if
3569 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3571 Originally From Bernd Schmidt
3572 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3575 2011-05-03 Jeff Law <law@redhat.com>
3577 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3578 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3579 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3580 than accessing AUX field directly. Free the AUX field before
3582 (thread_block, thread_through_loop_header): Likewise.
3583 (thread_single_edge, mark_threaded_blocks): Likewise.
3584 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3585 (register_jump_thread): Do not attempt to thread to a NULL edge.
3587 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3589 * function.c (init_function_start): Call decide_function_section.
3590 * varasm.c (decide_function_section): New function.
3591 (assemble_start_function): When not using
3592 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3593 or first_function_block_is_cold.
3594 * rtl.h (decide_function_section): Declare.
3596 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3597 Jakub Jelinek <jakub@redhat.com>
3600 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3601 only succeed if req_mode is the same as set_mode.
3603 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3605 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3606 * genemit.c (gen_exp): Handle RETURN.
3607 * emit-rtl.c (verify_rtx_sharing): Likewise.
3608 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3609 * rtl.c (copy_rtx): RETURN is shared.
3610 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3612 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3613 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3614 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3615 * config/cris/cris.c (cris_expand_return): Likewise.
3616 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3617 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3618 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3619 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3620 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3622 * config/v850/v850.c (expand_epilogue): Likewise.
3623 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3624 * config/arm/arm.md (epilogue): Likewise.
3625 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3626 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3627 variable to ret_reg.
3629 2011-05-03 Richard Guenther <rguenther@suse.de>
3632 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3633 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3634 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3636 2011-05-03 Richard Guenther <rguenther@suse.de>
3638 * c-decl.c (grokdeclarator): Instead of looking at
3639 TREE_OVERFLOW check if the constant fits in the index type.
3641 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3643 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3644 (vec_store_lanes<mode><mode>): Likewise.
3646 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3648 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3649 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3650 convert_optab_index values.
3651 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3652 * genopinit.c (optabs): Initialize the new optabs.
3653 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3654 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3655 (expand_STORE_LANES): New functions.
3656 * tree.h (build_array_type_nelts): Declare.
3657 * tree.c (build_array_type_nelts): New function.
3658 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3659 (vect_model_load_cost): Likewise.
3660 (vect_store_lanes_supported, vect_load_lanes_supported)
3661 (vect_record_strided_load_vectors): Declare.
3662 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3663 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3664 (vect_transform_strided_load): Split out statement recording into...
3665 (vect_record_strided_load_vectors): ...this new function.
3666 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3667 (write_vector_array, create_array_ref): New functions.
3668 (vect_model_store_cost): Add store_lanes_p argument.
3669 (vect_model_load_cost): Add load_lanes_p argument.
3670 (vectorizable_store): Try to use store-lanes functions for
3672 (vectorizable_load): Likewise load-lanes and loads.
3673 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3674 to vect_model_store_cost.
3675 (vect_build_slp_tree): Likewise vect_model_load_cost.
3677 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3679 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3680 * hooks.c (hook_bool_mode_uhwi_false): New function.
3681 * target.def (array_mode_supported_p): New hook.
3682 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3683 * doc/tm.texi: Regenerate.
3684 * stor-layout.c (mode_for_array): New function.
3685 (layout_type): Use it.
3686 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3687 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3689 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3692 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3693 for -fstack-check if the size to allocate is negative.
3695 2011-05-02 Lawrence Crowl <crowl@google.com>
3697 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3698 (timevar_cond_start): New for starting a timer only when it is not
3700 (timevar_cond_stop): New for stopping a timer when it was not already
3703 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3704 (timevar_cond_start): New as above.
3705 (timevar_cond_stop): New as above.
3707 * timevar.def: Add start/stop timers for compiler phases,
3708 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3709 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3710 and TV_PHASE_FINALIZE.
3711 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3712 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3713 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3714 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3715 Make unused TV_OVERLOAD into a start/stop timer.
3717 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3718 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3719 to indicate that they are start/stop timers.
3721 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3722 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3723 Move initialization to do_compile.
3724 (do_compile): Add initialization from above.
3725 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3727 * c-decl.c (c_write_global_declarations): Add start/stop of
3728 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3730 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3731 or TV_PARSE_INLINE, as appropriate.
3732 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3733 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3735 2011-05-02 Jason Merrill <jason@redhat.com>
3738 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3740 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3743 * c-decl.c (finish_decl): Only create a composite if the types are
3746 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3748 * config/fr30/fr30-protos.h (Mmode): Don't define.
3749 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3750 definition where used.
3751 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3752 define. Expand definitions where used.
3753 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3754 Expand definitions where used.
3755 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3756 rx_function_arg, rx_function_arg_advance,
3757 rx_function_arg_boundary): Expand definitions of those macros.
3758 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3759 definition where used.
3761 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3763 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3765 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3766 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3767 with *movv2sf_internal_rex64_avx.
3768 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3769 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3770 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3771 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3772 "vex" in "prefix" attribute calculation.
3773 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3775 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3778 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3779 inputs match the output.
3781 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3784 * config/m68k/m68k.c (m68k_expand_prologue): Set
3785 current_function_static_stack_size.
3787 2011-05-02 Jan Hubicka <jh@suse.cz>
3789 * lto-streamer.c (lto_streamer_cache_insert_1,
3790 lto_streamer_cache_lookup, lto_streamer_cache_create,
3791 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3792 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3794 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3796 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3797 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3798 config/m68k/t-opts: New files.
3799 * config/m68k/m68k-tables.opt: New file (generated).
3800 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3801 extra_options and m68k/t-opts to tmake_file.
3802 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3803 (all_isas): Initialize using m68k-isas.def.
3804 (all_microarchs): Initialize using m68k-microarchs.def.
3805 (m68k_find_selection): Remove.
3806 (m68k_handle_option): Don't assert that global structures are in
3807 use. Use error_at. Access variables via opts pointer. Don't
3808 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3809 directly for -m68020-40 and -m68020-60.
3810 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3811 m68k_tune_entry here.
3812 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3814 (m68k_library_id_string): Remove declaration.
3815 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3816 (m68k_library_id_string): New Variable.
3817 (march=, mcpu=, mtune=): Use Enum and Var.
3819 2011-05-02 Richard Guenther <rguenther@suse.de>
3821 * varasm.c (output_constructor_regular_field): Compute zero-based
3822 index with double-ints. Make sure to ICE instead of producing
3824 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3825 in asserts. Properly use a signed type.
3827 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3829 * config/i386/sse.md (V): New mode iterator.
3830 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3832 (V_256): Rename from AVX256MODE.
3833 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3834 condition to all users.
3836 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3837 condition to all users.
3838 (VF_128): Make V4SF mode unconditional.
3839 (VF_256): Rename from AVX256MODEF2P.
3840 (VI4F_128): Rename from SSEMODE4S.
3841 (VI8F_128): Rename from SSEMODE2D.
3842 (VI4F_256): Rename from AVX256MODE8P.
3843 (VI8F_256): Rename from AVX256MODE4P.
3844 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3845 (ssescalarmodesuffix): Remove SF and DF modes.
3846 (SSEMODE124): Remove.
3847 (SSEMODE1248): Ditto.
3848 (SSEMODEF2P): Ditto.
3849 (AVXMODEF2P): Ditto.
3850 (AVXMODEFDP): Ditto.
3851 (AVXMODEFSP): Ditto.
3852 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3854 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3856 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3857 xop_pcmov_<mode>256. Use V mode iterator.
3859 Adjust RTX patterns globally for renamed mode attributes.
3861 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3863 * haifa-sched.c (sched_emit_insn): Emit insn before first
3864 non-scheduled insn. Inform back-end about new insn. Add
3865 new insn to scheduled_insns list.
3867 2011-05-02 Richard Guenther <rguenther@suse.de>
3869 PR tree-optimization/48822
3870 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3871 (process_scc): Indicate which iteration we start.
3873 2011-05-02 Jan Hubicka <jh@suse.cz>
3875 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3876 (lto_section_overrun): New.
3877 * lto-section-out.c (append_block): Rename to ...
3878 (lto_append_block): ... this one; export.
3879 (lto_output_1_stream): Move lto lto-streamer.h
3880 (lto_output_data_stream): Update.
3881 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3882 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3885 2011-05-02 Richard Guenther <rguenther@suse.de>
3887 * tree.c (tree_code_counts): New global array.
3888 (record_node_allocation_statistics): Count individual tree codes.
3889 (dump_tree_statistics): Dump individual code stats.
3891 2011-05-01 Jan Hubicka <jh@suse.cz>
3893 * ipa-inline.c (caller_growth_limits): Fix thinko when
3894 looking for largest stack frame.
3895 * ipa-inline.h (dump_inline_summary): Declare.
3896 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3898 (dump_inline_summary): Export.
3899 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3901 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3903 * reginfo.c (memory_move_cost): Change rclass argument type form
3904 'enum reg_class' to reg_class_t.
3905 * reload.h (memory_move_cost): Update prototype.
3906 * postreload.c reload_cse_simplify_set): Change type dclass var to
3908 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3910 (ira_allocate_and_set_costs): Change aclass argument type form
3911 'enum reg_class' to reg_class_t.
3912 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3913 Change aclass argument type to reg_class_t.
3914 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3916 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3917 memory_move_cost call.
3919 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3920 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3921 Change type tmp var to reg_class_t.
3923 2011-04-30 Jan Hubicka <jh@suse.cz>
3925 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3926 inlining into function with flatten attribute.
3927 (want_inline_small_function_p): Be more realistic about inlining
3928 cold calls where callee size grows.
3930 2011-04-30 Jan Hubicka <jh@suse.cz>
3932 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3935 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3937 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3938 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3939 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3940 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3941 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3942 (print_operand): Rename to...
3943 (sparc_print_operand): ...this. Make static. Adjust
3944 sparc_print_operand function call.
3945 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3948 2011-04-30 Jan Hubicka <jh@suse.cz>
3951 * ipa-inline.c (early_inliner): Disable when doing late
3952 addition of function.
3954 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3956 * dwarf2out.c (get_address_mode): New inline.
3957 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3958 if not dwarf_strict emit
3959 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3960 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3961 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3962 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3963 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3964 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3965 mem_loc_descriptor callers.
3966 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3967 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3968 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3969 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3970 (base_types): New variable.
3971 (get_base_type_offset, calc_base_type_die_sizes,
3972 base_type_for_mode, mark_base_types, base_type_cmp,
3973 move_marked_base_types): New functions.
3974 (calc_die_sizes): Assert that die_offset is 0 or equal to
3976 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3977 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3978 callers. If not dwarf_strict, call mem_loc_descriptor even for
3979 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3980 (gen_subprogram_die): Don't give up on call site parameters
3981 with non-integral or large integral modes. Adjust
3982 mem_loc_descriptor callers.
3983 (prune_unused_types): Call prune_unused_types_mark on base_types
3985 (resolve_addr): Call mark_base_types.
3986 (dwarf2out_finish): Call move_marked_base_types.
3988 PR tree-optimization/48809
3989 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3991 (gen_inbound_check): Don't compute index_expr - range_min in utype
3992 again, instead reuse SSA_NAME initialized in build_arrays.
3993 Remove two useless gsi_for_stmt calls.
3995 2011-04-29 Jeff Law <law@redhat.com>
3997 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3999 2011-04-29 Martin Jambor <mjambor@suse.cz>
4001 * cgraph.h (cgraph_postorder): Remove declaration.
4002 * ipa-utils.h (ipa_free_postorder_info): Declare.
4003 (ipa_reverse_postorder): Likewise.
4004 * cgraphunit.c: Include ipa-utils.h.
4005 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4006 * ipa-inline.c: Include ipa-utils.h.
4007 (ipa_inline): Update call to ipa_reverse_postorder.
4008 * ipa-pure-const.c (propagate_pure_const): Update call to
4009 ipa_reduced_postorder and ipa_print_order. Call
4010 ipa_free_postorder_info to clean up.
4011 (propagate_nothrow): Likewise.
4012 * ipa-reference.c (propagate): Removed a useless call to
4013 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4014 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4015 * ipa.c: Include ipa-utils.h.
4016 (ipa_profile): Update call to ipa_reverse_postorder.
4017 (cgraph_postorder): Moved to...
4018 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4019 (ipa_utils_print_order): Renamed to ipa_print_order.
4020 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4022 (ipa_free_postorder_info): New function.
4023 * passes.c: Include ipa-utils.h.
4024 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4025 (ipa_write_summaries): Likewise.
4026 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4027 (cgraphunit.o): Likewise.
4029 (ipa-inline.o): Likewise.
4031 2011-04-29 Jan Hubicka <jh@suse.cz>
4033 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4034 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4035 * ipa-inline.h (clause_t): Turn into unsigned int.
4036 * ipa-inline-analysis.c (add_clause): Do more simplification.
4037 (and_predicates): Shortcut more cases.
4038 (predicates_equal_p): Move forward; check that clauses are properly
4040 (or_predicates): Shortcut more cases.
4041 (edge_execution_predicate): Rewrite as...
4042 (set_cond_stmt_execution_predicate): ... this function; handle
4043 __builtin_constant_p.
4044 (set_switch_stmt_execution_predicate): New .
4045 (compute_bb_predicates): New.
4046 (will_be_nonconstant_predicate): Update TODO.
4047 (estimate_function_body_sizes): Use compute_bb_predicates
4048 and free them later, always try to estimate if stmt is constant.
4049 (estimate_time_after_inlining, estimate_size_after_inlining):
4050 Gracefully handle optimized out edges.
4051 (read_predicate): Fix off by one error.
4053 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4055 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4057 2011-04-27 Xinliang David Li <davidxl@google.com>
4059 * tree-profile.c (init_ic_make_global_vars): Set
4060 tls attribute on ic vars.
4061 * coverage.c (coverage_end_function): Initialize
4062 function_list with zero.
4064 2011-04-29 Richard Guenther <rguenther@suse.de>
4066 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4067 for the type of the result.
4068 (fold_builtin_isascii): Likewise.
4069 (fold_builtin_toascii): Use integer_type_node where appropriate.
4070 (fold_builtin_logb): Likewise.
4071 (fold_builtin_frexp): Likewise.
4072 (fold_builtin_strstr): Likewise.
4073 (fold_builtin_strpbrk): Likewise.
4074 (fold_builtin_fputs): Likewise.
4075 (fold_builtin_sprintf): Likewise.
4076 (fold_builtin_snprintf): Likewise.
4077 (fold_builtin_printf): Likewise.
4078 (do_mpfr_remquo): Use a proper type for the assigned constant.
4079 (do_mpfr_lgamma_r): Likewise.
4080 * dwarf2out.c (resolve_one_addr): Use size_int.
4081 * except.c (init_eh): Likewise.
4082 (assign_filter_values): Use integer_type_node for filter values.
4083 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4085 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4086 for EH region numbers.
4087 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4088 for the shift amount.
4090 2011-04-29 Richard Guenther <rguenther@suse.de>
4092 * expr.h (expand_shift): Rename to ...
4093 (expand_variable_shift): ... this.
4094 (expand_shift): Take a constant shift amount.
4095 * expmed.c (expand_shift): Rename to ...
4096 (expand_variable_shift): ... this.
4097 (expand_shift): New wrapper around expand_variable_shift.
4098 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4099 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4100 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4101 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4102 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4103 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4104 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4105 emit_store_flag_1, emit_store_flag): Likewise.
4106 * builtins.c (expand_builtin_signbit): Likewise.
4107 * calls.c (load_register_parameters): Likewise.
4108 * function.c (assign_parm_setup_block): Likewise.
4109 * lower-subreg.c (resolve_shift_zext): Likewise.
4110 * optabs.c (widen_bswap, expand_abs_nojump,
4111 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4112 * spu/spu.c (spu_expand_extv): Likewise.
4113 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4115 2011-04-29 Richard Guenther <rguenther@suse.de>
4117 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4118 for the remapped region number.
4119 * predict.c (build_predict_expr): Use integer_type_node for the
4121 * fold-const.c (fold_binary_loc): Use integer_type_node for
4122 the shift amount. Use a proper type for the PLUS_EXPR operand.
4124 2011-04-29 Michael Matz <matz@suse.de>
4126 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4127 other trees that just builtins.
4128 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4130 2011-04-29 Richard Guenther <rguenther@suse.de>
4132 * tree-nested.c (get_trampoline_type): Use size_int.
4133 (get_nl_goto_field): Likewise.
4134 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4136 (lower_eh_constructs_2): Likewise.
4137 (lower_resx): Likewise.
4138 (lower_eh_dispatch): Likewise.
4139 * tree-mudflap.c (mf_build_string): Use size_int.
4140 (mudflap_register_call): Use integer_type_node for the flag.
4141 (mudflap_enqueue_constant): Use size_int.
4142 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4143 instead of rebuilding it.
4145 2011-04-29 Richard Guenther <rguenther@suse.de>
4147 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4148 Handle OBJ_TYPE_REF.
4149 (find_func_aliases_for_call): Use it more consistently.
4151 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4153 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4154 (rank_for_schedule): Use it.
4155 (schedule_block): Set it.
4157 2011-04-28 David Li <davidxl@google.com>
4159 * tree.c (crc32_string): Use crc32_byte.
4160 (crc32_byte): New function.
4161 * tree.h (crc32_byte): New function.
4162 * gcov.c (read_graph_file): Handle new cfg_cksum.
4163 (read_count_file): Ditto.
4164 * profile.c (instrument_values): Ditto.
4165 (get_exec_counts): Ditto.
4166 (read_profile_edge_counts): Ditto.
4167 (compute_branch_probabilities): Ditto.
4168 (compute_value_histograms): Ditto.
4169 (branch_prob): Ditto.
4170 (end_branch_prob): Ditto.
4171 * coverage.c (read_counts_file): Ditto.
4172 (get_coverage_counts): Ditto.
4173 (tree_coverage_counter_addr): Ditto.
4174 (coverage_checksum_string): Ditto.
4175 (coverage_begin_output): Ditto.
4176 (coverage_end_function): Ditto.
4177 (build_fn_info_type): Ditto.
4178 (build_fn_info_value): Ditto.
4179 * libgcov.c (gcov_exit): Ditto.
4180 * gcov-dump.c (tag_function): Ditto.
4181 (compute_checksum): Remove.
4183 2011-04-29 Alan Modra <amodra@gmail.com>
4185 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4186 unspec plus offset. Tidy macho code.
4188 2011-04-29 Martin Jambor <mjambor@suse.cz>
4190 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4191 node instead of a decl. Update all callers.
4192 * cgraph.h: Update declaration.
4194 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4196 PR tree-optimization/48765
4197 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4198 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4199 to indicate if loop aware SLP is being used. Scan the statements
4200 and update the vectorization factor according to the type of
4201 vectorization before statement analysis.
4202 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4203 pass it to vect_analyze_loop_operations.
4204 (vectorizable_reduction): Set number of copies to 1 in case of pure
4206 * tree-vect-stmts.c (vectorizable_conversion,
4207 vectorizable_assignment, vectorizable_shift,
4208 vectorizable_operation, vectorizable_type_demotion,
4209 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4211 (vectorizable_condition): Move the check that it is not SLP
4212 vectorization before the number of copies check.
4213 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4214 to vectorize the loop using SLP.
4216 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4219 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4222 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4224 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4225 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4226 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4227 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4228 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4230 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4231 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4232 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4233 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4234 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4235 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4237 * config/i386/linux.h (REG_NAME): Don't define.
4238 * config/i386/linux64.h (REG_NAME): Don't define.
4239 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4240 Undefine before defining.
4242 2011-04-28 Jan Hubicka <jh@suse.cz>
4244 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4245 nonconstant_names array.
4246 (estimate_function_body_sizes): Build nonconstant_names array; handle
4247 BUILT_IN_CONSTANT_P.
4249 2011-04-28 Richard Guenther <rguenther@suse.de>
4253 2011-04-28 Richard Guenther <rguenther@suse.de>
4255 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4256 as late as possible.
4258 2011-04-28 Richard Guenther <rguenther@suse.de>
4260 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4261 (debug_constraint): Do it here.
4262 (dump_constraints): And here.
4263 (rewrite_constraints): And here.
4264 (dump_constraint_edge): Remove.
4265 (dump_constraint_graph): Rewrite to produce DOT output.
4266 (solve_constraints): Build succ graph as late as possible.
4267 Dump constraint graphs before and after solving.
4269 2011-04-28 Richard Guenther <rguenther@suse.de>
4271 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4272 New function split out from ...
4273 (find_func_aliases): ... here. Call it.
4274 (find_func_aliases_for_call): Likewise.
4276 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4278 * internal-fn.h (internal_fn_name_array): Declare.
4279 (internal_fn_flags_array): Likewise.
4281 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4283 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4284 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4286 (ssemodefsuffix): Remove.
4287 (ssevecmodesuffix): New mode attribute.
4288 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4289 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4290 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4291 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4292 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4293 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4294 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4295 ssemodesuffix mode attribute.
4296 (float splitters): Use ssevecmodesuffix mode attribute.
4297 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4298 (sseinsmode): Rename from avxvecmode.
4299 (avxsizesuffix): Rename from avxmodesuffix.
4300 (sseintvecmode): Rename from avxpermvecmode.
4301 (ssedoublevecmode): Rename from ssedoublesizemode.
4302 (ssehalfvecmode): Rename from avxhalfvecmode.
4303 (ssescalarmode): Rename from avxscalarmode.
4304 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4305 templates for ssemodesuffix mode attribute.
4306 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4309 Adjust RTX patterns globally for renamed mode attributes.
4311 2011-04-27 Jan Hubcika <jh@suse.cz>
4313 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4314 * ipa-inline-analysis.c: Include alloc-pool.h.
4315 (edge_predicate_pool): New.
4316 (trye_predicate_p): New function
4317 (false_predicate_p): New function.
4318 (add_clause): Sanity check that false clauses are "optimized";
4319 never add clauses to predicate that is already known to be false.
4320 (and_predicate): Use flase_predicate_p.
4321 (evaulate_predicate): Rename to ...
4322 (evaluate_predicate): ... this one; update all callers; assert
4323 that false is not listed among possible truths.
4324 (dump_predicate): Use true_predicate_p.
4325 (account_size_time): Use false_predicate_p.
4326 (evaulate_conditions_for_edge): Rename to ...
4327 (evaluate_conditions_for_edge) ... this one.
4328 (edge_set_predicate): New function.
4329 (inline_edge_duplication_hook): Duplicate edge predicates.
4330 (inline_edge_removal_hook): Free edge predicates.
4331 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4332 (dump_inline_summary): Update.
4333 (estimate_function_body_sizes): Set edge predicates.
4334 (estimate_calls_size_and_time): Handle predicates.
4335 (estimate_callee_size_and_time): Update.
4336 (remap_predicate): Add toplev_predicate; update comment.
4337 (remap_edge_predicates): New function.
4338 (inline_merge_summary): Compute toplev predicate; update.
4339 (read_predicate): New function.
4340 (read_inline_edge_summary): Use it.
4341 (inline_read_section): Likewise.
4342 (write_predicate): New function.
4343 (write_inline_edge_summary): Use it.
4344 (inline_write_summary): Likewise.
4345 (inline_free_summary): Free alloc pool and edge summary vec.
4347 2011-04-27 Richard Guenther <rguenther@suse.de>
4349 * tree-ssa-structalias.c (changed_count): Remove.
4350 (changed): Use a bitmap.
4351 (unify_nodes): Adjust.
4352 (do_sd_constraint): Likewise.
4353 (do_ds_constraint): Likewise.
4354 (do_complex_constraint): Likewise.
4355 (solve_graph): Likewise.
4357 2011-04-27 Jan Hubicka <jh@suse.cz>
4359 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4361 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4363 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4364 (avx_vperm2f128_*_operand): Ditto.
4365 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4366 Use avx_vpermilp_parallel in insn condition.
4367 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4368 Use avx_vperm2f128_parallel in insn condition.
4370 2011-04-27 Richard Guenther <rguenther@suse.de>
4372 * Makefile.in (tree-ssa-structalias.o): Remove
4373 gt-tree-ssa-structalias.h dependency.
4374 (GTFILES): Remove tree-ssa-structalias.c.
4375 * tree.c (allocate_decl_uid): New function.
4376 (make_node_stat): Use it.
4377 (copy_node_stat): Likewise.
4378 * tree.h (allocate_decl_uid): Declare.
4379 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4380 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4381 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4382 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4383 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4384 (struct heapvar_map): Likewise.
4385 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4386 heapvar_insert): Likewise.
4387 (make_heapvar_for): Rename to ...
4388 (make_heapvar): ... this. Simplify.
4389 (fake_var_decl_obstack): New global var.
4390 (build_fake_var_decl): New function.
4391 (make_constraint_from_heapvar): Adjust.
4392 (handle_lhs_call): Likewise.
4393 (create_function_info_for): Likewise.
4394 (intra_create_variable_infos): Likewise.
4395 (init_alias_vars): Allocate fake_var_decl_obstack.
4396 (init_alias_heapvars, delete_alias_heapvars): Remove.
4397 (compute_points_to_sets): Do not call init_alias_heapvars.
4398 (ipa_pta_execute): Likewise.
4399 (delete_points_to_sets): Free fake_var_decl_obstack.
4401 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4403 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4404 (si_from_UTItype, si_to_UTItype): New functions.
4405 (__udivmodti4): Use them to implement type-punning.
4406 * config/spu/multi3.c (union qword_TItype): New data type.
4407 (si_from_TItype, si_to_TItype): New functions.
4408 (__multi3): Use them to implement type-punning.
4410 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4412 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4414 2011-04-27 Jan Hubicka <jh@suse.cz>
4416 * ipa-prop.c (function_insertion_hook_holder): New holder.
4417 (ipa_add_new_function): New function.
4418 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4419 Register/deregister holder.
4421 2011-04-27 Richard Guenther <rguenther@suse.de>
4423 PR tree-optimization/48772
4424 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4426 2011-04-27 Richard Guenther <rguenther@suse.de>
4428 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4429 TARGET_MEM_REF handling.
4431 2011-04-27 Nick Clifton <nickc@redhat.com>
4433 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4434 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4435 (REG_CLASS_NAMES): Likewise.
4436 (REG_CLASS_CONTENTS): Likewise.
4437 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4438 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4439 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4440 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4441 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4442 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4443 duplicate register classes.
4444 (frv_class_likely_spilled_p): Likewise.
4445 (frv_register_move_cost): Likewise.
4447 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4448 end of the regno_reg_class array.
4450 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4453 * c-typeck.c (build_binary_op): Don't wrap arguments if
4454 int_operands is true.
4456 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4459 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4460 targetm.calls.must_pass_in_stack for void type.
4462 2011-04-26 Jan Hubicka <jh@suse.cz>
4464 * cgraphbuild.c (build_cgraph_edges): Update call
4465 of cgraph_create_edge and cgraph_create_indirect_edge.
4466 * cgraph.c (cgraph_create_edge_including_clones,
4467 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4468 cgraph_update_edges_for_call_stmt_node): Do not take nest
4469 argument; do not initialize call_stmt_size/time.
4470 (dump_cgraph_node): Do not dump nest.
4471 (cgraph_clone_edge): Do not take loop_nest argument;
4472 do not propagate it; do not clone call_stmt_size/time.
4473 (cgraph_clone_node): Likewise.
4474 (cgraph_create_virtual_clone): Update.
4475 * cgraph.h (struct cgraph_edge): Remove
4476 call_stmt_size/call_stmt_time/loop_nest.
4477 (cgraph_create_edge, cgraph_create_indirect_edge,
4478 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4480 * tree-emutls.c (gen_emutls_addr): Update.
4481 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4482 loop_nest; handle indirect calls, too.
4483 (clone_inlined_nodes): Do not care about updating inline summaries.
4484 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4485 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4486 stream call_stmt_size/call_stmt_time/loop_nest.
4487 * ipa-inline.c (edge_badness): Update.
4488 (ipa_inline): dump summaries after inlining.
4489 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4491 (inline_edge_summary): New function.
4492 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4493 (inline_edge_removal_hook): Handle edge summaries.
4494 (inline_edge_duplication_hook): New hook.
4495 (inline_summary_alloc): Alloc hooks.
4496 (initialize_growth_caches): Do not register removal hooks.
4497 (free_growth_caches); Do not free removal hook.
4498 (dump_inline_edge_summary): New function.
4499 (dump_inline_summary): Use it.
4500 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4501 (inline_update_callee_summaries): New function.
4502 (inline_merge_summary): Use it.
4503 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4504 (read_inline_edge_summary): New function.
4505 (inline_read_section): Use it.
4506 (write_inline_edge_summary): New function.
4507 (inline_write_summary): Use it.
4508 (inline_free_summary): Free edge new holders.
4509 * tree-inline.c (copy_bb): Update.
4511 2011-04-26 Jason Merrill <jason@redhat.com>
4513 * tree-eh.c (lower_try_finally_switch): Create the label along with
4514 the CASE_LABEL_EXPR.
4516 2011-04-26 David S. Miller <davem@davemloft.net>
4517 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4519 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4520 * configure: Regenerate.
4522 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4525 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4527 (VEC_reduc): New code iterator and splitters for vector reduction.
4528 (VEC_reduc_name): Ditto.
4529 (VEC_reduc_rtx): Ditto.
4530 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4531 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4533 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4534 support for extracting SF on VSX.
4536 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4537 generating xscvspdp.
4538 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4539 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4540 double add, minimum, maximum vector reduction.
4541 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4542 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4543 optimize double vector reduction.
4544 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4546 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4548 * config/fr30/fr30.h (inhibit_libc): Don't define.
4549 * config/m32r/m32r-protos.h: Correct comment.
4550 * config/v850/v850.h (GHS_default_section_names,
4551 GHS_current_section_names): Use tree, not union tree_node *.
4553 2011-04-26 Xinliang David Li <davidxl@google.com>
4555 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4556 * c-family/c-opts.c (c_common_handle_option): Set
4557 warn_maybe_uninitialized.
4558 * opts.c (common_handle_option): Ditto.
4559 * common.opt: New option.
4560 * tree-ssa.c (warn_uninit): Add one more parameter.
4561 (warn_uninitialized_var): Pass warning code.
4562 * tree-flow.h: Interface change.
4564 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4566 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4567 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4568 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4570 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4572 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4573 * config/mips/mips.opt (mmips-tfile): Remove.
4575 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4576 mips-tdump reference to ...
4577 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4578 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4579 reference by Tru64 UNIX.
4581 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4584 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4585 is error_mark_node, set value to NULL.
4587 PR tree-optimization/48734
4588 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4589 if return value from maybe_fold_*_comparsions isn't something
4590 the code is prepared to handle.
4592 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4594 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4596 (ext_QIreg_nomode_operands): Remove.
4597 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4601 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4603 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4605 2011-04-26 Richard Guenther <rguenther@suse.de>
4607 * c-typeck.c (build_unary_op): Do not expand array-refs via
4608 pointer arithmetic. Only adjust qualifiers for function types.
4610 2011-04-26 Richard Guenther <rguenther@suse.de>
4613 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4614 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4615 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4616 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4618 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4620 * doc/extend.texi: Document __underlying_type.
4622 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4624 * config/rs6000/titan.md (automata_option "progress"): Remove.
4626 2011-04-25 Jeff Law <law@redhat.com>
4628 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4630 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4632 * system.h (ENUM_BITFIELD): Remove.
4634 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4635 Eric Botcazou <ebotcazou@adacore.com>
4637 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4638 for STORE_FLAG_VALUE==-1 case.
4640 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4643 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4644 LEGITIMATE_PIC_OPERAND_P.
4646 2011-04-24 Jan Hubicka <jh@suse.cz>
4648 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4650 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4651 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4652 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4653 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4654 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4655 Sanity check predicate length.
4656 (remap_predicate): Likewise; sanity check jump functions.
4657 (inline_read_section, inline_write_summary): Sanity check
4660 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4663 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4664 __is_literal_type, and __is_trivial; update throughout about
4665 possibly cv-qualified void types.
4667 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4669 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4670 testsuite and make it version agnostic.
4672 2011-04-22 Jan Hubicka <jh@suse.cz>
4674 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4676 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4679 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4680 to VOID_TYPE even around MODIFY_EXPR.
4682 2011-04-22 Mike Stump <mikestump@comcast.net>
4684 * gensupport.c (read_md_rtx): Fix typo in comment.
4685 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4688 2011-04-22 Jan Hubicka <jh@suse.cz>
4690 * gengtype.c (open_base_files): Add ipa-inline.h include.
4691 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4692 ipa-prop.c; update all uses.
4693 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4694 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4695 merge summary of inlined function into former caller.
4696 * ipa-inline.c (max_benefit): Remove.
4697 (edge_badness): Compensate for removal of benefits.
4698 (update_caller_keys): Use
4699 reset_node_growth_cache/reset_edge_growth_cache.
4700 (update_callee_keys): Likewise.
4701 (update_all_callee_keys): Likewise.
4702 (inline_small_functions): Do not collect max_benefit; do not reset
4703 estimated_growth; call free_growth_caches and initialize_growth_caches.
4704 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4705 struct size_time_entry): New structures.
4706 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4707 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4708 and estimated_growth.
4709 (edge_growth_cache_entry): New structure.
4710 (node_growth_cache, edge_growth_cache): New global vars.
4711 (estimate_growth): Turn into inline.
4712 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4713 initialize_growth_caches, free_growth_caches): Declare.
4714 (estimate_edge_growth): Rewrite.
4715 (estimate_edge_time): Implement as inline cache lookup.
4716 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4718 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4719 (NUM_CONDITIONS): New constant.
4720 (predicate_conditions): New enum.
4721 (IS_NOT_CONSTANT): New constant.
4722 (edge_removal_hook_holder): New var.
4723 (node_growth_cache, edge_growth_cache): New global vars.
4724 (true_predicate, single_cond_predicate, false_predicate,
4725 not_inlined_predicate, add_condition, add_clause, and_predicates,
4726 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4727 dump_clause, dump_predicate, account_size_time,
4728 evaulate_conditions_for_edge): New functions.
4729 (inline_summary_alloc): Move to heap.
4730 (inline_node_removal_hook): Clear condition and entry vectors.
4731 (inline_edge_removal_hook): New function.
4732 (initialize_growth_caches, free_growth_caches): New function.
4733 (dump_inline_summary): Update.
4734 (edge_execution_predicate): New function.
4735 (will_be_nonconstant_predicate): New function.
4736 (estimate_function_body_sizes): Compute BB and constantness predicates.
4737 (compute_inline_parameters): Do not clear estimated_growth.
4738 (estimate_edge_size_and_time): New function.
4739 (estimate_calls_size_and_time): New function.
4740 (estimate_callee_size_and_time): New function.
4741 (remap_predicate): New function.
4742 (inline_merge_summary): New function.
4743 (do_estimate_edge_time): New function based on...
4744 (estimate_edge_time): ... this one.
4745 (do_estimate_edge_growth): New function.
4746 (do_estimate_growth): New function based on....
4747 (estimate_growth): ... this one.
4748 (inline_analyze_function): Analyze after deciding on jump functions.
4749 (inline_read_section): New function.
4750 (inline_read_summary): Use it.
4751 (inline_write_summary): Write all the new data.
4752 * ipa-prop.c (ipa_get_param_decl_index): Export.
4753 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4754 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4756 (ipa_get_lattice): Move here from ipa-cp.c
4757 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4758 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4759 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4760 cgraph_edge_inlinable_p): Remove.
4761 * cgraphunit.c: Include ipainline.h
4762 (cgraph_process_new_functions): Update call of
4763 compute_inline_parameters.
4765 2011-04-22 Richard Guenther <rguenther@suse.de>
4767 * tree.c (build_int_cst): Properly create canonicalized integer
4769 (build_int_cst_type): Remove scary comments.
4771 2011-04-22 Xinliang David Li <davidxl@google.com>
4773 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4774 by default when -Wno-error is not specified.
4775 * opts-global.c (decode_options): Remove call to
4776 control_warning_options.
4778 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4780 PR tree-optimization/48717
4781 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4782 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4784 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4786 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4787 definition where used.
4789 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4792 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4793 TREE_STATIC variables declared inside of some OpenMP construct.
4795 2011-04-22 Martin Jambor <mjambor@suse.cz>
4798 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4800 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4803 * c-typeck.c (pop_init_level): Do not warn about initializing
4806 2011-04-22 Alan Modra <amodra@gmail.com>
4808 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4809 when returning call_cookie.
4810 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4811 pointers, to functions with no more vector args than the current
4812 function, and some non-local calls for ABI_V4.
4813 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4814 sibcall_nonlocal_aix64): Combine to ..
4815 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4816 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4817 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4818 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4819 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4821 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4822 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4823 sibcall_value_symbolic_64): Delete.
4825 2011-04-21 Xinliang David Li <davidxl@google.com>
4827 * cgraph.h: Remove pid.
4828 * cgraph.c: Remove pid.
4829 * value-prof.c (init_node_map): New function.
4830 (del_node_map): New function.
4831 (find_func_by_funcdef_no): New function.
4832 (gimple_ic_transform): Call new function.
4833 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4834 * function.c (get_last_funcdef_no): New function.
4835 * function.h (get_last_funcdef_no): New function.
4836 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4837 to libgcov function.
4838 (tree-profiling): Call node map init and delete function.
4840 2011-04-21 Ian Lance Taylor <iant@google.com>
4842 * godump.c (go_format_type): Use exported Go name for anonymous
4845 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4847 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4848 Call builtin_function_type_list instead of builtin_function_type.
4849 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4851 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4853 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4854 build_function_type_list instead of build_function_type.
4855 Delete variable `endlink'.
4857 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4859 * config/s390/s390.c (s390_init_builtins): Call
4860 build_function_type_list instead of build_function_type.
4862 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4864 * config/ia64/ia64.c (ia64_init_builtins): Call
4865 build_function_type_list instead of builtin_function_type.
4867 2011-04-21 Easwaran Raman <eraman@google.com>
4869 * cfgexpand.c (stack_var): Remove OFFSET...
4870 (add_stack_var): ...and its reference here...
4871 (expand_stack_vars): ...and here.
4872 (stack_var_cmp): Sort by descending order of size.
4873 (partition_stack_vars): Change heuristic.
4874 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4875 (dump_stack_var_partition): Add newline after each partition.
4877 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4878 Jeff Law <law@redhat.com>
4880 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4881 * gengtype.c (matching_file_name_substitute): Likewise.
4883 2011-04-21 Richard Guenther <rguenther@suse.de>
4886 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4888 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4890 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4892 2011-04-21 Richard Guenther <rguenther@suse.de>
4894 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4897 2011-04-21 Richard Guenther <rguenther@suse.de>
4899 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4900 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4901 Use DECL_P, not SSA_VAR_P.
4902 (ptr_derefs_may_alias_p): Likewise.
4903 (ptr_deref_may_alias_ref_p_1): Likewise.
4904 (decl_refs_may_alias_p): Likewise.
4905 (refs_may_alias_p_1): Likewise.
4906 (ref_maybe_used_by_call_p_1): Likewise.
4907 (call_may_clobber_ref_p_1): Likewise.
4908 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4909 are either MEM_REF or TARGET_MEM_REF.
4910 (indirect_refs_may_alias_p): Likewise.
4911 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4912 for MEM_EXPR of indirect calls.
4914 2011-04-21 Tristan Gingold <gingold@adacore.com>
4916 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4917 (dst_file_info_struct): Remove flen field.
4918 (lookup_filename): Remove code that set flen field.
4920 2011-04-21 Tristan Gingold <gingold@adacore.com>
4922 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4924 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4927 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4928 vec_extract and vec_concat for non-SSE4_1 targets.
4930 2011-04-21 Richard Guenther <rguenther@suse.de>
4932 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4935 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4937 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4939 (FILE): Don't undefine.
4941 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4943 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4945 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4947 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4948 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4949 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4951 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4952 definitions where used.
4953 * config/microblaze/microblaze.h (struct microblaze_args): Use
4954 rtx, not struct rtx_def *.
4955 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4957 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4958 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4959 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4960 not struct rtx_def *.
4961 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4963 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4965 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4967 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4969 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4970 operand_equal_p to compare DR_BASE_ADDRESSes.
4971 (vect_check_interleaving): Likewise.
4973 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4976 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4977 for all Neon struct constants.
4979 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4981 * target.def (legitimate_constant_p): New hook.
4982 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4983 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4984 * doc/tm.texi: Regenerate.
4985 * hooks.h (hook_bool_mode_rtx_true): Declare.
4986 * hooks.c (hook_bool_mode_rtx_true): Define.
4987 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4988 * calls.c (precompute_register_parameters): Replace uses of
4989 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4990 (emit_library_call_value_1): Likewise.
4991 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4992 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4993 * ira-costs.c (scan_one_insn): Likewise.
4994 * recog.c (general_operand, immediate_operand): Likewise.
4995 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4996 * reload1.c (init_eliminable_invariants): Likewise.
4998 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5000 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5001 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5003 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5004 * config/alpha/predicates.md (input_operand): Update call to
5005 alpha_legitimate_constant_p.
5007 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5008 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5009 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5010 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5011 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5012 (arm_legitimate_constant_p): New functions.
5013 (arm_cannot_force_const_mem): Make static.
5015 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5017 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5018 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5019 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5020 instead of bfin_legitimate_constant_p.
5021 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5022 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5024 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5026 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5028 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5029 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5030 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5031 (frv_legitimate_constant_p): Make static. Add a mode argument.
5033 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5034 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5035 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5037 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5038 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5039 * config/i386/i386.c (legitimate_constant_p): Rename to...
5040 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5042 (ix86_cannot_force_const_mem): Update accordingly.
5043 (ix86_legitimate_address_p): Likewise.
5044 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5045 * config/i386/i386.md: Update commentary.
5047 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5048 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5049 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5050 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5052 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5054 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5055 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5056 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5057 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5059 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5060 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5061 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5063 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5064 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5065 (m32r_legitimate_constant_p): New function.
5067 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5068 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5069 LEGITIMATE_CONSTANT_P.
5070 (LEGITIMATE_CONSTANT_P): Delete.
5071 * config/m68k/m68k.c (m68k_expand_prologue): Call
5072 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5073 (m68k_legitimate_constant_p): New function.
5074 * config/m68k/m68k.md: Update comments.
5076 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5077 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5078 (mcore_legitimate_constant_p): New function.
5080 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5081 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5082 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5083 Add a mode argument.
5084 (mep_legitimate_address): Update accordingly.
5085 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5087 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5089 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5090 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5091 static. Check OP's mode for VOIDmode.
5092 (microblaze_legitimate_constant_p): New function.
5093 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5095 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5096 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5097 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5098 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5099 * config/mips/predicates.md: Update comments.
5101 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5102 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5103 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5104 (mmix_legitimate_constant_p): Make static, return a bool, and take
5106 (mmix_print_operand_address): Update accordingly.
5108 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5110 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5111 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5112 static. Add a mode argument.
5113 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5115 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5117 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5118 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5119 (pa_legitimate_constant_p): New function.
5121 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5123 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5124 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5125 (pdp11_legitimate_constant_p): New function.
5127 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5128 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5129 (rs6000_legitimate_constant_p): New function.
5131 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5132 (rx_legitimate_constant_p): ...this.
5133 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5134 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5135 (rx_legitimate_constant_p): ...this.
5136 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5137 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5139 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5140 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5141 * config/s390/s390.c (legitimate_constant_p): Rename to...
5142 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5143 and add a mode argument.
5144 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5146 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5148 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5149 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5150 (sh_legitimate_constant_p): New function.
5152 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5153 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5154 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5155 (legitimate_constant_p): Rename to...
5156 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5158 (constant_address_p): Update accordingly.
5160 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5161 argument and return a bool.
5162 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5163 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5164 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5165 (spu_rtx_costs): Update accordingly.
5166 * config/spu/predicates.md (vec_imm_operand): Likewise.
5168 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5170 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5171 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5172 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5174 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5175 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5176 * config/vax/vax.c (legitimate_constant_p): Likewise.
5178 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5179 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5180 (xtensa_legitimate_constant_p): New function.
5182 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5184 * target.def (cannot_force_const_mem): Add a mode argument.
5185 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5186 * doc/tm.texi: Regenerate.
5187 * hooks.h (hook_bool_mode_rtx_false): Declare.
5188 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5189 (hook_bool_mode_const_rtx_true): Likewise.
5190 (hook_bool_mode_rtx_false): New function.
5191 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5192 to be non-VOID. Update call to cannot_force_const_mem.
5193 (find_reloads): Update accordingly.
5194 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5195 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5197 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5198 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5199 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5200 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5201 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5202 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5203 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5204 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5205 (m68k_cannot_force_const_mem): ...this new function.
5206 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5208 (mips_const_insns, mips_legitimize_const_move): Update calls.
5209 (mips_secondary_reload_class): Likewise.
5210 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5211 (pa_cannot_force_const_mem): ...this new function.
5212 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5213 (rs6000_cannot_force_const_mem): ...this new function.
5214 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5216 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5217 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5219 (xtensa_cannot_force_const_mem): ...this new function.
5221 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5223 * config/mips/mips.c (mips16_build_function_stub): Call
5224 build_function_type_list instead of build_function_type.
5225 (mips16_build_call_stub): Likewise.
5227 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5229 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5230 instead of build_function_type.
5232 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5234 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5235 instead of build_function_type.
5237 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5240 * config/i386/i386.md (insv): Change operand 0 constraint to
5241 "register_operand". Change operand 1 and 2 constraint to
5242 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5243 * config/i386/sse.md (sse4_1_pinsrb): Export.
5244 (sse2_pinsrw): Ditto.
5245 (sse4_1_pinsrd): Ditto.
5246 (sse4_1_pinsrq): Ditto.
5247 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5248 * config/i386/i386.c (ix86_expand_pinsr): New.
5250 2011-04-20 Easwaran Raman <eraman@google.com>
5252 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5253 containing union type only with -fstrict-aliasing.
5255 2011-04-20 Jim Meyering <meyering@redhat.com>
5257 Remove useless if-before-free tests.
5258 * calls.c (expand_call, save_area): Likewise.
5259 * cfgcleanup.c (try_forward_edges): Likewise.
5260 * collect2.c (collect_execute): Likewise.
5261 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5262 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5263 * coverage.c (coverage_checksum_string): Likewise.
5264 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5265 * cselib.c (cselib_init): Likewise.
5266 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5267 (df_set_clean_cfg): Likewise.
5268 * function.c (free_after_compilation): Likewise.
5269 * gcc.c (do_spec_1, main): Likewise.
5270 * gcov.c (create_file_names): Likewise.
5271 * gensupport.c (identify_predicable_attribute): Likewise.
5272 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5273 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5274 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5275 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5276 * ipa-pure-const.c (local_pure_const): Likewise.
5277 * ipa-reference.c (propagate): Likewise.
5278 * ira-costs.c (free_ira_costs): Likewise.
5279 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5280 * matrix-reorg.c (mat_free): Likewise.
5281 * prefix.c (get_key_value): Likewise.
5282 * profile.c (compute_value_histograms): Likewise.
5283 * reload1.c (free_reg_equiv): Likewise.
5284 * sched-deps.c (free_deps): Likewise.
5285 * sel-sched-ir.c (fence_clear): Likewise.
5286 * sese.c (set_rename, if_region_set_false_region): Likewise.
5287 * tree-data-ref.c (free_rdg): Likewise.
5288 * tree-eh.c (lower_try_finally): Likewise.
5289 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5290 * tree-ssa-live.c (delete_var_map): Likewise.
5291 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5292 * tree-ssa-pre.c (phi_trans_add): Likewise.
5294 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5296 PR tree-optimization/48611
5297 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5298 beyond ERT_MUST_NOT_THROW region.
5300 2011-04-20 Catherine Moore <clm@codesourcery.com>
5302 * config/mips/mips.opt (mfix-24k): New.
5303 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5304 * config/mips/mips.md (length): Increase by 4 for stores if
5306 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5307 all noreorder if fixing 24K errata.
5308 * doc/invoke.texi: Document mfix-24k.
5310 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5312 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5313 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5315 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5317 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5318 (const_ok_for_op): ... to here.
5320 2011-04-20 Kai Tietz <ktietz@redhat.com>
5322 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5323 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5325 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5327 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5329 2011-04-20 Richard Guenther <rguenther@suse.de>
5331 PR tree-optimization/47892
5332 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5335 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5337 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5339 2011-04-20 Tristan Gingold <gingold@adacore.com>
5341 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5343 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5347 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5348 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5349 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5350 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5351 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5353 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5356 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5357 (avr_asm_named_section, avr_asm_output_aligned_common,
5358 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5359 New functions to update...
5360 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5361 (avr_asm_init_sections): Overwrite section callbacks for
5362 data_section, bss_section.
5363 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5365 (avr_file_end): ...here.
5367 2011-04-20 Richard Guenther <rguenther@suse.de>
5370 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5371 objects and types here. Adjust for their offset before comparing.
5373 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5375 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5378 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5380 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5381 (GIMPLE_H): Include $(INTERNAL_FN_H).
5382 (OBJS-common): Add internal-fn.o.
5383 (internal-fn.o): New rule.
5384 * internal-fn.def: New file.
5385 * internal-fn.h: Likewise.
5386 * internal-fn.c: Likewise.
5387 * gimple.h: Include internal-fn.h.
5388 (GF_CALL_INTERNAL): New gf_mask.
5389 (gimple_statement_call): Put fntype into a union with a new
5391 (gimple_build_call_internal): Declare.
5392 (gimple_build_call_internal_vec): Likewise.
5393 (gimple_call_same_target_p): Likewise.
5394 (gimple_call_internal_p): New function.
5395 (gimple_call_internal_fn): Likewise.
5396 (gimple_call_fntype): Return null for internal calls.
5397 (gimple_call_set_fntype): Assert that the function is not internal.
5398 (gimple_call_set_fn): Likewise.
5399 (gimple_call_set_fndecl): Likewise.
5400 (gimple_call_set_internal_fn): New function.
5401 (gimple_call_addr_fndecl): Handle null functions.
5402 (gimple_call_return_type): Likewise null types.
5403 * gimple.c (gimple_build_call_internal_1): New function.
5404 (gimple_build_call_internal): Likewise.
5405 (gimple_build_call_internal_vec): Likewise.
5406 (gimple_call_same_target_p): Likewise.
5407 (gimple_call_flags): Handle calls to internal functions.
5408 (gimple_call_fnspec): New function.
5409 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5410 (gimple_has_side_effects): Handle null functions.
5411 (gimple_rhs_has_side_effects): Likewise.
5412 (gimple_call_copy_skip_args): Handle calls to internal functions.
5413 * cfgexpand.c (expand_call_stmt): Likewise.
5414 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5415 * gimple-fold.c (gimple_fold_call): Handle null functions.
5416 (gimple_fold_stmt_to_constant_1): Don't fold
5417 calls to internal functions.
5418 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5420 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5421 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5422 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5423 (do_warn_unused_result): Likewise.
5424 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5425 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5426 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5427 the target of a call.
5428 (initialize_hash_element): Update accordingly.
5429 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5430 (iterative_hash_hashable_expr): Handle calls to internal functions.
5431 (print_expr_hash_elt): Likewise.
5432 * tree-ssa-pre.c (can_value_number_call): Likewise.
5433 (eliminate): Handle null functions.
5434 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5435 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5436 (find_func_aliases): Likewise.
5437 * value-prof.c (gimple_ic_transform): Likewise.
5438 (gimple_indirect_call_to_profile): Likewise.
5439 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5440 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5442 2011-04-19 Jan Hubicka <jh@suse.cz>
5444 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5445 * ipa-inline.c (inline_small_functions): Compute summaries first,
5446 populate heap later.
5448 2011-04-19 Jan Hubicka <jh@suse.cz>
5450 * cgraph.h (save_inline_function_body): Remove.
5451 * ipa-inline-transform.c: New file, broke out of...
5452 * ipa-inline.c: ... this one; Update toplevel comment.
5453 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5455 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5456 (cgraph_mark_inline_edge): Rename to inline_call; move to
5457 ipa-inline-transform.c.
5458 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5459 move to ipa-inline-transform.c
5460 (recursive_inlining, inline_small_functions, flatten_function,
5461 ipa_inline, inline_always_inline_functions,
5462 early_inline_small_functions): Update.
5463 (inline_transform): Move to ipa-inline-transform.c.
5464 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5466 * Makefile.in (ipa-inline-transform.o): New file.
5467 * cgraphunit.c (save_inline_function_body): Move to
5468 ipa-inline-transform.c
5470 2011-04-19 DJ Delorie <dj@redhat.com>
5472 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5473 registers if we already know there aren't any.
5474 (m32c_emit_epilogue): Don't emit a barrier here.
5475 (m32c_emit_eh_epilogue): Likewise.
5476 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5477 operands at expand time.
5478 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5480 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5481 duplicates. Provide aliases instead.
5482 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5483 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5486 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5488 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5489 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5490 (general_or_i64_p, sparc_register_move_cost): New function.
5492 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5494 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5495 Add lynx, mipssde. Sort table.
5497 2011-04-19 Xinliang David Li <davidxl@google.com>
5499 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5502 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5505 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5506 is a SUBREG with non-MODE_INT mode inside of it.
5508 2011-04-19 Martin Jambor <mjambor@suse.cz>
5510 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5511 also according to actual contants.
5512 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5513 (gimple_fold_call): Use it.
5514 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5516 2011-04-19 Martin Jambor <mjambor@suse.cz>
5518 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5519 non-pointer assignments.
5521 2011-04-19 Martin Jambor <mjambor@suse.cz>
5523 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5524 account anc_offset and otr_type from the indirect edge info.
5525 * ipa-prop.c (get_ancestor_addr_info): New function.
5526 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5527 get_ancestor_addr_info, call it.
5528 (ipa_note_param_call): Do not initialize information about polymorphic
5529 calls, return the indirect call graph edge. Remove the last
5530 parameter, adjust all callers.
5531 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5532 parameters. Initialize polymorphic information in the indirect edge.
5534 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5537 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5538 the types if they have different enumeration identifiers.
5540 2011-04-19 Jan Hubicka <jh@suse.cz>
5542 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5543 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5544 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5545 (optimize_function_for_size_p) ... here.
5547 2011-04-19 Richard Guenther <rguenther@suse.de>
5550 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5553 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5555 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5556 if DECL_NO_INLINE_WARNING_P is set on the function.
5558 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5561 * reload1.c (inc_for_reload): Return void. All callers changed.
5562 (emit_input_reload_insns): Don't try to delete previous output
5563 reloads to a register, or record spill_reg_store for autoincs.
5565 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5567 * gengtype.h: Updated copyright year.
5568 (struct input_file_st): Add inpisplugin field.
5569 (type_fileloc): New function.
5571 (write_typed_struct_alloc_def): Add gcc_assert.
5572 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5573 (write_typed_alloc_defns): Don't output for plugin files.
5574 (input_file_by_name): Clear inpisplugin field.
5575 (main): Set inpisplugin field for plugin files.
5577 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5579 * gengtype-state.c (string_eq): New.
5580 (read_state): Use string_eq instead of strcmp when creating the
5583 2011-04-19 Wei Guozhi <carrot@google.com>
5586 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5587 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5589 * config/arm/constraints.md (Uu): New constraint.
5590 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5592 2011-04-19 Tristan Gingold <gingold@adacore.com>
5594 * config.gcc (-*-*-*vms): Added.
5595 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5597 * config/vms/vms-ld.c: New file.
5598 * config/vms/vms-ar.c: New file.
5599 * config/vms/t-vmsnative: New file.
5601 2011-04-18 Xinliang David Li <davidxl@google.com>
5603 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5605 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5608 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5609 if TREE_TYPE (v) is non-NULL.
5611 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5612 gimple_get_virt_mehtod_for_binfo.
5613 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5614 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5616 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5618 2011-04-18 Michael Matz <matz@suse.de>
5619 Steve Ellcey <sje@cup.hp.com>
5621 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5622 use its mode as source mode if it isn't VOIDmode.
5624 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5626 * doc/passes.texi: Fill crossref nodes.
5628 2011-04-18 Jim Meyering <meyering@redhat.com>
5630 Fix doubled-word typos in comments and strings
5631 * config/alpha/vms-unwind.h: s/for for/for/
5632 * config/arm/unwind-arm.h: Likewise.
5633 * config/microblaze/microblaze.c: Likewise.
5634 * config/sh/constraints.md: s/in in/in/
5635 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5637 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5639 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5640 (AVX_FLOAT_MODE_P): Ditto.
5641 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5642 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5643 (AVX_VEC_FLOAT_MODE_P): Ditto.
5644 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5645 (UNSPEC_MASKSTORE): Ditto.
5646 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5647 Merge from <sse>_movmsk<ssemodesuffix> and
5648 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5649 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5651 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5652 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5653 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5655 2011-04-18 Jan Hubicka <jh@suse.cz>
5657 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5659 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5660 (want_inline_function_called_once_p): Break out the logic from
5662 (edge_badness): Ensure that profile is not misupdated.
5663 (lookup_recursive_calls): Prioritize by call frequencies.
5664 (inline_small_functions): Move program size estimates here;
5665 actually process whole queue even when unit growth has been
5666 met. (to properly compute inline_failed reasons and for the
5667 case unit size decrease.) Revisit comments on recursive inlining.
5668 (ipa_inline): Remove unit summary code; first inline hot calls
5669 of functions called once, cold calls next.
5670 (order, nnodes): Remove unused variables.
5671 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5672 (GTFILES): Remove ipa-inline.c
5673 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5675 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5677 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5679 2011-04-18 Jie Zhang <jie@codesourcery.com>
5680 Richard Earnshaw <rearnsha@arm.com>
5682 * arm.c (neon_builtin_type_bits): Remove.
5683 (typedef enum neon_builtin_mode): New.
5684 (T_MAX): Don't define.
5685 (typedef enum neon_builtin_datum): Remove bits, codes[],
5686 num_vars and base_fcode. Add mode, code and fcode.
5687 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5688 VAR10): Change accordingly.
5689 (neon_builtin_data[]): Change accordingly
5690 (arm_init_neon_builtins): Change accordingly.
5691 (neon_builtin_compare): Remove.
5692 (locate_neon_builtin_icode): Remove.
5693 (arm_expand_neon_builtin): Change accordingly.
5695 * arm.h (enum arm_builtins): Move to ...
5696 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5698 * arm.c (arm_builtin_decl): Declare.
5699 (TARGET_BUILTIN_DECL): Define.
5700 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5701 (arm_builtin_decls[]): New.
5702 (arm_init_neon_builtins): Store builtin declarations in
5703 arm_builtin_decls[].
5704 (arm_init_tls_builtins): Likewise.
5705 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5706 (arm_builtin_decl): New.
5708 2011-04-18 Richard Guenther <rguenther@suse.de>
5710 * tree.c (upper_bound_in_type): Build properly canonicalized
5712 (lower_bound_in_type): Likewise.
5714 2011-04-18 Richard Guenther <rguenther@suse.de>
5716 * gimple.h (gimple_call_addr_fndecl): New function.
5717 (gimple_call_fndecl): Use it.
5718 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5720 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5721 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5723 2011-04-18 Richard Guenther <rguenther@suse.de>
5726 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5728 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5731 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5732 DECL_IN_CONSTANT_POOL without RTL.
5734 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5735 Ira Rosen <ira.rosen@linaro.org>
5738 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5739 to match neon_vzip/vuzp/vtrn_internal.
5740 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5741 outputs explicitly dependent on both inputs.
5742 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5744 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5746 PR tree-optimization/48616
5747 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5748 whether the shift is by scalar or vector based on whether all SLP
5749 scalar stmts have the same rhs.
5751 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5753 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5756 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5759 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5762 2011-04-17 Jan Hubicka <jh@suse.cz>
5764 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5765 * cgrpahunit.c (cgraph_finalize_function): Do not set
5766 finalized_by_frontend.
5767 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5768 finalized_by_frontend.
5770 2011-04-17 Jan Hubicka <jh@suse.cz>
5772 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5773 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5774 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5775 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5777 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5779 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5781 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5784 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5785 is non-null before accessing it.
5786 (input_cgraph): Remove trailing spaces.
5788 2011-04-17 Revital Eres <revital.eres@linaro.org>
5790 * params.def (sms-min-sc): New param flag.
5791 * modulo-sched.c (sms_schedule): Use it.
5792 * doc/invoke.texi (sms-min-sc): Document it.
5794 2011-04-17 Jan Hubicka <jh@suse.cz>
5796 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5797 present, also set gimple_call_set_cannot_inline.
5798 * ipa-inline.c: Update toplevel comment.
5800 (cgraph_clone_inlined_nodes): Fix linebreaks.
5801 (cgraph_check_inline_limits): Restructure to ...
5802 (caller_growth_limits): ... this one; be more tolerant
5803 on growth in nested inline chains; add explanatory comment;
5804 fix stack accounting thinko introduced by previous patch.
5805 (cgraph_default_inline_p): Remove.
5806 (report_inline_failed_reason): New function.
5807 (can_inline_edge_p): New function.
5808 (can_early_inline_edge_p): New function.
5809 (leaf_node_p): Move upwards in file.
5810 (want_early_inline_function_p): New function.
5811 (want_inline_small_function_p): New function.
5812 (want_inline_self_recursive_call_p): New function.
5813 (cgraph_edge_badness): Rename to ...
5814 (edge_badness) ... this one; fix linebreaks.
5815 (update_edge_key): Update call of edge_baddness; add
5816 detailed dump about queue updates.
5817 (update_caller_keys): Use can_inline_edge_p and
5818 want_inline_small_function_p.
5819 (cgraph_decide_recursive_inlining): Rename to...
5820 (recursive_inlining): Use can_inline_edge_p and
5821 want_inline_self_recursive_call_p; simplify and remove no longer
5823 (cgraph_set_inline_failed): Remove.
5824 (add_new_edges_to_heap): Use can_inline_edge_p and
5825 want_inline_small_function_p.
5826 (cgraph_decide_inlining_of_small_functions): Rename to ...
5827 (inline_small_functions): ... this one; cleanup; use
5828 can/want predicates; cleanup debug ouput; work edges till fibheap
5829 is exhausted and do not stop once unit growth is reached; remove
5830 later loop processing remaining edges.
5831 (cgraph_flatten): Rename to ...
5832 (flatten_function): ... this one; use can_inline_edge_p
5833 and can_early_inline_edge_p predicates.
5834 (cgraph_decide_inlining): Rename to ...
5835 (ipa_inline): ... this one; remove unreachable nodes before
5836 inlining functions called once; simplify the pass.
5837 (cgraph_perform_always_inlining): Rename to ...
5838 (inline_always_inline_functions): ... this one; use
5839 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5840 (cgraph_decide_inlining_incrementally): Rename to ...
5841 (early_inline_small_functions): ... this one; simplify
5842 using new predicates; cleanup; make dumps prettier.
5843 (cgraph_early_inlining): Rename to ...
5844 (early_inliner): newer inline regular functions into always-inlines;
5845 fix updating of call stmt summaries.
5846 (pass_early_inline): Update for new names.
5847 (inline_transform): Fix formating.
5848 (gate_cgraph_decide_inlining): Rename to ...
5849 (pass_ipa_inline): ... this one.
5850 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5851 * ipa-inline-analysis.c (dump_inline_summary): Update.
5852 (compute_inline_parameters): Do not compute disregard_inline_limits;
5853 look for mismatching arguments.
5854 (estimate_growth): Fix handlig of non-trivial self recursion.
5855 (inline_read_summary): Do not read info->disregard_inline_limits.
5856 (inline_write_summary): Do not write info->disregard_inline_limits.
5857 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5858 and move all checks into can_inline_edge_p predicate; re-enable code
5859 comparing optimization levels.
5860 (expand_call_inline): Do not test inline_forbidden_into_p.
5861 * Makefile.in (ipa-inline.o): Update arguments.
5863 2011-04-17 Revital Eres <revital.eres@linaro.org>
5865 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5867 2011-04-17 Revital Eres <revital.eres@linaro.org>
5869 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5871 2011-04-17 Michael Matz <matz@suse.de>
5873 PR tree-optimization/48622
5875 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5876 in same order as they're written.
5878 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5880 * config/pa/predicates.md: Reorganize and simplify predicates.
5881 Eliminate duplicate code checks.
5882 (arith_operand): Rename to arith14_operand
5883 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5884 * config/pa/pa.md: Use renamed operands.
5885 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5886 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5887 arith11_operand, adddi3_operand, indexed_memory_operand,
5888 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5889 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5890 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5891 move_dest_operand, move_src_operand, prefetch_cc_operand,
5892 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5893 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5894 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5895 div_operand, int5_operand, movb_comparison_operator,
5896 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5897 arith_double_operand, ireg_operand, lhs_lshift_operand,
5898 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5899 integer_store_memory_operand): Likewise.
5900 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5901 (integer_store_memory_operand, read_only_operand,
5902 function_label_operand, borx_reg_operand,
5903 non_hard_reg_operand): Likewise.
5904 (eq_neq_comparison_operator): Delete unused operator.
5905 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5906 function_label_operand.
5907 (emit_move_sequence): Likewise.
5909 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5911 * config/i386/sse.md (sseunpackmode): New mode attribute.
5912 (ssepackmode): Ditto.
5913 (vec_pack_trunc_<mode>): Macroize expander from
5914 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5915 (vec_unpacks_lo_<mode>): Macroize expander from
5916 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5917 (vec_unpacks_hi_<mode>): Macroize expander from
5918 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5919 (vec_unpacku_lo_<mode>): Macroize expander from
5920 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5921 (vec_unpacku_hi_<mode>): Macroize expander from
5922 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5923 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5924 ix86_expand_sse4_unpack.
5925 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5927 2011-04-16 Jan Hubicka <jh@suse.cz>
5929 * cgraphbuild.c: Include ipa-inline.h.
5930 (reset_inline_failed): Use initialize_inline_failed.
5931 * cgraph.c: Include ipa-inline.h.
5932 (cgraph_create_node_1): Do not initialize estimated_growth.
5933 (initialize_inline_failed): More to ipa-inline-analysis.c
5934 (dump_cgraph_node): Do not dump inline flags.
5935 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5936 and disregard_inline_limits flags.
5937 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5938 time, size, estimated_growth.
5939 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5941 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5942 DECL_DISREGARD_INLINE_LIMITS.
5943 (cgraph_analyze_function): Do not initialize
5944 node->local.disregard_inline_limits.
5945 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5946 inlinable, versionable and disregard_inline_limits.
5947 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5948 cgraph_check_inline_limits, cgraph_default_inline_p,
5949 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5950 add_new_edges_to_heap): Update.
5951 (cgraph_decide_inlining_of_small_function): Update; set
5952 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5953 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5954 cgraph_decide_inlining_incrementally): Update.
5955 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5956 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5957 time, size and estimated_growth parameters.
5958 (estimate_edge_growth): Update.
5959 (initialize_inline_failed): Declare.
5960 * ipa-split.c: Include ipa-inline.h
5961 (execute_split_functions): Update.
5962 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5963 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5964 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5965 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5966 estimated_growth to INT_MIN.
5967 (inline_node_duplication_hook): Likewise.
5968 (dump_inline_summary): Dump new fields.
5969 (compute_inline_parameters): Update.
5970 (estimate_edge_time, estimate_time_after_inlining,
5971 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5972 inline_write_summary):
5973 (initialize_inline_failed): Move here from cgraph.c.
5974 * tree-sra.c: Include ipa-inline.h.
5975 (ipa_sra_preliminary_function_checks): Update.
5976 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5979 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5981 * config/i386/sse.md (V16): New mode iterator.
5983 (AVXMODEQI, AVXMODEDI): Remove.
5984 (sse2, sse3): New mode attribute.
5985 (mov<mode>): Use V16 mode iterator.
5986 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5987 (push<mode>1): Use V16 mode iterator.
5988 (movmisalign<mode>): Ditto.
5989 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5990 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5991 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5992 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5993 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5994 avx_movdqu<avxmodesuffix>.
5995 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5996 *avx_movdqu<avxmodesuffix>.
5997 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5998 avx_lddqu<avxmodesuffix>.
5999 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6000 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6001 avx_movnt<AVXMODEDI:mode>.
6002 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6003 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6005 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6008 * haifa-sched.c (prune_ready_list, schedule_block): Use
6009 sched_pressure_p rather than flag_sched_pressure.
6011 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6013 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6014 cgraph_get_node instead of cgraph_get_create_node.
6016 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6018 * cfgexpand.c (expand_debug_expr): Use
6019 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6021 2011-04-15 Michael Matz <matz@suse.de>
6023 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6024 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6025 * function.c (gimplify_parameters): Ditto.
6026 * gimplify.c (gimplify_vla_decl): Ditto.
6028 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6029 (gimple_call_set_alloca_for_var): New inline function.
6030 (gimple_call_alloca_for_var_p): Ditto.
6031 * gimple.c (gimple_build_call_from_tree): Remember
6032 CALL_ALLOCA_FOR_VAR_P state.
6033 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6035 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6036 calls if they were for VLA objects.
6038 2011-04-15 Martin Jambor <mjambor@suse.cz>
6040 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6043 2011-04-15 Martin Jambor <mjambor@suse.cz>
6046 * tree-emutls.c (lower_emutls_function_body): Call
6047 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6050 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6052 * c-decl.c (detect_field_duplicates): Call
6053 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6055 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6057 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6058 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6059 * ipa-pure-const.c (check_stmt): Call it.
6060 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6062 2011-04-15 Richard Guenther <rguenther@suse.de>
6064 PR tree-optimization/48290
6065 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6066 Properly decide inhibiting propagation based on the valueized
6067 operand. Do loop-closed SSA form preserving here ...
6068 (init_copy_prop): ... not here.
6070 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6073 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6074 (*ieee_smax<mode>3): Likewise.
6076 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6078 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6079 Replace match_operand with match_dup for the third operand in
6082 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6084 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6085 to track processing of conditionals. Update all callers.
6086 (try_combine, simplify_if_then_else): Update.
6088 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6090 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6093 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6095 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6096 instead of match_operand for operand 3.
6098 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6100 * recog.h (insn_operand_data): Add an "allows_mem" field.
6101 * genoutput.c (output_operand_data): Initialize it.
6102 * optabs.c (maybe_legitimize_operand_same_code): New function.
6103 (maybe_legitimize_operand): Use it when matching the original
6106 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6108 * gimplify.c: Fix issues in comments throughout.
6109 (voidify_wrapper_expr): Fix long line.
6110 (build_stack_save_restore): Likewise.
6111 (gimplify_loop_expr): Likewise.
6112 (gimplify_compound_lval): Likewise.
6113 (gimplify_init_ctor_eval): Likewise.
6114 (gimplify_modify_expr_rhs): Likewise.
6115 (omp_notice_threadprivate_variable): Likewise.
6117 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6119 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6120 original one if this is not a builtin function.
6122 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6125 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6126 offset it as needed based on top 2 bits in operands[3], change
6127 MEM mode to SFmode and mask those 2 bits away from operands[3].
6129 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6131 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6132 change from objc_declare_protocols() to objc_declare_protocol().
6134 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6136 * config/i386/sse.md (sse4_1): New mode attribute.
6137 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6138 avx_blend<ssemodesuffix><avxmodesuffix> and
6139 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6140 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6141 avx_blendv<ssemodesuffix><avxmodesuffix> and
6142 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6143 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6144 avx_dp<ssemodesuffix><avxmodesuffix> and
6145 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6146 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6147 (sse4_1_packusdw): Merge with *avx_packusdw.
6148 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6149 (sse4_1_pblendw): Merge with *avx_pblendw.
6150 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6151 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6152 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6154 (sse4_1_round<ssescalarmodesuffix>): Merge with
6155 *avx_round<ssescalarmodesuffix>.
6156 (aesenc): Merge with *avx_aesenc.
6157 (aesenclast): Merge with *avx_aesenclast.
6158 (aesdec): Merge with *avx_aesdec.
6159 (aesdeclast): Merge with *avx_aesdeclast.
6160 (pclmulqdq): Merge with *pclmulqdq.
6161 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6163 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6165 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6168 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6169 (align_local_variable): This. Update DECL_ALIGN.
6170 (add_stack_var): Updated.
6171 (expand_one_stack_var): Likewise.
6173 2011-04-14 Richard Guenther <rguenther@suse.de>
6175 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6177 (dse_initialize_block_local_data, dse_leave_block,
6178 record_voperand_set, get_stmt_uid): Likewise.
6179 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6180 (dse_optimize_stmt): Remove voperand set handling code.
6181 Simplify and improve to handle any kind of killing stmt.
6182 (dse_record_phi): Remove.
6183 (dse_enter_block): Simplify.
6184 (tree_ssa_dse): Likewise.
6185 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6187 2011-04-14 Jan Hubicka <jh@suse.cz>
6189 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6190 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6191 (cgraph_local_info): Remove inline_summary.
6192 * ipa-cp.c: Include ipa-inline.h.
6193 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6194 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6196 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6197 (input_overwrite_node): Do not set inline summary.
6198 (input_node): Do not stream inline summary.
6199 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6200 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6201 growth; we do not have inline parameters computed for that anyway.
6202 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6203 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6204 (inline_summary_t): New type and VECtor.
6205 (debug_inline_summary, dump_inline_summaries): Declare.
6206 (inline_summary): Use VOCtor.
6207 (estimate_edge_growth): Kill hack computing call stmt size directly.
6208 * lto-section-in.c (lto_section_name): Add inline section.
6209 * ipa-inline-analysis.c: Include lto-streamer.h
6210 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6211 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6212 (inline_summary_vec): Define.
6213 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6214 dump_inline_summaries): New functions.
6215 (estimate_function_body_sizes): Properly compute size/time of outgoing
6217 (compute_inline_parameters): Alloc inline_summary; do not compute
6218 size/time of incomming calls.
6219 (estimate_edge_time): Avoid missing time summary hack.
6220 (inline_read_summary): Read inline summary info.
6221 (inline_write_summary): Write inline summary info.
6222 (inline_free_summary): Free all hooks and inline summary vector.
6223 * lto-streamer.h: Add LTO_section_inline_summary section.
6224 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6225 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6227 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6229 * tree-vectorizer.h (vect_strided_store_supported): Add a
6230 HOST_WIDE_INT argument.
6231 (vect_strided_load_supported): Likewise.
6232 (vect_permute_store_chain): Return void.
6233 (vect_transform_strided_load): Likewise.
6234 (vect_permute_load_chain): Delete.
6235 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6236 count argument. Check that the count is a power of two.
6237 (vect_strided_load_supported): Likewise.
6238 (vect_permute_store_chain): Return void. Update after above changes.
6239 Assert that the access is supported.
6240 (vect_permute_load_chain): Likewise.
6241 (vect_transform_strided_load): Return void.
6242 * tree-vect-stmts.c (vectorizable_store): Update calls after
6243 above interface changes.
6244 (vectorizable_load): Likewise.
6245 (vect_analyze_stmt): Don't check for strided powers of two here.
6247 2011-04-14 Richard Guenther <rguenther@suse.de>
6249 PR tree-optimization/48590
6250 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6251 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6252 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6253 BUILT_IN_STACK_SAVE.
6254 * tree-ssa-dce.c (propagate_necessity): Handle
6255 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6257 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6259 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6262 2011-04-14 Richard Guenther <rguenther@suse.de>
6264 * tree.h (get_object_alignment_1): Declare.
6265 * builtins.c (get_object_alignment_1): Split out worker from ...
6266 (get_object_alignment): ... here.
6267 * fold-const.c (get_pointer_modulus_and_residue): Use
6268 get_object_alignment_1.
6270 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6272 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6274 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6275 parameter. Generalise code to handle arrays as well as vectors.
6276 (vect_setup_realignment): Update accordingly.
6277 * tree-vect-stmts.c (vectorizable_store): Likewise.
6278 (vectorizable_load): Likewise.
6280 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6282 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6283 within the per-copy loop.
6285 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6287 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6290 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6292 * doc/options.texi (Negative): Explicitly mention that the
6293 Negative chain must be circular.
6295 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6297 * function.h (block_chainon): Declare.
6298 * function.c (block_chainon): Define.
6300 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6301 Eric Weddington <eric.weddington@atmel.com>
6302 Georg-Johann Lay <avr@gjlay.de>
6304 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6306 (avr_init_builtins, avr_expand_builtin,
6307 avr_expand_delay_cycles, avr_expand_unop_builtin,
6308 avr_expand_binop_builtin ): New functions.
6309 (avr_builtin_id): New enum
6310 (struct avr_builtin_description): New struct
6311 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6312 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6314 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6315 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6316 UNSPECV_DELAY_CYCLES): new enumeration values
6317 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6318 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6319 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6320 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6321 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6322 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6323 "fmulsu"): New insns
6325 * config/avr/avr-c.c: fix line endings
6326 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6327 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6328 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6329 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6330 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6332 * doc/extend.texi (AVR Built-in Functions): New node
6333 (Target Builtins): Add documentation of AVR
6336 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6339 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6340 alone. Error if non-const data has attribute progmem.
6342 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6344 * tree.h (struct tree_constructor): Include tree_typed instead of
6346 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6347 TS_TYPED instead of TS_COMMON.
6349 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6351 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6352 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6353 (sse2_psadbw): Merge with *avx_psadbw.
6354 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6355 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6356 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6357 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6358 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6359 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6360 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6361 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6362 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6363 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6364 (ssse3_palignrti): Merge with *avx_palignrti.
6366 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6368 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6369 * tree-ssanames.c (fini_ssanames): VEC_free it.
6370 (make_ssa_name_fn): Update for VECness of free_ssanames.
6371 (release_ssa_name, release_dead_ssa_names): Likewise.
6372 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6374 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6375 TS_TYPED instead of TS_COMMON.
6377 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6379 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6380 statistics_counter_event.
6381 * tree-ssa-copyrename.c (stats): Define.
6382 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6383 statistics_counter_event.
6384 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6385 (bswap_stats, widen_mul_stats): Define.
6386 (insert_reciprocals): Increment rdivs_inserted.
6387 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6388 rfuncs_inserted. Add calls to statistics_counter_event.
6389 (execute_cse_sincos_1): Increment inserted.
6390 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6391 statistics_counter_event.
6392 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6393 of bswap_stats. Add calls to statistics_counter_event.
6394 (convert_mult_to_widen): Increment widen_mults_inserted.
6395 (convert_plusminus_to_widen): Increment maccs_inserted.
6396 (convert_mult_to_fma): Increment fmas_inserted.
6397 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6398 calls to statistics_counter_event.
6400 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6402 PR rtl-optimization/48455
6403 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6404 `temp_costs->mem_cost'.
6406 2011-04-13 Jan Hubicka <jh@suse.cz>
6408 * ipa-inline.h: New file.
6409 * ipa-inline-analysis.c: New file. Broken out of ...
6410 * ipa-inline.c: ... this file; update toplevel comment;
6411 include ipa-inline.h
6412 (inline_summary): Move to ipa-inline.h
6413 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6414 ipa-inline-analysis.c.
6415 (cgraph_estimate_time_after_inlining): Rename to
6416 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6417 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6418 to estimate_edge_growth.
6419 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6420 rename to estimate_size_after_inlining.
6421 (cgraph_mark_inline_edge): Update for new naming convention.
6422 (cgraph_check_inline_limits): Likewise.
6423 (cgraph_edge_badness): Likewise.
6424 (cgraph_decide_recursive_inlining): Likewise.
6425 (cgraph_decide_inlining_of_small_functions): Likewise.
6426 (cgraph_decide_inlining_incrementally): Likewise.
6427 (cgraph_estimate_growth): Rename to estimate_growth; move to
6428 ipa-inline-analysis.c.
6429 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6430 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6431 (compute_inline_parameters): Likewise.
6432 (compute_inline_parameters_for_current): Likewise.
6433 (pass_inline_parameters): Likewise.
6434 (inline_indirect_intraprocedural_analysis): Likewise.
6435 (analyze_function): Rename to inline_analyze_function; likewise.
6436 (add_new_function): Move to ipa-inline-analysis.c.
6437 (inline_generate_summary): Likewise.
6438 (inline_read_summary): Likewise.
6439 (inline_write_summary): Likewise.
6440 * Makefile.in (ipa-inline-analysis.c): New file.
6442 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6444 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6445 * configure: Regenerate.
6447 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6449 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6450 instead of tree_common.
6451 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6453 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6454 TS_TYPED rather than TS_COMMON.
6455 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6457 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6460 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6461 r20 around calls of __tablejump_elpm__
6463 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6466 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6468 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6470 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6472 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6473 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6474 (cfi_vec): New typedef.
6475 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6476 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6477 (cie_cfi_vec): New static variable.
6478 (cie_cfi_head): Delete.
6479 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6480 declaration changed. Use vector rather than list operations.
6481 (new_cfi): Don't initialize the dw_cfi_next field.
6482 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6483 rather than list operations.
6484 (lookup_cfa): Use vector rather than list operations.
6485 (output_cfis): New argument upto. Accept a cfi_vec rather than
6486 a dw_cfi_ref list head as argument. All callers changed.
6487 Iterate over the vector using upto as a maximum index.
6488 (output_all_cfis): New static function.
6489 (output_fde): Use vector rather than list operations. Use the
6490 new upto argument for output_cfis rather than manipulating a
6492 (dwarf2out_begin_prologue): Change initializations to match
6494 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6495 from the vector length rather than searching for the end of a list.
6496 Use output_all_cfis.
6497 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6499 2011-04-13 Nick Clifton <nickc@redhat.com>
6501 * config/rx/rx.md (movmemsi): Do not use this pattern when
6502 volatile pointers are involved.
6504 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6506 * config/i386/sse.md (pinsrbits): Remove.
6507 (sse2_packsswb): Merge with *avx_packsswb.
6508 (sse2_packssdw): Merge with *avx_packssdw.
6509 (sse2_packuswb): Merge with *avx_packuswb.
6510 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6511 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6512 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6513 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6514 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6515 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6516 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6517 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6518 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6519 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6520 (sse2_loadld): Merge with *avx_loadld.
6521 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6522 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6523 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6524 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6525 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6527 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6529 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6531 * print-tree.c (print_node): Likewise.
6532 * tree-inline.c (copy_tree_r): Likewise.
6533 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6534 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6535 instead of TS_COMMON.
6536 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6537 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6538 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6539 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6540 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6542 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6544 (TREE_CHAIN): Check for a TS_COMMON structure.
6545 (TREE_TYPE): Check for a TS_TYPED structure.
6547 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6549 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6550 cgraph_get_create_node instead of cgraph_node.
6552 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6554 * c-parser.c (c_parser_initelt): Updated call to
6555 objc_build_message_expr.
6556 (c_parser_postfix_expression): Likewise.
6558 2011-04-12 Kai Tietz <ktietz@redhat.com>
6560 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6561 MASK_MS_BITFIELD_LAYOUT bit.
6563 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6565 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6566 assert it is always true.
6567 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6570 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6572 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6573 compiling Objective-C to be more efficient.
6575 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6577 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6580 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6582 * recog.h, genoutput.c, optabs.c: Revert last patch.
6584 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6587 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6589 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6591 * recog.h (insn_operand_data): Add an "allows_mem" field.
6592 * genoutput.c (output_operand_data): Initialize it.
6593 * optabs.c (maybe_legitimize_operand_same_code): New function.
6594 (maybe_legitimize_operand): Use it when matching the original
6597 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6599 * genpreds.c (process_define_predicate): Move most processing
6600 to gensupport.c. Continue to validate the expression.
6601 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6602 (process_define_predicate): Move processing to gensupport.c.
6603 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6604 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6605 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6607 (valid_predicate_name_p): New function, split out from old
6608 genpreds.c:process_define_predicate.
6609 (process_define_predicate): New function, combining code from
6610 old genpreds.c and genrecog.c functions.
6611 (process_rtx): Call it for DEFINE_PREDICATE and
6612 DEFINE_SPECIAL_PREDICATE.
6614 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6616 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6617 size of a '%A' memory reference.
6618 (T_DREG, T_QREG): New neon_builtin_type_bits.
6619 (arm_init_neon_builtins): Assert that the load and store operands
6620 are neon_struct_operands.
6621 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6622 (NEON_ARG_MEMORY): New builtin_arg.
6623 (neon_dereference_pointer): New function.
6624 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6625 Handle NEON_ARG_MEMORY.
6626 (arm_expand_neon_builtin): Update after above interface changes.
6627 Use NEON_ARG_MEMORY for loads and stores.
6628 * config/arm/predicates.md (neon_struct_operand): New predicate.
6629 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6630 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6631 (V_four_elem): Tweak formatting.
6632 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6633 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6634 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6635 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6636 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6637 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6638 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6639 Use %A in the output template.
6640 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6641 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6642 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6643 the width of the memory access. Remove post-increment.
6644 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6646 2011-04-12 Nick Clifton <nickc@redhat.com>
6648 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6649 instruction for interrupt handlers if the target is the basic V850
6651 (expand_epilogue): Likewise.
6653 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6655 PR rtl-optimization/48549
6656 * combine.c (propagate_for_debug): Also stop after BB_END of
6657 this_basic_block. Process LAST and just stop processing after it.
6658 (combine_instructions): If last_combined_insn has been deleted,
6659 set last_combined_insn to its PREV_INSN.
6661 2011-04-12 Richard Guenther <rguenther@suse.de>
6663 PR tree-optimization/46076
6664 * gimple.h (struct gimple_statement_call): Add fntype field.
6665 (gimple_call_fntype): Adjust.
6666 (gimple_call_set_fntype): New function.
6667 * gimple.c (gimple_build_call_1): Set the call function type.
6668 * gimplify.c (gimplify_call_expr): Preserve the function
6669 type the frontend used for the call.
6670 (gimplify_modify_expr): Likewise.
6671 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6673 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6675 * tree-ssa.c (useless_type_conversion_p): Function pointer
6676 conversions are useless.
6678 2011-04-12 Martin Jambor <mjambor@suse.cz>
6680 * cgraph.h (cgraph_node): Remove function declaration.
6681 (cgraph_create_node): Declare.
6682 (cgraph_get_create_node): Likewise.
6683 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6684 Updated all callers.
6685 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6686 the decl does not already exist. Call cgraph_get_create_node instead
6688 (cgraph_get_create_node): New function.
6689 (cgraph_same_body_alias): Update comment.
6690 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6691 assert it does not return NULL.
6692 (cgraph_update_edges_for_call_stmt): Likewise.
6693 (cgraph_clone_edge): Likewise.
6694 (cgraph_create_virtual_clone): Likewise.
6695 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6696 instead of cgraph_node.
6697 (cgraph_add_new_function): Call cgraph_create_node or
6698 cgraph_get_create_node instead of cgraph_node.
6699 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6700 instead of cgraph_node.
6701 (record_eh_tables): Likewise.
6702 (mark_address): Likewise.
6703 (mark_load): Likewise.
6704 (build_cgraph_edges): Call cgraph_get_create_node instead
6706 (rebuild_cgraph_edges): Likewise.
6707 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6708 instead of cgraph_node.
6709 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6711 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6712 cgraph_create_node instead of cgraph_node.
6713 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6715 * lto-cgraph.c (input_node): Likewise.
6716 * lto-streamer-in.c (input_function): Likewise.
6717 * varasm.c (mark_decl_referenced): Likewise.
6718 (assemble_alias): Likewise.
6720 2011-04-12 Martin Jambor <mjambor@suse.cz>
6722 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6723 instead of cgraph_node and assert it does not return NULL.
6724 * lto-streamer-in.c (lto_read_body): Likewise.
6725 * omp-low.c (new_omp_context): Likewise.
6726 (create_task_copyfn): Likewise.
6727 * tree-emutls.c (lower_emutls_function_body): Likewise.
6728 * matrix-reorg.c (transform_allocation_sites): Likewise.
6730 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6733 * c-typeck.c (build_asm_expr): Error out on attempts to use
6734 void type outputs or inputs for constraints that allow reg or
6737 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6738 Richard Earnshaw <rearnsha@arm.com>
6741 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6742 to use sign-magnitude offsets. Reject unsupported unaligned
6743 cases. Add detailed description in comments.
6744 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6745 condition from TARGET_32BIT to TARGET_ARM.
6747 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6749 * tree.h (struct typed_tree): New.
6750 (struct tree_common): Include it instead of tree_base.
6751 (TREE_TYPE): Update for new location of type field.
6752 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6753 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6754 (union tree_node): Add typed field.
6755 * treestruct.def (TS_TYPED): New.
6756 * lto-streamer.c (check_handled_ts_structures): Handle it.
6757 * tree.c (MARK_TS_TYPED): New macro.
6758 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6760 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6762 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6763 (force_nonfallthru): Do not alter the loop nest if no basic block
6766 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6768 * config/i386/sse.md (VI): New mode iterator.
6770 (AVX256MODEI): Ditto.
6771 (AVXMODEF4P): Ditto.
6772 (avxvecpsmode): Ditto.
6773 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6774 (sse2_andnot<mode>3): New expander.
6775 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6776 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6777 (<any_logic:code><mode>3): Use VI mode iterator.
6778 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6779 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6780 (*andnottf3): Handle AVX three-operand constraints.
6781 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6783 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6784 Robert Millan <rmh@gnu.org>
6786 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6787 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6788 GNU_USER_DYNAMIC_LINKER64): Define.
6789 (REG_NAME): Don't undefine.
6790 (MD_UNWIND_SUPPORT): Undefine.
6791 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6792 (REG_NAME): Don't undefine.
6793 (MD_UNWIND_SUPPORT): Undefine.
6794 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6796 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6798 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6799 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6801 2011-04-11 Xinliang David Li <davidxl@google.com>
6803 * value-profile.c (check_ic_target): New function.
6804 (gimple_ic_transform): Sanity check indirect call target.
6805 * gimple-low.c (gimple_check_call_args): Interface change.
6806 (gimple_check_call_matching_types): New function.
6807 * tree-inline.c (tree_can_inline_p): Call new function.
6809 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6811 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6812 tree-pretty-print.h & realmpfr.h.
6814 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6817 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6818 (setup_allocno_and_important_classes): Ditto.
6820 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6822 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6823 GNU_USER_DYNAMIC_LINKER.
6824 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6825 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6826 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6827 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6828 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6829 GNU_USER_TARGET_OS_CPP_BUILTINS.
6830 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6831 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6832 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6833 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6834 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6835 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6836 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6837 GNU_USER_TARGET_OS_CPP_BUILTINS.
6838 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6839 GNU_USER_DYNAMIC_LINKER.
6840 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6841 GNU_USER_TARGET_OS_CPP_BUILTINS.
6842 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6843 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6844 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6845 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6846 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6847 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6848 GNU_USER_DYNAMIC_LINKER64): Remove.
6849 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6850 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6851 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6852 GNU_USER_DYNAMIC_LINKER.
6853 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6854 GNU_USER_TARGET_OS_CPP_BUILTINS.
6855 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6856 GNU_USER_TARGET_OS_CPP_BUILTINS.
6857 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6858 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6859 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6860 GNU_USER_TARGET_OS_CPP_BUILTINS.
6861 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6862 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6863 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6864 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6865 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6866 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6867 GNU_USER_DYNAMIC_LINKER.
6868 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6869 GNU_USER_TARGET_OS_CPP_BUILTINS.
6870 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6871 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6872 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6873 GNU_USER_DYNAMIC_LINKER.
6874 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6875 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6876 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6877 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6878 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6879 GNU_USER_DYNAMIC_LINKER.
6880 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6881 GNU_USER_DYNAMIC_LINKERN32.
6882 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6883 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6884 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6885 GNU_USER_DYNAMIC_LINKER32.
6886 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6887 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6888 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6889 GNU_USER_DYNAMIC_LINKER.
6890 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6891 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6892 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6893 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6894 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6895 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6896 GNU_USER_DYNAMIC_LINKER32.
6897 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6898 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6899 GNU_USER_DYNAMIC_LINKER.
6900 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6901 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6902 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6903 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6904 GNU_USER_DYNAMIC_LINKER64.
6905 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6906 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6907 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6908 GNU_USER_DYNAMIC_LINKER.
6909 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6910 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6911 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6912 GNU_USER_DYNAMIC_LINKER.
6913 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6914 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6915 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6916 GNU_USER_DYNAMIC_LINKER32.
6917 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6918 GNU_USER_DYNAMIC_LINKER64.
6919 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6920 GNU_USER_DYNAMIC_LINKER64.
6921 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6922 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6923 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6924 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6925 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6927 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6929 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6930 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6931 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6932 GNU_USER_DYNAMIC_LINKER.
6933 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6934 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6935 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6936 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6937 GNU_USER_DYNAMIC_LINKER64.
6938 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6939 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6940 GNU_USER_LINK_EMULATION.
6941 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6942 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6943 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6944 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6945 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6946 CPP_SPEC, CC1_SPEC): Remove.
6947 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6948 (GNU_USER_DYNAMIC_LINKER): Define.
6949 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6950 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6951 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6952 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6953 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6954 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6955 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6956 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6957 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6958 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6959 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6960 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6961 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6962 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6963 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6964 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6965 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6966 GNU_USER_DYNAMIC_LINKER.
6967 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6968 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6969 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6970 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6971 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6972 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6973 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6974 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6975 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6976 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6978 2011-04-11 Kai Tietz <ktietz@redhat.com>
6982 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6983 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6985 (ix86_is_msabi_thiscall): Removed.
6986 (ix86_is_type_thiscall): Likewise.
6987 (ix86_get_callcvt): New function.
6988 (ix86_comp_type_attributes): Simplify check.
6989 (ix86_function_regparm): Use ix86_get_callcvt for calling
6990 convention attribute checks.
6991 (ix86_return_pops_args): Likewise.
6992 (ix86_static_chain): Likewise.
6993 (x86_this_parameter): Likewise.
6994 (x86_output_mi_thunk): Likewise.
6995 (ix86_function_type_abi): Optimize check for types without attributes.
6996 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6997 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6998 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7000 (IX86_BASE_CALLCVT): Helper macro.
7001 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7002 Use ix86_get_callcvt for calling convention attribute checks and avoid
7003 symbol-decoration for stdcall in TARGET_RTD case.
7004 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7006 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7009 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7011 * config/i386/sse.md (VI_128): New mode iterator.
7012 (VI12_128): Rename from SSEMODE12.
7013 (VI14_128): Rename from SSEMODE14.
7014 (VI124_128): New mode iterator.
7015 (VI24_128): Rename from SSEMODE248.
7016 (VI248_128): Rename from SSEMODE248.
7017 (SSEMODE124C8): Remove.
7018 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7019 (*sse2_<plusminus_insn><mode>3): Merge with
7020 *avx_<plusminus_insn><mode>3.
7021 (*mulv8hi3): Merge with *avx_mulv8hi3.
7022 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7023 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7024 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7025 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7026 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7027 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7028 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7029 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7030 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7031 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7032 (*<smaxmin:code>v8hi3): Ditto.
7033 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7034 (*<smaxmin:code>v16qi3): Ditto.
7035 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7036 (*sse2_eq<mode>3): Ditto.
7037 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7038 (*sse2_gt<mode>3): Ditto.
7039 (vcondv2di): Split out of vcond<mode>.
7040 (vconduv2di): Split out of vcondu<mode>.
7042 2011-04-11 Richard Guenther <rguenther@suse.de>
7044 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7045 before calling tree_low_cst.
7047 2011-04-11 Richard Guenther <rguenther@suse.de>
7049 * stor-layout.c (layout_type): Compute all array index size operations
7050 in the original type.
7051 (initialize_sizetypes): Add comment.
7052 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7054 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7056 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7058 2011-04-11 Martin Jambor <mjambor@suse.cz>
7060 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7061 of cgraph_node, handle NULL return value.
7062 (cgraph_global_info): Likewise.
7063 (cgraph_rtl_info): Likewise.
7064 * tree-inline.c (estimate_num_insns): Likewise.
7065 * gimplify.c (unshare_body): Likewise.
7066 (unvisit_body): Likewise.
7067 (gimplify_body): Likewise.
7068 * predict.c (optimize_function_for_size_p): Likewise.
7069 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7070 (call_may_clobber_ref_p_1): Likewise.
7071 * varasm.c (function_section_1): Likewise.
7072 (assemble_start_function): Likewise.
7074 2011-04-11 Martin Jambor <mjambor@suse.cz>
7076 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7078 * final.c (rest_of_clean_state): Likewise.
7079 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7080 * passes.c (pass_init_dump_file): Likewise.
7081 (execute_all_ipa_transforms): Likewise.
7082 (function_called_by_processed_nodes_p): Likewise.
7083 * predict.c (maybe_hot_frequency_p): Likewise.
7084 (probably_never_executed_bb_p): Likewise.
7085 (compute_function_frequency): Likewise.
7086 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7087 (unnest_nesting_tree_1): Likewise.
7088 (lower_nested_functions): Likewise.
7089 * tree-optimize.c (execute_fixup_cfg): Likewise.
7090 (tree_rest_of_compilation): Likewise.
7091 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7092 * tree-sra.c (ipa_early_sra): Likewise.
7093 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7094 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7095 * ipa.c (record_cdtor_fn): Likewise.
7096 * ipa-inline.c (cgraph_early_inlining): Likewise.
7097 (compute_inline_parameters_for_current): Likewise.
7098 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7099 * ipa-pure-const.c (local_pure_const): Likewise.
7100 * ipa-split.c (split_function): Likewise.
7101 (execute_split_functions): Likewise.
7102 * cgraphbuild.c (build_cgraph_edges): Likewise.
7103 (rebuild_cgraph_edges): Likewise.
7104 (cgraph_rebuild_references): Likewise.
7105 (remove_cgraph_callee_edges): Likewise.
7106 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7107 (verify_cgraph_node): Likewise.
7108 (cgraph_analyze_functions): Likewise.
7109 (cgraph_preserve_function_body_p): Likewise.
7110 (save_inline_function_body): Likewise.
7111 (save_inline_function_body): Likewise.
7112 * tree-inline.c (copy_bb): Likewise.
7113 (optimize_inline_calls): Likewise.
7115 2011-04-11 Martin Jambor <mjambor@suse.cz>
7117 PR tree-optimization/48195
7118 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7119 ipa_check_create_edge_args.
7120 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7121 ipa_check_create_edge_args.
7122 * ipa-inline.c (inline_generate_summary): Do not call
7123 ipa_check_create_node_params and ipa_check_create_edge_args.
7124 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7125 ipa_check_create_edge_args.
7127 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7129 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7131 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7132 * function.c (record_hard_reg_sets): Likewise.
7133 * ira.c (compute_regs_asm_clobbered): Likewise.
7134 * sched-deps.c (sched_analyze_1): Likewise.
7135 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7137 2011-04-09 Xinliang David Li <davidxl@google.com>
7139 PR tree-optimization/PR48484
7140 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7141 has_valid_pred lazily
7143 2011-04-09 Duncan Sands <baldrick@free.fr>
7145 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7147 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7149 * combine.c (combine_validate_cost): Adjust comments. Set registered
7150 cost of I0 to zero at the end, if any.
7152 2011-04-08 Xinliang David Li <davidxl@google.com>
7154 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7155 to insane profile data.
7157 2011-04-08 Xinliang David Li <davidxl@google.com>
7159 * ipa-cp.c (ipcp_update_profiling): Correct
7160 negative scale factor due to insane profile data.
7162 2011-04-08 Xinliang David Li <davidxl@google.com>
7164 * final.c (dump_basic_block_info): New function.
7165 (final): Dump basic block.
7166 (final_scan_insn): Remove old dump.
7168 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7171 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7174 2011-04-08 Michael Matz <matz@suse.de>
7177 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7179 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7180 * rtl.h (rebuild_jump_labels_chain): Declare.
7181 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7182 insns inserted on edges.
7184 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7186 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7187 * config/arm/arm-arches.def: New.
7188 * config/arm/arm-opts.h: New.
7189 * config/arm/genopt.sh: New.
7190 * config/arm/arm-tables.opt: New (generated).
7191 * config/arm/arm.c (arm_handle_option, arm_target_help,
7192 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7193 (all_architectures): Get most table contents from arm-arches.def.
7194 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7195 arm_selected_tune here.
7196 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7197 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7198 (march=, mcpu=, mtune=): Use Enum and Var.
7199 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7200 (arm.o): Update dependencies.
7202 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7204 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7206 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7207 (write_typed_alloc_defns): Likewise.
7208 (main): Calls write_typed_alloc_defns with output_header.
7210 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7213 * ira-color.c (setup_profitable_hard_regs): Add comments.
7214 Don't take prohibited hard regs into account.
7215 (setup_conflict_profitable_regs): Rename to
7216 get_conflict_profitable_regs.
7217 (check_hard_reg_p): Check prohibited hard regs.
7219 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7221 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7222 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7223 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7225 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7228 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7229 move from floating point to shift amount register.
7230 (emit_move_sequence): Remove secondary reload support for floating
7231 point to shift amount amount register copies.
7232 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7233 amount register copies.
7234 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7235 register, return false if mode isn't a scalar integer mode.
7236 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7238 2011-04-08 Richard Guenther <rguenther@suse.de>
7240 * gimple.c (gimple_call_flags): Remove kludge.
7242 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7244 * sel-sched.c (sel_region_init): Move call to
7245 sel_setup_region_sched_flags after setup_current_loop_nest.
7247 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7249 PR rtl-optimization/48272
7250 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7251 init_insn_reg_pressure_info. Adjust a caller.
7252 * sched-int.h (init_insn_reg_pressure_info): Declare.
7253 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7254 when sched-pressure is enabled.
7256 2011-04-08 Richard Guenther <rguenther@suse.de>
7258 * gimple.c (gimple_set_modified): Do not queue calls to
7259 MODIFIED_NORETURN_CALLS here ...
7260 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7262 2011-04-08 Richard Guenther <rguenther@suse.de>
7265 * toplev.c (lang_dependent_init): Do not open asm_out_file
7266 in WPA mode, nor perform debug machinery initialization.
7267 (finalize): Do not unlink asm_out_file in WPA mode.
7269 2011-04-08 Richard Guenther <rguenther@suse.de>
7271 * gimple.h (gimple_call_fntype): New function.
7272 (gimple_call_return_type): Use it.
7273 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7274 * gimple-low.c (gimple_check_call_args): Likewise.
7275 * gimple.c (gimple_call_flags): Likewise.
7276 (gimple_call_arg_flags): Likewise.
7277 (gimple_call_return_flags): Likewise.
7278 * tree-cfg.c (verify_gimple_call): Likewise.
7279 (do_warn_unused_result): Likewise.
7280 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7281 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7283 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7285 PR rtl-optimization/48235
7286 * sel-sched.c (code_motion_process_successors): Recompute the last
7287 insn in basic block if control flow changed.
7288 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7289 Update condition for ilist_remove.
7291 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7293 PR rtl-optimization/48302
7294 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7295 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7296 it to record added preheader blocks.
7297 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7298 on to sel_add_loop_preheaders.
7299 (sel_region_init): Move call to setup_current_loop_nest after
7302 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7305 * cfgloop.h (loop_has_exit_edges): New helper.
7306 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7308 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7309 that have no exit edges.
7311 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7313 PR rtl-optimization/48442
7314 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7315 all callers. Adjust assert.
7317 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7319 PR tree-optimization/48377
7320 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7321 is_packed to true even for types with smaller TYPE_ALIGN than
7324 2011-04-08 Richard Guenther <rguenther@suse.de>
7327 * doc/tm.texi: Re-generate.
7329 2011-04-08 Wei Guozhi <carrot@google.com>
7332 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7333 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7334 * config/arm/arm.md (*push_multi): Change the length computation to
7337 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7339 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7340 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7341 * doc/tm.texi: Regenerate.
7342 * system.h (ASM_OUTPUT_BSS): Poison.
7343 * varasm.c (asm_output_bss): Remove function.
7344 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7346 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7347 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7348 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7349 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7351 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7353 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7355 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7357 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7359 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7362 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7364 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7365 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7366 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7368 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7369 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7370 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7371 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7372 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7373 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7374 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7375 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7376 options. Don't map other m68k options manually. Don't handle
7377 old-style options as canonical.
7378 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7379 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7381 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7383 * basic-block.h (force_nonfallthru): Move to...
7384 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7385 (force_nonfallthru): ...here.
7386 * cfghooks.c (force_nonfallthru): New function.
7387 * cfgrtl.c (force_nonfallthru): Rename into...
7388 (rtl_force_nonfallthru): ...this.
7389 (commit_one_edge_insertion): Do not set AUX field.
7390 (commit_edge_insertions): Do not discover new basic blocks.
7391 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7392 (cfg_layout_rtl_cfg_hooks): Likewise.
7393 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7394 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7395 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7397 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7399 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7402 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7404 * config/i386/sse.md: Update copyright year.
7405 (avxcvtvecmode): Remove.
7406 (sse_movhlps): Merge with *avx_movhlps.
7407 (sse_movlhps): Merge with *avx_movlhps.
7408 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7409 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7410 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7411 (sse_loadhps): Merge with *avx_loadhps.
7412 (sse_storelps): Merge with *avx_storelps.
7413 (sse_loadlps): Merge with *avx_loadlps.
7414 (sse_movss): Merge with *avx_movss.
7415 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7416 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7417 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7418 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7419 (vec_set<mode>_0): Ditto.
7420 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7421 (sse4_1_insertps): Merge with *avx_insertps.
7422 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7423 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7424 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7425 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7426 (sse2_storehpd): Merge with *avx_storehpd.
7427 (sse2_loadhpd): Merge with *avx_loadhpd.
7428 (sse2_loadlpd): Merge with *avx_loadlpd.
7429 (sse2_movsd): Merge with *avx_movsd.
7430 (*vec_concatv2df): Merge with *vec_concatv2df.
7432 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7435 * combine.c (combine_instructions): Add last_combined_insn,
7436 update it if insn is after it, pass it to all try_combine calls.
7437 (try_combine): Add last_combined_insn parameter, pass it instead of
7438 i3 to propagate_for_debug.
7440 2011-04-07 Nick Clifton <nickc@redhat.com>
7442 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7443 to handle MDR <-> data register transfers.
7444 (movhi_internal): Likewise.
7446 2011-04-07 Alan Modra <amodra@gmail.com>
7448 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7449 previous stack info.
7451 2011-04-07 Tom de Vries <tom@codesourcery.com>
7454 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7455 flow_find_cross_jump. Swap variables to implement backward replacement.
7456 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7458 2011-04-07 Tom de Vries <tom@codesourcery.com>
7461 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7462 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7464 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7465 src1 or src2. Redirect edges to the last basic block. Update
7466 frequency and count on multiple basic blocks in case of fallthru.
7468 2011-04-07 Tom de Vries <tom@codesourcery.com>
7471 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7473 (old_insns_match_p): Change return type. Replace return false/true
7474 with return dir_none/dir_both. Use can_replace_by.
7475 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7476 direction from dir_p. Register replacement direction in dir, last_dir
7477 and afterlast_dir. Handle new return type of old_insns_match_p using
7478 merge_dir. Return replacement direction in dir_p.
7479 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7480 return type of old_insns_match_p.
7481 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7482 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7483 flow_find_cross_jump.
7484 * basic-block.h (enum replace_direction): New type.
7485 (flow_find_cross_jump): Add parameter to declaration.
7487 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7489 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7490 (AVXMODEDCVTPS2DQ): Ditto.
7491 (VEC_FLOAT_MODE): Ditto.
7492 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7493 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7494 (<any_logic:code><mode>3): Use VF mode iterator.
7495 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7496 Use VF mode iterator.
7497 (copysign<mode>3): Use VF mode iterator.
7498 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7499 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7500 (*<any_logic:code><MODEF:mode>3): Merge with
7501 *avx_<any_logic:code><MODEF:mode>3.
7502 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7503 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7504 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7505 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7506 (sse2_cvtdq2ps): Use %v modifier.
7507 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7508 (avx_cvtps2dq<avxmodesuffix>): Remove.
7509 (sse2_cvtps2dq): Use %v modifier.
7510 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7511 (avx_cvttps2dq<avxmodesuffix>): Remove.
7512 (sse2_cvttps2dq): Use %v modifier.
7513 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7514 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7515 (sse2_cvtsd2siq): Fix insn template.
7516 (sse2_cvtsd2siq_2): Ditto.
7517 (sse2_cvttsd2siq): Ditto.
7518 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7519 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7521 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7523 * gcov-io.c: Use GCC Runtime Library Exception.
7525 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7528 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7529 as base_reg whatever register reg has been eliminated to, instead
7530 of hardcoding STACK_POINTER_REGNUM.
7532 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7534 * doc/tm.texi.in: Document C target hooks as separate from general
7536 * doc/tm.texi: Regenerate.
7537 * genhooks.c (struct hook_desc): Add docname field.
7538 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7540 (hook_array): Include c-target.def.
7541 (emit_documentation): Use docname field in output.
7542 (emit_init_macros): Take docname argument. Only emit definitions
7543 for hooks matching docname.
7544 (main): Expect additional arguments in all cases. Pass argument
7545 to emit_init_macros.
7546 * target.def: Move initial macro definitions and comments to
7547 target-hooks-macros.h.
7548 (gcc_targetcm): Move to c-family/c-target.def.
7549 * target.h (targetcm): Move declaration to c-family/c-target.h.
7550 * targhooks.c (default_handle_c_option): Move to
7552 * targhooks.h (default_handle_c_option): Move declaration to
7553 c-family/c-common.h.
7554 * target-hooks-macros.h: New file.
7555 * config.gcc (target_has_targetcm): Define and use to add to
7556 c_target_objs and cxx_target_objs.
7557 * config/default-c.c: New file.
7558 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7559 of target.h and target-def.h.
7560 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7561 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7562 darwin_check_cfstring_format_arg): Make static.
7563 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7564 TARGET_STRING_OBJECT_REF_TYPE_P,
7565 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7566 * config/darwin-protos.h (darwin_objc_construct_string,
7567 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7569 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7570 TARGET_STRING_OBJECT_REF_TYPE_P,
7571 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7572 * config/t-darwin (darwin-c.o): Update dependencies.
7573 * system.h (TARGET_HAS_TARGETCM): Poison.
7574 * Makefile.in (TARGET_H): Update.
7575 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7576 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7577 (default-c.o): New target.
7578 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7579 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7580 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7582 (build/genhooks.o): Update dependencies.
7584 2011-04-06 Richard Guenther <rguenther@suse.de>
7586 * ipa-inline.c (enum inlining_mode): Remove.
7587 (cgraph_flatten): Use some other token.
7588 (cgraph_edge_early_inlinable_p): New function, split out from ...
7589 (cgraph_perform_always_inlining): New function, split out from ...
7590 (cgraph_decide_inlining_incrementally): ... here.
7591 (cgraph_mark_inline_edge): Adjust.
7592 (cgraph_early_inlining): Re-structure.
7593 (pass_early_inline): Require SSA form.
7595 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7596 Julian Brown <julian@codesourcery.com>
7597 Mark Shinwell <shinwell@codesourcery.com>
7599 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7600 LO_REGS only for Thumb-1.
7601 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7602 be used in short instructions when optimising for size on Thumb-2.
7604 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7606 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7607 associated with user returns to be preserved.
7609 2011-04-06 Tristan Gingold <gingold@adacore.com>
7611 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7612 symbol_queue_size, DBXOUT_DECR_NESTING,
7613 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7614 if XCOFF_DEBUGGING_INFO.
7616 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7618 * config/i386/i386.md (attribute isa): New.
7619 (attribute enabled): New.
7620 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7621 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7622 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7623 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7624 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7625 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7626 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7627 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7629 * config/i386/sse.md (VF): New mode iterator.
7633 (SSEMODEF4): Remove.
7634 (attribute sse): Handle V8SF and V4DF modes.
7635 (<absneg:code><mode>2): Use VF mode iterator.
7636 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7638 (<plusminus_insn><mode>3): Use VF mode iterator.
7639 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7640 Use VF mode iterator.
7641 (<sse>_vm<plusminus_insn><mode>3): Merge with
7642 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7643 (mul<mode>3): Use VF mode iterator.
7644 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7645 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7647 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7648 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7649 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7650 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7652 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7653 Use VF1 mode iterator.
7654 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7655 (sqrt<VF2:mode>2): New expander.
7656 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7657 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7658 and sqrtv2df2. Use VF mode iterator.
7659 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7661 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7662 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7663 Use VF1 mode iterator.
7664 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7665 (<smaxmin:code><mode>3): Use VF mode iterator.
7666 (*<smaxmin:code><mode>3_finite): Merge with
7667 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7668 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7669 (<sse>_vm<smaxmin:code><mode>2): Merge with
7670 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7671 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7673 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7675 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7676 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7677 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7678 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7679 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7681 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7682 Use VF_128 mode iterator.
7683 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7685 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7686 VF_128 mode iterator.
7687 (vcond<mode>): Use VF mode iterator.
7688 * config/i386/predicates.md (sse_comparison_operator): Merge with
7689 avx_comparison_float_operator. Do not declare as special_predicate.
7690 * config/i386/i386.c (struct builtin_description): Update for renamed
7692 (ix86_expand_args_builtin): Ditto.
7693 (ix86_expand_sse_compare_mask): Ditto.
7695 2011-04-06 Richard Guenther <rguenther@suse.de>
7697 * tree-inline.c (estimate_num_insns): For calls simply account
7698 for all passed arguments and a used return value.
7700 2011-04-06 Richard Guenther <rguenther@suse.de>
7702 PR tree-optimization/47663
7703 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7704 call_stmt_time fields.
7705 (cgraph_edge_inlinable_p): Declare.
7706 (cgraph_edge_recursive_p): New inline function.
7707 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7708 (cgraph_clone_edge): Copy it.
7709 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7710 Account for call stmt time.
7711 (cgraph_estimate_time_after_inlining): Take edge argument.
7712 (cgraph_estimate_edge_growth): Account call stmt size.
7713 (cgraph_estimate_size_after_inlining): Take edge argument.
7714 (cgraph_mark_inline_edge): Adjust.
7715 (cgraph_check_inline_limits): Likewise.
7716 (cgraph_recursive_inlining_p): Remove.
7717 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7718 (cgraph_decide_recursive_inlining): Take edge argument and
7720 (cgraph_decide_inlining_of_small_functions): Do not avoid
7721 diags for recursive inlining here.
7722 (cgraph_flatten): Adjust.
7723 (cgraph_decide_inlining_incrementally): Likewise.
7724 (estimate_function_body_sizes): Remove call cost handling.
7725 (compute_inline_parameters): Initialize caller edge call costs.
7726 (cgraph_estimate_edge_growth): New function.
7727 (cgraph_estimate_growth): Use it.
7728 (cgraph_edge_badness): Likewise.
7729 (cgraph_check_inline_limits): Take an edge argument.
7730 (cgraph_decide_inlining_of_small_functions): Adjust.
7731 (cgraph_decide_inlining): Likewise.
7732 * tree-inline.c (estimate_num_insns): Only account for call
7733 return value if it is used.
7734 (expand_call_inline): Avoid diagnostics on recursive inline
7736 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7737 (input_edge): Input edge call costs.
7739 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7741 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7743 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7745 * doc/invoke.texi (Spec Files): Fix typo.
7747 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7749 * profile.c (branch_prob): Move declaration of local variable. Remove
7750 obsolete ??? comment. Expand the location explicitly instead of using
7751 the LOCATION_FILE and LOCATION_LINE macros.
7753 2011-04-06 Wei Guozhi <carrot@google.com>
7756 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7757 (arm_cond_branch): Likewise.
7758 (arm_cond_branch_reversed): Likewise.
7759 (arm_jump): Likewise.
7760 (push_multi): Likewise.
7761 * config/arm/constraints.md (Py): New constraint.
7763 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7766 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7768 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7769 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7770 #ifdef DBX_DEBUGGING_INFO.
7772 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7775 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7776 if old and new states differ.
7778 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7780 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7781 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7782 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7783 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7784 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7786 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7787 ColdFire options to -mcpu= options.
7789 2011-04-05 Jeff Law <law@redhat.com>
7791 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7792 check if BB is a successor of LOOP->header and return
7793 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7795 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7797 * cprop.c (struct reg_use): Remove.
7798 (reg_use_table): Make an array of RTX.
7799 (find_used_regs, constprop_register, local_cprop_pass,
7800 bypass_block): Simplify users of reg_use_table.
7801 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7802 on one of the uses found by find_used_regs.
7804 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7807 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7810 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7812 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7814 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7816 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7819 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7821 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7823 * combine.c: Include obstack.h.
7824 (struct insn_link): Define.
7825 (uid_log_links): Adjust type.
7826 (FOR_EACH_LOG_LINK): New macro.
7827 (insn_link_obstack): Declare.
7828 (alloc_insn_link): Define.
7829 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7830 type of link variables.
7831 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7832 (try_combine, record_promoted_values, distribute_notes): Likewise.
7833 (distribute_links): Likewise. Tweak prototype.
7834 (clear_log_links): Delete.
7835 (adjust_for_new_dest): Call alloc_insn_link.
7836 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7838 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7840 * gcse.c (modify_mem_list): Convert to an array of VECs.
7841 (canon_modify_mem_list, compute_transp): Tweak formatting.
7842 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7843 (load_killed_in_block_p): Likewise.
7844 (record_last_mem_set_info): Likewise.
7845 (clear_modify_mem_tables): Likewise.
7847 2011-04-05 Tom de Vries <tom@codesourcery.com>
7850 * function.c (emit_use_return_register_into_block): Only define if
7853 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7855 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7857 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7859 * config/rx/rx-opts.h: New.
7860 * config/rx/rx.c (rx_cpu_type): Remove.
7861 (rx_handle_option): Don't assert that global structures are in
7862 use. Access variables via opts pointer. Defer most handling of
7863 OPT_mint_register_. Use error_at.
7864 (rx_option_override): Handle deferred OPT_mint_register_ here.
7865 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7866 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7867 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7868 (rx_cpu_types): New Enum and EnumValue entries.
7869 (mint-register=): Use Defer and use Var accordingly.
7871 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7873 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7874 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7875 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7877 (debug_free_queue, debug_nesting, symbol_queue_index):
7879 * dbxout.c: ...to here. Make static.
7881 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7883 * gcse.c (modify_pair): Define. Define a VEC of it.
7884 (canon_modify_mem_list): Convert to an array of VECs.
7885 (free_insn_expr_list_list): Delete.
7886 (clear_modify_mem_tables): Call VEC_free instead.
7887 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7888 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7889 (canon_list_insert, compute_transp): Likewise.
7891 2011-04-05 Tom de Vries <tom@codesourcery.com>
7894 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7897 2011-04-05 Tom de Vries <tom@codesourcery.com>
7900 * function.c (emit_use_return_register_into_block): New function.
7901 (thread_prologue_and_epilogue_insns): Use
7902 emit_use_return_register_into_block.
7904 2011-04-05 Tom de Vries <tom@codesourcery.com>
7907 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7910 2011-04-05 Tom de Vries <tom@codesourcery.com>
7912 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7914 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7916 * config/arm/arm.md (define_constants for unspec): Replace with
7918 (define_constants for unspecv): Replace with define_c_enum.
7919 * config/arm/neon.md (define_constants for unspec): Replace with
7922 2011-04-04 Richard Henderson <rth@redhat.com>
7925 * dwarf2out.c (output_line_info): Always emit line info from
7926 at least one section.
7927 (dwarf2out_init): Create text_section_line_info here ...
7928 (set_cur_line_info_table): ... not here.
7930 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7933 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7936 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7938 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7940 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7941 (expr_equiv_p): Remove.
7942 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7943 (hash_scan_set): Update call to insert_set_in_table.
7944 (dump_hash_table): Dump <dest, src> pair.
7945 (lookup_set): Simplify. Lookup <dest, src> pair.
7946 (compute_transp): Remove, fold heavily simplified code into...
7947 (compute_local_properties): ...here. Expect COMP and TRANSP
7949 (find_avail_set): Take set directly from struct expr.
7950 (find_bypass-set): Likewise.
7951 (bypass_block): Likewise.
7952 (cprop_insn): Likewise. Remove redundant INSN_P test.
7954 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7955 checks on form of COND from find_implicit_sets to here.
7956 (find_implicit_sets): Cleanup control flow. Split critical edges
7957 if it exposes implicit sets. Allocate/resize implicit_sets as
7959 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7960 changed something. Run df_analyze after find_implicit_sets if any
7961 edges were split. Do not allocate implicit_sets here.
7963 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7964 (gcse_obstack): Renamed to cprop_obstack.
7965 (GNEW, GNEWVEC, GNEWVAR): Remove.
7967 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7968 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7969 (gcse_alloc): Likewise, and rename to cprop_alloc.
7970 (alloc_gcse_men, free_gcse_mem): Remove.
7971 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7972 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7973 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7975 * cprop.c (oprs_not_set_p): Remove.
7976 (mark_set, mark_clobber): Remove.
7977 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7978 (reg_not_set_p): New function.
7979 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7980 (cprop_insn): Likewise.
7981 (cprop_jump): Use FOR_EACH_EDGE.
7983 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7986 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7987 (rank_for_schedule): Use scheduled_insns vector instead of
7988 last_scheduled_insn.
7989 (ok_for_early_queue_removal): Likewise.
7990 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7992 (choose_ready): Likewise.
7993 (commit_schedule): Use VEC_iterate.
7994 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7995 a dbg_cnt, use it and ensure the first insn is in the ready list.
7996 (haifa_sched_init): Allocate scheduled_insns.
7997 (sched_extend_ready_list): Don't allocate it; reserve space.
7998 (haifa_sched_finish): Free it.
8000 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8002 * optc-gen.awk: Always remove type from Variable entry before
8003 recording in var_seen.
8005 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8007 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8008 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8009 call to tidy_fallthru_edges.
8011 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8013 * doc/options.texi (ToLower): Document.
8014 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8015 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8016 * opts.h (cl_option): Add cl_tolower field.
8017 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8018 arguments with lowercase strings.
8019 * config/rx/rx.opt (mcpu=): Add ToLower.
8020 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8023 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8025 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8027 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8029 * config/vax/vax.c: Include reload.h.
8031 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8033 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8034 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8035 (sparc_preferred_reload_class): New function.
8037 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8040 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8041 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8043 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8045 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8046 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8048 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8050 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8051 (ASM_OUTPUT_ALIGNED_BSS): Define.
8053 2011-04-03 Michael Matz <matz@suse.de>
8055 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8056 and next_slot members.
8057 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8058 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8059 (lto_streamer_cache_append): Declare.
8060 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8061 unsigned index, remove offset parameter, ensure that we append
8062 or update existing entries.
8063 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8064 parameter, update next_slot for append.
8065 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8067 (lto_streamer_cache_insert_at): Likewise.
8068 (lto_streamer_cache_append): New function.
8069 (lto_streamer_cache_lookup): Use unsigned index.
8070 (lto_streamer_cache_get): Likewise.
8071 (lto_record_common_node): Don't test tree_node_can_be_shared.
8072 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8073 (lto_streamer_cache_delete): Don't free offsets member.
8074 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8075 (lto_output_string_with_length): Use lto_output_data_stream.
8076 (lto_output_tree_header): Remove ix parameter, don't write it.
8077 (lto_output_builtin_tree): Likewise.
8078 (lto_write_tree): Adjust callers to above, don't track and write
8079 offset, write unsigned index.
8080 (output_unreferenced_globals): Don't emit all global vars.
8081 (write_global_references): Use unsigned indices.
8082 (lto_output_decl_state_refs): Likewise.
8083 (write_symbol): Likewise.
8084 * lto-streamer-in.c (lto_input_chain): Move earlier.
8085 (input_function): Use unsigned index.
8086 (input_alias_pairs): Don't read and then ignore all global vars.
8087 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8088 don't pass it back, use lto_streamer_cache_append.
8089 (lto_register_var_decl_in_symtab): Use unsigned index.
8090 (lto_register_function_decl_in_symtab): Likewise.
8091 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8093 (lto_get_builtin_tree): Don't read index, use
8094 lto_streamer_cache_append.
8095 (lto_read_tree): Adjust call to lto_materialize_tree.
8097 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8098 don't use function calls in arguments to MIN.
8100 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8103 * gimple.c (gimple_type_leader_entry): Mark deletable.
8105 2011-04-03 Alan Modra <amodra@gmail.com>
8107 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8109 2011-04-03 Michael Matz <matz@suse.de>
8111 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8113 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8115 2011-04-03 Michael Matz <matz@suse.de>
8117 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8118 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8119 without function context.
8120 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8121 current_function_decl and cfun.
8123 2011-04-03 Michael Matz <matz@suse.de>
8125 * tree.c (decl_init_priority_insert): Don't create entry for
8127 (decl_fini_priority_insert): Ditto.
8128 (fields_compatible_p, find_compatible_field): Remove.
8129 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8130 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8132 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8134 * combine.c (try_combine): Remove useless local variable.
8136 2011-04-03 Richard Guenther <rguenther@suse.de>
8137 Ira Rosen <ira.rosen@linaro.org>
8139 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8140 non-variable offsets and compare the remaining bases of the two
8141 accesses instead of looking for exact same data-ref.
8143 2011-04-02 Kai Tietz <ktietz@redhat.com>
8146 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8148 * i386.c (ix86_is_msabi_thiscall): New helper function.
8149 (ix86_is_type_thiscall): New helper function.
8150 (ix86_comp_type_attributes): Handle thiscall for method-functions
8152 (init_cumulative_args): Likewise.
8153 (find_drap_reg): Likewise.
8154 (ix86_static_chain): Likewise.
8155 (x86_this_parameter): Likewise.
8156 (x86_output_mi_thunk): Likewise.
8158 2011-04-01 Olivier Hainque <hainque@adacore.com>
8159 Nicolas Setton <setton@adacore.com>
8160 Eric Botcazou <ebotcazou@adacore.com>
8162 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8163 (add_gnat_descriptive_type_attribute): New function.
8164 (gen_array_type_die): Call it.
8165 (gen_enumeration_type_die): Likewise.
8166 (gen_struct_or_union_type_die): Likewise.
8167 (modified_type_die): Likewise.
8168 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8169 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8170 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8172 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8175 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8176 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8179 2011-03-17 Richard Guenther <rguenther@suse.de>
8182 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8183 origin for decls in other ltrans units.
8184 (input_varpool_node): Likewise.
8186 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8189 * expr.c (expand_assignment): Handle all possibilities
8190 if TO_RTX is CONCAT.
8191 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8192 (store_split_bit_field): If SUBREG_REG (op0) or
8193 op0 itself has smaller mode than word, return it
8194 for offset 0 and const0_rtx for out-of-bounds stores.
8195 If word is const0_rtx, skip it.
8197 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8199 * config/h8300/h8300.c (print_operand_address): Rename to...
8200 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8201 Call h8300_print_operand and h8300_print_operand_address instead of
8202 print_operand and print_operand_address. Declare.
8203 (print_operand): Renake to...
8204 (h8300_print_operand): ...this. Make static. Adjust comments.
8205 Call h8300_print_operand instead of print_operand. Declare.
8206 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8207 (h8300_register_move_cost): Likewise.
8208 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8209 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8210 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8211 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8212 * config/h8300/h8300-protos.h (print_operand): Delete.
8213 (print_operand_address): Delete.
8215 2011-04-01 Richard Henderson <rth@redhat.com>
8218 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8219 in strict mode before dwarf4. Re-order tests to early out
8220 before switching sections.
8222 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8224 * config/h8300/constraints.md: New file.
8225 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8226 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8227 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8228 * config/h8300/predicates.md (bit_operand): Likewise.
8229 (incdec_operand): Use satisfies_constraint_M and
8230 satisfies_constraint_O. Don't use C code block.
8231 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8232 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8233 (compute_mov_length): Use satisfies_constraint_G.
8234 (fix_bit_operand): Use satisfies_constraint_U.
8235 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8236 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8237 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8238 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8239 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8240 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8241 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8242 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8243 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8244 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8245 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8246 (EXTRA_MEMORY_CONSTRAINT): Delete.
8248 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8249 Michael Meissner <meissner@linux.vnet.ibm.com>
8252 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8253 operands, as per the specifications.
8255 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8256 (vec_extract_evenv4sf): Ditto.
8257 (vec_extract_evenv8hi): Ditto.
8258 (vec_extract_evenv16qi): Ditto.
8259 (vec_extract_oddv4si): Ditto.
8261 2011-03-31 Mark Wielaard <mjw@redhat.com>
8263 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8264 high_pc attribute if the CU has no associated code. Only output
8265 DW_AT_entry_pc for CU if not generating strict dwarf and
8268 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8270 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8271 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8273 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8274 * final.c (final_start_function): Call the new function rather
8275 than using a NULL argument for dwarf2out_frame_debug.
8277 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8278 that contains the prologue.
8280 * haifa-sched.c (queue_insn): New arg REASON. All callers
8281 changed. Print it in debugging output.
8283 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8285 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8286 Split most of the code into...
8287 (begin_move_insn): ... here. New function.
8288 (ebb_sched_info): Add a pointer to it.
8289 * haifa-sched.c (scheduled_insns): New static variable.
8290 (sched_extend_ready_list): Allocate it.
8291 (schedule_block): Use it to record the order of scheduled insns.
8292 Perform RTL changes to move insns only after all scheduling
8293 decisions have been made.
8294 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8295 begin_move_insn field.
8296 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8297 * sched-int.h (struct haifa_sched_info): Remove second argument
8298 from begin_schedule_ready hook. Add new member begin_move_insn.
8299 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8300 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8302 * haifa-sched.c (prune_ready_list): New function, broken out of
8304 (schedule_block): Use it.
8306 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8308 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8310 2011-04-01 Kai Tietz <ktietz@redhat.com>
8312 * config.gcc (*-*-mingw*): Allow as option the
8313 posix threading model.
8314 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8315 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8317 (CPP_SPEC): Add pthread/no-pthread handling.
8318 (LIB_SPEC): Likewise.
8319 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8320 (LIB_SPEC): Likewise.
8321 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8322 flag to pass -pthread option for shared libgcc build.
8323 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8324 for shared libgcc build.
8325 * config/i386/t-mingw-pthread: New file.
8326 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8327 New define to enable use of library pthread by default.
8328 * config/i386/mingw.opt (pthread): New driver option.
8329 (no-pthread): New driver option.
8330 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8331 * config/i386/mingw-w64.opt: Likewise.
8333 2011-04-01 Gary Funck <gary@intrepid.com>
8335 * c-decl.c (grokdeclarator): Fix formatting.
8337 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8339 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8340 instead of n_operands.
8341 (set_storage_via_setmem): Likewise.
8342 * optabs.c (maybe_gen_insn): Likewise.
8343 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8344 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8345 (mips_expand_builtin_direct): Likewise.
8346 * config/spu/spu.c (expand_builtin_args): Likewise.
8348 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8350 * recog.h (insn_data_d): Add n_generator_args.
8351 * genoutput.c (data): Likewise.
8352 (output_insn_data): Print it.
8353 (max_opno, num_dups): Delete.
8354 (scan_operands): Just fill in "d->operand[...]".
8355 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8357 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8359 * gensupport.h (pattern_stats): New structure.
8360 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8361 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8362 (max_operand_1, max_operand_vec): Delete.
8363 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8365 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8367 * emit-rtl.c (emit_pattern_after_setloc): New function.
8368 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8369 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8370 (emit_pattern_after): New function.
8371 (emit_insn_after, emit_jump_insn_after): Call it.
8372 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8373 (emit_pattern_before_setloc): New function.
8374 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8375 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8377 (emit_pattern_before): New function.
8378 (emit_insn_before, emit_jump_insn_before): Call it.
8379 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8381 2011-03-31 Richard Henderson <rth@redhat.com>
8383 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8384 (dw_separate_line_info_entry): Remove.
8385 (enum dw_line_info_opcode): New.
8386 (dw_line_info_entry): Use it.
8387 (dw_line_info_table, dw_line_info_table_p): New.
8388 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8389 (line_info_table, line_info_label_num): Remove.
8390 (line_info_table_in_use): Remove.
8391 (separate_line_info_table): Remove.
8392 (separate_line_info_table_allocated): Remove.
8393 (separate_line_info_table_in_use): Remove.
8394 (LINE_INFO_TABLE_INCREMENT): Remove.
8395 (line_info_label_num): New.
8396 (cur_line_info_table): New.
8397 (text_section_line_info, cold_text_section_line_info): New.
8398 (separate_line_info): New.
8399 (SEPARATE_LINE_CODE_LABEL): Remove.
8400 (print_dwarf_line_table): Remove.
8401 (debug_dwarf): Don't dump it.
8402 (output_one_line_info_table): New.
8403 (output_line_info): Use it.
8404 (new_line_info_table): New.
8405 (set_cur_line_info_table): New.
8406 (dwarf2out_switch_text_section): Use it.
8407 (dwarf2out_begin_function): Likewise.
8408 (push_dw_line_info_entry): New.
8409 (dwarf2out_source_line): Rewrite for new line info tables.
8410 (dwarf2out_init): Remove dead initailizations.
8412 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8414 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8416 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8417 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8418 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8419 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8420 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8421 * opt-functions.awk (flag_init, switch_bit_fields): New.
8422 (switch_flags): Don't handle flags moved to bit-fields. Don't
8423 generate CL_MISSING_OK or CL_SAVE.
8424 * optc-gen.awk: Update to generate bit-field output as well as
8426 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8427 bit-field instead of CL_REJECT_DRIVER flag.
8428 * opts-common.c (generate_canonical_option,
8429 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8430 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8431 instead of CL_REJECT_NEGATIVE flag.
8432 * toplev.c (print_switch_values): Use cl_report bit-field instead
8435 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8437 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8438 a zero minimum index only if it is redundant.
8440 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8442 PR rtl-optimization/48381
8443 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8444 instead of ira_class_hard_reg_index for calculating conflicting
8447 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8449 * cprop.c: Clean up hash table building.
8450 (reg_avail_info): Remove.
8451 (oprs_available_p): Remove.
8452 (record_last_reg_set_info): Remove.
8453 (record_last_set_info): Remove.
8454 (reg_available_p): New function.
8455 (gcse_constant_p): Do not treat unfolded conditions as constants.
8456 (make_set_regs_unavailable): New function.
8457 (hash_scan_set): Simplify with new reg_available_p.
8458 (compute_hash_table_work): Traverse insns stream only once.
8459 Do not compute reg_avail_info. Traverse insns in reverse order.
8460 Record implicit sets after recording explicit sets from the block.
8462 2011-03-31 Michael Matz <matz@suse.de>
8464 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8466 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8468 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8469 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8470 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8471 (h8300_mode_dependent_address_p): New function.
8472 (h8300_get_index): Make static.
8474 2011-03-31 Jeff Law <law@redhat.com>
8476 * reload1.c (elimination_effects): Fix typo in recent change.
8478 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8479 typo potentially leading to null pointer dereference.
8481 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8482 (setup_save_areas): Corresponding changes to avoid useless
8485 * jump.c (reversed_comparison_code_parts): Avoid successive return
8486 statements when REVERSE_CONDITION is defined.
8488 * expr.c (expand_assignment): Avoid useless assignments.
8489 (expand_expr_real_1): Likewise.
8490 (expand_expr_real_2): Avoid useless statements.
8492 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8494 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8496 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8499 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8501 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8504 * doc/tm.texi.in (TARGET_VERSION): Remove.
8505 * doc/tm.texi: Regenerate.
8506 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8507 * collect2.c (main): Don't use TARGET_VERSION.
8508 * mips-tdump.c (main): Don't use TARGET_VERSION.
8509 * mips-tfile.c (main): Don't use TARGET_VERSION.
8510 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8511 * config/rs6000/vxworksae.h: Remove.
8512 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8513 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8514 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8515 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8516 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8517 * config/arm/arm.h (TARGET_VERSION): Remove.
8518 * config/arm/coff.h (TARGET_VERSION): Remove.
8519 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8520 * config/arm/elf.h (TARGET_VERSION): Remove.
8521 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8522 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8523 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8524 * config/arm/pe.h (TARGET_VERSION): Remove.
8525 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8526 * config/arm/semi.h (TARGET_VERSION): Remove.
8527 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8528 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8529 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8530 * config/avr/avr.h (TARGET_VERSION): Remove.
8531 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8532 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8533 * config/frv/frv.h (TARGET_VERSION): Remove.
8534 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8535 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8536 * config/i386/darwin.h (TARGET_VERSION): Remove.
8537 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8538 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8539 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8540 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8541 * config/i386/gnu.h (TARGET_VERSION): Remove.
8542 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8543 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8544 * config/i386/linux.h (TARGET_VERSION): Remove.
8545 * config/i386/linux64.h (TARGET_VERSION): Remove.
8546 * config/i386/lynx.h (TARGET_VERSION): Remove.
8547 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8548 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8549 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8550 * config/i386/netware.h (TARGET_VERSION): Remove.
8551 * config/i386/nto.h (TARGET_VERSION): Remove.
8552 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8553 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8554 * config/ia64/elf.h (TARGET_VERSION): Remove.
8555 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8556 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8557 * config/ia64/linux.h (TARGET_VERSION): Remove.
8558 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8559 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8560 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8561 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8562 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8563 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8564 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8565 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8566 * config/m68k/linux.h (TARGET_VERSION): Remove.
8567 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8568 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8569 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8570 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8571 * config/mep/mep.h (TARGET_VERSION): Remove.
8572 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8573 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8574 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8575 * config/mips/linux.h (TARGET_VERSION): Remove.
8576 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8577 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8578 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8579 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8580 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8581 * config/pa/pa.h (TARGET_VERSION): Remove.
8582 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8583 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8584 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8585 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8586 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8587 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8588 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8589 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8590 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8591 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8592 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8593 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8594 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8595 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8596 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8597 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8598 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8599 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8600 * config/s390/linux.h (TARGET_VERSION): Remove.
8601 * config/s390/s390.h (TARGET_VERSION): Remove.
8602 * config/s390/tpf.h (TARGET_VERSION): Remove.
8603 * config/score/score.h (TARGET_VERSION): Remove.
8604 * config/sh/linux.h (TARGET_VERSION): Remove.
8605 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8606 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8607 * config/sh/sh.h (TARGET_VERSION): Remove.
8608 * config/sh/sh64.h (TARGET_VERSION): Remove.
8609 * config/sh/superh.h (TARGET_VERSION): Remove.
8610 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8611 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8612 * config/sparc/linux.h (TARGET_VERSION): Remove.
8613 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8614 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8615 TARGET_NAME32, TARGET_NAME): Remove.
8616 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8617 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8618 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8619 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8620 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8621 * config/spu/spu.h (TARGET_VERSION): Remove.
8622 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8623 * config/v850/v850.h (TARGET_VERSION): Remove.
8624 * config/vax/linux.h (TARGET_VERSION): Remove.
8625 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8626 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8627 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8629 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8632 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8633 frame-related from frame-unrelated adjustments to the stack pointer.
8635 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8637 * common.opt (fdebug-types-section): Move earlier.
8638 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8640 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8642 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8645 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8647 * tree.h (CASE_CHAIN): Define.
8648 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8649 (gimple_redirect_edge_and_branch): Likewise.
8651 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8654 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8657 2011-03-30 Jeff Law <law@redhat.com>
8659 * PR bootstrap/48371
8660 * reload1.c (reload): Fix botch in last change.
8662 * reload.h (struct reload): Fix typo introduced in last change.
8664 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8666 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8667 Undocumented. Remove help text.
8668 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8671 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8673 * doc/options.texi (NegativeAlias): Document.
8674 (Alias): Mention NegativeAlias.
8675 * opt-functions.awk: Handle NegativeAlias.
8676 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8677 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8678 * opts.h (CL_NEGATIVE_ALIAS): Define.
8679 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8680 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8682 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8684 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8685 mno-spe and mno-isel instead of mspe=no and -misel=no.
8687 2011-03-29 Mark Wielaard <mjw@redhat.com>
8689 * common.opt (fdebug-types-section): New flag.
8690 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8691 * dwarf2out.c (use_debug_types): New define.
8692 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8693 (print_die): Guard output of type unit signatures using
8695 (build_abbrev_table): Replace assert of dwarf_version >= 4
8696 with assert on use_debug_types.
8697 (size_of_die): Likewise.
8698 (unmark_dies): Likewise.
8699 (value_format): Decide AT_ref_external form on use_debug_types.
8700 (output_die): Replace dwarf_version version check guard with
8701 use_debug_types where appropriate.
8702 (modified_type_die): Likewise.
8703 (gen_reference_type_die): Likewise.
8704 (dwarf2out_start_source_file): Likewise.
8705 (dwarf2out_end_source_file): Likewise.
8706 (prune_unused_types_walk_attribs): Likewise.
8707 (dwarf2out_finish): Likewise.
8709 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8711 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8713 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8715 PR rtl-optimization/48332
8716 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8717 mode of input operand N and modeN to its actual mode.
8719 2011-03-30 Jeff Law <law@redhat.com>
8721 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8722 define accessor macro.
8723 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8724 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8725 (reg_equiv_init): Likewise.
8726 (reg_equivs_size): New variable.
8727 (reg_equiv_init_size): Remove.
8728 (allocate_initial_values): Move prototype to here from....
8729 * integrate.h (allocate_initial_values): Remove prototype.
8730 * integrate.c: Include reload.h.
8731 (allocate_initial_values): Corresponding changes.
8732 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8733 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8734 (update_equiv_regs): Corresponding changes.
8735 (ira): Corresponding changes.
8736 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8737 (push_secondary_reload): Corresponding changes.
8738 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8739 (make_memloc, find_reloads_address): Corresponding changes.
8740 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8741 (find_reloads_address_1): Corresponding changes.
8742 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8743 (refers_to_regno_for_reload_p): Corresponding changes.
8744 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8745 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8746 * reload1.c: Include ggc.h.
8747 (grow_reg_equivs): New function.
8748 (replace_pseudos_in, reload): Corresponding changes.
8749 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8750 (eliminate_regs_1, elimination_effects): Corresponding changes.
8751 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8752 (delete_output_reload): Likewise.
8753 * caller-save.c (mark_referenced_regs): Corresponding changes.
8754 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8755 * frv/predicates.md (frv_load_operand): Corresponding changes.
8756 * microblaze/microblaze.c (double_memory_operand): Corresponding
8758 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8759 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8760 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8761 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8762 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8764 * pa/pa.c (emit_move_sequence): Corresponding changes.
8765 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8767 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8770 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8771 structure modes. Don't check neon_vector_mem_operand for
8772 vector or structure modes.
8774 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8775 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8778 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8779 operand 1 and reshuffle the operands to match.
8780 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8782 2011-03-30 Christian Schüler <cschueler@gmx.de>
8785 * config/c.opt (F): Added 'Driver' to -F option.
8788 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8790 * config/darwin.opt: Added '-arch' option.
8792 2011-03-30 Nick Clifton <nickc@redhat.com>
8794 * config/rx/rx.md: Add peepholes and patterns to combine
8795 extending loads and simple arithmetic instructions.
8796 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8797 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8798 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8799 modes to use pre-decrement and post-increment addressing.
8800 (rx_is_restricted_memory_address): Add range checking of REG+INT
8802 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8803 (rx_memory_move_cost): Adjust cost of stores.
8804 (rx_adjust_insn_length): New function.
8806 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8809 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8810 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8811 matching arg00/arg01 types.
8813 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8815 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8816 last_location to UNKNOWN_LOCATION.
8818 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8821 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8824 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8825 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8828 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8830 (sparc_cpu): Likewise.
8831 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8834 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8838 PR rtl-optimization/48345
8839 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8840 hard regs for given mode from profitable regs when doing secondary
8843 2011-03-29 Jeff Law <law@redhat.com>
8846 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8847 do_not_duplicate field.
8848 (lookup_redirection_data): Corresponding changes.
8849 (create_duplicates): Always create a template block.
8850 (redirect_edges): Remove code which reused the original block
8851 when it was going to become unreachable code.
8852 (thread_block): Don't set do_not_duplicate field.
8854 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8856 * lto-opts.c (register_user_option_p, lto_register_user_option):
8857 Make type argument unsigned.
8858 * lto-streamer.h (lto_register_user_option): Make type argument
8860 * opth-gen.awk: Make CL_* macros unsigned.
8861 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8862 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8863 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8864 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8865 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8866 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8867 (find_opt): Make lang_mask argument unsigned.
8869 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8871 PR rtl-optimization/48331
8872 PR rtl-optimization/48334
8873 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8874 for any used algorithm.
8876 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8878 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8881 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8883 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8884 (alpha_option_override): Don't set alpha_sr_alias_set.
8885 (emit_frame_store_1): Use gen_frame_mem rather than calling
8887 (alpha_expand_epilogue): Ditto.
8889 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8891 PR tree-optimization/48290
8892 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8893 vectorization, check that relevant phis in the basic block after
8894 the inner loop are really inner loop's exit phis.
8896 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8899 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8900 (cached_dw_loc_list_def): New structure.
8901 (cached_dw_loc_list): New typedef.
8902 (cached_dw_loc_list_table): New variable.
8903 (cached_dw_loc_list_table_hash): New function.
8904 (cached_dw_loc_list_table_eq): Likewise.
8905 (add_location_or_const_value_attribute): Take a bool cache_p.
8906 Cache the list when the parameter is true.
8907 (gen_formal_parameter_die): Update caller.
8908 (gen_variable_die): Likewise.
8909 (dwarf2out_finish): Likewise.
8910 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8911 while generating debug info for the decl.
8912 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8913 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8914 (resolve_addr): Cache the result of resolving a chain of
8917 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8919 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8920 conflict object hard regset nodes have intersecting hard reg sets.
8922 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8923 after regstat_init_n_sets_and_refs.
8925 * ira.c: Add more comments at the top.
8926 (setup_stack_reg_pressure_class, setup_pressure_classes):
8927 Add comments how we compute the register pressure classes.
8928 (setup_allocno_and_important_classes): Add more comments.
8929 (setup_class_translate_array, reorder_important_classes)
8930 (setup_reg_class_relations): Add comments.
8932 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8935 * ira-color.c: Add 2011 to the Copyright line.
8936 (assign_hard_reg): Add more comments.
8937 (improve_allocation): Ditto.
8939 * ira-costs.c: Add 2011 to the Copyright line.
8940 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8942 (setup_regno_cost_classes_by_mode): Ditto.
8944 Initial patches from ira-improv branch:
8946 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8948 * ira-build.c (ira_create_object): Remove initialization of
8949 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8950 (ira_create_allocno): Remove initialization of
8951 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8952 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8953 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8954 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8955 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8956 Initialize ALLOCNO_ADD_DATA.
8957 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8958 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8960 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8961 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8963 * ira.c (ira_reallocate): Remove.
8964 (setup_pressure_classes): Call
8965 ira_init_register_move_cost_if_necessary. Use
8966 ira_register_move_cost instead of ira_get_register_move_cost.
8967 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8968 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8970 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8971 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8972 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8973 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8974 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8975 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8977 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8978 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8979 (struct allocno_color_data): New.
8980 (allocno_color_data_t): New typedef.
8981 (allocno_color_data): New definition.
8982 (ALLOCNO_COLOR_DATA): New macro.
8983 (struct object_color_data): New.
8984 (object_color_data_t): New typedef.
8985 (object_color_data): New definition.
8986 (OBJECT_COLOR_DATA): New macro.
8987 (update_copy_costs, calculate_allocno_spill_cost): Call
8988 ira_init_register_move_cost_if_necessary. Use
8989 ira_register_move_cost instead of ira_get_register_move_cost.
8990 (move_spill_restore, update_curr_costs): Ditto.
8991 (allocno_spill_priority): Make it inline.
8992 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8993 (struct coalesce_data, coalesce_data_t): New.
8994 (allocno_coalesce_data): New definition.
8995 (ALLOCNO_COALESCE_DATA): New macro.
8996 (merge_allocnos, coalesced_allocno_conflict_p): Use
8997 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8998 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8999 (coalesce_allocnos): Ditto.
9000 (setup_coalesced_allocno_costs_and_nums): Ditto.
9001 (collect_spilled_coalesced_allocnos): Ditto.
9002 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9003 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9004 (coalesce_spill_slots): Ditto.
9005 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9006 free allocno_coalesce_data.
9008 * ira-conflicts.c: Fix formatting.
9009 (process_regs_for_copy): Call
9010 ira_init_register_move_cost_if_necessary. Use
9011 ira_register_move_cost instead of ira_get_register_move_cost.
9012 (build_object_conflicts): Optimize.
9014 * ira-costs.c (record_reg_classes): Optimize. Call
9015 ira_init_register_move_cost_if_necessary. Use
9016 ira_register_move_cost, ira_may_move_in_cost, and
9017 ira_may_move_out_cost instead of ira_get_register_move_cost and
9018 ira_get_may_move_cost.
9019 (record_address_regs): Ditto.
9020 (scan_one_insn): Optimize.
9021 (find_costs_and_classes): Optimize.
9022 (process_bb_node_for_hard_reg_moves): Call
9023 ira_init_register_move_cost_if_necessary. Use
9024 ira_register_move_cost instead of ira_get_register_move_cost.
9026 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9027 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9028 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9029 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9031 (ira_initiate_emit_data, ira_finish_emit_data)
9032 (create_new_allocno): New functions.
9033 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9034 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9035 Use ira_register_move_cost instead of ira_get_register_move_cost.
9037 * ira-int.h: Fix some comments.
9038 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9039 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9040 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9041 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9043 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9044 bitfield after mode. Make hard_regno a short int. Make
9045 hard_regno short. Remove first_coalesced_allocno and
9046 next_coalesced_allocno. Move mem_optimized_dest_p,
9047 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9048 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9049 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9050 temp, colorable_p. Add new member add_data.
9051 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9052 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9053 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9054 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9055 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9056 (ALLOCNO_ADD_DATA): New macro.
9057 (ira_emit_data_t): New typedef.
9058 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9059 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9060 from struct ira_allocno.
9061 (ALLOCNO_EMIT_DATA): New macro.
9062 (ira_allocno_emit_data, allocno_emit_reg): New.
9063 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9064 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9065 (OBJECT_ADD_DATA): New macro.
9066 (ira_reallocate): Remove.
9067 (ira_initiate_emit_data, ira_finish_emit_data): New.
9068 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9069 (ira_init_register_move_cost_if_necessary): New.
9070 (ira_object_conflict_iter_next): Merge into
9071 ira_object_conflict_iter_cond.
9072 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9074 * ira-live.c (process_single_reg_class_operands): Call
9075 ira_init_register_move_cost_if_necessary. Use
9076 ira_register_move_cost instead of ira_get_register_move_cost.
9078 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9080 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9082 * ira-costs.c: Fix formatting.
9083 (cost_classes, cost_classes_num): Remove.
9084 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9085 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9086 (cost_classes_del, cost_classes_htab): New.
9087 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9088 (initiate_regno_cost_classes, setup_cost_classes): New.
9089 (setup_regno_cost_classes_by_aclass): New.
9090 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9091 (record_reg_classes): Use regno_cost_classes instead of
9092 cost_classes. Move checking opposite operand up.
9093 (record_address_regs): Use regno_cost_classes
9094 instead of cost_classes.
9095 (scan_one_insn): Ditto. Use always general register.
9096 (print_allocno_costs): Use regno_cost_classes instead of
9098 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9099 (find_costs_and_classes): Set up cost classes for each registers.
9100 Use also their mode for this. Use regno_cost_classes instead of
9102 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9104 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9105 (ira_costs, ira_set_pseudo_classes): Call
9106 initiate_regno_cost_classes and finish_regno_cost_classes.
9108 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9110 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9112 * target.def (ira_cover_classes): Remove.
9114 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9116 * doc/tm.texi.in: Ditto.
9118 * ira-conflicts.c: Remove mentioning cover classes from the file.
9119 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9120 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9122 * targhooks.c (default_ira_cover_classes): Remove.
9124 * targhooks.h (default_ira_cover_classes): Ditto.
9126 * haifa-sched.c: Remove mentioning cover classes from the file.
9127 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9128 ira_pressure_classes and ira_pressure_classes_num instead of
9129 ira_reg_class_cover_size and ira_reg_class_cover. Use
9130 sched_regno_pressure_class instead of sched_regno_cover_class.
9131 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9132 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9134 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9135 classes from the file.
9136 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9137 (struct object_hard_regs, struct object_hard_regs_node): New.
9138 (struct ira_object): New members profitable_hard_regs,
9139 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9140 (struct ira_allocno): Rename cover_class to aclass. Rename
9141 cover_class_cost and updated_cover_class_cost to class_cost and
9142 updated_class_cost. Remove splay_removed_p and
9143 left_conflict_size. Add new members colorable_p.
9144 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9145 (ALLOCNO_COLORABLE_P): New macro.
9146 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9147 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9148 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9149 (OBJECT_...): Rename parameter C to O.
9150 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9151 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9152 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9153 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9154 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9155 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9156 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9157 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9158 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9159 x_ira_reg_class_subunion.
9160 (ira_max_memory_move_cost, ira_max_register_move_cost)
9161 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9162 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9163 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9164 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9165 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9166 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9167 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9168 (ira_tune_allocno_costs_and_cover_classes): Rename to
9169 ira_tune_allocno_costs.
9170 (ira_debug_hard_regs_forest): New.
9171 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9172 (ira_object_conflict_iter_next): Fix comments.
9173 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9174 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9175 cover_class to aclass.
9176 (ira_allocate_and_accumulate_costs): Ditto.
9177 (ira_allocate_and_set_or_copy_costs): Ditto.
9179 * opts.c (decode_options): Remove ira_cover_class check.
9181 * ira-color.c: Remove mentioning cover classes from the file. Use
9182 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9183 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9184 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9185 (splay-tree.h): Remove include.
9186 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9187 before copy_freq_compare_func.
9188 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9189 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9191 (hard_regs_roots, hard_regs_node_vec): Ditto.
9192 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9193 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9194 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9195 (create_new_object_hard_regs_node): Ditto.
9196 (add_new_object_hard_regs_node_to_forest): Ditto.
9197 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9198 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9200 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9201 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9202 (remove_unused_object_hard_regs_nodes): Ditto.
9203 (enumerate_object_hard_regs_nodes): Ditto.
9204 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9205 (object_hard_regs_subnode_t): Ditto.
9206 (struct object_hard_regs_subnode): Ditto.
9207 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9208 (setup_object_hard_regs_subnode_index): Ditto.
9209 (get_object_hard_regs_subnodes_num): Ditto.
9210 (form_object_hard_regs_nodes_forest): Ditto.
9211 (finish_object_hard_regs_nodes_tree): Ditto.
9212 (finish_object_hard_regs_nodes_forest): Ditto.
9213 (allocnos_have_intersected_live_ranges_p): Rename to
9214 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9215 (pseudos_have_intersected_live_ranges_p): Rename to
9216 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9217 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9218 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9219 (update_copy_costs): Remove assert. Skip cost update if the hard
9220 reg does not belong the class.
9221 (assign_hard_reg): Process only profitable hard regs.
9222 (uncolorable_allocnos_num): Make it scalar.
9223 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9224 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9225 and ira_reg_class_max_nregs.
9226 (bucket_allocno_compare_func): Check frequency first.
9227 (sort_bucket): Add compare function as a parameter.
9228 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9229 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9230 (push_allocno_to_stack): Rewrite for checking new allocno
9232 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9233 (push_only_colorable): Pass new parameter to sort_bucket.
9234 (push_allocno_to_spill): Remove.
9235 (allocno_spill_priority_compare): Make it inline and rewrite.
9236 (splay_tree_allocate, splay_tree_free): Remove.
9237 (allocno_spill_sort_compare): New function.
9238 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9239 build and use splay tree. Choose first allocno in uncolorable
9240 allocno bucket to spill. Remove setting spill cost.
9241 (all_conflicting_hard_regs): Remove.
9242 (setup_allocno_available_regs_num): Check only profitable hard
9243 regs. Print info about hard regs nodes.
9244 (setup_allocno_left_conflicts_size): Remove.
9245 (put_allocno_into_bucket): Don't call
9246 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9247 (improve_allocation): New.
9248 (color_allocnos): Call setup_profitable_hard_regs,
9249 form_object_hard_regs_nodes_forest, improve_allocation,
9250 finish_object_hard_regs_nodes_forest. Setup spill cost.
9251 (print_loop_title): Use pressure classes.
9252 (color_allocnso): Ditto.
9253 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9254 and allocnos_for_spilling.
9255 (ira_sort_regnos_for_alter_reg): Don't setup members
9256 {first,next}_coalesced_allocno.
9257 (color): Remove allocating and freeing removed_splay_allocno_vec.
9258 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9259 prohibited_class_mode_regs.
9261 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9263 (update_allocno_pressure_excess_length): Use pressure classes.
9264 (inc_register_pressure, dec_register_pressure): Check for pressure
9266 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9267 pressure class. Use ira_reg_class_nregs instead of
9268 ira_reg_class_max_nregs.
9269 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9270 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9271 (single_reg_class): Use ira_reg_class_nregs instead of
9272 ira_reg_class_max_nregs.
9273 (process_bb_node_lives): Use pressure classes.
9275 * ira-emit.c: Remove mentioning cover classes from the file. Use
9276 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9277 (change_loop): Use pressure classes.
9278 (modify_move_list): Call ira_set_allocno_class instead of
9279 ira_set_allocno_cover_class.
9281 * ira-build.c: Remove mentioning cover classes from the file. Use
9282 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9283 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9284 ALLOCNO_UPDATED_CLASS_COST instead of
9285 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9286 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9287 (ira_create_allocno): Remove initialization of
9288 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9289 ALLOCNO_COLORABLE_P.
9290 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9291 Update conflict regs for the objects.
9292 (create_cap_allocno): Remove assert. Don't propagate
9293 ALLOCNO_AVAILABLE_REGS_NUM.
9294 (ira_free_allocno_costs): New function.
9295 (finish_allocno): Change a part of code into call of
9296 ira_free_allocno_costs.
9297 (low_pressure_loop_node_p): Use pressure classes.
9298 (object_range_compare_func): Don't compare classes.
9299 (setup_min_max_conflict_allocno_ids): Ditto.
9301 * loop-invariant.c: Remove mentioning cover classes from the file.
9302 Use ira_pressure_classes and ira_pressure_classes_num instead of
9303 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9304 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9305 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9306 Use reg_allocno_class instead of reg_cover_class.
9307 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9308 STACK_REG_COVER_CLASS.
9309 (get_regno_cover_class): Rename to get_regno_pressure_class.
9310 (move_loop_invariants): Initialize and finalize regstat.
9312 * ira.c: Remove mentioning cover classes from the file. Add
9313 comments about coloring without cover classes. Use ALLOCNO_CLASS
9314 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9315 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9316 setup_class_subset_and_memory_move_costs.
9317 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9318 (setup_cover_and_important_classes): Rename to
9319 setup_allocno_and_important_classes.
9320 (setup_class_translate_array): New.
9321 (setup_class_translate): Call it for allocno and pressure classes.
9322 (cover_class_order): Rename to allocno_class_order.
9323 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9324 of ira_class_translate.
9325 (reorder_important_classes): Set up ira_important_class_nums.
9326 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9327 (print_class_cover): Rename to print_classes. Add parameter.
9328 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9329 Print pressure classes too.
9330 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9331 setup_reg_subclasses.
9332 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9333 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9334 (setup_prohibited_class_mode_regs): Use
9335 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9336 (clarify_prohibited_class_mode_regs): New function.
9337 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9338 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9339 (ira_init_once): Initialize them.
9340 (free_register_move_costs): Process them.
9341 (ira_init): Move calls of find_reg_classes and
9342 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9343 Call clarify_prohibited_class_mode_regs.
9344 (ira_no_alloc_reg): Remove.
9345 (too_high_register_pressure_p): Use pressure classes.
9347 * sched-deps.c: Remove mentioning cover classes from the file.
9348 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9349 ira_pressure_classes and ira_pressure_classes_num instead of
9350 ira_reg_class_cover_size and ira_reg_class_cover.
9351 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9352 sched_regno_pressure_class instead of sched_regno_cover_class.
9353 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9354 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9356 * ira.h: Add 2010 to Copyright.
9357 (ira_no_alloc_reg): Remove external.
9358 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9359 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9360 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9361 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9362 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9363 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9364 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9365 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9366 x_ira_no_alloc_regs.
9367 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9368 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9369 ira_allocno_classes_num and ira_allocno_classes.
9370 (ira_class_translate): Rename to ira_allocno_class_translate.
9371 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9372 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9373 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9374 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9375 (ira_no_alloc_regs): New.
9377 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9378 classes from the file. Use ALLOCNO_CLASS instead of
9379 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9380 ALLOCNO_COVER_CLASS_COST.
9381 (regno_cover_class): Rename to regno_aclass.
9382 (record_reg_classes): Use ira_reg_class_subunion instead of
9383 ira_reg_class_union.
9384 (record_address_regs): Check overflow.
9385 (scan_one_insn): Ditto.
9386 (print_allocno_costs): Print total mem cost fore regional allocation.
9387 (print_pseudo_costs): Use REG_N_REFS.
9388 (find_costs_and_classes): Use classes intersected with them on the
9389 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9390 ira_reg_class_union. Use ira_allocno_class_translate and
9391 regno_aclass instead of ira_class_translate and regno_cover_class.
9392 Modify code for finding regno_aclass. Setup preferred classes for
9394 (setup_allocno_cover_class_and_costs): Rename to
9395 setup_allocno_class_and_costs. Use regno_aclass instead of
9396 regno_cover_class. Use ira_set_allocno_class instead of
9397 ira_set_allocno_cover_class.
9398 (init_costs, finish_costs): Use regno_aclass instead of
9400 (ira_costs): Use setup_allocno_class_and_costs instead of
9401 setup_allocno_cover_class_and_costs.
9402 (ira_tune_allocno_costs_and_cover_classes): Rename to
9403 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9404 by processing objects. Use ira_reg_class_max_nregs instead of
9405 ira_reg_class_nregs.
9407 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9409 * sched-int.h: Remove mentioning cover classes from the file.
9410 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9412 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9413 classes from the file.
9414 (struct reg_pref): Rename coverclass into allocnoclass.
9415 (reg_cover_class): Rename to reg_allocno_class.
9417 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9419 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9421 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9423 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9425 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9427 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9429 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9431 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9433 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9435 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9437 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9438 (i386_ira_cover_classes): Ditto.
9440 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9442 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9444 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9446 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9448 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9450 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9452 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9453 (mips_ira_cover_classes): Ditto.
9455 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9457 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9459 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9461 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9463 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9465 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9466 (IRA_COVER_CLASSES_VSX): Ditto.
9468 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9469 (rs6000_ira_cover_classes): Ditto.
9471 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9473 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9475 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9477 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9479 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9481 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9483 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9485 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9487 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9489 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9491 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9494 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9495 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9496 dw_fde_unlikely_section_end_label, cold_in_std_section,
9497 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9498 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9500 (output_fde): Use dw_fde_second_{begin,end} if second is
9501 true, otherwise dw_fde_{begin,end}.
9502 (output_call_frame_info): Test dw_fde_second_begin != NULL
9503 instead of dw_fde_switched_sections.
9504 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9505 fields, initialize new fields. Initialize in_std_section
9506 unconditionally from the first partition.
9507 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9508 dw_fde_second_begin is non-NULL.
9509 (dwarf2out_switch_text_section): Stop initializing removed
9510 dw_fde_struct fields, initialize new fields, initialize
9511 also dw_fde_end here. Set dw_fde_switch_cfi even when
9512 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9513 (struct var_loc_list_def): Add last_before_switch field.
9514 (arange_table, arange_table_allocated, arange_table_in_use,
9515 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9516 (size_of_aranges): Count !in_std_section and !second_in_std_section
9517 hunks in fdes, instead of looking at arange_table_in_use.
9518 (output_aranges): Add aranges_length argument, don't call
9519 size_of_aranges here. Instead of using aranges_table*
9520 emit ranges for fdes when !in_std_section resp.
9521 !second_in_std_section.
9522 (dw_loc_list): Break ranges crossing section switch.
9523 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9524 use dw_fde_second_end instead of dw_fde_end as end of last range.
9525 (gen_subprogram_die): Don't call add_arange. Use
9526 dw_fde_{begin,end} for first partition and if switched
9527 section dw_fde_second_{begin,end} for the second.
9528 (var_location_switch_text_section_1,
9529 var_location_switch_text_section): New functions.
9530 (dwarf2out_begin_function): Initialize cold_text_section even
9531 when function_section () isn't text_section.
9532 (prune_unused_types): Don't walk arange_table.
9533 (dwarf2out_finish): Don't needlessly test
9534 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9535 If info_section_emitted, call size_of_aranges and if it indicates
9536 non-empty .debug_aranges, call output_aranges with the computed
9537 size. Stop using removed dw_fde_struct fields, use
9538 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9542 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9543 create ENTRY_VALUE if incoming or address of incoming's MEM
9545 * dwarf2out.c (mem_loc_descriptor): Don't emit
9546 DW_OP_GNU_entry_value of DW_OP_fbreg.
9547 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9548 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9549 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9550 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9552 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9553 is a REG_P or MEM_P with REG_P address, compute hash directly
9554 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9555 (preserve_only_constants): Don't clear VALUES forwaring
9556 ENTRY_VALUE to some other VALUE.
9558 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9560 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9563 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9565 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9566 block before expanding the statement.
9567 (expand_gimple_stmt_1): Likewise. Set them here...
9568 (expand_gimple_stmt): ...and not here. Tidy.
9569 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9572 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9574 * Makefile.in: New rule for cprop.o.
9575 * gcse.c: Move constant/copy propagation to cprop.c.
9576 (compute_local_properties): Only handle expression tables.
9577 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9578 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9579 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9580 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9581 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9582 compute_cprop_data, find_used_regs, try_replace_reg,
9583 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9584 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9585 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9586 find_bypass_set, reg_killed_on_edge, bypass_block,
9587 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9588 execute_rtl_cprop, pass_rtl_cprop): Move to...
9589 * cprop.c: ...here. New file, constant/copy propagation for RTL
9590 moved from gcse.c to here with minor cleanups in duplicated code.
9592 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9594 * config/i386/i386.c (flag_opts): Fix a typo in
9595 -mavx256-split-unaligned-store.
9597 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9599 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9600 LIBCALL_VALUE): Remove macros.
9601 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9602 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9603 (h8300_function_value, h8300_libcall_value,
9604 h8300_function_value_regno_p): New functions.
9606 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9608 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9610 2011-03-28 Jeff Law <law@redhat.com>
9612 * tree-ssa-threadupdate.c (redirect_edges): Call
9613 create_edge_and_update_destination_phis as needed.
9614 (create_edge_and_update_destination_phis): Accept new BB argument.
9615 All callers updated.
9616 (thread_block): Do not update the profile when threading around
9617 intermediate blocks.
9618 (thread_single_edge): Likewise.
9619 (determine_bb_domination_status): If BB is not a successor of the
9620 loop header, return NONDOMINATING.
9621 (register_jump_thread): Note when we register a jump thread around
9622 an intermediate block.
9623 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9624 (thread_across_edge): Use it.
9626 2011-03-28 Tristan Gingold <gingold@adacore.com>
9628 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9629 when for_return is 2.
9631 2011-03-28 Jeff Law <law@redhat.com>
9633 * var-tracking.c (canonicalize_values_mark): Delete unused
9635 (canonicalize_values_star, set_variable_part): Likewise.
9636 (clobber_variable_part, delete_variable_part): Likewise.
9638 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9640 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9642 2011-03-28 Martin Jambor <mjambor@suse.cz>
9644 * tree-inline.c (expand_call_inline): Do not check that destination
9646 (optimize_inline_calls): Assert that destination node is analyzed.
9647 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9648 not call tree_lowering_passes.
9649 * cgraph.h (cgraph_analyze_function): Declare.
9650 * cgraphunit.c (cgraph_analyze_function): Make public.
9652 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9654 * config/sparc/sparc-opts.h: New.
9655 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9656 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9657 (sparc_option_override): Store processor_type enumeration rather
9658 than string in cpu_default. Remove name and enumeration from
9659 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9660 without using sparc_select. Use target_flags_explicit instead of
9662 * config/sparc/sparc.h (enum processor_type): Move to
9664 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9665 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9666 HeaderInclude entry.
9667 (mcpu=, mtune=): Use Var and Enum.
9668 (sparc_processor_type): New Enum and EnumValue entries.
9670 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9671 Iain Sandoe <iains@gcc.gnu.org>
9674 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9676 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9678 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9679 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9680 Insert new statements at it in lieu of STMT.
9681 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9682 * tree-vect-stmts.c (vectorizable_store): Likewise.
9683 (vectorizable_load): Likewise.
9685 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9687 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9692 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9694 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9695 unaligned 256bit load/store.
9696 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9697 (*avx_movdqu<avxmodesuffix>): Likewise.
9699 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9702 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9703 * config/pa/pa.md (iordi3): Use new predicate in expander.
9706 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9708 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9709 FUNCTION_VALUE_REGNO_P): Remove macros.
9710 * config/mips/mips-protos.h (mips_function_value): Remove.
9711 * config/mips/mips.c (mips_function_value): Rename to...
9712 (mips_function_value_1): ... this. Make static. Handle receiving
9713 the function type in 'fn_decl_or_type' argument.
9714 (mips_function_value, mips_libcall_value,
9715 mips_function_value_regno_p): New function.
9716 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9717 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9719 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9721 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9722 and -mavx256-split-unaligned-store.
9723 (ix86_option_override_internal): Split 32-byte AVX unaligned
9724 load/store by default.
9725 (ix86_avx256_split_vector_move_misalign): New.
9726 (ix86_expand_vector_move_misalign): Use it.
9728 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9729 -mavx256-split-unaligned-store.
9731 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9732 256bit load/store. Generate unaligned store on misaligned memory
9734 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9736 (*avx_movdqu<avxmodesuffix>): Likewise.
9738 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9739 -mavx256-split-unaligned-store.
9741 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9744 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9747 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9749 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9750 opno arguments with an expand_operand. Use create_input_operand.
9751 (mips_prepare_builtin_target): Delete.
9752 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9754 (mips_expand_builtin_direct): Use create_output_operand and
9755 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9756 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9757 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9759 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9761 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9763 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9765 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9767 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9768 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9769 basic blocks and call commit_edge_insertions directly.
9770 (fixup_abnormal_edges): Move from here to...
9771 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9772 on the edges and return whether some have actually been inserted.
9773 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9776 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9778 PR rtl-optimization/48144
9779 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9780 (merge_expr_data): ... here.
9781 (av_set_intersect): Rename to av_set_code_motion_filter.
9782 Update all callers. Call merge_history_vect when an expression
9783 is found in both sets.
9784 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9786 2011-03-26 Alan Modra <amodra@gmail.com>
9788 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9789 cmodel medium addresses.
9790 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9791 64-bit gpr loads and stores.
9792 (rs6000_secondary_reload_ppc64): New function.
9793 * config/rs6000/rs6000-protos.h: Declare it.
9794 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9796 2011-03-26 Alan Modra <amodra@gmail.com>
9799 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9800 GNU Go in traceback table.
9802 2011-03-25 Richard Henderson <rth@redhat.com>
9804 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9805 if there are exactly 6 operands.
9806 (set_storage_via_setmem): Similarly.
9808 2011-03-25 Kai Tietz <ktietz@redhat.com>
9810 * collect2.c (write_c_file_stat): Handle backslash
9811 as right-hand directory separator.
9812 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9813 checking just for slash.
9814 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9815 instead of checking for trailing slash.
9816 * gcc.c (record_temp_file): Use filename_cmp instead
9818 (do_spec_1): Likewise.
9819 (replace_outfile_spec_function): Likewise.
9820 (is_directory): Use filename_ncmp instead of strncmp.
9821 (print_multilib_info): Likewise.
9822 * gcov.c (find_source): Use filename_cmp instead
9824 (make_gcov_file_name): Fix order of slash/backslash
9826 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9827 (add_standard_paths): Likewise.
9828 * mips-tfile.c (saber_stop): Handle backslash.
9829 * prefix.c (update_path): Use filename_ncmp instead of
9831 * profile.c (output_location): Use filename_cmp instead
9833 * read-md.c (handle_toplevel_file): Handle backslash.
9834 * tlink.c (frob_extension): Likewise.
9835 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9837 * tree-dump.c (dequeue_and_dump): Handle backslash.
9838 * tree.c (get_file_function_name): Likewise.
9839 * gengtype.c (read_input_list): Likewise.
9840 (get_file_realbasename): Likewise.
9841 (get_output_file_with_visibility): Use filename_cmp
9844 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9846 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9849 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9851 * fold-const.c (expr_location_or): New function.
9852 (fold_truth_not_expr): Call it.
9854 2011-03-25 Jeff Law <law@redhat.com>
9856 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9858 * c-family/c-common.c (def_fn_type): Likewise.
9859 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9860 * emit-rtl.c (gen_rtvec): Likewise.
9861 * lto/lto-lang.c (def_fn_type): Likewise.
9863 2011-03-25 Richard Guenther <rguenther@suse.de>
9865 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9866 also generate copies.
9867 (fini_copy_prop): Handle constant values properly.
9869 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9871 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9872 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9873 (hash_loc_operands, compare_loc_operands): Handle
9874 DW_OP_GNU_entry_value.
9876 2011-03-25 Kai Tietz <ktietz@redhat.com>
9878 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9879 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9880 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9881 comment and use macro TARGET_64BIT_MS_ABI instead.
9882 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9883 and change default behavior for 32-bit MS_ABI.
9884 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9885 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9887 (ix86_cfun_abi): Likewise.
9888 (ix86_maybe_switch_abi): Adjust comment.
9889 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9890 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9891 instead of checking for SYSV_ABI.
9892 (ix86_nsaved_sseregs): Likewise.
9893 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9895 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9896 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9897 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9898 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9899 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9901 2011-03-25 Richard Guenther <rguenther@suse.de>
9903 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9904 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9905 (verify_gimple): Remove.
9906 * tree-cfg.c (verify_gimple_call): Merge verification
9908 (verify_gimple_phi): Merge verification from verify_stmts.
9909 (verify_gimple_label): New function.
9910 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9911 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9912 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9913 (verify_stmts): Rename to verify_gimple_in_cfg.
9914 (verify_gimple_in_cfg): New function.
9915 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9916 * tree-ssa.c (verify_ssa): Likewise.
9917 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9919 2011-03-25 Richard Guenther <rguenther@suse.de>
9921 * passes.c (init_optimization_passes): Add FRE pass after
9924 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9925 Andrew Stubbs <ams@codesourcery.com>
9927 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9929 (arm_movdi_vfp_cortexa8): New pattern.
9930 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9931 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9932 instructions when tuning for Cortex-A8. Set attribute "arch".
9933 * config/arm/arm.md: Move include arm-tune.md up a bit.
9934 (define_attr "arch"): Add "onlya8" and "nota8" values.
9935 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9937 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9941 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9943 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9944 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9945 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9946 * passes.c (init_optimization_passes): Move
9947 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9949 2011-03-25 Kai Tietz <ktietz@redhat.com>
9951 * c-typeck.c (comptypes_internal): Replace target
9952 hook call of comp_type_attributes by version in tree.c file.
9953 * gimple.c (gimple_types_compatible_p_1): Likewise.
9954 * tree-ssa.c (useless_type_conversion_p): Likewise.
9955 * tree.c (build_type_attribute_qual_variant): Likewise.
9956 (attribute_value_equal): New static helper function.
9957 (comp_type_attributes): New function.
9958 (merge_attributes): Use attribute_value_equal for comparison.
9959 (attribute_list_contained): Likewise.
9960 * tree.h (comp_type_attributes): New prototype.
9962 2011-03-25 Richard Guenther <rguenther@suse.de>
9964 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9965 of complex types at -O0.
9966 (verify_gimple_assign_binary): Likewise.
9967 (verify_gimple_assign_ternary): Likewise.
9969 2011-03-24 Mark Wielaard <mjw@redhat.com>
9971 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9972 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9974 2011-03-24 Mark Wielaard <mjw@redhat.com>
9977 * dwarf2out.c (output_abbrev_section): Only write table when
9978 abbrev_die_table_in_use > 1.
9980 2011-02-24 Richard Henderson <rth@redhat.com>
9982 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9983 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9984 (alpha_expand_unaligned_load_words): Use extql.
9985 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9986 (emit_insxl): Handle all modes for consistency.
9988 2011-02-24 Richard Henderson <rth@redhat.com>
9990 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9991 (alpha_expand_unaligned_load): Likewise.
9992 (alpha_expand_unaligned_store): Likewise.
9993 (alpha_expand_unaligned_load_words): Likewise.
9994 (alpha_expand_unaligned_store_words): Likewise.
9995 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9996 (alpha_split_lock_test_and_set_12): Likewise.
9997 (print_operand, alpha_fold_builtin_extxx): Likewise.
9998 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9999 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10000 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10001 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10002 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10003 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10004 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10005 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10006 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10007 (extwl, extll, extql): Similarly.
10008 (inswh, inslh, insqh): Similarly.
10009 (mskbl, mskwl, mskll, mskql): Similarly.
10010 (mskwh, msklh, mskqh): Similarly.
10012 2011-02-24 Richard Henderson <rth@redhat.com>
10014 * config/alpha/alpha.md (attribute isa): Add er, ner.
10015 (attribute enabled): Handle them.
10016 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10018 2011-02-24 Richard Henderson <rth@redhat.com>
10020 * config/alpha/alpha.md (attribute isa): Add vms.
10021 (attribute enabled): Handle it.
10022 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10023 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10024 (*movtf): Rename from *movtf_internal for consistency.
10025 (*movsi): Merge with *movsi_nt_vms.
10026 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10027 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10028 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10029 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10031 2011-02-24 Richard Henderson <rth@redhat.com>
10033 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10034 (extendqisi2, extendhisi2): Likewise.
10035 (extendqidi2): Simplify BWX/non-BWX expansions.
10036 (extendhidi2): Similarly.
10038 2011-02-24 Richard Henderson <rth@redhat.com>
10040 * config/alpha/alpha.md (attribute isa): New.
10041 (attribute enabled): New.
10042 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10043 (zero_extendqisi2, zero_extendqidi2): Similarly.
10044 (zero_extendhisi2, zero_extendhidi2): Similarly.
10045 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10047 2011-02-24 Richard Henderson <rth@redhat.com>
10049 * config/alpha/predicates.md (input_operand): Revert last change;
10050 update comment to mention 32-bit VMS rather than Windows.
10052 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10054 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10055 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10056 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10057 * passes.c (init_optimization_passes): Move
10058 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10060 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10062 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10064 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10066 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10069 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10072 * simplify-rtx.c (simplify_const_unary_operation): Call
10073 real_convert when changing mode class with FLOAT_EXTEND.
10075 2011-03-24 Nick Clifton <nickc@redhat.com>
10077 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10078 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10079 * config/rx/rx.c (rx_option_override): Set align_jumps,
10080 align_loops and align_labels if not set by the user.
10081 (rx_align_for_label): New function.
10082 (rx_max_skip_for_label): New function.
10083 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10084 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10085 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10086 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10087 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10089 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10091 PR rtl-optimization/48263
10092 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10093 and original commutative_p handling. Use maybe_gen_insn.
10095 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10097 * reload.c (find_reloads_subreg_address): Add address_reloaded
10098 parameter and return true there if the full address has been
10100 (find_reloads_toplev): Pass address_reloaded flag.
10101 (find_reloads_address_1): Don't use address_reloaded parameter.
10103 2011-03-24 Jeff Law <law@redhat.com>
10105 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10106 unused variable "ann".
10107 (remove_unused_locals): Likewise.
10109 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10112 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10115 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10117 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10118 for invalid symbolic addresses.
10119 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10122 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10124 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10125 the argument in calls to fold_truth_not_expr.
10127 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10129 * tree.c (record_node_allocation_statistics): New function.
10130 (make_node_stat, copy_node_stat, build_string): Call it.
10131 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10132 (build1_stat, build_omp_clause): Likewise.
10134 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10136 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10139 2011-03-24 Richard Guenther <rguenther@suse.de>
10141 PR tree-optimization/48271
10142 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10143 blocks that still exist.
10145 2011-03-24 Richard Guenther <rguenther@suse.de>
10147 PR tree-optimization/48270
10148 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10149 not free datarefs before ddrs.
10151 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10153 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10154 from the address built for a reference with variable offset.
10156 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10159 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10160 alternatives that can be handled with movq or movabsq insn.
10161 (*movdf_internal): Disable for !TARGET_64BIT.
10162 (*movdf_internal_nointeger): Ditto.
10163 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10165 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10167 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10168 (FUNCTION_ARG_ADVANCE): Likewise.
10169 * tm.texi.in: Change references to them to hook references.
10170 * tm.texi: Regenerate.
10171 * targhooks.c (default_function_arg): Eliminate check for target macro.
10172 (default_function_incoming_arg): Likewise.
10173 (default_function_arg_advance): Likewise.
10174 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10175 (function_arg_advance): Likewise.
10176 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10178 2011-03-24 Richard Guenther <rguenther@suse.de>
10180 PR middle-end/48269
10181 * tree-object-size.c (addr_object_size): Do not double-account
10182 for MEM_REF offsets.
10184 2011-03-24 Diego Novillo <dnovillo@google.com>
10186 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10187 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10188 (lto_input_data_block): Move from lto-opts.c. Make extern.
10190 (lto_input_string): Rename from input_string. Make extern.
10192 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10193 output_string_with_length.
10194 Output 0 to indicate a non-NULL string. Update all callers to
10196 (lto_output_string): Rename from output_string. Make extern.
10198 (lto_output_decl_state_streams): Make extern.
10199 (lto_output_decl_state_refs): Make extern.
10200 * lto-streamer.h (lto_input_string): Declare.
10201 (lto_input_data_block): Declare.
10202 (lto_output_string): Declare.
10203 (lto_output_string_with_length): Declare.
10204 (lto_output_decl_state_streams): Declare.
10205 (lto_output_decl_state_refs): Declare.
10207 2011-03-24 Richard Guenther <rguenther@suse.de>
10209 PR tree-optimization/46562
10210 * tree.c (build_invariant_address): New function.
10211 * tree.h (build_invariant_address): Declare.
10212 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10213 a renamed function moved ...
10214 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10215 Take valueization callback parameter.
10216 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10217 * gimple-fold.h: New file.
10218 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10219 (ccp_fold, fold_const_aggregate_ref,
10220 fold_ctor_reference, fold_nonarray_ctor_reference,
10221 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10222 get_base_constructor): Move ...
10223 * gimple-fold.c: ... here.
10224 (gimple_fold_stmt_to_constant_1): New function
10225 split out from ccp_fold. Take a valueization callback parameter.
10226 Valueize all operands.
10227 (gimple_fold_stmt_to_constant): New wrapper function.
10228 (fold_const_aggregate_ref_1): New function split out from
10229 fold_const_aggregate_ref. Take a valueization callback parameter.
10230 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10231 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10232 invariant POINTER_PLUS_EXPRs to invariant form.
10233 (vn_valueize): New function.
10234 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10235 * tree-vrp.c (vrp_valueize): New function.
10236 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10237 to fold statements to constants.
10238 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10239 function declarations.
10240 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10241 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10243 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10245 * config/h8300/predicates.md (jump_address_operand): Fix register
10248 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10250 * doc/invoke.texi (max-stores-to-sink): Document.
10251 * params.h (MAX_STORES_TO_SINK): Define.
10252 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10253 if either vectorization or if-conversion is disabled.
10254 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10255 tree-vect-data-refs.c vect_equal_offsets.
10256 (dr_equal_offsets_p): New function.
10257 (find_data_references_in_bb): Remove static.
10258 * tree-data-ref.h (find_data_references_in_bb): Declare.
10259 (dr_equal_offsets_p): Likewise.
10260 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10261 (vect_drs_dependent_in_basic_block): Update calls to
10262 vect_equal_offsets.
10263 (vect_check_interleaving): Likewise.
10264 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10265 (cond_if_else_store_replacement): Rename to...
10266 (cond_if_else_store_replacement_1): ... this. Change arguments and
10268 (cond_if_else_store_replacement): New function.
10269 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10270 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10272 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10275 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10276 to subtract lower bound instead of GEN_INT().
10278 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10283 * doc/extend.texi (Alignment): Move section to match order in TOC.
10284 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10285 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10287 2011-03-23 Jeff Law <law@redhat.com>
10289 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10290 before removing the edge.
10292 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10293 it may have been freed by redirect_branch_edge or
10294 redirect_edge_succ_nodup.
10296 2011-03-23 Richard Guenther <rguenther@suse.de>
10298 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10299 (check_va_list_escapes): Likewise.
10300 (check_all_va_list_escapes): Likewise.
10302 2011-03-23 Richard Guenther <rguenther@suse.de>
10304 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10305 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10306 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10307 (alias.o): Likewise.
10308 (ipa-type-escape.o): Remove.
10309 (ipa-struct-reorg.o): Likewise.
10310 (GTFILES): Remove ipa-struct-reorg.c.
10311 * alias.c: Do not include ipa-type-escape.h.
10312 * tree-ssa-alias.c: Likewise.
10313 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10314 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10315 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10316 and ipa-type-escape passes.
10317 * tree-pass.h (pass_ipa_type_escape): Remove.
10318 (pass_ipa_struct_reorg): Likewise.
10319 * ipa-struct-reorg.h: Remove.
10320 * ipa-struct-reorg.c: Likewise.
10321 * ipa-type-escape.h: Likewise.
10322 * ipa-type-escape.c: Likewise.
10323 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10324 (--param struct-reorg-cold-struct-ratio): Likewise.
10325 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10326 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10327 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10329 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10331 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10332 cpu attribute value.
10333 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10334 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10335 * config/s390/s390.c (processor_flags_table): New constant array.
10336 (s390_handle_arch_option): Remove.
10337 (s390_handle_option): Remove s390_handle_arch_option invocations
10338 and OPT_mwarn_framesize_ handling.
10339 (s390_option_override): Remove s390_handle_arch_option invocation.
10340 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10342 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10343 * config/s390/s390.opt (s390_tune, s390_arch)
10344 (march=): Replace s390_arch_option enum and values with
10345 processor_type. Set variable name to s390_arch. Set
10346 initialization value.
10347 (mtune=): Replace s390_arch_option with processor_type. Set
10348 variable name to s390_tune. Set initialization value.
10350 2011-03-23 Julian Brown <julian@codesourcery.com>
10352 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10353 accesses which are not naturally aligned.
10355 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10358 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10360 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10362 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10363 parameter from "int" to "enum insn_code".
10364 (expand_operand_type): New enum.
10365 (expand_operand): New structure.
10366 (create_expand_operand): New function.
10367 (create_fixed_operand, create_output_operand): Likewise
10368 (create_input_operand, create_convert_operand_to): Likewise.
10369 (create_convert_operand_from, create_address_operand): Likewise.
10370 (create_integer_operand): Likewise.
10371 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10372 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10373 (expand_insn, expand_jump_insn): Likewise.
10374 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10375 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10376 (expand_movstr, expand_builtin___clear_cache): Likewise.
10377 (expand_builtin_lock_release): Likewise.
10378 * explow.c (allocate_dynamic_stack_space): Likewise.
10379 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10380 and use the default handling in that case.
10381 * expmed.c (check_predicate_volatile_ok): Delete.
10382 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10383 (emit_cstore): Likewise.
10384 * expr.c (emit_block_move_via_movmem): Likewise.
10385 (set_storage_via_setmem, expand_assignment): Likewise.
10386 (emit_storent_insn, try_casesi): Likewise.
10387 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10388 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10389 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10390 (expand_twoval_unop, expand_twoval_binop): Likewise.
10391 (expand_unop_direct, emit_indirect_jump): Likewise.
10392 (emit_conditional_move, vector_compare_rtx): Likewise.
10393 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10394 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10395 (expand_sync_lock_test_and_set): Likewise.
10396 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10397 (emit_unop_insn): Likewise.
10398 (expand_copysign_absneg): Change icode to an insn_code.
10399 (create_convert_operand_from_type): New function.
10400 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10401 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10402 (expand_insn, expand_jump_insn): Likewise.
10403 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10404 than const_int_operand for operand 2.
10406 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10408 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10411 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10413 * emit-rtl.c (emit_pattern_before_noloc): New function.
10414 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10415 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10416 (emit_pattern_after_noloc): New function.
10417 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10418 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10420 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10422 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10423 (__ffsDI2): Likewise.
10425 2011-03-22 Richard Henderson <rth@redhat.com>
10427 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10428 of !TARGET_ABI_OPEN_VMS.
10429 (alpha_trampoline_init, alpha_start_function): Likewise.
10430 (alpha_expand_epilogue, alpha_file_start): Likewise.
10431 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10432 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10433 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10434 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10435 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10437 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10439 * config/s390/s390-opts.h: New.
10440 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10441 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10442 s390_stack_guard): Remove.
10443 (s390_handle_arch_option): Return void. Take enum
10444 s390_arch_option value instead of string and searching array.
10445 (s390_handle_option): Don't assert that global structures are in
10446 use. Access variables via opts pointer. Use error_at. Don't use
10447 sscanf for -mstack-guard= or -mstack-size=. Update call to
10448 s390_handle_arch_option.
10449 (s390_option_override): Update call to s390_handle_arch_option.
10450 (s390_emit_prologue): Use %d format for s390_stack_size in
10451 diagnostic. Use %wd for HOST_WIDE_INT.
10452 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10453 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10454 * config/s390/s390.opt (config/s390/s390-opts.h): New
10455 HeaderInclude entry.
10456 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10457 s390_arch_flags, s390_warn_framesize): New Variable entries.
10458 (s390_arch_option): New Enum and EnumValue entries.
10459 (march=): Use Enum instead of Var.
10460 (mstack-guard=, mstack-size=): Use UInteger and Var.
10461 (mtune=): Use Enum.
10463 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10465 * config/score/score.c (score_handle_option): Don't assert that
10466 global structures are in use. Access target_flags via opts
10467 pointer. Use value of -march= option to determine target_flags
10469 * config/score/score.opt (march=): Use Enum.
10470 (score_arch): New Enum and EnumValue entries.
10472 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10474 * config/mep/mep.c (option_mtiny_specified): Remove.
10475 (mep_option_override): Move register handling for -mivc2 from
10476 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10477 instead of option_mtiny_specified.
10478 (mep_handle_option): Access target_flags via opts pointer. Don't
10479 assert that global structures are in use. Defer part of -mivc2
10480 handling and move it to mep_option_override.
10481 * config/mep/mep.opt (IVC2): New Mask entry.
10482 (mivc2): Use Var and Defer instead of Mask.
10484 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10486 * config/v850/v850-opts.h: New.
10487 * config/v850/v850.c (small_memory): Replace with
10488 small_memory_physical_max array. Make that array static const.
10489 (v850_handle_memory_option): Take integer value of argument. Take
10490 gcc_options pointer, option text and location. Return void.
10491 Update for changes to small memory structures.
10492 (v850_handle_option): Access target_flags via opts pointer. Don't
10493 assert that global structures are in use. Update calls to
10494 v850_handle_memory_option.
10495 (v850_encode_data_area): Update references to small memory settings.
10496 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10497 (enum small_memory_type): Move to v850-opts.h.
10498 * config/v850/v850.opt (config/v850/v850-opts.h): New
10499 HeaderInclude entry.
10500 (small_memory_max): New Variable entry.
10501 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10502 (mtda, mzda): Likewise.
10504 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10506 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10507 pointer. Don't assert that global structures are in use.
10509 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10511 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10512 via opts pointer. Don't assert that global structures are in use.
10514 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10516 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10517 (munix=93): Use Var.
10518 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10519 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10520 * config/pa/pa-opts.h: New.
10521 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10522 (pa_handle_option): Don't assert that global structures are in
10523 use. Access target_flags via opts pointer. Don't handle
10524 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10526 (pa_option_override): Handle deferred OPT_mfixed_range_.
10528 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10530 * config/mn10300/mn10300-opts.h: New.
10531 * config/mn10300/mn10300.c (mn10300_processor,
10532 mn10300_tune_string): Remove.
10533 (mn10300_handle_option): Don't assert that global structures are
10534 in use. Access mn10300_processor via opts pointer. Don't handle
10536 * config/mn10300/mn10300.h (enum processor_type): Move to
10538 (mn10300_processor): Remove.
10539 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10540 HeaderInclude entry.
10541 (mn10300_processor): New Variable entry.
10544 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10546 * config/microblaze/microblaze.c: Don't include opts.h.
10547 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10548 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10549 (mno-clearbss): Use Var and Warn.
10551 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10553 * config/m32r/m32r-opts.h: New.
10554 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10555 (m32r_handle_option): Don't assert that global structures are in
10556 use. Access target_flags and m32r_cache_flush_func via opts
10557 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10558 OPT_mno_flush_trap here.
10559 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10560 include of m32r-opts.h.
10561 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10562 HeaderInclude entry.
10563 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10564 (mmodel=): Use Enum and Var.
10565 (m32r_model): New Enum and EnumValue entries.
10566 (mno-flush-trap): Use Var.
10567 (msdata=): Use Enum and Var.
10568 (m32r_sdata): New Enum and EnumValue entries.
10570 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10572 * config/m32c/m32c.c: Don't include opts.h.
10573 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10574 m32c_handle_option): Remove.
10575 (m32c_option_override): Check global_options_set.x_target_memregs
10576 instead of target_memregs_set.
10577 * config/m32c/m32c.h (target_memregs): Remove.
10578 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10581 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10583 * config/iq2000/iq2000-opts.h: New.
10584 * config/iq2000/iq2000.c: Don't include opts.h.
10585 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10586 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10587 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10588 HeaderInclude entry.
10589 (iq2000_tune): New Variable entry.
10590 (march=): Add comment. Use Enum.
10591 (iq2000_arch): New Enum and EnumValue entries.
10592 (mcpu=): Use Enum and Var.
10593 (iq2000_tune): New Enum and EnumValue entries.
10595 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10597 * config/ia64/ia64-opts.h: New.
10598 * config/ia64/ia64.c (ia64_tune): Remove.
10599 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10600 here. Use error_at.
10601 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10602 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10603 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10604 HeaderInclude entry.
10605 (ia64_tune): New Variable entry.
10606 (mfixed-range=): Use Defer and Var.
10607 (mtune=): Use Enum and Var.
10608 (ia64_tune): New Enum and EnumValue entries.
10610 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10612 * config/frv/frv-opts.h: New.
10613 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10615 (frv_cpu_type): Remove.
10616 * config/frv/frv.c: Don't include opts.h.
10617 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10618 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10619 (frv_cpu_type): New Variable entry.
10620 (frv_cpu): New Enum and EnumValue entries.
10622 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10624 * config/cris/cris.c (cris_handle_option): Access target_flags via
10625 opts pointer. Don't assert that global structures are in use.
10626 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10627 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10629 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10631 * config/bfin/bfin-opts.h: New.
10632 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10633 bfin_si_revision, bfin_workarounds): Remove.
10634 (bfin_cpus): Make static const.
10635 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10636 not bfin_lib_id_given.
10637 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10638 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10639 pointer. Use error_at. Don't assert that global structures are in use.
10640 * config/bfin/bfin.h: Include bfin-opts.h.
10641 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10642 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10643 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10644 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10647 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10649 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10650 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10651 or -msoft-float here.
10652 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10653 -msoft-float and -mhard-float.
10654 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10655 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10657 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10659 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10660 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10662 (LIBGCC_SPEC): Don't handle -msoft-float.
10663 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10665 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10667 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10668 -mfloat-abi=*, not -msoft-float and -mhard-float.
10669 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10671 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10672 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10673 mhard-float and msoft-float.
10674 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10675 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10676 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10677 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10679 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10680 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10682 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10684 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10687 2011-03-22 Richard Henderson <rth@redhat.com>
10689 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10690 TARGET_ABI_WINDOWS_NT.
10691 (alpha_output_function_end_prologue): Likewise.
10692 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10693 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10694 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10695 (trap, *movsi_nt_vms): Likewise.
10696 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10697 (*tablejump_osf_nt_internal): Remove.
10698 * config/alpha/predicates.md (input_operand): Only test Pmode.
10700 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10702 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10703 via opts pointer. Use error_at. Don't assert that global
10704 structures are in use.
10706 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10708 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10709 (ix86_handle_option): Access ix86_isa_flags and
10710 ix86_isa_flags_explicit via opts pointer. Don't assert that
10711 global structures are in use.
10712 (ix86_function_specific_save, ix86_function_specific_restore):
10713 Update ix86_isa_flags_explicit field name.
10714 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10715 (ix86_isa_flags_explicit): Rename TargetSave entry to
10716 x_ix86_isa_flags_explicit.
10718 2011-03-22 Richard Henderson <rth@redhat.com>
10720 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10721 (alpha_option_override, direct_return): Likewise.
10722 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10723 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10724 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10725 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10726 (alpha_expand_epilogue, alpha_end_function): Likewise.
10727 (alpha_init_libfuncs): Likewise.
10728 (struct machine_function): Remove unicosmk members.
10729 (print_operand) ['t']: Remove.
10730 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10731 unicosmk_output_module_name, unicosmk_output_common,
10732 current_section_align, unicosmk_output_text_section_asm_op,
10733 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10734 unicosmk_section_type_flags, unicosmk_unique_section,
10735 unicosmk_asm_named_section, unicosmk_insert_attributes,
10736 unicosmk_output_align, unicosmk_defer_case_vector,
10737 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10738 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10739 unicosmk_output_ssib, unicosmk_add_call_info_word,
10740 unicosmk_extern_head, unicosmk_output_default_externs,
10741 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10742 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10743 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10744 * config/alpha/alpha-protos.h: Update.
10745 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10746 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10747 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10748 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10749 (*mulsi_se, mulvsi3): Likewise.
10750 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10751 (*divmodsi_internal, call, call_value, realign): Likewise.
10752 (moddi3, umoddi3): Likewise; remove duplicate expander.
10753 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10754 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10755 (*movdi_nofix): Remove r/U alternative.
10756 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10757 * config/alpha/constraints.md ("U"): Remove.
10758 * config/alpha/predicates.md (call_operand"): Don't test
10759 TARGET_ABI_UNICOSMK.
10761 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10763 * target.def (handle_option): Take gcc_options and
10764 cl_decoded_option pointers and location_t.
10765 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10766 * doc/tm.texi: Regenerate.
10767 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10768 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10769 * lto-opts.c (lto_reissue_options): Generate option structure for
10770 targetm.handle_option call.
10771 * opts.c (target_handle_option): Update call to
10772 targetm.handle_option. Remove assertions about values now passed
10774 * targhooks.c (default_target_handle_option): New.
10775 * targhooks.h (default_target_handle_option): Declare.
10776 * config/alpha/alpha.c: Include opts.h.
10777 (alpha_handle_option): Update to new hook interface.
10778 * config/arm/arm.c: Include opts.h.
10779 (arm_handle_option): Update to new hook interface.
10780 * config/arm/t-arm (arm.o): Update dependencies.
10781 * config/bfin/bfin.c: Include opts.h.
10782 (bfin_handle_option): Update to new hook interface.
10783 * config/cris/cris.c: Include opts.h.
10784 (cris_handle_option): Update to new hook interface.
10785 * config/frv/frv.c: Include opts.h.
10786 (frv_handle_option): Update to new hook interface.
10787 * config/i386/i386.c: Include opts.h.
10788 (ix86_handle_option): Update to new hook interface.
10789 (ix86_valid_target_attribute_inner_p): Generate option structure
10790 for call to ix86_handle_option.
10791 * config/i386/t-i386 (i386.o): Update dependencies.
10792 * config/ia64/ia64.c: Include opts.h.
10793 (ia64_handle_option): Update to new hook interface.
10794 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10795 * config/iq2000/iq2000.c: Include opts.h.
10796 (iq2000_handle_option): Update to new hook interface.
10797 * config/m32c/m32c.c: Include opts.h.
10798 (m32c_handle_option): Update to new hook interface.
10799 * config/m32r/m32r.c: Include opts.h.
10800 (m32r_handle_option): Update to new hook interface.
10801 * config/m68k/m68k.c: Include opts.h.
10802 (m68k_handle_option): Update to new hook interface.
10803 * config/mep/mep.c: Include opts.h.
10804 (mep_handle_option): Update to new hook interface.
10805 * config/microblaze/microblaze.c: Include opts.h.
10806 (microblaze_handle_option): Update to new hook interface.
10807 * config/mips/mips.c: Include opts.h.
10808 (mips_handle_option): Update to new hook interface.
10809 * config/mn10300/mn10300.c: Include opts.h.
10810 (mn10300_handle_option): Update to new hook interface.
10811 * config/pa/pa.c: Include opts.h.
10812 (pa_handle_option): Update to new hook interface.
10813 * config/pdp11/pdp11.c: Include opts.h.
10814 (pdp11_handle_option): Update to new hook interface.
10815 * config/rs6000/rs6000.c: Include opts.h.
10816 (rs6000_handle_option): Update to new hook interface.
10817 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10818 * config/rx/rx.c: Include opts.h.
10819 (rx_handle_option): Update to new hook interface.
10820 * config/s390/s390.c: Include opts.h.
10821 (s390_handle_option): Update to new hook interface.
10822 * config/score/score.c: Include opts.h.
10823 (score_handle_option): Update to new hook interface.
10824 * config/sh/sh.c: Include opts.h.
10825 (sh_handle_option): Update to new hook interface.
10826 * config/sparc/sparc.c: Include opts.h.
10827 (sparc_handle_option): Update to new hook interface.
10828 * config/v850/v850.c: Include opts.h.
10829 (v850_handle_option): Update to new hook interface.
10831 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10833 * gcc.c (driver_unknown_option_callback): Only permit and save
10834 unknown -Wno- options.
10835 (driver_wrong_lang_callback): Save options directly instead of via
10836 driver_unknown_option_callback.
10838 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10840 * combine.c (simplify_set): Try harder to find the best CC mode when
10841 simplifying a nested COMPARE on the RHS.
10843 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10845 * config/alpha/gnu.h: Remove.
10846 * config/arc: Remove directory.
10847 * config/arm/netbsd.h: Remove.
10848 * config/arm/t-pe: Remove.
10849 * config/crx: Remove directory.
10850 * config/i386/netbsd.h: Remove.
10851 * config/m68hc11: Remove directory.
10852 * config/m68k/uclinux-oldabi.h: Remove.
10853 * config/mcore/mcore-pe.h: Remove.
10854 * config/mcore/t-mcore-pe: Remove.
10855 * config/netbsd-aout.h: Remove.
10856 * config/rs6000/gnu.h: Remove.
10857 * config/sh/sh-symbian.h: Remove.
10858 * config/sh/symbian-base.c: Remove.
10859 * config/sh/symbian-c.c: Remove.
10860 * config/sh/symbian-cxx.c: Remove.
10861 * config/sh/symbian-post.h: Remove.
10862 * config/sh/symbian-pre.h: Remove.
10863 * config/sh/t-symbian: Remove.
10864 * config/svr3.h: Remove.
10865 * config/vax/netbsd.h: Remove.
10866 * config.build: Don't handle i[34567]86-*-pe.
10867 * config.gcc: Remove handling of deprecations for most deprecated
10869 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10870 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10871 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10872 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10873 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10874 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10876 * config.host: Don't handle i[34567]86-*-pe.
10877 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10878 (ASM_SPEC32): Don't handle -mcall-gnu.
10879 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10881 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10882 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10883 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10884 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10885 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10886 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10887 conditional on SYMBIAN.
10888 * configure.ac: Don't handle powerpc*-*-gnu*.
10889 * configure: Regenerate.
10890 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10891 * doc/install-old.texi (m6811, m6812): Don't mention.
10892 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10893 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10894 (m68k-uclinuxoldabi): Don't mention.
10895 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10897 (-mcall-gnu): Remove.
10898 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10899 families): Remove constraint documentation.
10901 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10903 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10904 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10905 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10907 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10910 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10911 vector when peeking at the next token for vector, don't expand the
10914 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10916 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10917 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10918 * config/avr/avr.c (init_cumulative_args)
10919 (avr_function_arg_advance): Use it.
10920 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10922 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10923 (avr_function_ok_for_sibcall): ...this new function.
10924 (avr_lookup_function_attribute1): New static Function.
10925 (avr_naked_function_p, interrupt_function_p)
10926 (signal_function_p, avr_OS_task_function_p)
10927 (avr_OS_main_function_p): Use it.
10928 * config/avr/avr.md ("sibcall", "sibcall_value")
10929 ("sibcall_epilogue"): New expander.
10930 ("*call_insn", "*call_value_insn"): New insn.
10931 ("call_insn", "call_value_insn"): Remove
10932 ("call", "call_value", "epilogue"): Change expander to handle
10935 2011-03-21 Nick Clifton <nickc@redhat.com>
10937 * doc/invoke.texi (Overall Options): Move closing brace to end of
10939 (Optimization Options): Add missing @gol.
10940 (Directory Options): Likewise.
10941 (i386 and x86-64 Options): Likewise.
10942 (RS6000 and PowerPC Options): Likewise.
10943 (i386 and x86-64 Windows Options): Likewise.
10944 (V850 Options): Add text missing from descriptions.
10946 2011-03-22 Richard Henderson <rth@redhat.com>
10948 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10949 (avr_incoming_return_addr_rtx): New.
10950 (emit_push_byte): New.
10951 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10952 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10953 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10954 (emit_pop_byte): New.
10955 (expand_epilogue): Use it. Pop frame pointer by bytes.
10956 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10957 (INCOMING_RETURN_ADDR_RTX): New.
10958 (INCOMING_FRAME_SP_OFFSET): New.
10959 (ARG_POINTER_CFA_OFFSET): New.
10960 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10961 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10964 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10966 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10968 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10969 (FUNCTION_ARG_ADVANCE): Likewise.
10970 * tm.texi.in: Change references to them to hook references.
10971 * tm.texi: Regenerate.
10972 * targhooks.c (default_function_arg): Eliminate check for target
10974 (default_function_incoming_arg): Likewise.
10975 (default_function_arg_advance): Likewise.
10976 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10977 (function_arg_advance): Likewise.
10978 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10980 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10982 * tree.c (build_call_1): New function.
10983 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10985 2011-03-22 Richard Guenther <rguenther@suse.de>
10987 PR tree-optimization/48228
10988 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10989 for single-arg PHIs.
10991 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10993 PR rtl-optimization/48143
10994 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10995 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10996 sse2_cvtps2pd): Likewise.
10998 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11000 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11002 2011-03-22 Richard Guenther <rguenther@suse.de>
11004 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11005 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11006 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11007 and REALIGN_LOAD_EXPR.
11008 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11009 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11010 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11011 DOT_PROD_EXPR case ...
11012 (expand_expr_real_2): ... here.
11013 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11014 and REALIGN_LOAD_EXPR.
11015 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11016 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11017 (vect_create_epilog_for_reduction): Likewise.
11018 (vectorizable_reduction): Likewise.
11019 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11020 * tree-vect-stmts.c (vectorizable_load): Likewise.
11022 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11024 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11026 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11028 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11029 handling for PLTOFF/GOTOFF.
11031 2011-03-22 Nick Clifton <nickc@redhat.com>
11033 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11034 trailing backslash from the end of the macro definition.
11036 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11038 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11041 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11043 * expr.h (prepare_operand): Move to...
11044 * optabs.h (prepare_operand): ...here and change the insn code
11045 parameter from "int" to "enum insn_code".
11046 (insn_operand_matches): Declare.
11047 * expr.c (init_expr_target): Use insn_operand_matches.
11048 (compress_float_constant): Likewise.
11049 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11050 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11051 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11052 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11054 (gen_cond_trap): Likewise.
11055 (prepare_operand): Likewise. Change icode to an insn_code.
11056 (insn_operand_matches): New function.
11057 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11058 * reload1.c (gen_reload): Likewise.
11059 * targhooks.c (default_secondary_reload): Likewise.
11061 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11063 * config/alpha/alpha.md (unspec): New define_c_enum.
11066 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11069 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11070 between a call and its CALL_ARG_LOCATION note.
11072 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11074 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11076 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11080 * c-common.c (shorten_compare): If primopN is first sign-extended
11081 to opN and then zero-extended to result type, set primopN to opN.
11083 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11085 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11086 for barrier handlers.
11088 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11090 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11091 UNSPEC constants to be in the unspec enumeration, and redefine
11092 all UNSPECV constants to be in the unspecv enumeration, so that
11093 dumps print which unspec/unspec_volatile this is.
11094 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11095 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11096 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11097 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11098 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11100 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11101 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11102 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11103 * config/rs6000/sync.md (isync, lwsync): Ditto.
11105 2011-03-21 Richard Guenther <rguenther@suse.de>
11107 * params.def (lto-min-partition): Fix typo.
11109 2011-03-21 Richard Guenther <rguenther@suse.de>
11112 * c-decl.c (grokdeclarator): Drop to the main variant only
11113 for array types. Drop flag_gen_aux_info check.
11115 2011-03-21 Richard Guenther <rguenther@suse.de>
11117 PR translation/47911
11118 * params.def (lto-partitions): Fix typo.
11119 (lto-min-partition): Fix wording.
11121 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11123 * config/rs6000/t-freebsd: Remove duplication from file.
11125 2011-03-21 Richard Guenther <rguenther@suse.de>
11127 PR middle-end/47661
11128 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11130 2011-03-21 Richard Guenther <rguenther@suse.de>
11133 * params.def (lto-partitions): Require at least 1 partition.
11135 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11137 * gthr-solaris.h: Remove.
11138 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11139 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11140 (LIB_SPEC): Likewise.
11141 * config/sol2.opt (threads): Remove.
11142 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11143 (sparc*-*-solaris2*): Likewise.
11144 * configure.ac (enable_threads): Enable solaris support.
11145 * configure: Regenerate.
11146 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11147 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11150 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11152 * config.gcc: Obsolete *-*-solaris2.8*.
11153 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11155 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11158 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11159 reference. Solaris 8 perl works.
11161 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11164 * doc/install.texi (Prerequisites): Move jar etc. up.
11165 Explain support library version requirements.
11167 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11170 * doc/install.texi (Prerequisites): Move Perl to build
11171 requirements. Always necessary on Solaris 2 with Sun ld.
11173 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11175 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11177 (Specific, i?86-*-solaris2.[89]): Likewise.
11178 (Specific, i?86-*-solaris2.10): Likewise.
11179 (Specific, mips-sgi-irix6): Likewise.
11180 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11181 Update for binutils 2.21.
11183 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11185 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11186 Allow -fuse-linker-plugin for non-default plugin linker.
11187 * configure: Regenerate.
11189 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11192 * gengtype.c (files_rules): Added rule for cp/parser.h.
11194 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11197 * config/s390/s390.c (s390_delegitimize_address): Don't call
11198 lowpart_subreg if orig_x has BLKmode.
11200 2011-03-21 Kai Tietz <ktietz@redhat.com>
11203 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11204 * tree.h (attribute_spec): Add new member affects_type_identity.
11205 * attribs.c (empty_attribute_table): Adjust attribute_spec
11207 * config/alpha/alpha.c: Likewise.
11208 * config/arc/arc.c: Likewise.
11209 * config/arm/arm.c: Likewise.
11210 * config/avr/avr.c: Likewise.
11211 * config/bfin/bfin.c: Likewise.
11212 * config/crx/crx.c: Likewise.
11213 * config/darwin.h: Likewise.
11214 * config/h8300/h8300.c: Likewise.
11215 * config/i386/cygming.h: Likewise.
11216 * config/i386/i386.c: Likewise.
11217 * config/ia64/ia64.c: Likewise.
11218 * config/m32c/m32c.c: Likewise.
11219 * config/m32r/m32r.c: Likewise.
11220 * config/m68hc11/m68hc11.c: Likewise.
11221 * config/m68k/m68k.c: Likewise.
11222 * config/mcore/mcore.c: Likewise.
11223 * config/mep/mep.c: Likewise.
11224 * config/microblaze/microblaze.c: Likewise.
11225 * config/mips/mips.c: Likewise.
11226 * config/rs6000/rs6000.c: Likewise.
11227 * config/rx/rx.c: Likewise.
11228 * config/sh/sh.c: Likewise.
11229 * config/sol2.h: Likewise.
11230 * config/sparc/sparc.c: Likewise.
11231 * config/spu/spu.c: Likewise.
11232 * config/stormy16/stormy16.c: Likewise.
11233 * config/v850/v850.c: Likewise.
11235 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11237 * simplify-rtx.c (simplify_binary_operation_1): Handle
11238 (xor (and A B) C) case when B and C are both constants.
11240 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11242 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11244 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11247 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11249 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11251 PR rtl-optimization/48156
11252 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11253 assume df and df_lr are not NULL.
11255 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11258 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11259 between a call and its CALL_ARG_LOCATION note.
11261 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11264 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11265 between a call and its corresponding CALL_ARG_LOCATION note.
11267 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11269 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11270 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11271 * haifa-sched.c (setup_ref_regs): Ditto.
11272 * caller-save.c (add_used_regs_1): Ditto.
11273 * dse.c (look_for_hardregs): Ditto.
11274 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11275 * sched-rgn.c (check_live_1): Ditto.
11277 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11279 * c-decl.c (diagnose_mismatched_decls): Give an error for
11280 redefining a typedef with variably modified type.
11282 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11284 * c-decl.c (grokfield): Don't allow typedefs for structures or
11285 unions with no tag by default.
11286 * doc/extend.texi (Unnamed Fields): Update.
11288 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11290 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11291 Rewrite using indirect functions.
11292 (lwp_slwpcb): Ditto.
11293 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11294 (avx_vinsertf128<mode>): Ditto.
11296 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11298 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11301 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11303 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11304 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11306 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11308 PR rtl-optimization/48170
11309 * gcse.c (hoist_code): Remove bogus asserts.
11311 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11313 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11314 computation for prologue/epilogue.
11316 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11318 * Makefile.in (check-consistency): Remove.
11320 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11323 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11324 arange_table_in_use is 0, but either text_section_used or
11325 cold_text_section_used is true. Don't call it if
11326 !info_section_emitted.
11328 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11330 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11331 FUNCTION_VALUE_REGNO_P): Remove.
11332 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11334 * config/avr/avr.c (avr_ret_register): Make static inline.
11335 (avr_function_value_regno_p): New function.
11336 (avr_libcall_value): Make static. Add 'func' argument.
11337 (avr_function_value): Make static. Rename 'func' argument to
11338 'fn_decl_or_type', forward it to avr_libcall_value. Call
11339 avr_ret_register function instead of RET_REGISTER macro.
11340 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11342 2011-03-18 Jason Merrill <jason@redhat.com>
11345 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11347 2011-03-18 Richard Guenther <rguenther@suse.de>
11349 * doc/install.texi (--enable-gold): Remove.
11350 (--with-plugin-ld): Document.
11351 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11353 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11355 PR middle-end/47790
11356 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11357 again after expansion changes.
11359 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11361 * combine.c (try_combine): Do simplification only call of
11362 subst() on i2 even when i1 is present. Update comments.
11364 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11366 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11367 and UNSPEC_PCREL_SYMOFF.
11369 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11371 * config/s390/s390.md: Use define_c_enum for the unspec constant
11374 2011-03-18 Richard Henderson <rth@redhat.com>
11375 Jakub Jelinek <jakub@redhat.com>
11378 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11379 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11381 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11383 PR middle-end/47725
11384 * combine.c (cant_combine_insn_p): Don't check zero/sign
11385 extended hard registers.
11387 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11389 PR middle-end/47725
11390 * combine.c (cant_combine_insn_p): Check zero/sign extended
11393 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11395 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11396 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11397 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11398 Change return type to bool.
11399 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11401 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11404 * var-tracking.c (prepare_call_arguments): If CALL target
11405 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11406 pc instead of looking it up using cselib_lookup and use
11407 Pmode for it if x has VOIDmode.
11408 * dwarf2out.c (gen_subprogram_die): If also both first and
11409 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11412 * function.c (assign_parms): For data.passed_pointer parms
11413 use MEM of data.entry_parm instead of data.entry_parm itself
11414 as DECL_INCOMING_RTL.
11415 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11416 also when passed and declared mode is the same, DECL_RTL
11417 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11420 2011-03-16 Jeff Law <law@redhat.com>
11422 PR rtl-optimization/37273
11423 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11424 handle them like argument loads from stack slots. Do not double
11425 count memory for memory constants and argument loads from stack slots.
11427 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11430 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11432 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11435 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11437 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11440 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11442 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11443 Clear call_arg_locations and call_arg_loc_last always.
11445 PR middle-end/48152
11446 * var-tracking.c (prepare_call_arguments): If argument needs to be
11447 passed by reference, adjust argtype and mode.
11449 2011-03-17 Richard Guenther <rguenther@suse.de>
11451 PR middle-end/48134
11452 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11453 a value make sure to fold the statement.
11455 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11458 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11459 return condition with !cfun->calls_alloca.
11461 2011-03-17 Richard Guenther <rguenther@suse.de>
11464 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11465 origin for decls in other ltrans units.
11466 (input_varpool_node): Likewise.
11468 2011-03-17 Richard Guenther <rguenther@suse.de>
11470 PR middle-end/48165
11471 * tree-object-size.c (compute_object_offset): Properly return
11472 the offset operand of MEM_REFs as sizetype.
11474 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11476 PR rtl-optimization/48141
11477 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11478 * dse.c: Include params.h.
11479 (active_local_stores_len): New variable.
11480 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11482 (record_store, check_mem_read_rtx): Decrease it when removing
11484 (scan_insn): Likewise. Increase it when adding to chain, if it
11485 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11486 set active_local_stores to NULL before the addition.
11487 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11489 PR rtl-optimization/48141
11490 * dse.c (record_store): If no positions are needed in an insn
11491 that cannot be deleted, at least unchain it from active_local_stores.
11493 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11496 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11497 (lookup_type_die_strip_naming_typedef): ... here.
11498 (get_context_die): Use it.
11499 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11500 the anonymous struct named by the naming typedef.
11502 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11505 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11506 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11508 2011-03-16 Jeff Law <law@redhat.com>
11510 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11511 check for operands of conditional. Allow type to be a pointer.
11513 2011-03-16 Richard Guenther <rguenther@suse.de>
11515 PR tree-optimization/48149
11516 * fold-const.c (fold_binary_loc): Fold
11517 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11519 2011-03-16 Richard Guenther <rguenther@suse.de>
11521 PR tree-optimization/26134
11522 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11523 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11524 (non_rewritable_mem_ref_base): Handle complex type component
11525 accesses, constrain offsets for vector and complex extracts
11528 2011-03-16 Richard Guenther <rguenther@suse.de>
11530 PR tree-optimization/48146
11531 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11532 operands avoiding the need for renaming.
11534 2011-03-16 Richard Guenther <rguenther@suse.de>
11536 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11537 constant folding. Move MEM_REF canonicalization first.
11538 Rely on fold_const_aggregate_ref for initializer folding.
11539 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11541 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11543 PR middle-end/48136
11544 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11545 arg0/arg1 or their arguments are always fold converted to matching
11548 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11551 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11554 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11555 Handle in-tree gold.
11556 (ld_vers): Extract binutils version for gold.
11557 (gcc_cv_ld_hidden): Handle gold here.
11558 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11559 * configure: Regenerate.
11560 * config.in: Regenerate.
11561 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11562 -fuse-linker-plugin otherwise.
11563 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11564 (LINK_COMMAND_SPEC): Use it.
11565 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11567 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11569 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11570 * calls.c: Remove debug.h include.
11571 (emit_call_1): Don't call virtual_call_token debug hook.
11572 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11573 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11574 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11575 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11576 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11577 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11578 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11579 dwarf2out_virtual_call): Remove.
11580 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11581 copy_call_info and virtual_call hooks.
11582 (dwarf2out_init): Don't initialize vcall_insn_table,
11583 debug_dcall_section and debug_vcall_section.
11584 (prune_unused_types): Don't mark nodes from dcall_table.
11585 (dwarf2out_finish): Don't output dcall or vcall tables.
11586 * final.c (final_scan_insn): Don't call direct_call or
11587 virtual_call debug hooks.
11588 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11589 virtual_call_token, copy_call_info and virtual_call hooks.
11590 (debug_nothing_uid): Remove prototype.
11591 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11592 copy_call_info and virtual_call hooks.
11593 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11594 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11595 * debug.c (do_nothing_debug_hooks): Likewise.
11596 (debug_nothing_uid): Remove.
11597 * doc/invoke.texi (-fenable-icf-debug): Remove.
11598 * common.opt (-fenable-icf-debug): Likewise.
11600 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11601 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11602 call's MEM. Handle functions returning aggregate through a hidden
11603 first pointer. For virtual calls add clobbered pc to call arguments
11605 * dwarf2out.c (gen_subprogram_die): Emit
11606 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11610 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11611 * rtl.h (ENTRY_VALUE_EXP): Define.
11612 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11613 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11614 * print-rtl.c (print_rtx): Likewise.
11615 * gengtype.c (adjust_field_rtx_def): Likewise.
11616 * var-tracking.c (vt_add_function_parameter): Adjust
11617 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11618 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11619 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11620 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11621 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11623 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11624 Call var_location debug hook even on CALL_INSNs.
11625 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11626 * rtl.def (ENTRY_VALUE): New.
11627 * dwarf2out.c: Include cfglayout.h.
11628 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11629 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11630 (struct call_arg_loc_node): New type.
11631 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11632 tail_call_site_count): New variables.
11633 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11634 DW_TAG_GNU_call_site_parameter.
11635 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11636 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11637 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11638 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11639 and DW_AT_GNU_all_source_call_sites.
11640 (mem_loc_descriptor): Handle ENTRY_VALUE.
11641 (add_src_coords_attributes): Don't add enything if
11642 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11643 (dwarf2out_abstract_function): Save and clear call_arg_location,
11644 call_site_count and tail_call_site_count around dwarf2out_decl call.
11645 (gen_call_site_die): New function.
11646 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11647 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11648 (dwarf2out_function_decl): Clear call_arg_locations,
11649 call_arg_loc_last, set call_site_count and tail_call_site_count
11650 to -1 and free block_map.
11651 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11652 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11653 followed by any real instructions.
11654 (dwarf2out_begin_function): Set call_site_count and
11655 tail_call_site_count to 0.
11656 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11657 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11658 attempt to force a DIE for it and worst case remove the attribute.
11659 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11660 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11662 * var-tracking.c: Include tm_p.h.
11663 (vt_stack_adjustments): For calls call note_register_arguments.
11664 (argument_reg_set): New variable.
11665 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11666 ensure the VALUE is resolved.
11667 (call_arguments): New variable.
11668 (prepare_call_arguments): New function.
11669 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11670 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11671 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11672 always use the best expression.
11673 (vt_expand_loc): Add ignore_cur_loc argument.
11674 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11675 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11676 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11677 note for all calls.
11678 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11679 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11680 argument. Don't call cselib_preserve_only_values and
11681 cselib_reset_table.
11682 (note_register_arguments): New function.
11683 (vt_initialize): Compute argument_reg_set. Call
11684 vt_add_function_parameters before processing basic blocks instead of
11685 afterwards. For calls call prepare_call_arguments before calling
11686 cselib_process_insn.
11687 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11688 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11689 (var-tracking.o): Depend on $(TM_P_H).
11690 * cfglayout.h (insn_scope): New prototype.
11691 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11692 * cfglayout.c (insn_scope): No longer static.
11693 * insn-notes.def (CALL_ARG_LOCATION): New.
11694 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11695 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11696 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11697 nothing for DECL_EXTERNAL BLOCK_VARS.
11699 2011-03-16 Alan Modra <amodra@gmail.com>
11702 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11703 create invalid offset address for vsx splat insn.
11704 * config/rs6000/predicates.md (splat_input_operand): New.
11705 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11707 2011-03-15 Xinliang David Li <davidxl@google.com>
11710 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11711 (normalize_preds): New function.
11712 (is_use_properly_guarded): Normalize def predicates.
11714 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11717 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11718 in the output template.
11720 2011-03-15 Richard Guenther <rguenther@suse.de>
11722 PR middle-end/47650
11723 * tree-pretty-print.c (dump_function_declaration): Properly
11724 dump unprototyped and varargs function types.
11726 2011-03-15 Richard Guenther <rguenther@suse.de>
11728 PR tree-optimization/13954
11729 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11732 2011-03-15 Richard Guenther <rguenther@suse.de>
11734 PR tree-optimization/48037
11735 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11736 selects into BIT_FIELD_REFs.
11737 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11740 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11742 PR tree-optimization/48129
11743 * builtins.c (fold_builtin_snprintf): Convert to type of
11744 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11745 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11747 2011-03-15 Richard Guenther <rguenther@suse.de>
11749 PR tree-optimization/41490
11750 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11751 value but with VUSE.
11752 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11754 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11755 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11756 * tree-tailcall.c (find_tail_calls): Ignore returns.
11758 2011-03-15 Richard Guenther <rguenther@suse.de>
11760 PR middle-end/48031
11761 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11762 or variable-indexed array accesses when in gimple form.
11764 2011-03-15 Richard Guenther <rguenther@suse.de>
11766 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11768 2011-03-15 Alan Modra <amodra@gmail.com>
11771 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11772 presume symbol_refs without a symbol_ref_decl are suitably
11773 aligned, nor other trees we may see here. Handle anchor symbols.
11774 (legitimate_constant_pool_address_p): Comment. Add mode param.
11775 Check cmodel=medium addresses. Adjust all calls.
11776 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11777 creating cmodel=medium optimized access to locals.
11778 * config/rs6000/constraints.md (R): Pass QImode to
11779 legitimate_constant_pool_address_p.
11780 * config/rs6000/predicates.md (input_operand): Pass mode to
11781 legitimate_constant_pool_address_p.
11782 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11785 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11788 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11789 64-bit constants being loaded into registers other than GPRs such
11790 as loading 0 into a VSX register.
11792 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11794 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11796 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11798 PR middle-end/47917
11799 * builtins.c (fold_builtin_snprintf): New function.
11800 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11801 (fold_builtin_4): Likewise.
11803 PR middle-end/38878
11804 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11805 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11806 and C - X == X also strip nops from +/-/p+ operand.
11807 When optimizing -X == C, fold C to arg0's type.
11810 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11811 emit it as add_AT_int instead of add_AT_unsigned.
11813 2011-03-14 Tom Tromey <tromey@redhat.com>
11815 * unwind-dw2.c: Include sys/sdt.h if it exists.
11816 (_Unwind_DebugHook): Use STAP_PROBE2.
11817 * config.in, configure: Rebuild.
11818 * configure.ac: Check for sys/sdt.h.
11820 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11822 * config/i386/i386.md (ROUND_FLOOR): New constant.
11823 (ROUND_CEIL): Ditto.
11824 (ROUND_TRUNC): Ditto.
11825 (ROUND_MXCSR): Ditto.
11826 (ROUND_NO_EXC): Ditto.
11827 (rint<mode>2): Use new defines instead of numerical constants.
11828 (floor<mode>2): Ditto.
11829 (ceil<mode>2): Ditto.
11830 (btrunc<mode>2): Ditto.
11831 * config/i386/i386-builtin-types.def: Define ROUND function type
11833 * config/i386/i386.c (enum ix86_builtins): Add
11834 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11835 (struct builtin_description): Add
11836 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11837 (ix86_expand_sse_round): New static function.
11838 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11840 (ix86_builtin_vectorized_function): Handle
11841 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11843 2011-03-14 Tom Tromey <tromey@redhat.com>
11845 * c-parser.c (c_parser_asm_string_literal): Clear
11846 warn_overlength_strings.
11848 2011-03-14 Tom Tromey <tromey@redhat.com>
11850 * c-parser.c (disable_extension_diagnostics): Save
11851 warn_overlength_strings.
11852 (restore_extension_diagnostics): Restore warn_overlength_strings.
11854 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11856 * BASE-VER: Change to 4.7.0.
11858 2011-03-14 Richard Guenther <rguenther@suse.de>
11860 PR middle-end/48098
11861 * tree.c (build_vector_from_val): Adjust assert to requirements
11864 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11867 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11869 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11871 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11872 terms of target_flags_explicit. Adjust copyright year.
11874 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11875 * config/rs6000/t-freebsd: New file. Add override for
11878 2011-03-13 Chris Demetriou <cgd@google.com>
11880 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11881 (-fno-diagnostics-show-option): this, to reflect current default.
11882 (-Werror=): Update text about -fno-diagnostics-show-option.
11884 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11887 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11888 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11889 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11890 mode is not V2DImode or V2DFmode.
11891 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11892 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11893 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11895 (movdi_internal64): Likewise.
11897 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11899 PR tree-optimization/47127
11900 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11902 (set_cloog_options): Same.
11903 (scop_to_clast): Same.
11904 (print_clast_stmt): Do not call cloog_state_malloc and
11906 (print_generated_program): Same.
11908 * graphite-clast-to-gimple.h (cloog_state): Declared.
11909 (scop_to_clast): Adjust declaration.
11910 * graphite.c (cloog_state): Defined here.
11911 (graphite_initialize): Call cloog_state_malloc.
11912 (graphite_finalize): Call cloog_state_free.
11914 2011-03-11 Jason Merrill <jason@redhat.com>
11916 * attribs.c (lookup_attribute_spec): Take const_tree.
11919 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11921 * config/sparc/sparc.c (sparc_option_override): Use
11922 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11924 2011-03-11 Richard Guenther <rguenther@suse.de>
11926 PR tree-optimization/48067
11927 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11928 multiplication result will be only used once on the target
11931 2011-03-11 Richard Guenther <rguenther@suse.de>
11933 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11935 2011-03-11 Richard Guenther <rguenther@suse.de>
11938 * tree.c (find_decls_types_r): Do not walk types only reachable
11939 from IDENTIFIER_NODEs.
11941 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11943 PR middle-end/48044
11944 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11945 all vnode->force_output nodes as needed.
11947 2011-03-11 Jason Merrill <jason@redhat.com>
11950 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11951 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11953 2011-03-11 Martin Jambor <mjambor@suse.cz>
11955 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11958 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11960 PR tree-optimization/48063
11961 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11962 inline functions called once if !tree_can_inline_p (node->callers).
11964 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11966 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11968 * config/score/score3.c: Delete.
11969 * config/score/score3.h: Delete.
11970 * config/score/mul-div.S: Delete.
11971 * config/score/sfp-machine.h: Add new file.
11972 * config/score/constraints.md: Add new file.
11973 * config/score/t-score-softfp: Add new file.
11974 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11975 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11976 (score7_extra_constraint): Delete.
11977 (score7_option_override): Remove unused code.
11978 * config/score/score.c: Remove score3 and score5 define and code.
11979 * config/score/score.h: Remove score3 and score5 define and code.
11980 * config/score/score.md: Remove score3 template and unusual insn.
11981 * config/score/score.opt: Remove score3 and score5 options.
11983 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11985 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11986 when _HPUX_SOURCE is defined.
11987 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11989 2011-03-10 Jason Merrill <jason@redhat.com>
11992 * stor-layout.c (layout_type): Don't set structural equality
11993 on arrays of incomplete type.
11994 * tree.c (type_hash_eq): Handle comparing them properly.
11996 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11999 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12000 result mode matches original rtl mode.
12002 2011-03-10 Nick Clifton <nickc@redhat.com>
12004 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12005 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12007 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12009 PR rtl-optimization/47866
12010 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12011 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12012 if target wasn't scalar.
12013 * function.c (assign_stack_temp_for_type): Assert that neither
12014 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12015 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12017 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12019 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12021 * config/s390/s390-protos.h (s390_label_align): New prototype.
12022 * config/s390/s390.c (s390_label_align): New function.
12023 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12025 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12028 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12029 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12030 (output_vec_const_move): Ditto.
12032 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12034 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12035 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12036 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12037 Change 'rclass' argument and result type to reg_class_t.
12038 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12040 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12042 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12043 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12044 (TARGET_MEMORY_MOVE_COST): Define.
12045 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12047 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12050 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12053 PR tree-optimization/48022
12054 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12057 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12060 * var-tracking.c (find_use_val): Return NULL for
12061 cui->sets && cui->store_p BLKmode MEMs.
12063 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12065 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12067 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12068 xstormy16_print_operand_address): Remove.
12069 * config/stormy16/stormy16.c (xstormy16_print_operand,
12070 xstormy16_print_operand_address): Make static.
12071 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12073 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12076 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12077 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12080 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12083 * cfgloopmanip.c (fix_bb_placements): Return immediately
12084 if FROM is BASE_LOOP's header.
12086 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12088 * gimplify.c (gimplify_function_tree): Fix building calls
12089 to __builtin_return_address.
12091 2011-03-07 Alan Modra <amodra@gmail.com>
12093 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12094 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12095 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12096 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12098 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12099 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12100 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12101 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12102 * config/rs6000/rs6000.c
12103 (rs6000_elf_end_indicate_exec_stack): Rename to..
12104 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12105 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12106 (rs6000_file_start): ..here.
12107 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12108 file scope variables.
12109 (call_ABI_of_interest): New function.
12110 (init_cumulative_args): Set above vars when function return value
12111 is a float, vector, or small struct.
12112 (rs6000_function_arg_advance_1): Likewise for function args.
12113 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12114 references float args.
12116 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12118 * doc/cfg.texi: Remove "See" before @ref.
12119 * doc/invoke.texi: Likewise.
12121 2011-03-05 Jason Merrill <jason@redhat.com>
12123 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12125 2011-03-05 Anthony Green <green@moxielogic.com>
12127 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12129 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12131 PR rtl-optimization/47899
12132 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12133 to flow_loop_nested_p when moving the loop upward.
12135 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12138 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12140 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12142 PR tree-optimization/47967
12143 * ipa-cp.c (build_const_val): Return NULL instead of creating
12144 VIEW_CONVERT_EXPR for mismatching sizes.
12145 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12146 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12147 give up on versioning.
12149 2011-03-05 Alan Modra <amodra@gmail.com>
12152 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12153 full cmodel medium/large lo_sum + high addresses.
12155 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12157 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12158 pool references in UNSPEC_LTREL_OFFSET.
12160 2011-03-04 Jan Hubicka <jh@suse.cz>
12163 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12164 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12165 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12167 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12168 cgraph_add_thunk): Add node pointers.
12169 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12170 associated to right node.
12171 (input_node): Update use of cgraph_same_body_alias
12172 and cgraph_add_thunk.
12174 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12176 * config/i386/i386.opt (mprefer-avx128): New flag.
12177 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12178 modes when the flag -mprefer-avx128 is on.
12180 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12182 * dwarf2out.c (compare_loc_operands): Fix address handling.
12184 2011-03-04 Alan Modra <amodra@gmail.com>
12186 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12188 2011-03-04 Richard Guenther <rguenther@suse.de>
12190 PR middle-end/47968
12191 * expmed.c (extract_bit_field_1): Prefer vector modes that
12192 vec_extract patterns can handle.
12194 2011-03-04 Richard Guenther <rguenther@suse.de>
12196 PR middle-end/47975
12197 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12199 2011-03-04 Richard Henderson <rth@redhat.com>
12201 * explow.c (emit_stack_save): Remove 'after' parameter.
12202 (emit_stack_restore): Likewise.
12203 * expr.h: Update to match.
12204 * builtins.c, calls.c, stmt.c: Likewise.
12205 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12206 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12207 * function.c (expand_function_end): Insert the emit_stack_save
12208 sequence before parm_birth_insn instead of after.
12210 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12212 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12213 (ssse3_pmaddubsw128): Ditto.
12214 (ssse3_pmaddubsw): Ditto.
12216 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12218 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12220 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12223 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12224 on TYPE_SIZE_UNIT if it is a DECL.
12227 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12228 first operand is not is_gimple_mem_ref_addr, try to fold it.
12229 If the operand still isn't is_gimple_mem_ref_addr, clear
12232 2011-03-03 Richard Guenther <rguenther@suse.de>
12234 PR middle-end/47283
12235 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12237 (refs_may_alias_p_1): For release branches return true if
12238 we are confused by our input.
12240 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12242 * config/s390/s390.c (s390_function_value): Rename to ...
12243 (s390_function_and_libcall_value): ... this.
12244 (s390_function_value): New function.
12245 (s390_libcall_value): New function.
12246 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12247 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12248 target macro definitions.
12249 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12251 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12253 * config/i386/freebsd64.h (CC1_SPEC): Define.
12254 * config/i386/linux64.h (CC1_SPEC): Define.
12255 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12257 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12259 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12261 * config/stormy16/stormy16.c: Include reload.h.
12262 (xstormy16_memory_move_cost): New function.
12263 (TARGET_MEMORY_MOVE_COST): Define.
12265 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12267 PR rtl-optimization/47925
12268 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12269 with side effects. Remove the more-specific check for volatile asms.
12271 2011-03-02 Alan Modra <amodra@gmail.com>
12274 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12275 toc relative addresses for valid offsets.
12277 2011-03-01 Richard Guenther <rguenther@suse.de>
12279 PR tree-optimization/47890
12280 * tree-vect-loop.c (get_initial_def_for_induction): Set
12281 related stmt properly.
12283 2011-03-01 Richard Guenther <rguenther@suse.de>
12286 * lto-streamer.c (lto_record_common_node): Also register
12287 the canonical type.
12289 2011-03-01 Richard Guenther <rguenther@suse.de>
12292 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12293 Do not stream DECL_ABSTRACT_ORIGIN.
12294 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12295 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12296 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12297 Do not stream DECL_ABSTRACT_ORIGIN.
12298 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12299 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12301 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12303 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12304 FUNCTION_VALUE_REGNO_P): Remove.
12305 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12306 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12307 Add 'outgoing' argument.
12308 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12310 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12311 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12313 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12316 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12317 (lookup_filename): Likewise.
12318 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12320 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12321 Jakub Jelinek <jakub@redhat.com>
12323 PR middle-end/47893
12324 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12325 (assign_stack_local_1): Change last argument type to int.
12326 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12327 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12328 don't record padding space into frame_space_list nor use those areas.
12329 (assign_stack_local): Adjust caller.
12330 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12331 of assign_stack_local, pass 0 as last argument.
12332 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12335 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12338 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12339 Use target address_mode and pointer_mode hooks instead of hardcoded
12340 Pmode and ptr_mode. Handle some simple cases of extending if
12341 POINTERS_EXTEND_UNSIGNED < 0.
12342 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12343 Call convert_debug_memory_address.
12344 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12345 convert_debug_memory_address.
12347 PR middle-end/46790
12348 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12349 * configure: Regenerated.
12350 * config.in: Regenerated.
12351 * varasm.c (default_function_section): Return NULL
12352 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12354 2011-02-28 Martin Jambor <mjambor@suse.cz>
12356 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12357 the description to match the printed values.
12359 2011-02-28 Richard Guenther <rguenther@suse.de>
12361 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12362 of the copied scope tree.
12364 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12366 * doc/extend.texi (Function Attributes): Avoid deeply (and
12367 wrongly) nested tables.
12369 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12371 PR middle-end/47903
12372 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12373 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12374 r isn't op0 nor op1.
12376 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12378 * config/avr/avr.md: Remove magic comment for emacs.
12380 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12383 * config/avr/avr.c (avr_option_override): Use error on bad options.
12384 (avr_help): New function.
12385 (TARGET_HELP): Define.
12387 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12390 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12391 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12393 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12395 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12396 (ARM Options): Ditto.
12397 (i386 and x86-64 Options): Ditto.
12398 (RX Options): Ditto.
12399 (SPARC Options): Ditto.
12401 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12403 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12404 FreeBSD 6 and later. Generally use cpu generic.
12406 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12408 * doc/cpp.texi: Update copyright years.
12410 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12413 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12415 2011-02-25 Jon Beniston <jon@beniston.com>
12418 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12419 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12420 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12421 (lm32_block_move_inline): Add type cast to remove warning.
12422 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12423 (gen_int_relational): Move declarations to start of function.
12425 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12427 PR tree-optimization/45470
12428 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12429 can throw internally only.
12430 * tree-vect-stmts.c (vectorizable_call): Likewise.
12432 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12434 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12435 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12436 * config/stormy16/stormy16-protos.h
12437 (xstormy16_preferred_reload_class): Remove.
12438 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12439 static. Change 'rclass' argument and return type to reg_class_t.
12440 (TARGET_PREFERRED_RELOAD_CLASS,
12441 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12443 2011-02-24 Richard Guenther <rguenther@suse.de>
12445 * lto-streamer-in.c (input_bb): Do not find referenced vars
12446 in debug statements.
12448 2011-02-23 Jason Merrill <jason@redhat.com>
12450 * common.opt (fabi-version): Document v5 and v6.
12452 2011-02-23 Richard Guenther <rguenther@suse.de>
12454 PR tree-optimization/47849
12455 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12457 2011-02-23 Jie Zhang <jie@codesourcery.com>
12459 * opts-common.c (decode_cmdline_option): Print empty string
12460 argument as "" in decoded->orig_option_with_args_text.
12461 * gcc.c (execute): Print empty string argument as ""
12462 in the verbose output.
12463 (do_spec_1): Keep empty string argument.
12465 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12467 * config.gcc: Declare score-* and crx-* obsolete.
12469 2011-02-23 Jie Zhang <jie@codesourcery.com>
12471 PR rtl-optimization/47763
12472 * web.c (web_main): Ignore naked clobber when replacing register.
12474 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12476 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12479 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12482 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12484 2011-02-22 Mike Stump <mikestump@comcast.net>
12486 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12488 * configure: Regenerate.
12490 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12492 PR rtl-optimization/46002
12493 * ira-color.c (update_copy_costs): Change class intersection
12494 test to reg_class_contents[] test of 'hard_regno'.
12496 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12498 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12499 than Driver option.
12500 * config/hpux11.opt (mt): Likewise.
12501 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12502 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12503 * config/vax/elf.opt (mno-asm-pic): Likewise.
12504 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12506 2011-02-21 Mike Stump <mikestump@comcast.net>
12509 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12510 tree so we can get save the type.
12511 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12512 for CFString instead of trying to use past the end of the builtins.
12513 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12514 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12515 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12516 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12517 Rename to darwin_builtin_cfstring.
12518 (darwin_init_cfstring_builtins): Return the built type.
12520 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12523 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12524 (_mm256_insert_epi64): Use _mm_insert_epi64.
12526 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12528 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12529 * config/stormy16/stormy16-protos.h
12530 (xstormy16_mode_dependent_address_p): Remove.
12531 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12532 Make static. Change return type to bool. Change argument type to
12533 const_rtx. Remove dead code.
12534 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12536 2011-02-21 Richard Guenther <rguenther@suse.de>
12539 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12540 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12541 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12543 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12544 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12546 2011-02-20 Richard Guenther <rguenther@suse.de>
12549 * tree.c (free_lang_data_in_decl): Clean builtins from
12550 the TU decl BLOCK_VARS.
12552 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12556 * haifa-sched.c (fix_tick_ready): Skip tick computation
12559 2011-02-19 Richard Guenther <rguenther@suse.de>
12562 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12563 Remove lazy BLOCK_VARS streaming.
12564 (lto_input_ts_block_tree_pointers): Likewise.
12565 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12567 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12569 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12571 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12573 * config/i386/biarch32.h, config/i386/mach.h,
12574 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12576 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12579 * config/i386/i386.md (peephole2 for shift and plus): Use
12580 operands[1] original mode in the first insn.
12582 2011-02-18 Mike Stump <mikestump@comcast.net>
12584 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12586 2011-02-18 Jan Hubicka <jh@suse.cz>
12588 PR middle-end/47788
12589 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12590 to zero when the function is not inlinable at all.
12592 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12594 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12595 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12596 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12597 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12598 * config/pa/t-pa64: Likewise.
12599 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12601 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12604 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12606 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12609 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12611 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12613 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12614 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12615 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12616 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12617 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12618 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12619 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12620 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12621 m32r_legitimate_address_p): New functions.
12622 * config/m32r/constraints.md (constraint "S"): Don't use
12623 STORE_PREINC_PREDEC_P.
12624 (constraint "U"): Don't use LOAD_POSTINC_P.
12626 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12628 PR rtl-optimization/46178
12629 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12630 compute ira_hard_regno_cover_class[].
12632 2011-02-18 Richard Guenther <rguenther@suse.de>
12635 * lto-streamer.h (lto_global_var_decls): Declare.
12636 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12637 statics for global var processing.
12639 2011-02-18 Richard Guenther <rguenther@suse.de>
12641 PR tree-optimization/47737
12642 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12643 edge dominance check.
12645 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12648 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12649 avoid invalid rtx sharing.
12651 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12653 * doc/cpp.texi (Obsolete Features): Add background on the
12654 origin of assertions.
12656 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12658 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12660 * config/darwin.c (output_objc_section_asm_op): Added support for
12662 (is_objc_metadata): New.
12663 (darwin_objc2_section): New.
12664 (darwin_objc1_section): New.
12665 (machopic_select_section): Added support for ABI v1 and v2.
12666 (darwin_emit_objc_zeroed): New.
12667 (darwin_output_aligned_bss): Detect objc metadata and treat it
12669 (darwin_asm_output_aligned_decl_common): Same.
12670 (darwin_asm_output_aligned_decl_local): Same.
12671 * config/darwin-sections.def: Updated for ABI v1 and v2.
12672 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12673 compiling Objective-C code for the NeXT runtime, default to using
12674 ABI version 0 for 32-bit, and version 2 for 64-bit.
12676 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12678 * common.opt (optimize_fast): New Variable.
12679 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12680 instead of local variable ofast.
12682 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12684 * doc/invoke.texi (fobjc-abi-version): Documented.
12685 (fobjc-nilcheck): Documented.
12686 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12689 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12692 * common.opt (export-dynamic): New Driver option.
12693 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12695 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12697 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12699 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12700 Jan Hubicka <jh@suse.cz>
12704 * cfgexpand.c (account_used_vars_for_block): Remove.
12705 (estimated_stack_frame_size): Use referenced vars.
12706 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12707 that were referenced in the original function. Test src_fn
12708 rather than cfun. Drop redundant get_var_ann.
12709 (setup_one_parameter): Drop redundant get_var_ann.
12710 (declare_return_variable): Likewise.
12711 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12712 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12713 * ipa-inline.c (compute_inline_parameters): Do not compute
12714 disregard_inline_limits here.
12715 (compute_inlinable_for_current, pass_inlinable): New.
12716 (pass_inline_parameters): Require PROP_referenced_vars.
12717 * cgraphunit.c (cgraph_process_new_functions): Don't run
12718 compute_inline_parameters explicitly unless function is in SSA form.
12719 (cgraph_analyze_function): Set .disregard_inline_limits.
12720 * tree-sra.c (convert_callers): Compute inliner parameters
12721 only for functions already in SSA form.
12723 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12725 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12726 -mlittle-endian-data.
12728 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12730 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12731 -mno-fpu, not -fpu and -no-fpu.
12732 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12733 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12735 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12738 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12739 input reload with PLUS RTX.
12741 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12743 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12744 of InverseVar(MDMX).
12746 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12748 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12751 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12753 * config/mn10300/mn10300.opt (mno-crt0): New.
12755 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12757 * config/m68k/uclinux.opt (static-libc): New Driver option.
12759 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12761 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12763 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12765 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12766 %{muser-extend-enabled}.
12768 2011-02-16 Richard Guenther <rguenther@suse.de>
12770 PR tree-optimization/47738
12771 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12772 the TODO from tree_predictive_commoning.
12774 2011-02-15 Jeff Law <law@redhat.com>
12777 2011-01-25 Jeff Law <law@redhat.com>
12779 PR rtl-optimization/37273
12780 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12781 handle them like argument loads from stack slots. Do not double
12782 count memory for memory constants and argument loads from stack slots.
12784 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12786 PR middle-end/47725
12787 * combine.c (cant_combine_insn_p): Revert the last change.
12789 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12792 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12793 mode for vector constants. Remove code that checks for TImode.
12795 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12799 * cgraph.h (compute_inline_parameters): Return void.
12800 * ipa-inline.c (compute_inline_parameters): Adjust.
12802 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12806 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12808 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12809 * ipa-inline.c (compute_inline_parameters): Adjust.
12811 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12815 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12816 Adjust all users. Pass FN to...
12817 * tree-flow-inline.h (first_referenced_var): ... this. Add
12819 * ipa-struct-reorg.c: Adjust.
12820 * tree-dfa.c: Adjust.
12821 * tree-into-ssa.c: Adjust.
12822 * tree-sra.c: Adjust.
12823 * tree-ssa-alias.c: Adjust.
12824 * tree-ssa-live.c: Adjust.
12825 * tree-ssa.c: Adjust.
12826 * tree-ssanames.c: Adjust.
12827 * tree-tailcall.c: Adjust.
12829 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12833 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12834 Adjust all callers.
12835 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12836 * tree-flow-inline.h: Adjust.
12837 * gimple-pretty-print.c: Adjust.
12838 * tree-into-ssa.c: Adjust.
12839 * tree-ssa.c: Adjust.
12840 * cfgexpand.c: Adjust.
12842 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12844 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12845 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12846 (EXTRA_CONSTRAINT): Delete.
12847 * config/iq2000/constraints.md: New file.
12848 * config/iq2000/iq2000.md: Include it.
12849 (define_insn ""): Delete.
12850 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12851 unsupported constraint letters from patterns.
12852 (call_value, call_value_internal1): Likewise.
12853 (call_value_multiple_internal1): Likewise.
12855 2011-02-15 Nick Clifton <nickc@redhat.com>
12857 * config/mn10300/mn10300.c: Include tm-constrs.h.
12858 (struct liw_data): New data structure describing an LIW candidate
12860 (extract_bundle): Use struct liw_data. Allow small integer
12861 operands for some instructions.
12862 (check_liw_constraints): Use struct liw_data. Remove swapped
12863 parameter. Add comments describing the checks. Fix bug when
12864 assigning the source of liw1 to the source of liw2.
12865 (liw_candidate): Delete. Code moved into extract_bundle.
12866 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12868 * config/mn10300/predicates.md (liw_operand): New predicate.
12869 Allows registers and small integer constants.
12870 * config/mn10300/constraints.md (O): New constraint. Accetps
12871 integers in the range -8 to +7 inclusive.
12872 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12873 for moving a small integer into a register. Give this alternative
12875 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12876 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12877 using the J,K,L and M constraints,
12878 (liw): Remove SI mode on second operands to allow for HI and QI
12880 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12883 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12885 PR middle-end/47725
12886 * combine.c (cant_combine_insn_p): Check zero/sign extended
12889 2011-02-15 Richard Guenther <rguenther@suse.de>
12891 PR tree-optimization/47743
12892 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12893 for a non-type-compatible VN lookup bail out.
12895 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12897 * config/fr30/constraints.md: New file.
12898 * config/fr30/fr30.md: Include it.
12899 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12900 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12901 (EXTRA_CONSTRAINT): Delete.
12903 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12905 * config/frv/constraints.md: New file.
12906 * config/frv/predicates.md: Include it.
12907 * config/frv/frv.c (reg_class_from_letter): Delete.
12908 (frv_option_override): Don't initialize it.
12909 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12910 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12911 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12912 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12913 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12914 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12915 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12916 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12917 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12918 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12919 (REG_CLASS_FROM_CONSTRAINT): Delete.
12921 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12923 PR middle-end/47581
12924 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12925 if frame size is 0 in a leaf function.
12927 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12930 * config/alpha/host-osf.c: New file.
12931 * config/alpha/x-osf: New file.
12932 * config.host (alpha*-dec-osf*): Use it.
12934 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12936 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12937 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12938 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12939 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12941 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12943 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12945 * config/stormy16/constraints.md: New file.
12946 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12947 Use satisfies_constraint_Q and satisfies_constraint_R.
12948 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12950 (xstormy16_legitiamte_address_p): Declare.
12951 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12952 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12953 (EXTRA_CONSTRAINT): Delete.
12954 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12956 (xstormy16_extra_constraint_p): Delete.
12958 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12960 PR tree-optimization/46494
12961 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12962 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12963 (pass_rtl_loop_done): Add TODO_verify_flow.
12964 * fwprop.c (pass_rtl_fwprop): Likewise.
12965 * modulo-sched.c (pass_sms): Likewise.
12966 * tree-ssa-dom.c (pass_dominator): Likewise.
12967 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12968 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12969 (pass_tree_loop_done): Likewise.
12970 * tree-ssa-pre.c (execute_pre): Likewise.
12971 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12972 * tree-ssa-sink.c (pass_sink_code): Likewise.
12973 * tree-vrp.c (pass_vrp): Likewise.
12975 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12977 * config/v850/constraints.md: New file.
12978 * config/v850/v850.md: Include it.
12979 * config/v850/predicates.md (reg_or_0_operand): Use
12980 satisfies_constraint_G.
12981 (special_symbolref_operand): Use satisfies_constraint_K.
12982 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12983 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12984 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12985 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12986 (EXTRA_CONSTRAINT): Delete.
12987 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12988 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12989 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12991 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12994 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12997 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12999 * config/mcore/constraints.md: New file.
13000 * config/mcore/mcore.md: Include it.
13001 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13002 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13003 (REG_CLASS_FROM_LETTER): Delete.
13004 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13005 insn_const_int_ok_for_constraint.
13006 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13007 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13008 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13009 (EXTRA_CONSTRAINT): Delete.
13011 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13014 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13015 (IS_SIGHANDLER): Define.
13016 (sparc64_is_sighandler): New function, split off from
13017 sparc64_fallback_frame_state.
13018 (sparc_is_sighandler): New function, split off from
13019 sparc_fallback_frame_state.
13020 (sparc64_fallback_frame_state): Merge with ...
13021 (sparc_fallback_frame_state): ... this into ...
13022 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13023 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13024 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13025 stack instead of hardcoded offsets.
13027 2011-02-14 Andriy Gapon <avg@freebsd.org>
13030 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13032 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13034 * configure: Regenerate.
13036 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13039 * gcc.c (asm_options): Correct spec matching --target-help.
13041 2011-02-12 Martin Jambor <mjambor@suse.cz>
13043 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13044 to gimple call error.
13046 2011-02-12 Mike Stump <mikestump@comcast.net>
13048 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13049 comments in backslash regions.
13051 2011-02-12 Mike Stump <mikestump@comcast.net>
13052 Jakub Jelinek <jakub@redhat.com>
13053 Iain Sandoe <iains@gcc.gnu.org>
13056 * dwarf2out.c (output_cfa_loc): When required, apply the
13057 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13058 (output_loc_sequence): Likewise.
13059 (output_loc_operands_raw): Likewise.
13060 (output_loc_sequence_raw): Likewise.
13061 (output_cfa_loc): Likewise.
13062 (output_loc_list): Suppress register number adjustment when
13063 calling output_loc_sequence()
13064 (output_die): Likewise.
13066 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13068 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13070 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13071 xtensa_memory_move_cost): New functions.
13072 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13074 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13077 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13078 in the current directory.
13079 * configure: Rebuilt.
13081 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13083 * config/darwin.c (darwin_override_options): Add a hunk missed
13084 from the commit of r168571. Trim comment line lengths and
13085 correct indents of the preceding block.
13087 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13089 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13092 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13094 * common.opt (nostartfiles): New Driver option.
13096 2011-02-11 Xinliang David Li <davidxl@google.com>
13098 PR tree-optimization/47707
13099 * tree-chrec.c (convert_affine_scev): Keep type precision.
13101 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13103 PR tree-optimization/47420
13104 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13106 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13108 PR rtl-optimization/47614
13109 * rtl.h (check_for_inc_dec): Declare.
13110 * dse.c (check_for_inc_dec): Externalize...
13111 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13112 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13114 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13117 * gcc.c (main): Do not compile inputs if there were errors in
13119 * opts-common.c (read_cmdline_option): Check for wrong language
13120 after other error checks.
13122 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13124 * cgraph.c: Fix comment typos.
13125 * cgraph.h: Likewise.
13126 * cgraphunit.c: Likewise.
13127 * ipa-cp.c: Likewise.
13128 * ipa-inline.c: Likewise.
13129 * ipa-prop.c: Likewise.
13130 * ipa-pure-const.c: Likewise.
13131 * ipa-ref.c: Likewise.
13132 * ipa-reference.c: Likewise.
13134 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13137 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13139 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13142 * doc/sourcebuild.texi (Require Support): Document
13143 dg-require-ascii-locale.
13145 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13147 * doc/lto.texi (Write summary): Fix missing parentheses.
13149 2011-02-10 DJ Delorie <dj@redhat.com>
13151 * config/m32c/m32c.c (m32c_option_override): Disable
13152 -fcombine-stack-adjustments until flag value tracking and compare
13153 optimization can be rewritten.
13155 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13157 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13159 (PROCESSOR_DEFAULT64): Likewise.
13161 2011-02-10 Richard Henderson <rth@redhat.com>
13163 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13164 change from 2011-02-03.
13165 * config/rx/rx.c (flags_from_code): Likewise.
13166 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13167 is valid, n/pz otherwise.
13168 (rx_select_cc_mode): Return CCmode if Y is not zero.
13170 2011-02-10 Richard Guenther <rguenther@suse.de>
13172 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13174 2011-02-10 Richard Guenther <rguenther@suse.de>
13176 PR tree-optimization/47677
13177 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13179 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13182 * combine.c (make_compound_operation): Only change shifts into
13183 multiplication for SCALAR_INT_MODE_P.
13185 2011-02-10 Jie Zhang <jie@codesourcery.com>
13189 2011-02-05 Jie Zhang <jie@codesourcery.com>
13191 * web.c (entry_register): Don't clobber the number of the
13192 first uninitialized reference in used[].
13194 2011-02-09 Richard Guenther <rguenther@suse.de>
13196 PR tree-optimization/47664
13197 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13200 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13204 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13206 (PROCESSOR_DEFAULT64): Same.
13207 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13209 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13211 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13213 2011-02-09 Martin Jambor <mjambor@suse.cz>
13215 PR middle-end/45505
13216 * tree-sra.c (struct access): New flags grp_scalar_read and
13217 grp_scalar_write. Changed description of assignment read and write
13219 (dump_access): Dump new flags, reorder all of them.
13220 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13221 to detect multiple scalar reads.
13222 (analyze_access_subtree): Use the new scalar read write flags instead
13223 of the old flags. Adjusted comments.
13225 2011-02-08 DJ Delorie <dj@redhat.com>
13228 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13231 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13233 * config/m68k/uclinux.opt: New.
13234 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13236 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13238 * config/cris/elf.opt (sim): New Driver option.
13240 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13242 * config/xtensa/elf.opt: New.
13243 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13245 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13247 * config/vax/elf.opt: New.
13248 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13250 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13252 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13254 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13256 * config/gnu-user.opt: New.
13257 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13258 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13259 *-*-uclinux*): Use gnu-user.opt.
13261 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13263 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13264 * config/i386/gnu.h (CPP_SPEC): Likewise.
13266 2011-02-08 Ian Lance Taylor <iant@google.com>
13268 * common.opt (fcx-limited-range): Add SetByCombined flag.
13269 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13270 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13271 (fassociative-math, freciprocal-math): Likewise.
13272 (funsafe-math-optimizations): Likewise.
13273 * opth-gen.awk: Handle SetByCombined.
13274 * optc-gen.awk: Likewise.
13275 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13276 (set_unsafe_math_optimizations_flags): Likewise.
13277 * doc/options.texi (Option properties): Document SetByCombined.
13279 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13281 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13282 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13283 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13284 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13285 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13287 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13289 PR tree-optimization/46834
13290 PR tree-optimization/46994
13291 PR tree-optimization/46995
13292 * graphite-sese-to-poly.c (used_outside_reduction): New.
13293 (detect_commutative_reduction): Call used_outside_reduction.
13294 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13295 translate_scalar_reduction_to_array only when at least one
13296 loop-phi/close-phi tuple has been detected.
13298 2011-02-08 Richard Guenther <rguenther@suse.de>
13300 PR middle-end/47639
13301 * tree-vect-generic.c (expand_vector_operations_1): Update
13303 (expand_vector_operations): ... not here. Cleanup EH info
13304 and the CFG if required.
13306 2011-02-08 Richard Guenther <rguenther@suse.de>
13308 PR tree-optimization/47641
13309 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13310 require type compatibility.
13312 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13314 * gimple-low.c (lower_function_body): Don't remove the location of
13315 the return statement here.
13316 (lower_gimple_return): Do it here instead but only if the return
13317 statement is actually used twice.
13319 2011-02-08 Richard Guenther <rguenther@suse.de>
13321 PR tree-optimization/47632
13322 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13323 unused up_to_stmt parameter, return whether cfg-cleanup is
13324 necessary, remove EH info properly.
13325 (forward_propagate_into_gimple_cond): Adjust caller.
13326 (forward_propagate_into_cond): Likewise.
13327 (forward_propagate_comparison): Likewise.
13328 (tree_ssa_forward_propagate_single_use_vars): Make
13329 forward_propagate_comparison case similar to the two others.
13331 2011-02-08 Nick Clifton <nickc@redhat.com>
13333 * config/mn10300/mn10300.opt (mliw): New command line option.
13334 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13335 (liw_bundling): New automaton.
13336 (liw): New attribute.
13337 (liw_op): New attribute.
13338 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13339 (movsi_internal): Add LIW attributes.
13340 (andsi3): Likewise.
13341 (iorsi3): Likewise.
13342 (xorsi3): Likewise.
13343 (addsi3): Separate register and immediate alternatives.
13344 Add LIW attributes.
13345 (subsi3): Likewise.
13347 (aslsi3): Likewise.
13348 (lshrsi3): Likewise.
13349 (ashrsi3): Likewise.
13350 (liw): New pattern.
13351 * config/mn10300/mn10300.c (liw_op_names): New
13352 (mn10300_print_operand): Handle 'W' operand descriptor.
13353 (extract_bundle): New function.
13354 (check_liw_constraints): New function.
13355 (liw_candidate): New function.
13356 (mn10300_bundle_liw): New function.
13357 (mn10300_reorg): New function.
13358 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13359 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13360 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13361 __LIW__ or __NO_LIW__.
13362 * doc/invoke.texi: Describe the -mliw command line option.
13364 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13366 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13367 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13368 pthread_mutex_unlock): Remove.
13369 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13370 * config/pa/t-pa64: Likewise.
13371 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13372 shared libc if not linking against libpthread.
13373 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13375 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13378 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13379 on 10.6 and later to ensure that we always use the unwinder from
13380 the system. Only add -no_compact_unwind when tarteting darwin
13383 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13386 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13387 (vec_interleave_lowv2sf): Ditto.
13388 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13389 (vec_extract_oddv2sf): Ditto.
13391 2011-02-07 Mike Stump <mikestump@comcast.net>
13394 Add __ieee_divdc3 entry point.
13395 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13397 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13398 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13399 * config/darwin.c (darwin_rename_builtins): Add.
13400 * config/darwin-protos.h (darwin_rename_builtins): Add.
13402 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13405 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13408 2011-02-07 Mike Stump <mikestump@comcast.net>
13410 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13412 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13415 * config/avr/libgcc.S (exit): Move .endfunc
13417 2011-02-07 Richard Guenther <rguenther@suse.de>
13419 PR tree-optimization/47615
13420 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13421 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13422 (run_scc_vn): Initialize it.
13423 (visit_reference_op_load): Use it.
13424 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13426 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13428 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13429 DImode trapping arithmetic libfuncs.
13431 2011-02-07 Richard Guenther <rguenther@suse.de>
13433 PR tree-optimization/47621
13434 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13436 (execute_update_addresses_taken): ... here. Make it more
13437 conservative in what we accept.
13439 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13441 * config/sparc/freebsd.h (ASM_SPEC): Define.
13442 * config/sparc/vxworks.h (ASM_SPEC): Define.
13444 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13446 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13448 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13450 * doc/invoke.texi: Remove reference to compiler internals from
13451 user documentation.
13453 * reg-notes.def: Remove REG_VALUE_PROFILE.
13454 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13456 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13458 PR middle-end/47610
13459 * varasm.c (default_section_type_flags): If decl is NULL,
13460 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13462 2011-02-05 Jie Zhang <jie@codesourcery.com>
13465 * web.c (entry_register): Don't clobber the number of the
13466 first uninitialized reference in used[].
13468 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13470 PR tree-optimization/46194
13471 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13472 (build_classic_dist_vector_1): Do not represent classic distance
13473 vectors when the access functions are variating in different loops.
13475 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13477 * config/mips/iris6.opt: New.
13478 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13480 2011-02-04 Richard Henderson <rth@redhat.com>
13481 Steve Ellcey <sje@cup.hp.com>
13484 * config/ia64/predicates.md (mux1_brcst_element): New.
13485 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13486 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13487 (ia64_unpack_sign): New.
13488 (ia64_expand_unpack): Rewrite using new routines.
13489 (ia64_expand_widen_sum): Ditto.
13490 (ia64_expand_dot_prod_v8qi): Ditto.
13491 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13492 routines, add endian check.
13493 (pmpy2_even): Rename from pmpy2_r, add endian check.
13494 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13495 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13496 (vec_widen_smult_hi_v4hi): Ditto.
13497 (vec_widen_umult_lo_v4hi): Ditto.
13498 (vec_widen_umult_hi_v4hi): Ditto.
13499 (mulv2si3): Change endian checks.
13500 (sdot_prodv4hi): Rewrite with new calls.
13501 (udot_prodv4hi): New.
13502 (vec_pack_ssat_v4hi): Add endian check.
13503 (vec_pack_usat_v4hi): Ditto.
13504 (vec_pack_ssat_v2si): Ditto.
13505 (max1_even): Rename from max1_r, add endian check.
13506 (max1_odd): Rename from max1_l, add endian check.
13507 (*mux1_rev): Format change.
13508 (*mux1_mix): Ditto.
13509 (*mux1_shuf): Ditto.
13510 (*mux1_alt): Ditto.
13511 (*mux1_brcst_v8qi): Use new predicate.
13512 (vec_extract_evenv8qi): Remove endian check.
13513 (vec_extract_oddv8qi): Ditto.
13514 (vec_interleave_lowv4hi): Format change.
13515 (vec_interleave_highv4hi): Ditto.
13516 (mix2_even): Rename from mix2_r, add endian check.
13517 (mix2_odd): Rename from mux2_l, add endian check.
13518 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13519 (vec_extract_evenodd_helper): Format change.
13520 (vec_extract_evenv4hi): Remove endian check.
13521 (vec_extract_oddv4hi): Remove endian check.
13522 (vec_interleave_lowv2si): Format change.
13523 (vec_interleave_highv2si): Format change.
13524 (vec_initv2si): Remove endian check.
13525 (vecinit_v2si): Add endian check.
13526 (reduc_splus_v2sf): Add endian check.
13527 (reduc_smax_v2sf): Ditto.
13528 (reduc_smin_v2sf): Ditto.
13529 (vec_initv2sf): Remove endian check.
13530 (fpack): Add endian check.
13531 (fswap): Add endian check.
13532 (vec_interleave_highv2sf): Add endian check.
13533 (vec_interleave_lowv2sf): Add endian check.
13534 (fmix_lr): Add endian check.
13535 (vec_setv2sf): Format change.
13536 (*vec_extractv2sf_0_be): Use shift to extract operand.
13537 (*vec_extractv2sf_1_be): New.
13538 (vec_pack_trunc_v4hi): Add endian check.
13539 (vec_pack_trunc_v2si): Format change.
13541 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13543 PR inline-asm/23200
13544 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13545 do bb, locus and block comparison and disallow loads if it is not set.
13546 (stmt_is_replaceable_p): New function.
13547 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13549 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13550 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13552 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13554 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13556 * config/rs6000/xilinx.opt: New.
13557 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13559 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13561 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13563 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13565 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13566 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13567 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13568 secondary_reload_info, xtensa_secondary_reload): Remove.
13569 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13570 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13571 (xtensa_preferred_reload_class): Make static. Change return and
13572 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13573 Use CONST_DOUBLE_P predicate.
13574 (xtensa_preferred_output_reload_class): New function.
13575 (xtensa_secondary_reload): Make static.
13577 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13579 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13580 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13581 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13583 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13585 PR middle-end/31490
13586 * output.h (SECTION_RELRO): Define.
13587 (SECTION_MACH_DEP): Adjust.
13588 (get_variable_section): New prototype.
13589 * varpool.c (varpool_finalize_named_section_flags): New function.
13590 (varpool_assemble_pending_decls): Call it.
13591 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13592 * cgraphunit.c (cgraph_output_in_order): Call
13593 varpool_finalize_named_section_flags.
13594 * varasm.c (get_section): Allow section flags conflicts between
13595 relro and read-only sections if the section hasn't been declared yet.
13596 Set SECTION_OVERRIDE after diagnosing section type conflict.
13597 (get_variable_section): No longer static.
13598 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13599 readonly sections that need relocations.
13600 (decl_readonly_section_1): New function.
13601 (decl_readonly_section): Use it.
13604 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13605 Steve Ellcey <sje@cup.hp.com>
13607 PR middle-end/31490
13608 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13609 if section attribute used.
13611 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13613 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13614 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13615 (darwin_init_sections): Remove assertion.
13617 2011-02-03 Nick Clifton <nickc@redhat.com>
13619 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13621 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13622 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13623 instead of "n" and "pz".
13624 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13627 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13630 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13631 fma, expand FMA_EXPR as fma{,f,l} call.
13634 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13635 copy them into a unsigned char variable and pass address of it to
13636 lto_output_data_stream.
13639 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13640 around backend_init_target and lang_dependent_init_target calls.
13641 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13642 (verify_cgraph_node): Don't call set_cfun here. Use
13643 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13644 Set error_found for incorrectly represented calls to thunks.
13646 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13649 PR rtl-optimization/43494
13650 * rtl.h (for_each_inc_dec_fn): New type.
13651 (for_each_inc_dec): Declare.
13652 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13653 (for_each_inc_dec_find_inc_dec): New fn.
13654 (for_each_inc_dec_find_mem): New fn.
13655 (for_each_inc_dec): New fn.
13656 * dse.c (struct insn_size): Remove.
13657 (replace_inc_dec, replace_inc_dec_mem): Remove.
13658 (emit_inc_dec_insn_before): New fn.
13659 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13660 (canon_address): Pass mem modes to cselib_lookup.
13661 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13662 (cselib_lookup_from_insn): Likewise.
13663 (cselib_subst_to_values): Likewise.
13664 * cselib.c (find_slot_memmode): New var.
13665 (cselib_find_slot): New fn. Use it instead of
13666 htab_find_slot_with_hash everywhere.
13667 (entry_and_rtx_equal_p): Use find_slot_memmode.
13668 (autoinc_split): New fn.
13669 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13670 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13671 Deal with autoinc. Special-case recursion into MEMs.
13672 (cselib_hash_rtx): Likewise.
13673 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13674 address and MEM modes.
13675 (cselib_subst_to_values): Add memmode, pass it on.
13677 (cselib_lookup): Add memmode argument, pass it on.
13678 (cselib_lookup_from_insn): Add memmode.
13679 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13680 (struct cselib_record_autoinc_data): New.
13681 (cselib_record_autoinc_cb): New fn.
13682 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13683 mode to cselib_lookup. Reset autoinced REGs here instead of...
13684 (cselib_process_insn): ... here.
13685 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13687 (add_uses): Likewise, also to cselib_subst_to_values.
13688 (add_stores): Likewise.
13689 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13690 cselib_subst_to_values.
13691 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13692 * gcse.c (do_local_cprop): Adjusted.
13693 * postreload.c (reload_cse_simplify_set): Adjusted.
13694 (reload_cse_simplify_operands): Adjusted.
13695 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13697 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13699 PR tree-optimization/45122
13700 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13701 unsafe assumptions when there's more than one loop exit.
13703 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13706 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13707 Document using vector double with the load/store builtins, and
13708 that the load/store builtins always use Altivec instructions.
13710 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13711 to use altivec memory instructions, even on VSX.
13712 (vector_altivec_store_<mode>): Ditto.
13714 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13717 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13718 V2DF, V2DI support to load/store overloaded builtins.
13720 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13721 altivec load/store builtins for V2DF/V2DI types.
13723 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13724 set avoid indexed addresses on power6 if -maltivec.
13725 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13726 vector_altivec_load/vector_altivec_store builtins.
13727 (altivec_expand_st_builtin): Ditto.
13728 (altivec_expand_builtin): Add VSX memory builtins.
13729 (rs6000_init_builtins): Add V2DI types to internal types.
13730 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13731 load/store builtins.
13732 (rs6000_address_for_altivec): Insure memory address is appropriate
13735 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13736 vec_vsx_ld and vec_vsx_st.
13737 (vsx_store_<mode>): Ditto.
13739 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13740 variables to hold long long types for VSX vector memory builtins.
13741 (RS6000_BTI_unsigned_long_long): Ditto.
13742 (long_long_integer_type_internal_node): Ditti.
13743 (long_long_unsigned_type_internal_node): Ditti.
13745 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13746 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13747 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13749 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13751 (vec_vsx_st): Ditto.
13753 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13755 * config/pa/pa-hpux10.opt: New.
13756 * config/hpux11.opt (pthread): New Driver option.
13757 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13758 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13760 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13762 * config/ia64/vms.opt: New.
13763 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13765 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13768 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13769 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13770 generator functions.
13771 (vsx_floatuns<VSi><mode>2): Ditto.
13772 (vsx_fix_trunc<mode><VSi>2): Ditto.
13773 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13775 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13777 * config/i386/djgpp.opt (posix): New Driver option.
13779 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13781 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13782 Move to the unsupported targets list.
13784 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13786 PR rtl-optimization/47525
13787 * df-scan.c: Update copyright years.
13788 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13789 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13791 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13793 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13794 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13795 (ASM_OUTPUT_ASCII): Remove.
13796 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13798 2011-02-02 Jeff Law <law@redhat.com>
13800 PR middle-end/47543
13801 * reload.c (find_reloads_address): Handle reg+d address where both
13802 components are invalid by reloading the entire address.
13804 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13805 Richard Guenther <rguenther@suse.de>
13807 PR tree-optimization/40979
13809 * passes.c (init_optimization_passes): After LIM call copy_prop
13810 and DCE to clean up.
13811 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13813 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13815 PR tree-optimization/47576
13816 PR tree-optimization/47555
13817 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13818 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13819 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13820 * tree-scalar-evolution.c (follow_ssa_edge): Use
13821 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13823 2011-02-02 Richard Guenther <rguenther@suse.de>
13825 PR tree-optimization/47566
13826 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13828 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13832 * tree-inline.c (declare_return_variable): Remove unused caller
13837 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13838 * cfgexpand.c (account_used_vars_for_block): Use them.
13839 * tree-nrv.c (tree_nrv): Likewise.
13840 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13841 (dump_scope_block): Likewise.
13842 (remove_unused_locals): Likewise.
13846 * tree-inline.c (declare_return_variable): Add result decl to
13847 local decls only once.
13848 * gimple-low.c (record_vars_into): Mark newly-created variables
13851 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13857 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13859 (no_real_insns_p, schedule_block, set_priorities): Drop special
13860 treatment of boundary debug insns.
13861 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13862 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13863 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13864 (BOUNDARY_DEBUG_INSN_P): Likewise.
13865 (SCHEDULE_DEBUG_INSN_P): Likewise.
13866 * sched-rgn.c (init_ready_list): Drop special treatment of
13867 boundary debug insns.
13868 * final.c (rest_of_clean_state): Clear notes' BB.
13870 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13872 * config/openbsd.opt (assert=): New Driver option.
13874 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13876 * config/i386/nto.opt: New.
13877 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13879 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13881 * config/i386/netware.opt: New.
13882 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13884 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13886 * config/interix.opt (posix): New Driver option.
13888 2011-02-01 DJ Delorie <dj@redhat.com>
13890 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13892 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13895 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13897 PR tree-optimization/47561
13898 * toplev.c (process_options): Print the Graphite flags. Add
13899 flag_loop_flatten to the list of options requiring Graphite.
13901 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13903 * config/i386/cygming.opt (posix): New Driver option.
13905 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13907 * config/arm/vxworks.opt: New.
13908 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13910 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13912 * config/alpha/elf.opt: New.
13913 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13914 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13916 2011-02-01 Richard Guenther <rguenther@suse.de>
13918 PR tree-optimization/47559
13919 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13920 store-motion on references that can throw.
13922 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13924 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13925 * tree-pass.h (TDF_CSELIB): New macro.
13926 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13927 cselib_lookup): Check for it rather than for TDF_DETAILS.
13929 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13932 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13933 is HOST_BIT_BUCKET.
13935 * opts.c (finish_options): Don't add x_aux_base_name if it is
13938 2011-02-01 Richard Guenther <rguenther@suse.de>
13940 PR tree-optimization/47555
13942 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13944 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13946 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13949 * config/lm32/t-lm32: Add multilib for all CPU options.
13951 2011-02-01 Richard Guenther <rguenther@suse.de>
13953 PR tree-optimization/47541
13954 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13955 sure to have a field at offset zero.
13957 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13959 * config/arc/arc.opt (EB, EL): New Driver options.
13961 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13963 * config/alpha/osf5.opt: New.
13964 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13966 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13968 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13970 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13972 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13973 -floop-interchange.
13974 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13975 is an alias of -floop-interchange and that it requires the
13976 Graphite infrastructure.
13977 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13978 flag_loop_interchange based on the value of flag_tree_loop_linear.
13980 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13981 Richard Guenther <rguenther@suse.de>
13983 PR tree-optimization/47538
13984 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13985 type instead of r1type, except for comparisons. For right
13986 shifts and comparisons punt if there are mismatches in
13987 sizetype vs. non-sizetype types.
13989 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13991 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13994 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13996 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13998 * configure: Regenerate.
14000 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14002 * configure.ac (gcc_cv_ld_static_option): Define.
14003 (gcc_cv_ld_dynamic_option): Define.
14004 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14006 (HAVE_LD_STATIC_DYNAMIC): Update message.
14007 (LD_STATIC_OPTION): Define.
14008 (LD_DYNAMIC_OPTION): Define.
14009 * configure: Regenerate.
14010 * config.in: Regenerate.
14011 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14012 HAVE_LD_STATIC_DYNAMIC]: Use them.
14014 2011-01-31 Nick Clifton <nickc@redhat.com>
14016 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14017 registers inside interrupt handlers if the handler is not a leaf
14020 2011-01-31 Nick Clifton <nickc@redhat.com>
14022 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14023 reg_renumber returning an INVALID_REGNUM.
14025 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14028 * doc/install.texi: Document host options discarded when cross
14029 configuring target libraries.
14031 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14034 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14037 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14039 (no_real_insns_p, schedule_block, set_priorities): Drop special
14040 treatment of boundary debug insns.
14041 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14042 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14043 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14044 (BOUNDARY_DEBUG_INSN_P): Likewise.
14045 (SCHEDULE_DEBUG_INSN_P): Likewise.
14046 * sched-rgn.c (init_ready_list): Drop special treatment of
14047 boundary debug insns.
14048 * final.c (rest_of_clean-state): Clear notes' BB.
14050 2011-01-31 Alan Modra <amodra@gmail.com>
14052 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14053 toc relative expressions as we do in print_operand_address.
14055 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14057 * doc/extend.texi: Follow spelling conventions.
14058 * doc/invoke.texi: Fix a typo.
14060 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14062 * config/hpux11.opt: New.
14063 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14064 ia64*-*-hpux*): Use hpux11.opt.
14066 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14068 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14071 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14073 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14076 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14078 * doc/install.texi (Binaries): Remove outdated reference for
14079 Motorola 68HC11/68HC12 downloads.
14081 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14083 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14086 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14089 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14092 2011-01-28 Ahmad Sharif <asharif@google.com>
14094 * value-prof.c (check_counter): Corrected error message.
14096 2011-01-29 Jie Zhang <jie@codesourcery.com>
14098 * config/arm/arm.c (arm_legitimize_reload_address): New.
14099 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14100 arm_legitimize_reload_address.
14101 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14103 2011-01-28 Ian Lance Taylor <iant@google.com>
14105 * godump.c (go_define): Ignore macros whose definitions include
14106 two adjacent operands.
14108 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14111 * varasm.c (force_const_mem): Store copy of x in desc->constant
14112 instead of x itself.
14113 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14114 itself into REG_EQUAL note.
14116 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14118 * config/freebsd.opt (posix, rdynamic): New Driver options.
14120 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14122 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14123 -Bstatic/-Bdynamic.
14124 * configure: Regenerate.
14126 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14128 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14129 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14131 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14133 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14134 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14135 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14136 (s390_preferred_reload_class): Make static. Change return and
14137 'rclass' argument type to reg_class_t.
14139 2011-01-27 Jan Hubicka <jh@suse.cz>
14141 PR middle-end/46949
14142 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14143 (process_function_and_variable_attributes): Check defined weakrefs.
14145 2011-01-27 Martin Jambor <mjambor@suse.cz>
14147 PR tree-optimization/47228
14148 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14149 build_ref_for_offset.
14151 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14153 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14155 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14157 PR rtl-optimization/46856
14158 * postreload.c (reload_combine_recognize_const_pattern): Do not
14159 separate cc0 setter and user on cc0 targets.
14161 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14164 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14165 passed a VOID_TYPE expression, immediately emit an error and
14166 return error_mark_node.
14168 2011-01-26 Jeff Law <law@redhat.com>
14170 PR rtl-optimization/47464
14171 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14172 rather than may_trap_p as needed.
14174 2011-01-26 DJ Delorie <dj@redhat.com>
14176 PR rtl-optimization/46878
14177 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14178 setter/user dependency as well.
14180 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14182 PR rtl-optimization/44469
14183 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14184 after removing trivially dead basic blocks.
14186 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14188 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14189 * config/frv/frv.h (LINK_SPEC): Likewise.
14190 * config/i386/netware.h (LINK_SPEC): Likewise.
14191 * config/m68k/linux.h (ASM_SPEC): Likewise.
14192 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14193 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14194 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14195 * config/sparc/linux.h (ASM_SPEC): Likewise.
14196 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14197 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14199 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14201 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14202 * config/frv/frv.h (ASM_SPEC): Likewise.
14203 * config/m68k/linux.h (ASM_SPEC): Likewise.
14204 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14205 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14206 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14207 * config/sparc/linux.h (ASM_SPEC): Likewise.
14208 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14209 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14211 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14213 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14214 * config/frv/frv.h (LINK_SPEC): Likewise.
14215 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14217 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14219 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14220 * config/frv/frv.h (ASM_SPEC): Likewise.
14221 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14222 * config/m68k/linux.h (ASM_SPEC): Likewise.
14223 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14224 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14225 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14226 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14227 * config/sparc/linux.h (ASM_SPEC): Likewise.
14228 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14229 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14230 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14232 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14235 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14237 (vec_extract_evenodd_help): Ditto.
14238 (vec_extract_evenv4hi): Ditto.
14239 (vec_extract_oddv4hi): Ditto.
14240 (vec_interleave_lowv2si): Ditto.
14241 (vec_interleave_highv2si): Ditto.
14242 (vec_extract_evenv2si): Ditto.
14243 (vec_extract_oddv2si: Ditto.
14244 (vec_pack_trunc_v2si): Ditto.
14246 2011-01-22 Jan Hubicka <jh@suse.cz>
14249 * cgraph.h (cgraph_local_info): New field can_change_signature.
14250 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14251 signature can change.
14252 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14254 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14255 (cgraph_function_versioning): We can not change signature of functions
14256 that don't allow that.
14257 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14258 (lto_input_node): Likewise.
14259 * ipa-inline.c (compute_inline_parameters): Compute
14260 local.can_change_signature.
14261 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14262 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14263 functions that can not change signature.
14264 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14265 init_cumulative_args): Do not use local calling conventions
14266 for functions that can not change signature.
14268 2011-01-22 Jan Hubicka <jh@suse.cz>
14270 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14272 2011-01-26 Richard Guenther <rguenther@suse.de>
14274 PR tree-optimization/47190
14275 * cgraphunit.c (process_common_attributes): New function.
14276 (process_function_and_variable_attributes): Use it.
14278 2011-01-26 Richard Guenther <rguenther@suse.de>
14281 * cgraphbuild.c (record_eh_tables): Record reference to personality
14284 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14287 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14288 non-debug insns from moving up.
14290 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14293 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14294 t-dlldir{,-x} fragment for build and add it to tmake_file.
14295 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14296 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14297 * config/i386/t-dlldir: New file.
14298 (SHLIB_DLLDIR): Define.
14299 * config/i386/t-dlldir-x: New file.
14300 (SHLIB_DLLDIR): Define.
14301 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14302 (SHLIB_INSTALL): Use it.
14304 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14307 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14308 lower bound of the allowed Thumb-2 coprocessor load/store
14309 index range to -256. Add explaining comment.
14311 2011-01-25 Ian Lance Taylor <iant@google.com>
14313 * godump.c (go_define): Improve lexing of macro expansion to only
14314 accept expressions which match Go spec.
14316 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14319 * tree.c (handle_dll_attribute): Handle it.
14320 * doc/extend.texi (@item dllexport): Mention it.
14321 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14323 2011-01-25 Ian Lance Taylor <iant@google.com>
14325 PR tree-optimization/26854
14326 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14327 (decl_jump_unsafe): Move higher in file, with no other change.
14328 (bind): Set has_jump_unsafe_decl if appropriate.
14329 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14330 (check_earlier_gotos): Likewise.
14331 (c_check_switch_jump_warnings): Likewise.
14333 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14335 * doc/invoke.texi (Warning Options): Add missing hyphen.
14336 (-fprofile-dir): Minor grammatical fixes.
14337 (-fbranch-probabilities): Likewise.
14339 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14343 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14345 (no_real_insns_p, schedule_block, set_priorities): Drop special
14346 treatment of boundary debug insns.
14347 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14348 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14349 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14350 (BOUNDARY_DEBUG_INSN_P): Likewise.
14351 (SCHEDULE_DEBUG_INSN_P): Likewise.
14352 * sched-rgn.c (init_ready_list): Drop special treatment of
14353 boundary debug insns.
14354 * final.c (rest_of_clean-state): Clear notes' BB.
14356 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14358 * Makefile.in (LAMBDA_H): Removed.
14359 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14360 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14361 lambda-trans.o, and tree-loop-linear.o.
14362 (lto-symtab.o): Remove dependence on LAMBDA_H.
14363 (tree-loop-linear.o): Remove rule.
14364 (lambda-mat.o): Same.
14365 (lambda-trans.o): Same.
14366 (lambda-code.o): Same.
14367 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14368 (tree-vect-slp.o): Same.
14369 * hwint.h (gcd): Moved here.
14370 (least_common_multiple): Same.
14371 * lambda-code.c: Removed.
14372 * lambda-mat.c: Removed.
14373 * lambda-trans.c: Removed.
14374 * lambda.h: Removed.
14375 * tree-loop-linear.c: Removed.
14376 * lto-symtab.c: Do not include lambda.h.
14377 * omega.c (gcd): Removed.
14378 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14379 * tree-data-ref.c (print_lambda_vector): Moved here.
14380 (lambda_vector_copy): Same.
14381 (lambda_matrix_copy): Same.
14382 (lambda_matrix_id): Same.
14383 (lambda_vector_first_nz): Same.
14384 (lambda_matrix_row_add): Same.
14385 (lambda_matrix_row_exchange): Same.
14386 (lambda_vector_mult_const): Same.
14387 (lambda_vector_negate): Same.
14388 (lambda_matrix_row_negate): Same.
14389 (lambda_vector_equal): Same.
14390 (lambda_matrix_right_hermite): Same.
14391 * tree-data-ref.h: Do not include lambda.h.
14392 (lambda_vector): Moved here.
14393 (lambda_matrix): Same.
14394 (dependence_level): Same.
14395 (lambda_transform_legal_p): Removed declaration.
14396 (lambda_collect_parameters): Same.
14397 (lambda_compute_access_matrices): Same.
14398 (lambda_vector_gcd): Same.
14399 (lambda_vector_new): Same.
14400 (lambda_vector_clear): Same.
14401 (lambda_vector_lexico_pos): Same.
14402 (lambda_vector_zerop): Same.
14403 (lambda_matrix_new): Same.
14404 * tree-flow.h (least_common_multiple): Removed declaration.
14405 * tree-parloops.c (lambda_trans_matrix): Moved here.
14406 (LTM_MATRIX): Same.
14407 (LTM_ROWSIZE): Same.
14408 (LTM_COLSIZE): Same.
14409 (LTM_DENOMINATOR): Same.
14410 (lambda_trans_matrix_new): Same.
14411 (lambda_matrix_vector_mult): Same.
14412 (lambda_transform_legal_p): Same.
14413 * tree-pass.h (pass_linear_transform): Removed declaration.
14414 * tree-ssa-loop.c (tree_linear_transform): Removed.
14415 (gate_tree_linear_transform): Removed.
14416 (pass_linear_transform): Removed.
14417 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14418 flag_loop_interchange.
14420 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14422 PR tree-optimization/47265
14423 PR tree-optimization/47443
14424 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14425 if name still has some uses.
14427 2011-01-25 Martin Jambor <mjambor@suse.cz>
14429 PR tree-optimization/47382
14430 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14431 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14433 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14435 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14436 sjlj_except_unwind_info.
14438 2011-01-25 Richard Guenther <rguenther@suse.de>
14440 PR tree-optimization/47426
14441 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14442 visible functions results escape.
14444 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14447 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14448 (arm_get_frame_offsets): Use it.
14450 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14451 Jakub Jelinek <jakub@redhat.com>
14453 PR tree-optimization/47271
14454 * tree-if-conv.c (bb_postdominates_preds): New.
14455 (if_convertible_bb_p): Call bb_postdominates_preds.
14456 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14457 (predicate_scalar_phi): Call bb_postdominates_preds.
14459 2011-01-25 Nick Clifton <nickc@redhat.com>
14461 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14462 * config/rx/rx.c (rx_function_value): Likewise.
14463 (rx_promote_function_mode): Likewise.
14464 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14465 in order to make it legitimate.
14466 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14467 make sure that the first operand is the same as the result register.
14468 (addsi3_unspec): Delete.
14469 (subdi3): Do not accept immediate operands.
14470 (subdi3_internal): Likewise.
14472 2011-01-25 Jeff Law <law@redhat.com>
14474 PR rtl-optimization/37273
14475 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14476 handle them like argument loads from stack slots. Do not double
14477 count memory for memory constants and argument loads from stack slots.
14479 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14481 PR tree-optimization/47427
14482 PR tree-optimization/47428
14483 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14484 coalesce if the new root var would be TREE_READONLY.
14486 2011-01-25 Richard Guenther <rguenther@suse.de>
14488 PR middle-end/47414
14489 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14490 correct type for TBAA.
14492 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14494 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14495 (close_phi_written_to_memory): Call for_each_index with
14496 dr_indices_valid_in_loop.
14498 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14500 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14501 when it is initialized.
14503 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14505 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14506 call to graphite_find_data_references_in_stmt.
14507 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14508 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14509 call to graphite_find_data_references_in_stmt.
14510 (analyze_drs_in_stmts): Same.
14511 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14512 in which the scalar analysis of indices is performed.
14513 (create_data_ref): Same. Update call to dr_analyze_indices.
14514 (find_data_references_in_stmt): Update call to create_data_ref.
14515 (graphite_find_data_references_in_stmt): Same.
14516 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14518 (create_data_ref): Same.
14519 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14520 call to create_data_ref.
14522 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14524 * graphite-sese-to-poly.c (build_poly_scop): Move
14525 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14527 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14529 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14530 VAR_DECL, PARM_DECL, and RESULT_DECL.
14532 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14534 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14535 in a reduction PBB.
14536 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14537 that have already been marked as PBB_IS_REDUCTION.
14539 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14541 * graphite-scop-detection.c (same_close_phi_node): New.
14542 (remove_duplicate_close_phi): New.
14543 (make_close_phi_nodes_unique): New.
14544 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14546 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14548 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14549 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14550 of both data references to be the same.
14552 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14554 * graphite-dependences.c (build_lexicographical_constraint): Remove
14555 the gdim parameter.
14556 (build_lexicographical_constraint): Adjust call to
14557 ppl_powerset_is_empty.
14558 (dependence_polyhedron): Same.
14559 (graphite_legal_transform_dr): Same.
14560 (graphite_carried_dependence_level_k): Same.
14561 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14563 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14565 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14567 * graphite-sese-to-poly.c
14568 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14569 (close_phi_written_to_memory): New.
14570 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14573 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14575 * doc/install.texi: Update the expected version number of PPL to 0.11.
14576 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14577 #if PPL_VERSION_MINOR < 11.
14579 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14581 * graphite-dependences.c: Include graphite-cloog-util.h.
14582 (new_poly_ddr): Inlined into dependence_polyhedron.
14583 (free_poly_ddr): Moved close by new_poly_ddr.
14584 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14585 Early return NULL when ppl_powerset_is_empty returns true.
14586 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14587 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14588 (graphite_legal_transform_dr): Call new_poly_ddr.
14589 (graphite_carried_dependence_level_k): Same.
14590 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14591 (dot_transformed_deps_stmt_1): Removed.
14592 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14593 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14594 (dot_deps_1): Call dot_deps_2.
14595 * Makefile.in (graphite-dependences.o): Add missing dependence on
14596 graphite-cloog-util.h.
14598 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14600 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14601 (build_lexicographical_constraint): Same.
14602 (dependence_polyhedron_1): Same.
14603 (graphite_legal_transform_dr): Same.
14604 (graphite_carried_dependence_level_k): Same.
14605 * graphite-ppl.c (ppl_powerset_is_empty): New.
14606 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14607 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14609 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14611 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14612 the "a followed by b" relation and document it.
14614 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14616 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14617 iteration when the bag of constraints is empty.
14619 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14621 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14623 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14625 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14626 nest and two loop depths as parameters.
14627 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14628 lst_perfect_nestify.
14630 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14632 * graphite-dependences.c (print_pddr): Call
14633 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14635 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14637 * graphite-ppl.c (debug_gmp_value): New.
14638 * graphite-ppl.h (debug_gmp_value): Declared.
14640 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14642 * doc/install.texi: Document availability of cloog-0.16.
14644 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14646 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14647 invalid postdominance info.
14649 2011-01-24 Jan Hubicka <jh@suse.cz>
14652 * doc/extend.texi (weak pragma): Drop claim that it must
14653 appear before definition.
14654 * varasm.c (merge_weak, declare_weak): Only sanity check
14655 that DECL is not output at a time it is declared weak.
14657 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14659 * machmode.def: Fixed comments.
14661 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14663 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14665 2011-01-24 Paul Koning <ni1d@arrl.net>
14667 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14670 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14673 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14674 (block_info): Add scanned and prev.
14675 (move_or_delete_vzeroupper_2): Return if the basic block
14676 has been scanned and the upper 128bit state is unchanged
14677 from the last scan.
14678 (move_or_delete_vzeroupper_1): Return true if the exit
14680 (move_or_delete_vzeroupper): Visit basic blocks using the
14681 work-list based algorithm based on vt_find_locations in
14684 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14686 2011-01-24 Nick Clifton <nickc@redhat.com>
14688 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14689 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14690 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14691 then define __v850e1__.
14692 * doc/invoke.texi: Document -mv850es.
14694 2011-01-24 Richard Henderson <rth@redhat.com>
14696 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14697 compound unordered comparisons.
14698 * config/rx/rx.c (rx_split_fp_compare): Remove.
14699 * config/rx/rx-protos.h: Update.
14700 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14701 (cbranchsf4): Don't call rx_split_fp_compare.
14702 (*cbranchsf4): Use rx_split_cbranch.
14703 (*cmpsf): Don't accept "i" constraint.
14704 (*conditional_branch): Only valid after reload.
14705 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14707 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14710 * config/rs6000/altivec.md (vector constant splitters): Add
14711 support for creating vector single precision constants if -mvsx is
14712 used and we would create the constant using Altivec primitives.
14714 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14715 Richard Sandiford <rdsandiford@googlemail.com>
14717 PR rtl-optimization/47166
14718 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14719 mechanism for PRE_MODIFY and POST_MODIFY.
14720 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14723 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14725 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14727 2011-01-22 Jan Hubicka <jh@suse.cz>
14730 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14732 2011-01-22 Jan Hubicka <jh@suse.cz>
14734 PR tree-optimization/43884
14736 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14737 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14739 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14741 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14742 * config/s390/s390.c (s390_register_move_cost,
14743 s390_memory_move_cost): New.
14744 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14746 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14748 PR middle-end/47401
14749 * except.c (sjlj_assign_call_site_values): Move setting the
14750 crtl->uses_eh_lsda flag to ...
14751 (sjlj_mark_call_sites): ... here.
14752 (sjlj_emit_function_enter): Support NULL dispatch label.
14753 (sjlj_build_landing_pads): In a function with no landing pads
14754 that still has must-not-throw regions, generate code to register
14755 a personality function with empty LSDA.
14757 2011-01-21 Richard Henderson <rth@redhat.com>
14759 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14761 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14763 * compare-elim.c: New file.
14764 * Makefile.in (OBJS-common): Add it.
14765 (compare-elim.o): New.
14766 * common.opt (fcompare-elim): New.
14767 * opts.c (default_options_table): Add OPT_fcompare_elim.
14768 * tree-pass.h (pass_compare_elim_after_reload): New.
14769 * passes.c (init_optimization_passes): Add it.
14770 * recog.h: Protect against re-inclusion.
14771 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14772 * doc/invoke.texi (-fcompare-elim): Document it.
14773 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14774 * doc/tm.texi: Rebuild.
14776 2011-01-22 Nick Clifton <nickc@redhat.com>
14778 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14779 rx_split_fp_compare.
14781 2011-01-22 Nick Clifton <nickc@redhat.com>
14783 * config/rx/rx.md (UNSPEC_CONST): New.
14784 (deallocate_and_return): Wrap the amount popped off the stack in
14785 an UNSPEC_CONST in order to stop it being rejected by
14786 -mmax-constant-size.
14787 (pop_and_return): Add a "(return)" rtx.
14788 (call): Drop the immediate operand.
14789 (call_internal): Likewise.
14790 (call_value): Likewise.
14791 (call_value_internal): Likewise.
14792 (sibcall_internal): Likewise.
14793 (sibcall_value_internal): Likewise.
14794 (sibcall): Likewise. Generate an explicit call using
14796 (sibcall_value): Likewise.
14797 (mov<>): FAIL if a constant operand is not legitimate.
14798 (addsi3_unpsec): New pattern.
14800 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14801 (ok_for_max_constant): New function.
14802 (gen_safe_add): New function.
14803 (rx_expand_prologue): Use gen_safe_add.
14804 (rx_expand_epilogue): Likewise.
14805 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14808 2011-01-21 Jeff Law <law@redhat.com>
14810 PR tree-optimization/47053
14811 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14812 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14813 statements are deleted.
14814 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14815 is nonempty, then purge dead edges and cleanup the CFG.
14817 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14820 Temporarily revert:
14821 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14823 * tree-dfa.c (create_var_ann): Mark variable as used.
14825 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14827 PR middle-end/45566
14828 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14829 notes from other section in hot/cold partitioning even if
14830 last_action is -3. Increment call_site_base.
14832 PR rtl-optimization/47366
14833 * fwprop.c (forward_propagate_into): Return bool. If
14834 any changes are made, -fnon-call-exceptions is used and
14835 REG_EH_REGION note is present, call purge_dead_edges
14836 and return true if it purged anything.
14837 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14838 any EH edges were purged.
14840 2011-01-21 Jeff Law <law@redhat.com>
14842 PR rtl-optimization/41619
14843 * caller-save.c (setup_save_areas): Break out code to determine
14844 which hard regs are live across calls by examining the reload chains
14845 so that it is always used.
14846 Eliminate code which checked REG_N_CALLS_CROSSED.
14848 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14850 PR tree-optimization/47355
14851 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14852 NOP has non-debug uses beyond PHIs in new_bb.
14854 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14857 * cfgexpand.c (account_used_vars_for_block): Only account vars
14858 that are annotated as used.
14859 (estimated_stack_frame_size): Don't set TREE_USED.
14860 * tree-dfa.c (create_var_ann): Mark variable as used.
14862 2011-01-21 Richard Guenther <rguenther@suse.de>
14864 PR middle-end/47395
14865 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14867 2011-01-21 Richard Guenther <rguenther@suse.de>
14869 PR tree-optimization/47365
14870 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14871 (vn_reference_lookup_pieces): Adjust.
14872 (vn_reference_lookup): Likewise.
14873 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14874 (vn_reference_lookup_3): Only look through kills if in
14875 VN_WALKREWRITE mode.
14876 (vn_reference_lookup_pieces): Adjust.
14877 (vn_reference_lookup): Likewise.
14878 (visit_reference_op_load): Likewise.
14879 (visit_reference_op_store): Likewise.
14880 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14881 (compute_avail): Likewise.
14882 (eliminate): Likewise.
14884 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14886 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14887 DECL_IGNORED_P non-reg vars if they are used.
14889 PR tree-optimization/47391
14890 * varpool.c (const_value_known_p): Return false if
14893 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14896 * config/i386/i386.c (ix86_local_alignment): Handle
14897 case for va_list_type_node is nil.
14898 (ix86_canonical_va_list_type): Likewise.
14900 2011-01-21 Alan Modra <amodra@gmail.com>
14902 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14903 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14905 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14907 * config/arm/arm.md (define_attr type): Rename f_load
14908 and f_store to f_fpa_load and f_fpa_store. Update.
14909 (write_conflict): Deal with rename fallout.
14910 (*push_fp_multi): Likewise.
14911 * config/arm/fpa.md (f_load): Use f_fpa_load.
14912 (f_store): Use f_fpa_store.
14913 (*movsf_fpa): Likewise.
14914 (*movdf_fpa): Likewise.
14915 (*movxf_fpa): Likewise.
14916 (*thumb2_movsf_fpa): Likewise.
14917 (*thumb2_movdf_fpa): Likewise.
14918 (*thumb2_movxf_fpa): Likewise.
14919 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14920 f_loadd and f_stored.
14921 (*thumb2_movdi_vfp): Likewise.
14922 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14923 (*thumb2_movsi_vfp): Likewise.
14924 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14925 Use f_loads instead of f_load.
14926 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14928 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14930 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14931 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14932 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14933 (xtensa_mode_dependent_address_p): New function.
14934 (constantpool_address_p): Make static. Change return type to bool.
14935 Change argument type to const_rtx. Use CONST_INT_P predicate.
14937 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14940 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14942 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14945 * cfgexpand.c (expand_debug_expr): Instead of generating
14946 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14949 2011-01-20 Richard Guenther <rguenther@suse.de>
14951 PR middle-end/47370
14952 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14953 the pointer operand of MEM_REFs.
14955 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14957 PR tree-optimization/46130
14958 * ipa-split.c (consider_split): If return_bb contains non-virtual
14959 PHIs other than for retval or if split_function would not adjust it,
14962 2011-01-20 Richard Guenther <rguenther@suse.de>
14964 PR tree-optimization/47167
14965 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14966 Revert previous change, only avoid enumeral type changes.
14968 2011-01-19 Mike Stump <mikestump@comcast.net>
14970 * doc/tm.texi.in (BRANCH_COST): Englishify.
14971 * doc/tm.texi (BRANCH_COST): Likewise.
14973 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14976 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14977 (gen_scheduled_generic_parms_dies): New functions.
14978 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14979 generation for the end of CU compilation.
14980 (dwarf2out_finish): Generate template parameters DIEs here.
14982 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14985 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14986 debug bind stmt on merge edges.
14988 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14992 * function.c (instantiate_expr): Instantiate incoming rtl of
14993 implicit arguments, and recurse on VALUE_EXPRs.
14994 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14995 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14997 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14999 * c-parser.c (c_parser_for_statement): Initialize
15000 collection_expression.
15002 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15004 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15006 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15008 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15009 (LINK_SHLIB_SPEC): Don't use %(link_path).
15010 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15012 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15014 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15015 (NO_SHARED_LIB_SUPPORT): Remove.
15016 (LINK_SHLIB_SPEC): Remove one conditional definition.
15018 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15020 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15022 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15023 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15024 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15025 %{call_shared} and conditionals on these options not being passed.
15026 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15029 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15031 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15034 * ipa-split.c: Spelling fixes.
15036 2011-01-19 Richard Henderson <rth@redhat.com>
15038 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15039 (*mulsi3): Likewise.
15041 * longlong.h [__mn10300__] (count_leading_zeros): New.
15042 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15043 [__mn10300__] (add_ssaaaa, subddmmss): New.
15044 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15045 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15047 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15049 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15051 2011-01-19 Richard Henderson <rth@redhat.com>
15053 * config/mn10300/mn10300.md (addsi3_flags): New.
15054 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15055 (subsi3_flags, subc_internal, subdi3): New.
15056 (subdi3_internal, *subdi3_degenerate): New.
15057 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15059 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15060 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15061 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15062 * config/mn10300/mn10300-protos.h: Update.
15063 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15064 (return_ret): Likewise. Rename from return_internal_regs.
15065 (return_internal): Remove.
15067 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15068 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15069 (mn10300_legitimate_constant_p): Likewise.
15070 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15071 (mn10300_frame_size): New.
15072 (mn10300_expand_prologue): Use it.
15073 (mn10300_expand_epilogue): Likewise.
15074 (mn10300_initial_offset): Likewise.
15075 * config/mn10300/mn10300-protos.h: Update.
15076 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15077 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15078 (prologue, epilogue, return_internal): Tidy output code.
15079 (mn10300_store_multiple_operation, return): Likewise.
15080 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15081 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15082 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15083 (load_pic, am33_load_pic): New.
15084 (mn10300_load_pic0, mn10300_load_pic1): New.
15086 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15087 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15088 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15089 (cc_flags_for_mode, cc_flags_for_code): New.
15090 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15091 overflow flag is not valid. Validate that the flags we need
15092 for the comparison are valid.
15093 (mn10300_output_cmp): Remove.
15094 (mn10300_output_add): New.
15095 (mn10300_select_cc_mode): Use cc_flags_for_code.
15096 (mn10300_split_cbranch): New.
15097 (mn10300_match_ccmode): New.
15098 (mn10300_split_and_operand_count): New.
15099 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15101 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15102 (addsi3): ... here. Use mn10300_output_add.
15103 (*addsi3_flags): New.
15104 (*am33_subsi3, *mn10300_subsi3): Merge...
15105 (subsi3): ... here. Use attribute isa.
15106 (*subsi3_flags): New.
15107 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15109 (*am33_andsi3, *mn10300_andsi3): Merge...
15110 (andsi3): ... here.
15111 (*andsi3_flags): New.
15112 (andsi3 splitters): New.
15113 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15114 (iorsi3): ... here.
15115 (*iorsi3_flags): New.
15116 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15117 (xorsi3): ... here.
15118 (*xorsi3_flags): New.
15119 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15120 (one_cmplsi2): ... here.
15121 (*one_cmplsi2_flags): New.
15122 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15123 instead of "dax" in constraints. Use mn10300_split_cbranch.
15124 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15125 use matching constraints to eliminate a self-comparison.
15126 (*integer_conditional_branch): Rename from integer_conditional_branch.
15127 Use int_mode_flags to match CC_REG.
15128 (*cbranchsi4_btst, *btstsi): New.
15129 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15130 mn10300_split_cbranch.
15131 (*am33_cmpsf): Rename from am33_cmpsf.
15132 (*float_conditional_branch): Rename from float_conditional_branch.
15133 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15134 (zero_extendqisi2): ... here.
15135 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15136 (zero_extendhisi2): ... here.
15137 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15138 (extendqisi2): ... here.
15139 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15140 (extendhisi2): ... here.
15141 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15142 (ashlsi3): ... here.
15143 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15144 (lshrsi3): ... here.
15145 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15146 (ashrsi3): ... here.
15147 (consecutive add peephole): Remove.
15148 * config/mn10300/predicates.md (label_ref_operand): New.
15149 (int_mode_flags): New.
15150 (CCZN_comparison_operator): New.
15152 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15153 (throughput_42_latency_43): New reservation.
15154 (mulsidi3, umulsidi3): New expanders.
15155 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15156 the MDR register to allocation; separately allocate the low and
15157 high parts of the DImode result.
15158 (umulsidi3_internal): Similarly.
15159 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15160 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15161 (udivsi3, umodsi3): Remove.
15162 (udivmodsi4, divmodsi4): New expanders.
15163 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15164 (*divmodsi4): Simiarly.
15165 (ext_internal): New.
15167 * config/mn10300/constraints.md ("z"): New constraint.
15168 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15169 (FIXED_REGISTERS): Don't fix MDR.
15170 (CALL_USED_REGSITERS): Reformat nicely.
15171 (REG_ALLOC_ORDER): Add MDR.
15172 (enum regclass): Add MDR_REGS.
15173 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15174 (IRA_COVER_CLASSES): Add MDR_REGS.
15175 (REGNO_REG_CLASS): Handle MDR_REG.
15176 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15177 (mn10300_register_move_cost): Likewise.
15178 * config/mn10300/mn10300.md (MDR_REG): New.
15179 (*movsi_internal): Handle moves to/from MDR_REGS.
15181 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15183 (mn10300_secondary_reload): Tidy combination reload classes.
15184 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15185 addresses for AM33. Allow symbolic offsets for reg+imm.
15186 (mn10300_regno_in_class_p): New.
15187 (mn10300_legitimize_reload_address): New.
15188 * config/mn10300/mn10300.h (enum reg_class): Remove
15189 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15190 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15191 SP_OR_GENERAL_REGS.
15192 (REG_CLASS_NAMES): Update to match.
15193 (REG_CLASS_CONTENTS): Likewise.
15194 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15195 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15196 (REGNO_IN_RANGE_P): Remove.
15197 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15198 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15199 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15200 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15201 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15202 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15203 (REGNO_GENERAL_P): New.
15204 (HAVE_POST_MODIFY_DISP): New.
15205 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15206 (LEGITIMIZE_RELOAD_ADDRESS): New.
15207 * config/mn10300/mn10300-protos.h: Update.
15209 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15210 DATA_REGS for AM33 stack-pointer destination.
15211 (mn10300_preferred_output_reload_class): Likewise.
15212 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15213 into a form appropriate for ...
15214 (TARGET_SECONDARY_RELOAD): New.
15215 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15216 * config/mn10300/mn10300-protos.h: Update.
15217 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15218 reload_insi; use the "A" constraint for the scratch; handle AM33
15219 moves of sp to non-address registers.
15221 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15222 (*movqi_internal): ... here.
15223 (*am33_movhi, *mn10300_movhi): Merge into...
15224 (*movhi_internal): ... here.
15225 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15226 as the source/destination of moves from/to SP.
15227 (movsf): Only allow for AM33-2.
15228 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15229 any integer constant constraint. Only allow for AM33-2. Tidy
15230 all of the alternative outputs.
15231 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15232 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15234 (udivsi3, umodsi3): New patterns for MN103 only.
15236 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15238 * doc/tm.texi.in: Spell out that a lack of register class unions
15240 * doc/tm.texi: Regenerate.
15242 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15244 PR rtl-optimization/47337
15245 * dce.c (check_argument_store): New function.
15246 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15248 PR tree-optimization/47290
15249 * tree-eh.c (infinite_empty_loop_p): New function.
15250 (cleanup_empty_eh): Use it.
15252 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15255 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15256 (a64_expand_widen_sum): Ditto.
15257 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15258 (vec_extract_evenodd_help): Ditto.
15259 (vec_extract_evenv4hi): Ditto.
15260 (vec_extract_oddv4hi): Ditto.
15261 (vec_extract_evenv2si): Ditto.
15262 (vec_extract_oddv2si): Ditto.
15263 (vec_extract_evenv2sf): Ditto.
15264 (vec_extract_oddv2sf): Ditto.
15265 (vec_pack_trunc_v4hi: Ditto.
15266 (vec_pack_trunc_v2si): Ditto.
15267 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15268 (vec_interleave_highv8qi): Ditto.
15270 (vec_extract_oddv8qi): Ditto.
15271 (vec_interleave_lowv4hi): Ditto.
15272 (vec_interleave_highv4hi): Ditto.
15273 (vec_interleave_lowv2si): Ditto.
15274 (vec_interleave_highv2si): Ditto.
15276 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15278 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15279 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15280 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15281 (pa_c_mode_for_suffix): New.
15282 (TARGET_EXPAND_BUILTIN): Define.
15283 (TARGET_C_MODE_FOR_SUFFIX): Define.
15284 (pa_builtins): Define.
15285 (pa_init_builtins): Register __float128 type and init new support
15287 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15288 * config/pa/quadlib.c (_U_Qfcopysign): New.
15290 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15292 PR middle-end/46894
15293 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15294 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15297 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15299 PR tree-optimization/47179
15300 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15301 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15303 2011-01-18 Richard Guenther <rguenther@suse.de>
15305 PR rtl-optimization/47216
15306 * emit-rtl.c: Include tree-flow.h.
15307 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15308 of replicating it with different semantics.
15309 * Makefile.in (emit-rtl.o): Adjust.
15311 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15313 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15314 (cortex_a9_dp): Handle neon types correctly.
15316 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15318 PR rtl-optimization/47299
15319 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15320 subtarget. Use normal multiplication if both operands are constants.
15321 * expmed.c (expand_widening_mult): Don't try to optimize constant
15322 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15325 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15327 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15328 spacing after 'e.g.', typos, comma, hyphenation.
15330 2011-01-17 Richard Henderson <rth@redhat.com>
15332 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15333 (rx_restricted_mem_operand): New.
15334 (rx_shift_operand): Use register_operand.
15335 (rx_source_operand, rx_compare_operand): Likewise.
15336 * config/rx/rx.md (addsi3_flags): New expander.
15337 (adddi3): Rewrite as expander.
15338 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15339 (subsi3_flags): New expander.
15340 (subdi3): Rewrite as expander.
15341 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15343 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15344 (rx_init_builtins): Remove sat builtin.
15345 (rx_expand_builtin): Likewise.
15346 * config/rx/rx.md (ssaddsi3): New.
15347 (*sat): Rename from sat. Represent the CC_REG input.
15349 * config/rx/predicates.md (rshift_operator): New.
15350 * config/rx/rx.c (rx_expand_insv): Remove.
15351 * config/rx/rx-protos.h: Update.
15352 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15353 operand to the canonical position.
15354 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15355 (*bitclr, *bitclr_in_memory): Similarly.
15356 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15357 (insv): Retain the zero_extract in the expansion.
15359 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15360 (bswaphi2, bitinvert, revw): Likewise.
15362 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15363 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15364 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15365 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15366 (bitset, bitset_in_memory): Likewise.
15367 (bitinvert, bitinvert_in_memory): Likewise.
15368 (bitclr, bitclr_in_memory): Likewise.
15369 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15370 (rx_strend, rx_cmpstrn): Likewise.
15371 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15372 (bitop peep2 patterns): Remove.
15374 * config/rx/rx.c (rx_match_ccmode): New.
15375 * config/rx/rx-protos.h: Update.
15376 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15377 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15378 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15379 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15380 (fix_truncsfsi2, floatsisf2): Likewise.
15381 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15382 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15383 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15384 (*subsi3_flags, *xorsi3_flags): New.
15386 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15388 * config/rx/rx.c (rx_print_operand): Remove workaround for
15389 unsplit comparison operations.
15391 * config/rx/rx.md (movsicc): Split after reload.
15392 (*movsicc): Merge *movsieq and *movsine via match_operator.
15393 (*stcc): New pattern.
15395 * config/rx/rx.c (rx_float_compare_mode): Remove.
15396 * config/rx/rx.h (rx_float_compare_mode): Remove.
15397 * config/rx/rx.md (cstoresi4): Split after reload.
15398 (*sccc): New pattern.
15400 * config/rx/predicates.md (label_ref_operand): New.
15401 (rx_z_comparison_operator): New.
15402 (rx_zs_comparison_operator): New.
15403 (rx_fp_comparison_operator): New.
15404 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15405 Validate that the flags are set properly for the comparison.
15406 (rx_gen_cond_branch_template): Remove.
15407 (rx_cc_modes_compatible): Remove.
15408 (mode_from_flags): New.
15409 (flags_from_code): Rename from flags_needed_for_conditional.
15410 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15411 (rx_select_cc_mode): Likewise.
15412 (rx_split_fp_compare): New.
15413 (rx_split_cbranch): New.
15414 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15415 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15416 (*cbranchsf4): Similarly.
15417 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15418 match_operator and rx_split_cbranch.
15419 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15420 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15421 (*cmpsi): Rename from cmpsi.
15422 (*tstsi): Rename from tstsi.
15423 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15424 (*conditional_branch): Rename from conditional_branch.
15425 (*reveresed_conditional_branch): Remove.
15426 (b<code>): Remove expander.
15427 * config/rx/rx-protos.h: Update.
15429 * config/rx/rx.c (rx_compare_redundant): Remove.
15430 * config/rx/rx.md (cmpsi): Don't use it.
15431 * config/rx/rx-protos.h: Update.
15433 * config/rx/rx-modes.def (CC_F): New mode.
15434 * config/rx/rx.c (rx_select_cc_mode): New.
15435 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15436 * config/rx/rx-protos.h: Update.
15438 2011-01-17 Richard Henderson <rth@redhat.com>
15440 * except.c (dump_eh_tree): Fix stray ; after for statement.
15442 2011-01-17 Richard Guenther <rguenther@suse.de>
15444 PR tree-optimization/47313
15445 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15446 handling before copying the body. Properly deal with
15447 by-reference result in SSA form.
15449 2011-01-17 Ian Lance Taylor <iant@google.com>
15452 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15453 (struct_value_alias_set): Don't define.
15454 (sparc_option_override): Don't set sparc_sr_alias_set and
15455 struct_value_alias_set.
15456 (save_or_restore_regs): Use gen_frame_mem rather than calling
15458 (sparc_struct_value_rtx): Likewise.
15460 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15463 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15464 (_mm_maskstore_pd): Likewise.
15465 (_mm_maskload_ps): Likewise.
15466 (_mm_maskstore_ps): Likewise.
15467 (_mm256_maskload_pd): Change mask to __m256i.
15468 (_mm256_maskstore_pd): Likewise.
15469 (_mm256_maskload_ps): Likewise.
15470 (_mm256_maskstore_ps): Likewise.
15472 * config/i386/i386-builtin-types.def: Updated.
15473 (ix86_expand_special_args_builtin): Likewise.
15475 * config/i386/i386.c (bdesc_special_args): Update
15476 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15477 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15478 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15479 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15481 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15482 Use <avxpermvecmode> on mask register.
15483 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15485 2011-01-17 Olivier Hainque <hainque@adacore.com>
15486 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15487 Eric Botcazou <ebotcazou@adacore.com>
15490 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15491 if <= USHRT_MAX in 32-bit mode.
15493 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15495 * doc/install.texi (Configuration, Specific): Wrap long
15496 lines in examples. Allow line wrapping in long options
15497 and URLs where beneficial for PDF output.
15499 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15501 * config/mips/mips.c (mips_classify_symbol): Don't return
15502 SYMBOL_PC_RELATIVE for nonlocal labels.
15504 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15506 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15508 2011-01-15 Jan Hubicka <jh@suse.cz>
15510 PR tree-optimization/47276
15511 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15512 declarations as needed.
15514 2011-01-15 Martin Jambor <mjambor@suse.cz>
15516 * common.opt (fdevirtualize): New flag.
15517 * doc/invoke.texi (Option Summary): Document it.
15518 * opts.c (default_options_table): Add devirtualize flag.
15519 * ipa-prop.c (detect_type_change): Return immediately if
15520 devirtualize flag is not set.
15521 (detect_type_change_ssa): Likewise.
15522 (compute_known_type_jump_func): Likewise.
15523 (ipa_analyze_virtual_call_uses): Likewise.
15525 2011-01-14 Martin Jambor <mjambor@suse.cz>
15527 PR tree-optimization/45934
15528 PR tree-optimization/46302
15529 * ipa-prop.c (type_change_info): New type.
15530 (stmt_may_be_vtbl_ptr_store): New function.
15531 (check_stmt_for_type_change): Likewise.
15532 (detect_type_change): Likewise.
15533 (detect_type_change_ssa): Likewise.
15534 (compute_complex_assign_jump_func): Check for dynamic type change.
15535 (compute_complex_ancestor_jump_func): Likewise.
15536 (compute_known_type_jump_func): Likewise.
15537 (compute_scalar_jump_functions): Likewise.
15538 (ipa_analyze_virtual_call_uses): Likewise.
15539 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15541 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15543 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15544 * config/i386/i386.opt (msse5): New Alias.
15546 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15548 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15549 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15550 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15551 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15553 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15555 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15557 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15558 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15559 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15560 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15562 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15564 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15566 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15568 2011-01-14 Mike Stump <mikestump@comcast.net>
15570 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15571 * config/fr30/fr30.md: Likweise
15572 (movsi_push): Likewise.
15573 (movsi_pop): Likewise.
15574 (enter_func): Likewise.
15575 * config/moxie/moxie.md (movsi_push): Likewise.
15576 (movsi_pop): Likewise.
15578 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15580 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15581 %{no_archive} %{exact_version}.
15582 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15583 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15584 %{no_archive} %{exact_version}.
15585 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15586 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15587 * config/mips/vxworks.h: Likewise.
15589 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15591 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15593 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15595 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15596 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15598 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15600 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15603 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15605 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15607 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15608 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15610 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15611 Don't handle -shlib.
15613 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15615 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15616 (CC1_SPEC): Don't handle -profile.
15618 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15620 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15621 * config/mips/mips.h (CC1_SPEC): Likewise.
15623 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15625 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15626 * config/mips/mips.h (CC1_SPEC): Likewise.
15628 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15630 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15631 * config/m32r/linux.h (LINK_SPEC): Likewise.
15632 * config/mips/linux.h (LINK_SPEC): Likewise.
15633 * config/mips/linux64.h (LINK_SPEC): Likewise.
15634 * config/sparc/linux.h (LINK_SPEC): Likewise.
15635 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15636 LINK_SPEC): Likewise.
15637 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15639 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15641 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15643 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15645 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15647 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15648 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15650 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15652 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15654 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15656 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15657 supports -Bstatic/-Bdynamic.
15658 * configure: Regenerate.
15660 2011-01-14 Jan Hubicka <jh@suse.cz>
15661 Jack Howarth <howarth@bromo.med.uc.edu>
15664 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15665 when checking debug_info_level. Test write_symbols instead of
15666 debug_hooks->var_location when setting flag_var_tracking_uninit.
15668 2011-01-14 Richard Guenther <rguenther@suse.de>
15670 PR tree-optimization/47179
15671 * target.def (ref_may_alias_errno): New target hook.
15672 * targhooks.h (default_ref_may_alias_errno): Declare.
15673 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15674 (default_ref_may_alias_errno): New function.
15675 * target.h (struct ao_ref_s): Declare.
15676 * tree-ssa-alias.c: Include target.h.
15677 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15678 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15679 (targhooks.o): Likewise.
15680 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15681 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15683 2011-01-14 Richard Guenther <rguenther@suse.de>
15685 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15687 2011-01-14 Richard Guenther <rguenther@suse.de>
15689 PR tree-optimization/47280
15690 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15691 return CFG changes.
15692 (tree_ssa_forward_propagate_single_use_vars): Deal with
15693 CFG changes from associate_plusminus.
15695 2011-01-14 Richard Guenther <rguenther@suse.de>
15697 PR middle-end/47281
15699 2011-01-11 Richard Guenther <rguenther@suse.de>
15701 PR tree-optimization/46076
15702 * tree-ssa.c (useless_type_conversion_p): Conversions from
15703 unprototyped to empty argument list function types are useless.
15705 2011-01-14 Richard Guenther <rguenther@suse.de>
15707 PR tree-optimization/47286
15708 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15710 2011-01-14 Martin Jambor <mjambor@suse.cz>
15712 PR middle-end/46823
15713 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15715 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15717 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15718 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15719 * config/xtensa/xtensa.c (xtensa_libcall_value,
15720 xtensa_function_value_regno_p): New functions.
15721 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15723 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15726 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15728 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15729 New function prototype.
15730 * config/i386/winnt.c (i386_pe_assemble_visibility):
15731 Warn only if attribute was specified by user.
15733 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15736 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15738 (floatunsdidf2_fcfidu): Ditto.
15740 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15742 * config/s390/s390.c (print_operand_address): Replace 'error' with
15743 'output_operand_lossage'.
15744 (print_operand): Likewise.
15746 2011-01-13 Jeff Law <law@redhat.com>
15748 PR rtl-optimization/39077
15749 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15750 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15751 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15752 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15753 * gcse.c (prune_insertions_deletions): New function.
15754 (compute_pre_data): Use it.
15756 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15759 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15761 (prune_unused_types_mark): Use it.
15763 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15765 PR rtl-optimization/45352
15766 * sel-sched.c: Update copyright years.
15767 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15768 in the advancing loop when we have issued issue_rate insns.
15770 2011-01-12 Richard Henderson <rth@redhat.com>
15772 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15773 (TARGET_MD_ASM_CLOBBERS): New.
15775 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15776 (TARGET_DELEGITIMIZE_ADDRESS): New.
15778 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15779 (clzsi2, *bsch): New patterns.
15781 * config/mn10300/mn10300.md (INT): New mode iterator.
15782 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15784 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15785 flag_split_wide_types.
15787 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15788 (mn10300_trampoline_init): Rewrite without a template, an immediate
15789 load and a direct branch.
15790 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15792 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15794 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15795 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15796 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15797 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15799 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15802 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15805 2011-01-12 Jan Hubicka <jh@suse.cz>
15808 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15809 (PLUGIN_COND_CLOSE): New macro.
15810 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15812 2011-01-12 Richard Guenther <rguenther@suse.de>
15815 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15816 register variables in a MEM_REF.
15818 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15820 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15821 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15822 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15823 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15824 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15825 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15826 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15827 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15828 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15829 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15830 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15831 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15832 * config/gnu-user.h: New. Copied from linux.h.
15833 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15834 GNU_USER_TARGET_STARTFILE_SPEC.
15835 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15836 GNU_USER_TARGET_ENDFILE_SPEC.
15837 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15838 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15839 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15840 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15841 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15842 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15843 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15844 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15845 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15846 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15847 * config/arm/linux-eabi.h (CC1_SPEC): Use
15848 GNU_USER_TARGET_CC1_SPEC.
15849 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15850 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15851 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15852 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15853 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15854 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15855 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15856 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15858 2011-01-12 Richard Guenther <rguenther@suse.de>
15861 * doc/invoke.texi (ffast-math): Document it is turned on
15864 2011-01-12 Jan Hubicka <jh@suse.cz>
15866 PR tree-optimization/47233
15867 * opts.c (common_handle_option): Disable ipa-reference with profile
15870 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15872 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15875 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15877 * c-parser.c (c_lex_one_token): Updated and reindented some
15878 comments. No changes in code.
15880 2011-01-11 Ian Lance Taylor <iant@google.com>
15882 * godump.c (go_output_var): Don't output the variable if there is
15883 already a type with the same name.
15885 2011-01-11 Ian Lance Taylor <iant@google.com>
15887 * godump.c (go_format_type): Don't generate float80.
15889 2011-01-11 Richard Henderson <rth@redhat.com>
15891 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15892 declaration. Rewrite for both speed and size.
15893 (mn10300_address_cost_1): Remove.
15894 (mn10300_register_move_cost): New.
15895 (mn10300_memory_move_cost): New.
15896 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15897 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15898 extensions, shifts, BSWAP, CLZ.
15899 (mn10300_wide_const_load_uses_clr): Remove.
15900 (TARGET_REGISTER_MOVE_COST): New.
15901 (TARGET_MEMORY_MOVE_COST): New.
15902 * config/mn10300/mn10300-protos.h: Update.
15903 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15905 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15906 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15907 * config/mn10300/mn10300-protos.h: Update.
15908 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15909 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15910 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15911 (*test_int_bitfield, *test_byte_bitfield): Remove.
15912 (*bit_test, *subreg_bit_test): Remove.
15913 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15915 * config/mn10300/constraints.md ("c"): Rename from "A".
15916 ("A", "D"): New constraint letters.
15917 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15918 (fmssf4, fnmasf4, fnmssf4): Likewise.
15920 * config/mn10300/mn10300.md (isa): New attribute.
15921 (enabled): New attribute.
15923 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15924 (abssf2, negsf2): Define only for hardware fp.
15925 (sqrtsf2): Reformat.
15926 (addsf3, subsf3, mulsf3): Merge expander and insn.
15928 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15929 (DEBUGGER_AUTO_OFFSET): Remove.
15930 (DEBUGGER_ARG_OFFSET): Remove.
15932 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15933 Emit register stores with the same offsets as the hardware.
15934 (mn10300_store_multiple_operation): Don't check that the register
15935 save offsets are monotonic.
15936 * config/mn10300/mn10300-protos.h: Update.
15938 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15940 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15941 in terms of the value on the stack, not the MDR register.
15943 2011-01-11 Jan Hubicka <jh@suse.cz>
15947 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15948 (symbol_alias_set_destroy, symbol_alias_set_contains,
15949 propagate_aliases_backward): Declare.
15950 * lto-streamer-out.c (struct sets): New sturcture.
15951 (trivally_defined_alias): New function.
15952 (output_alias_pair_p): Rewrite.
15953 (output_unreferenced_globals): Fix output of alias pairs.
15954 (produce_symtab): Likewise.
15955 * ipa.c (function_and_variable_visibility): Set weak alias destination
15957 * varasm.c (symbol_alias_set_t): Remove.
15958 (symbol_alias_set_destroy): Export.
15959 (propagate_aliases_forward, propagate_aliases_backward): New functions
15961 (compute_visible_aliases): ... this one; remove.
15962 (trivially_visible_alias): New
15963 (trivially_defined_alias): New.
15964 (remove_unreachable_alias_pairs): Rewrite.
15965 (finish_aliases_1): Reorganize code checking if alias is defined.
15966 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15969 2011-01-11 Richard Guenther <rguenther@suse.de>
15971 PR tree-optimization/46076
15972 * tree-ssa.c (useless_type_conversion_p): Conversions from
15973 unprototyped to empty argument list function types are useless.
15975 2011-01-11 Richard Guenther <rguenther@suse.de>
15977 PR middle-end/45235
15978 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15979 volatile MEMs as MEM_READONLY_P.
15981 2011-01-11 Richard Guenther <rguenther@suse.de>
15983 PR tree-optimization/47239
15984 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15986 2011-01-11 Jeff Law <law@redhat.com>
15988 PR tree-optimization/47086
15989 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15990 IVs from statements that might throw.
15992 2011-01-10 Jan Hubicka <jh@suse.cz>
15995 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15997 2011-01-10 Jan Hubicka <jh@suse.cz>
16000 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16001 when correcting profile.
16003 2011-01-10 Jan Hubicka <jh@suse.cz>
16006 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16007 DECL_FINI_PRIORITY.
16008 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16009 Restore DECL_FINI_PRIORITY.
16011 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16013 * doc/gimple.texi: Fix quoting of multi-word return values in
16014 @deftypefn statements. Ensure presence of return value. Wrap
16015 overlong @deftypefn lines.
16016 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16017 descriptions of removed functions.
16018 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16019 of multi-word return value in @deftypefn statement.
16021 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16023 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16024 (Conditional Expressions, Logical Operators)
16025 (Statement and operand traversals): Do not indent smallexample
16026 code. Fix duplicate function argument in example.
16028 2011-01-10 Jeff Law <law@redhat.com>
16030 PR tree-optimization/47141
16031 * ipa-split.c (split_function): Handle case where we are
16032 returning a value and the return block has a virtual operand phi.
16034 2011-01-10 Jan Hubicka <jh@suse.cz>
16036 PR tree-optimization/47234
16037 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16038 (pass_feedback_split_functions): Declare.
16039 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16041 * ipa-split.c (gate_split_functions): Update comments; disable
16042 split-functions for profile_arc_flag and branch_probabilities.
16043 (gate_feedback_split_functions): New function.
16044 (execute_feedback_split_functions): New function.
16045 (pass_feedback_split_functions): New global var.
16047 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16050 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16051 calling gimple_call_set_cannot_inline.
16053 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16055 * config/darwin-sections.def: Remove unused section.
16057 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16060 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16062 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16065 * c-parser.c (c_parser_declaration_or_fndef): Improved
16068 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16070 * config/i386/winnt.c (i386_pe_start_function): Make sure
16071 to switch back to function's section.
16073 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16077 * plugin.c: Move include of dlfcn.h from here...
16078 * system.h: ... to here.
16080 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16082 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16084 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16085 two extra empty pages in PDF output.
16087 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16090 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16091 for error recovery purposes behave as if it was not specified so
16092 that the default type is usd.
16094 2011-01-07 Jan Hubicka <jh@suse.cz>
16096 PR tree-optmization/46469
16097 * ipa.c (function_and_variable_visibility): Clear needed flags on
16098 nodes with external decls; handle weakrefs merging correctly.
16100 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16102 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16105 2011-01-07 Jan Hubicka <jh@suse.cz>
16107 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16108 and no longer claim that gold is required for linker plugin.
16109 * configure: Regenerate.
16110 * gcc.c (PLUGIN_COND): New macro.
16111 (LINK_COMMAND_SPEC): Use it.
16112 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16113 * config.in (HAVE_LTO_PLUGIN): New.
16114 * configure.ac (--with-lto-plugin): New parameter; autodetect
16117 2011-01-07 Jan Hubicka <jh@suse.cz>
16119 PR tree-optimization/46367
16120 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16121 when we can update original.
16122 (cgraph_mark_inline_edge): Sanity check.
16123 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16125 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16127 * config/spu/spu.h (ASM_COMMENT_START): Define.
16129 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16132 * gcc.c (%>S): New.
16133 (SWITCH_KEEP_FOR_GCC): Likewise.
16134 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16135 (do_spec_1): Handle "%>".
16137 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16139 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16142 * config/i386/i386.c (ix86_delegitimize_address): If
16143 simplify_gen_subreg fails, return orig_x.
16146 * value-prof.c (gimple_stringop_fixed_value): Handle
16147 lhs of the call properly.
16149 2011-01-07 Jan Hubicka <jh@suse.cz>
16152 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16154 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16156 * target.def (function_switched_text_sections): New hook.
16157 * doc/tm.texi: Regenerated.
16158 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16159 * final.c (default_function_switched_text_sections): New.
16160 (final_scan_insn): Call function_switched_text_sections when a
16161 mid-function section change occurs.
16162 * output.h (default_function_switched_text_sections): Declare.
16163 * config/darwin-protos.h (darwin_function_switched_text_sections):
16165 * config/darwin.c (darwin_function_switched_text_sections): New.
16166 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16168 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16170 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16171 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16172 the secondary code fragment when outputting for DWARF == 2.
16174 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16176 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16177 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16179 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16180 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16182 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16185 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16186 when it is not empty.
16188 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16191 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16192 (case ${target}): Add btver1.
16193 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16194 -march=native recognize btver1 processors.
16195 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16196 btver1 def_and_undef
16197 * config/i386/i386.c (struct processor_costs btver1_cost): New
16199 (m_BTVER1): New definition.
16200 (m_AMD_MULTIPLE): Includes m_BTVER1.
16201 (initial_ix86_tune_features): Add btver1 tune.
16202 (processor_target_table): Add btver1 entry.
16203 (static const char *const cpu_names): Add btver1 entry.
16204 (software_prefetching_beneficial_p): Add btver1.
16205 (ix86_option_override_internal): Add btver1 instruction sets.
16206 (ix86_issue_rate): Add btver1.
16207 (ix86_adjust_cost): Add btver1.
16208 * config/i386/i386.h (TARGET_BTVER1): New definition.
16209 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16210 (enum processor_type): Add PROCESSOR_BTVER1.
16211 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16213 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16216 * config/i386/i386.c (legitimize_tls_address)
16217 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16218 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16219 (tls_initial_exec_64_sun): New pattern.
16221 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16223 * doc/invoke.texi (Overall Options): Improve wording and markup
16224 of the description of -wrapper.
16226 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16228 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16229 rdynamic, threads): New Driver options.
16231 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16234 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16235 if coming from .tdata.
16236 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16238 2011-01-06 Jan Hubicka <jh@suse.cz>
16241 * collect2.c (main): Do not enable LTOmode when plugin is active.
16243 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16246 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16247 --version output if supported.
16248 * configure: Regenerate.
16250 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16252 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16255 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16258 * c-convert.c (convert): When converting a complex expression
16259 other than COMPLEX_EXPR to a different complex type, ensure
16260 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16261 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16262 when converting COMPLEX_TYPE.
16264 2011-01-06 Ira Rosen <irar@il.ibm.com>
16266 PR tree-optimization/47139
16267 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16268 only the last reduction value is used outside the loop. Update
16271 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16273 * config/rtems.opt: New.
16274 * config.gcc (*-*-rtems*): Use rtems.opt.
16276 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16278 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16279 processors do not support 3DNow instructions.
16281 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16283 * config/spu/spu.c (spu_option_override): Set parameter
16284 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16286 2011-01-05 Jan Hubicka <jh@suse.cz>
16288 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16289 at the command line.
16291 2011-01-05 Martin Jambor <mjambor@suse.cz>
16294 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16295 deltas on streamed outgoing edges.
16296 (output_node_opt_summary): Output info for outgoing edges only when
16297 the node is in new parameter set.
16298 (output_cgraph_opt_summary): New parameter set, passed to the two
16299 aforementioned functions. Update its forward declaration and its
16302 2011-01-05 Tom Tromey <tromey@redhat.com>
16304 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16305 operator to c_finish_omp_atomic.
16306 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16307 (build_unary_op): Update.
16308 (build_modify_expr): Update.
16309 (build_asm_expr): Update.
16311 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16313 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16314 newly inserted insns.
16315 (pad_bb): Likewise.
16316 (spu_emit_branch_hint): Likewise.
16317 (insert_hbrp_for_ilb_runout): Likewise.
16318 (spu_machine_dependent_reorg): Call df_finish_pass after
16319 schedule_insns returns.
16321 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16323 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16325 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16327 PR tree-optimization/47005
16328 * tree-sra.c (struct access): Add 'non_addressable' bit.
16329 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16330 (decide_one_param_reduction): Return 0 if the parameter is passed by
16331 reference and one of the accesses in the group is non_addressable.
16333 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16335 PR tree-optimization/47056
16336 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16337 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16338 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16340 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16342 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16343 initializer. Skip view conversions from aggregate types.
16345 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16348 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16350 2011-01-04 Philipp Thomas <pth@suse.de>
16352 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16355 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16357 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16358 on empty epilogue sequences.
16360 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16362 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16363 non-static): New Driver options.
16365 2011-01-04 Jie Zhang <jie@codesourcery.com>
16368 * gcc.c (default_compilers[]): Set combinable field to 0
16369 for all assembly languages.
16371 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16373 * config/mips/loongson3a.md: New file.
16374 * config/mips/mips.md: Include loongson3a.md.
16375 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16378 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16380 PR middle-end/47017
16381 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16382 instead of convert_memory_address_addr_space on the base expression.
16384 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16386 * config/spu/spu.c (spu_option_override): Update error text
16387 for bad -march= / -mtune= values.
16389 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16391 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16392 if branch-hint optimization will be performed.
16394 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16396 PR tree-optimization/47148
16397 * ipa-split.c (split_function): Convert arguments to
16398 DECL_ARG_TYPE if possible.
16400 PR tree-optimization/47155
16401 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16402 when computing uns.
16404 PR rtl-optimization/47157
16405 * combine.c (try_combine): If undobuf.other_insn becomes
16406 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16407 and set *new_direct_jump_p too.
16409 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16411 PR tree-optimization/47021
16412 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16414 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16416 * gcc.c (process_command): Update copyright notice dates.
16417 * gcov.c (print_version): Likewise.
16418 * gcov-dump.c (print_version): Likewise.
16419 * mips-tfile.c (main): Likewise.
16420 * mips-tdump.c (main): Likewise.
16422 2011-01-03 Martin Jambor <mjambor@suse.cz>
16424 PR tree-optimization/46801
16425 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16426 aggregate fields start at byte boundary instead of the bit-field flag.
16428 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16431 * gcc.c (main): Revert revision 168407.
16433 2011-01-03 Martin Jambor <mjambor@suse.cz>
16435 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16437 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16439 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16440 vector optab to expand vector/scalar shift, update gimple to vector.
16442 2011-01-03 Martin Jambor <mjambor@suse.cz>
16444 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16447 2011-01-03 Martin Jambor <mjambor@suse.cz>
16449 PR tree-optimization/46984
16450 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16452 (cgraph_create_indirect_edge): Fixed line length.
16453 (cgraph_indirect_call_info): Declare.
16454 (cgraph_make_edge_direct) Update declaration.
16455 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16456 (cgraph_create_indirect_edge): Use it.
16457 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16459 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16460 the new thunk_delta representation.
16461 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16463 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16464 (ipa_read_indirect_edge_info): Likewise.
16465 * lto-cgraph.c (output_edge_opt_summary): New function.
16466 (output_node_opt_summary): Call it on all outgoing edges.
16467 (input_edge_opt_summary): New function.
16468 (input_node_opt_summary): Call it on all outgoing edges.
16470 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16473 * gcc.c (main): Don't check have_o when settting combine_inputs.
16475 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16477 * regrename.c: Add general comment describing the pass.
16478 (struct du_head): Remove 'length' field.
16479 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16480 (regrename_optimize): Do not sort chains. Rework comments, add others.
16481 Force renaming to the preferred class (if any) in the first pass and do
16482 not consider registers that belong to it in the second pass.
16483 (create_new_chain): Do not set 'length' field.
16484 (scan_rtx_reg): Likewise.
16486 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16488 PR tree-optimization/47140
16489 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16490 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16491 to bit_value_binop.
16493 PR rtl-optimization/47028
16494 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16495 parm_birth_insn instead of at the beginning of first bb.
16497 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16499 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16500 Remove the word "see" before "@pxref".
16501 * doc/rtl.texi: Remove the word "see" before "@pxref".
16503 2011-01-01 Jan Hubicka <jh@suse.cz>
16505 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16508 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16511 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16514 Copyright (C) 2011 Free Software Foundation, Inc.
16516 Copying and distribution of this file, with or without modification,
16517 are permitted in any medium without royalty provided the copyright
16518 notice and this notice are preserved.