1 2011-06-01 Diego Novillo <dnovillo@google.com>
3 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
4 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
6 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
9 * optabs.h (valid_multiword_target_p): Declare.
10 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
11 doing multi-word operations.
12 * optabs.c (expand_binop): Likewise.
13 (expand_doubleword_bswap): Likewise.
14 (expand_absneg_bit): Likewise.
15 (expand_unop): Likewise.
16 (expand_copysign_bit): Likewise.
17 (multiword_target_p): New function.
19 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
21 PR rtl-optimization/48830
22 PR rtl-optimization/48808
23 PR rtl-optimization/48792
24 * reload.c (push_reload): Check contains_reg_of_mode.
25 * reload1.c (strip_paradoxical_subreg): New function.
26 (gen_reload_chain_without_interm_reg_p): Use it to handle
28 (emit_output_reload_insns, gen_reload): Likewise.
30 2011-06-01 David Li <davidxl@google.com>
32 * predict.c : Change pass name
35 * tree-profile.c: Ditto.
38 2011-06-01 David Li <davidxl@google.com>
40 * tree-pretty-print.c (dump_function_header): New function.
41 * final.c (rest_of_clean_state): Use header dumper.
42 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
43 * passes.c (pass_init_dump_file): Use header dumper.
45 2011-06-01 Jakub Jelinek <jakub@redhat.com>
47 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
48 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
49 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
51 (mem_loc_descriptor): Use them.
53 * var-tracking.c (create_entry_value): New function.
54 (vt_add_function_parameter): Use it.
56 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
58 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
59 Include <signal.h>, <ucontext.h>.
60 (sigill_caught): Define.
61 (sigill_hdlr): New function.
62 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
63 insns can be executed.
64 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math
66 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
68 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
70 * config/t-slibgcc-darwin: Move to ...
71 * config/t-slibgcc-dummy: .. this.
73 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
74 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
75 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
76 (i[34567]86-*-rtems*): Remove extra_parts.
78 Remove i386/t-crtstuff from tmake_file.
79 (i[34567]86-*-solaris2*): Remove t-svr4,
80 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
82 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
83 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
84 sparc/t-crtfm from tmake_file.
85 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
86 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
88 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
89 * config/i386/t-nwld (SHLIB_LINK): Remove.
90 * config/i386/t-rtems-i386: Rename to ...
91 * config/i386/t-rtems: ... this.
92 ($(T)crti.o, $(T)crtn.o): Remove.
93 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
94 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
95 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
96 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
97 EXTRA_MULTILIB_PARTS): Remove.
98 * config/sparc/t-sol2-64: Likewise.
99 * config/sparc/t-sol2: Remove.
100 * config/sparc/t-crtin: Remove.
101 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
102 * config/i386/gmon-sol2.c: Remove.
103 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
104 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
105 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
106 * config/i386/sol2-gc1.asm: Remove.
107 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
108 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
109 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
110 * config/t-slibgcc-sld: Remove.
112 2011-06-01 Jakub Jelinek <jakub@redhat.com>
114 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
115 base_type_for_mode with op_mode instead of mode.
117 2011-06-01 Paul Brook <paul@cpodesourcery.com>
119 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
121 * config/arm/arm-tune.md: Regenerate.
122 * config/arm/arm-tables.opt: Regenerate.
123 * config/arm/arm.c (FL_DIV): Rename...
124 (FL_THUMB_DIV): ... to this.
125 (FL_ARM_DIV): Define.
126 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
127 (arm_arch_hwdiv): Remove.
128 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
129 (arm_issue_rate): Add cortexr5.
130 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
131 __ARM_ARCH_EXT_IDIV__.
132 (TARGET_IDIV): Define.
133 (arm_arch_hwdiv): Remove.
134 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
135 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
136 (divsi3, udivsi3): New patterns.
137 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
138 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
140 2011-06-01 Martin Jambor <mjambor@suse.cz>
142 * ipa-utils.c (ipa_dfs_info): New field scc_no.
143 * ipa-utils.c (searchc): Set scc_no.
145 2011-06-01 Martin Jambor <mjambor@suse.cz>
147 * ipa-utils.c (searchc_env): New field allow_overwritable.
148 (searchc): do not ignore edges to overwritable nodes if indicated
149 by env->allow_overwritable.
150 (ipa_reduced_postorder): Set env.allow_overwritable.
152 2011-06-01 Richard Guenther <rguenther@suse.de>
154 * tree.c (free_lang_data): Do not reset boolean_type_node nor
156 * lto-streamer.c (lto_record_common_node): Take node pointer,
157 do not register types.
158 (lto_preload_common_nodes): Explicitly skip preloading nodes
159 that differ between frontends.
161 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
163 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
166 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
168 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
169 parameter value for dump. Dump cost on outermost call only.
170 (rs6000_memory_move_cost): Dump cost on outermost call only.
172 2011-05-31 Jakub Jelinek <jakub@redhat.com>
174 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
175 DW_OP_GNU_convert ops.
177 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
178 cselib_preserve_constants.
179 (cselib_lookup_1): If cselib_preserve_constants,
180 a new VALUE is being created for REG and there is a VALUE for the
181 same register in wider mode, add another loc with lowpart SUBREG of
183 (cselib_subst_to_values): Handle ENTRY_VALUE.
184 * var-tracking.c (replace_expr_with_values): Return NULL for
186 * dwarf2out.c (convert_descriptor_to_signed): New function.
187 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
188 instead of two shifts.
189 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
190 the right mode if needed.
191 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
192 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
193 convert_descriptor_to_signed.
194 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
195 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
198 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
200 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
202 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
203 of X87MODEI12 and SWI48x instead of SSEMODEI24.
204 (SWI248x): New mode iterator, rename from X87MODEI.
205 (X87MODEI): Remove mode iterator.
209 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
211 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
212 * doc/invoke.texi: Document max-vartrack-expr-depth.
213 * var-tracking.c (EXPR_DEPTH): New.
214 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
216 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
218 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
219 * config/i386/sse.md: Add n to negated FMA pattern names.
221 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
223 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
225 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
227 * gengtype-state.c (read_state_params_structs): Initialize previous.
229 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
231 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
232 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
234 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
236 * config/i386/i386.md (*movtf_internal): Avoid allocating general
237 registers. Penalize F*r->o alternative to prevent partial memory
238 stalls. Slightly penalize *roF->*r alternative. Generate SSE
239 CONST_DOUBLE immediates when optimizing function for size. Do not move
240 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
241 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
242 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
243 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
245 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
247 (fp_register_operand splitters): Use fp_register_operand
248 constraint. Do not use FP_REG_P in insn condition.
249 (any_fp_register_operand splitters): Use any_fp_register_operand
250 constraint. Do not use ANY_FP_REG_P in insn condition.
252 2011-05-31 Jan Hubicka <jh@suse.cz>
254 * cgraph.h (cgraph_inline_failed_t): Give enum a name
255 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
256 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
257 (lto_output_edge): Use output_enum and var_len_unsigned.
258 (lto_output_varpool_node): Likewise.
259 (input_overwrite_node): Do not take resolution parameter;
260 extract it from a bitpack.
261 (input_node): Do not read resolution; use input_enum and
263 (input_varpool_node): Likewise.
264 (input_edge): Likewise.
265 (input_cgraph_1): Likewise.
267 2011-05-31 Richard Guenther <rguenther@suse.de>
269 * gimple.c (gimple_register_canonical_type): Do not register
270 any types via gimple_register_type.
272 2011-05-31 Jan Hubicka <jh@suse.cz>
274 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
277 2011-05-31 Jakub Jelinek <jakub@redhat.com>
279 PR rtl-optimization/49235
280 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
281 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
283 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
285 PR tree-optimization/49093
286 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
289 2011-05-31 Dodji Seketeli <dodji@redhat.com>
292 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
293 for concrete functions containing the code of cloned functions.
295 2011-05-31 Richard Guenther <rguenther@suse.de>
297 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
299 (forward_propagate_into_comparison_1): ... this.
300 (forward_propagate_comparison): Rename to ...
301 (forward_propagate_into_comparison): ... this. Split out
302 real forward propagation code to ...
303 (forward_propagate_comparison): ... this.
304 (forward_propagate_into_gimple_cond): Remove looping.
305 (forward_propagate_into_cond): Likewise.
306 (simplify_not_neg_expr): Return whether we have done something.
307 (simplify_gimple_switch): Likewise.
308 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
309 (ssa_forward_propagate_and_combine): ... this. Re-structure
310 to do a forward forward-propagation walk on BBs and a backward
311 stmt combining walk on BBs. Consistently re-scan changed statements.
312 (pass_forwprop): Adjust.
314 2011-05-30 Ian Lance Taylor <iant@google.com>
316 * godump.c (go_format_type): Correct length of name added to
317 obstack for anonymous field.
319 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
322 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
323 part of the second operand is 0.
325 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
327 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
328 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
329 to memory for !TARGET_MEMORY_MISMATCH_STALL.
330 (*movdf_internal_rex64): Do not penalize F->r alternative.
331 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
332 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
333 when optimizing function for size. Do not move CONST_DOUBLEs
334 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
335 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
336 SUBREGs. Do not check for MEM_P operands in the insn condition,
337 check for ANY_FP_REGNO_P instead.
338 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
339 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
341 * config/i386/i386.c (ix86_option_override_internal): Do not
342 set TARGET_INTEGER_DFMODE_MOVES here.
344 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
347 * config/i386/i386.md (*movtf_internal): Handle misaligned
350 2011-05-30 Jakub Jelinek <jakub@redhat.com>
352 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
353 DW_TAG_rvalue_reference_type even for
354 -gdwarf-4 -fno-debug-types-section.
356 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
358 PR tree-optimization/46728
359 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
360 (build_and_insert_binop): New.
361 (gimple_expand_builtin_pow): Reorder args for
362 build_and_insert_call; use build_and_insert_binop; add more
363 optimizations for fractional exponents.
365 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
370 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
372 * tree.h (struct tree_identifier): Inherit from tree_typed, not
374 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
375 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
376 TS_BASE instead of TS_COMMON.
377 * varasm.c (assemble_name): Remove assert.
379 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
381 * config.gcc: Keep obselete list sorted.
383 2011-05-30 Jakub Jelinek <jakub@redhat.com>
384 Eric Botcazou <ebotcazou@adacore.com>
386 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
387 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
388 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
389 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
390 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
392 2011-05-30 Richard Guenther <rguenther@suse.de>
394 * gimple.c (gimple_types_compatible_p_1): Compare record
395 and union type members properly.
397 2011-05-30 Richard Guenther <rguenther@suse.de>
399 PR tree-optimization/49210
400 * ipa-split.c (split_function): Care for the case where the call
401 result is not trivially convertible to the result holding variable.
403 2011-05-30 Richard Guenther <rguenther@suse.de>
405 PR tree-optimization/49218
406 * tree-vrp.c (adjust_range_with_scev): Properly check whether
409 2011-05-30 Richard Guenther <rguenther@suse.de>
411 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
412 New function split out from ...
413 (forward_propagate_into_gimple_cond): ... here. Adjust.
414 (forward_propagate_into_cond): Likewise.
415 (forward_propagate_comparison): Also propagate into
416 comparisons on assignment RHS. Change return value to
417 behave similar to forward_propagate_into_cond.
418 (tree_ssa_forward_propagate_single_use_vars): Handle
419 strict-overflow warnings properly for forward_propagate_comparison.
421 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
423 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
425 * configure: Regenerate.
427 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
429 PR tree-optimization/49199
430 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
431 non-reduction operands are either defined in the loop or by induction.
433 2011-05-29 Xinliang David Li <davidxl@google.com>
435 * opts-global.c (handle_common_deferred_options): Handle new options.
436 * passes.c (register_one_dump_file): Call register_pass_name.
437 (execute_one_pass): Check explicit enable/disable flag.
438 (passr_hash): New function.
440 (register_pass_name): Ditto.
441 (get_pass_by_name): Ditto.
444 (enable_pass): Ditto.
445 (disable_pass): Ditto.
446 (is_pass_explicitly_enabled_or_disabled): Ditto.
448 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
450 * config/i386/i386.md (*movoi_internal_avx): Use
451 standard_sse_constant_opcode for alternative 0.
452 (*movti_internal_sse): Ditto.
453 (*movti_internal_rex64): Use standard_sse_constant_opcode for
455 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
457 (*movsi_internal): Ditto.
458 (*movdi_internal): Ditto. Add ssecvt type moves.
460 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
463 * rtlanal.c (simplify_subreg_regno): Adjust comment.
465 2011-05-29 Jakub Jelinek <jakub@redhat.com>
467 PR rtl-optimization/49095
468 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
469 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
471 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
474 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
475 recurse_p argument. Only follow register copies if it is set,
476 and prevent mips_find_pic_call_symbol from recursing.
477 (mips_find_pic_call_symbol): Add a recurse_p argument.
478 Pass it to mips_pic_call_symbol_from_set.
479 (mips_annotate_pic_calls): Update accordingly.
481 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
483 * emit-rtl.c (try_split): Use a loop to search for
484 NOTE_INSN_CALL_ARG_LOCATIONs.
486 2011-05-29 Richard Guenther <rguenther@suse.de>
488 PR tree-optimization/49217
489 * ipa-pure-const.c (propagate_pure_const): Fix typos.
491 2011-05-28 Jan Hubicka <jh@suse.cz>
493 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
495 (string_slot_free): Remove
496 (create_output_block): Initialize obstack.
497 (destroy_output_block): Free obstack.
498 (lto_string_index): Add PERSISTENT parameter; do not duplicate
499 the string unless it needs to be added into the hash.
500 (lto_output_string_with_length): Add persistent attribute;
502 (lto_output_string): Add PERSISTENT parameter.
503 (output_string_cst, output_identifier): Simplify.
504 (lto_output_location_bitpack): Update.
505 (lto_output_builtin_tree): Update.
506 * lto-streamer.h (struct output_block): Add obstack.
507 (lto_output_string, lto_output_string_with_length): Remove
508 declarations; functions are static now.
510 2011-05-28 Jan Hubicka <jh@suse.cz>
512 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
513 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
514 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
515 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
516 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
517 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
518 unpack_ts_decl_with_vis_value_fields,
519 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
520 lto_get_builtin_tree): Use enum and variable length i/o.
521 * basic-block.h (profile_status_d): Add PROFILE_LAST.
522 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
524 (bp_pack_enum, bp_unpack_enum): New macros.
526 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
528 * genrecog.c: Remove redundant forward declarations.
530 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
532 * config.gcc: Deprecate mips*-*-openbsd*.
534 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
537 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
540 2011-05-27 Andrew Pinski <pinskia@gmail.com>
543 * gengtype.c (vec_prefix_type): New function.
544 (note_def_vec): Use vec_prefix_type and change the length
545 attribute to be based on the prefix.
546 * vec.c: Include coretypes.h before vec.h.
547 (struct vec_prefix): Remove.
548 (vec_gc_p_reserve): Change the offsetof to sizeof.
549 (vec_gc_p_reserve_exact): Likewise.
550 (vec_heap_p_reserve): Likewise.
551 (vec_heap_p_reserve_exact): Likewise.
552 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
553 (vec_stack_p_reserve): Change the offsetof to sizeof.
554 (vec_stack_p_reserve_exact): Likewise.
555 * vec.h (struct vec_prefix): New struct definition.
556 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
557 (VEC_T_GTY(T,B)): Likewise.
558 (DEF_VEC_FUNC_P(T)): Use prefix field.
559 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
560 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
562 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
564 PR tree-optimization/46728
565 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
566 (powi_as_mults): Add gimple_set_location.
567 (build_and_insert_call): New.
568 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
569 0.5, 0.25, 0.75, 1./3., or 1./6.
571 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
573 * doc/contrib.texi: Update copyright years.
574 (Contributors): Add Zdenek Sojka.
576 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
578 * c-decl.c (c_push_function_context): Copy the current statement
580 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
581 (finish_struct): Call building_stmt_list_p instead of checking
583 * c-parser.c (c_parser_postfix_expression): Likewise.
584 * c-typeck.c (c_end_compound_stmt): Likewise.
585 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
586 * tree-iterator.c (stmt_list_cache): Change to a VEC.
587 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
588 (free_stmt_list): Likewise.
589 * tree.h (struct tree_statement_list): Include typed_tree instead
591 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
592 as TS_TYPED instead of TS_COMMON.
594 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
595 Uros Bizjak <ubizjak@gmail.com>
597 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
598 (HAVE_AS_IX86_TLSGDPTL): Define.
599 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
600 (HAVE_AS_IX86_TLSLDMPLT): Define.
601 * configure: Regenerate.
602 * config.in: Regenerate.
603 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
604 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
605 TARGET_SUN_TLS, use @tlsgdplt or @plt.
606 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
607 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
609 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
611 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
613 * sched-int.h (struct _haifa_deps_insn_data): New members cond
615 (INSN_COND, INSN_REVERSE_COND): New macros.
616 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
618 (sched_get_condition_with_rev): Cache the results, and look them up
620 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
621 are clobbered by the current insn.
622 * target.def (exposed_pipline): New sched data hook.
623 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
624 * doc/tm.texi: Regenerate.
626 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
628 PR tree-optimization/49170
629 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
632 2011-05-27 Richard Guenther <rguenther@suse.de>
635 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
638 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
640 * haifa-sched.c (sched_scan_info): Remove.
641 (schedule_block): Call sched_extend_luids rather than sched_init_luids
643 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
645 (sched_scan): Remove.
646 (sched_extend_luids): Renamed from luids_extend_insn and no longer
647 static. All callers changed.
648 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
649 static. All callers changed.
650 (sched_init_luids): Remove all arguments except the first. All
651 callers changed. Don't use sched_scan.
652 (haifa_init_h_i_d): Likewise.
653 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
654 manually rather than using sched_init_luids. Likewise with
655 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
656 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
657 rather than sched_init_luids with NULL args.
658 * sel-sched-ir.c (new_insns): Remove variable.
659 (sched_scan): New static function, previously in haifa-sched.c. Remove
660 all arguments but the first two; all callers changed.
661 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
662 rather than sched_init_luids.
663 (sel_init_bbs): Remove second argument. All callers changed.
664 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
666 (create_insn_rtx_from_pattern): Likewise.
667 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
668 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
669 (sched_init_insn_luid, sched_extend_luids): Declare.
670 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
673 2011-05-27 Richard Guenther <rguenther@suse.de>
676 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
677 A CMP B ? (T) true : (T) false for non-integral types T again.
679 2011-05-27 Jan Hubicka <jh@suse.cz>
681 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
682 so 0 means NULL string.
683 (lto_output_string_with_length): ... here.
684 (lto_output_string, output_string_cst, output_identifier): Update
685 handling of NULL strings.
686 (lto_output_location_bitpack): New function.
687 (lto_output_location): Use it.
688 (lto_output_tree_ref): Use output_record_start.
689 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
691 * lto-streamer-in.c (string_for_index): Break out from ...; offset
693 (input_string_internal): ... here;
694 (input_string_cst, input_identifier, lto_input_string): Update handling
696 (lto_input_location_bitpack): New function
697 (lto_input_location): Use it.
698 (unpack_ts_type_common_value_fields): Pack align & alias in var len
700 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
701 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
702 (bp_pack_value): Sanity check the value range.
703 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
705 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
708 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
710 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
711 call_arg_location instructions down the floor.
713 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
715 PR rtl-optimization/49154
716 * ira.c (setup_pressure_classes): Process class without sublcasses
717 as a candidate for pressure classes.
719 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
721 PR rtl-optimization/48575
722 * genrecog.c (position_type): New enum.
723 (position): New structure.
724 (decision): Use position structure instead of a string.
725 (root_pos, peep2_insn_pos_list): New variables.
726 (next_position, compare_positions): New functions.
727 (new_decision): Use position structures instead of strings.
728 (maybe_both_true): Likewise.
729 (change_state): Likewise.
730 (write_tree): Likewise.
731 (make_insn_sequence): Likewise.
733 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
735 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
736 TS_BASE instead of TS_COMMON.
737 (find_decls_types_r): Check for TS_TYPED structure before looking at
739 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
741 (BLOCK_CHAIN): Use new chain field.
743 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
745 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
746 moves expensive on Power7 also.
748 2011-05-26 Richard Guenther <rguenther@suse.de>
750 * fold-const.c (fold_unary_loc): Remove bogus code.
752 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
754 * tree.h (struct tree_identifier): Inherit from tree_typed, not
756 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
757 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
758 TS_BASE instead of TS_COMMON.
759 * varasm.c (assemble_name): Remove assert.
761 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
763 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
765 * libgcc-std.ver: Delete file.
767 2011-05-26 Richard Guenther <rguenther@suse.de>
769 PR tree-optimization/48702
770 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
771 only when we know the base address is within bounds.
772 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
773 assume the base address of TARGET_MEM_REFs is in bounds.
775 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
778 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
779 declaration in TARGET_SOLARIS.
781 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
783 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
784 The instruction is then expanded explicitly.
785 (supported_compare): Callable instruction.
788 2011-05-26 Jakub Jelinek <jakub@redhat.com>
791 * gimplify.c (shortcut_cond_r): Don't special case
792 COND_EXPRs if they have void type on one of their arms.
794 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
796 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
797 to reduce duplication, and to achieve a slightly more logical order
800 2011-05-26 Jakub Jelinek <jakub@redhat.com>
802 PR tree-optimization/49161
803 * tree-vrp.c (struct case_info): New type.
804 (compare_case_labels): Sort case_info structs instead of
805 trees, and not primarily by CASE_LABEL uids but by
806 label_for_block indexes.
807 (find_switch_asserts): Put case labels into struct case_info
808 array instead of TREE_VEC, adjust sorting, compare label_for_block
809 values instead of CASE_LABELs.
811 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
813 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
814 ("orndi3_neon"): Likewise.
815 ("bic<mode>3_neon"): Likewise.
817 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
819 PR tree-optimization/49038
820 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
821 Ensure at least one epilogue iteration if required by data
823 * tree-vectorizer.h (struct _loop_vec_info): Add new field
824 to mark loops that require peeling for gaps.
825 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
826 (vect_get_known_peeling_cost): Take peeling for gaps into
828 (vect_transform_loop): Generate epilogue if required by data
830 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
831 loop as requiring an epilogue if there are gaps in the end of
834 2011-05-25 Ian Lance Taylor <iant@google.com>
836 * godump.c (go_format_type): Output the first field with a usable
839 2011-05-25 Ian Lance Taylor <iant@google.com>
841 * godump.c (go_format_type): Check for invalid type names, pointer
842 target types, and struct field types.
844 2011-05-25 Jason Merrill <jason@redhat.com>
846 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
848 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
850 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
852 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
854 * config/i386/i386.md (*movqi_extv_1)): Put back
855 "register_operand" check in "type" calculation.
856 (*movqi_extzv_2): Likewise.
858 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
860 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
862 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
865 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
866 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
867 __divxc3, __divtc3): Wrap definitions in #ifndef.
869 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
872 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
873 "register_operand" check and replace q_regs_operand with
874 QIreg_operand in "type" calculation.
875 (*movqi_extv_1): Likewise.
876 (*movqi_extzv_2_rex64): Likewise.
877 (*movqi_extzv_2): Likewise.
879 * config/i386/predicates.md (QIreg_operand): New.
881 2011-05-25 Richard Guenther <rguenther@suse.de>
883 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
884 type-based offset disambiguation, streamline MEM_REF and
885 TARGET_MEM_REF handling.
887 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
889 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
890 (bdesc_special_args): Add pause intrinsic.
892 * config/i386/i386.md (UNSPEC_PAUSE): New.
895 * config/i386/ia32intrin.h (__pause): Likewise.
897 * doc/extend.texi (X86 Built-in Functions): Add documentation for
900 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
902 PR tree-optimization/46728
903 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
904 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
906 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
908 * tree.h (struct tree_exp): Inherit from struct tree_typed.
909 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
910 instead of TS_COMMON.
912 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
914 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
915 LIBGCC2_GNU_PREFIX is defined.
917 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
918 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
919 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
920 __clz_tab): Define using __N.
921 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
922 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
923 * target.def (libfunc_gnu_prefix): New hook.
924 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
925 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
926 * doc/tm.texi: Regenerate.
927 * system.h (LIBGCC2_GNU_PREFIX): Poison.
928 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
930 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
931 (init_optabs): Likewise for the bswap libfuncs.
932 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
934 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
935 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
936 * libgcc-std.ver: Remove.
937 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
938 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
940 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
941 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
942 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
943 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
944 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
945 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
946 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
947 * config/fixed-bit.h (FIXED_OP): Define differently depending on
948 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
949 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
951 2011-05-25 Jan Hubicka <jh@suse.cz>
953 * lto-streamer-out.c (output_record_start): Use lto_output_enum
954 (lto_output_tree): Use output_record_start.
955 * lto-streamer-in.c (input_record_start): Use lto_input_enum
956 (lto_get_pickled_tree): Use input_record_start.
957 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
958 (lto_value_range_error): New function.
959 * lto-streamer.h (lto_value_range_error): Declare.
960 (lto_output_int_in_range, lto_input_int_in_range): New functions.
961 (lto_output_enum, lto_input_enum): New macros.
963 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
965 * common.opt (flag_stack_usage_info): New variable.
966 (-Wstack-usage): New option.
967 * doc/invoke.texi (Warning options): Document -Wstack-usage.
968 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
969 <OPT_fstack_usage>: Likewise.
970 * toplev.c (output_stack_usage): Handle -Wstack-usage.
971 * calls.c (expand_call): Test flag_stack_usage_info variable instead
973 (emit_library_call_value_1): Likewise.
974 * explow.c (allocate_dynamic_stack_space): Likewise.
975 * function.c (instantiate_virtual_regs ): Likewise.
976 (prepare_function_start): Likewise.
977 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
978 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
979 * config/arm/arm.c (arm_expand_prologue): Likewise.
980 (thumb1_expand_prologue): Likewise.
981 * config/avr/avr.c (expand_prologue): Likewise.
982 * config/i386/i386.c (ix86_expand_prologue): Likewise.
983 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
984 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
985 * config/mips/mips.c (mips_expand_prologue): Likewise.
986 * config/pa/pa.c (hppa_expand_prologue): Likewise.
987 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
988 * config/s390/s390.c (s390_emit_prologue): Likewise.
989 * config/sh/sh.c (sh_expand_prologue): Likewise.
990 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
991 * config/spu/spu.c (spu_expand_prologue): Likewise.
993 2011-05-25 Richard Guenther <rguenther@suse.de>
995 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
996 (gimple_canonical_types_compatible_p): Likewise.
998 2011-05-25 Jan Hubicka <jh@suse.cz>
1001 * ipa.c (function_and_variable_visibility): Only add to same
1002 comdat group list if DECL_ONE_ONLY.
1004 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1006 PR rtl-optimization/49014
1007 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1009 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1012 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1014 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1016 PR rtl-optimization/48757
1017 * ira-build.c (loop_with_eh_edge_p): Rename to
1018 loop_with_complex_edge_p, check edges on complexity, make function
1020 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1023 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1025 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1026 force flag_ira_share_save_slots to 0.
1028 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1030 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1031 (vt_initialize): Set PROLOGUE_BB unconditionally.
1032 Add block comment about CFA_BASE_RTX machinery.
1033 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1034 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1036 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1039 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1040 parsing of syntax error in ObjC instance variable lists. In
1041 particular, avoid an infinite loop if there is a stray ']'.
1042 Updated error message.
1044 2011-05-24 Ian Lance Taylor <iant@google.com>
1046 * godump.c (go_define): Don't accept a string immediately after
1049 2011-05-24 Ian Lance Taylor <iant@google.com>
1051 * godump.c (struct godump_container): Add invalid_hash field.
1052 (go_format_type): Return false if type is found in invalid_hash.
1053 (go_output_typedef): Add invalid type to invalid_hash.
1054 (go_finish): Create and delete invalid_hash.
1056 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1058 PR tree-optimization/46728
1059 * tree-ssa-math-opts.c (powi_table): New.
1060 (powi_lookup_cost): New.
1062 (powi_as_mults_1): New.
1063 (powi_as_mults): New.
1064 (gimple_expand_builtin_powi): New.
1065 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1066 (gate_cse_sincos): Remove sincos/cexp restriction.
1068 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1071 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1073 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1074 * mips-tdump.c: Likewise.
1076 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1079 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1080 add -mno-XXX. Handle FMA.
1082 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1084 PR rtl-optimization/48633
1085 * ira-build.c (loop_with_eh_edge_p): New function.
1086 (mark_loops_for_removal): Use it.
1088 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1090 PR rtl-optimization/48971
1091 * ira.c (setup_pressure_classes): Don't check register move cost
1092 for classes with one registers. Don't add pressure class if there
1093 is a pressure class with the same available hard registers.
1094 Check contains_reg_of_mode. Fix a typo in collecting
1095 temp_hard_regset. Ignore hard registers not belonging to a class.
1097 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1100 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1102 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1103 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1105 PR gcov-profile/48845
1106 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1108 2011-05-24 Richard Guenther <rguenther@suse.de>
1110 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1111 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1112 (gimple_types_compatible_p_1): Adjust.
1113 (iterative_hash_canonical_type): Do not bother about complete vs.
1115 (gimple_canonical_types_compatible_p): Likewise.
1117 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1119 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1121 2011-05-24 Richard Guenther <rguenther@suse.de>
1124 * gimple.c (gimple_register_canonical_type): Revert
1126 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1127 does not for a tree for the case where it matters. Cache
1128 pointer-type alias-sets.
1130 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1132 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1133 (OBJS): Remove options.o, opts-common.o and prefix.o.
1134 (OBJS-libcommon-target): New.
1135 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1136 (BACKEND): Include libcommon-target.a.
1137 (MOSTLYCLEANFILES): Include libcommon-target.a.
1138 (libcommon-target.a): New.
1139 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1142 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1144 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1145 parts of output shared with the driver.
1146 * optc-gen.awk: Don't generate parts of output not shared with the
1148 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1149 * doc/options.texi (SourcerInclude): Mention options-save.c.
1150 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1151 (OBJS): Add options-save.o.
1152 (options-save.c, options-save.o): New.
1153 (options.o): Update dependencies.
1154 (gcc-options.o): Remove.
1155 (mostlyclean): Remove options-save.c.
1157 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1160 * dbxout.c: Include cgraph.h.
1161 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1162 and without value expr, return NULL if no varpool node exists for
1163 it or if it is not needed.
1164 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1167 * c-decl.c (start_decl): Convert expr to void_type_node.
1169 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1171 PR rtl-optimization/48826
1172 * emit-rtl.c (try_split): When splitting a call that is followed
1173 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1175 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1177 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1178 parameters passed in memory prefer using DECL_INCOMING_RTL over
1179 the pseudos it will be copied into.
1181 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1184 * config/i386/i386.c (ix86_option_override_internal): Save the
1185 initial options after checking vzeroupper.
1187 2011-05-23 David Li <davidxl@google.com>
1189 PR tree-optimization/48988
1190 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1191 Initialize has_valid_pred for each pred chain.
1193 2011-05-23 Richard Guenther <rguenther@suse.de>
1195 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1196 (iterative_hash_gimple_type): Always hash type names.
1198 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1200 * c-typeck.c (build_function_call_vec): Tweak call to
1201 check_function_arguments.
1203 2011-05-23 Richard Guenther <rguenther@suse.de>
1205 PR tree-optimization/49115
1206 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1207 is not necessarily carried out, do not claim it kills the ref.
1208 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1210 2011-05-23 Richard Guenther <rguenther@suse.de>
1213 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1214 what pointer types we accept for folding.
1216 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1218 * gthr-gnat.c: Remove.
1219 * gthr-gnat.h: Remove.
1220 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1221 * config/t-freebsd (LIB2ADDEH): Likewise.
1222 * config/t-linux (LIB2ADDEH): Likewise.
1223 * config/t-sol2 (LIB2ADDEH): Likewise.
1224 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1225 * configure.ac (target_thread_file): Remove gnat handling.
1226 * configure: Regenerate.
1227 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1229 2011-05-23 Tristan Gingold <gingold@adacore.com>
1230 Eric Botcazou <ebotcazou@adacore.com>
1232 * gcov.c (create_file_names): If no object directory is specified,
1233 keep the directory of the file.
1235 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1237 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1238 * configure: Regenerate.
1240 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1243 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1244 failed and the comparison has a single bit signed type, use
1245 constm1_rtx instead of const1_rtx for true value.
1246 (do_store_flag): If ops->type is single bit signed type, disable
1247 signel bit test optimization and pass -1 instead of 1 as last
1248 parameter to emit_store_flag_force.
1250 2011-05-23 Tom de Vries <tom@codesourcery.com>
1253 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1255 (infer_loop_bounds_from_undefined): Use new function.
1257 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1259 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1260 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1261 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1263 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1265 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1267 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1268 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1271 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1273 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1275 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1277 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1278 UNSPEC_MOVE_PIC pattern.
1280 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1282 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1283 (sparc-*-rtems*): Likewise.
1284 (sparc64-*-elf*): Likewise.
1285 (sparc64-*-rtems*): Likewise.
1286 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1287 * config/sparc/t-crtin: New file.
1288 * config/sparc/t-sol2 (crti.o): Delete rule.
1290 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1291 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1292 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1293 (ENDFILE_SPEC): Add crtn.o.
1295 2011-05-22 Tom de Vries <tom@codesourcery.com>
1298 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1299 CODE_CONTAINS_STRUCT (TS_COMMON).
1301 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1304 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1305 only after deciding which mode to use.
1307 2011-05-22 Tom de Vries <tom@codesourcery.com>
1310 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1311 for call to get_shiftadd_cost.
1313 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1316 * config/i386/cpuid.h (bit_MMXEXT): New define.
1318 2011-05-22 Nick Clifton <nickc@redhat.com>
1320 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1321 initialisation of non-existant args[2] element. Use args[] array
1322 not arg[] array to pass arguments to build_function_type_list.
1324 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1326 PR tree-optimization/49087
1327 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1329 2011-05-21 Jason Merrill <jason@redhat.com>
1332 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1333 static storage duration.
1335 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1337 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1340 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1342 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1343 false if there are call-saved registers here...
1344 (sparc_can_use_return_insn_p): ...but here instead.
1345 (save_or_restore_regs): Fix thinko.
1346 (sparc_expand_prologue): Use current_function_is_leaf.
1347 (sparc_frame_pointer_required): Likewise.
1349 2011-05-21 Nick Clifton <nickc@redhat.com>
1352 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1354 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1356 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1357 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1359 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1361 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1362 * optc-gen.awk: Move common code to opt-read.awk.
1363 * opth-gen.awk: Likewise.
1364 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1366 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1368 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1370 2011-05-20 Tom de Vries <tom@codesourcery.com>
1373 * tree-ssa-loop-ivopts.c: Include expmed.h.
1374 (get_shiftadd_cost): New function.
1375 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1377 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1380 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1381 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1383 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1385 * Makefile.in: Update comment referring to $(OBJS-common).
1387 2011-05-20 Ian Lance Taylor <iant@google.com>
1389 * godump.c (go_output_typedef): Put enum constants in the macro
1390 hash table to avoid duplicate Go const definitions.
1392 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1394 * Makefile.in (LIBDEPS): Add libcommon.a.
1396 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1397 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1398 pretty-print.o and version.o.
1399 (OBJS-libcommon): New.
1400 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1401 (BACKEND): Add libcommon.a.
1402 (MOSTLYCLEANFILES): Likewise.
1404 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1405 (cpp$(exeext)): Likewise.
1406 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1407 pretty-print.o and input.o.
1408 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1409 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1411 (mips-tfile): Don't explicitly use version.o.
1412 (mips-tdump): Likewise.
1413 (gcov.o): Depend on $(DIAGNOSTIC_H).
1414 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1415 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1416 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1417 * gcov-dump.c: Include intl.h and diagnostic.h.
1418 (main): Initialize diagnostics.
1419 * gcov.c: Include diagnostic.h.
1421 (main): Initialize diagnostics.
1422 * lto-wrapper.c: Include diagnostic.h.
1423 (main): Initialize diagnostics.
1425 2011-05-20 Michael Matz <matz@suse.de>
1427 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1429 2011-05-20 Michael Matz <matz@suse.de>
1430 Richard Guenther <rguenther@suse.de>
1432 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1433 use lto_streamer_cache_append directly instead of returning a VEC.
1434 (preload_common_node): Remove.
1435 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1437 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1439 2011-05-20 Richard Guenther <rguenther@suse.de>
1441 PR tree-optimization/49079
1442 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1443 MEM_REFs correctly for the trailing array access detection.
1444 Special case constants the same way as decls for overall size
1447 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1449 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1452 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1454 PR tree-optimization/49073
1455 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1456 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1457 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1459 2011-05-20 Richard Guenther <rguenther@suse.de>
1462 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1463 of pointer types the same way the middle-end does.
1465 2011-05-20 Richard Guenther <rguenther@suse.de>
1467 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1468 or pointer-to chains. Delay all fixup to uniquify_nodes.
1470 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1472 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1473 (fma4_fmaddsub): Likewise
1475 2011-05-19 Jan Hubicka <jh@suse.cz>
1477 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1478 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1479 (type_pair_cache): New static var.
1480 (lookup_type_pair): Use fixed sized custom hash; make inline.
1481 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1482 calls of lookup_type_pair.
1483 (print_gimple_types_stats): Remove cache stats.
1484 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1487 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1489 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1490 when TARGET_RDRND is active.
1491 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1492 Generate dummy SImode target register when target is NULL.
1494 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1496 * config/arm/arm-fpus.def: New.
1497 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1499 * config/arm/arm-tables.opt: Regenerate.
1500 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1501 (arm_option_override): Don't decode FPU name to string here.
1502 * config/arm/arm.opt (mfpu=): Use Enum.
1503 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1504 Update dependencies.
1506 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1508 * collect2.c: Include diagnostic.h.
1509 (fatal_perror, fatal, error, fancy_abort): Remove.
1510 (main): Set progname. Call xmalloc_set_program_name and
1511 diagnostic_initialize.
1512 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1513 scan_libraries, resolve_lib_name): Call fatal_error instead of
1514 fatal and fatal_perror.
1515 * collect2.h (error, fatal, fatal_perror): Don't declare.
1516 * tlink.c: Include diagnostic-core.h.
1517 (recompile_files): Call fatal_error instead of fatal_perror.
1518 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1519 pretty-print.o and input.o.
1520 (collect2.o, tlink.o): Update dependencies.
1522 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1524 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1526 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1529 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1530 COMDAT group syntax, both SPARC and x86 variants.
1531 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1532 * configure: Regenerate.
1533 * config/sol2.h (TARGET_SOLARIS): Define.
1534 (PUSHSECTION_FORMAT): Remove.
1535 (SECTION_NAME_FORMAT): Define.
1536 * config/sol2.c: Include hashtab.h.
1537 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1538 expansion, using SECTION_NAME_FORMAT.
1539 (solaris_comdat_htab): New variable.
1540 (struct comdat_entry): Define.
1541 (comdat_hash): New function.
1542 (comdat_eq): New function.
1543 (solaris_elf_asm_comdat_section): New function.
1544 (solaris_define_comdat_signature): New function.
1545 (solaris_code_end): New function.
1546 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1547 (solaris_code_end): Declare.
1548 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1549 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1551 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1552 Remove ATTRIBUTE_UNUSED.
1553 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1554 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1555 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1556 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1557 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1558 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1559 (PUSHSECTION_FORMAT): Remove.
1560 (SECTION_NAME_FORMAT): Redefine.
1562 2011-05-19 Kai Tietz <ktietz@redhat.com>
1564 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1565 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1566 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1568 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1569 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1571 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1573 2011-05-19 Richard Guenther <rguenther@suse.de>
1576 * tree-object-size.c (addr_object_size): If the pointed-to
1577 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1579 2011-05-19 Richard Guenther <rguenther@suse.de>
1581 * gimple.c (gimple_types_compatible_p_1): Compare names of
1582 the types themselves.
1583 (iterative_hash_gimple_type): And hash them that way.
1584 (gimple_register_type_1): If we register a main variant properly
1585 initialize the leader to ourselves.
1587 2011-05-19 Tom de Vries <tom@codesourcery.com>
1590 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1591 get_loop_invariant_expr_id.
1592 (get_loop_invariant_expr_id): Use get_expr_id.
1593 (parm_decl_cost): New function.
1594 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1595 Improve bound cost estimation. Use different inv_expr_id for elim and
1598 2011-05-19 Tom de Vries <tom@codesourcery.com>
1601 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1602 cost_base.cost == 0.
1604 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1607 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1608 Properly handle load cast.
1610 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1612 PR tree-optimization/49039
1613 * tree-vrp.c (extract_range_from_binary_expr): For
1614 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1615 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1617 2011-05-18 Tom de Vries <tom@codesourcery.com>
1620 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1622 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1624 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1625 (*tls_global_dynamic_64): Ditto.
1626 (*tls_local_dynamic_base_32_gnu): Ditto.
1627 (*tls_local_dynamic_base_64): Ditto.
1628 (tls_initial_exec_64_sun): Ditto.
1630 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1632 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1633 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1635 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1636 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1637 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1638 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1639 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1640 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1641 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1643 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1645 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1646 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1647 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1648 target_thread_pointer, arm_structure_size_boundary, struct
1649 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1650 struct abi_name, arm_all_abis): Remove.
1651 (arm_option_override) Don't process most enumerated option values here.
1652 Don't process target_fpe_name here. Work with integer not string for
1653 structure size boundary; use separate diagnostics for each case.
1654 * config/arm/arm.h (enum float_abi_type, enum
1655 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1657 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1658 arm_structure_size_boundary): Remove.
1659 * config/arm/arm.opt (mabi=): Use Enum and Init.
1660 (arm_abi_type): New Enum and EnumValue entries.
1661 (mfloat-abi=): Use Enum and Init.
1662 (float_abi_type): New Enum and EnumValue entries.
1663 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1664 (mfp16-format=): Use Enum and Init.
1665 (arm_fp16_format_type): New Enum and EnumValue entries.
1666 (mstructure-size-boundary=): Use UInteger and Init.
1667 (mtp=): Use Enum and Init.
1668 (arm_tp_type): New Enum and EnumValue entries.
1670 2011-05-18 Richard Guenther <rguenther@suse.de>
1672 PR tree-optimization/49018
1673 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1674 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1675 gimple_has_side_effects.
1677 2011-05-18 Richard Guenther <rguenther@suse.de>
1679 * gimple.c (gimple_register_type_1): New function, split out from ...
1680 (gimple_register_type): ... here. Avoid infinite recursion.
1682 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1684 PR tree-optimization/41881
1685 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1686 reduction_chains along with a macro for its access.
1687 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1688 (destroy_loop_vec_info): Free reduction chains.
1689 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1690 (vect_is_slp_reduction): New function.
1691 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1692 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1693 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1694 definition types for reduction chains.
1695 (vect_supported_load_permutation_p): Don't allow permutations for
1697 (vect_analyze_slp_instance): Support reduction chains.
1698 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1699 (vect_get_constant_vectors): Handle reduction chains.
1700 (vect_schedule_slp_instance): Mark the first statement of the
1701 reduction chain as reduction.
1703 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1705 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1706 names for group elements access.
1707 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1708 reduction chains as well. Remove data reference and interleaving
1709 related words from the fields names.
1710 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1712 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1713 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1714 vect_update_interleaving_chain, vect_same_range_drs,
1715 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1716 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1717 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1718 vect_analyze_group_access, vect_analyze_data_ref_access,
1719 vect_create_data_ref_ptr, vect_transform_strided_load,
1720 vect_record_strided_load_vectors): Likewise.
1721 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1722 vect_model_load_cost, vectorizable_store, vectorizable_load,
1723 vect_remove_stores, new_stmt_vec_info): Likewise.
1724 * tree-vect-slp.c (vect_build_slp_tree,
1725 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1727 2011-05-18 Richard Guenther <rguenther@suse.de>
1730 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1731 operand verification.
1732 (verify_gimple_assign_binary): Likewise.
1733 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1734 to non-1-precision BOOLEAN_TYPEs.
1736 2011-05-18 Tom de Vries <tom@codesourcery.com>
1739 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1741 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1743 PR tree-optimization/49000
1744 * tree-ssa.c (execute_update_addresses_taken): Call
1745 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1746 be rewritten and decl has been marked for renaming, reset
1749 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1751 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1752 enum_opts_set when testing if attributes have set -mfpmath=.
1754 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1756 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1758 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1760 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1762 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1763 id.transform_lang_insert_block with NULL.
1765 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1767 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1768 (output_fp_compare): Change args 3 and 4 to bool.
1769 (ix86_expand_call): Change arg 6 to bool.
1770 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1771 (ix86_attr_length_vex_default): Change arg 3 to bool.
1772 * config/i386/i386.md: Update all uses.
1773 * config/i386/i386.c: Ditto.
1774 (ix86_flags_dependent): Change return type to bool.
1776 2011-05-17 Richard Guenther <rguenther@suse.de>
1778 * gimple.c (type_hash_pair_compare): Fix comparison.
1780 2011-05-17 Richard Guenther <rguenther@suse.de>
1782 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1783 case some more, fix final hash value of the non-singleton case.
1785 2011-05-17 Richard Guenther <rguenther@suse.de>
1789 2011-05-16 Richard Guenther <rguenther@suse.de>
1791 * gimple.c (gimple_types_compatible_p_1): Use names of the
1792 type itself, not its main variant.
1793 (iterative_hash_gimple_type): Likewise.
1795 2011-05-17 Richard Guenther <rguenther@suse.de>
1797 * gimple.c (gimple_register_canonical_type): Use the main-variant
1798 leader for computing the canonical type.
1800 2011-05-17 Nick Clifton <nickc@redhat.com>
1802 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1805 * config/rx/rx.md: Add peephole to remove redundant extensions
1807 (bitset_in_memory): Use rx_restricted_mem_operand.
1808 (bitinvert_in_memory): Likewise.
1809 (bitclr_in_memory): Likewise.
1811 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1812 Nick Clifton <nickc@redhat.com>
1814 * config/rx/rx.md: Add peepholes to match a register move followed
1815 by a comparison of the moved register. Replace these with an
1816 addition of zero that does both actions in one instruction.
1818 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1821 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1822 predicate to allow CONST_INT.
1823 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1825 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1827 * opts-common.c (opt_enum_arg_to_value): New.
1828 * opts.h (opt_enum_arg_to_value): Declare.
1829 * config/i386/i386.opt (fpmath): Remove.
1830 (mfpmath=): Use Enum, Init and Save.
1831 (fpmath_unit): New Enum and EnumValue entries.
1832 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1833 name for function fpmath state.
1834 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1835 * config/i386/i386.c: Include diagnostic.h.
1836 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1837 (ix86_target_string): Take enum fpmath_unit value instead of string.
1838 (ix86_debug_options): Update call to ix86_target_string.
1839 (ix86_option_override_internal): Don't process fpmath strings here.
1840 (x86_function_specific_save, ix86_function_specific_restore):
1841 Don't handle fpmath state specially.
1842 (ix86_function_specific_print): Pass fpmath state to
1843 ix86_target_string instead of printing in this function.
1844 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1845 Handle enum attributes.
1846 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1847 (ix86_valid_target_attribute_tree): Update option_strings
1848 handling. Handle fpmath as enum option.
1849 (ix86_can_inline_p): Update field names for function fpmath state.
1850 (ix86_expand_builtin): Update call to ix86_target_string.
1851 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1852 (ix86_fpmath): Remove.
1853 * config/i386/t-i386 (i386.o): Update dependencies.
1855 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1857 PR preprocessor/48677
1858 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1859 from decoded_options[0], not from itself.
1861 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1863 * config/i386/constraints.md (z): New constraint.
1864 * config/i386/i386.c (c): New mode attribute.
1865 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1866 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1867 constraint for operand 0.
1868 (*call_vzeroupper): Ditto.
1869 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1870 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1871 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1872 Use "lzm" constraint for operand 0.
1873 (*call_pop_vzeroupper): Ditto.
1874 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1875 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1876 constraint for operand 0.
1877 (*sibcall_vzeroupper): Ditto.
1878 (*sibcall_rex64_ms_sysv): Ditto.
1879 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1880 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1881 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1882 (*sibcall_pop_vzeroupper): Ditto.
1883 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1884 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1885 mode iterator. Use "<c>zm" constraint for operand 1.
1886 (*call_value_vzeroupper): Ditto.
1887 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1889 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1890 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1891 *call_value_pop_1. Use "lzm" constraint for operand 1.
1892 (*call_value_pop_vzeroupper): Ditto.
1893 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1894 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1895 mode iterator. Use "Uz" constraint for operand 1.
1896 (*sibcall_value_vzeroupper): Ditto.
1897 (*sibcall_value_rex64_ms_sysv): Ditto.
1898 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1899 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1900 constraint for operand 1.
1901 (*sibcall_value_pop_vzeroupper): Ditto.
1902 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1903 and "z" constraint for operand 2.
1904 (*tls_global_dynamic_32_gnu): Ditto.
1905 (*tls_local_dynamic_base_32_gnu): Ditto.
1906 (*tls_local_dynamic_base_64): Ditto.
1907 (*tls_local_dynamic_32_once): Ditto.
1908 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1910 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1912 2011-05-16 Richard Guenther <rguenther@suse.de>
1914 * gimple.c (gimple_types_compatible_p_1): Use names of the
1915 type itself, not its main variant.
1916 (iterative_hash_gimple_type): Likewise.
1918 2011-05-16 Richard Guenther <rguenther@suse.de>
1920 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1921 always visit pointer target and function result and argument types.
1923 2011-05-16 Jason Merrill <jason@redhat.com>
1926 * tree-inline.c (copy_statement_list): Put back recursion.
1928 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1932 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1933 * config/avr/avr.md ("*ior<mode>qi.byte0",
1934 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1936 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1939 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1940 register is needed for a function argument.
1942 2011-05-16 Richard Guenther <rguenther@suse.de>
1944 * gimple.c (struct type_hash_pair): New type.
1945 (type_hash_pair_compare): New function.
1946 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1948 2011-05-16 Revital Eres <revital.eres@linaro.org>
1950 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1952 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1954 * config/i386/i386.md (floating point move splitters): Fix
1955 usage of standard_80387_constant_p.
1956 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1958 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1960 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1962 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1964 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1965 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1966 (tree_ssa_lim_finalize): Likewise.
1968 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1970 * config/i386/constraint.md (Yd, Yx): New register constraints.
1971 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1972 Yd conditional register constraint.
1973 (*movtf_internal): Use standard_sse_constant_opcode.
1974 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1975 Yx conditional register constraint.
1976 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1977 Yd conditional register constraint. Use standard_sse_constant_p to
1978 check for valid SSE constants and call standard_sse_constant_opcode to
1980 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1981 constants and call standard_sse_constant_opcode to output SSE insn.
1982 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1983 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1984 optimize_size is set.
1985 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1987 2011-05-14 Tobias Burnus <burnus@net-b.de>
1989 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1991 2011-05-13 Martin Jambor <mjambor@suse.cz>
1993 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1994 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1995 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1996 (evaluate_conditions_for_ipcp_clone): Removed.
1997 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1998 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1999 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2001 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2003 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2004 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2005 lieu of MAY_HAVE_DEBUG_STMTS.
2006 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2007 debug statements if !MAY_HAVE_DEBUG_STMTS.
2009 2011-05-13 Martin Thuresson <martint@google.com>
2011 PR gcov-profile/47793
2012 * libgcov.c (gcov_exit): Support relative profile paths.
2013 * doc/invoke.texi (-fprofile-dir): Update for above change.
2015 2011-05-13 Richard Guenther <rguenther@suse.de>
2017 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2018 type-pair caching, do not compare hashes.
2020 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2023 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2024 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2026 2011-05-13 Kai Tietz <ktietz@redhat.com>
2028 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2029 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2030 compatible type for TRUTH_NOT_EXPR.
2032 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2034 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2035 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2036 can_create_pseudo_p ().
2038 2011-05-13 Richard Guenther <rguenther@suse.de>
2041 * gimple.c (iterative_hash_gimple_type): Revert change in
2042 pointer target and function result and argument hashing.
2044 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2046 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2047 (*movxf_internal_nointeger): Ditto.
2048 (*movdf_internal_rex64): Ditto.
2049 (*movdf_internal): Ditto.
2050 (*movdf_internal_nointeger): Ditto.
2051 (*movsf_internal): Ditto.
2052 (sincos splitters): Use can_create_pseudo ().
2054 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2056 * config/i386/i386-opts.h: New.
2057 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2058 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2059 ix86_section_threshold): Remove.
2060 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2061 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2063 (ix86_option_override_internal): Don't decode strings for options
2064 other than -march=, -mtune= and -mfpmath=. Don't allow for
2065 __attribute__ uses in remaining diagnostics for options with
2066 string arguments. Don't check for integer arguments being negative.
2067 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2068 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2069 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2070 ix86_branch_cost, ix86_section_threshold): Remove.
2071 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2073 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2075 (masm=): Use Enum and Init.
2076 (asm_dialect): New Enum and EnumValue entries.
2077 (mbranch-cost=): Use UInteger.
2078 (mlarge-data-threshold=): Use UInteger and Init.
2079 (mcmodel=): Use Enum and Init.
2080 (cmodel): New Enum and EnumValue entries.
2081 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2082 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2083 mregparm=): Use UInteger.
2084 (mstringop-strategy=): Use Enum and Init.
2085 (stringop_alg): New Enum and EnumValue entries.
2086 (mtls-dialect=): Use Enum and Init.
2087 (tls_dialect): New Enum and EnumValue entries.
2088 (mabi=): Use Enum and Init.
2089 (calling_abi): New Enum and EnumValue entries.
2090 (mveclibabi=): Use Enum and Init.
2091 (ix86_veclibabi): New Enum and EnumValue entries.
2093 2011-05-13 Nick Clifton <nickc@redhat.com>
2095 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2096 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2098 2011-05-13 Kai Tietz <ktietz@redhat.com>
2101 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2102 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2103 (gimple_boolify): Check for cast for boolean_type_node instead for
2106 2011-05-13 Richard Guenther <rguenther@suse.de>
2108 PR tree-optimization/48172
2109 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2110 multiplying by number of iterations for equal step.
2111 (vect_create_cond_for_alias_checks): Likewise.
2113 2011-05-13 Andreas Schwab <schwab@redhat.com>
2115 * configure.ac: Use AS_HELP_STRING throughout.
2116 * configure: Regenerate.
2118 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2120 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2121 (ix86_emit_restore_regs_using_mov): Likewise.
2122 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2124 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2126 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2127 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2128 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2129 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2130 RTX_OK_FOR_OLO10_P): ...here.
2131 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2134 2011-05-12 Kai Tietz <ktietz@redhat.com>
2136 * gimplify.c (gimple_boolify): Re-boolify expression
2137 arguments even if expression type is of kind BOOLEAN_TYPE.
2138 (gimplify_boolean_expr): Removed.
2139 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2140 and XOR. Additional take care that we keep expression's type.
2141 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2142 of TRUTH_AND|OR|XOR_EXPR.
2144 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2146 PR tree-optimization/48975
2147 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2148 on all bbs here and free and clear ifc_bbs at the end.
2150 2011-05-12 Richard Guenther <rguenther@suse.de>
2152 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2153 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2154 until after simple checks.
2155 (gimple_types_compatible_p): Likewise.
2156 (iterative_hash_gimple_type): Always hash pointer targets
2157 and function return and argument types.
2158 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2159 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2160 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2161 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2162 completely in the simple compare section.
2163 (gimple_register_canonical_type): Query the cache again after
2166 2011-05-12 Richard Guenther <rguenther@suse.de>
2168 PR tree-optimization/48172
2169 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2170 the number of iterations from the segment size calculation.
2171 (vect_create_cond_for_alias_checks): Adjust.
2173 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2176 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2177 if validate_subreg fails.
2179 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2181 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2182 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2185 2011-05-12 DJ Delorie <dj@redhat.com>
2187 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2188 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2189 created builtin into rx_builtins array.
2190 (rx_builtin_decl): New function.
2191 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2193 2011-05-12 DJ Delorie <dj@redhat.com>
2194 Nick Clifton <nickc@redhat.com>
2196 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2197 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2198 (rx_is_legitimate_address): Add pre-decrement and post-increment
2199 addressing in HImode and QImode. Fix test for out of range
2201 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2202 (rx_align_for_label): Test label before extracting its usage count.
2203 (rx_adjust_insn_lengths): Fix selection of insn codes.
2204 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2206 2011-05-11 Jason Merrill <jason@redhat.com>
2208 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2210 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2212 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2213 reindent the subsequent block.
2215 2011-05-11 Satoru Takabayashi <satorux@google.com>
2216 Paul Pluzhnikov <ppluzhnikov@google.com>
2218 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2219 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2220 * config.in: Add LINKER_HASH_STYLE.
2221 * configure.ac: Add --with-linker-hash-style.
2222 * configure: Regenerate.
2224 2011-05-11 Richard Guenther <rguenther@suse.de>
2227 * gimple.c (iterative_hash_canonical_type): Fix typo.
2229 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2231 * config/i386/i386.c (legitimize_tls_address)
2232 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2233 expanders directly for TARGET_GNU2_TLS. Determine pic and
2234 __tls_get_addr symbol reference here. Update call to
2235 gen_tls_global_dynamic_{32,64} for added arguments.
2236 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2237 expanders directly for TARGET_GNU2_TLS. Determine
2238 __tls_get_addr symbol reference here. Update call to
2239 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2240 unique UNSPEC REG_EQUIV to libcall block.
2241 (ix86_tls_get_addr): Declare static.
2242 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2243 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2244 Do not determine pic and __tls_get_addr symbol reference here. Do not
2245 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2246 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2247 (tls_global_dynamic_64): Add operand 2. Do not determine
2248 __tls_get_addr symbol reference here. Do not call
2249 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2250 (tls_local_dynamic_base64): Ditto for operand 1.
2252 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2254 * function.c (expand_function_start): Initialize stack_check_probe_note
2255 only if the generic stack checking mechanism is used.
2257 2011-05-11 Richard Guenther <rguenther@suse.de>
2259 PR tree-optimization/15256
2260 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2261 (A & B) | C, combine (A op CST1) op CST2.
2262 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2263 visit assigns that have uses.
2265 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2267 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2268 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2269 (unpack_ts_type_common_value_fields): ...this. Update comment.
2270 (unpack_value_fields): Adjust for renaming.
2271 (lto_input_ts_type_tree_pointers): Split into...
2272 (lto_input_ts_type_common_tree_pointer): ...this and...
2273 (lto_input_ts_type_non_common_tree_pointers): ...this.
2274 (lto_input_tree_pointers): Adjust for above split.
2275 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2276 (pack_ts_type_common_value_fields): ...this. Update comment.
2277 (lto_output_ts_type_tree_pointers): Split into...
2278 (lto_output_ts_type_common_tree_pointers): ...this and...
2279 (lto_output_ts_type_non_common_tree_pointers): ...this.
2280 (lto_output_tree_pointers): Adjust for above split.
2281 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2282 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2283 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2284 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2286 (struct tree_type): Split into...
2287 (struct tree_type_common: ...this and...
2288 (struct tree_type_with_lang_specific): ...this and...
2289 (struct tree_type_non_common): ...this. Adjust accessor macros
2291 (TYPE_VALUES_RAW): Define.
2292 (union tree_node): Update for above changes.
2293 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2295 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2296 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2297 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2298 * treestructu.def (TS_TYPE): Remove.
2299 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2302 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2305 * tree-ssa.c (reset_debug_uses): New function.
2306 * tree-flow.h (reset_debug_uses): New prototype.
2307 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2308 * tree-loop-distribution.c (generate_loops_for_partition): Call
2309 reset_debug_uses on the stmts that will be removed. Keep around
2310 all debug stmts, don't count them as bits in partition bitmap.
2311 (generate_builtin): Don't count debug stmts or labels as bits in
2314 2011-05-11 Richard Guenther <rguenther@suse.de>
2316 * gimple.c (gimple_type_hash_1): Merge with ...
2317 (gimple_type_hash): ... this.
2318 (gtc_visit): Remove mode parameter and simplify accordingly.
2319 (gimple_types_compatible_p_1): Likewise.
2320 (gimple_types_compatible_p): Likewise.
2321 (iterative_hash_gimple_type): Likewise.
2323 (gimple_type_eq): Adjust.
2325 2011-05-11 Revital Eres <revital.eres@linaro.org>
2327 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2328 enters the branch create an anti edge in the opposite direction
2329 to prevent the creation of reg-moves.
2330 * modulo-sched.c: Adjust comment to reflect the fact we are
2331 scheduling closing branch.
2332 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2333 (stage_count): New field in struct partial_schedule.
2334 (calculate_stage_count): New function.
2335 (normalize_sched_times): Rename to reset_sched_times and handle
2336 incrementing the sched time of the nodes by a constant value
2337 passed as parameter.
2338 (duplicate_insns_of_cycles): Skip closing branch.
2339 (sms_schedule_by_order): Schedule closing branch.
2340 (ps_insn_find_column): Handle closing branch.
2341 (sms_schedule): Call reset_sched_times and adjust the code to
2342 support scheduling of the closing branch.
2343 (ps_insert_empty_row): Update calls to normalize_sched_times
2344 and rotate_partial_schedule functions.
2346 2011-05-11 Richard Guenther <rguenther@suse.de>
2349 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2351 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2353 * opts.c (finish_options): Move warning settings from process_options.
2354 * toplev.c (process_options): Move warning settings to finish_options.
2356 2011-05-11 Richard Guenther <rguenther@suse.de>
2358 PR tree-optimization/18041
2359 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2360 (simplify_bitwise_binary): ... this. Handle operand conversions
2361 by applying them to the result instead.
2362 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2364 2011-05-11 Richard Guenther <rguenther@suse.de>
2366 * gimple.c (gimple_canonical_types_compatible_p): Split out
2367 from gimple_types_compatible_p and friends. Do not recurse
2368 to pointed-to types.
2369 (gimple_canonical_type_eq): Use it.
2370 (iterative_hash_canonical_type): Split out from
2371 iterative_hash_gimple_type and friends. Do not recurse
2372 to pointed-to types.
2373 (gimple_canonical_type_hash): Use it, allocate the hash here.
2375 2011-05-11 Revital Eres <revital.eres@linaro.org>
2377 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2380 2011-05-11 Revital Eres <revital.eres@linaro.org>
2382 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2383 instead of PREV_INSN.
2385 2011-05-11 Revital Eres <revital.eres@linaro.org>
2387 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2388 * loop-doloop.c (doloop_condition_get): Likewise.
2389 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2391 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2393 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2395 * tree.def (CASE_LABEL_EXPR): Add an operand.
2396 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2398 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2400 * c-decl.c (c_override_global_bindings_to_false): Remove.
2401 (global_bindings_p): Don't check
2402 c_override_global_bindings_to_false.
2403 * c-tree.h (c_override_global_bindings_to_false): Remove.
2404 * c-typeck.c (composite_type): Don't set
2405 c_override_global_bindings_to_false.
2407 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2409 PR target/48857, 48495
2410 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2412 (VSX_MOVE_MODE): Ditto.
2413 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2414 VSX vector types. Add V2DImode.
2415 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2416 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2417 (MODES_TIEABLE_P): Ditto.
2419 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2420 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2422 (init_cumulative_args): Ditto.
2423 (rs6000_function_arg_boundary): Ditto.
2424 (rs6000_function_arg_advance_1): Ditto.
2425 (rs6000_function_arg): Ditto.
2426 (rs6000_function_ok_for_sibcall): Ditto.
2427 (emit_frame_save): Ditto.
2428 (rs6000_function_value): Ditto.
2429 (rs6000_libcall_value): Ditto.
2431 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2433 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2434 i386/darwin-lib.h to $libgcc_tm_file.
2435 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2437 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2439 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2441 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2443 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2444 * config/rs6000/rs6000-tables.opt: New file (generated).
2445 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2446 rs6000/rs6000-tables.opt to extra_options.
2447 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2448 * config/rs6000/rs6000.c (rs6000_select): Remove.
2449 (processor_target_table): Move contents to rs6000-cpus.def.
2450 (darwin_rs6000_override_options): Check
2451 global_options_set.x_rs6000_cpu_index instead of
2452 rs6000_select[1].string.
2453 (rs6000_option_override_internal): Likewise.
2454 (rs6000_handle_option): Don't assert that global structures are in
2455 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2456 (rs6000_default_cpu): New variable.
2457 (rs6000_file_start): Set it instead of local default_cpu. Check
2458 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2459 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2460 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2461 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2462 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2463 rs6000_select): Remove.
2464 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2466 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2467 * config/rs6000/t-rs6000
2468 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2469 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2470 global_options_set.x_rs6000_cpu_index instead of
2471 rs6000_select[1].string.
2472 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2473 global_options_set.x_rs6000_cpu_index instead of
2474 rs6000_select[1].string.
2476 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2478 * config.gcc (libgcc_tm_file): Define instead of including files
2479 from ../../libgcc/config/ in tm_file.
2480 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2481 * configure: Regenerate.
2482 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2483 libgcc_tm.h, cs-libgcc_tm.h): New.
2484 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2485 (clean): Remove libgcc_tm.h.
2486 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2487 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2488 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2490 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2493 * config/avr/avr.c (avr_ret_register): Return unsigned int
2495 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2496 it to avr_libcall_value.
2497 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2499 (avr_expand_binop_builtin): Ditto.
2500 (avr_expand_unop_builtin): Ditto.
2502 2011-05-10 DJ Delorie <dj@redhat.com>
2504 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2505 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2506 * config/rx/rx.c (rx_align_for_label): Add label and
2507 uses_threshold parameters. Do not align when the label is not
2509 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2511 2011-05-10 Richard Guenther <rguenther@suse.de>
2513 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2514 a series of conversions and apply foldings similar to what
2516 (tree_ssa_forward_propagate_single_use_vars): Call it.
2518 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2520 PR tree-optimization/48611
2521 PR tree-optimization/48794
2522 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2523 referenced from RESX or EH_DISPATCH arguments.
2526 * dfp.c (decimal_to_decnumber): Handle conversion from
2527 dconst{1,2,m1,half}.
2529 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2531 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2532 for !flag_prefer_avx128.
2533 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2535 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2537 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2538 (fold_ternary_loc): Use expr_location_or.
2540 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2543 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2544 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2545 Pmode and mem_mode is not VOIDmode.
2547 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2549 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2550 TYPE_QUAL_RESTRICT): Convert to enum.
2552 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2554 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2555 (const_pow2_1_to_8_operand): Ditto.
2556 (const_pow2_1_to_128_operand): Ditto.
2557 (const_pow2_1_to_32768_operand): Ditto.
2558 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2559 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2560 in insn constraint to check integer value of operand 3.
2561 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2563 (PINSR_MODE): New mode iterator.
2564 (sse2p4_1): New mode attribute.
2565 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2566 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2567 iterator. Use const_int_operand instead of
2568 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2569 exact_log2 in insn constraint to check integer value of operand 3.
2571 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2573 * config/i386/sse.md (blendbits): Remove mode attribute.
2574 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2575 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2576 Check integer value of operand 3 in insn constraint.
2578 2011-05-09 Richard Guenther <rguenther@suse.de>
2580 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2582 (lto_symtab_merge): Likewise. Do not register types here.
2583 (lto_symtab_merge_decls_2): Likewise.
2584 (lto_symtab_merge_decls_1): Likewise.
2585 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2586 * gimple.c (enum gtc_mode): Declare.
2587 (gimple_types_compatible_p): Make static.
2589 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2591 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2592 temporary register to match Pmode.
2594 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2596 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2597 and *vec_concatv4si_1_avx.
2599 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2601 PR rtl-optimization/48927
2602 * ira-conflicts.c (commutative_constraint_p): Use
2603 recog_data.alternative_enabled_p to disable alternatives where
2604 "enabled" attribute is false.
2605 (get_dup_num): Ditto.
2606 * ira-lives.c (single_reg_class): Ditto.
2607 (ira_implicitly_set_insn_hard_regs): Ditto.
2609 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2611 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2612 (dataflow_set_preserve_mem_locs): Likewise.
2614 2011-05-09 Philipp Thomas <pth@suse.de>
2616 * config/mep/mep.c (mep_validate_vliw): Syntax description
2617 should not be translated.
2619 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2621 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2622 * config/mips/mips-tables.opt: New file (generated).
2623 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2624 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2625 MIPS_ARCH_OPTION_NATIVE): Define.
2626 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2628 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2629 mips_parse_cpu): Remove.
2630 (mips_cpu_info_from_opt, mips_default_arch): New.
2631 (mips_handle_option): Don't assert that global structures are in
2632 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2633 (mips_option_override): Use new variables and functions to set
2634 state of these options. Use strcmp to check for individual CPU names.
2635 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2637 * config/mips/mips.opt (march=): Use ToLower and Enum.
2638 (mips): Use ToLower, Enum and Var.
2639 (mtune=): Use ToLower and Enum.
2640 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2642 2011-05-08 Jan Hubicka <jh@suse.cz>
2644 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2645 Arrange type pairs to be UID ordered.
2646 (gimple_lookup_type_leader): Make inline.
2648 2011-05-09 Nick Clifton <nickc@redhat.com>
2651 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2655 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2658 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2660 * combine.c (simplify_comparison): Abstract out parts into...
2661 (simplify_compare_const): ... new function.
2662 (try_combine): Generalize parallel arithmetic/compare combining
2663 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2665 2011-05-08 Jan Hubicka <jh@suse.cz>
2667 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2668 (cgraph_create_virtual_clone): Call hooks once virtual clone
2670 * cgraph.h (cgraph_clone_node): Update prototype.
2671 * ipa-cp.c (ipcp_estimate_growth): Use
2672 estimate_ipcp_clone_size_and_time.
2673 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2674 * lto-cgraph.c (input_node): Update.
2675 * ipa-inline.c (recursive_inlining): Update.
2676 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2677 (evaluate_conditions_for_known_args): Break out from ...
2678 (evaluate_conditions_for_edge): ... here.
2679 (evaluate_conditions_for_ipcp_clone): New function.
2680 (inline_node_duplication_hook): Update clone summary based
2682 (estimate_callee_size_and_time): Rename to ...
2683 (estimate_node_size_and_time): take NODE instead of EDGE;
2684 take POSSIBLE_TRUTHS as argument.
2685 (estimate_callee_size_and_time): Update.
2686 (estimate_ipcp_clone_size_and_time): New function.
2687 (do_estimate_edge_time): Update.
2689 2011-05-08 Richard Guenther <rguenther@suse.de>
2693 * expmed.c (expand_shift_1): Compute adjusted constant shift
2696 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2698 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2700 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2702 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2704 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2706 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2708 2011-05-07 Jan Hubicka <jh@suse.cz>
2710 * ipa-inline-transform.c (inline_call): Account when program size
2712 * ipa-inline.c (relative_time_benefit): New function.
2713 (edge_badness): Reorganize to be power 2 based; fix thinko when
2714 computing badness for negative growth; update comments to match
2715 reality; better dumps.
2717 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2719 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2720 type to bool and adjust comment.
2721 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2722 (fold_mathfn_compare): Remove calls to global_bindings_p.
2723 (fold_inf_compare): Likewise.
2724 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2725 * c-tree.h (global_bindings_p): Adjust prototype.
2726 * c-decl.c (global_bindings_p): Return bool and simplify.
2728 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2730 PR tree-optimization/48837
2731 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2732 when accumulator transformation is performed.
2734 2011-05-06 Jan Hubicka <jh@suse.cz>
2736 * i386.h (ix86_tune_indices): Add
2737 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2738 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2739 * i386.c (initial_ix86_tune_features): Add
2740 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2741 (software_prefetching_beneficial_p): Remove predicate.
2742 (ix86_option_override_internal): Use new macro.
2744 2011-05-06 Jan Hubicka <jh@suse.cz>
2746 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2748 2011-05-06 Jan Hubicka <jh@suse.cz>
2750 * cgraph.c (cgraph_add_thunk): Create real function node instead
2751 of alias node; finalize it and mark needed/reachale; arrange visibility
2752 to be right and add it into the corresponding same comdat group list.
2753 (dump_cgraph_node): Dump thunks.
2754 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2755 cgraph_function_with_gimple_body_p,
2756 cgraph_first_function_with_gimple_body,
2757 cgraph_next_function_with_gimple_body): New functions.
2758 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2760 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2761 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2762 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2763 devirtualization when optimizing.
2764 (verify_cgraph_node): Verify thunks.
2765 (cgraph_analyze_function): Analyze thunks.
2766 (cgraph_mark_functions_to_output): Output thunks only in combination
2767 with function they are assigned to.
2768 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2769 alias into normal node.
2770 (assemble_thunks): New functoin.
2771 (cgraph_expand_function): Use it.
2772 * lto-cgraph.c (lto_output_node): Stream thunks.
2773 (input_overwrite_node): Stream in thunks.
2774 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2775 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2776 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2777 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2778 (inline_analyze_function): Do not care about thunk jump functions.
2779 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2780 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2781 cgraph_function_with_gimple_body_p.
2782 * passes.c (do_per_function_toporder): Use
2783 cgraph_function_with_gimple_body_p.
2784 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2785 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2786 (function_called_by_processed_nodes_p): Likewise.
2788 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2790 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2791 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2793 (mabi=): Replace with separate entries for mabi=altivec,
2794 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2795 mabi=ieeelongdouble and mabi=ibmlongdouble.
2796 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2797 check for -mabi=spe without SPE ABI support here.
2798 (rs6000_handle_option): Replace OPT_mabi_ handling with
2799 OPT_mabi_altivec and OPT_mabi_spe handling.
2801 2011-05-06 Cary Coutant <ccoutant@google.com>
2803 * dwarf2out.c (contains_subprogram_definition): New function.
2804 (should_move_die_to_comdat): Call it.
2806 2011-05-06 Jeff Law <law@redhat.com>
2808 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2809 remove_ctrl_stmt_and_useless_edges.
2810 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2811 (fixup_template_block, thread_single_edge): Likewise.
2812 (mark_threaded_blocks): Use THREAD_TARGET.
2814 2011-05-06 Alan Modra <amodra@gmail.com>
2817 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2818 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2820 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2822 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2823 constraint modifier to "r".
2825 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2827 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2828 fall through for OPT_mcmodel_.
2830 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2832 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2834 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2836 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2839 * config/arm/arm.opt (marm): Document it.
2840 (mthumb): Reject negative variant.
2842 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2845 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2846 Fix typo in "ccvt" variable name.
2848 2011-05-06 Tristan Gingold <gingold@adacore.com>
2851 * config/vms/vms-ar.c (main): Remove cwd variable.
2853 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2856 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2858 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2860 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2861 * gimplify.c (gimplify_switch_expr): Likewise.
2862 * omp-low.c (expand_omp_sections): Likewise.
2863 * tree-eh.c (lower_try_finally_switch): Likewise.
2864 (lower_eh_dispatch): Likewise.
2865 * tree.h (build_case_label): Declare.
2866 * tree.c (build_case_label): Define.
2868 2011-05-05 Jason Merrill <jason@redhat.com>
2871 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2872 (copy_statement_list): Don't recurse.
2873 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2876 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2878 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2879 through from -mfpu= handling.
2880 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2882 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2884 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2887 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2889 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2891 (hppa[12]*-*-hpux11*): Ditto.
2892 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2893 * config/ia64/hpux-unix2003.h: New.
2894 * config/pa/pa-hpux1131.opt: New.
2895 * config/pa/pa-hpux1131.h: New.
2896 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2897 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2898 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2900 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2903 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2904 instead of mode as 3rd argument to recursive call.
2905 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2906 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2908 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2909 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2910 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2911 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2913 2011-05-05 Julian Brown <julian@codesourcery.com>
2915 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2916 parenthesis in D-register case.
2918 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2920 * opt-functions.awk (var_type_struct): Handle Enum options.
2921 * optc-gen.awk: Don't check range of variables of character type.
2922 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2923 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2924 rs6000_sdata_name, rs6000_explicit_options): Remove.
2925 (rs6000_option_override_internal): Check for -malign-power here.
2926 Use global_options_set instead of rs6000_explicit_options.
2927 (rs6000_parse_fpu_option): Remove.
2928 (rs6000_handle_option): Access variables via opts and opts_set
2929 pointers. Use error_at and warning_at. Add fall-through
2930 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2931 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2932 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2933 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2934 here. Don't use rs6000_parse_fpu_option.
2935 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2936 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2937 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2939 (mspe): Use Var and Save.
2940 (mtraceback=): Use Enum and Var.
2941 (rs6000_traceback_type): New Enum and EnumValue entries.
2942 (mfloat-gprs=): Use Enum, Var and Save.
2943 (rs6000_float_gprs): New Enum and EnumValue entries.
2944 (mlong-double-): use Var and Save.
2945 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2946 (malign-): Use Enum and Var.
2947 (rs6000_alignment_flags): New Enum and EnumValue entries.
2949 (fpu_type_t): New Enum and EnumValue entries.
2950 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2951 global_options_set instead of rs6000_explicit_options.
2952 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2953 global_options_set instead of rs6000_explicit_options.
2954 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2955 global_options_set instead of rs6000_explicit_options.
2956 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2957 global_options_set instead of rs6000_explicit_options.
2958 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2959 global_options_set instead of rs6000_explicit_options.
2960 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2961 global_options_set instead of rs6000_explicit_options.
2962 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2964 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2965 global_options_set instead of rs6000_explicit_options.
2966 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2967 (rs6000_cmodel): New Enum and EnumValue entries.
2968 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2969 global_options_set instead of rs6000_explicit_options.
2970 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2971 (mtls-size=): Use Enum and Var.
2972 (rs6000_tls_size): New Enum and EnumValue entries.
2974 2011-05-05 Michael Matz <matz@suse.de>
2976 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2977 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2978 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2979 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2980 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2981 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2982 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2983 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2984 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2985 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2986 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2987 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2988 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2989 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2990 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2991 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2993 2011-05-05 Richard Guenther <rguenther@suse.de>
2995 * expmed.c (expand_variable_shift): Rename to ...
2996 (expand_shift_1): ... this. Take an expanded shift amount.
2997 For rotates recurse directly not building trees for the shift amount.
2998 (expand_variable_shift): Wrap around expand_shift_1.
2999 (expand_shift): Adjust.
3001 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3003 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3005 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3007 * tree.h (get_pending_sizes): Remove prototype.
3008 (put_pending_size): Likewise.
3009 (put_pending_sizes): Likewise.
3010 * stor-layout.c (pending_sizes): Delete.
3011 (get_pending_sizes): Likewise.
3012 (put_pending_size): Likewise.
3013 (put_pending_sizes): Likewise.
3014 (variable_size): Do not call put_pending_size and tidy up.
3015 * function.h (struct function): Remove dont_save_pending_sizes_p.
3016 * lto-streamer-in.c (input_function): Do not stream it.
3017 * lto-streamer-out.c (output_function): Likewise.
3018 * tree-inline.c (initialize_cfun): Do not copy it.
3019 * c-decl.c (store_parm_decls): Do not set it.
3020 * omp-low.c (create_task_copyfn): Likewise.
3021 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3023 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3025 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3027 (*movdf_internal): Ditto.
3028 (*movdf_internal_nointeger): Ditto.
3029 (*movsf_internal): Ditto.
3031 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3033 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3034 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3035 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3036 (c_variable_size): Remove.
3037 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3038 call put_pending_sizes.
3039 (get_parm_info): Add parameter expr. Use it to set
3040 arg_info->pending_sizes.
3041 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3043 * c-parser.c (c_parser_parms_declarator): Update call to
3044 c_parser_parms_list_declarator.
3045 (c_parser_parms_list_declarator): Take parameter expr. Update
3046 call to push_parm_decl. Update recursive call. Don't call
3047 get_pending_sizes. Update calls to get_parm_info.
3048 (c_parser_objc_method_definition): Update calls to
3049 c_parser_objc_method_decl and objc_start_method_definition.
3050 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3051 (c_parser_objc_method_decl): Add parameter expr. Update call to
3053 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3054 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3055 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3057 2011-05-05 Michael Hope <michael.hope@linaro.org>
3060 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3063 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3065 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3066 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3067 (spu_output_mi_thunk): New function.
3069 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3071 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3072 targetm.asm_out.print_operand.
3073 * config/sol2.c: Include target.h.
3075 2011-05-04 Jan Hubicka <jh@suse.cz>
3077 * ipa-inline.c (reset_edge_caches): New function.
3078 (update_caller_keys): Add check_inlinablity_for; do not
3079 reset edge caches; remove now unnecesary loop.
3080 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3081 (update_all_callee_keys): Likewise.
3082 (inline_small_functions): Sanity check cache; update code
3085 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3087 PR rtl-optimization/47612
3088 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3089 as the last insn of the sequence to be moved.
3091 2011-05-04 Tobias Burnus <burnus@net-b.de>
3094 * doc/invoke.texi (Ofast): Document that it
3095 enables Fortran's -fno-protect-parens.
3097 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3099 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3101 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3103 * stor-layout.c (variable_size): Do not issue errors.
3105 2011-05-04 Richard Guenther <rguenther@suse.de>
3107 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3108 for array-ref indices.
3109 (tree_coverage_counter_addr): Likewise.
3110 (build_fn_info_type): Use size_int for index types.
3111 (build_gcov_info): Likewise.
3113 2011-05-04 Richard Guenther <rguenther@suse.de>
3115 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3117 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3118 for constructor indices.
3119 (push_init_level): Likewise.
3121 2011-05-04 Richard Guenther <rguenther@suse.de>
3123 * explow.c (promote_mode): Move variable declarations before code.
3125 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3127 * tree.h (build_function_type_array): Declare.
3128 (build_varargs_function_type_array): Declare.
3129 (build_function_type_vec, build_varargs_function_type_vec): Define.
3130 * tree.c (build_function_type_array_1): New function.
3131 (build_function_type_array): New function.
3132 (build_varargs_function_type_array): New function.
3134 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3136 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3137 before setting STMT_VINFO_TYPE.
3139 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3141 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3142 instead of spu_pass_by_reference.
3144 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3146 * calls.c (emit_library_call_value_1): Invoke
3147 promote_function_mode hook on libcall arguments.
3148 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3149 argument being NULL.
3150 * targhooks.c (default_promote_function_mode): Lisewise.
3151 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3152 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3154 * doc/tm.texi: Document that TYPE argument might be NULL.
3156 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3158 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3160 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3163 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3165 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3167 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3168 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3170 * mips-tfile.c: ... here.
3171 Don't include coretypes.h, tm.h, filenames.h.
3172 (saber_stop): Remove definition and all calls.
3173 [__SABER__]: Remove.
3174 (__LINE__): Remove default.
3175 (Size_t, Ptrdiff_t): Remove definitions.
3176 Replace by size_t, ptrdiff_t.
3177 [!MIPS_DEBUGGING_INFO]: Remove.
3178 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3179 (progname): Add const.
3181 Replace all uses by static.
3182 (ALIGN_SYMTABLE_OFFSET): Remove default.
3183 * mips-tdump.c: Don't include coretypes.h, tm.h.
3184 Remove !MIPS_IS_STAB guard.
3185 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3186 $(TM_H), filenames.h dependencies.
3187 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3189 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3192 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3193 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3195 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3198 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3199 account and save/restore RETS.
3200 (PROFILE_BEFORE_PROLOGUE): Define.
3201 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3202 the push insn to use predecrement.
3204 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3207 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3209 2011-05-04 Nick Clifton <nickc@redhat.com>
3211 * config/mn10300/mn10300.c: Include cfgloop.h.
3213 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3214 Lcc or a FLcc insn into the instruction stream.
3215 (mn10300_block_contains_call): New function. Returns true if the
3216 given basic block contains a CALL insn.
3217 (mn10300_loop_contains_call_insn): New function. Returns true if
3218 the given loop contains a CALL insn.
3219 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3220 to use the SETLB and Lcc or FLcc insns.
3221 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3222 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3223 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3224 disable the SETLB optimization.
3225 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3226 __SETLB__ or __NO_SETLB__.
3227 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3228 (movsf_internal): Handle MDR register.
3229 (cmpsi): Make visible.
3230 (setlb): New pattern.
3232 (FLcc): New pattern.
3234 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3237 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3238 for reg<->xmm moves.
3239 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3240 (vec_concatv2di_rex64_sse): Ditto.
3241 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3242 (*vec_extractv2di_1_rex64): Ditto.
3245 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3247 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3249 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3251 2011-05-04 Richard Guenther <rguenther@suse.de>
3253 * tree.h (int_const_binop): Remove notrunc argument.
3254 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3255 create integer constants that are properly truncated.
3256 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3257 (const_binop): Remove zero notrunc argument to int_const_binop.
3258 (size_binop_loc): Likewise.
3259 (fold_div_compare): Likewise.
3260 (maybe_canonicalize_comparison_1): Likewise.
3261 (fold_comparison): Likewise.
3262 (fold_binary_loc): Likewise.
3263 (multiple_of_p): Likewise.
3264 * expr.c (store_constructor): Likewise.
3265 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3266 (maybe_fold_stmt_addition): Likewise.
3267 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3268 * stor-layout.c (layout_type): Likewise.
3269 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3270 * tree-sra.c (build_ref_for_offset): Likewise.
3271 (build_user_friendly_ref_for_offset): Likewise.
3272 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3273 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3274 * tree-ssa-loop-niter.c (inverse): Likewise.
3275 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3276 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3277 * tree-switch-conversion.c (check_range): Likewise.
3278 (build_constructors): Likewise.
3279 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3280 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3281 (extract_range_from_assert): Likewise.
3282 (vrp_int_const_binop): Likewise.
3283 (extract_range_from_binary_expr): Likewise.
3284 (extract_range_from_unary_expr): Likewise.
3285 (check_array_ref): Likewise.
3286 (find_case_label_range): Likewise.
3287 (simplify_div_or_mod_using_ranges): Likewise.
3288 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3289 comparing case labels for merging.
3291 2011-05-03 Mark Wielaard <mjw@redhat.com>
3293 * dwarf2out.c (debug_str_hash_forced): Removed.
3294 (gen_label_for_indirect_string): Removed.
3295 (get_debug_string_label): Removed.
3296 (AT_string_form): Generate label directly.
3297 (output_indirect_string): Test indirect_string_node for
3298 DW_FORM_strp instead of checking label and refcount.
3299 (prune_indirect_string): Removed.
3300 (prune_unused_types): Don't check debug_str_hash_forced or
3301 call prune_indirect_string.
3303 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3306 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3308 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3312 * combine.c (try_combine): Skip debug insns at m_split tests.
3314 2011-04-26 Mark Wielaard <mjw@redhat.com>
3317 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3318 when info_section_emitted.
3320 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3322 * config/mips/mips-opts.h: New.
3323 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3325 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3326 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3327 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3329 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3331 (mips_abi, mips_code_readable): Don't declare.
3332 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3333 (mabi=): Use Enum and Var.
3334 (mips_abi): New Enum and EnumValue entries.
3335 (mcode-readable=): Use Enum and Var.
3336 (mips_code_readable_setting): New Enum and EnumValue entries.
3337 (mr10k-cache-barrier=): Use Enum and Var.
3338 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3340 2011-05-03 Jan Hubicka <jh@suse.cz>
3342 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3343 replace hash by pointer map.
3344 (cgraph_node_set_element_def, cgraph_node_set_element,
3345 const_cgraph_node_set_element, varpool_node_set_element_def,
3346 varpool_node_set_element, const_varpool_node_set_element): Remove.
3347 (free_cgraph_node_set, free_varpool_node_set): New function.
3348 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3349 * tree-emutls.c: Free varpool node set.
3350 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3351 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3352 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3353 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3354 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3355 Move here from ipa.c; implement using pointer_map
3356 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3357 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3358 debug_cgraph_node_set, varpool_node_set_new,
3359 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3360 dump_varpool_node_set, debug_varpool_node_set):
3361 Move to ipa-uitls.c.
3362 * passes.c (ipa_write_summaries): Update.
3364 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3366 From Mike Frysinger:
3367 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3368 bf542/bf544/bf547/bf548/bf549.
3370 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3372 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3374 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3377 * config/bfin/bfin.md (MOVCC): New mode_macro.
3378 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3379 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3380 comments from generated assembly.
3382 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3385 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3386 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3387 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3388 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3389 * config/bfin/lib1funcs.asm (___muldi3): New function.
3391 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3393 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3394 build_function_type_list instead of build_function_type.
3395 Rearrange initialization of `args' to do so.
3397 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3399 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3400 instead of build_function_type.
3402 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3404 * config/rs6000/rs6000.c (spe_init_builtins): Call
3405 build_function_type_list instead of build_function_type.
3406 (paired_init_builtins, altivec_init_builtins): Likewise.
3407 (builtin_function_type): Likewise.
3409 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3411 * config/sh/sh.c (sh_media_init_builtins): Call
3412 build_function_type_list instead of build_function_type.
3414 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3416 * config/sparc/sparc.c (sparc_file_end): Call
3417 build_function_type_list instead of build_function_type.
3419 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3421 * config/alpha/alpha.c (alpha_init_builtins): Call
3422 build_function_type_list instead of build_function_type.
3424 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3426 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3427 build_function_type_list instead of build_function_type.
3429 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3431 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3432 build_function_type_list instead of build_function_type.
3433 Delete `endlink' variable.
3435 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3437 * config/avr/avr.c (avr_init_builtins): Call
3438 build_function_type_list instead of build_function_type.
3440 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3442 * config/picochip/picochip.c (picochip_init_builtins): Call
3443 build_function_type_list instead of build_function_type.
3444 Delete `endlink' variable.
3446 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3448 * config/bfin/bfin.c (bfin_init_builtins): Call
3449 build_function_type_list instead of build_function_type.
3451 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3454 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3455 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3457 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3460 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3461 libbffastfp overrides libgcc when -mfast-fp.
3463 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3465 Originally from Bernd Schmidt
3466 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3467 * config/bfin/bfin.c (override_options): Test it and error if
3470 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3472 Originally From Bernd Schmidt
3473 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3476 2011-05-03 Jeff Law <law@redhat.com>
3478 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3479 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3480 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3481 than accessing AUX field directly. Free the AUX field before
3483 (thread_block, thread_through_loop_header): Likewise.
3484 (thread_single_edge, mark_threaded_blocks): Likewise.
3485 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3486 (register_jump_thread): Do not attempt to thread to a NULL edge.
3488 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3490 * function.c (init_function_start): Call decide_function_section.
3491 * varasm.c (decide_function_section): New function.
3492 (assemble_start_function): When not using
3493 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3494 or first_function_block_is_cold.
3495 * rtl.h (decide_function_section): Declare.
3497 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3498 Jakub Jelinek <jakub@redhat.com>
3501 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3502 only succeed if req_mode is the same as set_mode.
3504 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3506 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3507 * genemit.c (gen_exp): Handle RETURN.
3508 * emit-rtl.c (verify_rtx_sharing): Likewise.
3509 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3510 * rtl.c (copy_rtx): RETURN is shared.
3511 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3513 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3514 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3515 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3516 * config/cris/cris.c (cris_expand_return): Likewise.
3517 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3518 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3519 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3520 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3521 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3523 * config/v850/v850.c (expand_epilogue): Likewise.
3524 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3525 * config/arm/arm.md (epilogue): Likewise.
3526 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3527 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3528 variable to ret_reg.
3530 2011-05-03 Richard Guenther <rguenther@suse.de>
3533 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3534 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3535 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3537 2011-05-03 Richard Guenther <rguenther@suse.de>
3539 * c-decl.c (grokdeclarator): Instead of looking at
3540 TREE_OVERFLOW check if the constant fits in the index type.
3542 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3544 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3545 (vec_store_lanes<mode><mode>): Likewise.
3547 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3549 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3550 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3551 convert_optab_index values.
3552 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3553 * genopinit.c (optabs): Initialize the new optabs.
3554 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3555 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3556 (expand_STORE_LANES): New functions.
3557 * tree.h (build_array_type_nelts): Declare.
3558 * tree.c (build_array_type_nelts): New function.
3559 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3560 (vect_model_load_cost): Likewise.
3561 (vect_store_lanes_supported, vect_load_lanes_supported)
3562 (vect_record_strided_load_vectors): Declare.
3563 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3564 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3565 (vect_transform_strided_load): Split out statement recording into...
3566 (vect_record_strided_load_vectors): ...this new function.
3567 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3568 (write_vector_array, create_array_ref): New functions.
3569 (vect_model_store_cost): Add store_lanes_p argument.
3570 (vect_model_load_cost): Add load_lanes_p argument.
3571 (vectorizable_store): Try to use store-lanes functions for
3573 (vectorizable_load): Likewise load-lanes and loads.
3574 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3575 to vect_model_store_cost.
3576 (vect_build_slp_tree): Likewise vect_model_load_cost.
3578 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3580 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3581 * hooks.c (hook_bool_mode_uhwi_false): New function.
3582 * target.def (array_mode_supported_p): New hook.
3583 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3584 * doc/tm.texi: Regenerate.
3585 * stor-layout.c (mode_for_array): New function.
3586 (layout_type): Use it.
3587 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3588 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3590 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3593 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3594 for -fstack-check if the size to allocate is negative.
3596 2011-05-02 Lawrence Crowl <crowl@google.com>
3598 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3599 (timevar_cond_start): New for starting a timer only when it is not
3601 (timevar_cond_stop): New for stopping a timer when it was not already
3604 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3605 (timevar_cond_start): New as above.
3606 (timevar_cond_stop): New as above.
3608 * timevar.def: Add start/stop timers for compiler phases,
3609 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3610 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3611 and TV_PHASE_FINALIZE.
3612 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3613 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3614 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3615 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3616 Make unused TV_OVERLOAD into a start/stop timer.
3618 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3619 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3620 to indicate that they are start/stop timers.
3622 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3623 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3624 Move initialization to do_compile.
3625 (do_compile): Add initialization from above.
3626 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3628 * c-decl.c (c_write_global_declarations): Add start/stop of
3629 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3631 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3632 or TV_PARSE_INLINE, as appropriate.
3633 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3634 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3636 2011-05-02 Jason Merrill <jason@redhat.com>
3639 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3641 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3644 * c-decl.c (finish_decl): Only create a composite if the types are
3647 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3649 * config/fr30/fr30-protos.h (Mmode): Don't define.
3650 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3651 definition where used.
3652 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3653 define. Expand definitions where used.
3654 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3655 Expand definitions where used.
3656 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3657 rx_function_arg, rx_function_arg_advance,
3658 rx_function_arg_boundary): Expand definitions of those macros.
3659 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3660 definition where used.
3662 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3664 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3666 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3667 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3668 with *movv2sf_internal_rex64_avx.
3669 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3670 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3671 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3672 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3673 "vex" in "prefix" attribute calculation.
3674 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3676 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3679 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3680 inputs match the output.
3682 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3685 * config/m68k/m68k.c (m68k_expand_prologue): Set
3686 current_function_static_stack_size.
3688 2011-05-02 Jan Hubicka <jh@suse.cz>
3690 * lto-streamer.c (lto_streamer_cache_insert_1,
3691 lto_streamer_cache_lookup, lto_streamer_cache_create,
3692 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3693 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3695 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3697 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3698 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3699 config/m68k/t-opts: New files.
3700 * config/m68k/m68k-tables.opt: New file (generated).
3701 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3702 extra_options and m68k/t-opts to tmake_file.
3703 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3704 (all_isas): Initialize using m68k-isas.def.
3705 (all_microarchs): Initialize using m68k-microarchs.def.
3706 (m68k_find_selection): Remove.
3707 (m68k_handle_option): Don't assert that global structures are in
3708 use. Use error_at. Access variables via opts pointer. Don't
3709 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3710 directly for -m68020-40 and -m68020-60.
3711 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3712 m68k_tune_entry here.
3713 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3715 (m68k_library_id_string): Remove declaration.
3716 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3717 (m68k_library_id_string): New Variable.
3718 (march=, mcpu=, mtune=): Use Enum and Var.
3720 2011-05-02 Richard Guenther <rguenther@suse.de>
3722 * varasm.c (output_constructor_regular_field): Compute zero-based
3723 index with double-ints. Make sure to ICE instead of producing
3725 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3726 in asserts. Properly use a signed type.
3728 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3730 * config/i386/sse.md (V): New mode iterator.
3731 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3733 (V_256): Rename from AVX256MODE.
3734 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3735 condition to all users.
3737 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3738 condition to all users.
3739 (VF_128): Make V4SF mode unconditional.
3740 (VF_256): Rename from AVX256MODEF2P.
3741 (VI4F_128): Rename from SSEMODE4S.
3742 (VI8F_128): Rename from SSEMODE2D.
3743 (VI4F_256): Rename from AVX256MODE8P.
3744 (VI8F_256): Rename from AVX256MODE4P.
3745 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3746 (ssescalarmodesuffix): Remove SF and DF modes.
3747 (SSEMODE124): Remove.
3748 (SSEMODE1248): Ditto.
3749 (SSEMODEF2P): Ditto.
3750 (AVXMODEF2P): Ditto.
3751 (AVXMODEFDP): Ditto.
3752 (AVXMODEFSP): Ditto.
3753 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3755 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3757 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3758 xop_pcmov_<mode>256. Use V mode iterator.
3760 Adjust RTX patterns globally for renamed mode attributes.
3762 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3764 * haifa-sched.c (sched_emit_insn): Emit insn before first
3765 non-scheduled insn. Inform back-end about new insn. Add
3766 new insn to scheduled_insns list.
3768 2011-05-02 Richard Guenther <rguenther@suse.de>
3770 PR tree-optimization/48822
3771 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3772 (process_scc): Indicate which iteration we start.
3774 2011-05-02 Jan Hubicka <jh@suse.cz>
3776 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3777 (lto_section_overrun): New.
3778 * lto-section-out.c (append_block): Rename to ...
3779 (lto_append_block): ... this one; export.
3780 (lto_output_1_stream): Move lto lto-streamer.h
3781 (lto_output_data_stream): Update.
3782 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3783 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3786 2011-05-02 Richard Guenther <rguenther@suse.de>
3788 * tree.c (tree_code_counts): New global array.
3789 (record_node_allocation_statistics): Count individual tree codes.
3790 (dump_tree_statistics): Dump individual code stats.
3792 2011-05-01 Jan Hubicka <jh@suse.cz>
3794 * ipa-inline.c (caller_growth_limits): Fix thinko when
3795 looking for largest stack frame.
3796 * ipa-inline.h (dump_inline_summary): Declare.
3797 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3799 (dump_inline_summary): Export.
3800 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3802 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3804 * reginfo.c (memory_move_cost): Change rclass argument type form
3805 'enum reg_class' to reg_class_t.
3806 * reload.h (memory_move_cost): Update prototype.
3807 * postreload.c reload_cse_simplify_set): Change type dclass var to
3809 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3811 (ira_allocate_and_set_costs): Change aclass argument type form
3812 'enum reg_class' to reg_class_t.
3813 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3814 Change aclass argument type to reg_class_t.
3815 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3817 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3818 memory_move_cost call.
3820 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3821 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3822 Change type tmp var to reg_class_t.
3824 2011-04-30 Jan Hubicka <jh@suse.cz>
3826 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3827 inlining into function with flatten attribute.
3828 (want_inline_small_function_p): Be more realistic about inlining
3829 cold calls where callee size grows.
3831 2011-04-30 Jan Hubicka <jh@suse.cz>
3833 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3836 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3838 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3839 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3840 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3841 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3842 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3843 (print_operand): Rename to...
3844 (sparc_print_operand): ...this. Make static. Adjust
3845 sparc_print_operand function call.
3846 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3849 2011-04-30 Jan Hubicka <jh@suse.cz>
3852 * ipa-inline.c (early_inliner): Disable when doing late
3853 addition of function.
3855 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3857 * dwarf2out.c (get_address_mode): New inline.
3858 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3859 if not dwarf_strict emit
3860 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3861 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3862 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3863 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3864 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3865 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3866 mem_loc_descriptor callers.
3867 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3868 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3869 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3870 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3871 (base_types): New variable.
3872 (get_base_type_offset, calc_base_type_die_sizes,
3873 base_type_for_mode, mark_base_types, base_type_cmp,
3874 move_marked_base_types): New functions.
3875 (calc_die_sizes): Assert that die_offset is 0 or equal to
3877 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3878 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3879 callers. If not dwarf_strict, call mem_loc_descriptor even for
3880 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3881 (gen_subprogram_die): Don't give up on call site parameters
3882 with non-integral or large integral modes. Adjust
3883 mem_loc_descriptor callers.
3884 (prune_unused_types): Call prune_unused_types_mark on base_types
3886 (resolve_addr): Call mark_base_types.
3887 (dwarf2out_finish): Call move_marked_base_types.
3889 PR tree-optimization/48809
3890 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3892 (gen_inbound_check): Don't compute index_expr - range_min in utype
3893 again, instead reuse SSA_NAME initialized in build_arrays.
3894 Remove two useless gsi_for_stmt calls.
3896 2011-04-29 Jeff Law <law@redhat.com>
3898 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3900 2011-04-29 Martin Jambor <mjambor@suse.cz>
3902 * cgraph.h (cgraph_postorder): Remove declaration.
3903 * ipa-utils.h (ipa_free_postorder_info): Declare.
3904 (ipa_reverse_postorder): Likewise.
3905 * cgraphunit.c: Include ipa-utils.h.
3906 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3907 * ipa-inline.c: Include ipa-utils.h.
3908 (ipa_inline): Update call to ipa_reverse_postorder.
3909 * ipa-pure-const.c (propagate_pure_const): Update call to
3910 ipa_reduced_postorder and ipa_print_order. Call
3911 ipa_free_postorder_info to clean up.
3912 (propagate_nothrow): Likewise.
3913 * ipa-reference.c (propagate): Removed a useless call to
3914 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3915 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3916 * ipa.c: Include ipa-utils.h.
3917 (ipa_profile): Update call to ipa_reverse_postorder.
3918 (cgraph_postorder): Moved to...
3919 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3920 (ipa_utils_print_order): Renamed to ipa_print_order.
3921 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3923 (ipa_free_postorder_info): New function.
3924 * passes.c: Include ipa-utils.h.
3925 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3926 (ipa_write_summaries): Likewise.
3927 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3928 (cgraphunit.o): Likewise.
3930 (ipa-inline.o): Likewise.
3932 2011-04-29 Jan Hubicka <jh@suse.cz>
3934 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3935 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3936 * ipa-inline.h (clause_t): Turn into unsigned int.
3937 * ipa-inline-analysis.c (add_clause): Do more simplification.
3938 (and_predicates): Shortcut more cases.
3939 (predicates_equal_p): Move forward; check that clauses are properly
3941 (or_predicates): Shortcut more cases.
3942 (edge_execution_predicate): Rewrite as...
3943 (set_cond_stmt_execution_predicate): ... this function; handle
3944 __builtin_constant_p.
3945 (set_switch_stmt_execution_predicate): New .
3946 (compute_bb_predicates): New.
3947 (will_be_nonconstant_predicate): Update TODO.
3948 (estimate_function_body_sizes): Use compute_bb_predicates
3949 and free them later, always try to estimate if stmt is constant.
3950 (estimate_time_after_inlining, estimate_size_after_inlining):
3951 Gracefully handle optimized out edges.
3952 (read_predicate): Fix off by one error.
3954 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3956 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3958 2011-04-27 Xinliang David Li <davidxl@google.com>
3960 * tree-profile.c (init_ic_make_global_vars): Set
3961 tls attribute on ic vars.
3962 * coverage.c (coverage_end_function): Initialize
3963 function_list with zero.
3965 2011-04-29 Richard Guenther <rguenther@suse.de>
3967 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3968 for the type of the result.
3969 (fold_builtin_isascii): Likewise.
3970 (fold_builtin_toascii): Use integer_type_node where appropriate.
3971 (fold_builtin_logb): Likewise.
3972 (fold_builtin_frexp): Likewise.
3973 (fold_builtin_strstr): Likewise.
3974 (fold_builtin_strpbrk): Likewise.
3975 (fold_builtin_fputs): Likewise.
3976 (fold_builtin_sprintf): Likewise.
3977 (fold_builtin_snprintf): Likewise.
3978 (fold_builtin_printf): Likewise.
3979 (do_mpfr_remquo): Use a proper type for the assigned constant.
3980 (do_mpfr_lgamma_r): Likewise.
3981 * dwarf2out.c (resolve_one_addr): Use size_int.
3982 * except.c (init_eh): Likewise.
3983 (assign_filter_values): Use integer_type_node for filter values.
3984 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3986 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3987 for EH region numbers.
3988 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3989 for the shift amount.
3991 2011-04-29 Richard Guenther <rguenther@suse.de>
3993 * expr.h (expand_shift): Rename to ...
3994 (expand_variable_shift): ... this.
3995 (expand_shift): Take a constant shift amount.
3996 * expmed.c (expand_shift): Rename to ...
3997 (expand_variable_shift): ... this.
3998 (expand_shift): New wrapper around expand_variable_shift.
3999 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4000 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4001 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4002 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4003 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4004 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4005 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4006 emit_store_flag_1, emit_store_flag): Likewise.
4007 * builtins.c (expand_builtin_signbit): Likewise.
4008 * calls.c (load_register_parameters): Likewise.
4009 * function.c (assign_parm_setup_block): Likewise.
4010 * lower-subreg.c (resolve_shift_zext): Likewise.
4011 * optabs.c (widen_bswap, expand_abs_nojump,
4012 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4013 * spu/spu.c (spu_expand_extv): Likewise.
4014 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4016 2011-04-29 Richard Guenther <rguenther@suse.de>
4018 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4019 for the remapped region number.
4020 * predict.c (build_predict_expr): Use integer_type_node for the
4022 * fold-const.c (fold_binary_loc): Use integer_type_node for
4023 the shift amount. Use a proper type for the PLUS_EXPR operand.
4025 2011-04-29 Michael Matz <matz@suse.de>
4027 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4028 other trees that just builtins.
4029 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4031 2011-04-29 Richard Guenther <rguenther@suse.de>
4033 * tree-nested.c (get_trampoline_type): Use size_int.
4034 (get_nl_goto_field): Likewise.
4035 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4037 (lower_eh_constructs_2): Likewise.
4038 (lower_resx): Likewise.
4039 (lower_eh_dispatch): Likewise.
4040 * tree-mudflap.c (mf_build_string): Use size_int.
4041 (mudflap_register_call): Use integer_type_node for the flag.
4042 (mudflap_enqueue_constant): Use size_int.
4043 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4044 instead of rebuilding it.
4046 2011-04-29 Richard Guenther <rguenther@suse.de>
4048 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4049 Handle OBJ_TYPE_REF.
4050 (find_func_aliases_for_call): Use it more consistently.
4052 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4054 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4055 (rank_for_schedule): Use it.
4056 (schedule_block): Set it.
4058 2011-04-28 David Li <davidxl@google.com>
4060 * tree.c (crc32_string): Use crc32_byte.
4061 (crc32_byte): New function.
4062 * tree.h (crc32_byte): New function.
4063 * gcov.c (read_graph_file): Handle new cfg_cksum.
4064 (read_count_file): Ditto.
4065 * profile.c (instrument_values): Ditto.
4066 (get_exec_counts): Ditto.
4067 (read_profile_edge_counts): Ditto.
4068 (compute_branch_probabilities): Ditto.
4069 (compute_value_histograms): Ditto.
4070 (branch_prob): Ditto.
4071 (end_branch_prob): Ditto.
4072 * coverage.c (read_counts_file): Ditto.
4073 (get_coverage_counts): Ditto.
4074 (tree_coverage_counter_addr): Ditto.
4075 (coverage_checksum_string): Ditto.
4076 (coverage_begin_output): Ditto.
4077 (coverage_end_function): Ditto.
4078 (build_fn_info_type): Ditto.
4079 (build_fn_info_value): Ditto.
4080 * libgcov.c (gcov_exit): Ditto.
4081 * gcov-dump.c (tag_function): Ditto.
4082 (compute_checksum): Remove.
4084 2011-04-29 Alan Modra <amodra@gmail.com>
4086 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4087 unspec plus offset. Tidy macho code.
4089 2011-04-29 Martin Jambor <mjambor@suse.cz>
4091 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4092 node instead of a decl. Update all callers.
4093 * cgraph.h: Update declaration.
4095 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4097 PR tree-optimization/48765
4098 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4099 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4100 to indicate if loop aware SLP is being used. Scan the statements
4101 and update the vectorization factor according to the type of
4102 vectorization before statement analysis.
4103 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4104 pass it to vect_analyze_loop_operations.
4105 (vectorizable_reduction): Set number of copies to 1 in case of pure
4107 * tree-vect-stmts.c (vectorizable_conversion,
4108 vectorizable_assignment, vectorizable_shift,
4109 vectorizable_operation, vectorizable_type_demotion,
4110 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4112 (vectorizable_condition): Move the check that it is not SLP
4113 vectorization before the number of copies check.
4114 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4115 to vectorize the loop using SLP.
4117 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4120 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4123 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4125 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4126 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4127 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4128 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4129 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4131 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4132 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4133 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4134 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4135 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4136 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4138 * config/i386/linux.h (REG_NAME): Don't define.
4139 * config/i386/linux64.h (REG_NAME): Don't define.
4140 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4141 Undefine before defining.
4143 2011-04-28 Jan Hubicka <jh@suse.cz>
4145 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4146 nonconstant_names array.
4147 (estimate_function_body_sizes): Build nonconstant_names array; handle
4148 BUILT_IN_CONSTANT_P.
4150 2011-04-28 Richard Guenther <rguenther@suse.de>
4154 2011-04-28 Richard Guenther <rguenther@suse.de>
4156 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4157 as late as possible.
4159 2011-04-28 Richard Guenther <rguenther@suse.de>
4161 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4162 (debug_constraint): Do it here.
4163 (dump_constraints): And here.
4164 (rewrite_constraints): And here.
4165 (dump_constraint_edge): Remove.
4166 (dump_constraint_graph): Rewrite to produce DOT output.
4167 (solve_constraints): Build succ graph as late as possible.
4168 Dump constraint graphs before and after solving.
4170 2011-04-28 Richard Guenther <rguenther@suse.de>
4172 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4173 New function split out from ...
4174 (find_func_aliases): ... here. Call it.
4175 (find_func_aliases_for_call): Likewise.
4177 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4179 * internal-fn.h (internal_fn_name_array): Declare.
4180 (internal_fn_flags_array): Likewise.
4182 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4184 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4185 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4187 (ssemodefsuffix): Remove.
4188 (ssevecmodesuffix): New mode attribute.
4189 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4190 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4191 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4192 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4193 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4194 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4195 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4196 ssemodesuffix mode attribute.
4197 (float splitters): Use ssevecmodesuffix mode attribute.
4198 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4199 (sseinsmode): Rename from avxvecmode.
4200 (avxsizesuffix): Rename from avxmodesuffix.
4201 (sseintvecmode): Rename from avxpermvecmode.
4202 (ssedoublevecmode): Rename from ssedoublesizemode.
4203 (ssehalfvecmode): Rename from avxhalfvecmode.
4204 (ssescalarmode): Rename from avxscalarmode.
4205 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4206 templates for ssemodesuffix mode attribute.
4207 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4210 Adjust RTX patterns globally for renamed mode attributes.
4212 2011-04-27 Jan Hubcika <jh@suse.cz>
4214 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4215 * ipa-inline-analysis.c: Include alloc-pool.h.
4216 (edge_predicate_pool): New.
4217 (trye_predicate_p): New function
4218 (false_predicate_p): New function.
4219 (add_clause): Sanity check that false clauses are "optimized";
4220 never add clauses to predicate that is already known to be false.
4221 (and_predicate): Use flase_predicate_p.
4222 (evaulate_predicate): Rename to ...
4223 (evaluate_predicate): ... this one; update all callers; assert
4224 that false is not listed among possible truths.
4225 (dump_predicate): Use true_predicate_p.
4226 (account_size_time): Use false_predicate_p.
4227 (evaulate_conditions_for_edge): Rename to ...
4228 (evaluate_conditions_for_edge) ... this one.
4229 (edge_set_predicate): New function.
4230 (inline_edge_duplication_hook): Duplicate edge predicates.
4231 (inline_edge_removal_hook): Free edge predicates.
4232 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4233 (dump_inline_summary): Update.
4234 (estimate_function_body_sizes): Set edge predicates.
4235 (estimate_calls_size_and_time): Handle predicates.
4236 (estimate_callee_size_and_time): Update.
4237 (remap_predicate): Add toplev_predicate; update comment.
4238 (remap_edge_predicates): New function.
4239 (inline_merge_summary): Compute toplev predicate; update.
4240 (read_predicate): New function.
4241 (read_inline_edge_summary): Use it.
4242 (inline_read_section): Likewise.
4243 (write_predicate): New function.
4244 (write_inline_edge_summary): Use it.
4245 (inline_write_summary): Likewise.
4246 (inline_free_summary): Free alloc pool and edge summary vec.
4248 2011-04-27 Richard Guenther <rguenther@suse.de>
4250 * tree-ssa-structalias.c (changed_count): Remove.
4251 (changed): Use a bitmap.
4252 (unify_nodes): Adjust.
4253 (do_sd_constraint): Likewise.
4254 (do_ds_constraint): Likewise.
4255 (do_complex_constraint): Likewise.
4256 (solve_graph): Likewise.
4258 2011-04-27 Jan Hubicka <jh@suse.cz>
4260 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4262 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4264 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4265 (avx_vperm2f128_*_operand): Ditto.
4266 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4267 Use avx_vpermilp_parallel in insn condition.
4268 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4269 Use avx_vperm2f128_parallel in insn condition.
4271 2011-04-27 Richard Guenther <rguenther@suse.de>
4273 * Makefile.in (tree-ssa-structalias.o): Remove
4274 gt-tree-ssa-structalias.h dependency.
4275 (GTFILES): Remove tree-ssa-structalias.c.
4276 * tree.c (allocate_decl_uid): New function.
4277 (make_node_stat): Use it.
4278 (copy_node_stat): Likewise.
4279 * tree.h (allocate_decl_uid): Declare.
4280 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4281 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4282 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4283 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4284 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4285 (struct heapvar_map): Likewise.
4286 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4287 heapvar_insert): Likewise.
4288 (make_heapvar_for): Rename to ...
4289 (make_heapvar): ... this. Simplify.
4290 (fake_var_decl_obstack): New global var.
4291 (build_fake_var_decl): New function.
4292 (make_constraint_from_heapvar): Adjust.
4293 (handle_lhs_call): Likewise.
4294 (create_function_info_for): Likewise.
4295 (intra_create_variable_infos): Likewise.
4296 (init_alias_vars): Allocate fake_var_decl_obstack.
4297 (init_alias_heapvars, delete_alias_heapvars): Remove.
4298 (compute_points_to_sets): Do not call init_alias_heapvars.
4299 (ipa_pta_execute): Likewise.
4300 (delete_points_to_sets): Free fake_var_decl_obstack.
4302 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4304 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4305 (si_from_UTItype, si_to_UTItype): New functions.
4306 (__udivmodti4): Use them to implement type-punning.
4307 * config/spu/multi3.c (union qword_TItype): New data type.
4308 (si_from_TItype, si_to_TItype): New functions.
4309 (__multi3): Use them to implement type-punning.
4311 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4313 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4315 2011-04-27 Jan Hubicka <jh@suse.cz>
4317 * ipa-prop.c (function_insertion_hook_holder): New holder.
4318 (ipa_add_new_function): New function.
4319 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4320 Register/deregister holder.
4322 2011-04-27 Richard Guenther <rguenther@suse.de>
4324 PR tree-optimization/48772
4325 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4327 2011-04-27 Richard Guenther <rguenther@suse.de>
4329 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4330 TARGET_MEM_REF handling.
4332 2011-04-27 Nick Clifton <nickc@redhat.com>
4334 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4335 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4336 (REG_CLASS_NAMES): Likewise.
4337 (REG_CLASS_CONTENTS): Likewise.
4338 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4339 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4340 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4341 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4342 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4343 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4344 duplicate register classes.
4345 (frv_class_likely_spilled_p): Likewise.
4346 (frv_register_move_cost): Likewise.
4348 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4349 end of the regno_reg_class array.
4351 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4354 * c-typeck.c (build_binary_op): Don't wrap arguments if
4355 int_operands is true.
4357 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4360 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4361 targetm.calls.must_pass_in_stack for void type.
4363 2011-04-26 Jan Hubicka <jh@suse.cz>
4365 * cgraphbuild.c (build_cgraph_edges): Update call
4366 of cgraph_create_edge and cgraph_create_indirect_edge.
4367 * cgraph.c (cgraph_create_edge_including_clones,
4368 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4369 cgraph_update_edges_for_call_stmt_node): Do not take nest
4370 argument; do not initialize call_stmt_size/time.
4371 (dump_cgraph_node): Do not dump nest.
4372 (cgraph_clone_edge): Do not take loop_nest argument;
4373 do not propagate it; do not clone call_stmt_size/time.
4374 (cgraph_clone_node): Likewise.
4375 (cgraph_create_virtual_clone): Update.
4376 * cgraph.h (struct cgraph_edge): Remove
4377 call_stmt_size/call_stmt_time/loop_nest.
4378 (cgraph_create_edge, cgraph_create_indirect_edge,
4379 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4381 * tree-emutls.c (gen_emutls_addr): Update.
4382 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4383 loop_nest; handle indirect calls, too.
4384 (clone_inlined_nodes): Do not care about updating inline summaries.
4385 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4386 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4387 stream call_stmt_size/call_stmt_time/loop_nest.
4388 * ipa-inline.c (edge_badness): Update.
4389 (ipa_inline): dump summaries after inlining.
4390 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4392 (inline_edge_summary): New function.
4393 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4394 (inline_edge_removal_hook): Handle edge summaries.
4395 (inline_edge_duplication_hook): New hook.
4396 (inline_summary_alloc): Alloc hooks.
4397 (initialize_growth_caches): Do not register removal hooks.
4398 (free_growth_caches); Do not free removal hook.
4399 (dump_inline_edge_summary): New function.
4400 (dump_inline_summary): Use it.
4401 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4402 (inline_update_callee_summaries): New function.
4403 (inline_merge_summary): Use it.
4404 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4405 (read_inline_edge_summary): New function.
4406 (inline_read_section): Use it.
4407 (write_inline_edge_summary): New function.
4408 (inline_write_summary): Use it.
4409 (inline_free_summary): Free edge new holders.
4410 * tree-inline.c (copy_bb): Update.
4412 2011-04-26 Jason Merrill <jason@redhat.com>
4414 * tree-eh.c (lower_try_finally_switch): Create the label along with
4415 the CASE_LABEL_EXPR.
4417 2011-04-26 David S. Miller <davem@davemloft.net>
4418 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4420 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4421 * configure: Regenerate.
4423 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4426 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4428 (VEC_reduc): New code iterator and splitters for vector reduction.
4429 (VEC_reduc_name): Ditto.
4430 (VEC_reduc_rtx): Ditto.
4431 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4432 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4434 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4435 support for extracting SF on VSX.
4437 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4438 generating xscvspdp.
4439 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4440 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4441 double add, minimum, maximum vector reduction.
4442 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4443 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4444 optimize double vector reduction.
4445 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4447 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4449 * config/fr30/fr30.h (inhibit_libc): Don't define.
4450 * config/m32r/m32r-protos.h: Correct comment.
4451 * config/v850/v850.h (GHS_default_section_names,
4452 GHS_current_section_names): Use tree, not union tree_node *.
4454 2011-04-26 Xinliang David Li <davidxl@google.com>
4456 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4457 * c-family/c-opts.c (c_common_handle_option): Set
4458 warn_maybe_uninitialized.
4459 * opts.c (common_handle_option): Ditto.
4460 * common.opt: New option.
4461 * tree-ssa.c (warn_uninit): Add one more parameter.
4462 (warn_uninitialized_var): Pass warning code.
4463 * tree-flow.h: Interface change.
4466 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4468 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4469 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4470 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4472 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4474 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4475 * config/mips/mips.opt (mmips-tfile): Remove.
4477 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4478 mips-tdump reference to ...
4479 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4480 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4481 reference by Tru64 UNIX.
4483 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4486 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4487 is error_mark_node, set value to NULL.
4489 PR tree-optimization/48734
4490 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4491 if return value from maybe_fold_*_comparsions isn't something
4492 the code is prepared to handle.
4494 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4496 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4498 (ext_QIreg_nomode_operands): Remove.
4499 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4503 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4505 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4507 2011-04-26 Richard Guenther <rguenther@suse.de>
4509 * c-typeck.c (build_unary_op): Do not expand array-refs via
4510 pointer arithmetic. Only adjust qualifiers for function types.
4512 2011-04-26 Richard Guenther <rguenther@suse.de>
4515 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4516 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4517 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4518 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4520 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4522 * doc/extend.texi: Document __underlying_type.
4524 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4526 * config/rs6000/titan.md (automata_option "progress"): Remove.
4528 2011-04-25 Jeff Law <law@redhat.com>
4530 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4532 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4534 * system.h (ENUM_BITFIELD): Remove.
4536 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4537 Eric Botcazou <ebotcazou@adacore.com>
4539 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4540 for STORE_FLAG_VALUE==-1 case.
4542 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4545 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4546 LEGITIMATE_PIC_OPERAND_P.
4548 2011-04-24 Jan Hubicka <jh@suse.cz>
4550 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4552 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4553 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4554 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4555 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4556 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4557 Sanity check predicate length.
4558 (remap_predicate): Likewise; sanity check jump functions.
4559 (inline_read_section, inline_write_summary): Sanity check
4562 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4565 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4566 __is_literal_type, and __is_trivial; update throughout about
4567 possibly cv-qualified void types.
4569 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4571 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4572 testsuite and make it version agnostic.
4574 2011-04-22 Jan Hubicka <jh@suse.cz>
4576 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4578 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4581 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4582 to VOID_TYPE even around MODIFY_EXPR.
4584 2011-04-22 Mike Stump <mikestump@comcast.net>
4586 * gensupport.c (read_md_rtx): Fix typo in comment.
4587 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4590 2011-04-22 Jan Hubicka <jh@suse.cz>
4592 * gengtype.c (open_base_files): Add ipa-inline.h include.
4593 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4594 ipa-prop.c; update all uses.
4595 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4596 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4597 merge summary of inlined function into former caller.
4598 * ipa-inline.c (max_benefit): Remove.
4599 (edge_badness): Compensate for removal of benefits.
4600 (update_caller_keys): Use
4601 reset_node_growth_cache/reset_edge_growth_cache.
4602 (update_callee_keys): Likewise.
4603 (update_all_callee_keys): Likewise.
4604 (inline_small_functions): Do not collect max_benefit; do not reset
4605 estimated_growth; call free_growth_caches and initialize_growth_caches.
4606 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4607 struct size_time_entry): New structures.
4608 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4609 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4610 and estimated_growth.
4611 (edge_growth_cache_entry): New structure.
4612 (node_growth_cache, edge_growth_cache): New global vars.
4613 (estimate_growth): Turn into inline.
4614 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4615 initialize_growth_caches, free_growth_caches): Declare.
4616 (estimate_edge_growth): Rewrite.
4617 (estimate_edge_time): Implement as inline cache lookup.
4618 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4620 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4621 (NUM_CONDITIONS): New constant.
4622 (predicate_conditions): New enum.
4623 (IS_NOT_CONSTANT): New constant.
4624 (edge_removal_hook_holder): New var.
4625 (node_growth_cache, edge_growth_cache): New global vars.
4626 (true_predicate, single_cond_predicate, false_predicate,
4627 not_inlined_predicate, add_condition, add_clause, and_predicates,
4628 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4629 dump_clause, dump_predicate, account_size_time,
4630 evaulate_conditions_for_edge): New functions.
4631 (inline_summary_alloc): Move to heap.
4632 (inline_node_removal_hook): Clear condition and entry vectors.
4633 (inline_edge_removal_hook): New function.
4634 (initialize_growth_caches, free_growth_caches): New function.
4635 (dump_inline_summary): Update.
4636 (edge_execution_predicate): New function.
4637 (will_be_nonconstant_predicate): New function.
4638 (estimate_function_body_sizes): Compute BB and constantness predicates.
4639 (compute_inline_parameters): Do not clear estimated_growth.
4640 (estimate_edge_size_and_time): New function.
4641 (estimate_calls_size_and_time): New function.
4642 (estimate_callee_size_and_time): New function.
4643 (remap_predicate): New function.
4644 (inline_merge_summary): New function.
4645 (do_estimate_edge_time): New function based on...
4646 (estimate_edge_time): ... this one.
4647 (do_estimate_edge_growth): New function.
4648 (do_estimate_growth): New function based on....
4649 (estimate_growth): ... this one.
4650 (inline_analyze_function): Analyze after deciding on jump functions.
4651 (inline_read_section): New function.
4652 (inline_read_summary): Use it.
4653 (inline_write_summary): Write all the new data.
4654 * ipa-prop.c (ipa_get_param_decl_index): Export.
4655 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4656 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4658 (ipa_get_lattice): Move here from ipa-cp.c
4659 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4660 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4661 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4662 cgraph_edge_inlinable_p): Remove.
4663 * cgraphunit.c: Include ipainline.h
4664 (cgraph_process_new_functions): Update call of
4665 compute_inline_parameters.
4667 2011-04-22 Richard Guenther <rguenther@suse.de>
4669 * tree.c (build_int_cst): Properly create canonicalized integer
4671 (build_int_cst_type): Remove scary comments.
4673 2011-04-22 Xinliang David Li <davidxl@google.com>
4675 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4676 by default when -Wno-error is not specified.
4677 * opts-global.c (decode_options): Remove call to
4678 control_warning_options.
4680 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4682 PR tree-optimization/48717
4683 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4684 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4686 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4688 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4689 definition where used.
4691 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4694 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4695 TREE_STATIC variables declared inside of some OpenMP construct.
4697 2011-04-22 Martin Jambor <mjambor@suse.cz>
4700 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4702 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4705 * c-typeck.c (pop_init_level): Do not warn about initializing
4708 2011-04-22 Alan Modra <amodra@gmail.com>
4710 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4711 when returning call_cookie.
4712 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4713 pointers, to functions with no more vector args than the current
4714 function, and some non-local calls for ABI_V4.
4715 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4716 sibcall_nonlocal_aix64): Combine to ..
4717 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4718 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4719 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4720 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4721 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4723 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4724 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4725 sibcall_value_symbolic_64): Delete.
4727 2011-04-21 Xinliang David Li <davidxl@google.com>
4729 * cgraph.h: Remove pid.
4730 * cgraph.c: Remove pid.
4731 * value-prof.c (init_node_map): New function.
4732 (del_node_map): New function.
4733 (find_func_by_funcdef_no): New function.
4734 (gimple_ic_transform): Call new function.
4735 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4736 * function.c (get_last_funcdef_no): New function.
4737 * function.h (get_last_funcdef_no): New function.
4738 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4739 to libgcov function.
4740 (tree-profiling): Call node map init and delete function.
4742 2011-04-21 Ian Lance Taylor <iant@google.com>
4744 * godump.c (go_format_type): Use exported Go name for anonymous
4747 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4749 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4750 Call builtin_function_type_list instead of builtin_function_type.
4751 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4753 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4755 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4756 build_function_type_list instead of build_function_type.
4757 Delete variable `endlink'.
4759 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4761 * config/s390/s390.c (s390_init_builtins): Call
4762 build_function_type_list instead of build_function_type.
4764 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4766 * config/ia64/ia64.c (ia64_init_builtins): Call
4767 build_function_type_list instead of builtin_function_type.
4769 2011-04-21 Easwaran Raman <eraman@google.com>
4771 * cfgexpand.c (stack_var): Remove OFFSET...
4772 (add_stack_var): ...and its reference here...
4773 (expand_stack_vars): ...and here.
4774 (stack_var_cmp): Sort by descending order of size.
4775 (partition_stack_vars): Change heuristic.
4776 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4777 (dump_stack_var_partition): Add newline after each partition.
4779 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4780 Jeff Law <law@redhat.com>
4782 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4783 * gengtype.c (matching_file_name_substitute): Likewise.
4785 2011-04-21 Richard Guenther <rguenther@suse.de>
4788 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4790 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4792 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4794 2011-04-21 Richard Guenther <rguenther@suse.de>
4796 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4799 2011-04-21 Richard Guenther <rguenther@suse.de>
4801 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4802 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4803 Use DECL_P, not SSA_VAR_P.
4804 (ptr_derefs_may_alias_p): Likewise.
4805 (ptr_deref_may_alias_ref_p_1): Likewise.
4806 (decl_refs_may_alias_p): Likewise.
4807 (refs_may_alias_p_1): Likewise.
4808 (ref_maybe_used_by_call_p_1): Likewise.
4809 (call_may_clobber_ref_p_1): Likewise.
4810 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4811 are either MEM_REF or TARGET_MEM_REF.
4812 (indirect_refs_may_alias_p): Likewise.
4813 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4814 for MEM_EXPR of indirect calls.
4816 2011-04-21 Tristan Gingold <gingold@adacore.com>
4818 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4819 (dst_file_info_struct): Remove flen field.
4820 (lookup_filename): Remove code that set flen field.
4822 2011-04-21 Tristan Gingold <gingold@adacore.com>
4824 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4826 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4829 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4830 vec_extract and vec_concat for non-SSE4_1 targets.
4832 2011-04-21 Richard Guenther <rguenther@suse.de>
4834 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4837 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4839 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4841 (FILE): Don't undefine.
4843 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4845 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4847 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4849 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4850 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4851 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4853 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4854 definitions where used.
4855 * config/microblaze/microblaze.h (struct microblaze_args): Use
4856 rtx, not struct rtx_def *.
4857 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4859 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4860 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4861 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4862 not struct rtx_def *.
4863 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4865 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4867 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4869 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4871 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4872 operand_equal_p to compare DR_BASE_ADDRESSes.
4873 (vect_check_interleaving): Likewise.
4875 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4878 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4879 for all Neon struct constants.
4881 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4883 * target.def (legitimate_constant_p): New hook.
4884 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4885 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4886 * doc/tm.texi: Regenerate.
4887 * hooks.h (hook_bool_mode_rtx_true): Declare.
4888 * hooks.c (hook_bool_mode_rtx_true): Define.
4889 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4890 * calls.c (precompute_register_parameters): Replace uses of
4891 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4892 (emit_library_call_value_1): Likewise.
4893 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4894 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4895 * ira-costs.c (scan_one_insn): Likewise.
4896 * recog.c (general_operand, immediate_operand): Likewise.
4897 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4898 * reload1.c (init_eliminable_invariants): Likewise.
4900 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4902 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4903 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4905 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4906 * config/alpha/predicates.md (input_operand): Update call to
4907 alpha_legitimate_constant_p.
4909 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4910 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4911 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4912 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4913 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4914 (arm_legitimate_constant_p): New functions.
4915 (arm_cannot_force_const_mem): Make static.
4917 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4919 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4920 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4921 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4922 instead of bfin_legitimate_constant_p.
4923 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4924 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4926 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4928 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4930 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4931 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4932 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4933 (frv_legitimate_constant_p): Make static. Add a mode argument.
4935 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4936 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4937 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4939 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4940 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4941 * config/i386/i386.c (legitimate_constant_p): Rename to...
4942 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4944 (ix86_cannot_force_const_mem): Update accordingly.
4945 (ix86_legitimate_address_p): Likewise.
4946 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4947 * config/i386/i386.md: Update commentary.
4949 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4950 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4951 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4952 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4954 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4956 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4957 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4958 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4959 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4961 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4962 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4963 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4965 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4966 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4967 (m32r_legitimate_constant_p): New function.
4969 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4970 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4971 LEGITIMATE_CONSTANT_P.
4972 (LEGITIMATE_CONSTANT_P): Delete.
4973 * config/m68k/m68k.c (m68k_expand_prologue): Call
4974 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4975 (m68k_legitimate_constant_p): New function.
4976 * config/m68k/m68k.md: Update comments.
4978 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4979 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4980 (mcore_legitimate_constant_p): New function.
4982 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4983 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4984 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4985 Add a mode argument.
4986 (mep_legitimate_address): Update accordingly.
4987 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4989 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4991 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4992 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4993 static. Check OP's mode for VOIDmode.
4994 (microblaze_legitimate_constant_p): New function.
4995 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4997 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4998 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4999 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5000 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5001 * config/mips/predicates.md: Update comments.
5003 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5004 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5005 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5006 (mmix_legitimate_constant_p): Make static, return a bool, and take
5008 (mmix_print_operand_address): Update accordingly.
5010 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5012 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5013 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5014 static. Add a mode argument.
5015 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5017 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5019 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5020 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5021 (pa_legitimate_constant_p): New function.
5023 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5025 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5026 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5027 (pdp11_legitimate_constant_p): New function.
5029 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5030 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5031 (rs6000_legitimate_constant_p): New function.
5033 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5034 (rx_legitimate_constant_p): ...this.
5035 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5036 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5037 (rx_legitimate_constant_p): ...this.
5038 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5039 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5041 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5042 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5043 * config/s390/s390.c (legitimate_constant_p): Rename to...
5044 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5045 and add a mode argument.
5046 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5048 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5050 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5051 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5052 (sh_legitimate_constant_p): New function.
5054 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5055 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5056 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5057 (legitimate_constant_p): Rename to...
5058 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5060 (constant_address_p): Update accordingly.
5062 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5063 argument and return a bool.
5064 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5065 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5066 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5067 (spu_rtx_costs): Update accordingly.
5068 * config/spu/predicates.md (vec_imm_operand): Likewise.
5070 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5072 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5073 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5074 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5076 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5077 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5078 * config/vax/vax.c (legitimate_constant_p): Likewise.
5080 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5081 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5082 (xtensa_legitimate_constant_p): New function.
5084 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5086 * target.def (cannot_force_const_mem): Add a mode argument.
5087 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5088 * doc/tm.texi: Regenerate.
5089 * hooks.h (hook_bool_mode_rtx_false): Declare.
5090 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5091 (hook_bool_mode_const_rtx_true): Likewise.
5092 (hook_bool_mode_rtx_false): New function.
5093 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5094 to be non-VOID. Update call to cannot_force_const_mem.
5095 (find_reloads): Update accordingly.
5096 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5097 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5099 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5100 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5101 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5102 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5103 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5104 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5105 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5106 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5107 (m68k_cannot_force_const_mem): ...this new function.
5108 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5110 (mips_const_insns, mips_legitimize_const_move): Update calls.
5111 (mips_secondary_reload_class): Likewise.
5112 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5113 (pa_cannot_force_const_mem): ...this new function.
5114 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5115 (rs6000_cannot_force_const_mem): ...this new function.
5116 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5118 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5119 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5121 (xtensa_cannot_force_const_mem): ...this new function.
5123 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5125 * config/mips/mips.c (mips16_build_function_stub): Call
5126 build_function_type_list instead of build_function_type.
5127 (mips16_build_call_stub): Likewise.
5129 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5131 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5132 instead of build_function_type.
5134 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5136 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5137 instead of build_function_type.
5139 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5142 * config/i386/i386.md (insv): Change operand 0 constraint to
5143 "register_operand". Change operand 1 and 2 constraint to
5144 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5145 * config/i386/sse.md (sse4_1_pinsrb): Export.
5146 (sse2_pinsrw): Ditto.
5147 (sse4_1_pinsrd): Ditto.
5148 (sse4_1_pinsrq): Ditto.
5149 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5150 * config/i386/i386.c (ix86_expand_pinsr): New.
5152 2011-04-20 Easwaran Raman <eraman@google.com>
5154 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5155 containing union type only with -fstrict-aliasing.
5157 2011-04-20 Jim Meyering <meyering@redhat.com>
5159 Remove useless if-before-free tests.
5160 * calls.c (expand_call, save_area): Likewise.
5161 * cfgcleanup.c (try_forward_edges): Likewise.
5162 * collect2.c (collect_execute): Likewise.
5163 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5164 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5165 * coverage.c (coverage_checksum_string): Likewise.
5166 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5167 * cselib.c (cselib_init): Likewise.
5168 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5169 (df_set_clean_cfg): Likewise.
5170 * function.c (free_after_compilation): Likewise.
5171 * gcc.c (do_spec_1, main): Likewise.
5172 * gcov.c (create_file_names): Likewise.
5173 * gensupport.c (identify_predicable_attribute): Likewise.
5174 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5175 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5176 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5177 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5178 * ipa-pure-const.c (local_pure_const): Likewise.
5179 * ipa-reference.c (propagate): Likewise.
5180 * ira-costs.c (free_ira_costs): Likewise.
5181 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5182 * matrix-reorg.c (mat_free): Likewise.
5183 * prefix.c (get_key_value): Likewise.
5184 * profile.c (compute_value_histograms): Likewise.
5185 * reload1.c (free_reg_equiv): Likewise.
5186 * sched-deps.c (free_deps): Likewise.
5187 * sel-sched-ir.c (fence_clear): Likewise.
5188 * sese.c (set_rename, if_region_set_false_region): Likewise.
5189 * tree-data-ref.c (free_rdg): Likewise.
5190 * tree-eh.c (lower_try_finally): Likewise.
5191 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5192 * tree-ssa-live.c (delete_var_map): Likewise.
5193 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5194 * tree-ssa-pre.c (phi_trans_add): Likewise.
5196 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5198 PR tree-optimization/48611
5199 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5200 beyond ERT_MUST_NOT_THROW region.
5202 2011-04-20 Catherine Moore <clm@codesourcery.com>
5204 * config/mips/mips.opt (mfix-24k): New.
5205 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5206 * config/mips/mips.md (length): Increase by 4 for stores if
5208 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5209 all noreorder if fixing 24K errata.
5210 * doc/invoke.texi: Document mfix-24k.
5212 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5214 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5215 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5217 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5219 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5220 (const_ok_for_op): ... to here.
5222 2011-04-20 Kai Tietz <ktietz@redhat.com>
5224 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5225 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5227 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5229 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5231 2011-04-20 Richard Guenther <rguenther@suse.de>
5233 PR tree-optimization/47892
5234 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5237 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5239 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5241 2011-04-20 Tristan Gingold <gingold@adacore.com>
5243 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5245 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5249 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5250 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5251 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5252 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5253 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5255 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5258 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5259 (avr_asm_named_section, avr_asm_output_aligned_common,
5260 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5261 New functions to update...
5262 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5263 (avr_asm_init_sections): Overwrite section callbacks for
5264 data_section, bss_section.
5265 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5267 (avr_file_end): ...here.
5269 2011-04-20 Richard Guenther <rguenther@suse.de>
5272 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5273 objects and types here. Adjust for their offset before comparing.
5275 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5277 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5280 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5282 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5283 (GIMPLE_H): Include $(INTERNAL_FN_H).
5284 (OBJS-common): Add internal-fn.o.
5285 (internal-fn.o): New rule.
5286 * internal-fn.def: New file.
5287 * internal-fn.h: Likewise.
5288 * internal-fn.c: Likewise.
5289 * gimple.h: Include internal-fn.h.
5290 (GF_CALL_INTERNAL): New gf_mask.
5291 (gimple_statement_call): Put fntype into a union with a new
5293 (gimple_build_call_internal): Declare.
5294 (gimple_build_call_internal_vec): Likewise.
5295 (gimple_call_same_target_p): Likewise.
5296 (gimple_call_internal_p): New function.
5297 (gimple_call_internal_fn): Likewise.
5298 (gimple_call_fntype): Return null for internal calls.
5299 (gimple_call_set_fntype): Assert that the function is not internal.
5300 (gimple_call_set_fn): Likewise.
5301 (gimple_call_set_fndecl): Likewise.
5302 (gimple_call_set_internal_fn): New function.
5303 (gimple_call_addr_fndecl): Handle null functions.
5304 (gimple_call_return_type): Likewise null types.
5305 * gimple.c (gimple_build_call_internal_1): New function.
5306 (gimple_build_call_internal): Likewise.
5307 (gimple_build_call_internal_vec): Likewise.
5308 (gimple_call_same_target_p): Likewise.
5309 (gimple_call_flags): Handle calls to internal functions.
5310 (gimple_call_fnspec): New function.
5311 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5312 (gimple_has_side_effects): Handle null functions.
5313 (gimple_rhs_has_side_effects): Likewise.
5314 (gimple_call_copy_skip_args): Handle calls to internal functions.
5315 * cfgexpand.c (expand_call_stmt): Likewise.
5316 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5317 * gimple-fold.c (gimple_fold_call): Handle null functions.
5318 (gimple_fold_stmt_to_constant_1): Don't fold
5319 calls to internal functions.
5320 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5322 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5323 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5324 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5325 (do_warn_unused_result): Likewise.
5326 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5327 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5328 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5329 the target of a call.
5330 (initialize_hash_element): Update accordingly.
5331 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5332 (iterative_hash_hashable_expr): Handle calls to internal functions.
5333 (print_expr_hash_elt): Likewise.
5334 * tree-ssa-pre.c (can_value_number_call): Likewise.
5335 (eliminate): Handle null functions.
5336 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5337 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5338 (find_func_aliases): Likewise.
5339 * value-prof.c (gimple_ic_transform): Likewise.
5340 (gimple_indirect_call_to_profile): Likewise.
5341 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5342 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5344 2011-04-19 Jan Hubicka <jh@suse.cz>
5346 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5347 * ipa-inline.c (inline_small_functions): Compute summaries first,
5348 populate heap later.
5350 2011-04-19 Jan Hubicka <jh@suse.cz>
5352 * cgraph.h (save_inline_function_body): Remove.
5353 * ipa-inline-transform.c: New file, broke out of...
5354 * ipa-inline.c: ... this one; Update toplevel comment.
5355 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5357 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5358 (cgraph_mark_inline_edge): Rename to inline_call; move to
5359 ipa-inline-transform.c.
5360 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5361 move to ipa-inline-transform.c
5362 (recursive_inlining, inline_small_functions, flatten_function,
5363 ipa_inline, inline_always_inline_functions,
5364 early_inline_small_functions): Update.
5365 (inline_transform): Move to ipa-inline-transform.c.
5366 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5368 * Makefile.in (ipa-inline-transform.o): New file.
5369 * cgraphunit.c (save_inline_function_body): Move to
5370 ipa-inline-transform.c
5372 2011-04-19 DJ Delorie <dj@redhat.com>
5374 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5375 registers if we already know there aren't any.
5376 (m32c_emit_epilogue): Don't emit a barrier here.
5377 (m32c_emit_eh_epilogue): Likewise.
5378 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5379 operands at expand time.
5380 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5382 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5383 duplicates. Provide aliases instead.
5384 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5385 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5388 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5390 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5391 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5392 (general_or_i64_p, sparc_register_move_cost): New function.
5394 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5396 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5397 Add lynx, mipssde. Sort table.
5399 2011-04-19 Xinliang David Li <davidxl@google.com>
5401 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5404 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5407 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5408 is a SUBREG with non-MODE_INT mode inside of it.
5410 2011-04-19 Martin Jambor <mjambor@suse.cz>
5412 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5413 also according to actual contants.
5414 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5415 (gimple_fold_call): Use it.
5416 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5418 2011-04-19 Martin Jambor <mjambor@suse.cz>
5420 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5421 non-pointer assignments.
5423 2011-04-19 Martin Jambor <mjambor@suse.cz>
5425 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5426 account anc_offset and otr_type from the indirect edge info.
5427 * ipa-prop.c (get_ancestor_addr_info): New function.
5428 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5429 get_ancestor_addr_info, call it.
5430 (ipa_note_param_call): Do not initialize information about polymorphic
5431 calls, return the indirect call graph edge. Remove the last
5432 parameter, adjust all callers.
5433 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5434 parameters. Initialize polymorphic information in the indirect edge.
5436 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5439 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5440 the types if they have different enumeration identifiers.
5442 2011-04-19 Jan Hubicka <jh@suse.cz>
5444 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5445 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5446 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5447 (optimize_function_for_size_p) ... here.
5449 2011-04-19 Richard Guenther <rguenther@suse.de>
5452 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5455 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5457 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5458 if DECL_NO_INLINE_WARNING_P is set on the function.
5460 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5463 * reload1.c (inc_for_reload): Return void. All callers changed.
5464 (emit_input_reload_insns): Don't try to delete previous output
5465 reloads to a register, or record spill_reg_store for autoincs.
5467 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5469 * gengtype.h: Updated copyright year.
5470 (struct input_file_st): Add inpisplugin field.
5471 (type_fileloc): New function.
5473 (write_typed_struct_alloc_def): Add gcc_assert.
5474 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5475 (write_typed_alloc_defns): Don't output for plugin files.
5476 (input_file_by_name): Clear inpisplugin field.
5477 (main): Set inpisplugin field for plugin files.
5479 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5481 * gengtype-state.c (string_eq): New.
5482 (read_state): Use string_eq instead of strcmp when creating the
5485 2011-04-19 Wei Guozhi <carrot@google.com>
5488 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5489 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5491 * config/arm/constraints.md (Uu): New constraint.
5492 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5494 2011-04-19 Tristan Gingold <gingold@adacore.com>
5496 * config.gcc (-*-*-*vms): Added.
5497 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5499 * config/vms/vms-ld.c: New file.
5500 * config/vms/vms-ar.c: New file.
5501 * config/vms/t-vmsnative: New file.
5503 2011-04-18 Xinliang David Li <davidxl@google.com>
5505 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5507 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5510 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5511 if TREE_TYPE (v) is non-NULL.
5513 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5514 gimple_get_virt_mehtod_for_binfo.
5515 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5516 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5518 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5520 2011-04-18 Michael Matz <matz@suse.de>
5521 Steve Ellcey <sje@cup.hp.com>
5523 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5524 use its mode as source mode if it isn't VOIDmode.
5526 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5528 * doc/passes.texi: Fill crossref nodes.
5530 2011-04-18 Jim Meyering <meyering@redhat.com>
5532 Fix doubled-word typos in comments and strings
5533 * config/alpha/vms-unwind.h: s/for for/for/
5534 * config/arm/unwind-arm.h: Likewise.
5535 * config/microblaze/microblaze.c: Likewise.
5536 * config/sh/constraints.md: s/in in/in/
5537 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5539 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5541 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5542 (AVX_FLOAT_MODE_P): Ditto.
5543 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5544 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5545 (AVX_VEC_FLOAT_MODE_P): Ditto.
5546 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5547 (UNSPEC_MASKSTORE): Ditto.
5548 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5549 Merge from <sse>_movmsk<ssemodesuffix> and
5550 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5551 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5553 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5554 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5555 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5557 2011-04-18 Jan Hubicka <jh@suse.cz>
5559 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5561 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5562 (want_inline_function_called_once_p): Break out the logic from
5564 (edge_badness): Ensure that profile is not misupdated.
5565 (lookup_recursive_calls): Prioritize by call frequencies.
5566 (inline_small_functions): Move program size estimates here;
5567 actually process whole queue even when unit growth has been
5568 met. (to properly compute inline_failed reasons and for the
5569 case unit size decrease.) Revisit comments on recursive inlining.
5570 (ipa_inline): Remove unit summary code; first inline hot calls
5571 of functions called once, cold calls next.
5572 (order, nnodes): Remove unused variables.
5573 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5574 (GTFILES): Remove ipa-inline.c
5575 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5577 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5579 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5581 2011-04-18 Jie Zhang <jie@codesourcery.com>
5582 Richard Earnshaw <rearnsha@arm.com>
5584 * arm.c (neon_builtin_type_bits): Remove.
5585 (typedef enum neon_builtin_mode): New.
5586 (T_MAX): Don't define.
5587 (typedef enum neon_builtin_datum): Remove bits, codes[],
5588 num_vars and base_fcode. Add mode, code and fcode.
5589 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5590 VAR10): Change accordingly.
5591 (neon_builtin_data[]): Change accordingly
5592 (arm_init_neon_builtins): Change accordingly.
5593 (neon_builtin_compare): Remove.
5594 (locate_neon_builtin_icode): Remove.
5595 (arm_expand_neon_builtin): Change accordingly.
5597 * arm.h (enum arm_builtins): Move to ...
5598 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5600 * arm.c (arm_builtin_decl): Declare.
5601 (TARGET_BUILTIN_DECL): Define.
5602 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5603 (arm_builtin_decls[]): New.
5604 (arm_init_neon_builtins): Store builtin declarations in
5605 arm_builtin_decls[].
5606 (arm_init_tls_builtins): Likewise.
5607 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5608 (arm_builtin_decl): New.
5610 2011-04-18 Richard Guenther <rguenther@suse.de>
5612 * tree.c (upper_bound_in_type): Build properly canonicalized
5614 (lower_bound_in_type): Likewise.
5616 2011-04-18 Richard Guenther <rguenther@suse.de>
5618 * gimple.h (gimple_call_addr_fndecl): New function.
5619 (gimple_call_fndecl): Use it.
5620 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5622 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5623 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5625 2011-04-18 Richard Guenther <rguenther@suse.de>
5628 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5630 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5633 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5634 DECL_IN_CONSTANT_POOL without RTL.
5636 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5637 Ira Rosen <ira.rosen@linaro.org>
5640 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5641 to match neon_vzip/vuzp/vtrn_internal.
5642 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5643 outputs explicitly dependent on both inputs.
5644 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5646 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5648 PR tree-optimization/48616
5649 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5650 whether the shift is by scalar or vector based on whether all SLP
5651 scalar stmts have the same rhs.
5653 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5655 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5658 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5661 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5664 2011-04-17 Jan Hubicka <jh@suse.cz>
5666 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5667 * cgrpahunit.c (cgraph_finalize_function): Do not set
5668 finalized_by_frontend.
5669 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5670 finalized_by_frontend.
5672 2011-04-17 Jan Hubicka <jh@suse.cz>
5674 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5675 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5676 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5677 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5679 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5681 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5683 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5686 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5687 is non-null before accessing it.
5688 (input_cgraph): Remove trailing spaces.
5690 2011-04-17 Revital Eres <revital.eres@linaro.org>
5692 * params.def (sms-min-sc): New param flag.
5693 * modulo-sched.c (sms_schedule): Use it.
5694 * doc/invoke.texi (sms-min-sc): Document it.
5696 2011-04-17 Jan Hubicka <jh@suse.cz>
5698 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5699 present, also set gimple_call_set_cannot_inline.
5700 * ipa-inline.c: Update toplevel comment.
5702 (cgraph_clone_inlined_nodes): Fix linebreaks.
5703 (cgraph_check_inline_limits): Restructure to ...
5704 (caller_growth_limits): ... this one; be more tolerant
5705 on growth in nested inline chains; add explanatory comment;
5706 fix stack accounting thinko introduced by previous patch.
5707 (cgraph_default_inline_p): Remove.
5708 (report_inline_failed_reason): New function.
5709 (can_inline_edge_p): New function.
5710 (can_early_inline_edge_p): New function.
5711 (leaf_node_p): Move upwards in file.
5712 (want_early_inline_function_p): New function.
5713 (want_inline_small_function_p): New function.
5714 (want_inline_self_recursive_call_p): New function.
5715 (cgraph_edge_badness): Rename to ...
5716 (edge_badness) ... this one; fix linebreaks.
5717 (update_edge_key): Update call of edge_baddness; add
5718 detailed dump about queue updates.
5719 (update_caller_keys): Use can_inline_edge_p and
5720 want_inline_small_function_p.
5721 (cgraph_decide_recursive_inlining): Rename to...
5722 (recursive_inlining): Use can_inline_edge_p and
5723 want_inline_self_recursive_call_p; simplify and remove no longer
5725 (cgraph_set_inline_failed): Remove.
5726 (add_new_edges_to_heap): Use can_inline_edge_p and
5727 want_inline_small_function_p.
5728 (cgraph_decide_inlining_of_small_functions): Rename to ...
5729 (inline_small_functions): ... this one; cleanup; use
5730 can/want predicates; cleanup debug ouput; work edges till fibheap
5731 is exhausted and do not stop once unit growth is reached; remove
5732 later loop processing remaining edges.
5733 (cgraph_flatten): Rename to ...
5734 (flatten_function): ... this one; use can_inline_edge_p
5735 and can_early_inline_edge_p predicates.
5736 (cgraph_decide_inlining): Rename to ...
5737 (ipa_inline): ... this one; remove unreachable nodes before
5738 inlining functions called once; simplify the pass.
5739 (cgraph_perform_always_inlining): Rename to ...
5740 (inline_always_inline_functions): ... this one; use
5741 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5742 (cgraph_decide_inlining_incrementally): Rename to ...
5743 (early_inline_small_functions): ... this one; simplify
5744 using new predicates; cleanup; make dumps prettier.
5745 (cgraph_early_inlining): Rename to ...
5746 (early_inliner): newer inline regular functions into always-inlines;
5747 fix updating of call stmt summaries.
5748 (pass_early_inline): Update for new names.
5749 (inline_transform): Fix formating.
5750 (gate_cgraph_decide_inlining): Rename to ...
5751 (pass_ipa_inline): ... this one.
5752 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5753 * ipa-inline-analysis.c (dump_inline_summary): Update.
5754 (compute_inline_parameters): Do not compute disregard_inline_limits;
5755 look for mismatching arguments.
5756 (estimate_growth): Fix handlig of non-trivial self recursion.
5757 (inline_read_summary): Do not read info->disregard_inline_limits.
5758 (inline_write_summary): Do not write info->disregard_inline_limits.
5759 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5760 and move all checks into can_inline_edge_p predicate; re-enable code
5761 comparing optimization levels.
5762 (expand_call_inline): Do not test inline_forbidden_into_p.
5763 * Makefile.in (ipa-inline.o): Update arguments.
5765 2011-04-17 Revital Eres <revital.eres@linaro.org>
5767 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5769 2011-04-17 Revital Eres <revital.eres@linaro.org>
5771 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5773 2011-04-17 Michael Matz <matz@suse.de>
5775 PR tree-optimization/48622
5777 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5778 in same order as they're written.
5780 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5782 * config/pa/predicates.md: Reorganize and simplify predicates.
5783 Eliminate duplicate code checks.
5784 (arith_operand): Rename to arith14_operand
5785 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5786 * config/pa/pa.md: Use renamed operands.
5787 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5788 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5789 arith11_operand, adddi3_operand, indexed_memory_operand,
5790 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5791 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5792 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5793 move_dest_operand, move_src_operand, prefetch_cc_operand,
5794 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5795 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5796 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5797 div_operand, int5_operand, movb_comparison_operator,
5798 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5799 arith_double_operand, ireg_operand, lhs_lshift_operand,
5800 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5801 integer_store_memory_operand): Likewise.
5802 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5803 (integer_store_memory_operand, read_only_operand,
5804 function_label_operand, borx_reg_operand,
5805 non_hard_reg_operand): Likewise.
5806 (eq_neq_comparison_operator): Delete unused operator.
5807 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5808 function_label_operand.
5809 (emit_move_sequence): Likewise.
5811 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5813 * config/i386/sse.md (sseunpackmode): New mode attribute.
5814 (ssepackmode): Ditto.
5815 (vec_pack_trunc_<mode>): Macroize expander from
5816 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5817 (vec_unpacks_lo_<mode>): Macroize expander from
5818 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5819 (vec_unpacks_hi_<mode>): Macroize expander from
5820 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5821 (vec_unpacku_lo_<mode>): Macroize expander from
5822 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5823 (vec_unpacku_hi_<mode>): Macroize expander from
5824 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5825 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5826 ix86_expand_sse4_unpack.
5827 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5829 2011-04-16 Jan Hubicka <jh@suse.cz>
5831 * cgraphbuild.c: Include ipa-inline.h.
5832 (reset_inline_failed): Use initialize_inline_failed.
5833 * cgraph.c: Include ipa-inline.h.
5834 (cgraph_create_node_1): Do not initialize estimated_growth.
5835 (initialize_inline_failed): More to ipa-inline-analysis.c
5836 (dump_cgraph_node): Do not dump inline flags.
5837 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5838 and disregard_inline_limits flags.
5839 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5840 time, size, estimated_growth.
5841 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5843 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5844 DECL_DISREGARD_INLINE_LIMITS.
5845 (cgraph_analyze_function): Do not initialize
5846 node->local.disregard_inline_limits.
5847 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5848 inlinable, versionable and disregard_inline_limits.
5849 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5850 cgraph_check_inline_limits, cgraph_default_inline_p,
5851 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5852 add_new_edges_to_heap): Update.
5853 (cgraph_decide_inlining_of_small_function): Update; set
5854 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5855 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5856 cgraph_decide_inlining_incrementally): Update.
5857 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5858 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5859 time, size and estimated_growth parameters.
5860 (estimate_edge_growth): Update.
5861 (initialize_inline_failed): Declare.
5862 * ipa-split.c: Include ipa-inline.h
5863 (execute_split_functions): Update.
5864 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5865 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5866 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5867 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5868 estimated_growth to INT_MIN.
5869 (inline_node_duplication_hook): Likewise.
5870 (dump_inline_summary): Dump new fields.
5871 (compute_inline_parameters): Update.
5872 (estimate_edge_time, estimate_time_after_inlining,
5873 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5874 inline_write_summary):
5875 (initialize_inline_failed): Move here from cgraph.c.
5876 * tree-sra.c: Include ipa-inline.h.
5877 (ipa_sra_preliminary_function_checks): Update.
5878 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5881 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5883 * config/i386/sse.md (V16): New mode iterator.
5885 (AVXMODEQI, AVXMODEDI): Remove.
5886 (sse2, sse3): New mode attribute.
5887 (mov<mode>): Use V16 mode iterator.
5888 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5889 (push<mode>1): Use V16 mode iterator.
5890 (movmisalign<mode>): Ditto.
5891 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5892 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5893 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5894 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5895 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5896 avx_movdqu<avxmodesuffix>.
5897 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5898 *avx_movdqu<avxmodesuffix>.
5899 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5900 avx_lddqu<avxmodesuffix>.
5901 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5902 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5903 avx_movnt<AVXMODEDI:mode>.
5904 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5905 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5907 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5910 * haifa-sched.c (prune_ready_list, schedule_block): Use
5911 sched_pressure_p rather than flag_sched_pressure.
5913 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5915 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5916 cgraph_get_node instead of cgraph_get_create_node.
5918 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5920 * cfgexpand.c (expand_debug_expr): Use
5921 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5923 2011-04-15 Michael Matz <matz@suse.de>
5925 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5926 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5927 * function.c (gimplify_parameters): Ditto.
5928 * gimplify.c (gimplify_vla_decl): Ditto.
5930 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5931 (gimple_call_set_alloca_for_var): New inline function.
5932 (gimple_call_alloca_for_var_p): Ditto.
5933 * gimple.c (gimple_build_call_from_tree): Remember
5934 CALL_ALLOCA_FOR_VAR_P state.
5935 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5937 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5938 calls if they were for VLA objects.
5940 2011-04-15 Martin Jambor <mjambor@suse.cz>
5942 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5945 2011-04-15 Martin Jambor <mjambor@suse.cz>
5948 * tree-emutls.c (lower_emutls_function_body): Call
5949 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5952 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5954 * c-decl.c (detect_field_duplicates): Call
5955 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5957 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5959 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5960 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5961 * ipa-pure-const.c (check_stmt): Call it.
5962 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5964 2011-04-15 Richard Guenther <rguenther@suse.de>
5966 PR tree-optimization/48290
5967 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5968 Properly decide inhibiting propagation based on the valueized
5969 operand. Do loop-closed SSA form preserving here ...
5970 (init_copy_prop): ... not here.
5972 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5975 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5976 (*ieee_smax<mode>3): Likewise.
5978 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5980 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5981 Replace match_operand with match_dup for the third operand in
5984 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5986 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5987 to track processing of conditionals. Update all callers.
5988 (try_combine, simplify_if_then_else): Update.
5990 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5992 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5995 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5997 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5998 instead of match_operand for operand 3.
6000 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6002 * recog.h (insn_operand_data): Add an "allows_mem" field.
6003 * genoutput.c (output_operand_data): Initialize it.
6004 * optabs.c (maybe_legitimize_operand_same_code): New function.
6005 (maybe_legitimize_operand): Use it when matching the original
6008 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6010 * gimplify.c: Fix issues in comments throughout.
6011 (voidify_wrapper_expr): Fix long line.
6012 (build_stack_save_restore): Likewise.
6013 (gimplify_loop_expr): Likewise.
6014 (gimplify_compound_lval): Likewise.
6015 (gimplify_init_ctor_eval): Likewise.
6016 (gimplify_modify_expr_rhs): Likewise.
6017 (omp_notice_threadprivate_variable): Likewise.
6019 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6021 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6022 original one if this is not a builtin function.
6024 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6027 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6028 offset it as needed based on top 2 bits in operands[3], change
6029 MEM mode to SFmode and mask those 2 bits away from operands[3].
6031 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6033 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6034 change from objc_declare_protocols() to objc_declare_protocol().
6036 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6038 * config/i386/sse.md (sse4_1): New mode attribute.
6039 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6040 avx_blend<ssemodesuffix><avxmodesuffix> and
6041 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6042 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6043 avx_blendv<ssemodesuffix><avxmodesuffix> and
6044 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6045 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6046 avx_dp<ssemodesuffix><avxmodesuffix> and
6047 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6048 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6049 (sse4_1_packusdw): Merge with *avx_packusdw.
6050 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6051 (sse4_1_pblendw): Merge with *avx_pblendw.
6052 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6053 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6054 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6056 (sse4_1_round<ssescalarmodesuffix>): Merge with
6057 *avx_round<ssescalarmodesuffix>.
6058 (aesenc): Merge with *avx_aesenc.
6059 (aesenclast): Merge with *avx_aesenclast.
6060 (aesdec): Merge with *avx_aesdec.
6061 (aesdeclast): Merge with *avx_aesdeclast.
6062 (pclmulqdq): Merge with *pclmulqdq.
6063 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6065 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6067 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6070 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6071 (align_local_variable): This. Update DECL_ALIGN.
6072 (add_stack_var): Updated.
6073 (expand_one_stack_var): Likewise.
6075 2011-04-14 Richard Guenther <rguenther@suse.de>
6077 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6079 (dse_initialize_block_local_data, dse_leave_block,
6080 record_voperand_set, get_stmt_uid): Likewise.
6081 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6082 (dse_optimize_stmt): Remove voperand set handling code.
6083 Simplify and improve to handle any kind of killing stmt.
6084 (dse_record_phi): Remove.
6085 (dse_enter_block): Simplify.
6086 (tree_ssa_dse): Likewise.
6087 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6089 2011-04-14 Jan Hubicka <jh@suse.cz>
6091 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6092 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6093 (cgraph_local_info): Remove inline_summary.
6094 * ipa-cp.c: Include ipa-inline.h.
6095 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6096 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6098 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6099 (input_overwrite_node): Do not set inline summary.
6100 (input_node): Do not stream inline summary.
6101 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6102 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6103 growth; we do not have inline parameters computed for that anyway.
6104 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6105 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6106 (inline_summary_t): New type and VECtor.
6107 (debug_inline_summary, dump_inline_summaries): Declare.
6108 (inline_summary): Use VOCtor.
6109 (estimate_edge_growth): Kill hack computing call stmt size directly.
6110 * lto-section-in.c (lto_section_name): Add inline section.
6111 * ipa-inline-analysis.c: Include lto-streamer.h
6112 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6113 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6114 (inline_summary_vec): Define.
6115 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6116 dump_inline_summaries): New functions.
6117 (estimate_function_body_sizes): Properly compute size/time of outgoing
6119 (compute_inline_parameters): Alloc inline_summary; do not compute
6120 size/time of incomming calls.
6121 (estimate_edge_time): Avoid missing time summary hack.
6122 (inline_read_summary): Read inline summary info.
6123 (inline_write_summary): Write inline summary info.
6124 (inline_free_summary): Free all hooks and inline summary vector.
6125 * lto-streamer.h: Add LTO_section_inline_summary section.
6126 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6127 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6129 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6131 * tree-vectorizer.h (vect_strided_store_supported): Add a
6132 HOST_WIDE_INT argument.
6133 (vect_strided_load_supported): Likewise.
6134 (vect_permute_store_chain): Return void.
6135 (vect_transform_strided_load): Likewise.
6136 (vect_permute_load_chain): Delete.
6137 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6138 count argument. Check that the count is a power of two.
6139 (vect_strided_load_supported): Likewise.
6140 (vect_permute_store_chain): Return void. Update after above changes.
6141 Assert that the access is supported.
6142 (vect_permute_load_chain): Likewise.
6143 (vect_transform_strided_load): Return void.
6144 * tree-vect-stmts.c (vectorizable_store): Update calls after
6145 above interface changes.
6146 (vectorizable_load): Likewise.
6147 (vect_analyze_stmt): Don't check for strided powers of two here.
6149 2011-04-14 Richard Guenther <rguenther@suse.de>
6151 PR tree-optimization/48590
6152 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6153 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6154 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6155 BUILT_IN_STACK_SAVE.
6156 * tree-ssa-dce.c (propagate_necessity): Handle
6157 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6159 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6161 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6164 2011-04-14 Richard Guenther <rguenther@suse.de>
6166 * tree.h (get_object_alignment_1): Declare.
6167 * builtins.c (get_object_alignment_1): Split out worker from ...
6168 (get_object_alignment): ... here.
6169 * fold-const.c (get_pointer_modulus_and_residue): Use
6170 get_object_alignment_1.
6172 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6174 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6176 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6177 parameter. Generalise code to handle arrays as well as vectors.
6178 (vect_setup_realignment): Update accordingly.
6179 * tree-vect-stmts.c (vectorizable_store): Likewise.
6180 (vectorizable_load): Likewise.
6182 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6184 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6185 within the per-copy loop.
6187 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6189 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6192 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6194 * doc/options.texi (Negative): Explicitly mention that the
6195 Negative chain must be circular.
6197 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6199 * function.h (block_chainon): Declare.
6200 * function.c (block_chainon): Define.
6202 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6203 Eric Weddington <eric.weddington@atmel.com>
6204 Georg-Johann Lay <avr@gjlay.de>
6206 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6208 (avr_init_builtins, avr_expand_builtin,
6209 avr_expand_delay_cycles, avr_expand_unop_builtin,
6210 avr_expand_binop_builtin ): New functions.
6211 (avr_builtin_id): New enum
6212 (struct avr_builtin_description): New struct
6213 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6214 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6216 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6217 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6218 UNSPECV_DELAY_CYCLES): new enumeration values
6219 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6220 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6221 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6222 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6223 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6224 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6225 "fmulsu"): New insns
6227 * config/avr/avr-c.c: fix line endings
6228 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6229 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6230 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6231 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6232 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6234 * doc/extend.texi (AVR Built-in Functions): New node
6235 (Target Builtins): Add documentation of AVR
6238 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6241 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6242 alone. Error if non-const data has attribute progmem.
6244 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6246 * tree.h (struct tree_constructor): Include tree_typed instead of
6248 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6249 TS_TYPED instead of TS_COMMON.
6251 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6253 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6254 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6255 (sse2_psadbw): Merge with *avx_psadbw.
6256 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6257 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6258 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6259 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6260 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6261 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6262 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6263 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6264 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6265 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6266 (ssse3_palignrti): Merge with *avx_palignrti.
6268 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6270 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6271 * tree-ssanames.c (fini_ssanames): VEC_free it.
6272 (make_ssa_name_fn): Update for VECness of free_ssanames.
6273 (release_ssa_name, release_dead_ssa_names): Likewise.
6274 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6276 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6277 TS_TYPED instead of TS_COMMON.
6279 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6281 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6282 statistics_counter_event.
6283 * tree-ssa-copyrename.c (stats): Define.
6284 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6285 statistics_counter_event.
6286 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6287 (bswap_stats, widen_mul_stats): Define.
6288 (insert_reciprocals): Increment rdivs_inserted.
6289 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6290 rfuncs_inserted. Add calls to statistics_counter_event.
6291 (execute_cse_sincos_1): Increment inserted.
6292 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6293 statistics_counter_event.
6294 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6295 of bswap_stats. Add calls to statistics_counter_event.
6296 (convert_mult_to_widen): Increment widen_mults_inserted.
6297 (convert_plusminus_to_widen): Increment maccs_inserted.
6298 (convert_mult_to_fma): Increment fmas_inserted.
6299 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6300 calls to statistics_counter_event.
6302 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6304 PR rtl-optimization/48455
6305 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6306 `temp_costs->mem_cost'.
6308 2011-04-13 Jan Hubicka <jh@suse.cz>
6310 * ipa-inline.h: New file.
6311 * ipa-inline-analysis.c: New file. Broken out of ...
6312 * ipa-inline.c: ... this file; update toplevel comment;
6313 include ipa-inline.h
6314 (inline_summary): Move to ipa-inline.h
6315 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6316 ipa-inline-analysis.c.
6317 (cgraph_estimate_time_after_inlining): Rename to
6318 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6319 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6320 to estimate_edge_growth.
6321 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6322 rename to estimate_size_after_inlining.
6323 (cgraph_mark_inline_edge): Update for new naming convention.
6324 (cgraph_check_inline_limits): Likewise.
6325 (cgraph_edge_badness): Likewise.
6326 (cgraph_decide_recursive_inlining): Likewise.
6327 (cgraph_decide_inlining_of_small_functions): Likewise.
6328 (cgraph_decide_inlining_incrementally): Likewise.
6329 (cgraph_estimate_growth): Rename to estimate_growth; move to
6330 ipa-inline-analysis.c.
6331 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6332 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6333 (compute_inline_parameters): Likewise.
6334 (compute_inline_parameters_for_current): Likewise.
6335 (pass_inline_parameters): Likewise.
6336 (inline_indirect_intraprocedural_analysis): Likewise.
6337 (analyze_function): Rename to inline_analyze_function; likewise.
6338 (add_new_function): Move to ipa-inline-analysis.c.
6339 (inline_generate_summary): Likewise.
6340 (inline_read_summary): Likewise.
6341 (inline_write_summary): Likewise.
6342 * Makefile.in (ipa-inline-analysis.c): New file.
6344 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6346 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6347 * configure: Regenerate.
6349 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6351 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6352 instead of tree_common.
6353 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6355 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6356 TS_TYPED rather than TS_COMMON.
6357 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6359 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6362 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6363 r20 around calls of __tablejump_elpm__
6365 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6368 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6370 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6372 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6374 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6375 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6376 (cfi_vec): New typedef.
6377 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6378 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6379 (cie_cfi_vec): New static variable.
6380 (cie_cfi_head): Delete.
6381 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6382 declaration changed. Use vector rather than list operations.
6383 (new_cfi): Don't initialize the dw_cfi_next field.
6384 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6385 rather than list operations.
6386 (lookup_cfa): Use vector rather than list operations.
6387 (output_cfis): New argument upto. Accept a cfi_vec rather than
6388 a dw_cfi_ref list head as argument. All callers changed.
6389 Iterate over the vector using upto as a maximum index.
6390 (output_all_cfis): New static function.
6391 (output_fde): Use vector rather than list operations. Use the
6392 new upto argument for output_cfis rather than manipulating a
6394 (dwarf2out_begin_prologue): Change initializations to match
6396 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6397 from the vector length rather than searching for the end of a list.
6398 Use output_all_cfis.
6399 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6401 2011-04-13 Nick Clifton <nickc@redhat.com>
6403 * config/rx/rx.md (movmemsi): Do not use this pattern when
6404 volatile pointers are involved.
6406 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6408 * config/i386/sse.md (pinsrbits): Remove.
6409 (sse2_packsswb): Merge with *avx_packsswb.
6410 (sse2_packssdw): Merge with *avx_packssdw.
6411 (sse2_packuswb): Merge with *avx_packuswb.
6412 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6413 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6414 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6415 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6416 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6417 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6418 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6419 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6420 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6421 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6422 (sse2_loadld): Merge with *avx_loadld.
6423 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6424 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6425 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6426 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6427 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6429 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6431 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6433 * print-tree.c (print_node): Likewise.
6434 * tree-inline.c (copy_tree_r): Likewise.
6435 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6436 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6437 instead of TS_COMMON.
6438 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6439 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6440 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6441 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6442 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6444 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6446 (TREE_CHAIN): Check for a TS_COMMON structure.
6447 (TREE_TYPE): Check for a TS_TYPED structure.
6449 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6451 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6452 cgraph_get_create_node instead of cgraph_node.
6454 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6456 * c-parser.c (c_parser_initelt): Updated call to
6457 objc_build_message_expr.
6458 (c_parser_postfix_expression): Likewise.
6460 2011-04-12 Kai Tietz <ktietz@redhat.com>
6462 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6463 MASK_MS_BITFIELD_LAYOUT bit.
6465 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6467 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6468 assert it is always true.
6469 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6472 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6474 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6475 compiling Objective-C to be more efficient.
6477 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6479 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6482 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6484 * recog.h, genoutput.c, optabs.c: Revert last patch.
6486 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6489 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6491 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6493 * recog.h (insn_operand_data): Add an "allows_mem" field.
6494 * genoutput.c (output_operand_data): Initialize it.
6495 * optabs.c (maybe_legitimize_operand_same_code): New function.
6496 (maybe_legitimize_operand): Use it when matching the original
6499 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6501 * genpreds.c (process_define_predicate): Move most processing
6502 to gensupport.c. Continue to validate the expression.
6503 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6504 (process_define_predicate): Move processing to gensupport.c.
6505 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6506 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6507 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6509 (valid_predicate_name_p): New function, split out from old
6510 genpreds.c:process_define_predicate.
6511 (process_define_predicate): New function, combining code from
6512 old genpreds.c and genrecog.c functions.
6513 (process_rtx): Call it for DEFINE_PREDICATE and
6514 DEFINE_SPECIAL_PREDICATE.
6516 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6518 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6519 size of a '%A' memory reference.
6520 (T_DREG, T_QREG): New neon_builtin_type_bits.
6521 (arm_init_neon_builtins): Assert that the load and store operands
6522 are neon_struct_operands.
6523 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6524 (NEON_ARG_MEMORY): New builtin_arg.
6525 (neon_dereference_pointer): New function.
6526 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6527 Handle NEON_ARG_MEMORY.
6528 (arm_expand_neon_builtin): Update after above interface changes.
6529 Use NEON_ARG_MEMORY for loads and stores.
6530 * config/arm/predicates.md (neon_struct_operand): New predicate.
6531 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6532 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6533 (V_four_elem): Tweak formatting.
6534 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6535 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6536 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6537 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6538 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6539 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6540 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6541 Use %A in the output template.
6542 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6543 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6544 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6545 the width of the memory access. Remove post-increment.
6546 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6548 2011-04-12 Nick Clifton <nickc@redhat.com>
6550 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6551 instruction for interrupt handlers if the target is the basic V850
6553 (expand_epilogue): Likewise.
6555 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6557 PR rtl-optimization/48549
6558 * combine.c (propagate_for_debug): Also stop after BB_END of
6559 this_basic_block. Process LAST and just stop processing after it.
6560 (combine_instructions): If last_combined_insn has been deleted,
6561 set last_combined_insn to its PREV_INSN.
6563 2011-04-12 Richard Guenther <rguenther@suse.de>
6565 PR tree-optimization/46076
6566 * gimple.h (struct gimple_statement_call): Add fntype field.
6567 (gimple_call_fntype): Adjust.
6568 (gimple_call_set_fntype): New function.
6569 * gimple.c (gimple_build_call_1): Set the call function type.
6570 * gimplify.c (gimplify_call_expr): Preserve the function
6571 type the frontend used for the call.
6572 (gimplify_modify_expr): Likewise.
6573 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6575 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6577 * tree-ssa.c (useless_type_conversion_p): Function pointer
6578 conversions are useless.
6580 2011-04-12 Martin Jambor <mjambor@suse.cz>
6582 * cgraph.h (cgraph_node): Remove function declaration.
6583 (cgraph_create_node): Declare.
6584 (cgraph_get_create_node): Likewise.
6585 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6586 Updated all callers.
6587 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6588 the decl does not already exist. Call cgraph_get_create_node instead
6590 (cgraph_get_create_node): New function.
6591 (cgraph_same_body_alias): Update comment.
6592 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6593 assert it does not return NULL.
6594 (cgraph_update_edges_for_call_stmt): Likewise.
6595 (cgraph_clone_edge): Likewise.
6596 (cgraph_create_virtual_clone): Likewise.
6597 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6598 instead of cgraph_node.
6599 (cgraph_add_new_function): Call cgraph_create_node or
6600 cgraph_get_create_node instead of cgraph_node.
6601 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6602 instead of cgraph_node.
6603 (record_eh_tables): Likewise.
6604 (mark_address): Likewise.
6605 (mark_load): Likewise.
6606 (build_cgraph_edges): Call cgraph_get_create_node instead
6608 (rebuild_cgraph_edges): Likewise.
6609 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6610 instead of cgraph_node.
6611 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6613 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6614 cgraph_create_node instead of cgraph_node.
6615 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6617 * lto-cgraph.c (input_node): Likewise.
6618 * lto-streamer-in.c (input_function): Likewise.
6619 * varasm.c (mark_decl_referenced): Likewise.
6620 (assemble_alias): Likewise.
6622 2011-04-12 Martin Jambor <mjambor@suse.cz>
6624 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6625 instead of cgraph_node and assert it does not return NULL.
6626 * lto-streamer-in.c (lto_read_body): Likewise.
6627 * omp-low.c (new_omp_context): Likewise.
6628 (create_task_copyfn): Likewise.
6629 * tree-emutls.c (lower_emutls_function_body): Likewise.
6630 * matrix-reorg.c (transform_allocation_sites): Likewise.
6632 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6635 * c-typeck.c (build_asm_expr): Error out on attempts to use
6636 void type outputs or inputs for constraints that allow reg or
6639 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6640 Richard Earnshaw <rearnsha@arm.com>
6643 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6644 to use sign-magnitude offsets. Reject unsupported unaligned
6645 cases. Add detailed description in comments.
6646 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6647 condition from TARGET_32BIT to TARGET_ARM.
6649 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6651 * tree.h (struct typed_tree): New.
6652 (struct tree_common): Include it instead of tree_base.
6653 (TREE_TYPE): Update for new location of type field.
6654 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6655 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6656 (union tree_node): Add typed field.
6657 * treestruct.def (TS_TYPED): New.
6658 * lto-streamer.c (check_handled_ts_structures): Handle it.
6659 * tree.c (MARK_TS_TYPED): New macro.
6660 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6662 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6664 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6665 (force_nonfallthru): Do not alter the loop nest if no basic block
6668 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6670 * config/i386/sse.md (VI): New mode iterator.
6672 (AVX256MODEI): Ditto.
6673 (AVXMODEF4P): Ditto.
6674 (avxvecpsmode): Ditto.
6675 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6676 (sse2_andnot<mode>3): New expander.
6677 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6678 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6679 (<any_logic:code><mode>3): Use VI mode iterator.
6680 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6681 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6682 (*andnottf3): Handle AVX three-operand constraints.
6683 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6685 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6686 Robert Millan <rmh@gnu.org>
6688 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6689 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6690 GNU_USER_DYNAMIC_LINKER64): Define.
6691 (REG_NAME): Don't undefine.
6692 (MD_UNWIND_SUPPORT): Undefine.
6693 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6694 (REG_NAME): Don't undefine.
6695 (MD_UNWIND_SUPPORT): Undefine.
6696 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6698 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6700 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6701 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6703 2011-04-11 Xinliang David Li <davidxl@google.com>
6705 * value-profile.c (check_ic_target): New function.
6706 (gimple_ic_transform): Sanity check indirect call target.
6707 * gimple-low.c (gimple_check_call_args): Interface change.
6708 (gimple_check_call_matching_types): New function.
6709 * tree-inline.c (tree_can_inline_p): Call new function.
6711 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6713 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6714 tree-pretty-print.h & realmpfr.h.
6716 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6719 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6720 (setup_allocno_and_important_classes): Ditto.
6722 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6724 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6725 GNU_USER_DYNAMIC_LINKER.
6726 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6727 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6728 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6729 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6730 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6731 GNU_USER_TARGET_OS_CPP_BUILTINS.
6732 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6733 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6734 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6735 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6736 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6737 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6738 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6739 GNU_USER_TARGET_OS_CPP_BUILTINS.
6740 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6741 GNU_USER_DYNAMIC_LINKER.
6742 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6743 GNU_USER_TARGET_OS_CPP_BUILTINS.
6744 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6745 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6746 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6747 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6748 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6749 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6750 GNU_USER_DYNAMIC_LINKER64): Remove.
6751 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6752 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6753 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6754 GNU_USER_DYNAMIC_LINKER.
6755 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6756 GNU_USER_TARGET_OS_CPP_BUILTINS.
6757 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6758 GNU_USER_TARGET_OS_CPP_BUILTINS.
6759 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6760 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6761 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6762 GNU_USER_TARGET_OS_CPP_BUILTINS.
6763 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6764 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6765 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6766 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6767 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6768 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6769 GNU_USER_DYNAMIC_LINKER.
6770 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6771 GNU_USER_TARGET_OS_CPP_BUILTINS.
6772 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6773 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6774 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6775 GNU_USER_DYNAMIC_LINKER.
6776 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6777 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6778 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6779 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6780 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6781 GNU_USER_DYNAMIC_LINKER.
6782 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6783 GNU_USER_DYNAMIC_LINKERN32.
6784 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6785 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6786 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6787 GNU_USER_DYNAMIC_LINKER32.
6788 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6789 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6790 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6791 GNU_USER_DYNAMIC_LINKER.
6792 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6793 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6794 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6795 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6796 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6797 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6798 GNU_USER_DYNAMIC_LINKER32.
6799 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6800 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6801 GNU_USER_DYNAMIC_LINKER.
6802 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6803 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6804 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6805 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6806 GNU_USER_DYNAMIC_LINKER64.
6807 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6808 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6809 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6810 GNU_USER_DYNAMIC_LINKER.
6811 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6812 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6813 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6814 GNU_USER_DYNAMIC_LINKER.
6815 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6816 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6817 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6818 GNU_USER_DYNAMIC_LINKER32.
6819 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6820 GNU_USER_DYNAMIC_LINKER64.
6821 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6822 GNU_USER_DYNAMIC_LINKER64.
6823 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6824 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6825 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6826 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6827 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6829 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6831 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6832 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6833 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6834 GNU_USER_DYNAMIC_LINKER.
6835 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6836 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6837 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6838 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6839 GNU_USER_DYNAMIC_LINKER64.
6840 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6841 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6842 GNU_USER_LINK_EMULATION.
6843 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6844 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6845 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6846 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6847 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6848 CPP_SPEC, CC1_SPEC): Remove.
6849 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6850 (GNU_USER_DYNAMIC_LINKER): Define.
6851 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6852 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6853 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6854 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6855 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6856 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6857 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6858 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6859 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6860 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6861 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6862 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6863 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6864 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6865 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6866 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6867 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6868 GNU_USER_DYNAMIC_LINKER.
6869 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6870 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6871 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6872 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6873 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6874 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6875 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6876 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6877 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6878 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6880 2011-04-11 Kai Tietz <ktietz@redhat.com>
6884 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6885 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6887 (ix86_is_msabi_thiscall): Removed.
6888 (ix86_is_type_thiscall): Likewise.
6889 (ix86_get_callcvt): New function.
6890 (ix86_comp_type_attributes): Simplify check.
6891 (ix86_function_regparm): Use ix86_get_callcvt for calling
6892 convention attribute checks.
6893 (ix86_return_pops_args): Likewise.
6894 (ix86_static_chain): Likewise.
6895 (x86_this_parameter): Likewise.
6896 (x86_output_mi_thunk): Likewise.
6897 (ix86_function_type_abi): Optimize check for types without attributes.
6898 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6899 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6900 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6902 (IX86_BASE_CALLCVT): Helper macro.
6903 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6904 Use ix86_get_callcvt for calling convention attribute checks and avoid
6905 symbol-decoration for stdcall in TARGET_RTD case.
6906 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6908 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6911 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6913 * config/i386/sse.md (VI_128): New mode iterator.
6914 (VI12_128): Rename from SSEMODE12.
6915 (VI14_128): Rename from SSEMODE14.
6916 (VI124_128): New mode iterator.
6917 (VI24_128): Rename from SSEMODE248.
6918 (VI248_128): Rename from SSEMODE248.
6919 (SSEMODE124C8): Remove.
6920 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6921 (*sse2_<plusminus_insn><mode>3): Merge with
6922 *avx_<plusminus_insn><mode>3.
6923 (*mulv8hi3): Merge with *avx_mulv8hi3.
6924 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6925 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6926 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6927 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6928 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6929 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6930 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6931 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6932 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6933 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6934 (*<smaxmin:code>v8hi3): Ditto.
6935 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6936 (*<smaxmin:code>v16qi3): Ditto.
6937 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6938 (*sse2_eq<mode>3): Ditto.
6939 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6940 (*sse2_gt<mode>3): Ditto.
6941 (vcondv2di): Split out of vcond<mode>.
6942 (vconduv2di): Split out of vcondu<mode>.
6944 2011-04-11 Richard Guenther <rguenther@suse.de>
6946 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6947 before calling tree_low_cst.
6949 2011-04-11 Richard Guenther <rguenther@suse.de>
6951 * stor-layout.c (layout_type): Compute all array index size operations
6952 in the original type.
6953 (initialize_sizetypes): Add comment.
6954 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6956 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6958 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6960 2011-04-11 Martin Jambor <mjambor@suse.cz>
6962 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6963 of cgraph_node, handle NULL return value.
6964 (cgraph_global_info): Likewise.
6965 (cgraph_rtl_info): Likewise.
6966 * tree-inline.c (estimate_num_insns): Likewise.
6967 * gimplify.c (unshare_body): Likewise.
6968 (unvisit_body): Likewise.
6969 (gimplify_body): Likewise.
6970 * predict.c (optimize_function_for_size_p): Likewise.
6971 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6972 (call_may_clobber_ref_p_1): Likewise.
6973 * varasm.c (function_section_1): Likewise.
6974 (assemble_start_function): Likewise.
6976 2011-04-11 Martin Jambor <mjambor@suse.cz>
6978 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6980 * final.c (rest_of_clean_state): Likewise.
6981 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6982 * passes.c (pass_init_dump_file): Likewise.
6983 (execute_all_ipa_transforms): Likewise.
6984 (function_called_by_processed_nodes_p): Likewise.
6985 * predict.c (maybe_hot_frequency_p): Likewise.
6986 (probably_never_executed_bb_p): Likewise.
6987 (compute_function_frequency): Likewise.
6988 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6989 (unnest_nesting_tree_1): Likewise.
6990 (lower_nested_functions): Likewise.
6991 * tree-optimize.c (execute_fixup_cfg): Likewise.
6992 (tree_rest_of_compilation): Likewise.
6993 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6994 * tree-sra.c (ipa_early_sra): Likewise.
6995 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6996 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6997 * ipa.c (record_cdtor_fn): Likewise.
6998 * ipa-inline.c (cgraph_early_inlining): Likewise.
6999 (compute_inline_parameters_for_current): Likewise.
7000 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7001 * ipa-pure-const.c (local_pure_const): Likewise.
7002 * ipa-split.c (split_function): Likewise.
7003 (execute_split_functions): Likewise.
7004 * cgraphbuild.c (build_cgraph_edges): Likewise.
7005 (rebuild_cgraph_edges): Likewise.
7006 (cgraph_rebuild_references): Likewise.
7007 (remove_cgraph_callee_edges): Likewise.
7008 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7009 (verify_cgraph_node): Likewise.
7010 (cgraph_analyze_functions): Likewise.
7011 (cgraph_preserve_function_body_p): Likewise.
7012 (save_inline_function_body): Likewise.
7013 (save_inline_function_body): Likewise.
7014 * tree-inline.c (copy_bb): Likewise.
7015 (optimize_inline_calls): Likewise.
7017 2011-04-11 Martin Jambor <mjambor@suse.cz>
7019 PR tree-optimization/48195
7020 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7021 ipa_check_create_edge_args.
7022 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7023 ipa_check_create_edge_args.
7024 * ipa-inline.c (inline_generate_summary): Do not call
7025 ipa_check_create_node_params and ipa_check_create_edge_args.
7026 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7027 ipa_check_create_edge_args.
7029 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7031 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7033 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7034 * function.c (record_hard_reg_sets): Likewise.
7035 * ira.c (compute_regs_asm_clobbered): Likewise.
7036 * sched-deps.c (sched_analyze_1): Likewise.
7037 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7039 2011-04-09 Xinliang David Li <davidxl@google.com>
7041 PR tree-optimization/PR48484
7042 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7043 has_valid_pred lazily
7045 2011-04-09 Duncan Sands <baldrick@free.fr>
7047 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7049 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7051 * combine.c (combine_validate_cost): Adjust comments. Set registered
7052 cost of I0 to zero at the end, if any.
7054 2011-04-08 Xinliang David Li <davidxl@google.com>
7056 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7057 to insane profile data.
7059 2011-04-08 Xinliang David Li <davidxl@google.com>
7061 * ipa-cp.c (ipcp_update_profiling): Correct
7062 negative scale factor due to insane profile data.
7064 2011-04-08 Xinliang David Li <davidxl@google.com>
7066 * final.c (dump_basic_block_info): New function.
7067 (final): Dump basic block.
7068 (final_scan_insn): Remove old dump.
7070 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7073 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7076 2011-04-08 Michael Matz <matz@suse.de>
7079 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7081 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7082 * rtl.h (rebuild_jump_labels_chain): Declare.
7083 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7084 insns inserted on edges.
7086 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7088 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7089 * config/arm/arm-arches.def: New.
7090 * config/arm/arm-opts.h: New.
7091 * config/arm/genopt.sh: New.
7092 * config/arm/arm-tables.opt: New (generated).
7093 * config/arm/arm.c (arm_handle_option, arm_target_help,
7094 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7095 (all_architectures): Get most table contents from arm-arches.def.
7096 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7097 arm_selected_tune here.
7098 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7099 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7100 (march=, mcpu=, mtune=): Use Enum and Var.
7101 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7102 (arm.o): Update dependencies.
7104 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7106 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7108 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7109 (write_typed_alloc_defns): Likewise.
7110 (main): Calls write_typed_alloc_defns with output_header.
7112 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7115 * ira-color.c (setup_profitable_hard_regs): Add comments.
7116 Don't take prohibited hard regs into account.
7117 (setup_conflict_profitable_regs): Rename to
7118 get_conflict_profitable_regs.
7119 (check_hard_reg_p): Check prohibited hard regs.
7121 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7123 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7124 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7125 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7127 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7130 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7131 move from floating point to shift amount register.
7132 (emit_move_sequence): Remove secondary reload support for floating
7133 point to shift amount amount register copies.
7134 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7135 amount register copies.
7136 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7137 register, return false if mode isn't a scalar integer mode.
7138 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7140 2011-04-08 Richard Guenther <rguenther@suse.de>
7142 * gimple.c (gimple_call_flags): Remove kludge.
7144 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7146 * sel-sched.c (sel_region_init): Move call to
7147 sel_setup_region_sched_flags after setup_current_loop_nest.
7149 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7151 PR rtl-optimization/48272
7152 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7153 init_insn_reg_pressure_info. Adjust a caller.
7154 * sched-int.h (init_insn_reg_pressure_info): Declare.
7155 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7156 when sched-pressure is enabled.
7158 2011-04-08 Richard Guenther <rguenther@suse.de>
7160 * gimple.c (gimple_set_modified): Do not queue calls to
7161 MODIFIED_NORETURN_CALLS here ...
7162 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7164 2011-04-08 Richard Guenther <rguenther@suse.de>
7167 * toplev.c (lang_dependent_init): Do not open asm_out_file
7168 in WPA mode, nor perform debug machinery initialization.
7169 (finalize): Do not unlink asm_out_file in WPA mode.
7171 2011-04-08 Richard Guenther <rguenther@suse.de>
7173 * gimple.h (gimple_call_fntype): New function.
7174 (gimple_call_return_type): Use it.
7175 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7176 * gimple-low.c (gimple_check_call_args): Likewise.
7177 * gimple.c (gimple_call_flags): Likewise.
7178 (gimple_call_arg_flags): Likewise.
7179 (gimple_call_return_flags): Likewise.
7180 * tree-cfg.c (verify_gimple_call): Likewise.
7181 (do_warn_unused_result): Likewise.
7182 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7183 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7185 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7187 PR rtl-optimization/48235
7188 * sel-sched.c (code_motion_process_successors): Recompute the last
7189 insn in basic block if control flow changed.
7190 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7191 Update condition for ilist_remove.
7193 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7195 PR rtl-optimization/48302
7196 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7197 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7198 it to record added preheader blocks.
7199 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7200 on to sel_add_loop_preheaders.
7201 (sel_region_init): Move call to setup_current_loop_nest after
7204 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7207 * cfgloop.h (loop_has_exit_edges): New helper.
7208 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7210 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7211 that have no exit edges.
7213 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7215 PR rtl-optimization/48442
7216 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7217 all callers. Adjust assert.
7219 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7221 PR tree-optimization/48377
7222 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7223 is_packed to true even for types with smaller TYPE_ALIGN than
7226 2011-04-08 Richard Guenther <rguenther@suse.de>
7229 * doc/tm.texi: Re-generate.
7231 2011-04-08 Wei Guozhi <carrot@google.com>
7234 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7235 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7236 * config/arm/arm.md (*push_multi): Change the length computation to
7239 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7241 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7242 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7243 * doc/tm.texi: Regenerate.
7244 * system.h (ASM_OUTPUT_BSS): Poison.
7245 * varasm.c (asm_output_bss): Remove function.
7246 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7248 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7249 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7250 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7251 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7253 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7255 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7257 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7259 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7261 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7264 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7266 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7267 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7268 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7270 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7271 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7272 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7273 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7274 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7275 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7276 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7277 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7278 options. Don't map other m68k options manually. Don't handle
7279 old-style options as canonical.
7280 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7281 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7283 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7285 * basic-block.h (force_nonfallthru): Move to...
7286 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7287 (force_nonfallthru): ...here.
7288 * cfghooks.c (force_nonfallthru): New function.
7289 * cfgrtl.c (force_nonfallthru): Rename into...
7290 (rtl_force_nonfallthru): ...this.
7291 (commit_one_edge_insertion): Do not set AUX field.
7292 (commit_edge_insertions): Do not discover new basic blocks.
7293 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7294 (cfg_layout_rtl_cfg_hooks): Likewise.
7295 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7296 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7297 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7299 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7301 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7304 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7306 * config/i386/sse.md: Update copyright year.
7307 (avxcvtvecmode): Remove.
7308 (sse_movhlps): Merge with *avx_movhlps.
7309 (sse_movlhps): Merge with *avx_movlhps.
7310 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7311 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7312 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7313 (sse_loadhps): Merge with *avx_loadhps.
7314 (sse_storelps): Merge with *avx_storelps.
7315 (sse_loadlps): Merge with *avx_loadlps.
7316 (sse_movss): Merge with *avx_movss.
7317 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7318 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7319 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7320 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7321 (vec_set<mode>_0): Ditto.
7322 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7323 (sse4_1_insertps): Merge with *avx_insertps.
7324 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7325 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7326 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7327 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7328 (sse2_storehpd): Merge with *avx_storehpd.
7329 (sse2_loadhpd): Merge with *avx_loadhpd.
7330 (sse2_loadlpd): Merge with *avx_loadlpd.
7331 (sse2_movsd): Merge with *avx_movsd.
7332 (*vec_concatv2df): Merge with *vec_concatv2df.
7334 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7337 * combine.c (combine_instructions): Add last_combined_insn,
7338 update it if insn is after it, pass it to all try_combine calls.
7339 (try_combine): Add last_combined_insn parameter, pass it instead of
7340 i3 to propagate_for_debug.
7342 2011-04-07 Nick Clifton <nickc@redhat.com>
7344 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7345 to handle MDR <-> data register transfers.
7346 (movhi_internal): Likewise.
7348 2011-04-07 Alan Modra <amodra@gmail.com>
7350 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7351 previous stack info.
7353 2011-04-07 Tom de Vries <tom@codesourcery.com>
7356 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7357 flow_find_cross_jump. Swap variables to implement backward replacement.
7358 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7360 2011-04-07 Tom de Vries <tom@codesourcery.com>
7363 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7364 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7366 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7367 src1 or src2. Redirect edges to the last basic block. Update
7368 frequency and count on multiple basic blocks in case of fallthru.
7370 2011-04-07 Tom de Vries <tom@codesourcery.com>
7373 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7375 (old_insns_match_p): Change return type. Replace return false/true
7376 with return dir_none/dir_both. Use can_replace_by.
7377 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7378 direction from dir_p. Register replacement direction in dir, last_dir
7379 and afterlast_dir. Handle new return type of old_insns_match_p using
7380 merge_dir. Return replacement direction in dir_p.
7381 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7382 return type of old_insns_match_p.
7383 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7384 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7385 flow_find_cross_jump.
7386 * basic-block.h (enum replace_direction): New type.
7387 (flow_find_cross_jump): Add parameter to declaration.
7389 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7391 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7392 (AVXMODEDCVTPS2DQ): Ditto.
7393 (VEC_FLOAT_MODE): Ditto.
7394 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7395 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7396 (<any_logic:code><mode>3): Use VF mode iterator.
7397 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7398 Use VF mode iterator.
7399 (copysign<mode>3): Use VF mode iterator.
7400 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7401 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7402 (*<any_logic:code><MODEF:mode>3): Merge with
7403 *avx_<any_logic:code><MODEF:mode>3.
7404 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7405 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7406 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7407 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7408 (sse2_cvtdq2ps): Use %v modifier.
7409 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7410 (avx_cvtps2dq<avxmodesuffix>): Remove.
7411 (sse2_cvtps2dq): Use %v modifier.
7412 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7413 (avx_cvttps2dq<avxmodesuffix>): Remove.
7414 (sse2_cvttps2dq): Use %v modifier.
7415 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7416 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7417 (sse2_cvtsd2siq): Fix insn template.
7418 (sse2_cvtsd2siq_2): Ditto.
7419 (sse2_cvttsd2siq): Ditto.
7420 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7421 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7423 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7425 * gcov-io.c: Use GCC Runtime Library Exception.
7427 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7430 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7431 as base_reg whatever register reg has been eliminated to, instead
7432 of hardcoding STACK_POINTER_REGNUM.
7434 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7436 * doc/tm.texi.in: Document C target hooks as separate from general
7438 * doc/tm.texi: Regenerate.
7439 * genhooks.c (struct hook_desc): Add docname field.
7440 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7442 (hook_array): Include c-target.def.
7443 (emit_documentation): Use docname field in output.
7444 (emit_init_macros): Take docname argument. Only emit definitions
7445 for hooks matching docname.
7446 (main): Expect additional arguments in all cases. Pass argument
7447 to emit_init_macros.
7448 * target.def: Move initial macro definitions and comments to
7449 target-hooks-macros.h.
7450 (gcc_targetcm): Move to c-family/c-target.def.
7451 * target.h (targetcm): Move declaration to c-family/c-target.h.
7452 * targhooks.c (default_handle_c_option): Move to
7454 * targhooks.h (default_handle_c_option): Move declaration to
7455 c-family/c-common.h.
7456 * target-hooks-macros.h: New file.
7457 * config.gcc (target_has_targetcm): Define and use to add to
7458 c_target_objs and cxx_target_objs.
7459 * config/default-c.c: New file.
7460 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7461 of target.h and target-def.h.
7462 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7463 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7464 darwin_check_cfstring_format_arg): Make static.
7465 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7466 TARGET_STRING_OBJECT_REF_TYPE_P,
7467 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7468 * config/darwin-protos.h (darwin_objc_construct_string,
7469 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7471 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7472 TARGET_STRING_OBJECT_REF_TYPE_P,
7473 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7474 * config/t-darwin (darwin-c.o): Update dependencies.
7475 * system.h (TARGET_HAS_TARGETCM): Poison.
7476 * Makefile.in (TARGET_H): Update.
7477 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7478 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7479 (default-c.o): New target.
7480 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7481 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7482 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7484 (build/genhooks.o): Update dependencies.
7486 2011-04-06 Richard Guenther <rguenther@suse.de>
7488 * ipa-inline.c (enum inlining_mode): Remove.
7489 (cgraph_flatten): Use some other token.
7490 (cgraph_edge_early_inlinable_p): New function, split out from ...
7491 (cgraph_perform_always_inlining): New function, split out from ...
7492 (cgraph_decide_inlining_incrementally): ... here.
7493 (cgraph_mark_inline_edge): Adjust.
7494 (cgraph_early_inlining): Re-structure.
7495 (pass_early_inline): Require SSA form.
7497 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7498 Julian Brown <julian@codesourcery.com>
7499 Mark Shinwell <shinwell@codesourcery.com>
7501 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7502 LO_REGS only for Thumb-1.
7503 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7504 be used in short instructions when optimising for size on Thumb-2.
7506 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7508 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7509 associated with user returns to be preserved.
7511 2011-04-06 Tristan Gingold <gingold@adacore.com>
7513 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7514 symbol_queue_size, DBXOUT_DECR_NESTING,
7515 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7516 if XCOFF_DEBUGGING_INFO.
7518 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7520 * config/i386/i386.md (attribute isa): New.
7521 (attribute enabled): New.
7522 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7523 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7524 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7525 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7526 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7527 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7528 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7529 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7531 * config/i386/sse.md (VF): New mode iterator.
7535 (SSEMODEF4): Remove.
7536 (attribute sse): Handle V8SF and V4DF modes.
7537 (<absneg:code><mode>2): Use VF mode iterator.
7538 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7540 (<plusminus_insn><mode>3): Use VF mode iterator.
7541 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7542 Use VF mode iterator.
7543 (<sse>_vm<plusminus_insn><mode>3): Merge with
7544 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7545 (mul<mode>3): Use VF mode iterator.
7546 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7547 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7549 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7550 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7551 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7552 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7554 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7555 Use VF1 mode iterator.
7556 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7557 (sqrt<VF2:mode>2): New expander.
7558 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7559 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7560 and sqrtv2df2. Use VF mode iterator.
7561 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7563 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7564 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7565 Use VF1 mode iterator.
7566 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7567 (<smaxmin:code><mode>3): Use VF mode iterator.
7568 (*<smaxmin:code><mode>3_finite): Merge with
7569 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7570 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7571 (<sse>_vm<smaxmin:code><mode>2): Merge with
7572 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7573 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7575 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7577 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7578 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7579 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7580 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7581 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7583 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7584 Use VF_128 mode iterator.
7585 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7587 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7588 VF_128 mode iterator.
7589 (vcond<mode>): Use VF mode iterator.
7590 * config/i386/predicates.md (sse_comparison_operator): Merge with
7591 avx_comparison_float_operator. Do not declare as special_predicate.
7592 * config/i386/i386.c (struct builtin_description): Update for renamed
7594 (ix86_expand_args_builtin): Ditto.
7595 (ix86_expand_sse_compare_mask): Ditto.
7597 2011-04-06 Richard Guenther <rguenther@suse.de>
7599 * tree-inline.c (estimate_num_insns): For calls simply account
7600 for all passed arguments and a used return value.
7602 2011-04-06 Richard Guenther <rguenther@suse.de>
7604 PR tree-optimization/47663
7605 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7606 call_stmt_time fields.
7607 (cgraph_edge_inlinable_p): Declare.
7608 (cgraph_edge_recursive_p): New inline function.
7609 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7610 (cgraph_clone_edge): Copy it.
7611 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7612 Account for call stmt time.
7613 (cgraph_estimate_time_after_inlining): Take edge argument.
7614 (cgraph_estimate_edge_growth): Account call stmt size.
7615 (cgraph_estimate_size_after_inlining): Take edge argument.
7616 (cgraph_mark_inline_edge): Adjust.
7617 (cgraph_check_inline_limits): Likewise.
7618 (cgraph_recursive_inlining_p): Remove.
7619 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7620 (cgraph_decide_recursive_inlining): Take edge argument and
7622 (cgraph_decide_inlining_of_small_functions): Do not avoid
7623 diags for recursive inlining here.
7624 (cgraph_flatten): Adjust.
7625 (cgraph_decide_inlining_incrementally): Likewise.
7626 (estimate_function_body_sizes): Remove call cost handling.
7627 (compute_inline_parameters): Initialize caller edge call costs.
7628 (cgraph_estimate_edge_growth): New function.
7629 (cgraph_estimate_growth): Use it.
7630 (cgraph_edge_badness): Likewise.
7631 (cgraph_check_inline_limits): Take an edge argument.
7632 (cgraph_decide_inlining_of_small_functions): Adjust.
7633 (cgraph_decide_inlining): Likewise.
7634 * tree-inline.c (estimate_num_insns): Only account for call
7635 return value if it is used.
7636 (expand_call_inline): Avoid diagnostics on recursive inline
7638 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7639 (input_edge): Input edge call costs.
7641 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7643 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7645 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7647 * doc/invoke.texi (Spec Files): Fix typo.
7649 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7651 * profile.c (branch_prob): Move declaration of local variable. Remove
7652 obsolete ??? comment. Expand the location explicitly instead of using
7653 the LOCATION_FILE and LOCATION_LINE macros.
7655 2011-04-06 Wei Guozhi <carrot@google.com>
7658 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7659 (arm_cond_branch): Likewise.
7660 (arm_cond_branch_reversed): Likewise.
7661 (arm_jump): Likewise.
7662 (push_multi): Likewise.
7663 * config/arm/constraints.md (Py): New constraint.
7665 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7668 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7670 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7671 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7672 #ifdef DBX_DEBUGGING_INFO.
7674 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7677 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7678 if old and new states differ.
7680 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7682 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7683 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7684 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7685 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7686 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7688 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7689 ColdFire options to -mcpu= options.
7691 2011-04-05 Jeff Law <law@redhat.com>
7693 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7694 check if BB is a successor of LOOP->header and return
7695 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7697 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7699 * cprop.c (struct reg_use): Remove.
7700 (reg_use_table): Make an array of RTX.
7701 (find_used_regs, constprop_register, local_cprop_pass,
7702 bypass_block): Simplify users of reg_use_table.
7703 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7704 on one of the uses found by find_used_regs.
7706 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7709 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7712 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7714 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7716 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7718 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7721 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7723 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7725 * combine.c: Include obstack.h.
7726 (struct insn_link): Define.
7727 (uid_log_links): Adjust type.
7728 (FOR_EACH_LOG_LINK): New macro.
7729 (insn_link_obstack): Declare.
7730 (alloc_insn_link): Define.
7731 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7732 type of link variables.
7733 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7734 (try_combine, record_promoted_values, distribute_notes): Likewise.
7735 (distribute_links): Likewise. Tweak prototype.
7736 (clear_log_links): Delete.
7737 (adjust_for_new_dest): Call alloc_insn_link.
7738 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7740 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7742 * gcse.c (modify_mem_list): Convert to an array of VECs.
7743 (canon_modify_mem_list, compute_transp): Tweak formatting.
7744 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7745 (load_killed_in_block_p): Likewise.
7746 (record_last_mem_set_info): Likewise.
7747 (clear_modify_mem_tables): Likewise.
7749 2011-04-05 Tom de Vries <tom@codesourcery.com>
7752 * function.c (emit_use_return_register_into_block): Only define if
7755 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7757 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7759 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7761 * config/rx/rx-opts.h: New.
7762 * config/rx/rx.c (rx_cpu_type): Remove.
7763 (rx_handle_option): Don't assert that global structures are in
7764 use. Access variables via opts pointer. Defer most handling of
7765 OPT_mint_register_. Use error_at.
7766 (rx_option_override): Handle deferred OPT_mint_register_ here.
7767 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7768 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7769 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7770 (rx_cpu_types): New Enum and EnumValue entries.
7771 (mint-register=): Use Defer and use Var accordingly.
7773 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7775 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7776 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7777 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7779 (debug_free_queue, debug_nesting, symbol_queue_index):
7781 * dbxout.c: ...to here. Make static.
7783 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7785 * gcse.c (modify_pair): Define. Define a VEC of it.
7786 (canon_modify_mem_list): Convert to an array of VECs.
7787 (free_insn_expr_list_list): Delete.
7788 (clear_modify_mem_tables): Call VEC_free instead.
7789 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7790 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7791 (canon_list_insert, compute_transp): Likewise.
7793 2011-04-05 Tom de Vries <tom@codesourcery.com>
7796 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7799 2011-04-05 Tom de Vries <tom@codesourcery.com>
7802 * function.c (emit_use_return_register_into_block): New function.
7803 (thread_prologue_and_epilogue_insns): Use
7804 emit_use_return_register_into_block.
7806 2011-04-05 Tom de Vries <tom@codesourcery.com>
7809 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7812 2011-04-05 Tom de Vries <tom@codesourcery.com>
7814 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7816 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7818 * config/arm/arm.md (define_constants for unspec): Replace with
7820 (define_constants for unspecv): Replace with define_c_enum.
7821 * config/arm/neon.md (define_constants for unspec): Replace with
7824 2011-04-04 Richard Henderson <rth@redhat.com>
7827 * dwarf2out.c (output_line_info): Always emit line info from
7828 at least one section.
7829 (dwarf2out_init): Create text_section_line_info here ...
7830 (set_cur_line_info_table): ... not here.
7832 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7835 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7838 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7840 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7842 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7843 (expr_equiv_p): Remove.
7844 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7845 (hash_scan_set): Update call to insert_set_in_table.
7846 (dump_hash_table): Dump <dest, src> pair.
7847 (lookup_set): Simplify. Lookup <dest, src> pair.
7848 (compute_transp): Remove, fold heavily simplified code into...
7849 (compute_local_properties): ...here. Expect COMP and TRANSP
7851 (find_avail_set): Take set directly from struct expr.
7852 (find_bypass-set): Likewise.
7853 (bypass_block): Likewise.
7854 (cprop_insn): Likewise. Remove redundant INSN_P test.
7856 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7857 checks on form of COND from find_implicit_sets to here.
7858 (find_implicit_sets): Cleanup control flow. Split critical edges
7859 if it exposes implicit sets. Allocate/resize implicit_sets as
7861 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7862 changed something. Run df_analyze after find_implicit_sets if any
7863 edges were split. Do not allocate implicit_sets here.
7865 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7866 (gcse_obstack): Renamed to cprop_obstack.
7867 (GNEW, GNEWVEC, GNEWVAR): Remove.
7869 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7870 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7871 (gcse_alloc): Likewise, and rename to cprop_alloc.
7872 (alloc_gcse_men, free_gcse_mem): Remove.
7873 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7874 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7875 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7877 * cprop.c (oprs_not_set_p): Remove.
7878 (mark_set, mark_clobber): Remove.
7879 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7880 (reg_not_set_p): New function.
7881 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7882 (cprop_insn): Likewise.
7883 (cprop_jump): Use FOR_EACH_EDGE.
7885 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7888 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7889 (rank_for_schedule): Use scheduled_insns vector instead of
7890 last_scheduled_insn.
7891 (ok_for_early_queue_removal): Likewise.
7892 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7894 (choose_ready): Likewise.
7895 (commit_schedule): Use VEC_iterate.
7896 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7897 a dbg_cnt, use it and ensure the first insn is in the ready list.
7898 (haifa_sched_init): Allocate scheduled_insns.
7899 (sched_extend_ready_list): Don't allocate it; reserve space.
7900 (haifa_sched_finish): Free it.
7902 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7904 * optc-gen.awk: Always remove type from Variable entry before
7905 recording in var_seen.
7907 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7909 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7910 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7911 call to tidy_fallthru_edges.
7913 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7915 * doc/options.texi (ToLower): Document.
7916 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7917 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7918 * opts.h (cl_option): Add cl_tolower field.
7919 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7920 arguments with lowercase strings.
7921 * config/rx/rx.opt (mcpu=): Add ToLower.
7922 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7925 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7927 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7929 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7931 * config/vax/vax.c: Include reload.h.
7933 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7935 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7936 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7937 (sparc_preferred_reload_class): New function.
7939 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7942 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7943 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7945 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7947 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7948 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7950 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7952 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7953 (ASM_OUTPUT_ALIGNED_BSS): Define.
7955 2011-04-03 Michael Matz <matz@suse.de>
7957 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7958 and next_slot members.
7959 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7960 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7961 (lto_streamer_cache_append): Declare.
7962 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7963 unsigned index, remove offset parameter, ensure that we append
7964 or update existing entries.
7965 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7966 parameter, update next_slot for append.
7967 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7969 (lto_streamer_cache_insert_at): Likewise.
7970 (lto_streamer_cache_append): New function.
7971 (lto_streamer_cache_lookup): Use unsigned index.
7972 (lto_streamer_cache_get): Likewise.
7973 (lto_record_common_node): Don't test tree_node_can_be_shared.
7974 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7975 (lto_streamer_cache_delete): Don't free offsets member.
7976 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7977 (lto_output_string_with_length): Use lto_output_data_stream.
7978 (lto_output_tree_header): Remove ix parameter, don't write it.
7979 (lto_output_builtin_tree): Likewise.
7980 (lto_write_tree): Adjust callers to above, don't track and write
7981 offset, write unsigned index.
7982 (output_unreferenced_globals): Don't emit all global vars.
7983 (write_global_references): Use unsigned indices.
7984 (lto_output_decl_state_refs): Likewise.
7985 (write_symbol): Likewise.
7986 * lto-streamer-in.c (lto_input_chain): Move earlier.
7987 (input_function): Use unsigned index.
7988 (input_alias_pairs): Don't read and then ignore all global vars.
7989 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7990 don't pass it back, use lto_streamer_cache_append.
7991 (lto_register_var_decl_in_symtab): Use unsigned index.
7992 (lto_register_function_decl_in_symtab): Likewise.
7993 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7995 (lto_get_builtin_tree): Don't read index, use
7996 lto_streamer_cache_append.
7997 (lto_read_tree): Adjust call to lto_materialize_tree.
7999 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8000 don't use function calls in arguments to MIN.
8002 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8005 * gimple.c (gimple_type_leader_entry): Mark deletable.
8007 2011-04-03 Alan Modra <amodra@gmail.com>
8009 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8011 2011-04-03 Michael Matz <matz@suse.de>
8013 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8015 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8017 2011-04-03 Michael Matz <matz@suse.de>
8019 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8020 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8021 without function context.
8022 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8023 current_function_decl and cfun.
8025 2011-04-03 Michael Matz <matz@suse.de>
8027 * tree.c (decl_init_priority_insert): Don't create entry for
8029 (decl_fini_priority_insert): Ditto.
8030 (fields_compatible_p, find_compatible_field): Remove.
8031 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8032 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8034 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8036 * combine.c (try_combine): Remove useless local variable.
8038 2011-04-03 Richard Guenther <rguenther@suse.de>
8039 Ira Rosen <ira.rosen@linaro.org>
8041 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8042 non-variable offsets and compare the remaining bases of the two
8043 accesses instead of looking for exact same data-ref.
8045 2011-04-02 Kai Tietz <ktietz@redhat.com>
8048 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8050 * i386.c (ix86_is_msabi_thiscall): New helper function.
8051 (ix86_is_type_thiscall): New helper function.
8052 (ix86_comp_type_attributes): Handle thiscall for method-functions
8054 (init_cumulative_args): Likewise.
8055 (find_drap_reg): Likewise.
8056 (ix86_static_chain): Likewise.
8057 (x86_this_parameter): Likewise.
8058 (x86_output_mi_thunk): Likewise.
8060 2011-04-01 Olivier Hainque <hainque@adacore.com>
8061 Nicolas Setton <setton@adacore.com>
8062 Eric Botcazou <ebotcazou@adacore.com>
8064 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8065 (add_gnat_descriptive_type_attribute): New function.
8066 (gen_array_type_die): Call it.
8067 (gen_enumeration_type_die): Likewise.
8068 (gen_struct_or_union_type_die): Likewise.
8069 (modified_type_die): Likewise.
8070 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8071 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8072 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8074 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8077 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8078 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8081 2011-03-17 Richard Guenther <rguenther@suse.de>
8084 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8085 origin for decls in other ltrans units.
8086 (input_varpool_node): Likewise.
8088 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8091 * expr.c (expand_assignment): Handle all possibilities
8092 if TO_RTX is CONCAT.
8093 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8094 (store_split_bit_field): If SUBREG_REG (op0) or
8095 op0 itself has smaller mode than word, return it
8096 for offset 0 and const0_rtx for out-of-bounds stores.
8097 If word is const0_rtx, skip it.
8099 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8101 * config/h8300/h8300.c (print_operand_address): Rename to...
8102 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8103 Call h8300_print_operand and h8300_print_operand_address instead of
8104 print_operand and print_operand_address. Declare.
8105 (print_operand): Renake to...
8106 (h8300_print_operand): ...this. Make static. Adjust comments.
8107 Call h8300_print_operand instead of print_operand. Declare.
8108 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8109 (h8300_register_move_cost): Likewise.
8110 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8111 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8112 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8113 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8114 * config/h8300/h8300-protos.h (print_operand): Delete.
8115 (print_operand_address): Delete.
8117 2011-04-01 Richard Henderson <rth@redhat.com>
8120 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8121 in strict mode before dwarf4. Re-order tests to early out
8122 before switching sections.
8124 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8126 * config/h8300/constraints.md: New file.
8127 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8128 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8129 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8130 * config/h8300/predicates.md (bit_operand): Likewise.
8131 (incdec_operand): Use satisfies_constraint_M and
8132 satisfies_constraint_O. Don't use C code block.
8133 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8134 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8135 (compute_mov_length): Use satisfies_constraint_G.
8136 (fix_bit_operand): Use satisfies_constraint_U.
8137 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8138 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8139 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8140 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8141 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8142 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8143 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8144 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8145 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8146 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8147 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8148 (EXTRA_MEMORY_CONSTRAINT): Delete.
8150 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8151 Michael Meissner <meissner@linux.vnet.ibm.com>
8154 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8155 operands, as per the specifications.
8157 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8158 (vec_extract_evenv4sf): Ditto.
8159 (vec_extract_evenv8hi): Ditto.
8160 (vec_extract_evenv16qi): Ditto.
8161 (vec_extract_oddv4si): Ditto.
8163 2011-03-31 Mark Wielaard <mjw@redhat.com>
8165 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8166 high_pc attribute if the CU has no associated code. Only output
8167 DW_AT_entry_pc for CU if not generating strict dwarf and
8170 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8172 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8173 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8175 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8176 * final.c (final_start_function): Call the new function rather
8177 than using a NULL argument for dwarf2out_frame_debug.
8179 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8180 that contains the prologue.
8182 * haifa-sched.c (queue_insn): New arg REASON. All callers
8183 changed. Print it in debugging output.
8185 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8187 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8188 Split most of the code into...
8189 (begin_move_insn): ... here. New function.
8190 (ebb_sched_info): Add a pointer to it.
8191 * haifa-sched.c (scheduled_insns): New static variable.
8192 (sched_extend_ready_list): Allocate it.
8193 (schedule_block): Use it to record the order of scheduled insns.
8194 Perform RTL changes to move insns only after all scheduling
8195 decisions have been made.
8196 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8197 begin_move_insn field.
8198 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8199 * sched-int.h (struct haifa_sched_info): Remove second argument
8200 from begin_schedule_ready hook. Add new member begin_move_insn.
8201 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8202 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8204 * haifa-sched.c (prune_ready_list): New function, broken out of
8206 (schedule_block): Use it.
8208 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8210 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8212 2011-04-01 Kai Tietz <ktietz@redhat.com>
8214 * config.gcc (*-*-mingw*): Allow as option the
8215 posix threading model.
8216 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8217 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8219 (CPP_SPEC): Add pthread/no-pthread handling.
8220 (LIB_SPEC): Likewise.
8221 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8222 (LIB_SPEC): Likewise.
8223 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8224 flag to pass -pthread option for shared libgcc build.
8225 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8226 for shared libgcc build.
8227 * config/i386/t-mingw-pthread: New file.
8228 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8229 New define to enable use of library pthread by default.
8230 * config/i386/mingw.opt (pthread): New driver option.
8231 (no-pthread): New driver option.
8232 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8233 * config/i386/mingw-w64.opt: Likewise.
8235 2011-04-01 Gary Funck <gary@intrepid.com>
8237 * c-decl.c (grokdeclarator): Fix formatting.
8239 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8241 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8242 instead of n_operands.
8243 (set_storage_via_setmem): Likewise.
8244 * optabs.c (maybe_gen_insn): Likewise.
8245 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8246 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8247 (mips_expand_builtin_direct): Likewise.
8248 * config/spu/spu.c (expand_builtin_args): Likewise.
8250 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8252 * recog.h (insn_data_d): Add n_generator_args.
8253 * genoutput.c (data): Likewise.
8254 (output_insn_data): Print it.
8255 (max_opno, num_dups): Delete.
8256 (scan_operands): Just fill in "d->operand[...]".
8257 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8259 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8261 * gensupport.h (pattern_stats): New structure.
8262 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8263 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8264 (max_operand_1, max_operand_vec): Delete.
8265 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8267 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8269 * emit-rtl.c (emit_pattern_after_setloc): New function.
8270 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8271 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8272 (emit_pattern_after): New function.
8273 (emit_insn_after, emit_jump_insn_after): Call it.
8274 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8275 (emit_pattern_before_setloc): New function.
8276 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8277 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8279 (emit_pattern_before): New function.
8280 (emit_insn_before, emit_jump_insn_before): Call it.
8281 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8283 2011-03-31 Richard Henderson <rth@redhat.com>
8285 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8286 (dw_separate_line_info_entry): Remove.
8287 (enum dw_line_info_opcode): New.
8288 (dw_line_info_entry): Use it.
8289 (dw_line_info_table, dw_line_info_table_p): New.
8290 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8291 (line_info_table, line_info_label_num): Remove.
8292 (line_info_table_in_use): Remove.
8293 (separate_line_info_table): Remove.
8294 (separate_line_info_table_allocated): Remove.
8295 (separate_line_info_table_in_use): Remove.
8296 (LINE_INFO_TABLE_INCREMENT): Remove.
8297 (line_info_label_num): New.
8298 (cur_line_info_table): New.
8299 (text_section_line_info, cold_text_section_line_info): New.
8300 (separate_line_info): New.
8301 (SEPARATE_LINE_CODE_LABEL): Remove.
8302 (print_dwarf_line_table): Remove.
8303 (debug_dwarf): Don't dump it.
8304 (output_one_line_info_table): New.
8305 (output_line_info): Use it.
8306 (new_line_info_table): New.
8307 (set_cur_line_info_table): New.
8308 (dwarf2out_switch_text_section): Use it.
8309 (dwarf2out_begin_function): Likewise.
8310 (push_dw_line_info_entry): New.
8311 (dwarf2out_source_line): Rewrite for new line info tables.
8312 (dwarf2out_init): Remove dead initailizations.
8314 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8316 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8318 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8319 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8320 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8321 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8322 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8323 * opt-functions.awk (flag_init, switch_bit_fields): New.
8324 (switch_flags): Don't handle flags moved to bit-fields. Don't
8325 generate CL_MISSING_OK or CL_SAVE.
8326 * optc-gen.awk: Update to generate bit-field output as well as
8328 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8329 bit-field instead of CL_REJECT_DRIVER flag.
8330 * opts-common.c (generate_canonical_option,
8331 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8332 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8333 instead of CL_REJECT_NEGATIVE flag.
8334 * toplev.c (print_switch_values): Use cl_report bit-field instead
8337 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8339 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8340 a zero minimum index only if it is redundant.
8342 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8344 PR rtl-optimization/48381
8345 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8346 instead of ira_class_hard_reg_index for calculating conflicting
8349 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8351 * cprop.c: Clean up hash table building.
8352 (reg_avail_info): Remove.
8353 (oprs_available_p): Remove.
8354 (record_last_reg_set_info): Remove.
8355 (record_last_set_info): Remove.
8356 (reg_available_p): New function.
8357 (gcse_constant_p): Do not treat unfolded conditions as constants.
8358 (make_set_regs_unavailable): New function.
8359 (hash_scan_set): Simplify with new reg_available_p.
8360 (compute_hash_table_work): Traverse insns stream only once.
8361 Do not compute reg_avail_info. Traverse insns in reverse order.
8362 Record implicit sets after recording explicit sets from the block.
8364 2011-03-31 Michael Matz <matz@suse.de>
8366 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8368 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8370 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8371 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8372 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8373 (h8300_mode_dependent_address_p): New function.
8374 (h8300_get_index): Make static.
8376 2011-03-31 Jeff Law <law@redhat.com>
8378 * reload1.c (elimination_effects): Fix typo in recent change.
8380 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8381 typo potentially leading to null pointer dereference.
8383 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8384 (setup_save_areas): Corresponding changes to avoid useless
8387 * jump.c (reversed_comparison_code_parts): Avoid successive return
8388 statements when REVERSE_CONDITION is defined.
8390 * expr.c (expand_assignment): Avoid useless assignments.
8391 (expand_expr_real_1): Likewise.
8392 (expand_expr_real_2): Avoid useless statements.
8394 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8396 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8398 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8401 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8403 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8406 * doc/tm.texi.in (TARGET_VERSION): Remove.
8407 * doc/tm.texi: Regenerate.
8408 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8409 * collect2.c (main): Don't use TARGET_VERSION.
8410 * mips-tdump.c (main): Don't use TARGET_VERSION.
8411 * mips-tfile.c (main): Don't use TARGET_VERSION.
8412 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8413 * config/rs6000/vxworksae.h: Remove.
8414 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8415 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8416 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8417 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8418 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8419 * config/arm/arm.h (TARGET_VERSION): Remove.
8420 * config/arm/coff.h (TARGET_VERSION): Remove.
8421 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8422 * config/arm/elf.h (TARGET_VERSION): Remove.
8423 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8424 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8425 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8426 * config/arm/pe.h (TARGET_VERSION): Remove.
8427 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8428 * config/arm/semi.h (TARGET_VERSION): Remove.
8429 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8430 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8431 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8432 * config/avr/avr.h (TARGET_VERSION): Remove.
8433 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8434 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8435 * config/frv/frv.h (TARGET_VERSION): Remove.
8436 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8437 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8438 * config/i386/darwin.h (TARGET_VERSION): Remove.
8439 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8440 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8441 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8442 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8443 * config/i386/gnu.h (TARGET_VERSION): Remove.
8444 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8445 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8446 * config/i386/linux.h (TARGET_VERSION): Remove.
8447 * config/i386/linux64.h (TARGET_VERSION): Remove.
8448 * config/i386/lynx.h (TARGET_VERSION): Remove.
8449 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8450 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8451 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8452 * config/i386/netware.h (TARGET_VERSION): Remove.
8453 * config/i386/nto.h (TARGET_VERSION): Remove.
8454 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8455 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8456 * config/ia64/elf.h (TARGET_VERSION): Remove.
8457 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8458 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8459 * config/ia64/linux.h (TARGET_VERSION): Remove.
8460 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8461 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8462 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8463 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8464 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8465 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8466 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8467 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8468 * config/m68k/linux.h (TARGET_VERSION): Remove.
8469 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8470 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8471 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8472 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8473 * config/mep/mep.h (TARGET_VERSION): Remove.
8474 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8475 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8476 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8477 * config/mips/linux.h (TARGET_VERSION): Remove.
8478 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8479 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8480 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8481 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8482 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8483 * config/pa/pa.h (TARGET_VERSION): Remove.
8484 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8485 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8486 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8487 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8488 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8489 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8490 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8491 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8492 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8493 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8494 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8495 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8496 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8497 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8498 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8499 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8500 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8501 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8502 * config/s390/linux.h (TARGET_VERSION): Remove.
8503 * config/s390/s390.h (TARGET_VERSION): Remove.
8504 * config/s390/tpf.h (TARGET_VERSION): Remove.
8505 * config/score/score.h (TARGET_VERSION): Remove.
8506 * config/sh/linux.h (TARGET_VERSION): Remove.
8507 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8508 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8509 * config/sh/sh.h (TARGET_VERSION): Remove.
8510 * config/sh/sh64.h (TARGET_VERSION): Remove.
8511 * config/sh/superh.h (TARGET_VERSION): Remove.
8512 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8513 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8514 * config/sparc/linux.h (TARGET_VERSION): Remove.
8515 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8516 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8517 TARGET_NAME32, TARGET_NAME): Remove.
8518 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8519 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8520 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8521 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8522 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8523 * config/spu/spu.h (TARGET_VERSION): Remove.
8524 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8525 * config/v850/v850.h (TARGET_VERSION): Remove.
8526 * config/vax/linux.h (TARGET_VERSION): Remove.
8527 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8528 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8529 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8531 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8534 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8535 frame-related from frame-unrelated adjustments to the stack pointer.
8537 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8539 * common.opt (fdebug-types-section): Move earlier.
8540 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8542 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8544 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8547 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8549 * tree.h (CASE_CHAIN): Define.
8550 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8551 (gimple_redirect_edge_and_branch): Likewise.
8553 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8556 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8559 2011-03-30 Jeff Law <law@redhat.com>
8561 * PR bootstrap/48371
8562 * reload1.c (reload): Fix botch in last change.
8564 * reload.h (struct reload): Fix typo introduced in last change.
8566 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8568 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8569 Undocumented. Remove help text.
8570 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8573 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8575 * doc/options.texi (NegativeAlias): Document.
8576 (Alias): Mention NegativeAlias.
8577 * opt-functions.awk: Handle NegativeAlias.
8578 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8579 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8580 * opts.h (CL_NEGATIVE_ALIAS): Define.
8581 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8582 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8584 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8586 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8587 mno-spe and mno-isel instead of mspe=no and -misel=no.
8589 2011-03-29 Mark Wielaard <mjw@redhat.com>
8591 * common.opt (fdebug-types-section): New flag.
8592 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8593 * dwarf2out.c (use_debug_types): New define.
8594 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8595 (print_die): Guard output of type unit signatures using
8597 (build_abbrev_table): Replace assert of dwarf_version >= 4
8598 with assert on use_debug_types.
8599 (size_of_die): Likewise.
8600 (unmark_dies): Likewise.
8601 (value_format): Decide AT_ref_external form on use_debug_types.
8602 (output_die): Replace dwarf_version version check guard with
8603 use_debug_types where appropriate.
8604 (modified_type_die): Likewise.
8605 (gen_reference_type_die): Likewise.
8606 (dwarf2out_start_source_file): Likewise.
8607 (dwarf2out_end_source_file): Likewise.
8608 (prune_unused_types_walk_attribs): Likewise.
8609 (dwarf2out_finish): Likewise.
8611 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8613 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8615 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8617 PR rtl-optimization/48332
8618 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8619 mode of input operand N and modeN to its actual mode.
8621 2011-03-30 Jeff Law <law@redhat.com>
8623 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8624 define accessor macro.
8625 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8626 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8627 (reg_equiv_init): Likewise.
8628 (reg_equivs_size): New variable.
8629 (reg_equiv_init_size): Remove.
8630 (allocate_initial_values): Move prototype to here from....
8631 * integrate.h (allocate_initial_values): Remove prototype.
8632 * integrate.c: Include reload.h.
8633 (allocate_initial_values): Corresponding changes.
8634 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8635 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8636 (update_equiv_regs): Corresponding changes.
8637 (ira): Corresponding changes.
8638 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8639 (push_secondary_reload): Corresponding changes.
8640 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8641 (make_memloc, find_reloads_address): Corresponding changes.
8642 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8643 (find_reloads_address_1): Corresponding changes.
8644 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8645 (refers_to_regno_for_reload_p): Corresponding changes.
8646 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8647 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8648 * reload1.c: Include ggc.h.
8649 (grow_reg_equivs): New function.
8650 (replace_pseudos_in, reload): Corresponding changes.
8651 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8652 (eliminate_regs_1, elimination_effects): Corresponding changes.
8653 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8654 (delete_output_reload): Likewise.
8655 * caller-save.c (mark_referenced_regs): Corresponding changes.
8656 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8657 * frv/predicates.md (frv_load_operand): Corresponding changes.
8658 * microblaze/microblaze.c (double_memory_operand): Corresponding
8660 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8661 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8662 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8663 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8664 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8666 * pa/pa.c (emit_move_sequence): Corresponding changes.
8667 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8669 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8672 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8673 structure modes. Don't check neon_vector_mem_operand for
8674 vector or structure modes.
8676 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8677 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8680 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8681 operand 1 and reshuffle the operands to match.
8682 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8684 2011-03-30 Christian Schüler <cschueler@gmx.de>
8687 * config/c.opt (F): Added 'Driver' to -F option.
8690 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8692 * config/darwin.opt: Added '-arch' option.
8694 2011-03-30 Nick Clifton <nickc@redhat.com>
8696 * config/rx/rx.md: Add peepholes and patterns to combine
8697 extending loads and simple arithmetic instructions.
8698 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8699 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8700 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8701 modes to use pre-decrement and post-increment addressing.
8702 (rx_is_restricted_memory_address): Add range checking of REG+INT
8704 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8705 (rx_memory_move_cost): Adjust cost of stores.
8706 (rx_adjust_insn_length): New function.
8708 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8711 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8712 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8713 matching arg00/arg01 types.
8715 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8717 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8718 last_location to UNKNOWN_LOCATION.
8720 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8723 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8726 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8727 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8730 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8732 (sparc_cpu): Likewise.
8733 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8736 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8740 PR rtl-optimization/48345
8741 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8742 hard regs for given mode from profitable regs when doing secondary
8745 2011-03-29 Jeff Law <law@redhat.com>
8748 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8749 do_not_duplicate field.
8750 (lookup_redirection_data): Corresponding changes.
8751 (create_duplicates): Always create a template block.
8752 (redirect_edges): Remove code which reused the original block
8753 when it was going to become unreachable code.
8754 (thread_block): Don't set do_not_duplicate field.
8756 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8758 * lto-opts.c (register_user_option_p, lto_register_user_option):
8759 Make type argument unsigned.
8760 * lto-streamer.h (lto_register_user_option): Make type argument
8762 * opth-gen.awk: Make CL_* macros unsigned.
8763 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8764 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8765 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8766 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8767 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8768 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8769 (find_opt): Make lang_mask argument unsigned.
8771 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8773 PR rtl-optimization/48331
8774 PR rtl-optimization/48334
8775 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8776 for any used algorithm.
8778 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8780 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8783 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8785 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8786 (alpha_option_override): Don't set alpha_sr_alias_set.
8787 (emit_frame_store_1): Use gen_frame_mem rather than calling
8789 (alpha_expand_epilogue): Ditto.
8791 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8793 PR tree-optimization/48290
8794 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8795 vectorization, check that relevant phis in the basic block after
8796 the inner loop are really inner loop's exit phis.
8798 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8801 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8802 (cached_dw_loc_list_def): New structure.
8803 (cached_dw_loc_list): New typedef.
8804 (cached_dw_loc_list_table): New variable.
8805 (cached_dw_loc_list_table_hash): New function.
8806 (cached_dw_loc_list_table_eq): Likewise.
8807 (add_location_or_const_value_attribute): Take a bool cache_p.
8808 Cache the list when the parameter is true.
8809 (gen_formal_parameter_die): Update caller.
8810 (gen_variable_die): Likewise.
8811 (dwarf2out_finish): Likewise.
8812 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8813 while generating debug info for the decl.
8814 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8815 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8816 (resolve_addr): Cache the result of resolving a chain of
8819 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8821 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8822 conflict object hard regset nodes have intersecting hard reg sets.
8824 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8825 after regstat_init_n_sets_and_refs.
8827 * ira.c: Add more comments at the top.
8828 (setup_stack_reg_pressure_class, setup_pressure_classes):
8829 Add comments how we compute the register pressure classes.
8830 (setup_allocno_and_important_classes): Add more comments.
8831 (setup_class_translate_array, reorder_important_classes)
8832 (setup_reg_class_relations): Add comments.
8834 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8837 * ira-color.c: Add 2011 to the Copyright line.
8838 (assign_hard_reg): Add more comments.
8839 (improve_allocation): Ditto.
8841 * ira-costs.c: Add 2011 to the Copyright line.
8842 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8844 (setup_regno_cost_classes_by_mode): Ditto.
8846 Initial patches from ira-improv branch:
8848 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8850 * ira-build.c (ira_create_object): Remove initialization of
8851 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8852 (ira_create_allocno): Remove initialization of
8853 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8854 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8855 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8856 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8857 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8858 Initialize ALLOCNO_ADD_DATA.
8859 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8860 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8862 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8863 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8865 * ira.c (ira_reallocate): Remove.
8866 (setup_pressure_classes): Call
8867 ira_init_register_move_cost_if_necessary. Use
8868 ira_register_move_cost instead of ira_get_register_move_cost.
8869 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8870 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8872 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8873 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8874 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8875 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8876 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8877 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8879 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8880 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8881 (struct allocno_color_data): New.
8882 (allocno_color_data_t): New typedef.
8883 (allocno_color_data): New definition.
8884 (ALLOCNO_COLOR_DATA): New macro.
8885 (struct object_color_data): New.
8886 (object_color_data_t): New typedef.
8887 (object_color_data): New definition.
8888 (OBJECT_COLOR_DATA): New macro.
8889 (update_copy_costs, calculate_allocno_spill_cost): Call
8890 ira_init_register_move_cost_if_necessary. Use
8891 ira_register_move_cost instead of ira_get_register_move_cost.
8892 (move_spill_restore, update_curr_costs): Ditto.
8893 (allocno_spill_priority): Make it inline.
8894 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8895 (struct coalesce_data, coalesce_data_t): New.
8896 (allocno_coalesce_data): New definition.
8897 (ALLOCNO_COALESCE_DATA): New macro.
8898 (merge_allocnos, coalesced_allocno_conflict_p): Use
8899 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8900 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8901 (coalesce_allocnos): Ditto.
8902 (setup_coalesced_allocno_costs_and_nums): Ditto.
8903 (collect_spilled_coalesced_allocnos): Ditto.
8904 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8905 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8906 (coalesce_spill_slots): Ditto.
8907 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8908 free allocno_coalesce_data.
8910 * ira-conflicts.c: Fix formatting.
8911 (process_regs_for_copy): Call
8912 ira_init_register_move_cost_if_necessary. Use
8913 ira_register_move_cost instead of ira_get_register_move_cost.
8914 (build_object_conflicts): Optimize.
8916 * ira-costs.c (record_reg_classes): Optimize. Call
8917 ira_init_register_move_cost_if_necessary. Use
8918 ira_register_move_cost, ira_may_move_in_cost, and
8919 ira_may_move_out_cost instead of ira_get_register_move_cost and
8920 ira_get_may_move_cost.
8921 (record_address_regs): Ditto.
8922 (scan_one_insn): Optimize.
8923 (find_costs_and_classes): Optimize.
8924 (process_bb_node_for_hard_reg_moves): Call
8925 ira_init_register_move_cost_if_necessary. Use
8926 ira_register_move_cost instead of ira_get_register_move_cost.
8928 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8929 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8930 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8931 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8933 (ira_initiate_emit_data, ira_finish_emit_data)
8934 (create_new_allocno): New functions.
8935 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8936 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8937 Use ira_register_move_cost instead of ira_get_register_move_cost.
8939 * ira-int.h: Fix some comments.
8940 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8941 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8942 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8943 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8945 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8946 bitfield after mode. Make hard_regno a short int. Make
8947 hard_regno short. Remove first_coalesced_allocno and
8948 next_coalesced_allocno. Move mem_optimized_dest_p,
8949 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8950 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8951 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8952 temp, colorable_p. Add new member add_data.
8953 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8954 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8955 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8956 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8957 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8958 (ALLOCNO_ADD_DATA): New macro.
8959 (ira_emit_data_t): New typedef.
8960 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8961 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8962 from struct ira_allocno.
8963 (ALLOCNO_EMIT_DATA): New macro.
8964 (ira_allocno_emit_data, allocno_emit_reg): New.
8965 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8966 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8967 (OBJECT_ADD_DATA): New macro.
8968 (ira_reallocate): Remove.
8969 (ira_initiate_emit_data, ira_finish_emit_data): New.
8970 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8971 (ira_init_register_move_cost_if_necessary): New.
8972 (ira_object_conflict_iter_next): Merge into
8973 ira_object_conflict_iter_cond.
8974 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8976 * ira-live.c (process_single_reg_class_operands): Call
8977 ira_init_register_move_cost_if_necessary. Use
8978 ira_register_move_cost instead of ira_get_register_move_cost.
8980 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8982 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8984 * ira-costs.c: Fix formatting.
8985 (cost_classes, cost_classes_num): Remove.
8986 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8987 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8988 (cost_classes_del, cost_classes_htab): New.
8989 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8990 (initiate_regno_cost_classes, setup_cost_classes): New.
8991 (setup_regno_cost_classes_by_aclass): New.
8992 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8993 (record_reg_classes): Use regno_cost_classes instead of
8994 cost_classes. Move checking opposite operand up.
8995 (record_address_regs): Use regno_cost_classes
8996 instead of cost_classes.
8997 (scan_one_insn): Ditto. Use always general register.
8998 (print_allocno_costs): Use regno_cost_classes instead of
9000 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9001 (find_costs_and_classes): Set up cost classes for each registers.
9002 Use also their mode for this. Use regno_cost_classes instead of
9004 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9006 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9007 (ira_costs, ira_set_pseudo_classes): Call
9008 initiate_regno_cost_classes and finish_regno_cost_classes.
9010 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9012 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9014 * target.def (ira_cover_classes): Remove.
9016 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9018 * doc/tm.texi.in: Ditto.
9020 * ira-conflicts.c: Remove mentioning cover classes from the file.
9021 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9022 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9024 * targhooks.c (default_ira_cover_classes): Remove.
9026 * targhooks.h (default_ira_cover_classes): Ditto.
9028 * haifa-sched.c: Remove mentioning cover classes from the file.
9029 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9030 ira_pressure_classes and ira_pressure_classes_num instead of
9031 ira_reg_class_cover_size and ira_reg_class_cover. Use
9032 sched_regno_pressure_class instead of sched_regno_cover_class.
9033 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9034 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9036 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9037 classes from the file.
9038 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9039 (struct object_hard_regs, struct object_hard_regs_node): New.
9040 (struct ira_object): New members profitable_hard_regs,
9041 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9042 (struct ira_allocno): Rename cover_class to aclass. Rename
9043 cover_class_cost and updated_cover_class_cost to class_cost and
9044 updated_class_cost. Remove splay_removed_p and
9045 left_conflict_size. Add new members colorable_p.
9046 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9047 (ALLOCNO_COLORABLE_P): New macro.
9048 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9049 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9050 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9051 (OBJECT_...): Rename parameter C to O.
9052 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9053 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9054 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9055 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9056 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9057 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9058 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9059 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9060 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9061 x_ira_reg_class_subunion.
9062 (ira_max_memory_move_cost, ira_max_register_move_cost)
9063 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9064 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9065 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9066 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9067 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9068 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9069 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9070 (ira_tune_allocno_costs_and_cover_classes): Rename to
9071 ira_tune_allocno_costs.
9072 (ira_debug_hard_regs_forest): New.
9073 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9074 (ira_object_conflict_iter_next): Fix comments.
9075 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9076 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9077 cover_class to aclass.
9078 (ira_allocate_and_accumulate_costs): Ditto.
9079 (ira_allocate_and_set_or_copy_costs): Ditto.
9081 * opts.c (decode_options): Remove ira_cover_class check.
9083 * ira-color.c: Remove mentioning cover classes from the file. Use
9084 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9085 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9086 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9087 (splay-tree.h): Remove include.
9088 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9089 before copy_freq_compare_func.
9090 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9091 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9093 (hard_regs_roots, hard_regs_node_vec): Ditto.
9094 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9095 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9096 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9097 (create_new_object_hard_regs_node): Ditto.
9098 (add_new_object_hard_regs_node_to_forest): Ditto.
9099 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9100 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9102 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9103 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9104 (remove_unused_object_hard_regs_nodes): Ditto.
9105 (enumerate_object_hard_regs_nodes): Ditto.
9106 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9107 (object_hard_regs_subnode_t): Ditto.
9108 (struct object_hard_regs_subnode): Ditto.
9109 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9110 (setup_object_hard_regs_subnode_index): Ditto.
9111 (get_object_hard_regs_subnodes_num): Ditto.
9112 (form_object_hard_regs_nodes_forest): Ditto.
9113 (finish_object_hard_regs_nodes_tree): Ditto.
9114 (finish_object_hard_regs_nodes_forest): Ditto.
9115 (allocnos_have_intersected_live_ranges_p): Rename to
9116 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9117 (pseudos_have_intersected_live_ranges_p): Rename to
9118 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9119 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9120 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9121 (update_copy_costs): Remove assert. Skip cost update if the hard
9122 reg does not belong the class.
9123 (assign_hard_reg): Process only profitable hard regs.
9124 (uncolorable_allocnos_num): Make it scalar.
9125 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9126 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9127 and ira_reg_class_max_nregs.
9128 (bucket_allocno_compare_func): Check frequency first.
9129 (sort_bucket): Add compare function as a parameter.
9130 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9131 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9132 (push_allocno_to_stack): Rewrite for checking new allocno
9134 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9135 (push_only_colorable): Pass new parameter to sort_bucket.
9136 (push_allocno_to_spill): Remove.
9137 (allocno_spill_priority_compare): Make it inline and rewrite.
9138 (splay_tree_allocate, splay_tree_free): Remove.
9139 (allocno_spill_sort_compare): New function.
9140 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9141 build and use splay tree. Choose first allocno in uncolorable
9142 allocno bucket to spill. Remove setting spill cost.
9143 (all_conflicting_hard_regs): Remove.
9144 (setup_allocno_available_regs_num): Check only profitable hard
9145 regs. Print info about hard regs nodes.
9146 (setup_allocno_left_conflicts_size): Remove.
9147 (put_allocno_into_bucket): Don't call
9148 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9149 (improve_allocation): New.
9150 (color_allocnos): Call setup_profitable_hard_regs,
9151 form_object_hard_regs_nodes_forest, improve_allocation,
9152 finish_object_hard_regs_nodes_forest. Setup spill cost.
9153 (print_loop_title): Use pressure classes.
9154 (color_allocnso): Ditto.
9155 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9156 and allocnos_for_spilling.
9157 (ira_sort_regnos_for_alter_reg): Don't setup members
9158 {first,next}_coalesced_allocno.
9159 (color): Remove allocating and freeing removed_splay_allocno_vec.
9160 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9161 prohibited_class_mode_regs.
9163 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9165 (update_allocno_pressure_excess_length): Use pressure classes.
9166 (inc_register_pressure, dec_register_pressure): Check for pressure
9168 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9169 pressure class. Use ira_reg_class_nregs instead of
9170 ira_reg_class_max_nregs.
9171 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9172 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9173 (single_reg_class): Use ira_reg_class_nregs instead of
9174 ira_reg_class_max_nregs.
9175 (process_bb_node_lives): Use pressure classes.
9177 * ira-emit.c: Remove mentioning cover classes from the file. Use
9178 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9179 (change_loop): Use pressure classes.
9180 (modify_move_list): Call ira_set_allocno_class instead of
9181 ira_set_allocno_cover_class.
9183 * ira-build.c: Remove mentioning cover classes from the file. Use
9184 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9185 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9186 ALLOCNO_UPDATED_CLASS_COST instead of
9187 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9188 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9189 (ira_create_allocno): Remove initialization of
9190 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9191 ALLOCNO_COLORABLE_P.
9192 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9193 Update conflict regs for the objects.
9194 (create_cap_allocno): Remove assert. Don't propagate
9195 ALLOCNO_AVAILABLE_REGS_NUM.
9196 (ira_free_allocno_costs): New function.
9197 (finish_allocno): Change a part of code into call of
9198 ira_free_allocno_costs.
9199 (low_pressure_loop_node_p): Use pressure classes.
9200 (object_range_compare_func): Don't compare classes.
9201 (setup_min_max_conflict_allocno_ids): Ditto.
9203 * loop-invariant.c: Remove mentioning cover classes from the file.
9204 Use ira_pressure_classes and ira_pressure_classes_num instead of
9205 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9206 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9207 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9208 Use reg_allocno_class instead of reg_cover_class.
9209 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9210 STACK_REG_COVER_CLASS.
9211 (get_regno_cover_class): Rename to get_regno_pressure_class.
9212 (move_loop_invariants): Initialize and finalize regstat.
9214 * ira.c: Remove mentioning cover classes from the file. Add
9215 comments about coloring without cover classes. Use ALLOCNO_CLASS
9216 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9217 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9218 setup_class_subset_and_memory_move_costs.
9219 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9220 (setup_cover_and_important_classes): Rename to
9221 setup_allocno_and_important_classes.
9222 (setup_class_translate_array): New.
9223 (setup_class_translate): Call it for allocno and pressure classes.
9224 (cover_class_order): Rename to allocno_class_order.
9225 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9226 of ira_class_translate.
9227 (reorder_important_classes): Set up ira_important_class_nums.
9228 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9229 (print_class_cover): Rename to print_classes. Add parameter.
9230 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9231 Print pressure classes too.
9232 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9233 setup_reg_subclasses.
9234 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9235 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9236 (setup_prohibited_class_mode_regs): Use
9237 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9238 (clarify_prohibited_class_mode_regs): New function.
9239 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9240 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9241 (ira_init_once): Initialize them.
9242 (free_register_move_costs): Process them.
9243 (ira_init): Move calls of find_reg_classes and
9244 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9245 Call clarify_prohibited_class_mode_regs.
9246 (ira_no_alloc_reg): Remove.
9247 (too_high_register_pressure_p): Use pressure classes.
9249 * sched-deps.c: Remove mentioning cover classes from the file.
9250 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9251 ira_pressure_classes and ira_pressure_classes_num instead of
9252 ira_reg_class_cover_size and ira_reg_class_cover.
9253 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9254 sched_regno_pressure_class instead of sched_regno_cover_class.
9255 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9256 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9258 * ira.h: Add 2010 to Copyright.
9259 (ira_no_alloc_reg): Remove external.
9260 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9261 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9262 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9263 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9264 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9265 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9266 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9267 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9268 x_ira_no_alloc_regs.
9269 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9270 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9271 ira_allocno_classes_num and ira_allocno_classes.
9272 (ira_class_translate): Rename to ira_allocno_class_translate.
9273 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9274 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9275 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9276 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9277 (ira_no_alloc_regs): New.
9279 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9280 classes from the file. Use ALLOCNO_CLASS instead of
9281 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9282 ALLOCNO_COVER_CLASS_COST.
9283 (regno_cover_class): Rename to regno_aclass.
9284 (record_reg_classes): Use ira_reg_class_subunion instead of
9285 ira_reg_class_union.
9286 (record_address_regs): Check overflow.
9287 (scan_one_insn): Ditto.
9288 (print_allocno_costs): Print total mem cost fore regional allocation.
9289 (print_pseudo_costs): Use REG_N_REFS.
9290 (find_costs_and_classes): Use classes intersected with them on the
9291 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9292 ira_reg_class_union. Use ira_allocno_class_translate and
9293 regno_aclass instead of ira_class_translate and regno_cover_class.
9294 Modify code for finding regno_aclass. Setup preferred classes for
9296 (setup_allocno_cover_class_and_costs): Rename to
9297 setup_allocno_class_and_costs. Use regno_aclass instead of
9298 regno_cover_class. Use ira_set_allocno_class instead of
9299 ira_set_allocno_cover_class.
9300 (init_costs, finish_costs): Use regno_aclass instead of
9302 (ira_costs): Use setup_allocno_class_and_costs instead of
9303 setup_allocno_cover_class_and_costs.
9304 (ira_tune_allocno_costs_and_cover_classes): Rename to
9305 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9306 by processing objects. Use ira_reg_class_max_nregs instead of
9307 ira_reg_class_nregs.
9309 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9311 * sched-int.h: Remove mentioning cover classes from the file.
9312 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9314 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9315 classes from the file.
9316 (struct reg_pref): Rename coverclass into allocnoclass.
9317 (reg_cover_class): Rename to reg_allocno_class.
9319 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9321 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9323 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9325 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9327 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9329 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9331 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9333 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9335 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9337 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9339 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9340 (i386_ira_cover_classes): Ditto.
9342 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9344 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9346 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9348 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9350 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9352 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9354 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9355 (mips_ira_cover_classes): Ditto.
9357 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9359 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9361 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9363 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9365 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9367 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9368 (IRA_COVER_CLASSES_VSX): Ditto.
9370 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9371 (rs6000_ira_cover_classes): Ditto.
9373 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9375 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9377 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9379 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9381 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9383 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9385 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9387 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9389 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9391 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9393 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9396 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9397 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9398 dw_fde_unlikely_section_end_label, cold_in_std_section,
9399 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9400 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9402 (output_fde): Use dw_fde_second_{begin,end} if second is
9403 true, otherwise dw_fde_{begin,end}.
9404 (output_call_frame_info): Test dw_fde_second_begin != NULL
9405 instead of dw_fde_switched_sections.
9406 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9407 fields, initialize new fields. Initialize in_std_section
9408 unconditionally from the first partition.
9409 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9410 dw_fde_second_begin is non-NULL.
9411 (dwarf2out_switch_text_section): Stop initializing removed
9412 dw_fde_struct fields, initialize new fields, initialize
9413 also dw_fde_end here. Set dw_fde_switch_cfi even when
9414 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9415 (struct var_loc_list_def): Add last_before_switch field.
9416 (arange_table, arange_table_allocated, arange_table_in_use,
9417 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9418 (size_of_aranges): Count !in_std_section and !second_in_std_section
9419 hunks in fdes, instead of looking at arange_table_in_use.
9420 (output_aranges): Add aranges_length argument, don't call
9421 size_of_aranges here. Instead of using aranges_table*
9422 emit ranges for fdes when !in_std_section resp.
9423 !second_in_std_section.
9424 (dw_loc_list): Break ranges crossing section switch.
9425 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9426 use dw_fde_second_end instead of dw_fde_end as end of last range.
9427 (gen_subprogram_die): Don't call add_arange. Use
9428 dw_fde_{begin,end} for first partition and if switched
9429 section dw_fde_second_{begin,end} for the second.
9430 (var_location_switch_text_section_1,
9431 var_location_switch_text_section): New functions.
9432 (dwarf2out_begin_function): Initialize cold_text_section even
9433 when function_section () isn't text_section.
9434 (prune_unused_types): Don't walk arange_table.
9435 (dwarf2out_finish): Don't needlessly test
9436 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9437 If info_section_emitted, call size_of_aranges and if it indicates
9438 non-empty .debug_aranges, call output_aranges with the computed
9439 size. Stop using removed dw_fde_struct fields, use
9440 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9444 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9445 create ENTRY_VALUE if incoming or address of incoming's MEM
9447 * dwarf2out.c (mem_loc_descriptor): Don't emit
9448 DW_OP_GNU_entry_value of DW_OP_fbreg.
9449 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9450 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9451 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9452 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9454 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9455 is a REG_P or MEM_P with REG_P address, compute hash directly
9456 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9457 (preserve_only_constants): Don't clear VALUES forwaring
9458 ENTRY_VALUE to some other VALUE.
9460 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9462 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9465 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9467 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9468 block before expanding the statement.
9469 (expand_gimple_stmt_1): Likewise. Set them here...
9470 (expand_gimple_stmt): ...and not here. Tidy.
9471 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9474 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9476 * Makefile.in: New rule for cprop.o.
9477 * gcse.c: Move constant/copy propagation to cprop.c.
9478 (compute_local_properties): Only handle expression tables.
9479 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9480 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9481 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9482 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9483 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9484 compute_cprop_data, find_used_regs, try_replace_reg,
9485 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9486 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9487 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9488 find_bypass_set, reg_killed_on_edge, bypass_block,
9489 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9490 execute_rtl_cprop, pass_rtl_cprop): Move to...
9491 * cprop.c: ...here. New file, constant/copy propagation for RTL
9492 moved from gcse.c to here with minor cleanups in duplicated code.
9494 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9496 * config/i386/i386.c (flag_opts): Fix a typo in
9497 -mavx256-split-unaligned-store.
9499 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9501 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9502 LIBCALL_VALUE): Remove macros.
9503 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9504 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9505 (h8300_function_value, h8300_libcall_value,
9506 h8300_function_value_regno_p): New functions.
9508 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9510 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9512 2011-03-28 Jeff Law <law@redhat.com>
9514 * tree-ssa-threadupdate.c (redirect_edges): Call
9515 create_edge_and_update_destination_phis as needed.
9516 (create_edge_and_update_destination_phis): Accept new BB argument.
9517 All callers updated.
9518 (thread_block): Do not update the profile when threading around
9519 intermediate blocks.
9520 (thread_single_edge): Likewise.
9521 (determine_bb_domination_status): If BB is not a successor of the
9522 loop header, return NONDOMINATING.
9523 (register_jump_thread): Note when we register a jump thread around
9524 an intermediate block.
9525 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9526 (thread_across_edge): Use it.
9528 2011-03-28 Tristan Gingold <gingold@adacore.com>
9530 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9531 when for_return is 2.
9533 2011-03-28 Jeff Law <law@redhat.com>
9535 * var-tracking.c (canonicalize_values_mark): Delete unused
9537 (canonicalize_values_star, set_variable_part): Likewise.
9538 (clobber_variable_part, delete_variable_part): Likewise.
9540 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9542 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9544 2011-03-28 Martin Jambor <mjambor@suse.cz>
9546 * tree-inline.c (expand_call_inline): Do not check that destination
9548 (optimize_inline_calls): Assert that destination node is analyzed.
9549 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9550 not call tree_lowering_passes.
9551 * cgraph.h (cgraph_analyze_function): Declare.
9552 * cgraphunit.c (cgraph_analyze_function): Make public.
9554 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9556 * config/sparc/sparc-opts.h: New.
9557 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9558 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9559 (sparc_option_override): Store processor_type enumeration rather
9560 than string in cpu_default. Remove name and enumeration from
9561 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9562 without using sparc_select. Use target_flags_explicit instead of
9564 * config/sparc/sparc.h (enum processor_type): Move to
9566 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9567 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9568 HeaderInclude entry.
9569 (mcpu=, mtune=): Use Var and Enum.
9570 (sparc_processor_type): New Enum and EnumValue entries.
9572 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9573 Iain Sandoe <iains@gcc.gnu.org>
9576 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9578 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9580 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9581 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9582 Insert new statements at it in lieu of STMT.
9583 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9584 * tree-vect-stmts.c (vectorizable_store): Likewise.
9585 (vectorizable_load): Likewise.
9587 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9589 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9594 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9596 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9597 unaligned 256bit load/store.
9598 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9599 (*avx_movdqu<avxmodesuffix>): Likewise.
9601 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9604 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9605 * config/pa/pa.md (iordi3): Use new predicate in expander.
9608 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9610 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9611 FUNCTION_VALUE_REGNO_P): Remove macros.
9612 * config/mips/mips-protos.h (mips_function_value): Remove.
9613 * config/mips/mips.c (mips_function_value): Rename to...
9614 (mips_function_value_1): ... this. Make static. Handle receiving
9615 the function type in 'fn_decl_or_type' argument.
9616 (mips_function_value, mips_libcall_value,
9617 mips_function_value_regno_p): New function.
9618 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9619 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9621 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9623 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9624 and -mavx256-split-unaligned-store.
9625 (ix86_option_override_internal): Split 32-byte AVX unaligned
9626 load/store by default.
9627 (ix86_avx256_split_vector_move_misalign): New.
9628 (ix86_expand_vector_move_misalign): Use it.
9630 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9631 -mavx256-split-unaligned-store.
9633 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9634 256bit load/store. Generate unaligned store on misaligned memory
9636 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9638 (*avx_movdqu<avxmodesuffix>): Likewise.
9640 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9641 -mavx256-split-unaligned-store.
9643 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9646 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9649 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9651 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9652 opno arguments with an expand_operand. Use create_input_operand.
9653 (mips_prepare_builtin_target): Delete.
9654 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9656 (mips_expand_builtin_direct): Use create_output_operand and
9657 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9658 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9659 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9661 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9663 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9665 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9667 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9669 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9670 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9671 basic blocks and call commit_edge_insertions directly.
9672 (fixup_abnormal_edges): Move from here to...
9673 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9674 on the edges and return whether some have actually been inserted.
9675 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9678 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9680 PR rtl-optimization/48144
9681 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9682 (merge_expr_data): ... here.
9683 (av_set_intersect): Rename to av_set_code_motion_filter.
9684 Update all callers. Call merge_history_vect when an expression
9685 is found in both sets.
9686 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9688 2011-03-26 Alan Modra <amodra@gmail.com>
9690 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9691 cmodel medium addresses.
9692 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9693 64-bit gpr loads and stores.
9694 (rs6000_secondary_reload_ppc64): New function.
9695 * config/rs6000/rs6000-protos.h: Declare it.
9696 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9698 2011-03-26 Alan Modra <amodra@gmail.com>
9701 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9702 GNU Go in traceback table.
9704 2011-03-25 Richard Henderson <rth@redhat.com>
9706 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9707 if there are exactly 6 operands.
9708 (set_storage_via_setmem): Similarly.
9710 2011-03-25 Kai Tietz <ktietz@redhat.com>
9712 * collect2.c (write_c_file_stat): Handle backslash
9713 as right-hand directory separator.
9714 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9715 checking just for slash.
9716 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9717 instead of checking for trailing slash.
9718 * gcc.c (record_temp_file): Use filename_cmp instead
9720 (do_spec_1): Likewise.
9721 (replace_outfile_spec_function): Likewise.
9722 (is_directory): Use filename_ncmp instead of strncmp.
9723 (print_multilib_info): Likewise.
9724 * gcov.c (find_source): Use filename_cmp instead
9726 (make_gcov_file_name): Fix order of slash/backslash
9728 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9729 (add_standard_paths): Likewise.
9730 * mips-tfile.c (saber_stop): Handle backslash.
9731 * prefix.c (update_path): Use filename_ncmp instead of
9733 * profile.c (output_location): Use filename_cmp instead
9735 * read-md.c (handle_toplevel_file): Handle backslash.
9736 * tlink.c (frob_extension): Likewise.
9737 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9739 * tree-dump.c (dequeue_and_dump): Handle backslash.
9740 * tree.c (get_file_function_name): Likewise.
9741 * gengtype.c (read_input_list): Likewise.
9742 (get_file_realbasename): Likewise.
9743 (get_output_file_with_visibility): Use filename_cmp
9746 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9748 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9751 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9753 * fold-const.c (expr_location_or): New function.
9754 (fold_truth_not_expr): Call it.
9756 2011-03-25 Jeff Law <law@redhat.com>
9758 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9760 * c-family/c-common.c (def_fn_type): Likewise.
9761 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9762 * emit-rtl.c (gen_rtvec): Likewise.
9763 * lto/lto-lang.c (def_fn_type): Likewise.
9765 2011-03-25 Richard Guenther <rguenther@suse.de>
9767 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9768 also generate copies.
9769 (fini_copy_prop): Handle constant values properly.
9771 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9773 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9774 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9775 (hash_loc_operands, compare_loc_operands): Handle
9776 DW_OP_GNU_entry_value.
9778 2011-03-25 Kai Tietz <ktietz@redhat.com>
9780 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9781 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9782 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9783 comment and use macro TARGET_64BIT_MS_ABI instead.
9784 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9785 and change default behavior for 32-bit MS_ABI.
9786 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9787 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9789 (ix86_cfun_abi): Likewise.
9790 (ix86_maybe_switch_abi): Adjust comment.
9791 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9792 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9793 instead of checking for SYSV_ABI.
9794 (ix86_nsaved_sseregs): Likewise.
9795 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9797 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9798 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9799 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9800 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9801 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9803 2011-03-25 Richard Guenther <rguenther@suse.de>
9805 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9806 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9807 (verify_gimple): Remove.
9808 * tree-cfg.c (verify_gimple_call): Merge verification
9810 (verify_gimple_phi): Merge verification from verify_stmts.
9811 (verify_gimple_label): New function.
9812 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9813 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9814 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9815 (verify_stmts): Rename to verify_gimple_in_cfg.
9816 (verify_gimple_in_cfg): New function.
9817 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9818 * tree-ssa.c (verify_ssa): Likewise.
9819 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9821 2011-03-25 Richard Guenther <rguenther@suse.de>
9823 * passes.c (init_optimization_passes): Add FRE pass after
9826 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9827 Andrew Stubbs <ams@codesourcery.com>
9829 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9831 (arm_movdi_vfp_cortexa8): New pattern.
9832 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9833 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9834 instructions when tuning for Cortex-A8. Set attribute "arch".
9835 * config/arm/arm.md: Move include arm-tune.md up a bit.
9836 (define_attr "arch"): Add "onlya8" and "nota8" values.
9837 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9839 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9843 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9845 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9846 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9847 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9848 * passes.c (init_optimization_passes): Move
9849 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9851 2011-03-25 Kai Tietz <ktietz@redhat.com>
9853 * c-typeck.c (comptypes_internal): Replace target
9854 hook call of comp_type_attributes by version in tree.c file.
9855 * gimple.c (gimple_types_compatible_p_1): Likewise.
9856 * tree-ssa.c (useless_type_conversion_p): Likewise.
9857 * tree.c (build_type_attribute_qual_variant): Likewise.
9858 (attribute_value_equal): New static helper function.
9859 (comp_type_attributes): New function.
9860 (merge_attributes): Use attribute_value_equal for comparison.
9861 (attribute_list_contained): Likewise.
9862 * tree.h (comp_type_attributes): New prototype.
9864 2011-03-25 Richard Guenther <rguenther@suse.de>
9866 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9867 of complex types at -O0.
9868 (verify_gimple_assign_binary): Likewise.
9869 (verify_gimple_assign_ternary): Likewise.
9871 2011-03-24 Mark Wielaard <mjw@redhat.com>
9873 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9874 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9876 2011-03-24 Mark Wielaard <mjw@redhat.com>
9879 * dwarf2out.c (output_abbrev_section): Only write table when
9880 abbrev_die_table_in_use > 1.
9882 2011-02-24 Richard Henderson <rth@redhat.com>
9884 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9885 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9886 (alpha_expand_unaligned_load_words): Use extql.
9887 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9888 (emit_insxl): Handle all modes for consistency.
9890 2011-02-24 Richard Henderson <rth@redhat.com>
9892 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9893 (alpha_expand_unaligned_load): Likewise.
9894 (alpha_expand_unaligned_store): Likewise.
9895 (alpha_expand_unaligned_load_words): Likewise.
9896 (alpha_expand_unaligned_store_words): Likewise.
9897 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9898 (alpha_split_lock_test_and_set_12): Likewise.
9899 (print_operand, alpha_fold_builtin_extxx): Likewise.
9900 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9901 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9902 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9903 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9904 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9905 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9906 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9907 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9908 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9909 (extwl, extll, extql): Similarly.
9910 (inswh, inslh, insqh): Similarly.
9911 (mskbl, mskwl, mskll, mskql): Similarly.
9912 (mskwh, msklh, mskqh): Similarly.
9914 2011-02-24 Richard Henderson <rth@redhat.com>
9916 * config/alpha/alpha.md (attribute isa): Add er, ner.
9917 (attribute enabled): Handle them.
9918 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9920 2011-02-24 Richard Henderson <rth@redhat.com>
9922 * config/alpha/alpha.md (attribute isa): Add vms.
9923 (attribute enabled): Handle it.
9924 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9925 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9926 (*movtf): Rename from *movtf_internal for consistency.
9927 (*movsi): Merge with *movsi_nt_vms.
9928 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9929 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9930 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9931 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9933 2011-02-24 Richard Henderson <rth@redhat.com>
9935 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9936 (extendqisi2, extendhisi2): Likewise.
9937 (extendqidi2): Simplify BWX/non-BWX expansions.
9938 (extendhidi2): Similarly.
9940 2011-02-24 Richard Henderson <rth@redhat.com>
9942 * config/alpha/alpha.md (attribute isa): New.
9943 (attribute enabled): New.
9944 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9945 (zero_extendqisi2, zero_extendqidi2): Similarly.
9946 (zero_extendhisi2, zero_extendhidi2): Similarly.
9947 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9949 2011-02-24 Richard Henderson <rth@redhat.com>
9951 * config/alpha/predicates.md (input_operand): Revert last change;
9952 update comment to mention 32-bit VMS rather than Windows.
9954 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9956 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9957 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9958 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9959 * passes.c (init_optimization_passes): Move
9960 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9962 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9964 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9966 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9968 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9971 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9974 * simplify-rtx.c (simplify_const_unary_operation): Call
9975 real_convert when changing mode class with FLOAT_EXTEND.
9977 2011-03-24 Nick Clifton <nickc@redhat.com>
9979 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9980 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9981 * config/rx/rx.c (rx_option_override): Set align_jumps,
9982 align_loops and align_labels if not set by the user.
9983 (rx_align_for_label): New function.
9984 (rx_max_skip_for_label): New function.
9985 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9986 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9987 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9988 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9989 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9991 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9993 PR rtl-optimization/48263
9994 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9995 and original commutative_p handling. Use maybe_gen_insn.
9997 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9999 * reload.c (find_reloads_subreg_address): Add address_reloaded
10000 parameter and return true there if the full address has been
10002 (find_reloads_toplev): Pass address_reloaded flag.
10003 (find_reloads_address_1): Don't use address_reloaded parameter.
10005 2011-03-24 Jeff Law <law@redhat.com>
10007 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10008 unused variable "ann".
10009 (remove_unused_locals): Likewise.
10011 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10014 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10017 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10019 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10020 for invalid symbolic addresses.
10021 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10024 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10026 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10027 the argument in calls to fold_truth_not_expr.
10029 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10031 * tree.c (record_node_allocation_statistics): New function.
10032 (make_node_stat, copy_node_stat, build_string): Call it.
10033 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10034 (build1_stat, build_omp_clause): Likewise.
10036 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10038 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10041 2011-03-24 Richard Guenther <rguenther@suse.de>
10043 PR tree-optimization/48271
10044 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10045 blocks that still exist.
10047 2011-03-24 Richard Guenther <rguenther@suse.de>
10049 PR tree-optimization/48270
10050 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10051 not free datarefs before ddrs.
10053 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10055 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10056 from the address built for a reference with variable offset.
10058 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10061 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10062 alternatives that can be handled with movq or movabsq insn.
10063 (*movdf_internal): Disable for !TARGET_64BIT.
10064 (*movdf_internal_nointeger): Ditto.
10065 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10067 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10069 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10070 (FUNCTION_ARG_ADVANCE): Likewise.
10071 * tm.texi.in: Change references to them to hook references.
10072 * tm.texi: Regenerate.
10073 * targhooks.c (default_function_arg): Eliminate check for target macro.
10074 (default_function_incoming_arg): Likewise.
10075 (default_function_arg_advance): Likewise.
10076 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10077 (function_arg_advance): Likewise.
10078 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10080 2011-03-24 Richard Guenther <rguenther@suse.de>
10082 PR middle-end/48269
10083 * tree-object-size.c (addr_object_size): Do not double-account
10084 for MEM_REF offsets.
10086 2011-03-24 Diego Novillo <dnovillo@google.com>
10088 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10089 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10090 (lto_input_data_block): Move from lto-opts.c. Make extern.
10092 (lto_input_string): Rename from input_string. Make extern.
10094 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10095 output_string_with_length.
10096 Output 0 to indicate a non-NULL string. Update all callers to
10098 (lto_output_string): Rename from output_string. Make extern.
10100 (lto_output_decl_state_streams): Make extern.
10101 (lto_output_decl_state_refs): Make extern.
10102 * lto-streamer.h (lto_input_string): Declare.
10103 (lto_input_data_block): Declare.
10104 (lto_output_string): Declare.
10105 (lto_output_string_with_length): Declare.
10106 (lto_output_decl_state_streams): Declare.
10107 (lto_output_decl_state_refs): Declare.
10109 2011-03-24 Richard Guenther <rguenther@suse.de>
10111 PR tree-optimization/46562
10112 * tree.c (build_invariant_address): New function.
10113 * tree.h (build_invariant_address): Declare.
10114 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10115 a renamed function moved ...
10116 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10117 Take valueization callback parameter.
10118 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10119 * gimple-fold.h: New file.
10120 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10121 (ccp_fold, fold_const_aggregate_ref,
10122 fold_ctor_reference, fold_nonarray_ctor_reference,
10123 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10124 get_base_constructor): Move ...
10125 * gimple-fold.c: ... here.
10126 (gimple_fold_stmt_to_constant_1): New function
10127 split out from ccp_fold. Take a valueization callback parameter.
10128 Valueize all operands.
10129 (gimple_fold_stmt_to_constant): New wrapper function.
10130 (fold_const_aggregate_ref_1): New function split out from
10131 fold_const_aggregate_ref. Take a valueization callback parameter.
10132 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10133 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10134 invariant POINTER_PLUS_EXPRs to invariant form.
10135 (vn_valueize): New function.
10136 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10137 * tree-vrp.c (vrp_valueize): New function.
10138 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10139 to fold statements to constants.
10140 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10141 function declarations.
10142 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10143 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10145 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10147 * config/h8300/predicates.md (jump_address_operand): Fix register
10150 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10152 * doc/invoke.texi (max-stores-to-sink): Document.
10153 * params.h (MAX_STORES_TO_SINK): Define.
10154 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10155 if either vectorization or if-conversion is disabled.
10156 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10157 tree-vect-data-refs.c vect_equal_offsets.
10158 (dr_equal_offsets_p): New function.
10159 (find_data_references_in_bb): Remove static.
10160 * tree-data-ref.h (find_data_references_in_bb): Declare.
10161 (dr_equal_offsets_p): Likewise.
10162 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10163 (vect_drs_dependent_in_basic_block): Update calls to
10164 vect_equal_offsets.
10165 (vect_check_interleaving): Likewise.
10166 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10167 (cond_if_else_store_replacement): Rename to...
10168 (cond_if_else_store_replacement_1): ... this. Change arguments and
10170 (cond_if_else_store_replacement): New function.
10171 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10172 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10174 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10177 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10178 to subtract lower bound instead of GEN_INT().
10180 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10185 * doc/extend.texi (Alignment): Move section to match order in TOC.
10186 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10187 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10189 2011-03-23 Jeff Law <law@redhat.com>
10191 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10192 before removing the edge.
10194 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10195 it may have been freed by redirect_branch_edge or
10196 redirect_edge_succ_nodup.
10198 2011-03-23 Richard Guenther <rguenther@suse.de>
10200 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10201 (check_va_list_escapes): Likewise.
10202 (check_all_va_list_escapes): Likewise.
10204 2011-03-23 Richard Guenther <rguenther@suse.de>
10206 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10207 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10208 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10209 (alias.o): Likewise.
10210 (ipa-type-escape.o): Remove.
10211 (ipa-struct-reorg.o): Likewise.
10212 (GTFILES): Remove ipa-struct-reorg.c.
10213 * alias.c: Do not include ipa-type-escape.h.
10214 * tree-ssa-alias.c: Likewise.
10215 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10216 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10217 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10218 and ipa-type-escape passes.
10219 * tree-pass.h (pass_ipa_type_escape): Remove.
10220 (pass_ipa_struct_reorg): Likewise.
10221 * ipa-struct-reorg.h: Remove.
10222 * ipa-struct-reorg.c: Likewise.
10223 * ipa-type-escape.h: Likewise.
10224 * ipa-type-escape.c: Likewise.
10225 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10226 (--param struct-reorg-cold-struct-ratio): Likewise.
10227 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10228 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10229 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10231 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10233 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10234 cpu attribute value.
10235 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10236 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10237 * config/s390/s390.c (processor_flags_table): New constant array.
10238 (s390_handle_arch_option): Remove.
10239 (s390_handle_option): Remove s390_handle_arch_option invocations
10240 and OPT_mwarn_framesize_ handling.
10241 (s390_option_override): Remove s390_handle_arch_option invocation.
10242 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10244 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10245 * config/s390/s390.opt (s390_tune, s390_arch)
10246 (march=): Replace s390_arch_option enum and values with
10247 processor_type. Set variable name to s390_arch. Set
10248 initialization value.
10249 (mtune=): Replace s390_arch_option with processor_type. Set
10250 variable name to s390_tune. Set initialization value.
10252 2011-03-23 Julian Brown <julian@codesourcery.com>
10254 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10255 accesses which are not naturally aligned.
10257 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10260 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10262 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10264 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10265 parameter from "int" to "enum insn_code".
10266 (expand_operand_type): New enum.
10267 (expand_operand): New structure.
10268 (create_expand_operand): New function.
10269 (create_fixed_operand, create_output_operand): Likewise
10270 (create_input_operand, create_convert_operand_to): Likewise.
10271 (create_convert_operand_from, create_address_operand): Likewise.
10272 (create_integer_operand): Likewise.
10273 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10274 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10275 (expand_insn, expand_jump_insn): Likewise.
10276 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10277 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10278 (expand_movstr, expand_builtin___clear_cache): Likewise.
10279 (expand_builtin_lock_release): Likewise.
10280 * explow.c (allocate_dynamic_stack_space): Likewise.
10281 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10282 and use the default handling in that case.
10283 * expmed.c (check_predicate_volatile_ok): Delete.
10284 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10285 (emit_cstore): Likewise.
10286 * expr.c (emit_block_move_via_movmem): Likewise.
10287 (set_storage_via_setmem, expand_assignment): Likewise.
10288 (emit_storent_insn, try_casesi): Likewise.
10289 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10290 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10291 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10292 (expand_twoval_unop, expand_twoval_binop): Likewise.
10293 (expand_unop_direct, emit_indirect_jump): Likewise.
10294 (emit_conditional_move, vector_compare_rtx): Likewise.
10295 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10296 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10297 (expand_sync_lock_test_and_set): Likewise.
10298 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10299 (emit_unop_insn): Likewise.
10300 (expand_copysign_absneg): Change icode to an insn_code.
10301 (create_convert_operand_from_type): New function.
10302 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10303 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10304 (expand_insn, expand_jump_insn): Likewise.
10305 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10306 than const_int_operand for operand 2.
10308 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10310 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10313 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10315 * emit-rtl.c (emit_pattern_before_noloc): New function.
10316 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10317 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10318 (emit_pattern_after_noloc): New function.
10319 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10320 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10322 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10324 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10325 (__ffsDI2): Likewise.
10327 2011-03-22 Richard Henderson <rth@redhat.com>
10329 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10330 of !TARGET_ABI_OPEN_VMS.
10331 (alpha_trampoline_init, alpha_start_function): Likewise.
10332 (alpha_expand_epilogue, alpha_file_start): Likewise.
10333 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10334 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10335 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10336 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10337 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10339 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10341 * config/s390/s390-opts.h: New.
10342 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10343 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10344 s390_stack_guard): Remove.
10345 (s390_handle_arch_option): Return void. Take enum
10346 s390_arch_option value instead of string and searching array.
10347 (s390_handle_option): Don't assert that global structures are in
10348 use. Access variables via opts pointer. Use error_at. Don't use
10349 sscanf for -mstack-guard= or -mstack-size=. Update call to
10350 s390_handle_arch_option.
10351 (s390_option_override): Update call to s390_handle_arch_option.
10352 (s390_emit_prologue): Use %d format for s390_stack_size in
10353 diagnostic. Use %wd for HOST_WIDE_INT.
10354 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10355 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10356 * config/s390/s390.opt (config/s390/s390-opts.h): New
10357 HeaderInclude entry.
10358 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10359 s390_arch_flags, s390_warn_framesize): New Variable entries.
10360 (s390_arch_option): New Enum and EnumValue entries.
10361 (march=): Use Enum instead of Var.
10362 (mstack-guard=, mstack-size=): Use UInteger and Var.
10363 (mtune=): Use Enum.
10365 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10367 * config/score/score.c (score_handle_option): Don't assert that
10368 global structures are in use. Access target_flags via opts
10369 pointer. Use value of -march= option to determine target_flags
10371 * config/score/score.opt (march=): Use Enum.
10372 (score_arch): New Enum and EnumValue entries.
10374 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10376 * config/mep/mep.c (option_mtiny_specified): Remove.
10377 (mep_option_override): Move register handling for -mivc2 from
10378 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10379 instead of option_mtiny_specified.
10380 (mep_handle_option): Access target_flags via opts pointer. Don't
10381 assert that global structures are in use. Defer part of -mivc2
10382 handling and move it to mep_option_override.
10383 * config/mep/mep.opt (IVC2): New Mask entry.
10384 (mivc2): Use Var and Defer instead of Mask.
10386 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10388 * config/v850/v850-opts.h: New.
10389 * config/v850/v850.c (small_memory): Replace with
10390 small_memory_physical_max array. Make that array static const.
10391 (v850_handle_memory_option): Take integer value of argument. Take
10392 gcc_options pointer, option text and location. Return void.
10393 Update for changes to small memory structures.
10394 (v850_handle_option): Access target_flags via opts pointer. Don't
10395 assert that global structures are in use. Update calls to
10396 v850_handle_memory_option.
10397 (v850_encode_data_area): Update references to small memory settings.
10398 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10399 (enum small_memory_type): Move to v850-opts.h.
10400 * config/v850/v850.opt (config/v850/v850-opts.h): New
10401 HeaderInclude entry.
10402 (small_memory_max): New Variable entry.
10403 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10404 (mtda, mzda): Likewise.
10406 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10408 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10409 pointer. Don't assert that global structures are in use.
10411 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10413 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10414 via opts pointer. Don't assert that global structures are in use.
10416 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10418 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10419 (munix=93): Use Var.
10420 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10421 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10422 * config/pa/pa-opts.h: New.
10423 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10424 (pa_handle_option): Don't assert that global structures are in
10425 use. Access target_flags via opts pointer. Don't handle
10426 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10428 (pa_option_override): Handle deferred OPT_mfixed_range_.
10430 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10432 * config/mn10300/mn10300-opts.h: New.
10433 * config/mn10300/mn10300.c (mn10300_processor,
10434 mn10300_tune_string): Remove.
10435 (mn10300_handle_option): Don't assert that global structures are
10436 in use. Access mn10300_processor via opts pointer. Don't handle
10438 * config/mn10300/mn10300.h (enum processor_type): Move to
10440 (mn10300_processor): Remove.
10441 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10442 HeaderInclude entry.
10443 (mn10300_processor): New Variable entry.
10446 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10448 * config/microblaze/microblaze.c: Don't include opts.h.
10449 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10450 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10451 (mno-clearbss): Use Var and Warn.
10453 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10455 * config/m32r/m32r-opts.h: New.
10456 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10457 (m32r_handle_option): Don't assert that global structures are in
10458 use. Access target_flags and m32r_cache_flush_func via opts
10459 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10460 OPT_mno_flush_trap here.
10461 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10462 include of m32r-opts.h.
10463 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10464 HeaderInclude entry.
10465 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10466 (mmodel=): Use Enum and Var.
10467 (m32r_model): New Enum and EnumValue entries.
10468 (mno-flush-trap): Use Var.
10469 (msdata=): Use Enum and Var.
10470 (m32r_sdata): New Enum and EnumValue entries.
10472 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10474 * config/m32c/m32c.c: Don't include opts.h.
10475 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10476 m32c_handle_option): Remove.
10477 (m32c_option_override): Check global_options_set.x_target_memregs
10478 instead of target_memregs_set.
10479 * config/m32c/m32c.h (target_memregs): Remove.
10480 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10483 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10485 * config/iq2000/iq2000-opts.h: New.
10486 * config/iq2000/iq2000.c: Don't include opts.h.
10487 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10488 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10489 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10490 HeaderInclude entry.
10491 (iq2000_tune): New Variable entry.
10492 (march=): Add comment. Use Enum.
10493 (iq2000_arch): New Enum and EnumValue entries.
10494 (mcpu=): Use Enum and Var.
10495 (iq2000_tune): New Enum and EnumValue entries.
10497 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10499 * config/ia64/ia64-opts.h: New.
10500 * config/ia64/ia64.c (ia64_tune): Remove.
10501 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10502 here. Use error_at.
10503 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10504 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10505 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10506 HeaderInclude entry.
10507 (ia64_tune): New Variable entry.
10508 (mfixed-range=): Use Defer and Var.
10509 (mtune=): Use Enum and Var.
10510 (ia64_tune): New Enum and EnumValue entries.
10512 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10514 * config/frv/frv-opts.h: New.
10515 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10517 (frv_cpu_type): Remove.
10518 * config/frv/frv.c: Don't include opts.h.
10519 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10520 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10521 (frv_cpu_type): New Variable entry.
10522 (frv_cpu): New Enum and EnumValue entries.
10524 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10526 * config/cris/cris.c (cris_handle_option): Access target_flags via
10527 opts pointer. Don't assert that global structures are in use.
10528 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10529 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10531 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10533 * config/bfin/bfin-opts.h: New.
10534 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10535 bfin_si_revision, bfin_workarounds): Remove.
10536 (bfin_cpus): Make static const.
10537 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10538 not bfin_lib_id_given.
10539 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10540 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10541 pointer. Use error_at. Don't assert that global structures are in use.
10542 * config/bfin/bfin.h: Include bfin-opts.h.
10543 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10544 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10545 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10546 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10549 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10551 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10552 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10553 or -msoft-float here.
10554 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10555 -msoft-float and -mhard-float.
10556 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10557 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10559 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10561 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10562 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10564 (LIBGCC_SPEC): Don't handle -msoft-float.
10565 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10567 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10569 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10570 -mfloat-abi=*, not -msoft-float and -mhard-float.
10571 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10573 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10574 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10575 mhard-float and msoft-float.
10576 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10577 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10578 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10579 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10581 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10582 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10584 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10586 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10589 2011-03-22 Richard Henderson <rth@redhat.com>
10591 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10592 TARGET_ABI_WINDOWS_NT.
10593 (alpha_output_function_end_prologue): Likewise.
10594 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10595 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10596 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10597 (trap, *movsi_nt_vms): Likewise.
10598 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10599 (*tablejump_osf_nt_internal): Remove.
10600 * config/alpha/predicates.md (input_operand): Only test Pmode.
10602 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10604 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10605 via opts pointer. Use error_at. Don't assert that global
10606 structures are in use.
10608 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10610 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10611 (ix86_handle_option): Access ix86_isa_flags and
10612 ix86_isa_flags_explicit via opts pointer. Don't assert that
10613 global structures are in use.
10614 (ix86_function_specific_save, ix86_function_specific_restore):
10615 Update ix86_isa_flags_explicit field name.
10616 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10617 (ix86_isa_flags_explicit): Rename TargetSave entry to
10618 x_ix86_isa_flags_explicit.
10620 2011-03-22 Richard Henderson <rth@redhat.com>
10622 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10623 (alpha_option_override, direct_return): Likewise.
10624 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10625 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10626 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10627 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10628 (alpha_expand_epilogue, alpha_end_function): Likewise.
10629 (alpha_init_libfuncs): Likewise.
10630 (struct machine_function): Remove unicosmk members.
10631 (print_operand) ['t']: Remove.
10632 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10633 unicosmk_output_module_name, unicosmk_output_common,
10634 current_section_align, unicosmk_output_text_section_asm_op,
10635 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10636 unicosmk_section_type_flags, unicosmk_unique_section,
10637 unicosmk_asm_named_section, unicosmk_insert_attributes,
10638 unicosmk_output_align, unicosmk_defer_case_vector,
10639 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10640 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10641 unicosmk_output_ssib, unicosmk_add_call_info_word,
10642 unicosmk_extern_head, unicosmk_output_default_externs,
10643 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10644 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10645 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10646 * config/alpha/alpha-protos.h: Update.
10647 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10648 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10649 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10650 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10651 (*mulsi_se, mulvsi3): Likewise.
10652 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10653 (*divmodsi_internal, call, call_value, realign): Likewise.
10654 (moddi3, umoddi3): Likewise; remove duplicate expander.
10655 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10656 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10657 (*movdi_nofix): Remove r/U alternative.
10658 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10659 * config/alpha/constraints.md ("U"): Remove.
10660 * config/alpha/predicates.md (call_operand"): Don't test
10661 TARGET_ABI_UNICOSMK.
10663 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10665 * target.def (handle_option): Take gcc_options and
10666 cl_decoded_option pointers and location_t.
10667 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10668 * doc/tm.texi: Regenerate.
10669 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10670 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10671 * lto-opts.c (lto_reissue_options): Generate option structure for
10672 targetm.handle_option call.
10673 * opts.c (target_handle_option): Update call to
10674 targetm.handle_option. Remove assertions about values now passed
10676 * targhooks.c (default_target_handle_option): New.
10677 * targhooks.h (default_target_handle_option): Declare.
10678 * config/alpha/alpha.c: Include opts.h.
10679 (alpha_handle_option): Update to new hook interface.
10680 * config/arm/arm.c: Include opts.h.
10681 (arm_handle_option): Update to new hook interface.
10682 * config/arm/t-arm (arm.o): Update dependencies.
10683 * config/bfin/bfin.c: Include opts.h.
10684 (bfin_handle_option): Update to new hook interface.
10685 * config/cris/cris.c: Include opts.h.
10686 (cris_handle_option): Update to new hook interface.
10687 * config/frv/frv.c: Include opts.h.
10688 (frv_handle_option): Update to new hook interface.
10689 * config/i386/i386.c: Include opts.h.
10690 (ix86_handle_option): Update to new hook interface.
10691 (ix86_valid_target_attribute_inner_p): Generate option structure
10692 for call to ix86_handle_option.
10693 * config/i386/t-i386 (i386.o): Update dependencies.
10694 * config/ia64/ia64.c: Include opts.h.
10695 (ia64_handle_option): Update to new hook interface.
10696 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10697 * config/iq2000/iq2000.c: Include opts.h.
10698 (iq2000_handle_option): Update to new hook interface.
10699 * config/m32c/m32c.c: Include opts.h.
10700 (m32c_handle_option): Update to new hook interface.
10701 * config/m32r/m32r.c: Include opts.h.
10702 (m32r_handle_option): Update to new hook interface.
10703 * config/m68k/m68k.c: Include opts.h.
10704 (m68k_handle_option): Update to new hook interface.
10705 * config/mep/mep.c: Include opts.h.
10706 (mep_handle_option): Update to new hook interface.
10707 * config/microblaze/microblaze.c: Include opts.h.
10708 (microblaze_handle_option): Update to new hook interface.
10709 * config/mips/mips.c: Include opts.h.
10710 (mips_handle_option): Update to new hook interface.
10711 * config/mn10300/mn10300.c: Include opts.h.
10712 (mn10300_handle_option): Update to new hook interface.
10713 * config/pa/pa.c: Include opts.h.
10714 (pa_handle_option): Update to new hook interface.
10715 * config/pdp11/pdp11.c: Include opts.h.
10716 (pdp11_handle_option): Update to new hook interface.
10717 * config/rs6000/rs6000.c: Include opts.h.
10718 (rs6000_handle_option): Update to new hook interface.
10719 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10720 * config/rx/rx.c: Include opts.h.
10721 (rx_handle_option): Update to new hook interface.
10722 * config/s390/s390.c: Include opts.h.
10723 (s390_handle_option): Update to new hook interface.
10724 * config/score/score.c: Include opts.h.
10725 (score_handle_option): Update to new hook interface.
10726 * config/sh/sh.c: Include opts.h.
10727 (sh_handle_option): Update to new hook interface.
10728 * config/sparc/sparc.c: Include opts.h.
10729 (sparc_handle_option): Update to new hook interface.
10730 * config/v850/v850.c: Include opts.h.
10731 (v850_handle_option): Update to new hook interface.
10733 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10735 * gcc.c (driver_unknown_option_callback): Only permit and save
10736 unknown -Wno- options.
10737 (driver_wrong_lang_callback): Save options directly instead of via
10738 driver_unknown_option_callback.
10740 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10742 * combine.c (simplify_set): Try harder to find the best CC mode when
10743 simplifying a nested COMPARE on the RHS.
10745 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10747 * config/alpha/gnu.h: Remove.
10748 * config/arc: Remove directory.
10749 * config/arm/netbsd.h: Remove.
10750 * config/arm/t-pe: Remove.
10751 * config/crx: Remove directory.
10752 * config/i386/netbsd.h: Remove.
10753 * config/m68hc11: Remove directory.
10754 * config/m68k/uclinux-oldabi.h: Remove.
10755 * config/mcore/mcore-pe.h: Remove.
10756 * config/mcore/t-mcore-pe: Remove.
10757 * config/netbsd-aout.h: Remove.
10758 * config/rs6000/gnu.h: Remove.
10759 * config/sh/sh-symbian.h: Remove.
10760 * config/sh/symbian-base.c: Remove.
10761 * config/sh/symbian-c.c: Remove.
10762 * config/sh/symbian-cxx.c: Remove.
10763 * config/sh/symbian-post.h: Remove.
10764 * config/sh/symbian-pre.h: Remove.
10765 * config/sh/t-symbian: Remove.
10766 * config/svr3.h: Remove.
10767 * config/vax/netbsd.h: Remove.
10768 * config.build: Don't handle i[34567]86-*-pe.
10769 * config.gcc: Remove handling of deprecations for most deprecated
10771 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10772 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10773 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10774 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10775 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10776 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10778 * config.host: Don't handle i[34567]86-*-pe.
10779 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10780 (ASM_SPEC32): Don't handle -mcall-gnu.
10781 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10783 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10784 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10785 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10786 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10787 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10788 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10789 conditional on SYMBIAN.
10790 * configure.ac: Don't handle powerpc*-*-gnu*.
10791 * configure: Regenerate.
10792 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10793 * doc/install-old.texi (m6811, m6812): Don't mention.
10794 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10795 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10796 (m68k-uclinuxoldabi): Don't mention.
10797 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10799 (-mcall-gnu): Remove.
10800 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10801 families): Remove constraint documentation.
10803 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10805 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10806 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10807 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10809 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10812 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10813 vector when peeking at the next token for vector, don't expand the
10816 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10818 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10819 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10820 * config/avr/avr.c (init_cumulative_args)
10821 (avr_function_arg_advance): Use it.
10822 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10824 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10825 (avr_function_ok_for_sibcall): ...this new function.
10826 (avr_lookup_function_attribute1): New static Function.
10827 (avr_naked_function_p, interrupt_function_p)
10828 (signal_function_p, avr_OS_task_function_p)
10829 (avr_OS_main_function_p): Use it.
10830 * config/avr/avr.md ("sibcall", "sibcall_value")
10831 ("sibcall_epilogue"): New expander.
10832 ("*call_insn", "*call_value_insn"): New insn.
10833 ("call_insn", "call_value_insn"): Remove
10834 ("call", "call_value", "epilogue"): Change expander to handle
10837 2011-03-21 Nick Clifton <nickc@redhat.com>
10839 * doc/invoke.texi (Overall Options): Move closing brace to end of
10841 (Optimization Options): Add missing @gol.
10842 (Directory Options): Likewise.
10843 (i386 and x86-64 Options): Likewise.
10844 (RS6000 and PowerPC Options): Likewise.
10845 (i386 and x86-64 Windows Options): Likewise.
10846 (V850 Options): Add text missing from descriptions.
10848 2011-03-22 Richard Henderson <rth@redhat.com>
10850 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10851 (avr_incoming_return_addr_rtx): New.
10852 (emit_push_byte): New.
10853 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10854 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10855 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10856 (emit_pop_byte): New.
10857 (expand_epilogue): Use it. Pop frame pointer by bytes.
10858 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10859 (INCOMING_RETURN_ADDR_RTX): New.
10860 (INCOMING_FRAME_SP_OFFSET): New.
10861 (ARG_POINTER_CFA_OFFSET): New.
10862 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10863 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10866 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10868 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10870 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10871 (FUNCTION_ARG_ADVANCE): Likewise.
10872 * tm.texi.in: Change references to them to hook references.
10873 * tm.texi: Regenerate.
10874 * targhooks.c (default_function_arg): Eliminate check for target
10876 (default_function_incoming_arg): Likewise.
10877 (default_function_arg_advance): Likewise.
10878 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10879 (function_arg_advance): Likewise.
10880 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10882 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10884 * tree.c (build_call_1): New function.
10885 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10887 2011-03-22 Richard Guenther <rguenther@suse.de>
10889 PR tree-optimization/48228
10890 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10891 for single-arg PHIs.
10893 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10895 PR rtl-optimization/48143
10896 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10897 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10898 sse2_cvtps2pd): Likewise.
10900 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10902 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10904 2011-03-22 Richard Guenther <rguenther@suse.de>
10906 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10907 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10908 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10909 and REALIGN_LOAD_EXPR.
10910 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10911 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10912 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10913 DOT_PROD_EXPR case ...
10914 (expand_expr_real_2): ... here.
10915 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10916 and REALIGN_LOAD_EXPR.
10917 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10918 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10919 (vect_create_epilog_for_reduction): Likewise.
10920 (vectorizable_reduction): Likewise.
10921 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10922 * tree-vect-stmts.c (vectorizable_load): Likewise.
10924 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10926 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10928 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10930 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10931 handling for PLTOFF/GOTOFF.
10933 2011-03-22 Nick Clifton <nickc@redhat.com>
10935 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10936 trailing backslash from the end of the macro definition.
10938 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10940 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10943 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10945 * expr.h (prepare_operand): Move to...
10946 * optabs.h (prepare_operand): ...here and change the insn code
10947 parameter from "int" to "enum insn_code".
10948 (insn_operand_matches): Declare.
10949 * expr.c (init_expr_target): Use insn_operand_matches.
10950 (compress_float_constant): Likewise.
10951 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10952 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10953 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10954 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10956 (gen_cond_trap): Likewise.
10957 (prepare_operand): Likewise. Change icode to an insn_code.
10958 (insn_operand_matches): New function.
10959 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10960 * reload1.c (gen_reload): Likewise.
10961 * targhooks.c (default_secondary_reload): Likewise.
10963 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10965 * config/alpha/alpha.md (unspec): New define_c_enum.
10968 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10971 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10972 between a call and its CALL_ARG_LOCATION note.
10974 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10976 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10978 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10982 * c-common.c (shorten_compare): If primopN is first sign-extended
10983 to opN and then zero-extended to result type, set primopN to opN.
10985 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10987 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10988 for barrier handlers.
10990 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10992 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10993 UNSPEC constants to be in the unspec enumeration, and redefine
10994 all UNSPECV constants to be in the unspecv enumeration, so that
10995 dumps print which unspec/unspec_volatile this is.
10996 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10997 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10998 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10999 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11000 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11002 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11003 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11004 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11005 * config/rs6000/sync.md (isync, lwsync): Ditto.
11007 2011-03-21 Richard Guenther <rguenther@suse.de>
11009 * params.def (lto-min-partition): Fix typo.
11011 2011-03-21 Richard Guenther <rguenther@suse.de>
11014 * c-decl.c (grokdeclarator): Drop to the main variant only
11015 for array types. Drop flag_gen_aux_info check.
11017 2011-03-21 Richard Guenther <rguenther@suse.de>
11019 PR translation/47911
11020 * params.def (lto-partitions): Fix typo.
11021 (lto-min-partition): Fix wording.
11023 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11025 * config/rs6000/t-freebsd: Remove duplication from file.
11027 2011-03-21 Richard Guenther <rguenther@suse.de>
11029 PR middle-end/47661
11030 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11032 2011-03-21 Richard Guenther <rguenther@suse.de>
11035 * params.def (lto-partitions): Require at least 1 partition.
11037 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11039 * gthr-solaris.h: Remove.
11040 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11041 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11042 (LIB_SPEC): Likewise.
11043 * config/sol2.opt (threads): Remove.
11044 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11045 (sparc*-*-solaris2*): Likewise.
11046 * configure.ac (enable_threads): Enable solaris support.
11047 * configure: Regenerate.
11048 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11049 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11052 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11054 * config.gcc: Obsolete *-*-solaris2.8*.
11055 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11057 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11060 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11061 reference. Solaris 8 perl works.
11063 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11066 * doc/install.texi (Prerequisites): Move jar etc. up.
11067 Explain support library version requirements.
11069 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11072 * doc/install.texi (Prerequisites): Move Perl to build
11073 requirements. Always necessary on Solaris 2 with Sun ld.
11075 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11077 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11079 (Specific, i?86-*-solaris2.[89]): Likewise.
11080 (Specific, i?86-*-solaris2.10): Likewise.
11081 (Specific, mips-sgi-irix6): Likewise.
11082 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11083 Update for binutils 2.21.
11085 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11087 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11088 Allow -fuse-linker-plugin for non-default plugin linker.
11089 * configure: Regenerate.
11091 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11094 * gengtype.c (files_rules): Added rule for cp/parser.h.
11096 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11099 * config/s390/s390.c (s390_delegitimize_address): Don't call
11100 lowpart_subreg if orig_x has BLKmode.
11102 2011-03-21 Kai Tietz <ktietz@redhat.com>
11105 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11106 * tree.h (attribute_spec): Add new member affects_type_identity.
11107 * attribs.c (empty_attribute_table): Adjust attribute_spec
11109 * config/alpha/alpha.c: Likewise.
11110 * config/arc/arc.c: Likewise.
11111 * config/arm/arm.c: Likewise.
11112 * config/avr/avr.c: Likewise.
11113 * config/bfin/bfin.c: Likewise.
11114 * config/crx/crx.c: Likewise.
11115 * config/darwin.h: Likewise.
11116 * config/h8300/h8300.c: Likewise.
11117 * config/i386/cygming.h: Likewise.
11118 * config/i386/i386.c: Likewise.
11119 * config/ia64/ia64.c: Likewise.
11120 * config/m32c/m32c.c: Likewise.
11121 * config/m32r/m32r.c: Likewise.
11122 * config/m68hc11/m68hc11.c: Likewise.
11123 * config/m68k/m68k.c: Likewise.
11124 * config/mcore/mcore.c: Likewise.
11125 * config/mep/mep.c: Likewise.
11126 * config/microblaze/microblaze.c: Likewise.
11127 * config/mips/mips.c: Likewise.
11128 * config/rs6000/rs6000.c: Likewise.
11129 * config/rx/rx.c: Likewise.
11130 * config/sh/sh.c: Likewise.
11131 * config/sol2.h: Likewise.
11132 * config/sparc/sparc.c: Likewise.
11133 * config/spu/spu.c: Likewise.
11134 * config/stormy16/stormy16.c: Likewise.
11135 * config/v850/v850.c: Likewise.
11137 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11139 * simplify-rtx.c (simplify_binary_operation_1): Handle
11140 (xor (and A B) C) case when B and C are both constants.
11142 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11144 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11146 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11149 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11151 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11153 PR rtl-optimization/48156
11154 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11155 assume df and df_lr are not NULL.
11157 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11160 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11161 between a call and its CALL_ARG_LOCATION note.
11163 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11166 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11167 between a call and its corresponding CALL_ARG_LOCATION note.
11169 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11171 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11172 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11173 * haifa-sched.c (setup_ref_regs): Ditto.
11174 * caller-save.c (add_used_regs_1): Ditto.
11175 * dse.c (look_for_hardregs): Ditto.
11176 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11177 * sched-rgn.c (check_live_1): Ditto.
11179 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11181 * c-decl.c (diagnose_mismatched_decls): Give an error for
11182 redefining a typedef with variably modified type.
11184 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11186 * c-decl.c (grokfield): Don't allow typedefs for structures or
11187 unions with no tag by default.
11188 * doc/extend.texi (Unnamed Fields): Update.
11190 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11192 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11193 Rewrite using indirect functions.
11194 (lwp_slwpcb): Ditto.
11195 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11196 (avx_vinsertf128<mode>): Ditto.
11198 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11200 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11203 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11205 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11206 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11208 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11210 PR rtl-optimization/48170
11211 * gcse.c (hoist_code): Remove bogus asserts.
11213 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11215 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11216 computation for prologue/epilogue.
11218 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11220 * Makefile.in (check-consistency): Remove.
11222 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11225 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11226 arange_table_in_use is 0, but either text_section_used or
11227 cold_text_section_used is true. Don't call it if
11228 !info_section_emitted.
11230 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11232 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11233 FUNCTION_VALUE_REGNO_P): Remove.
11234 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11236 * config/avr/avr.c (avr_ret_register): Make static inline.
11237 (avr_function_value_regno_p): New function.
11238 (avr_libcall_value): Make static. Add 'func' argument.
11239 (avr_function_value): Make static. Rename 'func' argument to
11240 'fn_decl_or_type', forward it to avr_libcall_value. Call
11241 avr_ret_register function instead of RET_REGISTER macro.
11242 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11244 2011-03-18 Jason Merrill <jason@redhat.com>
11247 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11249 2011-03-18 Richard Guenther <rguenther@suse.de>
11251 * doc/install.texi (--enable-gold): Remove.
11252 (--with-plugin-ld): Document.
11253 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11255 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11257 PR middle-end/47790
11258 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11259 again after expansion changes.
11261 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11263 * combine.c (try_combine): Do simplification only call of
11264 subst() on i2 even when i1 is present. Update comments.
11266 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11268 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11269 and UNSPEC_PCREL_SYMOFF.
11271 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11273 * config/s390/s390.md: Use define_c_enum for the unspec constant
11276 2011-03-18 Richard Henderson <rth@redhat.com>
11277 Jakub Jelinek <jakub@redhat.com>
11280 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11281 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11283 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11285 PR middle-end/47725
11286 * combine.c (cant_combine_insn_p): Don't check zero/sign
11287 extended hard registers.
11289 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11291 PR middle-end/47725
11292 * combine.c (cant_combine_insn_p): Check zero/sign extended
11295 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11297 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11298 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11299 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11300 Change return type to bool.
11301 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11303 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11306 * var-tracking.c (prepare_call_arguments): If CALL target
11307 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11308 pc instead of looking it up using cselib_lookup and use
11309 Pmode for it if x has VOIDmode.
11310 * dwarf2out.c (gen_subprogram_die): If also both first and
11311 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11314 * function.c (assign_parms): For data.passed_pointer parms
11315 use MEM of data.entry_parm instead of data.entry_parm itself
11316 as DECL_INCOMING_RTL.
11317 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11318 also when passed and declared mode is the same, DECL_RTL
11319 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11322 2011-03-16 Jeff Law <law@redhat.com>
11324 PR rtl-optimization/37273
11325 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11326 handle them like argument loads from stack slots. Do not double
11327 count memory for memory constants and argument loads from stack slots.
11329 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11332 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11334 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11337 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11339 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11342 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11344 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11345 Clear call_arg_locations and call_arg_loc_last always.
11347 PR middle-end/48152
11348 * var-tracking.c (prepare_call_arguments): If argument needs to be
11349 passed by reference, adjust argtype and mode.
11351 2011-03-17 Richard Guenther <rguenther@suse.de>
11353 PR middle-end/48134
11354 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11355 a value make sure to fold the statement.
11357 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11360 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11361 return condition with !cfun->calls_alloca.
11363 2011-03-17 Richard Guenther <rguenther@suse.de>
11366 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11367 origin for decls in other ltrans units.
11368 (input_varpool_node): Likewise.
11370 2011-03-17 Richard Guenther <rguenther@suse.de>
11372 PR middle-end/48165
11373 * tree-object-size.c (compute_object_offset): Properly return
11374 the offset operand of MEM_REFs as sizetype.
11376 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11378 PR rtl-optimization/48141
11379 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11380 * dse.c: Include params.h.
11381 (active_local_stores_len): New variable.
11382 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11384 (record_store, check_mem_read_rtx): Decrease it when removing
11386 (scan_insn): Likewise. Increase it when adding to chain, if it
11387 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11388 set active_local_stores to NULL before the addition.
11389 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11391 PR rtl-optimization/48141
11392 * dse.c (record_store): If no positions are needed in an insn
11393 that cannot be deleted, at least unchain it from active_local_stores.
11395 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11398 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11399 (lookup_type_die_strip_naming_typedef): ... here.
11400 (get_context_die): Use it.
11401 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11402 the anonymous struct named by the naming typedef.
11404 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11407 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11408 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11410 2011-03-16 Jeff Law <law@redhat.com>
11412 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11413 check for operands of conditional. Allow type to be a pointer.
11415 2011-03-16 Richard Guenther <rguenther@suse.de>
11417 PR tree-optimization/48149
11418 * fold-const.c (fold_binary_loc): Fold
11419 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11421 2011-03-16 Richard Guenther <rguenther@suse.de>
11423 PR tree-optimization/26134
11424 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11425 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11426 (non_rewritable_mem_ref_base): Handle complex type component
11427 accesses, constrain offsets for vector and complex extracts
11430 2011-03-16 Richard Guenther <rguenther@suse.de>
11432 PR tree-optimization/48146
11433 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11434 operands avoiding the need for renaming.
11436 2011-03-16 Richard Guenther <rguenther@suse.de>
11438 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11439 constant folding. Move MEM_REF canonicalization first.
11440 Rely on fold_const_aggregate_ref for initializer folding.
11441 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11443 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11445 PR middle-end/48136
11446 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11447 arg0/arg1 or their arguments are always fold converted to matching
11450 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11453 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11456 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11457 Handle in-tree gold.
11458 (ld_vers): Extract binutils version for gold.
11459 (gcc_cv_ld_hidden): Handle gold here.
11460 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11461 * configure: Regenerate.
11462 * config.in: Regenerate.
11463 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11464 -fuse-linker-plugin otherwise.
11465 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11466 (LINK_COMMAND_SPEC): Use it.
11467 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11469 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11471 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11472 * calls.c: Remove debug.h include.
11473 (emit_call_1): Don't call virtual_call_token debug hook.
11474 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11475 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11476 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11477 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11478 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11479 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11480 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11481 dwarf2out_virtual_call): Remove.
11482 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11483 copy_call_info and virtual_call hooks.
11484 (dwarf2out_init): Don't initialize vcall_insn_table,
11485 debug_dcall_section and debug_vcall_section.
11486 (prune_unused_types): Don't mark nodes from dcall_table.
11487 (dwarf2out_finish): Don't output dcall or vcall tables.
11488 * final.c (final_scan_insn): Don't call direct_call or
11489 virtual_call debug hooks.
11490 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11491 virtual_call_token, copy_call_info and virtual_call hooks.
11492 (debug_nothing_uid): Remove prototype.
11493 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11494 copy_call_info and virtual_call hooks.
11495 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11496 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11497 * debug.c (do_nothing_debug_hooks): Likewise.
11498 (debug_nothing_uid): Remove.
11499 * doc/invoke.texi (-fenable-icf-debug): Remove.
11500 * common.opt (-fenable-icf-debug): Likewise.
11502 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11503 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11504 call's MEM. Handle functions returning aggregate through a hidden
11505 first pointer. For virtual calls add clobbered pc to call arguments
11507 * dwarf2out.c (gen_subprogram_die): Emit
11508 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11512 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11513 * rtl.h (ENTRY_VALUE_EXP): Define.
11514 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11515 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11516 * print-rtl.c (print_rtx): Likewise.
11517 * gengtype.c (adjust_field_rtx_def): Likewise.
11518 * var-tracking.c (vt_add_function_parameter): Adjust
11519 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11520 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11521 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11522 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11523 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11525 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11526 Call var_location debug hook even on CALL_INSNs.
11527 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11528 * rtl.def (ENTRY_VALUE): New.
11529 * dwarf2out.c: Include cfglayout.h.
11530 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11531 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11532 (struct call_arg_loc_node): New type.
11533 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11534 tail_call_site_count): New variables.
11535 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11536 DW_TAG_GNU_call_site_parameter.
11537 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11538 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11539 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11540 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11541 and DW_AT_GNU_all_source_call_sites.
11542 (mem_loc_descriptor): Handle ENTRY_VALUE.
11543 (add_src_coords_attributes): Don't add enything if
11544 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11545 (dwarf2out_abstract_function): Save and clear call_arg_location,
11546 call_site_count and tail_call_site_count around dwarf2out_decl call.
11547 (gen_call_site_die): New function.
11548 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11549 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11550 (dwarf2out_function_decl): Clear call_arg_locations,
11551 call_arg_loc_last, set call_site_count and tail_call_site_count
11552 to -1 and free block_map.
11553 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11554 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11555 followed by any real instructions.
11556 (dwarf2out_begin_function): Set call_site_count and
11557 tail_call_site_count to 0.
11558 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11559 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11560 attempt to force a DIE for it and worst case remove the attribute.
11561 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11562 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11564 * var-tracking.c: Include tm_p.h.
11565 (vt_stack_adjustments): For calls call note_register_arguments.
11566 (argument_reg_set): New variable.
11567 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11568 ensure the VALUE is resolved.
11569 (call_arguments): New variable.
11570 (prepare_call_arguments): New function.
11571 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11572 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11573 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11574 always use the best expression.
11575 (vt_expand_loc): Add ignore_cur_loc argument.
11576 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11577 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11578 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11579 note for all calls.
11580 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11581 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11582 argument. Don't call cselib_preserve_only_values and
11583 cselib_reset_table.
11584 (note_register_arguments): New function.
11585 (vt_initialize): Compute argument_reg_set. Call
11586 vt_add_function_parameters before processing basic blocks instead of
11587 afterwards. For calls call prepare_call_arguments before calling
11588 cselib_process_insn.
11589 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11590 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11591 (var-tracking.o): Depend on $(TM_P_H).
11592 * cfglayout.h (insn_scope): New prototype.
11593 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11594 * cfglayout.c (insn_scope): No longer static.
11595 * insn-notes.def (CALL_ARG_LOCATION): New.
11596 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11597 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11598 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11599 nothing for DECL_EXTERNAL BLOCK_VARS.
11601 2011-03-16 Alan Modra <amodra@gmail.com>
11604 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11605 create invalid offset address for vsx splat insn.
11606 * config/rs6000/predicates.md (splat_input_operand): New.
11607 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11609 2011-03-15 Xinliang David Li <davidxl@google.com>
11612 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11613 (normalize_preds): New function.
11614 (is_use_properly_guarded): Normalize def predicates.
11616 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11619 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11620 in the output template.
11622 2011-03-15 Richard Guenther <rguenther@suse.de>
11624 PR middle-end/47650
11625 * tree-pretty-print.c (dump_function_declaration): Properly
11626 dump unprototyped and varargs function types.
11628 2011-03-15 Richard Guenther <rguenther@suse.de>
11630 PR tree-optimization/13954
11631 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11634 2011-03-15 Richard Guenther <rguenther@suse.de>
11636 PR tree-optimization/48037
11637 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11638 selects into BIT_FIELD_REFs.
11639 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11642 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11644 PR tree-optimization/48129
11645 * builtins.c (fold_builtin_snprintf): Convert to type of
11646 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11647 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11649 2011-03-15 Richard Guenther <rguenther@suse.de>
11651 PR tree-optimization/41490
11652 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11653 value but with VUSE.
11654 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11656 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11657 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11658 * tree-tailcall.c (find_tail_calls): Ignore returns.
11660 2011-03-15 Richard Guenther <rguenther@suse.de>
11662 PR middle-end/48031
11663 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11664 or variable-indexed array accesses when in gimple form.
11666 2011-03-15 Richard Guenther <rguenther@suse.de>
11668 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11670 2011-03-15 Alan Modra <amodra@gmail.com>
11673 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11674 presume symbol_refs without a symbol_ref_decl are suitably
11675 aligned, nor other trees we may see here. Handle anchor symbols.
11676 (legitimate_constant_pool_address_p): Comment. Add mode param.
11677 Check cmodel=medium addresses. Adjust all calls.
11678 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11679 creating cmodel=medium optimized access to locals.
11680 * config/rs6000/constraints.md (R): Pass QImode to
11681 legitimate_constant_pool_address_p.
11682 * config/rs6000/predicates.md (input_operand): Pass mode to
11683 legitimate_constant_pool_address_p.
11684 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11687 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11690 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11691 64-bit constants being loaded into registers other than GPRs such
11692 as loading 0 into a VSX register.
11694 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11696 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11698 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11700 PR middle-end/47917
11701 * builtins.c (fold_builtin_snprintf): New function.
11702 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11703 (fold_builtin_4): Likewise.
11705 PR middle-end/38878
11706 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11707 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11708 and C - X == X also strip nops from +/-/p+ operand.
11709 When optimizing -X == C, fold C to arg0's type.
11712 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11713 emit it as add_AT_int instead of add_AT_unsigned.
11715 2011-03-14 Tom Tromey <tromey@redhat.com>
11717 * unwind-dw2.c: Include sys/sdt.h if it exists.
11718 (_Unwind_DebugHook): Use STAP_PROBE2.
11719 * config.in, configure: Rebuild.
11720 * configure.ac: Check for sys/sdt.h.
11722 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11724 * config/i386/i386.md (ROUND_FLOOR): New constant.
11725 (ROUND_CEIL): Ditto.
11726 (ROUND_TRUNC): Ditto.
11727 (ROUND_MXCSR): Ditto.
11728 (ROUND_NO_EXC): Ditto.
11729 (rint<mode>2): Use new defines instead of numerical constants.
11730 (floor<mode>2): Ditto.
11731 (ceil<mode>2): Ditto.
11732 (btrunc<mode>2): Ditto.
11733 * config/i386/i386-builtin-types.def: Define ROUND function type
11735 * config/i386/i386.c (enum ix86_builtins): Add
11736 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11737 (struct builtin_description): Add
11738 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11739 (ix86_expand_sse_round): New static function.
11740 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11742 (ix86_builtin_vectorized_function): Handle
11743 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11745 2011-03-14 Tom Tromey <tromey@redhat.com>
11747 * c-parser.c (c_parser_asm_string_literal): Clear
11748 warn_overlength_strings.
11750 2011-03-14 Tom Tromey <tromey@redhat.com>
11752 * c-parser.c (disable_extension_diagnostics): Save
11753 warn_overlength_strings.
11754 (restore_extension_diagnostics): Restore warn_overlength_strings.
11756 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11758 * BASE-VER: Change to 4.7.0.
11760 2011-03-14 Richard Guenther <rguenther@suse.de>
11762 PR middle-end/48098
11763 * tree.c (build_vector_from_val): Adjust assert to requirements
11766 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11769 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11771 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11773 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11774 terms of target_flags_explicit. Adjust copyright year.
11776 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11777 * config/rs6000/t-freebsd: New file. Add override for
11780 2011-03-13 Chris Demetriou <cgd@google.com>
11782 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11783 (-fno-diagnostics-show-option): this, to reflect current default.
11784 (-Werror=): Update text about -fno-diagnostics-show-option.
11786 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11789 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11790 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11791 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11792 mode is not V2DImode or V2DFmode.
11793 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11794 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11795 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11797 (movdi_internal64): Likewise.
11799 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11801 PR tree-optimization/47127
11802 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11804 (set_cloog_options): Same.
11805 (scop_to_clast): Same.
11806 (print_clast_stmt): Do not call cloog_state_malloc and
11808 (print_generated_program): Same.
11810 * graphite-clast-to-gimple.h (cloog_state): Declared.
11811 (scop_to_clast): Adjust declaration.
11812 * graphite.c (cloog_state): Defined here.
11813 (graphite_initialize): Call cloog_state_malloc.
11814 (graphite_finalize): Call cloog_state_free.
11816 2011-03-11 Jason Merrill <jason@redhat.com>
11818 * attribs.c (lookup_attribute_spec): Take const_tree.
11821 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11823 * config/sparc/sparc.c (sparc_option_override): Use
11824 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11826 2011-03-11 Richard Guenther <rguenther@suse.de>
11828 PR tree-optimization/48067
11829 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11830 multiplication result will be only used once on the target
11833 2011-03-11 Richard Guenther <rguenther@suse.de>
11835 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11837 2011-03-11 Richard Guenther <rguenther@suse.de>
11840 * tree.c (find_decls_types_r): Do not walk types only reachable
11841 from IDENTIFIER_NODEs.
11843 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11845 PR middle-end/48044
11846 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11847 all vnode->force_output nodes as needed.
11849 2011-03-11 Jason Merrill <jason@redhat.com>
11852 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11853 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11855 2011-03-11 Martin Jambor <mjambor@suse.cz>
11857 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11860 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11862 PR tree-optimization/48063
11863 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11864 inline functions called once if !tree_can_inline_p (node->callers).
11866 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11868 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11870 * config/score/score3.c: Delete.
11871 * config/score/score3.h: Delete.
11872 * config/score/mul-div.S: Delete.
11873 * config/score/sfp-machine.h: Add new file.
11874 * config/score/constraints.md: Add new file.
11875 * config/score/t-score-softfp: Add new file.
11876 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11877 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11878 (score7_extra_constraint): Delete.
11879 (score7_option_override): Remove unused code.
11880 * config/score/score.c: Remove score3 and score5 define and code.
11881 * config/score/score.h: Remove score3 and score5 define and code.
11882 * config/score/score.md: Remove score3 template and unusual insn.
11883 * config/score/score.opt: Remove score3 and score5 options.
11885 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11887 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11888 when _HPUX_SOURCE is defined.
11889 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11891 2011-03-10 Jason Merrill <jason@redhat.com>
11894 * stor-layout.c (layout_type): Don't set structural equality
11895 on arrays of incomplete type.
11896 * tree.c (type_hash_eq): Handle comparing them properly.
11898 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11901 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11902 result mode matches original rtl mode.
11904 2011-03-10 Nick Clifton <nickc@redhat.com>
11906 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11907 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11909 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11911 PR rtl-optimization/47866
11912 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11913 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11914 if target wasn't scalar.
11915 * function.c (assign_stack_temp_for_type): Assert that neither
11916 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11917 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11919 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11921 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11923 * config/s390/s390-protos.h (s390_label_align): New prototype.
11924 * config/s390/s390.c (s390_label_align): New function.
11925 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11927 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11930 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11931 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11932 (output_vec_const_move): Ditto.
11934 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11936 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11937 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11938 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11939 Change 'rclass' argument and result type to reg_class_t.
11940 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11942 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11944 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11945 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11946 (TARGET_MEMORY_MOVE_COST): Define.
11947 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11949 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11952 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11955 PR tree-optimization/48022
11956 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11959 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11962 * var-tracking.c (find_use_val): Return NULL for
11963 cui->sets && cui->store_p BLKmode MEMs.
11965 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11967 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11969 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11970 xstormy16_print_operand_address): Remove.
11971 * config/stormy16/stormy16.c (xstormy16_print_operand,
11972 xstormy16_print_operand_address): Make static.
11973 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11975 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11978 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11979 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11982 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11985 * cfgloopmanip.c (fix_bb_placements): Return immediately
11986 if FROM is BASE_LOOP's header.
11988 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11990 * gimplify.c (gimplify_function_tree): Fix building calls
11991 to __builtin_return_address.
11993 2011-03-07 Alan Modra <amodra@gmail.com>
11995 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11996 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11997 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11998 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12000 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12001 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12002 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12003 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12004 * config/rs6000/rs6000.c
12005 (rs6000_elf_end_indicate_exec_stack): Rename to..
12006 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12007 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12008 (rs6000_file_start): ..here.
12009 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12010 file scope variables.
12011 (call_ABI_of_interest): New function.
12012 (init_cumulative_args): Set above vars when function return value
12013 is a float, vector, or small struct.
12014 (rs6000_function_arg_advance_1): Likewise for function args.
12015 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12016 references float args.
12018 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12020 * doc/cfg.texi: Remove "See" before @ref.
12021 * doc/invoke.texi: Likewise.
12023 2011-03-05 Jason Merrill <jason@redhat.com>
12025 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12027 2011-03-05 Anthony Green <green@moxielogic.com>
12029 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12031 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12033 PR rtl-optimization/47899
12034 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12035 to flow_loop_nested_p when moving the loop upward.
12037 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12040 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12042 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12044 PR tree-optimization/47967
12045 * ipa-cp.c (build_const_val): Return NULL instead of creating
12046 VIEW_CONVERT_EXPR for mismatching sizes.
12047 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12048 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12049 give up on versioning.
12051 2011-03-05 Alan Modra <amodra@gmail.com>
12054 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12055 full cmodel medium/large lo_sum + high addresses.
12057 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12059 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12060 pool references in UNSPEC_LTREL_OFFSET.
12062 2011-03-04 Jan Hubicka <jh@suse.cz>
12065 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12066 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12067 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12069 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12070 cgraph_add_thunk): Add node pointers.
12071 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12072 associated to right node.
12073 (input_node): Update use of cgraph_same_body_alias
12074 and cgraph_add_thunk.
12076 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12078 * config/i386/i386.opt (mprefer-avx128): New flag.
12079 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12080 modes when the flag -mprefer-avx128 is on.
12082 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12084 * dwarf2out.c (compare_loc_operands): Fix address handling.
12086 2011-03-04 Alan Modra <amodra@gmail.com>
12088 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12090 2011-03-04 Richard Guenther <rguenther@suse.de>
12092 PR middle-end/47968
12093 * expmed.c (extract_bit_field_1): Prefer vector modes that
12094 vec_extract patterns can handle.
12096 2011-03-04 Richard Guenther <rguenther@suse.de>
12098 PR middle-end/47975
12099 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12101 2011-03-04 Richard Henderson <rth@redhat.com>
12103 * explow.c (emit_stack_save): Remove 'after' parameter.
12104 (emit_stack_restore): Likewise.
12105 * expr.h: Update to match.
12106 * builtins.c, calls.c, stmt.c: Likewise.
12107 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12108 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12109 * function.c (expand_function_end): Insert the emit_stack_save
12110 sequence before parm_birth_insn instead of after.
12112 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12114 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12115 (ssse3_pmaddubsw128): Ditto.
12116 (ssse3_pmaddubsw): Ditto.
12118 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12120 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12122 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12125 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12126 on TYPE_SIZE_UNIT if it is a DECL.
12129 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12130 first operand is not is_gimple_mem_ref_addr, try to fold it.
12131 If the operand still isn't is_gimple_mem_ref_addr, clear
12134 2011-03-03 Richard Guenther <rguenther@suse.de>
12136 PR middle-end/47283
12137 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12139 (refs_may_alias_p_1): For release branches return true if
12140 we are confused by our input.
12142 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12144 * config/s390/s390.c (s390_function_value): Rename to ...
12145 (s390_function_and_libcall_value): ... this.
12146 (s390_function_value): New function.
12147 (s390_libcall_value): New function.
12148 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12149 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12150 target macro definitions.
12151 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12153 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12155 * config/i386/freebsd64.h (CC1_SPEC): Define.
12156 * config/i386/linux64.h (CC1_SPEC): Define.
12157 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12159 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12161 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12163 * config/stormy16/stormy16.c: Include reload.h.
12164 (xstormy16_memory_move_cost): New function.
12165 (TARGET_MEMORY_MOVE_COST): Define.
12167 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12169 PR rtl-optimization/47925
12170 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12171 with side effects. Remove the more-specific check for volatile asms.
12173 2011-03-02 Alan Modra <amodra@gmail.com>
12176 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12177 toc relative addresses for valid offsets.
12179 2011-03-01 Richard Guenther <rguenther@suse.de>
12181 PR tree-optimization/47890
12182 * tree-vect-loop.c (get_initial_def_for_induction): Set
12183 related stmt properly.
12185 2011-03-01 Richard Guenther <rguenther@suse.de>
12188 * lto-streamer.c (lto_record_common_node): Also register
12189 the canonical type.
12191 2011-03-01 Richard Guenther <rguenther@suse.de>
12194 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12195 Do not stream DECL_ABSTRACT_ORIGIN.
12196 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12197 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12198 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12199 Do not stream DECL_ABSTRACT_ORIGIN.
12200 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12201 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12203 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12205 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12206 FUNCTION_VALUE_REGNO_P): Remove.
12207 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12208 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12209 Add 'outgoing' argument.
12210 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12212 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12213 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12215 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12218 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12219 (lookup_filename): Likewise.
12220 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12222 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12223 Jakub Jelinek <jakub@redhat.com>
12225 PR middle-end/47893
12226 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12227 (assign_stack_local_1): Change last argument type to int.
12228 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12229 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12230 don't record padding space into frame_space_list nor use those areas.
12231 (assign_stack_local): Adjust caller.
12232 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12233 of assign_stack_local, pass 0 as last argument.
12234 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12237 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12240 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12241 Use target address_mode and pointer_mode hooks instead of hardcoded
12242 Pmode and ptr_mode. Handle some simple cases of extending if
12243 POINTERS_EXTEND_UNSIGNED < 0.
12244 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12245 Call convert_debug_memory_address.
12246 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12247 convert_debug_memory_address.
12249 PR middle-end/46790
12250 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12251 * configure: Regenerated.
12252 * config.in: Regenerated.
12253 * varasm.c (default_function_section): Return NULL
12254 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12256 2011-02-28 Martin Jambor <mjambor@suse.cz>
12258 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12259 the description to match the printed values.
12261 2011-02-28 Richard Guenther <rguenther@suse.de>
12263 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12264 of the copied scope tree.
12266 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12268 * doc/extend.texi (Function Attributes): Avoid deeply (and
12269 wrongly) nested tables.
12271 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12273 PR middle-end/47903
12274 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12275 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12276 r isn't op0 nor op1.
12278 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12280 * config/avr/avr.md: Remove magic comment for emacs.
12282 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12285 * config/avr/avr.c (avr_option_override): Use error on bad options.
12286 (avr_help): New function.
12287 (TARGET_HELP): Define.
12289 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12292 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12293 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12295 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12297 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12298 (ARM Options): Ditto.
12299 (i386 and x86-64 Options): Ditto.
12300 (RX Options): Ditto.
12301 (SPARC Options): Ditto.
12303 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12305 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12306 FreeBSD 6 and later. Generally use cpu generic.
12308 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12310 * doc/cpp.texi: Update copyright years.
12312 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12315 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12317 2011-02-25 Jon Beniston <jon@beniston.com>
12320 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12321 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12322 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12323 (lm32_block_move_inline): Add type cast to remove warning.
12324 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12325 (gen_int_relational): Move declarations to start of function.
12327 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12329 PR tree-optimization/45470
12330 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12331 can throw internally only.
12332 * tree-vect-stmts.c (vectorizable_call): Likewise.
12334 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12336 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12337 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12338 * config/stormy16/stormy16-protos.h
12339 (xstormy16_preferred_reload_class): Remove.
12340 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12341 static. Change 'rclass' argument and return type to reg_class_t.
12342 (TARGET_PREFERRED_RELOAD_CLASS,
12343 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12345 2011-02-24 Richard Guenther <rguenther@suse.de>
12347 * lto-streamer-in.c (input_bb): Do not find referenced vars
12348 in debug statements.
12350 2011-02-23 Jason Merrill <jason@redhat.com>
12352 * common.opt (fabi-version): Document v5 and v6.
12354 2011-02-23 Richard Guenther <rguenther@suse.de>
12356 PR tree-optimization/47849
12357 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12359 2011-02-23 Jie Zhang <jie@codesourcery.com>
12361 * opts-common.c (decode_cmdline_option): Print empty string
12362 argument as "" in decoded->orig_option_with_args_text.
12363 * gcc.c (execute): Print empty string argument as ""
12364 in the verbose output.
12365 (do_spec_1): Keep empty string argument.
12367 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12369 * config.gcc: Declare score-* and crx-* obsolete.
12371 2011-02-23 Jie Zhang <jie@codesourcery.com>
12373 PR rtl-optimization/47763
12374 * web.c (web_main): Ignore naked clobber when replacing register.
12376 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12378 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12381 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12384 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12386 2011-02-22 Mike Stump <mikestump@comcast.net>
12388 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12390 * configure: Regenerate.
12392 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12394 PR rtl-optimization/46002
12395 * ira-color.c (update_copy_costs): Change class intersection
12396 test to reg_class_contents[] test of 'hard_regno'.
12398 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12400 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12401 than Driver option.
12402 * config/hpux11.opt (mt): Likewise.
12403 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12404 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12405 * config/vax/elf.opt (mno-asm-pic): Likewise.
12406 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12408 2011-02-21 Mike Stump <mikestump@comcast.net>
12411 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12412 tree so we can get save the type.
12413 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12414 for CFString instead of trying to use past the end of the builtins.
12415 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12416 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12417 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12418 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12419 Rename to darwin_builtin_cfstring.
12420 (darwin_init_cfstring_builtins): Return the built type.
12422 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12425 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12426 (_mm256_insert_epi64): Use _mm_insert_epi64.
12428 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12430 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12431 * config/stormy16/stormy16-protos.h
12432 (xstormy16_mode_dependent_address_p): Remove.
12433 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12434 Make static. Change return type to bool. Change argument type to
12435 const_rtx. Remove dead code.
12436 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12438 2011-02-21 Richard Guenther <rguenther@suse.de>
12441 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12442 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12443 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12445 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12446 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12448 2011-02-20 Richard Guenther <rguenther@suse.de>
12451 * tree.c (free_lang_data_in_decl): Clean builtins from
12452 the TU decl BLOCK_VARS.
12454 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12458 * haifa-sched.c (fix_tick_ready): Skip tick computation
12461 2011-02-19 Richard Guenther <rguenther@suse.de>
12464 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12465 Remove lazy BLOCK_VARS streaming.
12466 (lto_input_ts_block_tree_pointers): Likewise.
12467 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12469 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12471 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12473 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12475 * config/i386/biarch32.h, config/i386/mach.h,
12476 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12478 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12481 * config/i386/i386.md (peephole2 for shift and plus): Use
12482 operands[1] original mode in the first insn.
12484 2011-02-18 Mike Stump <mikestump@comcast.net>
12486 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12488 2011-02-18 Jan Hubicka <jh@suse.cz>
12490 PR middle-end/47788
12491 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12492 to zero when the function is not inlinable at all.
12494 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12496 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12497 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12498 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12499 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12500 * config/pa/t-pa64: Likewise.
12501 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12503 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12506 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12508 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12511 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12513 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12515 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12516 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12517 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12518 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12519 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12520 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12521 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12522 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12523 m32r_legitimate_address_p): New functions.
12524 * config/m32r/constraints.md (constraint "S"): Don't use
12525 STORE_PREINC_PREDEC_P.
12526 (constraint "U"): Don't use LOAD_POSTINC_P.
12528 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12530 PR rtl-optimization/46178
12531 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12532 compute ira_hard_regno_cover_class[].
12534 2011-02-18 Richard Guenther <rguenther@suse.de>
12537 * lto-streamer.h (lto_global_var_decls): Declare.
12538 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12539 statics for global var processing.
12541 2011-02-18 Richard Guenther <rguenther@suse.de>
12543 PR tree-optimization/47737
12544 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12545 edge dominance check.
12547 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12550 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12551 avoid invalid rtx sharing.
12553 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12555 * doc/cpp.texi (Obsolete Features): Add background on the
12556 origin of assertions.
12558 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12560 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12562 * config/darwin.c (output_objc_section_asm_op): Added support for
12564 (is_objc_metadata): New.
12565 (darwin_objc2_section): New.
12566 (darwin_objc1_section): New.
12567 (machopic_select_section): Added support for ABI v1 and v2.
12568 (darwin_emit_objc_zeroed): New.
12569 (darwin_output_aligned_bss): Detect objc metadata and treat it
12571 (darwin_asm_output_aligned_decl_common): Same.
12572 (darwin_asm_output_aligned_decl_local): Same.
12573 * config/darwin-sections.def: Updated for ABI v1 and v2.
12574 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12575 compiling Objective-C code for the NeXT runtime, default to using
12576 ABI version 0 for 32-bit, and version 2 for 64-bit.
12578 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12580 * common.opt (optimize_fast): New Variable.
12581 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12582 instead of local variable ofast.
12584 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12586 * doc/invoke.texi (fobjc-abi-version): Documented.
12587 (fobjc-nilcheck): Documented.
12588 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12591 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12594 * common.opt (export-dynamic): New Driver option.
12595 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12597 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12599 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12601 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12602 Jan Hubicka <jh@suse.cz>
12606 * cfgexpand.c (account_used_vars_for_block): Remove.
12607 (estimated_stack_frame_size): Use referenced vars.
12608 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12609 that were referenced in the original function. Test src_fn
12610 rather than cfun. Drop redundant get_var_ann.
12611 (setup_one_parameter): Drop redundant get_var_ann.
12612 (declare_return_variable): Likewise.
12613 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12614 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12615 * ipa-inline.c (compute_inline_parameters): Do not compute
12616 disregard_inline_limits here.
12617 (compute_inlinable_for_current, pass_inlinable): New.
12618 (pass_inline_parameters): Require PROP_referenced_vars.
12619 * cgraphunit.c (cgraph_process_new_functions): Don't run
12620 compute_inline_parameters explicitly unless function is in SSA form.
12621 (cgraph_analyze_function): Set .disregard_inline_limits.
12622 * tree-sra.c (convert_callers): Compute inliner parameters
12623 only for functions already in SSA form.
12625 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12627 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12628 -mlittle-endian-data.
12630 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12632 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12633 -mno-fpu, not -fpu and -no-fpu.
12634 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12635 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12637 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12640 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12641 input reload with PLUS RTX.
12643 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12645 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12646 of InverseVar(MDMX).
12648 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12650 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12653 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12655 * config/mn10300/mn10300.opt (mno-crt0): New.
12657 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12659 * config/m68k/uclinux.opt (static-libc): New Driver option.
12661 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12663 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12665 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12667 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12668 %{muser-extend-enabled}.
12670 2011-02-16 Richard Guenther <rguenther@suse.de>
12672 PR tree-optimization/47738
12673 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12674 the TODO from tree_predictive_commoning.
12676 2011-02-15 Jeff Law <law@redhat.com>
12679 2011-01-25 Jeff Law <law@redhat.com>
12681 PR rtl-optimization/37273
12682 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12683 handle them like argument loads from stack slots. Do not double
12684 count memory for memory constants and argument loads from stack slots.
12686 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12688 PR middle-end/47725
12689 * combine.c (cant_combine_insn_p): Revert the last change.
12691 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12694 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12695 mode for vector constants. Remove code that checks for TImode.
12697 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12701 * cgraph.h (compute_inline_parameters): Return void.
12702 * ipa-inline.c (compute_inline_parameters): Adjust.
12704 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12708 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12710 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12711 * ipa-inline.c (compute_inline_parameters): Adjust.
12713 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12717 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12718 Adjust all users. Pass FN to...
12719 * tree-flow-inline.h (first_referenced_var): ... this. Add
12721 * ipa-struct-reorg.c: Adjust.
12722 * tree-dfa.c: Adjust.
12723 * tree-into-ssa.c: Adjust.
12724 * tree-sra.c: Adjust.
12725 * tree-ssa-alias.c: Adjust.
12726 * tree-ssa-live.c: Adjust.
12727 * tree-ssa.c: Adjust.
12728 * tree-ssanames.c: Adjust.
12729 * tree-tailcall.c: Adjust.
12731 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12735 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12736 Adjust all callers.
12737 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12738 * tree-flow-inline.h: Adjust.
12739 * gimple-pretty-print.c: Adjust.
12740 * tree-into-ssa.c: Adjust.
12741 * tree-ssa.c: Adjust.
12742 * cfgexpand.c: Adjust.
12744 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12746 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12747 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12748 (EXTRA_CONSTRAINT): Delete.
12749 * config/iq2000/constraints.md: New file.
12750 * config/iq2000/iq2000.md: Include it.
12751 (define_insn ""): Delete.
12752 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12753 unsupported constraint letters from patterns.
12754 (call_value, call_value_internal1): Likewise.
12755 (call_value_multiple_internal1): Likewise.
12757 2011-02-15 Nick Clifton <nickc@redhat.com>
12759 * config/mn10300/mn10300.c: Include tm-constrs.h.
12760 (struct liw_data): New data structure describing an LIW candidate
12762 (extract_bundle): Use struct liw_data. Allow small integer
12763 operands for some instructions.
12764 (check_liw_constraints): Use struct liw_data. Remove swapped
12765 parameter. Add comments describing the checks. Fix bug when
12766 assigning the source of liw1 to the source of liw2.
12767 (liw_candidate): Delete. Code moved into extract_bundle.
12768 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12770 * config/mn10300/predicates.md (liw_operand): New predicate.
12771 Allows registers and small integer constants.
12772 * config/mn10300/constraints.md (O): New constraint. Accetps
12773 integers in the range -8 to +7 inclusive.
12774 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12775 for moving a small integer into a register. Give this alternative
12777 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12778 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12779 using the J,K,L and M constraints,
12780 (liw): Remove SI mode on second operands to allow for HI and QI
12782 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12785 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12787 PR middle-end/47725
12788 * combine.c (cant_combine_insn_p): Check zero/sign extended
12791 2011-02-15 Richard Guenther <rguenther@suse.de>
12793 PR tree-optimization/47743
12794 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12795 for a non-type-compatible VN lookup bail out.
12797 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12799 * config/fr30/constraints.md: New file.
12800 * config/fr30/fr30.md: Include it.
12801 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12802 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12803 (EXTRA_CONSTRAINT): Delete.
12805 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12807 * config/frv/constraints.md: New file.
12808 * config/frv/predicates.md: Include it.
12809 * config/frv/frv.c (reg_class_from_letter): Delete.
12810 (frv_option_override): Don't initialize it.
12811 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12812 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12813 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12814 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12815 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12816 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12817 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12818 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12819 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12820 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12821 (REG_CLASS_FROM_CONSTRAINT): Delete.
12823 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12825 PR middle-end/47581
12826 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12827 if frame size is 0 in a leaf function.
12829 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12832 * config/alpha/host-osf.c: New file.
12833 * config/alpha/x-osf: New file.
12834 * config.host (alpha*-dec-osf*): Use it.
12836 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12838 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12839 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12840 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12841 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12843 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12845 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12847 * config/stormy16/constraints.md: New file.
12848 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12849 Use satisfies_constraint_Q and satisfies_constraint_R.
12850 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12852 (xstormy16_legitiamte_address_p): Declare.
12853 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12854 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12855 (EXTRA_CONSTRAINT): Delete.
12856 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12858 (xstormy16_extra_constraint_p): Delete.
12860 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12862 PR tree-optimization/46494
12863 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12864 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12865 (pass_rtl_loop_done): Add TODO_verify_flow.
12866 * fwprop.c (pass_rtl_fwprop): Likewise.
12867 * modulo-sched.c (pass_sms): Likewise.
12868 * tree-ssa-dom.c (pass_dominator): Likewise.
12869 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12870 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12871 (pass_tree_loop_done): Likewise.
12872 * tree-ssa-pre.c (execute_pre): Likewise.
12873 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12874 * tree-ssa-sink.c (pass_sink_code): Likewise.
12875 * tree-vrp.c (pass_vrp): Likewise.
12877 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12879 * config/v850/constraints.md: New file.
12880 * config/v850/v850.md: Include it.
12881 * config/v850/predicates.md (reg_or_0_operand): Use
12882 satisfies_constraint_G.
12883 (special_symbolref_operand): Use satisfies_constraint_K.
12884 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12885 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12886 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12887 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12888 (EXTRA_CONSTRAINT): Delete.
12889 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12890 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12891 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12893 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12896 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12899 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12901 * config/mcore/constraints.md: New file.
12902 * config/mcore/mcore.md: Include it.
12903 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12904 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12905 (REG_CLASS_FROM_LETTER): Delete.
12906 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12907 insn_const_int_ok_for_constraint.
12908 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12909 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12910 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12911 (EXTRA_CONSTRAINT): Delete.
12913 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12916 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12917 (IS_SIGHANDLER): Define.
12918 (sparc64_is_sighandler): New function, split off from
12919 sparc64_fallback_frame_state.
12920 (sparc_is_sighandler): New function, split off from
12921 sparc_fallback_frame_state.
12922 (sparc64_fallback_frame_state): Merge with ...
12923 (sparc_fallback_frame_state): ... this into ...
12924 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12925 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12926 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12927 stack instead of hardcoded offsets.
12929 2011-02-14 Andriy Gapon <avg@freebsd.org>
12932 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12934 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12936 * configure: Regenerate.
12938 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12941 * gcc.c (asm_options): Correct spec matching --target-help.
12943 2011-02-12 Martin Jambor <mjambor@suse.cz>
12945 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12946 to gimple call error.
12948 2011-02-12 Mike Stump <mikestump@comcast.net>
12950 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12951 comments in backslash regions.
12953 2011-02-12 Mike Stump <mikestump@comcast.net>
12954 Jakub Jelinek <jakub@redhat.com>
12955 Iain Sandoe <iains@gcc.gnu.org>
12958 * dwarf2out.c (output_cfa_loc): When required, apply the
12959 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12960 (output_loc_sequence): Likewise.
12961 (output_loc_operands_raw): Likewise.
12962 (output_loc_sequence_raw): Likewise.
12963 (output_cfa_loc): Likewise.
12964 (output_loc_list): Suppress register number adjustment when
12965 calling output_loc_sequence()
12966 (output_die): Likewise.
12968 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12970 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12972 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12973 xtensa_memory_move_cost): New functions.
12974 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12976 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12979 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12980 in the current directory.
12981 * configure: Rebuilt.
12983 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12985 * config/darwin.c (darwin_override_options): Add a hunk missed
12986 from the commit of r168571. Trim comment line lengths and
12987 correct indents of the preceding block.
12989 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12991 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12994 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12996 * common.opt (nostartfiles): New Driver option.
12998 2011-02-11 Xinliang David Li <davidxl@google.com>
13000 PR tree-optimization/47707
13001 * tree-chrec.c (convert_affine_scev): Keep type precision.
13003 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13005 PR tree-optimization/47420
13006 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13008 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13010 PR rtl-optimization/47614
13011 * rtl.h (check_for_inc_dec): Declare.
13012 * dse.c (check_for_inc_dec): Externalize...
13013 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13014 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13016 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13019 * gcc.c (main): Do not compile inputs if there were errors in
13021 * opts-common.c (read_cmdline_option): Check for wrong language
13022 after other error checks.
13024 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13026 * cgraph.c: Fix comment typos.
13027 * cgraph.h: Likewise.
13028 * cgraphunit.c: Likewise.
13029 * ipa-cp.c: Likewise.
13030 * ipa-inline.c: Likewise.
13031 * ipa-prop.c: Likewise.
13032 * ipa-pure-const.c: Likewise.
13033 * ipa-ref.c: Likewise.
13034 * ipa-reference.c: Likewise.
13036 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13039 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13041 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13044 * doc/sourcebuild.texi (Require Support): Document
13045 dg-require-ascii-locale.
13047 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13049 * doc/lto.texi (Write summary): Fix missing parentheses.
13051 2011-02-10 DJ Delorie <dj@redhat.com>
13053 * config/m32c/m32c.c (m32c_option_override): Disable
13054 -fcombine-stack-adjustments until flag value tracking and compare
13055 optimization can be rewritten.
13057 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13059 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13061 (PROCESSOR_DEFAULT64): Likewise.
13063 2011-02-10 Richard Henderson <rth@redhat.com>
13065 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13066 change from 2011-02-03.
13067 * config/rx/rx.c (flags_from_code): Likewise.
13068 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13069 is valid, n/pz otherwise.
13070 (rx_select_cc_mode): Return CCmode if Y is not zero.
13072 2011-02-10 Richard Guenther <rguenther@suse.de>
13074 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13076 2011-02-10 Richard Guenther <rguenther@suse.de>
13078 PR tree-optimization/47677
13079 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13081 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13084 * combine.c (make_compound_operation): Only change shifts into
13085 multiplication for SCALAR_INT_MODE_P.
13087 2011-02-10 Jie Zhang <jie@codesourcery.com>
13091 2011-02-05 Jie Zhang <jie@codesourcery.com>
13093 * web.c (entry_register): Don't clobber the number of the
13094 first uninitialized reference in used[].
13096 2011-02-09 Richard Guenther <rguenther@suse.de>
13098 PR tree-optimization/47664
13099 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13102 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13106 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13108 (PROCESSOR_DEFAULT64): Same.
13109 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13111 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13113 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13115 2011-02-09 Martin Jambor <mjambor@suse.cz>
13117 PR middle-end/45505
13118 * tree-sra.c (struct access): New flags grp_scalar_read and
13119 grp_scalar_write. Changed description of assignment read and write
13121 (dump_access): Dump new flags, reorder all of them.
13122 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13123 to detect multiple scalar reads.
13124 (analyze_access_subtree): Use the new scalar read write flags instead
13125 of the old flags. Adjusted comments.
13127 2011-02-08 DJ Delorie <dj@redhat.com>
13130 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13133 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13135 * config/m68k/uclinux.opt: New.
13136 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13138 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13140 * config/cris/elf.opt (sim): New Driver option.
13142 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13144 * config/xtensa/elf.opt: New.
13145 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13147 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13149 * config/vax/elf.opt: New.
13150 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13152 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13154 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13156 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13158 * config/gnu-user.opt: New.
13159 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13160 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13161 *-*-uclinux*): Use gnu-user.opt.
13163 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13165 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13166 * config/i386/gnu.h (CPP_SPEC): Likewise.
13168 2011-02-08 Ian Lance Taylor <iant@google.com>
13170 * common.opt (fcx-limited-range): Add SetByCombined flag.
13171 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13172 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13173 (fassociative-math, freciprocal-math): Likewise.
13174 (funsafe-math-optimizations): Likewise.
13175 * opth-gen.awk: Handle SetByCombined.
13176 * optc-gen.awk: Likewise.
13177 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13178 (set_unsafe_math_optimizations_flags): Likewise.
13179 * doc/options.texi (Option properties): Document SetByCombined.
13181 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13183 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13184 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13185 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13186 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13187 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13189 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13191 PR tree-optimization/46834
13192 PR tree-optimization/46994
13193 PR tree-optimization/46995
13194 * graphite-sese-to-poly.c (used_outside_reduction): New.
13195 (detect_commutative_reduction): Call used_outside_reduction.
13196 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13197 translate_scalar_reduction_to_array only when at least one
13198 loop-phi/close-phi tuple has been detected.
13200 2011-02-08 Richard Guenther <rguenther@suse.de>
13202 PR middle-end/47639
13203 * tree-vect-generic.c (expand_vector_operations_1): Update
13205 (expand_vector_operations): ... not here. Cleanup EH info
13206 and the CFG if required.
13208 2011-02-08 Richard Guenther <rguenther@suse.de>
13210 PR tree-optimization/47641
13211 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13212 require type compatibility.
13214 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13216 * gimple-low.c (lower_function_body): Don't remove the location of
13217 the return statement here.
13218 (lower_gimple_return): Do it here instead but only if the return
13219 statement is actually used twice.
13221 2011-02-08 Richard Guenther <rguenther@suse.de>
13223 PR tree-optimization/47632
13224 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13225 unused up_to_stmt parameter, return whether cfg-cleanup is
13226 necessary, remove EH info properly.
13227 (forward_propagate_into_gimple_cond): Adjust caller.
13228 (forward_propagate_into_cond): Likewise.
13229 (forward_propagate_comparison): Likewise.
13230 (tree_ssa_forward_propagate_single_use_vars): Make
13231 forward_propagate_comparison case similar to the two others.
13233 2011-02-08 Nick Clifton <nickc@redhat.com>
13235 * config/mn10300/mn10300.opt (mliw): New command line option.
13236 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13237 (liw_bundling): New automaton.
13238 (liw): New attribute.
13239 (liw_op): New attribute.
13240 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13241 (movsi_internal): Add LIW attributes.
13242 (andsi3): Likewise.
13243 (iorsi3): Likewise.
13244 (xorsi3): Likewise.
13245 (addsi3): Separate register and immediate alternatives.
13246 Add LIW attributes.
13247 (subsi3): Likewise.
13249 (aslsi3): Likewise.
13250 (lshrsi3): Likewise.
13251 (ashrsi3): Likewise.
13252 (liw): New pattern.
13253 * config/mn10300/mn10300.c (liw_op_names): New
13254 (mn10300_print_operand): Handle 'W' operand descriptor.
13255 (extract_bundle): New function.
13256 (check_liw_constraints): New function.
13257 (liw_candidate): New function.
13258 (mn10300_bundle_liw): New function.
13259 (mn10300_reorg): New function.
13260 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13261 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13262 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13263 __LIW__ or __NO_LIW__.
13264 * doc/invoke.texi: Describe the -mliw command line option.
13266 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13268 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13269 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13270 pthread_mutex_unlock): Remove.
13271 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13272 * config/pa/t-pa64: Likewise.
13273 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13274 shared libc if not linking against libpthread.
13275 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13277 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13280 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13281 on 10.6 and later to ensure that we always use the unwinder from
13282 the system. Only add -no_compact_unwind when tarteting darwin
13285 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13288 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13289 (vec_interleave_lowv2sf): Ditto.
13290 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13291 (vec_extract_oddv2sf): Ditto.
13293 2011-02-07 Mike Stump <mikestump@comcast.net>
13296 Add __ieee_divdc3 entry point.
13297 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13299 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13300 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13301 * config/darwin.c (darwin_rename_builtins): Add.
13302 * config/darwin-protos.h (darwin_rename_builtins): Add.
13304 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13307 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13310 2011-02-07 Mike Stump <mikestump@comcast.net>
13312 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13314 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13317 * config/avr/libgcc.S (exit): Move .endfunc
13319 2011-02-07 Richard Guenther <rguenther@suse.de>
13321 PR tree-optimization/47615
13322 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13323 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13324 (run_scc_vn): Initialize it.
13325 (visit_reference_op_load): Use it.
13326 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13328 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13330 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13331 DImode trapping arithmetic libfuncs.
13333 2011-02-07 Richard Guenther <rguenther@suse.de>
13335 PR tree-optimization/47621
13336 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13338 (execute_update_addresses_taken): ... here. Make it more
13339 conservative in what we accept.
13341 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13343 * config/sparc/freebsd.h (ASM_SPEC): Define.
13344 * config/sparc/vxworks.h (ASM_SPEC): Define.
13346 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13348 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13350 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13352 * doc/invoke.texi: Remove reference to compiler internals from
13353 user documentation.
13355 * reg-notes.def: Remove REG_VALUE_PROFILE.
13356 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13358 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13360 PR middle-end/47610
13361 * varasm.c (default_section_type_flags): If decl is NULL,
13362 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13364 2011-02-05 Jie Zhang <jie@codesourcery.com>
13367 * web.c (entry_register): Don't clobber the number of the
13368 first uninitialized reference in used[].
13370 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13372 PR tree-optimization/46194
13373 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13374 (build_classic_dist_vector_1): Do not represent classic distance
13375 vectors when the access functions are variating in different loops.
13377 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13379 * config/mips/iris6.opt: New.
13380 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13382 2011-02-04 Richard Henderson <rth@redhat.com>
13383 Steve Ellcey <sje@cup.hp.com>
13386 * config/ia64/predicates.md (mux1_brcst_element): New.
13387 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13388 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13389 (ia64_unpack_sign): New.
13390 (ia64_expand_unpack): Rewrite using new routines.
13391 (ia64_expand_widen_sum): Ditto.
13392 (ia64_expand_dot_prod_v8qi): Ditto.
13393 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13394 routines, add endian check.
13395 (pmpy2_even): Rename from pmpy2_r, add endian check.
13396 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13397 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13398 (vec_widen_smult_hi_v4hi): Ditto.
13399 (vec_widen_umult_lo_v4hi): Ditto.
13400 (vec_widen_umult_hi_v4hi): Ditto.
13401 (mulv2si3): Change endian checks.
13402 (sdot_prodv4hi): Rewrite with new calls.
13403 (udot_prodv4hi): New.
13404 (vec_pack_ssat_v4hi): Add endian check.
13405 (vec_pack_usat_v4hi): Ditto.
13406 (vec_pack_ssat_v2si): Ditto.
13407 (max1_even): Rename from max1_r, add endian check.
13408 (max1_odd): Rename from max1_l, add endian check.
13409 (*mux1_rev): Format change.
13410 (*mux1_mix): Ditto.
13411 (*mux1_shuf): Ditto.
13412 (*mux1_alt): Ditto.
13413 (*mux1_brcst_v8qi): Use new predicate.
13414 (vec_extract_evenv8qi): Remove endian check.
13415 (vec_extract_oddv8qi): Ditto.
13416 (vec_interleave_lowv4hi): Format change.
13417 (vec_interleave_highv4hi): Ditto.
13418 (mix2_even): Rename from mix2_r, add endian check.
13419 (mix2_odd): Rename from mux2_l, add endian check.
13420 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13421 (vec_extract_evenodd_helper): Format change.
13422 (vec_extract_evenv4hi): Remove endian check.
13423 (vec_extract_oddv4hi): Remove endian check.
13424 (vec_interleave_lowv2si): Format change.
13425 (vec_interleave_highv2si): Format change.
13426 (vec_initv2si): Remove endian check.
13427 (vecinit_v2si): Add endian check.
13428 (reduc_splus_v2sf): Add endian check.
13429 (reduc_smax_v2sf): Ditto.
13430 (reduc_smin_v2sf): Ditto.
13431 (vec_initv2sf): Remove endian check.
13432 (fpack): Add endian check.
13433 (fswap): Add endian check.
13434 (vec_interleave_highv2sf): Add endian check.
13435 (vec_interleave_lowv2sf): Add endian check.
13436 (fmix_lr): Add endian check.
13437 (vec_setv2sf): Format change.
13438 (*vec_extractv2sf_0_be): Use shift to extract operand.
13439 (*vec_extractv2sf_1_be): New.
13440 (vec_pack_trunc_v4hi): Add endian check.
13441 (vec_pack_trunc_v2si): Format change.
13443 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13445 PR inline-asm/23200
13446 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13447 do bb, locus and block comparison and disallow loads if it is not set.
13448 (stmt_is_replaceable_p): New function.
13449 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13451 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13452 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13454 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13456 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13458 * config/rs6000/xilinx.opt: New.
13459 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13461 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13463 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13465 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13467 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13468 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13469 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13470 secondary_reload_info, xtensa_secondary_reload): Remove.
13471 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13472 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13473 (xtensa_preferred_reload_class): Make static. Change return and
13474 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13475 Use CONST_DOUBLE_P predicate.
13476 (xtensa_preferred_output_reload_class): New function.
13477 (xtensa_secondary_reload): Make static.
13479 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13481 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13482 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13483 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13485 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13487 PR middle-end/31490
13488 * output.h (SECTION_RELRO): Define.
13489 (SECTION_MACH_DEP): Adjust.
13490 (get_variable_section): New prototype.
13491 * varpool.c (varpool_finalize_named_section_flags): New function.
13492 (varpool_assemble_pending_decls): Call it.
13493 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13494 * cgraphunit.c (cgraph_output_in_order): Call
13495 varpool_finalize_named_section_flags.
13496 * varasm.c (get_section): Allow section flags conflicts between
13497 relro and read-only sections if the section hasn't been declared yet.
13498 Set SECTION_OVERRIDE after diagnosing section type conflict.
13499 (get_variable_section): No longer static.
13500 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13501 readonly sections that need relocations.
13502 (decl_readonly_section_1): New function.
13503 (decl_readonly_section): Use it.
13506 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13507 Steve Ellcey <sje@cup.hp.com>
13509 PR middle-end/31490
13510 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13511 if section attribute used.
13513 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13515 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13516 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13517 (darwin_init_sections): Remove assertion.
13519 2011-02-03 Nick Clifton <nickc@redhat.com>
13521 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13523 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13524 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13525 instead of "n" and "pz".
13526 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13529 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13532 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13533 fma, expand FMA_EXPR as fma{,f,l} call.
13536 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13537 copy them into a unsigned char variable and pass address of it to
13538 lto_output_data_stream.
13541 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13542 around backend_init_target and lang_dependent_init_target calls.
13543 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13544 (verify_cgraph_node): Don't call set_cfun here. Use
13545 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13546 Set error_found for incorrectly represented calls to thunks.
13548 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13551 PR rtl-optimization/43494
13552 * rtl.h (for_each_inc_dec_fn): New type.
13553 (for_each_inc_dec): Declare.
13554 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13555 (for_each_inc_dec_find_inc_dec): New fn.
13556 (for_each_inc_dec_find_mem): New fn.
13557 (for_each_inc_dec): New fn.
13558 * dse.c (struct insn_size): Remove.
13559 (replace_inc_dec, replace_inc_dec_mem): Remove.
13560 (emit_inc_dec_insn_before): New fn.
13561 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13562 (canon_address): Pass mem modes to cselib_lookup.
13563 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13564 (cselib_lookup_from_insn): Likewise.
13565 (cselib_subst_to_values): Likewise.
13566 * cselib.c (find_slot_memmode): New var.
13567 (cselib_find_slot): New fn. Use it instead of
13568 htab_find_slot_with_hash everywhere.
13569 (entry_and_rtx_equal_p): Use find_slot_memmode.
13570 (autoinc_split): New fn.
13571 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13572 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13573 Deal with autoinc. Special-case recursion into MEMs.
13574 (cselib_hash_rtx): Likewise.
13575 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13576 address and MEM modes.
13577 (cselib_subst_to_values): Add memmode, pass it on.
13579 (cselib_lookup): Add memmode argument, pass it on.
13580 (cselib_lookup_from_insn): Add memmode.
13581 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13582 (struct cselib_record_autoinc_data): New.
13583 (cselib_record_autoinc_cb): New fn.
13584 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13585 mode to cselib_lookup. Reset autoinced REGs here instead of...
13586 (cselib_process_insn): ... here.
13587 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13589 (add_uses): Likewise, also to cselib_subst_to_values.
13590 (add_stores): Likewise.
13591 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13592 cselib_subst_to_values.
13593 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13594 * gcse.c (do_local_cprop): Adjusted.
13595 * postreload.c (reload_cse_simplify_set): Adjusted.
13596 (reload_cse_simplify_operands): Adjusted.
13597 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13599 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13601 PR tree-optimization/45122
13602 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13603 unsafe assumptions when there's more than one loop exit.
13605 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13608 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13609 Document using vector double with the load/store builtins, and
13610 that the load/store builtins always use Altivec instructions.
13612 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13613 to use altivec memory instructions, even on VSX.
13614 (vector_altivec_store_<mode>): Ditto.
13616 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13619 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13620 V2DF, V2DI support to load/store overloaded builtins.
13622 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13623 altivec load/store builtins for V2DF/V2DI types.
13625 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13626 set avoid indexed addresses on power6 if -maltivec.
13627 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13628 vector_altivec_load/vector_altivec_store builtins.
13629 (altivec_expand_st_builtin): Ditto.
13630 (altivec_expand_builtin): Add VSX memory builtins.
13631 (rs6000_init_builtins): Add V2DI types to internal types.
13632 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13633 load/store builtins.
13634 (rs6000_address_for_altivec): Insure memory address is appropriate
13637 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13638 vec_vsx_ld and vec_vsx_st.
13639 (vsx_store_<mode>): Ditto.
13641 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13642 variables to hold long long types for VSX vector memory builtins.
13643 (RS6000_BTI_unsigned_long_long): Ditto.
13644 (long_long_integer_type_internal_node): Ditti.
13645 (long_long_unsigned_type_internal_node): Ditti.
13647 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13648 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13649 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13651 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13653 (vec_vsx_st): Ditto.
13655 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13657 * config/pa/pa-hpux10.opt: New.
13658 * config/hpux11.opt (pthread): New Driver option.
13659 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13660 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13662 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13664 * config/ia64/vms.opt: New.
13665 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13667 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13670 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13671 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13672 generator functions.
13673 (vsx_floatuns<VSi><mode>2): Ditto.
13674 (vsx_fix_trunc<mode><VSi>2): Ditto.
13675 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13677 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13679 * config/i386/djgpp.opt (posix): New Driver option.
13681 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13683 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13684 Move to the unsupported targets list.
13686 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13688 PR rtl-optimization/47525
13689 * df-scan.c: Update copyright years.
13690 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13691 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13693 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13695 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13696 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13697 (ASM_OUTPUT_ASCII): Remove.
13698 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13700 2011-02-02 Jeff Law <law@redhat.com>
13702 PR middle-end/47543
13703 * reload.c (find_reloads_address): Handle reg+d address where both
13704 components are invalid by reloading the entire address.
13706 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13707 Richard Guenther <rguenther@suse.de>
13709 PR tree-optimization/40979
13711 * passes.c (init_optimization_passes): After LIM call copy_prop
13712 and DCE to clean up.
13713 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13715 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13717 PR tree-optimization/47576
13718 PR tree-optimization/47555
13719 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13720 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13721 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13722 * tree-scalar-evolution.c (follow_ssa_edge): Use
13723 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13725 2011-02-02 Richard Guenther <rguenther@suse.de>
13727 PR tree-optimization/47566
13728 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13730 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13734 * tree-inline.c (declare_return_variable): Remove unused caller
13739 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13740 * cfgexpand.c (account_used_vars_for_block): Use them.
13741 * tree-nrv.c (tree_nrv): Likewise.
13742 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13743 (dump_scope_block): Likewise.
13744 (remove_unused_locals): Likewise.
13748 * tree-inline.c (declare_return_variable): Add result decl to
13749 local decls only once.
13750 * gimple-low.c (record_vars_into): Mark newly-created variables
13753 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13759 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13761 (no_real_insns_p, schedule_block, set_priorities): Drop special
13762 treatment of boundary debug insns.
13763 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13764 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13765 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13766 (BOUNDARY_DEBUG_INSN_P): Likewise.
13767 (SCHEDULE_DEBUG_INSN_P): Likewise.
13768 * sched-rgn.c (init_ready_list): Drop special treatment of
13769 boundary debug insns.
13770 * final.c (rest_of_clean_state): Clear notes' BB.
13772 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13774 * config/openbsd.opt (assert=): New Driver option.
13776 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13778 * config/i386/nto.opt: New.
13779 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13781 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13783 * config/i386/netware.opt: New.
13784 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13786 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13788 * config/interix.opt (posix): New Driver option.
13790 2011-02-01 DJ Delorie <dj@redhat.com>
13792 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13794 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13797 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13799 PR tree-optimization/47561
13800 * toplev.c (process_options): Print the Graphite flags. Add
13801 flag_loop_flatten to the list of options requiring Graphite.
13803 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13805 * config/i386/cygming.opt (posix): New Driver option.
13807 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13809 * config/arm/vxworks.opt: New.
13810 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13812 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13814 * config/alpha/elf.opt: New.
13815 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13816 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13818 2011-02-01 Richard Guenther <rguenther@suse.de>
13820 PR tree-optimization/47559
13821 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13822 store-motion on references that can throw.
13824 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13826 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13827 * tree-pass.h (TDF_CSELIB): New macro.
13828 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13829 cselib_lookup): Check for it rather than for TDF_DETAILS.
13831 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13834 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13835 is HOST_BIT_BUCKET.
13837 * opts.c (finish_options): Don't add x_aux_base_name if it is
13840 2011-02-01 Richard Guenther <rguenther@suse.de>
13842 PR tree-optimization/47555
13844 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13846 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13848 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13851 * config/lm32/t-lm32: Add multilib for all CPU options.
13853 2011-02-01 Richard Guenther <rguenther@suse.de>
13855 PR tree-optimization/47541
13856 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13857 sure to have a field at offset zero.
13859 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13861 * config/arc/arc.opt (EB, EL): New Driver options.
13863 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13865 * config/alpha/osf5.opt: New.
13866 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13868 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13870 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13872 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13874 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13875 -floop-interchange.
13876 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13877 is an alias of -floop-interchange and that it requires the
13878 Graphite infrastructure.
13879 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13880 flag_loop_interchange based on the value of flag_tree_loop_linear.
13882 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13883 Richard Guenther <rguenther@suse.de>
13885 PR tree-optimization/47538
13886 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13887 type instead of r1type, except for comparisons. For right
13888 shifts and comparisons punt if there are mismatches in
13889 sizetype vs. non-sizetype types.
13891 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13893 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13896 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13898 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13900 * configure: Regenerate.
13902 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13904 * configure.ac (gcc_cv_ld_static_option): Define.
13905 (gcc_cv_ld_dynamic_option): Define.
13906 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13908 (HAVE_LD_STATIC_DYNAMIC): Update message.
13909 (LD_STATIC_OPTION): Define.
13910 (LD_DYNAMIC_OPTION): Define.
13911 * configure: Regenerate.
13912 * config.in: Regenerate.
13913 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13914 HAVE_LD_STATIC_DYNAMIC]: Use them.
13916 2011-01-31 Nick Clifton <nickc@redhat.com>
13918 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13919 registers inside interrupt handlers if the handler is not a leaf
13922 2011-01-31 Nick Clifton <nickc@redhat.com>
13924 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13925 reg_renumber returning an INVALID_REGNUM.
13927 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13930 * doc/install.texi: Document host options discarded when cross
13931 configuring target libraries.
13933 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13936 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13939 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13941 (no_real_insns_p, schedule_block, set_priorities): Drop special
13942 treatment of boundary debug insns.
13943 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13944 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13945 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13946 (BOUNDARY_DEBUG_INSN_P): Likewise.
13947 (SCHEDULE_DEBUG_INSN_P): Likewise.
13948 * sched-rgn.c (init_ready_list): Drop special treatment of
13949 boundary debug insns.
13950 * final.c (rest_of_clean-state): Clear notes' BB.
13952 2011-01-31 Alan Modra <amodra@gmail.com>
13954 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13955 toc relative expressions as we do in print_operand_address.
13957 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13959 * doc/extend.texi: Follow spelling conventions.
13960 * doc/invoke.texi: Fix a typo.
13962 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13964 * config/hpux11.opt: New.
13965 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13966 ia64*-*-hpux*): Use hpux11.opt.
13968 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13970 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13973 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13975 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13978 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13980 * doc/install.texi (Binaries): Remove outdated reference for
13981 Motorola 68HC11/68HC12 downloads.
13983 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13985 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13988 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13991 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13994 2011-01-28 Ahmad Sharif <asharif@google.com>
13996 * value-prof.c (check_counter): Corrected error message.
13998 2011-01-29 Jie Zhang <jie@codesourcery.com>
14000 * config/arm/arm.c (arm_legitimize_reload_address): New.
14001 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14002 arm_legitimize_reload_address.
14003 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14005 2011-01-28 Ian Lance Taylor <iant@google.com>
14007 * godump.c (go_define): Ignore macros whose definitions include
14008 two adjacent operands.
14010 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14013 * varasm.c (force_const_mem): Store copy of x in desc->constant
14014 instead of x itself.
14015 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14016 itself into REG_EQUAL note.
14018 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14020 * config/freebsd.opt (posix, rdynamic): New Driver options.
14022 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14024 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14025 -Bstatic/-Bdynamic.
14026 * configure: Regenerate.
14028 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14030 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14031 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14033 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14035 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14036 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14037 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14038 (s390_preferred_reload_class): Make static. Change return and
14039 'rclass' argument type to reg_class_t.
14041 2011-01-27 Jan Hubicka <jh@suse.cz>
14043 PR middle-end/46949
14044 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14045 (process_function_and_variable_attributes): Check defined weakrefs.
14047 2011-01-27 Martin Jambor <mjambor@suse.cz>
14049 PR tree-optimization/47228
14050 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14051 build_ref_for_offset.
14053 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14055 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14057 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14059 PR rtl-optimization/46856
14060 * postreload.c (reload_combine_recognize_const_pattern): Do not
14061 separate cc0 setter and user on cc0 targets.
14063 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14066 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14067 passed a VOID_TYPE expression, immediately emit an error and
14068 return error_mark_node.
14070 2011-01-26 Jeff Law <law@redhat.com>
14072 PR rtl-optimization/47464
14073 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14074 rather than may_trap_p as needed.
14076 2011-01-26 DJ Delorie <dj@redhat.com>
14078 PR rtl-optimization/46878
14079 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14080 setter/user dependency as well.
14082 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14084 PR rtl-optimization/44469
14085 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14086 after removing trivially dead basic blocks.
14088 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14090 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14091 * config/frv/frv.h (LINK_SPEC): Likewise.
14092 * config/i386/netware.h (LINK_SPEC): Likewise.
14093 * config/m68k/linux.h (ASM_SPEC): Likewise.
14094 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14095 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14096 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14097 * config/sparc/linux.h (ASM_SPEC): Likewise.
14098 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14099 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14101 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14103 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14104 * config/frv/frv.h (ASM_SPEC): Likewise.
14105 * config/m68k/linux.h (ASM_SPEC): Likewise.
14106 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14107 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14108 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14109 * config/sparc/linux.h (ASM_SPEC): Likewise.
14110 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14111 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14113 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14115 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14116 * config/frv/frv.h (LINK_SPEC): Likewise.
14117 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14119 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14121 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14122 * config/frv/frv.h (ASM_SPEC): Likewise.
14123 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14124 * config/m68k/linux.h (ASM_SPEC): Likewise.
14125 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14126 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14127 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14128 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14129 * config/sparc/linux.h (ASM_SPEC): Likewise.
14130 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14131 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14132 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14134 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14137 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14139 (vec_extract_evenodd_help): Ditto.
14140 (vec_extract_evenv4hi): Ditto.
14141 (vec_extract_oddv4hi): Ditto.
14142 (vec_interleave_lowv2si): Ditto.
14143 (vec_interleave_highv2si): Ditto.
14144 (vec_extract_evenv2si): Ditto.
14145 (vec_extract_oddv2si: Ditto.
14146 (vec_pack_trunc_v2si): Ditto.
14148 2011-01-22 Jan Hubicka <jh@suse.cz>
14151 * cgraph.h (cgraph_local_info): New field can_change_signature.
14152 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14153 signature can change.
14154 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14156 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14157 (cgraph_function_versioning): We can not change signature of functions
14158 that don't allow that.
14159 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14160 (lto_input_node): Likewise.
14161 * ipa-inline.c (compute_inline_parameters): Compute
14162 local.can_change_signature.
14163 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14164 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14165 functions that can not change signature.
14166 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14167 init_cumulative_args): Do not use local calling conventions
14168 for functions that can not change signature.
14170 2011-01-22 Jan Hubicka <jh@suse.cz>
14172 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14174 2011-01-26 Richard Guenther <rguenther@suse.de>
14176 PR tree-optimization/47190
14177 * cgraphunit.c (process_common_attributes): New function.
14178 (process_function_and_variable_attributes): Use it.
14180 2011-01-26 Richard Guenther <rguenther@suse.de>
14183 * cgraphbuild.c (record_eh_tables): Record reference to personality
14186 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14189 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14190 non-debug insns from moving up.
14192 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14195 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14196 t-dlldir{,-x} fragment for build and add it to tmake_file.
14197 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14198 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14199 * config/i386/t-dlldir: New file.
14200 (SHLIB_DLLDIR): Define.
14201 * config/i386/t-dlldir-x: New file.
14202 (SHLIB_DLLDIR): Define.
14203 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14204 (SHLIB_INSTALL): Use it.
14206 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14209 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14210 lower bound of the allowed Thumb-2 coprocessor load/store
14211 index range to -256. Add explaining comment.
14213 2011-01-25 Ian Lance Taylor <iant@google.com>
14215 * godump.c (go_define): Improve lexing of macro expansion to only
14216 accept expressions which match Go spec.
14218 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14221 * tree.c (handle_dll_attribute): Handle it.
14222 * doc/extend.texi (@item dllexport): Mention it.
14223 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14225 2011-01-25 Ian Lance Taylor <iant@google.com>
14227 PR tree-optimization/26854
14228 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14229 (decl_jump_unsafe): Move higher in file, with no other change.
14230 (bind): Set has_jump_unsafe_decl if appropriate.
14231 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14232 (check_earlier_gotos): Likewise.
14233 (c_check_switch_jump_warnings): Likewise.
14235 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14237 * doc/invoke.texi (Warning Options): Add missing hyphen.
14238 (-fprofile-dir): Minor grammatical fixes.
14239 (-fbranch-probabilities): Likewise.
14241 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14245 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14247 (no_real_insns_p, schedule_block, set_priorities): Drop special
14248 treatment of boundary debug insns.
14249 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14250 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14251 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14252 (BOUNDARY_DEBUG_INSN_P): Likewise.
14253 (SCHEDULE_DEBUG_INSN_P): Likewise.
14254 * sched-rgn.c (init_ready_list): Drop special treatment of
14255 boundary debug insns.
14256 * final.c (rest_of_clean-state): Clear notes' BB.
14258 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14260 * Makefile.in (LAMBDA_H): Removed.
14261 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14262 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14263 lambda-trans.o, and tree-loop-linear.o.
14264 (lto-symtab.o): Remove dependence on LAMBDA_H.
14265 (tree-loop-linear.o): Remove rule.
14266 (lambda-mat.o): Same.
14267 (lambda-trans.o): Same.
14268 (lambda-code.o): Same.
14269 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14270 (tree-vect-slp.o): Same.
14271 * hwint.h (gcd): Moved here.
14272 (least_common_multiple): Same.
14273 * lambda-code.c: Removed.
14274 * lambda-mat.c: Removed.
14275 * lambda-trans.c: Removed.
14276 * lambda.h: Removed.
14277 * tree-loop-linear.c: Removed.
14278 * lto-symtab.c: Do not include lambda.h.
14279 * omega.c (gcd): Removed.
14280 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14281 * tree-data-ref.c (print_lambda_vector): Moved here.
14282 (lambda_vector_copy): Same.
14283 (lambda_matrix_copy): Same.
14284 (lambda_matrix_id): Same.
14285 (lambda_vector_first_nz): Same.
14286 (lambda_matrix_row_add): Same.
14287 (lambda_matrix_row_exchange): Same.
14288 (lambda_vector_mult_const): Same.
14289 (lambda_vector_negate): Same.
14290 (lambda_matrix_row_negate): Same.
14291 (lambda_vector_equal): Same.
14292 (lambda_matrix_right_hermite): Same.
14293 * tree-data-ref.h: Do not include lambda.h.
14294 (lambda_vector): Moved here.
14295 (lambda_matrix): Same.
14296 (dependence_level): Same.
14297 (lambda_transform_legal_p): Removed declaration.
14298 (lambda_collect_parameters): Same.
14299 (lambda_compute_access_matrices): Same.
14300 (lambda_vector_gcd): Same.
14301 (lambda_vector_new): Same.
14302 (lambda_vector_clear): Same.
14303 (lambda_vector_lexico_pos): Same.
14304 (lambda_vector_zerop): Same.
14305 (lambda_matrix_new): Same.
14306 * tree-flow.h (least_common_multiple): Removed declaration.
14307 * tree-parloops.c (lambda_trans_matrix): Moved here.
14308 (LTM_MATRIX): Same.
14309 (LTM_ROWSIZE): Same.
14310 (LTM_COLSIZE): Same.
14311 (LTM_DENOMINATOR): Same.
14312 (lambda_trans_matrix_new): Same.
14313 (lambda_matrix_vector_mult): Same.
14314 (lambda_transform_legal_p): Same.
14315 * tree-pass.h (pass_linear_transform): Removed declaration.
14316 * tree-ssa-loop.c (tree_linear_transform): Removed.
14317 (gate_tree_linear_transform): Removed.
14318 (pass_linear_transform): Removed.
14319 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14320 flag_loop_interchange.
14322 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14324 PR tree-optimization/47265
14325 PR tree-optimization/47443
14326 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14327 if name still has some uses.
14329 2011-01-25 Martin Jambor <mjambor@suse.cz>
14331 PR tree-optimization/47382
14332 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14333 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14335 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14337 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14338 sjlj_except_unwind_info.
14340 2011-01-25 Richard Guenther <rguenther@suse.de>
14342 PR tree-optimization/47426
14343 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14344 visible functions results escape.
14346 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14349 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14350 (arm_get_frame_offsets): Use it.
14352 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14353 Jakub Jelinek <jakub@redhat.com>
14355 PR tree-optimization/47271
14356 * tree-if-conv.c (bb_postdominates_preds): New.
14357 (if_convertible_bb_p): Call bb_postdominates_preds.
14358 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14359 (predicate_scalar_phi): Call bb_postdominates_preds.
14361 2011-01-25 Nick Clifton <nickc@redhat.com>
14363 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14364 * config/rx/rx.c (rx_function_value): Likewise.
14365 (rx_promote_function_mode): Likewise.
14366 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14367 in order to make it legitimate.
14368 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14369 make sure that the first operand is the same as the result register.
14370 (addsi3_unspec): Delete.
14371 (subdi3): Do not accept immediate operands.
14372 (subdi3_internal): Likewise.
14374 2011-01-25 Jeff Law <law@redhat.com>
14376 PR rtl-optimization/37273
14377 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14378 handle them like argument loads from stack slots. Do not double
14379 count memory for memory constants and argument loads from stack slots.
14381 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14383 PR tree-optimization/47427
14384 PR tree-optimization/47428
14385 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14386 coalesce if the new root var would be TREE_READONLY.
14388 2011-01-25 Richard Guenther <rguenther@suse.de>
14390 PR middle-end/47414
14391 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14392 correct type for TBAA.
14394 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14396 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14397 (close_phi_written_to_memory): Call for_each_index with
14398 dr_indices_valid_in_loop.
14400 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14402 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14403 when it is initialized.
14405 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14407 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14408 call to graphite_find_data_references_in_stmt.
14409 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14410 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14411 call to graphite_find_data_references_in_stmt.
14412 (analyze_drs_in_stmts): Same.
14413 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14414 in which the scalar analysis of indices is performed.
14415 (create_data_ref): Same. Update call to dr_analyze_indices.
14416 (find_data_references_in_stmt): Update call to create_data_ref.
14417 (graphite_find_data_references_in_stmt): Same.
14418 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14420 (create_data_ref): Same.
14421 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14422 call to create_data_ref.
14424 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14426 * graphite-sese-to-poly.c (build_poly_scop): Move
14427 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14429 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14431 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14432 VAR_DECL, PARM_DECL, and RESULT_DECL.
14434 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14436 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14437 in a reduction PBB.
14438 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14439 that have already been marked as PBB_IS_REDUCTION.
14441 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14443 * graphite-scop-detection.c (same_close_phi_node): New.
14444 (remove_duplicate_close_phi): New.
14445 (make_close_phi_nodes_unique): New.
14446 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14448 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14450 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14451 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14452 of both data references to be the same.
14454 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14456 * graphite-dependences.c (build_lexicographical_constraint): Remove
14457 the gdim parameter.
14458 (build_lexicographical_constraint): Adjust call to
14459 ppl_powerset_is_empty.
14460 (dependence_polyhedron): Same.
14461 (graphite_legal_transform_dr): Same.
14462 (graphite_carried_dependence_level_k): Same.
14463 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14465 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14467 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14469 * graphite-sese-to-poly.c
14470 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14471 (close_phi_written_to_memory): New.
14472 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14475 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14477 * doc/install.texi: Update the expected version number of PPL to 0.11.
14478 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14479 #if PPL_VERSION_MINOR < 11.
14481 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14483 * graphite-dependences.c: Include graphite-cloog-util.h.
14484 (new_poly_ddr): Inlined into dependence_polyhedron.
14485 (free_poly_ddr): Moved close by new_poly_ddr.
14486 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14487 Early return NULL when ppl_powerset_is_empty returns true.
14488 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14489 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14490 (graphite_legal_transform_dr): Call new_poly_ddr.
14491 (graphite_carried_dependence_level_k): Same.
14492 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14493 (dot_transformed_deps_stmt_1): Removed.
14494 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14495 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14496 (dot_deps_1): Call dot_deps_2.
14497 * Makefile.in (graphite-dependences.o): Add missing dependence on
14498 graphite-cloog-util.h.
14500 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14502 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14503 (build_lexicographical_constraint): Same.
14504 (dependence_polyhedron_1): Same.
14505 (graphite_legal_transform_dr): Same.
14506 (graphite_carried_dependence_level_k): Same.
14507 * graphite-ppl.c (ppl_powerset_is_empty): New.
14508 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14509 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14511 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14513 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14514 the "a followed by b" relation and document it.
14516 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14518 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14519 iteration when the bag of constraints is empty.
14521 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14523 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14525 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14527 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14528 nest and two loop depths as parameters.
14529 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14530 lst_perfect_nestify.
14532 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14534 * graphite-dependences.c (print_pddr): Call
14535 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14537 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14539 * graphite-ppl.c (debug_gmp_value): New.
14540 * graphite-ppl.h (debug_gmp_value): Declared.
14542 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14544 * doc/install.texi: Document availability of cloog-0.16.
14546 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14548 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14549 invalid postdominance info.
14551 2011-01-24 Jan Hubicka <jh@suse.cz>
14554 * doc/extend.texi (weak pragma): Drop claim that it must
14555 appear before definition.
14556 * varasm.c (merge_weak, declare_weak): Only sanity check
14557 that DECL is not output at a time it is declared weak.
14559 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14561 * machmode.def: Fixed comments.
14563 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14565 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14567 2011-01-24 Paul Koning <ni1d@arrl.net>
14569 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14572 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14575 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14576 (block_info): Add scanned and prev.
14577 (move_or_delete_vzeroupper_2): Return if the basic block
14578 has been scanned and the upper 128bit state is unchanged
14579 from the last scan.
14580 (move_or_delete_vzeroupper_1): Return true if the exit
14582 (move_or_delete_vzeroupper): Visit basic blocks using the
14583 work-list based algorithm based on vt_find_locations in
14586 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14588 2011-01-24 Nick Clifton <nickc@redhat.com>
14590 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14591 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14592 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14593 then define __v850e1__.
14594 * doc/invoke.texi: Document -mv850es.
14596 2011-01-24 Richard Henderson <rth@redhat.com>
14598 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14599 compound unordered comparisons.
14600 * config/rx/rx.c (rx_split_fp_compare): Remove.
14601 * config/rx/rx-protos.h: Update.
14602 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14603 (cbranchsf4): Don't call rx_split_fp_compare.
14604 (*cbranchsf4): Use rx_split_cbranch.
14605 (*cmpsf): Don't accept "i" constraint.
14606 (*conditional_branch): Only valid after reload.
14607 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14609 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14612 * config/rs6000/altivec.md (vector constant splitters): Add
14613 support for creating vector single precision constants if -mvsx is
14614 used and we would create the constant using Altivec primitives.
14616 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14617 Richard Sandiford <rdsandiford@googlemail.com>
14619 PR rtl-optimization/47166
14620 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14621 mechanism for PRE_MODIFY and POST_MODIFY.
14622 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14625 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14627 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14629 2011-01-22 Jan Hubicka <jh@suse.cz>
14632 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14634 2011-01-22 Jan Hubicka <jh@suse.cz>
14636 PR tree-optimization/43884
14638 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14639 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14641 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14643 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14644 * config/s390/s390.c (s390_register_move_cost,
14645 s390_memory_move_cost): New.
14646 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14648 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14650 PR middle-end/47401
14651 * except.c (sjlj_assign_call_site_values): Move setting the
14652 crtl->uses_eh_lsda flag to ...
14653 (sjlj_mark_call_sites): ... here.
14654 (sjlj_emit_function_enter): Support NULL dispatch label.
14655 (sjlj_build_landing_pads): In a function with no landing pads
14656 that still has must-not-throw regions, generate code to register
14657 a personality function with empty LSDA.
14659 2011-01-21 Richard Henderson <rth@redhat.com>
14661 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14663 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14665 * compare-elim.c: New file.
14666 * Makefile.in (OBJS-common): Add it.
14667 (compare-elim.o): New.
14668 * common.opt (fcompare-elim): New.
14669 * opts.c (default_options_table): Add OPT_fcompare_elim.
14670 * tree-pass.h (pass_compare_elim_after_reload): New.
14671 * passes.c (init_optimization_passes): Add it.
14672 * recog.h: Protect against re-inclusion.
14673 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14674 * doc/invoke.texi (-fcompare-elim): Document it.
14675 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14676 * doc/tm.texi: Rebuild.
14678 2011-01-22 Nick Clifton <nickc@redhat.com>
14680 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14681 rx_split_fp_compare.
14683 2011-01-22 Nick Clifton <nickc@redhat.com>
14685 * config/rx/rx.md (UNSPEC_CONST): New.
14686 (deallocate_and_return): Wrap the amount popped off the stack in
14687 an UNSPEC_CONST in order to stop it being rejected by
14688 -mmax-constant-size.
14689 (pop_and_return): Add a "(return)" rtx.
14690 (call): Drop the immediate operand.
14691 (call_internal): Likewise.
14692 (call_value): Likewise.
14693 (call_value_internal): Likewise.
14694 (sibcall_internal): Likewise.
14695 (sibcall_value_internal): Likewise.
14696 (sibcall): Likewise. Generate an explicit call using
14698 (sibcall_value): Likewise.
14699 (mov<>): FAIL if a constant operand is not legitimate.
14700 (addsi3_unpsec): New pattern.
14702 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14703 (ok_for_max_constant): New function.
14704 (gen_safe_add): New function.
14705 (rx_expand_prologue): Use gen_safe_add.
14706 (rx_expand_epilogue): Likewise.
14707 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14710 2011-01-21 Jeff Law <law@redhat.com>
14712 PR tree-optimization/47053
14713 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14714 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14715 statements are deleted.
14716 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14717 is nonempty, then purge dead edges and cleanup the CFG.
14719 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14722 Temporarily revert:
14723 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14725 * tree-dfa.c (create_var_ann): Mark variable as used.
14727 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14729 PR middle-end/45566
14730 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14731 notes from other section in hot/cold partitioning even if
14732 last_action is -3. Increment call_site_base.
14734 PR rtl-optimization/47366
14735 * fwprop.c (forward_propagate_into): Return bool. If
14736 any changes are made, -fnon-call-exceptions is used and
14737 REG_EH_REGION note is present, call purge_dead_edges
14738 and return true if it purged anything.
14739 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14740 any EH edges were purged.
14742 2011-01-21 Jeff Law <law@redhat.com>
14744 PR rtl-optimization/41619
14745 * caller-save.c (setup_save_areas): Break out code to determine
14746 which hard regs are live across calls by examining the reload chains
14747 so that it is always used.
14748 Eliminate code which checked REG_N_CALLS_CROSSED.
14750 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14752 PR tree-optimization/47355
14753 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14754 NOP has non-debug uses beyond PHIs in new_bb.
14756 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14759 * cfgexpand.c (account_used_vars_for_block): Only account vars
14760 that are annotated as used.
14761 (estimated_stack_frame_size): Don't set TREE_USED.
14762 * tree-dfa.c (create_var_ann): Mark variable as used.
14764 2011-01-21 Richard Guenther <rguenther@suse.de>
14766 PR middle-end/47395
14767 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14769 2011-01-21 Richard Guenther <rguenther@suse.de>
14771 PR tree-optimization/47365
14772 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14773 (vn_reference_lookup_pieces): Adjust.
14774 (vn_reference_lookup): Likewise.
14775 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14776 (vn_reference_lookup_3): Only look through kills if in
14777 VN_WALKREWRITE mode.
14778 (vn_reference_lookup_pieces): Adjust.
14779 (vn_reference_lookup): Likewise.
14780 (visit_reference_op_load): Likewise.
14781 (visit_reference_op_store): Likewise.
14782 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14783 (compute_avail): Likewise.
14784 (eliminate): Likewise.
14786 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14788 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14789 DECL_IGNORED_P non-reg vars if they are used.
14791 PR tree-optimization/47391
14792 * varpool.c (const_value_known_p): Return false if
14795 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14798 * config/i386/i386.c (ix86_local_alignment): Handle
14799 case for va_list_type_node is nil.
14800 (ix86_canonical_va_list_type): Likewise.
14802 2011-01-21 Alan Modra <amodra@gmail.com>
14804 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14805 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14807 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14809 * config/arm/arm.md (define_attr type): Rename f_load
14810 and f_store to f_fpa_load and f_fpa_store. Update.
14811 (write_conflict): Deal with rename fallout.
14812 (*push_fp_multi): Likewise.
14813 * config/arm/fpa.md (f_load): Use f_fpa_load.
14814 (f_store): Use f_fpa_store.
14815 (*movsf_fpa): Likewise.
14816 (*movdf_fpa): Likewise.
14817 (*movxf_fpa): Likewise.
14818 (*thumb2_movsf_fpa): Likewise.
14819 (*thumb2_movdf_fpa): Likewise.
14820 (*thumb2_movxf_fpa): Likewise.
14821 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14822 f_loadd and f_stored.
14823 (*thumb2_movdi_vfp): Likewise.
14824 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14825 (*thumb2_movsi_vfp): Likewise.
14826 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14827 Use f_loads instead of f_load.
14828 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14830 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14832 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14833 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14834 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14835 (xtensa_mode_dependent_address_p): New function.
14836 (constantpool_address_p): Make static. Change return type to bool.
14837 Change argument type to const_rtx. Use CONST_INT_P predicate.
14839 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14842 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14844 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14847 * cfgexpand.c (expand_debug_expr): Instead of generating
14848 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14851 2011-01-20 Richard Guenther <rguenther@suse.de>
14853 PR middle-end/47370
14854 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14855 the pointer operand of MEM_REFs.
14857 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14859 PR tree-optimization/46130
14860 * ipa-split.c (consider_split): If return_bb contains non-virtual
14861 PHIs other than for retval or if split_function would not adjust it,
14864 2011-01-20 Richard Guenther <rguenther@suse.de>
14866 PR tree-optimization/47167
14867 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14868 Revert previous change, only avoid enumeral type changes.
14870 2011-01-19 Mike Stump <mikestump@comcast.net>
14872 * doc/tm.texi.in (BRANCH_COST): Englishify.
14873 * doc/tm.texi (BRANCH_COST): Likewise.
14875 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14878 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14879 (gen_scheduled_generic_parms_dies): New functions.
14880 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14881 generation for the end of CU compilation.
14882 (dwarf2out_finish): Generate template parameters DIEs here.
14884 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14887 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14888 debug bind stmt on merge edges.
14890 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14894 * function.c (instantiate_expr): Instantiate incoming rtl of
14895 implicit arguments, and recurse on VALUE_EXPRs.
14896 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14897 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14899 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14901 * c-parser.c (c_parser_for_statement): Initialize
14902 collection_expression.
14904 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14906 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14908 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14910 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14911 (LINK_SHLIB_SPEC): Don't use %(link_path).
14912 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14914 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14916 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14917 (NO_SHARED_LIB_SUPPORT): Remove.
14918 (LINK_SHLIB_SPEC): Remove one conditional definition.
14920 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14922 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14924 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14925 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14926 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14927 %{call_shared} and conditionals on these options not being passed.
14928 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14931 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14933 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14936 * ipa-split.c: Spelling fixes.
14938 2011-01-19 Richard Henderson <rth@redhat.com>
14940 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14941 (*mulsi3): Likewise.
14943 * longlong.h [__mn10300__] (count_leading_zeros): New.
14944 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14945 [__mn10300__] (add_ssaaaa, subddmmss): New.
14946 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14947 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14949 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14951 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14953 2011-01-19 Richard Henderson <rth@redhat.com>
14955 * config/mn10300/mn10300.md (addsi3_flags): New.
14956 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14957 (subsi3_flags, subc_internal, subdi3): New.
14958 (subdi3_internal, *subdi3_degenerate): New.
14959 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14961 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14962 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14963 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14964 * config/mn10300/mn10300-protos.h: Update.
14965 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14966 (return_ret): Likewise. Rename from return_internal_regs.
14967 (return_internal): Remove.
14969 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14970 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14971 (mn10300_legitimate_constant_p): Likewise.
14972 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14973 (mn10300_frame_size): New.
14974 (mn10300_expand_prologue): Use it.
14975 (mn10300_expand_epilogue): Likewise.
14976 (mn10300_initial_offset): Likewise.
14977 * config/mn10300/mn10300-protos.h: Update.
14978 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14979 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14980 (prologue, epilogue, return_internal): Tidy output code.
14981 (mn10300_store_multiple_operation, return): Likewise.
14982 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14983 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14984 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14985 (load_pic, am33_load_pic): New.
14986 (mn10300_load_pic0, mn10300_load_pic1): New.
14988 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14989 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14990 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14991 (cc_flags_for_mode, cc_flags_for_code): New.
14992 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14993 overflow flag is not valid. Validate that the flags we need
14994 for the comparison are valid.
14995 (mn10300_output_cmp): Remove.
14996 (mn10300_output_add): New.
14997 (mn10300_select_cc_mode): Use cc_flags_for_code.
14998 (mn10300_split_cbranch): New.
14999 (mn10300_match_ccmode): New.
15000 (mn10300_split_and_operand_count): New.
15001 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15003 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15004 (addsi3): ... here. Use mn10300_output_add.
15005 (*addsi3_flags): New.
15006 (*am33_subsi3, *mn10300_subsi3): Merge...
15007 (subsi3): ... here. Use attribute isa.
15008 (*subsi3_flags): New.
15009 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15011 (*am33_andsi3, *mn10300_andsi3): Merge...
15012 (andsi3): ... here.
15013 (*andsi3_flags): New.
15014 (andsi3 splitters): New.
15015 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15016 (iorsi3): ... here.
15017 (*iorsi3_flags): New.
15018 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15019 (xorsi3): ... here.
15020 (*xorsi3_flags): New.
15021 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15022 (one_cmplsi2): ... here.
15023 (*one_cmplsi2_flags): New.
15024 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15025 instead of "dax" in constraints. Use mn10300_split_cbranch.
15026 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15027 use matching constraints to eliminate a self-comparison.
15028 (*integer_conditional_branch): Rename from integer_conditional_branch.
15029 Use int_mode_flags to match CC_REG.
15030 (*cbranchsi4_btst, *btstsi): New.
15031 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15032 mn10300_split_cbranch.
15033 (*am33_cmpsf): Rename from am33_cmpsf.
15034 (*float_conditional_branch): Rename from float_conditional_branch.
15035 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15036 (zero_extendqisi2): ... here.
15037 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15038 (zero_extendhisi2): ... here.
15039 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15040 (extendqisi2): ... here.
15041 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15042 (extendhisi2): ... here.
15043 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15044 (ashlsi3): ... here.
15045 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15046 (lshrsi3): ... here.
15047 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15048 (ashrsi3): ... here.
15049 (consecutive add peephole): Remove.
15050 * config/mn10300/predicates.md (label_ref_operand): New.
15051 (int_mode_flags): New.
15052 (CCZN_comparison_operator): New.
15054 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15055 (throughput_42_latency_43): New reservation.
15056 (mulsidi3, umulsidi3): New expanders.
15057 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15058 the MDR register to allocation; separately allocate the low and
15059 high parts of the DImode result.
15060 (umulsidi3_internal): Similarly.
15061 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15062 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15063 (udivsi3, umodsi3): Remove.
15064 (udivmodsi4, divmodsi4): New expanders.
15065 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15066 (*divmodsi4): Simiarly.
15067 (ext_internal): New.
15069 * config/mn10300/constraints.md ("z"): New constraint.
15070 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15071 (FIXED_REGISTERS): Don't fix MDR.
15072 (CALL_USED_REGSITERS): Reformat nicely.
15073 (REG_ALLOC_ORDER): Add MDR.
15074 (enum regclass): Add MDR_REGS.
15075 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15076 (IRA_COVER_CLASSES): Add MDR_REGS.
15077 (REGNO_REG_CLASS): Handle MDR_REG.
15078 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15079 (mn10300_register_move_cost): Likewise.
15080 * config/mn10300/mn10300.md (MDR_REG): New.
15081 (*movsi_internal): Handle moves to/from MDR_REGS.
15083 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15085 (mn10300_secondary_reload): Tidy combination reload classes.
15086 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15087 addresses for AM33. Allow symbolic offsets for reg+imm.
15088 (mn10300_regno_in_class_p): New.
15089 (mn10300_legitimize_reload_address): New.
15090 * config/mn10300/mn10300.h (enum reg_class): Remove
15091 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15092 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15093 SP_OR_GENERAL_REGS.
15094 (REG_CLASS_NAMES): Update to match.
15095 (REG_CLASS_CONTENTS): Likewise.
15096 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15097 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15098 (REGNO_IN_RANGE_P): Remove.
15099 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15100 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15101 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15102 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15103 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15104 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15105 (REGNO_GENERAL_P): New.
15106 (HAVE_POST_MODIFY_DISP): New.
15107 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15108 (LEGITIMIZE_RELOAD_ADDRESS): New.
15109 * config/mn10300/mn10300-protos.h: Update.
15111 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15112 DATA_REGS for AM33 stack-pointer destination.
15113 (mn10300_preferred_output_reload_class): Likewise.
15114 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15115 into a form appropriate for ...
15116 (TARGET_SECONDARY_RELOAD): New.
15117 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15118 * config/mn10300/mn10300-protos.h: Update.
15119 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15120 reload_insi; use the "A" constraint for the scratch; handle AM33
15121 moves of sp to non-address registers.
15123 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15124 (*movqi_internal): ... here.
15125 (*am33_movhi, *mn10300_movhi): Merge into...
15126 (*movhi_internal): ... here.
15127 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15128 as the source/destination of moves from/to SP.
15129 (movsf): Only allow for AM33-2.
15130 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15131 any integer constant constraint. Only allow for AM33-2. Tidy
15132 all of the alternative outputs.
15133 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15134 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15136 (udivsi3, umodsi3): New patterns for MN103 only.
15138 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15140 * doc/tm.texi.in: Spell out that a lack of register class unions
15142 * doc/tm.texi: Regenerate.
15144 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15146 PR rtl-optimization/47337
15147 * dce.c (check_argument_store): New function.
15148 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15150 PR tree-optimization/47290
15151 * tree-eh.c (infinite_empty_loop_p): New function.
15152 (cleanup_empty_eh): Use it.
15154 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15157 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15158 (a64_expand_widen_sum): Ditto.
15159 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15160 (vec_extract_evenodd_help): Ditto.
15161 (vec_extract_evenv4hi): Ditto.
15162 (vec_extract_oddv4hi): Ditto.
15163 (vec_extract_evenv2si): Ditto.
15164 (vec_extract_oddv2si): Ditto.
15165 (vec_extract_evenv2sf): Ditto.
15166 (vec_extract_oddv2sf): Ditto.
15167 (vec_pack_trunc_v4hi: Ditto.
15168 (vec_pack_trunc_v2si): Ditto.
15169 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15170 (vec_interleave_highv8qi): Ditto.
15172 (vec_extract_oddv8qi): Ditto.
15173 (vec_interleave_lowv4hi): Ditto.
15174 (vec_interleave_highv4hi): Ditto.
15175 (vec_interleave_lowv2si): Ditto.
15176 (vec_interleave_highv2si): Ditto.
15178 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15180 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15181 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15182 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15183 (pa_c_mode_for_suffix): New.
15184 (TARGET_EXPAND_BUILTIN): Define.
15185 (TARGET_C_MODE_FOR_SUFFIX): Define.
15186 (pa_builtins): Define.
15187 (pa_init_builtins): Register __float128 type and init new support
15189 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15190 * config/pa/quadlib.c (_U_Qfcopysign): New.
15192 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15194 PR middle-end/46894
15195 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15196 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15199 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15201 PR tree-optimization/47179
15202 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15203 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15205 2011-01-18 Richard Guenther <rguenther@suse.de>
15207 PR rtl-optimization/47216
15208 * emit-rtl.c: Include tree-flow.h.
15209 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15210 of replicating it with different semantics.
15211 * Makefile.in (emit-rtl.o): Adjust.
15213 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15215 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15216 (cortex_a9_dp): Handle neon types correctly.
15218 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15220 PR rtl-optimization/47299
15221 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15222 subtarget. Use normal multiplication if both operands are constants.
15223 * expmed.c (expand_widening_mult): Don't try to optimize constant
15224 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15227 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15229 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15230 spacing after 'e.g.', typos, comma, hyphenation.
15232 2011-01-17 Richard Henderson <rth@redhat.com>
15234 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15235 (rx_restricted_mem_operand): New.
15236 (rx_shift_operand): Use register_operand.
15237 (rx_source_operand, rx_compare_operand): Likewise.
15238 * config/rx/rx.md (addsi3_flags): New expander.
15239 (adddi3): Rewrite as expander.
15240 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15241 (subsi3_flags): New expander.
15242 (subdi3): Rewrite as expander.
15243 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15245 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15246 (rx_init_builtins): Remove sat builtin.
15247 (rx_expand_builtin): Likewise.
15248 * config/rx/rx.md (ssaddsi3): New.
15249 (*sat): Rename from sat. Represent the CC_REG input.
15251 * config/rx/predicates.md (rshift_operator): New.
15252 * config/rx/rx.c (rx_expand_insv): Remove.
15253 * config/rx/rx-protos.h: Update.
15254 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15255 operand to the canonical position.
15256 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15257 (*bitclr, *bitclr_in_memory): Similarly.
15258 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15259 (insv): Retain the zero_extract in the expansion.
15261 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15262 (bswaphi2, bitinvert, revw): Likewise.
15264 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15265 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15266 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15267 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15268 (bitset, bitset_in_memory): Likewise.
15269 (bitinvert, bitinvert_in_memory): Likewise.
15270 (bitclr, bitclr_in_memory): Likewise.
15271 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15272 (rx_strend, rx_cmpstrn): Likewise.
15273 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15274 (bitop peep2 patterns): Remove.
15276 * config/rx/rx.c (rx_match_ccmode): New.
15277 * config/rx/rx-protos.h: Update.
15278 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15279 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15280 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15281 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15282 (fix_truncsfsi2, floatsisf2): Likewise.
15283 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15284 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15285 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15286 (*subsi3_flags, *xorsi3_flags): New.
15288 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15290 * config/rx/rx.c (rx_print_operand): Remove workaround for
15291 unsplit comparison operations.
15293 * config/rx/rx.md (movsicc): Split after reload.
15294 (*movsicc): Merge *movsieq and *movsine via match_operator.
15295 (*stcc): New pattern.
15297 * config/rx/rx.c (rx_float_compare_mode): Remove.
15298 * config/rx/rx.h (rx_float_compare_mode): Remove.
15299 * config/rx/rx.md (cstoresi4): Split after reload.
15300 (*sccc): New pattern.
15302 * config/rx/predicates.md (label_ref_operand): New.
15303 (rx_z_comparison_operator): New.
15304 (rx_zs_comparison_operator): New.
15305 (rx_fp_comparison_operator): New.
15306 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15307 Validate that the flags are set properly for the comparison.
15308 (rx_gen_cond_branch_template): Remove.
15309 (rx_cc_modes_compatible): Remove.
15310 (mode_from_flags): New.
15311 (flags_from_code): Rename from flags_needed_for_conditional.
15312 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15313 (rx_select_cc_mode): Likewise.
15314 (rx_split_fp_compare): New.
15315 (rx_split_cbranch): New.
15316 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15317 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15318 (*cbranchsf4): Similarly.
15319 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15320 match_operator and rx_split_cbranch.
15321 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15322 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15323 (*cmpsi): Rename from cmpsi.
15324 (*tstsi): Rename from tstsi.
15325 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15326 (*conditional_branch): Rename from conditional_branch.
15327 (*reveresed_conditional_branch): Remove.
15328 (b<code>): Remove expander.
15329 * config/rx/rx-protos.h: Update.
15331 * config/rx/rx.c (rx_compare_redundant): Remove.
15332 * config/rx/rx.md (cmpsi): Don't use it.
15333 * config/rx/rx-protos.h: Update.
15335 * config/rx/rx-modes.def (CC_F): New mode.
15336 * config/rx/rx.c (rx_select_cc_mode): New.
15337 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15338 * config/rx/rx-protos.h: Update.
15340 2011-01-17 Richard Henderson <rth@redhat.com>
15342 * except.c (dump_eh_tree): Fix stray ; after for statement.
15344 2011-01-17 Richard Guenther <rguenther@suse.de>
15346 PR tree-optimization/47313
15347 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15348 handling before copying the body. Properly deal with
15349 by-reference result in SSA form.
15351 2011-01-17 Ian Lance Taylor <iant@google.com>
15354 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15355 (struct_value_alias_set): Don't define.
15356 (sparc_option_override): Don't set sparc_sr_alias_set and
15357 struct_value_alias_set.
15358 (save_or_restore_regs): Use gen_frame_mem rather than calling
15360 (sparc_struct_value_rtx): Likewise.
15362 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15365 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15366 (_mm_maskstore_pd): Likewise.
15367 (_mm_maskload_ps): Likewise.
15368 (_mm_maskstore_ps): Likewise.
15369 (_mm256_maskload_pd): Change mask to __m256i.
15370 (_mm256_maskstore_pd): Likewise.
15371 (_mm256_maskload_ps): Likewise.
15372 (_mm256_maskstore_ps): Likewise.
15374 * config/i386/i386-builtin-types.def: Updated.
15375 (ix86_expand_special_args_builtin): Likewise.
15377 * config/i386/i386.c (bdesc_special_args): Update
15378 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15379 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15380 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15381 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15383 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15384 Use <avxpermvecmode> on mask register.
15385 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15387 2011-01-17 Olivier Hainque <hainque@adacore.com>
15388 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15389 Eric Botcazou <ebotcazou@adacore.com>
15392 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15393 if <= USHRT_MAX in 32-bit mode.
15395 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15397 * doc/install.texi (Configuration, Specific): Wrap long
15398 lines in examples. Allow line wrapping in long options
15399 and URLs where beneficial for PDF output.
15401 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15403 * config/mips/mips.c (mips_classify_symbol): Don't return
15404 SYMBOL_PC_RELATIVE for nonlocal labels.
15406 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15408 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15410 2011-01-15 Jan Hubicka <jh@suse.cz>
15412 PR tree-optimization/47276
15413 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15414 declarations as needed.
15416 2011-01-15 Martin Jambor <mjambor@suse.cz>
15418 * common.opt (fdevirtualize): New flag.
15419 * doc/invoke.texi (Option Summary): Document it.
15420 * opts.c (default_options_table): Add devirtualize flag.
15421 * ipa-prop.c (detect_type_change): Return immediately if
15422 devirtualize flag is not set.
15423 (detect_type_change_ssa): Likewise.
15424 (compute_known_type_jump_func): Likewise.
15425 (ipa_analyze_virtual_call_uses): Likewise.
15427 2011-01-14 Martin Jambor <mjambor@suse.cz>
15429 PR tree-optimization/45934
15430 PR tree-optimization/46302
15431 * ipa-prop.c (type_change_info): New type.
15432 (stmt_may_be_vtbl_ptr_store): New function.
15433 (check_stmt_for_type_change): Likewise.
15434 (detect_type_change): Likewise.
15435 (detect_type_change_ssa): Likewise.
15436 (compute_complex_assign_jump_func): Check for dynamic type change.
15437 (compute_complex_ancestor_jump_func): Likewise.
15438 (compute_known_type_jump_func): Likewise.
15439 (compute_scalar_jump_functions): Likewise.
15440 (ipa_analyze_virtual_call_uses): Likewise.
15441 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15443 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15445 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15446 * config/i386/i386.opt (msse5): New Alias.
15448 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15450 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15451 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15452 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15453 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15455 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15457 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15459 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15460 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15461 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15462 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15464 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15466 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15468 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15470 2011-01-14 Mike Stump <mikestump@comcast.net>
15472 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15473 * config/fr30/fr30.md: Likweise
15474 (movsi_push): Likewise.
15475 (movsi_pop): Likewise.
15476 (enter_func): Likewise.
15477 * config/moxie/moxie.md (movsi_push): Likewise.
15478 (movsi_pop): Likewise.
15480 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15482 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15483 %{no_archive} %{exact_version}.
15484 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15485 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15486 %{no_archive} %{exact_version}.
15487 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15488 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15489 * config/mips/vxworks.h: Likewise.
15491 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15493 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15495 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15497 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15498 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15500 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15502 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15505 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15507 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15509 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15510 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15512 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15513 Don't handle -shlib.
15515 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15517 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15518 (CC1_SPEC): Don't handle -profile.
15520 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15522 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15523 * config/mips/mips.h (CC1_SPEC): Likewise.
15525 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15527 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15528 * config/mips/mips.h (CC1_SPEC): Likewise.
15530 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15532 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15533 * config/m32r/linux.h (LINK_SPEC): Likewise.
15534 * config/mips/linux.h (LINK_SPEC): Likewise.
15535 * config/mips/linux64.h (LINK_SPEC): Likewise.
15536 * config/sparc/linux.h (LINK_SPEC): Likewise.
15537 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15538 LINK_SPEC): Likewise.
15539 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15541 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15543 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15545 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15547 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15549 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15550 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15552 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15554 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15556 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15558 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15559 supports -Bstatic/-Bdynamic.
15560 * configure: Regenerate.
15562 2011-01-14 Jan Hubicka <jh@suse.cz>
15563 Jack Howarth <howarth@bromo.med.uc.edu>
15566 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15567 when checking debug_info_level. Test write_symbols instead of
15568 debug_hooks->var_location when setting flag_var_tracking_uninit.
15570 2011-01-14 Richard Guenther <rguenther@suse.de>
15572 PR tree-optimization/47179
15573 * target.def (ref_may_alias_errno): New target hook.
15574 * targhooks.h (default_ref_may_alias_errno): Declare.
15575 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15576 (default_ref_may_alias_errno): New function.
15577 * target.h (struct ao_ref_s): Declare.
15578 * tree-ssa-alias.c: Include target.h.
15579 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15580 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15581 (targhooks.o): Likewise.
15582 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15583 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15585 2011-01-14 Richard Guenther <rguenther@suse.de>
15587 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15589 2011-01-14 Richard Guenther <rguenther@suse.de>
15591 PR tree-optimization/47280
15592 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15593 return CFG changes.
15594 (tree_ssa_forward_propagate_single_use_vars): Deal with
15595 CFG changes from associate_plusminus.
15597 2011-01-14 Richard Guenther <rguenther@suse.de>
15599 PR middle-end/47281
15601 2011-01-11 Richard Guenther <rguenther@suse.de>
15603 PR tree-optimization/46076
15604 * tree-ssa.c (useless_type_conversion_p): Conversions from
15605 unprototyped to empty argument list function types are useless.
15607 2011-01-14 Richard Guenther <rguenther@suse.de>
15609 PR tree-optimization/47286
15610 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15612 2011-01-14 Martin Jambor <mjambor@suse.cz>
15614 PR middle-end/46823
15615 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15617 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15619 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15620 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15621 * config/xtensa/xtensa.c (xtensa_libcall_value,
15622 xtensa_function_value_regno_p): New functions.
15623 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15625 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15628 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15630 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15631 New function prototype.
15632 * config/i386/winnt.c (i386_pe_assemble_visibility):
15633 Warn only if attribute was specified by user.
15635 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15638 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15640 (floatunsdidf2_fcfidu): Ditto.
15642 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15644 * config/s390/s390.c (print_operand_address): Replace 'error' with
15645 'output_operand_lossage'.
15646 (print_operand): Likewise.
15648 2011-01-13 Jeff Law <law@redhat.com>
15650 PR rtl-optimization/39077
15651 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15652 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15653 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15654 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15655 * gcse.c (prune_insertions_deletions): New function.
15656 (compute_pre_data): Use it.
15658 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15661 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15663 (prune_unused_types_mark): Use it.
15665 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15667 PR rtl-optimization/45352
15668 * sel-sched.c: Update copyright years.
15669 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15670 in the advancing loop when we have issued issue_rate insns.
15672 2011-01-12 Richard Henderson <rth@redhat.com>
15674 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15675 (TARGET_MD_ASM_CLOBBERS): New.
15677 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15678 (TARGET_DELEGITIMIZE_ADDRESS): New.
15680 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15681 (clzsi2, *bsch): New patterns.
15683 * config/mn10300/mn10300.md (INT): New mode iterator.
15684 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15686 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15687 flag_split_wide_types.
15689 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15690 (mn10300_trampoline_init): Rewrite without a template, an immediate
15691 load and a direct branch.
15692 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15694 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15696 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15697 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15698 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15699 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15701 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15704 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15707 2011-01-12 Jan Hubicka <jh@suse.cz>
15710 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15711 (PLUGIN_COND_CLOSE): New macro.
15712 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15714 2011-01-12 Richard Guenther <rguenther@suse.de>
15717 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15718 register variables in a MEM_REF.
15720 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15722 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15723 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15724 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15725 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15726 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15727 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15728 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15729 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15730 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15731 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15732 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15733 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15734 * config/gnu-user.h: New. Copied from linux.h.
15735 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15736 GNU_USER_TARGET_STARTFILE_SPEC.
15737 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15738 GNU_USER_TARGET_ENDFILE_SPEC.
15739 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15740 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15741 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15742 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15743 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15744 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15745 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15746 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15747 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15748 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15749 * config/arm/linux-eabi.h (CC1_SPEC): Use
15750 GNU_USER_TARGET_CC1_SPEC.
15751 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15752 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15753 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15754 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15755 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15756 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15757 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15758 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15760 2011-01-12 Richard Guenther <rguenther@suse.de>
15763 * doc/invoke.texi (ffast-math): Document it is turned on
15766 2011-01-12 Jan Hubicka <jh@suse.cz>
15768 PR tree-optimization/47233
15769 * opts.c (common_handle_option): Disable ipa-reference with profile
15772 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15774 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15777 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15779 * c-parser.c (c_lex_one_token): Updated and reindented some
15780 comments. No changes in code.
15782 2011-01-11 Ian Lance Taylor <iant@google.com>
15784 * godump.c (go_output_var): Don't output the variable if there is
15785 already a type with the same name.
15787 2011-01-11 Ian Lance Taylor <iant@google.com>
15789 * godump.c (go_format_type): Don't generate float80.
15791 2011-01-11 Richard Henderson <rth@redhat.com>
15793 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15794 declaration. Rewrite for both speed and size.
15795 (mn10300_address_cost_1): Remove.
15796 (mn10300_register_move_cost): New.
15797 (mn10300_memory_move_cost): New.
15798 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15799 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15800 extensions, shifts, BSWAP, CLZ.
15801 (mn10300_wide_const_load_uses_clr): Remove.
15802 (TARGET_REGISTER_MOVE_COST): New.
15803 (TARGET_MEMORY_MOVE_COST): New.
15804 * config/mn10300/mn10300-protos.h: Update.
15805 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15807 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15808 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15809 * config/mn10300/mn10300-protos.h: Update.
15810 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15811 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15812 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15813 (*test_int_bitfield, *test_byte_bitfield): Remove.
15814 (*bit_test, *subreg_bit_test): Remove.
15815 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15817 * config/mn10300/constraints.md ("c"): Rename from "A".
15818 ("A", "D"): New constraint letters.
15819 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15820 (fmssf4, fnmasf4, fnmssf4): Likewise.
15822 * config/mn10300/mn10300.md (isa): New attribute.
15823 (enabled): New attribute.
15825 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15826 (abssf2, negsf2): Define only for hardware fp.
15827 (sqrtsf2): Reformat.
15828 (addsf3, subsf3, mulsf3): Merge expander and insn.
15830 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15831 (DEBUGGER_AUTO_OFFSET): Remove.
15832 (DEBUGGER_ARG_OFFSET): Remove.
15834 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15835 Emit register stores with the same offsets as the hardware.
15836 (mn10300_store_multiple_operation): Don't check that the register
15837 save offsets are monotonic.
15838 * config/mn10300/mn10300-protos.h: Update.
15840 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15842 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15843 in terms of the value on the stack, not the MDR register.
15845 2011-01-11 Jan Hubicka <jh@suse.cz>
15849 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15850 (symbol_alias_set_destroy, symbol_alias_set_contains,
15851 propagate_aliases_backward): Declare.
15852 * lto-streamer-out.c (struct sets): New sturcture.
15853 (trivally_defined_alias): New function.
15854 (output_alias_pair_p): Rewrite.
15855 (output_unreferenced_globals): Fix output of alias pairs.
15856 (produce_symtab): Likewise.
15857 * ipa.c (function_and_variable_visibility): Set weak alias destination
15859 * varasm.c (symbol_alias_set_t): Remove.
15860 (symbol_alias_set_destroy): Export.
15861 (propagate_aliases_forward, propagate_aliases_backward): New functions
15863 (compute_visible_aliases): ... this one; remove.
15864 (trivially_visible_alias): New
15865 (trivially_defined_alias): New.
15866 (remove_unreachable_alias_pairs): Rewrite.
15867 (finish_aliases_1): Reorganize code checking if alias is defined.
15868 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15871 2011-01-11 Richard Guenther <rguenther@suse.de>
15873 PR tree-optimization/46076
15874 * tree-ssa.c (useless_type_conversion_p): Conversions from
15875 unprototyped to empty argument list function types are useless.
15877 2011-01-11 Richard Guenther <rguenther@suse.de>
15879 PR middle-end/45235
15880 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15881 volatile MEMs as MEM_READONLY_P.
15883 2011-01-11 Richard Guenther <rguenther@suse.de>
15885 PR tree-optimization/47239
15886 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15888 2011-01-11 Jeff Law <law@redhat.com>
15890 PR tree-optimization/47086
15891 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15892 IVs from statements that might throw.
15894 2011-01-10 Jan Hubicka <jh@suse.cz>
15897 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15899 2011-01-10 Jan Hubicka <jh@suse.cz>
15902 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15903 when correcting profile.
15905 2011-01-10 Jan Hubicka <jh@suse.cz>
15908 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15909 DECL_FINI_PRIORITY.
15910 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15911 Restore DECL_FINI_PRIORITY.
15913 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15915 * doc/gimple.texi: Fix quoting of multi-word return values in
15916 @deftypefn statements. Ensure presence of return value. Wrap
15917 overlong @deftypefn lines.
15918 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15919 descriptions of removed functions.
15920 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15921 of multi-word return value in @deftypefn statement.
15923 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15925 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15926 (Conditional Expressions, Logical Operators)
15927 (Statement and operand traversals): Do not indent smallexample
15928 code. Fix duplicate function argument in example.
15930 2011-01-10 Jeff Law <law@redhat.com>
15932 PR tree-optimization/47141
15933 * ipa-split.c (split_function): Handle case where we are
15934 returning a value and the return block has a virtual operand phi.
15936 2011-01-10 Jan Hubicka <jh@suse.cz>
15938 PR tree-optimization/47234
15939 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15940 (pass_feedback_split_functions): Declare.
15941 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15943 * ipa-split.c (gate_split_functions): Update comments; disable
15944 split-functions for profile_arc_flag and branch_probabilities.
15945 (gate_feedback_split_functions): New function.
15946 (execute_feedback_split_functions): New function.
15947 (pass_feedback_split_functions): New global var.
15949 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15952 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15953 calling gimple_call_set_cannot_inline.
15955 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15957 * config/darwin-sections.def: Remove unused section.
15959 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15962 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15964 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15967 * c-parser.c (c_parser_declaration_or_fndef): Improved
15970 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15972 * config/i386/winnt.c (i386_pe_start_function): Make sure
15973 to switch back to function's section.
15975 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15979 * plugin.c: Move include of dlfcn.h from here...
15980 * system.h: ... to here.
15982 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15984 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15986 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15987 two extra empty pages in PDF output.
15989 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15992 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15993 for error recovery purposes behave as if it was not specified so
15994 that the default type is usd.
15996 2011-01-07 Jan Hubicka <jh@suse.cz>
15998 PR tree-optmization/46469
15999 * ipa.c (function_and_variable_visibility): Clear needed flags on
16000 nodes with external decls; handle weakrefs merging correctly.
16002 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16004 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16007 2011-01-07 Jan Hubicka <jh@suse.cz>
16009 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16010 and no longer claim that gold is required for linker plugin.
16011 * configure: Regenerate.
16012 * gcc.c (PLUGIN_COND): New macro.
16013 (LINK_COMMAND_SPEC): Use it.
16014 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16015 * config.in (HAVE_LTO_PLUGIN): New.
16016 * configure.ac (--with-lto-plugin): New parameter; autodetect
16019 2011-01-07 Jan Hubicka <jh@suse.cz>
16021 PR tree-optimization/46367
16022 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16023 when we can update original.
16024 (cgraph_mark_inline_edge): Sanity check.
16025 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16027 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16029 * config/spu/spu.h (ASM_COMMENT_START): Define.
16031 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16034 * gcc.c (%>S): New.
16035 (SWITCH_KEEP_FOR_GCC): Likewise.
16036 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16037 (do_spec_1): Handle "%>".
16039 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16041 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16044 * config/i386/i386.c (ix86_delegitimize_address): If
16045 simplify_gen_subreg fails, return orig_x.
16048 * value-prof.c (gimple_stringop_fixed_value): Handle
16049 lhs of the call properly.
16051 2011-01-07 Jan Hubicka <jh@suse.cz>
16054 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16056 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16058 * target.def (function_switched_text_sections): New hook.
16059 * doc/tm.texi: Regenerated.
16060 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16061 * final.c (default_function_switched_text_sections): New.
16062 (final_scan_insn): Call function_switched_text_sections when a
16063 mid-function section change occurs.
16064 * output.h (default_function_switched_text_sections): Declare.
16065 * config/darwin-protos.h (darwin_function_switched_text_sections):
16067 * config/darwin.c (darwin_function_switched_text_sections): New.
16068 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16070 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16072 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16073 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16074 the secondary code fragment when outputting for DWARF == 2.
16076 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16078 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16079 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16081 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16082 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16084 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16087 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16088 when it is not empty.
16090 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16093 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16094 (case ${target}): Add btver1.
16095 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16096 -march=native recognize btver1 processors.
16097 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16098 btver1 def_and_undef
16099 * config/i386/i386.c (struct processor_costs btver1_cost): New
16101 (m_BTVER1): New definition.
16102 (m_AMD_MULTIPLE): Includes m_BTVER1.
16103 (initial_ix86_tune_features): Add btver1 tune.
16104 (processor_target_table): Add btver1 entry.
16105 (static const char *const cpu_names): Add btver1 entry.
16106 (software_prefetching_beneficial_p): Add btver1.
16107 (ix86_option_override_internal): Add btver1 instruction sets.
16108 (ix86_issue_rate): Add btver1.
16109 (ix86_adjust_cost): Add btver1.
16110 * config/i386/i386.h (TARGET_BTVER1): New definition.
16111 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16112 (enum processor_type): Add PROCESSOR_BTVER1.
16113 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16115 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16118 * config/i386/i386.c (legitimize_tls_address)
16119 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16120 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16121 (tls_initial_exec_64_sun): New pattern.
16123 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16125 * doc/invoke.texi (Overall Options): Improve wording and markup
16126 of the description of -wrapper.
16128 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16130 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16131 rdynamic, threads): New Driver options.
16133 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16136 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16137 if coming from .tdata.
16138 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16140 2011-01-06 Jan Hubicka <jh@suse.cz>
16143 * collect2.c (main): Do not enable LTOmode when plugin is active.
16145 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16148 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16149 --version output if supported.
16150 * configure: Regenerate.
16152 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16154 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16157 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16160 * c-convert.c (convert): When converting a complex expression
16161 other than COMPLEX_EXPR to a different complex type, ensure
16162 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16163 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16164 when converting COMPLEX_TYPE.
16166 2011-01-06 Ira Rosen <irar@il.ibm.com>
16168 PR tree-optimization/47139
16169 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16170 only the last reduction value is used outside the loop. Update
16173 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16175 * config/rtems.opt: New.
16176 * config.gcc (*-*-rtems*): Use rtems.opt.
16178 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16180 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16181 processors do not support 3DNow instructions.
16183 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16185 * config/spu/spu.c (spu_option_override): Set parameter
16186 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16188 2011-01-05 Jan Hubicka <jh@suse.cz>
16190 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16191 at the command line.
16193 2011-01-05 Martin Jambor <mjambor@suse.cz>
16196 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16197 deltas on streamed outgoing edges.
16198 (output_node_opt_summary): Output info for outgoing edges only when
16199 the node is in new parameter set.
16200 (output_cgraph_opt_summary): New parameter set, passed to the two
16201 aforementioned functions. Update its forward declaration and its
16204 2011-01-05 Tom Tromey <tromey@redhat.com>
16206 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16207 operator to c_finish_omp_atomic.
16208 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16209 (build_unary_op): Update.
16210 (build_modify_expr): Update.
16211 (build_asm_expr): Update.
16213 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16215 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16216 newly inserted insns.
16217 (pad_bb): Likewise.
16218 (spu_emit_branch_hint): Likewise.
16219 (insert_hbrp_for_ilb_runout): Likewise.
16220 (spu_machine_dependent_reorg): Call df_finish_pass after
16221 schedule_insns returns.
16223 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16225 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16227 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16229 PR tree-optimization/47005
16230 * tree-sra.c (struct access): Add 'non_addressable' bit.
16231 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16232 (decide_one_param_reduction): Return 0 if the parameter is passed by
16233 reference and one of the accesses in the group is non_addressable.
16235 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16237 PR tree-optimization/47056
16238 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16239 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16240 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16242 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16244 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16245 initializer. Skip view conversions from aggregate types.
16247 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16250 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16252 2011-01-04 Philipp Thomas <pth@suse.de>
16254 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16257 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16259 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16260 on empty epilogue sequences.
16262 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16264 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16265 non-static): New Driver options.
16267 2011-01-04 Jie Zhang <jie@codesourcery.com>
16270 * gcc.c (default_compilers[]): Set combinable field to 0
16271 for all assembly languages.
16273 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16275 * config/mips/loongson3a.md: New file.
16276 * config/mips/mips.md: Include loongson3a.md.
16277 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16280 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16282 PR middle-end/47017
16283 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16284 instead of convert_memory_address_addr_space on the base expression.
16286 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16288 * config/spu/spu.c (spu_option_override): Update error text
16289 for bad -march= / -mtune= values.
16291 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16293 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16294 if branch-hint optimization will be performed.
16296 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16298 PR tree-optimization/47148
16299 * ipa-split.c (split_function): Convert arguments to
16300 DECL_ARG_TYPE if possible.
16302 PR tree-optimization/47155
16303 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16304 when computing uns.
16306 PR rtl-optimization/47157
16307 * combine.c (try_combine): If undobuf.other_insn becomes
16308 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16309 and set *new_direct_jump_p too.
16311 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16313 PR tree-optimization/47021
16314 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16316 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16318 * gcc.c (process_command): Update copyright notice dates.
16319 * gcov.c (print_version): Likewise.
16320 * gcov-dump.c (print_version): Likewise.
16321 * mips-tfile.c (main): Likewise.
16322 * mips-tdump.c (main): Likewise.
16324 2011-01-03 Martin Jambor <mjambor@suse.cz>
16326 PR tree-optimization/46801
16327 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16328 aggregate fields start at byte boundary instead of the bit-field flag.
16330 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16333 * gcc.c (main): Revert revision 168407.
16335 2011-01-03 Martin Jambor <mjambor@suse.cz>
16337 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16339 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16341 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16342 vector optab to expand vector/scalar shift, update gimple to vector.
16344 2011-01-03 Martin Jambor <mjambor@suse.cz>
16346 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16349 2011-01-03 Martin Jambor <mjambor@suse.cz>
16351 PR tree-optimization/46984
16352 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16354 (cgraph_create_indirect_edge): Fixed line length.
16355 (cgraph_indirect_call_info): Declare.
16356 (cgraph_make_edge_direct) Update declaration.
16357 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16358 (cgraph_create_indirect_edge): Use it.
16359 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16361 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16362 the new thunk_delta representation.
16363 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16365 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16366 (ipa_read_indirect_edge_info): Likewise.
16367 * lto-cgraph.c (output_edge_opt_summary): New function.
16368 (output_node_opt_summary): Call it on all outgoing edges.
16369 (input_edge_opt_summary): New function.
16370 (input_node_opt_summary): Call it on all outgoing edges.
16372 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16375 * gcc.c (main): Don't check have_o when settting combine_inputs.
16377 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16379 * regrename.c: Add general comment describing the pass.
16380 (struct du_head): Remove 'length' field.
16381 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16382 (regrename_optimize): Do not sort chains. Rework comments, add others.
16383 Force renaming to the preferred class (if any) in the first pass and do
16384 not consider registers that belong to it in the second pass.
16385 (create_new_chain): Do not set 'length' field.
16386 (scan_rtx_reg): Likewise.
16388 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16390 PR tree-optimization/47140
16391 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16392 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16393 to bit_value_binop.
16395 PR rtl-optimization/47028
16396 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16397 parm_birth_insn instead of at the beginning of first bb.
16399 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16401 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16402 Remove the word "see" before "@pxref".
16403 * doc/rtl.texi: Remove the word "see" before "@pxref".
16405 2011-01-01 Jan Hubicka <jh@suse.cz>
16407 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16410 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16413 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16416 Copyright (C) 2011 Free Software Foundation, Inc.
16418 Copying and distribution of this file, with or without modification,
16419 are permitted in any medium without royalty provided the copyright
16420 notice and this notice are preserved.