1 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
4 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
5 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
7 (mem_loc_descriptor): Use them.
9 * var-tracking.c (create_entry_value): New function.
10 (vt_add_function_parameter): Use it.
12 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
15 Include <signal.h>, <ucontext.h>.
16 (sigill_caught): Define.
17 (sigill_hdlr): New function.
18 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
19 insns can be executed.
20 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math
22 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
24 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26 * config/t-slibgcc-darwin: Move to ...
27 * config/t-slibgcc-dummy: .. this.
29 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
30 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
31 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
32 (i[34567]86-*-rtems*): Remove extra_parts.
34 Remove i386/t-crtstuff from tmake_file.
35 (i[34567]86-*-solaris2*): Remove t-svr4,
36 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
38 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
39 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
40 sparc/t-crtfm from tmake_file.
41 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
42 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
44 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
45 * config/i386/t-nwld (SHLIB_LINK): Remove.
46 * config/i386/t-rtems-i386: Rename to ...
47 * config/i386/t-rtems: ... this.
48 ($(T)crti.o, $(T)crtn.o): Remove.
49 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
50 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
51 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
52 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
53 EXTRA_MULTILIB_PARTS): Remove.
54 * config/sparc/t-sol2-64: Likewise.
55 * config/sparc/t-sol2: Remove.
56 * config/sparc/t-crtin: Remove.
57 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
58 * config/i386/gmon-sol2.c: Remove.
59 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
60 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
61 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
62 * config/i386/sol2-gc1.asm: Remove.
63 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
64 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
65 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
66 * config/t-slibgcc-sld: Remove.
68 2011-06-01 Jakub Jelinek <jakub@redhat.com>
70 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
71 base_type_for_mode with op_mode instead of mode.
73 2011-06-01 Paul Brook <paul@cpodesourcery.com>
75 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
77 * config/arm/arm-tune.md: Regenerate.
78 * config/arm/arm-tables.opt: Regenerate.
79 * config/arm/arm.c (FL_DIV): Rename...
80 (FL_THUMB_DIV): ... to this.
82 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
83 (arm_arch_hwdiv): Remove.
84 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
85 (arm_issue_rate): Add cortexr5.
86 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
87 __ARM_ARCH_EXT_IDIV__.
88 (TARGET_IDIV): Define.
89 (arm_arch_hwdiv): Remove.
90 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
91 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
92 (divsi3, udivsi3): New patterns.
93 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
94 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
96 2011-06-01 Martin Jambor <mjambor@suse.cz>
98 * ipa-utils.c (ipa_dfs_info): New field scc_no.
99 * ipa-utils.c (searchc): Set scc_no.
101 2011-06-01 Martin Jambor <mjambor@suse.cz>
103 * ipa-utils.c (searchc_env): New field allow_overwritable.
104 (searchc): do not ignore edges to overwritable nodes if indicated
105 by env->allow_overwritable.
106 (ipa_reduced_postorder): Set env.allow_overwritable.
108 2011-06-01 Richard Guenther <rguenther@suse.de>
110 * tree.c (free_lang_data): Do not reset boolean_type_node nor
112 * lto-streamer.c (lto_record_common_node): Take node pointer,
113 do not register types.
114 (lto_preload_common_nodes): Explicitly skip preloading nodes
115 that differ between frontends.
117 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
119 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
122 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
124 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
125 parameter value for dump. Dump cost on outermost call only.
126 (rs6000_memory_move_cost): Dump cost on outermost call only.
128 2011-05-31 Jakub Jelinek <jakub@redhat.com>
130 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
131 DW_OP_GNU_convert ops.
133 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
134 cselib_preserve_constants.
135 (cselib_lookup_1): If cselib_preserve_constants,
136 a new VALUE is being created for REG and there is a VALUE for the
137 same register in wider mode, add another loc with lowpart SUBREG of
139 (cselib_subst_to_values): Handle ENTRY_VALUE.
140 * var-tracking.c (replace_expr_with_values): Return NULL for
142 * dwarf2out.c (convert_descriptor_to_signed): New function.
143 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
144 instead of two shifts.
145 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
146 the right mode if needed.
147 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
148 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
149 convert_descriptor_to_signed.
150 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
151 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
154 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
156 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
158 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
159 of X87MODEI12 and SWI48x instead of SSEMODEI24.
160 (SWI248x): New mode iterator, rename from X87MODEI.
161 (X87MODEI): Remove mode iterator.
165 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
167 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
168 * doc/invoke.texi: Document max-vartrack-expr-depth.
169 * var-tracking.c (EXPR_DEPTH): New.
170 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
172 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
174 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
175 * config/i386/sse.md: Add n to negated FMA pattern names.
177 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
179 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
181 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
183 * gengtype-state.c (read_state_params_structs): Initialize previous.
185 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
187 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
188 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
190 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
192 * config/i386/i386.md (*movtf_internal): Avoid allocating general
193 registers. Penalize F*r->o alternative to prevent partial memory
194 stalls. Slightly penalize *roF->*r alternative. Generate SSE
195 CONST_DOUBLE immediates when optimizing function for size. Do not move
196 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
197 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
198 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
199 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
201 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
203 (fp_register_operand splitters): Use fp_register_operand
204 constraint. Do not use FP_REG_P in insn condition.
205 (any_fp_register_operand splitters): Use any_fp_register_operand
206 constraint. Do not use ANY_FP_REG_P in insn condition.
208 2011-05-31 Jan Hubicka <jh@suse.cz>
210 * cgraph.h (cgraph_inline_failed_t): Give enum a name
211 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
212 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
213 (lto_output_edge): Use output_enum and var_len_unsigned.
214 (lto_output_varpool_node): Likewise.
215 (input_overwrite_node): Do not take resolution parameter;
216 extract it from a bitpack.
217 (input_node): Do not read resolution; use input_enum and
219 (input_varpool_node): Likewise.
220 (input_edge): Likewise.
221 (input_cgraph_1): Likewise.
223 2011-05-31 Richard Guenther <rguenther@suse.de>
225 * gimple.c (gimple_register_canonical_type): Do not register
226 any types via gimple_register_type.
228 2011-05-31 Jan Hubicka <jh@suse.cz>
230 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
233 2011-05-31 Jakub Jelinek <jakub@redhat.com>
235 PR rtl-optimization/49235
236 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
237 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
239 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
241 PR tree-optimization/49093
242 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
245 2011-05-31 Dodji Seketeli <dodji@redhat.com>
248 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
249 for concrete functions containing the code of cloned functions.
251 2011-05-31 Richard Guenther <rguenther@suse.de>
253 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
255 (forward_propagate_into_comparison_1): ... this.
256 (forward_propagate_comparison): Rename to ...
257 (forward_propagate_into_comparison): ... this. Split out
258 real forward propagation code to ...
259 (forward_propagate_comparison): ... this.
260 (forward_propagate_into_gimple_cond): Remove looping.
261 (forward_propagate_into_cond): Likewise.
262 (simplify_not_neg_expr): Return whether we have done something.
263 (simplify_gimple_switch): Likewise.
264 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
265 (ssa_forward_propagate_and_combine): ... this. Re-structure
266 to do a forward forward-propagation walk on BBs and a backward
267 stmt combining walk on BBs. Consistently re-scan changed statements.
268 (pass_forwprop): Adjust.
270 2011-05-30 Ian Lance Taylor <iant@google.com>
272 * godump.c (go_format_type): Correct length of name added to
273 obstack for anonymous field.
275 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
278 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
279 part of the second operand is 0.
281 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
283 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
284 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
285 to memory for !TARGET_MEMORY_MISMATCH_STALL.
286 (*movdf_internal_rex64): Do not penalize F->r alternative.
287 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
288 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
289 when optimizing function for size. Do not move CONST_DOUBLEs
290 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
291 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
292 SUBREGs. Do not check for MEM_P operands in the insn condition,
293 check for ANY_FP_REGNO_P instead.
294 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
295 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
297 * config/i386/i386.c (ix86_option_override_internal): Do not
298 set TARGET_INTEGER_DFMODE_MOVES here.
300 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
303 * config/i386/i386.md (*movtf_internal): Handle misaligned
306 2011-05-30 Jakub Jelinek <jakub@redhat.com>
308 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
309 DW_TAG_rvalue_reference_type even for
310 -gdwarf-4 -fno-debug-types-section.
312 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
314 PR tree-optimization/46728
315 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
316 (build_and_insert_binop): New.
317 (gimple_expand_builtin_pow): Reorder args for
318 build_and_insert_call; use build_and_insert_binop; add more
319 optimizations for fractional exponents.
321 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
326 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
328 * tree.h (struct tree_identifier): Inherit from tree_typed, not
330 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
331 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
332 TS_BASE instead of TS_COMMON.
333 * varasm.c (assemble_name): Remove assert.
335 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
337 * config.gcc: Keep obselete list sorted.
339 2011-05-30 Jakub Jelinek <jakub@redhat.com>
340 Eric Botcazou <ebotcazou@adacore.com>
342 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
343 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
344 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
345 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
346 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
348 2011-05-30 Richard Guenther <rguenther@suse.de>
350 * gimple.c (gimple_types_compatible_p_1): Compare record
351 and union type members properly.
353 2011-05-30 Richard Guenther <rguenther@suse.de>
355 PR tree-optimization/49210
356 * ipa-split.c (split_function): Care for the case where the call
357 result is not trivially convertible to the result holding variable.
359 2011-05-30 Richard Guenther <rguenther@suse.de>
361 PR tree-optimization/49218
362 * tree-vrp.c (adjust_range_with_scev): Properly check whether
365 2011-05-30 Richard Guenther <rguenther@suse.de>
367 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
368 New function split out from ...
369 (forward_propagate_into_gimple_cond): ... here. Adjust.
370 (forward_propagate_into_cond): Likewise.
371 (forward_propagate_comparison): Also propagate into
372 comparisons on assignment RHS. Change return value to
373 behave similar to forward_propagate_into_cond.
374 (tree_ssa_forward_propagate_single_use_vars): Handle
375 strict-overflow warnings properly for forward_propagate_comparison.
377 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
379 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
381 * configure: Regenerate.
383 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
385 PR tree-optimization/49199
386 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
387 non-reduction operands are either defined in the loop or by induction.
389 2011-05-29 Xinliang David Li <davidxl@google.com>
391 * opts-global.c (handle_common_deferred_options): Handle new options.
392 * passes.c (register_one_dump_file): Call register_pass_name.
393 (execute_one_pass): Check explicit enable/disable flag.
394 (passr_hash): New function.
396 (register_pass_name): Ditto.
397 (get_pass_by_name): Ditto.
400 (enable_pass): Ditto.
401 (disable_pass): Ditto.
402 (is_pass_explicitly_enabled_or_disabled): Ditto.
404 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
406 * config/i386/i386.md (*movoi_internal_avx): Use
407 standard_sse_constant_opcode for alternative 0.
408 (*movti_internal_sse): Ditto.
409 (*movti_internal_rex64): Use standard_sse_constant_opcode for
411 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
413 (*movsi_internal): Ditto.
414 (*movdi_internal): Ditto. Add ssecvt type moves.
416 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
419 * rtlanal.c (simplify_subreg_regno): Adjust comment.
421 2011-05-29 Jakub Jelinek <jakub@redhat.com>
423 PR rtl-optimization/49095
424 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
425 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
427 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
430 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
431 recurse_p argument. Only follow register copies if it is set,
432 and prevent mips_find_pic_call_symbol from recursing.
433 (mips_find_pic_call_symbol): Add a recurse_p argument.
434 Pass it to mips_pic_call_symbol_from_set.
435 (mips_annotate_pic_calls): Update accordingly.
437 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
439 * emit-rtl.c (try_split): Use a loop to search for
440 NOTE_INSN_CALL_ARG_LOCATIONs.
442 2011-05-29 Richard Guenther <rguenther@suse.de>
444 PR tree-optimization/49217
445 * ipa-pure-const.c (propagate_pure_const): Fix typos.
447 2011-05-28 Jan Hubicka <jh@suse.cz>
449 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
451 (string_slot_free): Remove
452 (create_output_block): Initialize obstack.
453 (destroy_output_block): Free obstack.
454 (lto_string_index): Add PERSISTENT parameter; do not duplicate
455 the string unless it needs to be added into the hash.
456 (lto_output_string_with_length): Add persistent attribute;
458 (lto_output_string): Add PERSISTENT parameter.
459 (output_string_cst, output_identifier): Simplify.
460 (lto_output_location_bitpack): Update.
461 (lto_output_builtin_tree): Update.
462 * lto-streamer.h (struct output_block): Add obstack.
463 (lto_output_string, lto_output_string_with_length): Remove
464 declarations; functions are static now.
466 2011-05-28 Jan Hubicka <jh@suse.cz>
468 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
469 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
470 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
471 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
472 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
473 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
474 unpack_ts_decl_with_vis_value_fields,
475 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
476 lto_get_builtin_tree): Use enum and variable length i/o.
477 * basic-block.h (profile_status_d): Add PROFILE_LAST.
478 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
480 (bp_pack_enum, bp_unpack_enum): New macros.
482 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
484 * genrecog.c: Remove redundant forward declarations.
486 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
488 * config.gcc: Deprecate mips*-*-openbsd*.
490 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
493 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
496 2011-05-27 Andrew Pinski <pinskia@gmail.com>
499 * gengtype.c (vec_prefix_type): New function.
500 (note_def_vec): Use vec_prefix_type and change the length
501 attribute to be based on the prefix.
502 * vec.c: Include coretypes.h before vec.h.
503 (struct vec_prefix): Remove.
504 (vec_gc_p_reserve): Change the offsetof to sizeof.
505 (vec_gc_p_reserve_exact): Likewise.
506 (vec_heap_p_reserve): Likewise.
507 (vec_heap_p_reserve_exact): Likewise.
508 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
509 (vec_stack_p_reserve): Change the offsetof to sizeof.
510 (vec_stack_p_reserve_exact): Likewise.
511 * vec.h (struct vec_prefix): New struct definition.
512 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
513 (VEC_T_GTY(T,B)): Likewise.
514 (DEF_VEC_FUNC_P(T)): Use prefix field.
515 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
516 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
518 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
520 PR tree-optimization/46728
521 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
522 (powi_as_mults): Add gimple_set_location.
523 (build_and_insert_call): New.
524 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
525 0.5, 0.25, 0.75, 1./3., or 1./6.
527 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
529 * doc/contrib.texi: Update copyright years.
530 (Contributors): Add Zdenek Sojka.
532 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
534 * c-decl.c (c_push_function_context): Copy the current statement
536 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
537 (finish_struct): Call building_stmt_list_p instead of checking
539 * c-parser.c (c_parser_postfix_expression): Likewise.
540 * c-typeck.c (c_end_compound_stmt): Likewise.
541 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
542 * tree-iterator.c (stmt_list_cache): Change to a VEC.
543 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
544 (free_stmt_list): Likewise.
545 * tree.h (struct tree_statement_list): Include typed_tree instead
547 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
548 as TS_TYPED instead of TS_COMMON.
550 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
551 Uros Bizjak <ubizjak@gmail.com>
553 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
554 (HAVE_AS_IX86_TLSGDPTL): Define.
555 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
556 (HAVE_AS_IX86_TLSLDMPLT): Define.
557 * configure: Regenerate.
558 * config.in: Regenerate.
559 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
560 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
561 TARGET_SUN_TLS, use @tlsgdplt or @plt.
562 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
563 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
565 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
567 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
569 * sched-int.h (struct _haifa_deps_insn_data): New members cond
571 (INSN_COND, INSN_REVERSE_COND): New macros.
572 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
574 (sched_get_condition_with_rev): Cache the results, and look them up
576 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
577 are clobbered by the current insn.
578 * target.def (exposed_pipline): New sched data hook.
579 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
580 * doc/tm.texi: Regenerate.
582 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
584 PR tree-optimization/49170
585 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
588 2011-05-27 Richard Guenther <rguenther@suse.de>
591 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
594 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
596 * haifa-sched.c (sched_scan_info): Remove.
597 (schedule_block): Call sched_extend_luids rather than sched_init_luids
599 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
601 (sched_scan): Remove.
602 (sched_extend_luids): Renamed from luids_extend_insn and no longer
603 static. All callers changed.
604 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
605 static. All callers changed.
606 (sched_init_luids): Remove all arguments except the first. All
607 callers changed. Don't use sched_scan.
608 (haifa_init_h_i_d): Likewise.
609 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
610 manually rather than using sched_init_luids. Likewise with
611 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
612 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
613 rather than sched_init_luids with NULL args.
614 * sel-sched-ir.c (new_insns): Remove variable.
615 (sched_scan): New static function, previously in haifa-sched.c. Remove
616 all arguments but the first two; all callers changed.
617 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
618 rather than sched_init_luids.
619 (sel_init_bbs): Remove second argument. All callers changed.
620 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
622 (create_insn_rtx_from_pattern): Likewise.
623 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
624 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
625 (sched_init_insn_luid, sched_extend_luids): Declare.
626 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
629 2011-05-27 Richard Guenther <rguenther@suse.de>
632 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
633 A CMP B ? (T) true : (T) false for non-integral types T again.
635 2011-05-27 Jan Hubicka <jh@suse.cz>
637 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
638 so 0 means NULL string.
639 (lto_output_string_with_length): ... here.
640 (lto_output_string, output_string_cst, output_identifier): Update
641 handling of NULL strings.
642 (lto_output_location_bitpack): New function.
643 (lto_output_location): Use it.
644 (lto_output_tree_ref): Use output_record_start.
645 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
647 * lto-streamer-in.c (string_for_index): Break out from ...; offset
649 (input_string_internal): ... here;
650 (input_string_cst, input_identifier, lto_input_string): Update handling
652 (lto_input_location_bitpack): New function
653 (lto_input_location): Use it.
654 (unpack_ts_type_common_value_fields): Pack align & alias in var len
656 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
657 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
658 (bp_pack_value): Sanity check the value range.
659 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
661 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
664 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
666 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
667 call_arg_location instructions down the floor.
669 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
671 PR rtl-optimization/49154
672 * ira.c (setup_pressure_classes): Process class without sublcasses
673 as a candidate for pressure classes.
675 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
677 PR rtl-optimization/48575
678 * genrecog.c (position_type): New enum.
679 (position): New structure.
680 (decision): Use position structure instead of a string.
681 (root_pos, peep2_insn_pos_list): New variables.
682 (next_position, compare_positions): New functions.
683 (new_decision): Use position structures instead of strings.
684 (maybe_both_true): Likewise.
685 (change_state): Likewise.
686 (write_tree): Likewise.
687 (make_insn_sequence): Likewise.
689 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
691 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
692 TS_BASE instead of TS_COMMON.
693 (find_decls_types_r): Check for TS_TYPED structure before looking at
695 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
697 (BLOCK_CHAIN): Use new chain field.
699 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
701 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
702 moves expensive on Power7 also.
704 2011-05-26 Richard Guenther <rguenther@suse.de>
706 * fold-const.c (fold_unary_loc): Remove bogus code.
708 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
710 * tree.h (struct tree_identifier): Inherit from tree_typed, not
712 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
713 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
714 TS_BASE instead of TS_COMMON.
715 * varasm.c (assemble_name): Remove assert.
717 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
719 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
721 * libgcc-std.ver: Delete file.
723 2011-05-26 Richard Guenther <rguenther@suse.de>
725 PR tree-optimization/48702
726 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
727 only when we know the base address is within bounds.
728 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
729 assume the base address of TARGET_MEM_REFs is in bounds.
731 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
734 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
735 declaration in TARGET_SOLARIS.
737 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
739 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
740 The instruction is then expanded explicitly.
741 (supported_compare): Callable instruction.
744 2011-05-26 Jakub Jelinek <jakub@redhat.com>
747 * gimplify.c (shortcut_cond_r): Don't special case
748 COND_EXPRs if they have void type on one of their arms.
750 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
752 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
753 to reduce duplication, and to achieve a slightly more logical order
756 2011-05-26 Jakub Jelinek <jakub@redhat.com>
758 PR tree-optimization/49161
759 * tree-vrp.c (struct case_info): New type.
760 (compare_case_labels): Sort case_info structs instead of
761 trees, and not primarily by CASE_LABEL uids but by
762 label_for_block indexes.
763 (find_switch_asserts): Put case labels into struct case_info
764 array instead of TREE_VEC, adjust sorting, compare label_for_block
765 values instead of CASE_LABELs.
767 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
769 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
770 ("orndi3_neon"): Likewise.
771 ("bic<mode>3_neon"): Likewise.
773 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
775 PR tree-optimization/49038
776 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
777 Ensure at least one epilogue iteration if required by data
779 * tree-vectorizer.h (struct _loop_vec_info): Add new field
780 to mark loops that require peeling for gaps.
781 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
782 (vect_get_known_peeling_cost): Take peeling for gaps into
784 (vect_transform_loop): Generate epilogue if required by data
786 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
787 loop as requiring an epilogue if there are gaps in the end of
790 2011-05-25 Ian Lance Taylor <iant@google.com>
792 * godump.c (go_format_type): Output the first field with a usable
795 2011-05-25 Ian Lance Taylor <iant@google.com>
797 * godump.c (go_format_type): Check for invalid type names, pointer
798 target types, and struct field types.
800 2011-05-25 Jason Merrill <jason@redhat.com>
802 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
804 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
806 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
808 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
810 * config/i386/i386.md (*movqi_extv_1)): Put back
811 "register_operand" check in "type" calculation.
812 (*movqi_extzv_2): Likewise.
814 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
816 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
818 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
821 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
822 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
823 __divxc3, __divtc3): Wrap definitions in #ifndef.
825 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
828 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
829 "register_operand" check and replace q_regs_operand with
830 QIreg_operand in "type" calculation.
831 (*movqi_extv_1): Likewise.
832 (*movqi_extzv_2_rex64): Likewise.
833 (*movqi_extzv_2): Likewise.
835 * config/i386/predicates.md (QIreg_operand): New.
837 2011-05-25 Richard Guenther <rguenther@suse.de>
839 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
840 type-based offset disambiguation, streamline MEM_REF and
841 TARGET_MEM_REF handling.
843 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
845 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
846 (bdesc_special_args): Add pause intrinsic.
848 * config/i386/i386.md (UNSPEC_PAUSE): New.
851 * config/i386/ia32intrin.h (__pause): Likewise.
853 * doc/extend.texi (X86 Built-in Functions): Add documentation for
856 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
858 PR tree-optimization/46728
859 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
860 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
862 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
864 * tree.h (struct tree_exp): Inherit from struct tree_typed.
865 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
866 instead of TS_COMMON.
868 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
870 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
871 LIBGCC2_GNU_PREFIX is defined.
873 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
874 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
875 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
876 __clz_tab): Define using __N.
877 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
878 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
879 * target.def (libfunc_gnu_prefix): New hook.
880 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
881 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
882 * doc/tm.texi: Regenerate.
883 * system.h (LIBGCC2_GNU_PREFIX): Poison.
884 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
886 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
887 (init_optabs): Likewise for the bswap libfuncs.
888 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
890 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
891 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
892 * libgcc-std.ver: Remove.
893 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
894 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
896 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
897 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
898 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
899 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
900 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
901 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
902 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
903 * config/fixed-bit.h (FIXED_OP): Define differently depending on
904 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
905 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
907 2011-05-25 Jan Hubicka <jh@suse.cz>
909 * lto-streamer-out.c (output_record_start): Use lto_output_enum
910 (lto_output_tree): Use output_record_start.
911 * lto-streamer-in.c (input_record_start): Use lto_input_enum
912 (lto_get_pickled_tree): Use input_record_start.
913 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
914 (lto_value_range_error): New function.
915 * lto-streamer.h (lto_value_range_error): Declare.
916 (lto_output_int_in_range, lto_input_int_in_range): New functions.
917 (lto_output_enum, lto_input_enum): New macros.
919 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
921 * common.opt (flag_stack_usage_info): New variable.
922 (-Wstack-usage): New option.
923 * doc/invoke.texi (Warning options): Document -Wstack-usage.
924 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
925 <OPT_fstack_usage>: Likewise.
926 * toplev.c (output_stack_usage): Handle -Wstack-usage.
927 * calls.c (expand_call): Test flag_stack_usage_info variable instead
929 (emit_library_call_value_1): Likewise.
930 * explow.c (allocate_dynamic_stack_space): Likewise.
931 * function.c (instantiate_virtual_regs ): Likewise.
932 (prepare_function_start): Likewise.
933 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
934 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
935 * config/arm/arm.c (arm_expand_prologue): Likewise.
936 (thumb1_expand_prologue): Likewise.
937 * config/avr/avr.c (expand_prologue): Likewise.
938 * config/i386/i386.c (ix86_expand_prologue): Likewise.
939 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
940 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
941 * config/mips/mips.c (mips_expand_prologue): Likewise.
942 * config/pa/pa.c (hppa_expand_prologue): Likewise.
943 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
944 * config/s390/s390.c (s390_emit_prologue): Likewise.
945 * config/sh/sh.c (sh_expand_prologue): Likewise.
946 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
947 * config/spu/spu.c (spu_expand_prologue): Likewise.
949 2011-05-25 Richard Guenther <rguenther@suse.de>
951 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
952 (gimple_canonical_types_compatible_p): Likewise.
954 2011-05-25 Jan Hubicka <jh@suse.cz>
957 * ipa.c (function_and_variable_visibility): Only add to same
958 comdat group list if DECL_ONE_ONLY.
960 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
962 PR rtl-optimization/49014
963 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
965 2011-05-25 Jakub Jelinek <jakub@redhat.com>
968 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
970 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
972 PR rtl-optimization/48757
973 * ira-build.c (loop_with_eh_edge_p): Rename to
974 loop_with_complex_edge_p, check edges on complexity, make function
976 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
979 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
981 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
982 force flag_ira_share_save_slots to 0.
984 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
986 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
987 (vt_initialize): Set PROLOGUE_BB unconditionally.
988 Add block comment about CFA_BASE_RTX machinery.
989 Reset FP_CFA_OFFSET to -1 on all invalid paths.
990 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
992 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
995 * c-parser.c (c_parser_objc_class_instance_variables): More robust
996 parsing of syntax error in ObjC instance variable lists. In
997 particular, avoid an infinite loop if there is a stray ']'.
998 Updated error message.
1000 2011-05-24 Ian Lance Taylor <iant@google.com>
1002 * godump.c (go_define): Don't accept a string immediately after
1005 2011-05-24 Ian Lance Taylor <iant@google.com>
1007 * godump.c (struct godump_container): Add invalid_hash field.
1008 (go_format_type): Return false if type is found in invalid_hash.
1009 (go_output_typedef): Add invalid type to invalid_hash.
1010 (go_finish): Create and delete invalid_hash.
1012 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1014 PR tree-optimization/46728
1015 * tree-ssa-math-opts.c (powi_table): New.
1016 (powi_lookup_cost): New.
1018 (powi_as_mults_1): New.
1019 (powi_as_mults): New.
1020 (gimple_expand_builtin_powi): New.
1021 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1022 (gate_cse_sincos): Remove sincos/cexp restriction.
1024 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1027 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1029 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1030 * mips-tdump.c: Likewise.
1032 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1035 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1036 add -mno-XXX. Handle FMA.
1038 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1040 PR rtl-optimization/48633
1041 * ira-build.c (loop_with_eh_edge_p): New function.
1042 (mark_loops_for_removal): Use it.
1044 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1046 PR rtl-optimization/48971
1047 * ira.c (setup_pressure_classes): Don't check register move cost
1048 for classes with one registers. Don't add pressure class if there
1049 is a pressure class with the same available hard registers.
1050 Check contains_reg_of_mode. Fix a typo in collecting
1051 temp_hard_regset. Ignore hard registers not belonging to a class.
1053 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1056 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1058 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1059 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1061 PR gcov-profile/48845
1062 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1064 2011-05-24 Richard Guenther <rguenther@suse.de>
1066 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1067 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1068 (gimple_types_compatible_p_1): Adjust.
1069 (iterative_hash_canonical_type): Do not bother about complete vs.
1071 (gimple_canonical_types_compatible_p): Likewise.
1073 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1075 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1077 2011-05-24 Richard Guenther <rguenther@suse.de>
1080 * gimple.c (gimple_register_canonical_type): Revert
1082 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1083 does not for a tree for the case where it matters. Cache
1084 pointer-type alias-sets.
1086 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1088 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1089 (OBJS): Remove options.o, opts-common.o and prefix.o.
1090 (OBJS-libcommon-target): New.
1091 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1092 (BACKEND): Include libcommon-target.a.
1093 (MOSTLYCLEANFILES): Include libcommon-target.a.
1094 (libcommon-target.a): New.
1095 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1098 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1100 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1101 parts of output shared with the driver.
1102 * optc-gen.awk: Don't generate parts of output not shared with the
1104 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1105 * doc/options.texi (SourcerInclude): Mention options-save.c.
1106 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1107 (OBJS): Add options-save.o.
1108 (options-save.c, options-save.o): New.
1109 (options.o): Update dependencies.
1110 (gcc-options.o): Remove.
1111 (mostlyclean): Remove options-save.c.
1113 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1116 * dbxout.c: Include cgraph.h.
1117 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1118 and without value expr, return NULL if no varpool node exists for
1119 it or if it is not needed.
1120 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1123 * c-decl.c (start_decl): Convert expr to void_type_node.
1125 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1127 PR rtl-optimization/48826
1128 * emit-rtl.c (try_split): When splitting a call that is followed
1129 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1131 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1133 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1134 parameters passed in memory prefer using DECL_INCOMING_RTL over
1135 the pseudos it will be copied into.
1137 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1140 * config/i386/i386.c (ix86_option_override_internal): Save the
1141 initial options after checking vzeroupper.
1143 2011-05-23 David Li <davidxl@google.com>
1145 PR tree-optimization/48988
1146 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1147 Initialize has_valid_pred for each pred chain.
1149 2011-05-23 Richard Guenther <rguenther@suse.de>
1151 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1152 (iterative_hash_gimple_type): Always hash type names.
1154 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1156 * c-typeck.c (build_function_call_vec): Tweak call to
1157 check_function_arguments.
1159 2011-05-23 Richard Guenther <rguenther@suse.de>
1161 PR tree-optimization/49115
1162 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1163 is not necessarily carried out, do not claim it kills the ref.
1164 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1166 2011-05-23 Richard Guenther <rguenther@suse.de>
1169 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1170 what pointer types we accept for folding.
1172 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1174 * gthr-gnat.c: Remove.
1175 * gthr-gnat.h: Remove.
1176 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1177 * config/t-freebsd (LIB2ADDEH): Likewise.
1178 * config/t-linux (LIB2ADDEH): Likewise.
1179 * config/t-sol2 (LIB2ADDEH): Likewise.
1180 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1181 * configure.ac (target_thread_file): Remove gnat handling.
1182 * configure: Regenerate.
1183 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1185 2011-05-23 Tristan Gingold <gingold@adacore.com>
1186 Eric Botcazou <ebotcazou@adacore.com>
1188 * gcov.c (create_file_names): If no object directory is specified,
1189 keep the directory of the file.
1191 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1193 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1194 * configure: Regenerate.
1196 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1199 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1200 failed and the comparison has a single bit signed type, use
1201 constm1_rtx instead of const1_rtx for true value.
1202 (do_store_flag): If ops->type is single bit signed type, disable
1203 signel bit test optimization and pass -1 instead of 1 as last
1204 parameter to emit_store_flag_force.
1206 2011-05-23 Tom de Vries <tom@codesourcery.com>
1209 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1211 (infer_loop_bounds_from_undefined): Use new function.
1213 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1215 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1216 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1217 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1219 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1221 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1223 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1224 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1227 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1229 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1231 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1233 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1234 UNSPEC_MOVE_PIC pattern.
1236 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1238 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1239 (sparc-*-rtems*): Likewise.
1240 (sparc64-*-elf*): Likewise.
1241 (sparc64-*-rtems*): Likewise.
1242 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1243 * config/sparc/t-crtin: New file.
1244 * config/sparc/t-sol2 (crti.o): Delete rule.
1246 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1247 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1248 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1249 (ENDFILE_SPEC): Add crtn.o.
1251 2011-05-22 Tom de Vries <tom@codesourcery.com>
1254 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1255 CODE_CONTAINS_STRUCT (TS_COMMON).
1257 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1260 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1261 only after deciding which mode to use.
1263 2011-05-22 Tom de Vries <tom@codesourcery.com>
1266 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1267 for call to get_shiftadd_cost.
1269 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1272 * config/i386/cpuid.h (bit_MMXEXT): New define.
1274 2011-05-22 Nick Clifton <nickc@redhat.com>
1276 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1277 initialisation of non-existant args[2] element. Use args[] array
1278 not arg[] array to pass arguments to build_function_type_list.
1280 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1282 PR tree-optimization/49087
1283 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1285 2011-05-21 Jason Merrill <jason@redhat.com>
1288 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1289 static storage duration.
1291 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1293 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1296 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1298 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1299 false if there are call-saved registers here...
1300 (sparc_can_use_return_insn_p): ...but here instead.
1301 (save_or_restore_regs): Fix thinko.
1302 (sparc_expand_prologue): Use current_function_is_leaf.
1303 (sparc_frame_pointer_required): Likewise.
1305 2011-05-21 Nick Clifton <nickc@redhat.com>
1308 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1310 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1312 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1313 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1315 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1317 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1318 * optc-gen.awk: Move common code to opt-read.awk.
1319 * opth-gen.awk: Likewise.
1320 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1322 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1324 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1326 2011-05-20 Tom de Vries <tom@codesourcery.com>
1329 * tree-ssa-loop-ivopts.c: Include expmed.h.
1330 (get_shiftadd_cost): New function.
1331 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1333 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1336 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1337 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1339 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1341 * Makefile.in: Update comment referring to $(OBJS-common).
1343 2011-05-20 Ian Lance Taylor <iant@google.com>
1345 * godump.c (go_output_typedef): Put enum constants in the macro
1346 hash table to avoid duplicate Go const definitions.
1348 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1350 * Makefile.in (LIBDEPS): Add libcommon.a.
1352 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1353 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1354 pretty-print.o and version.o.
1355 (OBJS-libcommon): New.
1356 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1357 (BACKEND): Add libcommon.a.
1358 (MOSTLYCLEANFILES): Likewise.
1360 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1361 (cpp$(exeext)): Likewise.
1362 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1363 pretty-print.o and input.o.
1364 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1365 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1367 (mips-tfile): Don't explicitly use version.o.
1368 (mips-tdump): Likewise.
1369 (gcov.o): Depend on $(DIAGNOSTIC_H).
1370 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1371 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1372 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1373 * gcov-dump.c: Include intl.h and diagnostic.h.
1374 (main): Initialize diagnostics.
1375 * gcov.c: Include diagnostic.h.
1377 (main): Initialize diagnostics.
1378 * lto-wrapper.c: Include diagnostic.h.
1379 (main): Initialize diagnostics.
1381 2011-05-20 Michael Matz <matz@suse.de>
1383 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1385 2011-05-20 Michael Matz <matz@suse.de>
1386 Richard Guenther <rguenther@suse.de>
1388 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1389 use lto_streamer_cache_append directly instead of returning a VEC.
1390 (preload_common_node): Remove.
1391 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1393 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1395 2011-05-20 Richard Guenther <rguenther@suse.de>
1397 PR tree-optimization/49079
1398 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1399 MEM_REFs correctly for the trailing array access detection.
1400 Special case constants the same way as decls for overall size
1403 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1405 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1408 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1410 PR tree-optimization/49073
1411 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1412 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1413 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1415 2011-05-20 Richard Guenther <rguenther@suse.de>
1418 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1419 of pointer types the same way the middle-end does.
1421 2011-05-20 Richard Guenther <rguenther@suse.de>
1423 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1424 or pointer-to chains. Delay all fixup to uniquify_nodes.
1426 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1428 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1429 (fma4_fmaddsub): Likewise
1431 2011-05-19 Jan Hubicka <jh@suse.cz>
1433 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1434 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1435 (type_pair_cache): New static var.
1436 (lookup_type_pair): Use fixed sized custom hash; make inline.
1437 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1438 calls of lookup_type_pair.
1439 (print_gimple_types_stats): Remove cache stats.
1440 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1443 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1445 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1446 when TARGET_RDRND is active.
1447 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1448 Generate dummy SImode target register when target is NULL.
1450 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1452 * config/arm/arm-fpus.def: New.
1453 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1455 * config/arm/arm-tables.opt: Regenerate.
1456 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1457 (arm_option_override): Don't decode FPU name to string here.
1458 * config/arm/arm.opt (mfpu=): Use Enum.
1459 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1460 Update dependencies.
1462 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1464 * collect2.c: Include diagnostic.h.
1465 (fatal_perror, fatal, error, fancy_abort): Remove.
1466 (main): Set progname. Call xmalloc_set_program_name and
1467 diagnostic_initialize.
1468 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1469 scan_libraries, resolve_lib_name): Call fatal_error instead of
1470 fatal and fatal_perror.
1471 * collect2.h (error, fatal, fatal_perror): Don't declare.
1472 * tlink.c: Include diagnostic-core.h.
1473 (recompile_files): Call fatal_error instead of fatal_perror.
1474 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1475 pretty-print.o and input.o.
1476 (collect2.o, tlink.o): Update dependencies.
1478 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1480 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1482 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1485 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1486 COMDAT group syntax, both SPARC and x86 variants.
1487 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1488 * configure: Regenerate.
1489 * config/sol2.h (TARGET_SOLARIS): Define.
1490 (PUSHSECTION_FORMAT): Remove.
1491 (SECTION_NAME_FORMAT): Define.
1492 * config/sol2.c: Include hashtab.h.
1493 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1494 expansion, using SECTION_NAME_FORMAT.
1495 (solaris_comdat_htab): New variable.
1496 (struct comdat_entry): Define.
1497 (comdat_hash): New function.
1498 (comdat_eq): New function.
1499 (solaris_elf_asm_comdat_section): New function.
1500 (solaris_define_comdat_signature): New function.
1501 (solaris_code_end): New function.
1502 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1503 (solaris_code_end): Declare.
1504 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1505 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1507 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1508 Remove ATTRIBUTE_UNUSED.
1509 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1510 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1511 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1512 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1513 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1514 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1515 (PUSHSECTION_FORMAT): Remove.
1516 (SECTION_NAME_FORMAT): Redefine.
1518 2011-05-19 Kai Tietz <ktietz@redhat.com>
1520 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1521 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1522 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1524 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1525 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1527 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1529 2011-05-19 Richard Guenther <rguenther@suse.de>
1532 * tree-object-size.c (addr_object_size): If the pointed-to
1533 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1535 2011-05-19 Richard Guenther <rguenther@suse.de>
1537 * gimple.c (gimple_types_compatible_p_1): Compare names of
1538 the types themselves.
1539 (iterative_hash_gimple_type): And hash them that way.
1540 (gimple_register_type_1): If we register a main variant properly
1541 initialize the leader to ourselves.
1543 2011-05-19 Tom de Vries <tom@codesourcery.com>
1546 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1547 get_loop_invariant_expr_id.
1548 (get_loop_invariant_expr_id): Use get_expr_id.
1549 (parm_decl_cost): New function.
1550 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1551 Improve bound cost estimation. Use different inv_expr_id for elim and
1554 2011-05-19 Tom de Vries <tom@codesourcery.com>
1557 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1558 cost_base.cost == 0.
1560 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1563 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1564 Properly handle load cast.
1566 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1568 PR tree-optimization/49039
1569 * tree-vrp.c (extract_range_from_binary_expr): For
1570 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1571 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1573 2011-05-18 Tom de Vries <tom@codesourcery.com>
1576 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1578 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1580 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1581 (*tls_global_dynamic_64): Ditto.
1582 (*tls_local_dynamic_base_32_gnu): Ditto.
1583 (*tls_local_dynamic_base_64): Ditto.
1584 (tls_initial_exec_64_sun): Ditto.
1586 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1588 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1589 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1591 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1592 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1593 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1594 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1595 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1596 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1597 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1599 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1601 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1602 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1603 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1604 target_thread_pointer, arm_structure_size_boundary, struct
1605 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1606 struct abi_name, arm_all_abis): Remove.
1607 (arm_option_override) Don't process most enumerated option values here.
1608 Don't process target_fpe_name here. Work with integer not string for
1609 structure size boundary; use separate diagnostics for each case.
1610 * config/arm/arm.h (enum float_abi_type, enum
1611 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1613 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1614 arm_structure_size_boundary): Remove.
1615 * config/arm/arm.opt (mabi=): Use Enum and Init.
1616 (arm_abi_type): New Enum and EnumValue entries.
1617 (mfloat-abi=): Use Enum and Init.
1618 (float_abi_type): New Enum and EnumValue entries.
1619 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1620 (mfp16-format=): Use Enum and Init.
1621 (arm_fp16_format_type): New Enum and EnumValue entries.
1622 (mstructure-size-boundary=): Use UInteger and Init.
1623 (mtp=): Use Enum and Init.
1624 (arm_tp_type): New Enum and EnumValue entries.
1626 2011-05-18 Richard Guenther <rguenther@suse.de>
1628 PR tree-optimization/49018
1629 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1630 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1631 gimple_has_side_effects.
1633 2011-05-18 Richard Guenther <rguenther@suse.de>
1635 * gimple.c (gimple_register_type_1): New function, split out from ...
1636 (gimple_register_type): ... here. Avoid infinite recursion.
1638 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1640 PR tree-optimization/41881
1641 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1642 reduction_chains along with a macro for its access.
1643 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1644 (destroy_loop_vec_info): Free reduction chains.
1645 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1646 (vect_is_slp_reduction): New function.
1647 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1648 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1649 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1650 definition types for reduction chains.
1651 (vect_supported_load_permutation_p): Don't allow permutations for
1653 (vect_analyze_slp_instance): Support reduction chains.
1654 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1655 (vect_get_constant_vectors): Handle reduction chains.
1656 (vect_schedule_slp_instance): Mark the first statement of the
1657 reduction chain as reduction.
1659 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1661 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1662 names for group elements access.
1663 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1664 reduction chains as well. Remove data reference and interleaving
1665 related words from the fields names.
1666 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1668 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1669 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1670 vect_update_interleaving_chain, vect_same_range_drs,
1671 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1672 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1673 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1674 vect_analyze_group_access, vect_analyze_data_ref_access,
1675 vect_create_data_ref_ptr, vect_transform_strided_load,
1676 vect_record_strided_load_vectors): Likewise.
1677 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1678 vect_model_load_cost, vectorizable_store, vectorizable_load,
1679 vect_remove_stores, new_stmt_vec_info): Likewise.
1680 * tree-vect-slp.c (vect_build_slp_tree,
1681 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1683 2011-05-18 Richard Guenther <rguenther@suse.de>
1686 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1687 operand verification.
1688 (verify_gimple_assign_binary): Likewise.
1689 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1690 to non-1-precision BOOLEAN_TYPEs.
1692 2011-05-18 Tom de Vries <tom@codesourcery.com>
1695 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1697 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1699 PR tree-optimization/49000
1700 * tree-ssa.c (execute_update_addresses_taken): Call
1701 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1702 be rewritten and decl has been marked for renaming, reset
1705 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1707 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1708 enum_opts_set when testing if attributes have set -mfpmath=.
1710 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1712 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1714 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1716 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1718 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1719 id.transform_lang_insert_block with NULL.
1721 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1723 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1724 (output_fp_compare): Change args 3 and 4 to bool.
1725 (ix86_expand_call): Change arg 6 to bool.
1726 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1727 (ix86_attr_length_vex_default): Change arg 3 to bool.
1728 * config/i386/i386.md: Update all uses.
1729 * config/i386/i386.c: Ditto.
1730 (ix86_flags_dependent): Change return type to bool.
1732 2011-05-17 Richard Guenther <rguenther@suse.de>
1734 * gimple.c (type_hash_pair_compare): Fix comparison.
1736 2011-05-17 Richard Guenther <rguenther@suse.de>
1738 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1739 case some more, fix final hash value of the non-singleton case.
1741 2011-05-17 Richard Guenther <rguenther@suse.de>
1745 2011-05-16 Richard Guenther <rguenther@suse.de>
1747 * gimple.c (gimple_types_compatible_p_1): Use names of the
1748 type itself, not its main variant.
1749 (iterative_hash_gimple_type): Likewise.
1751 2011-05-17 Richard Guenther <rguenther@suse.de>
1753 * gimple.c (gimple_register_canonical_type): Use the main-variant
1754 leader for computing the canonical type.
1756 2011-05-17 Nick Clifton <nickc@redhat.com>
1758 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1761 * config/rx/rx.md: Add peephole to remove redundant extensions
1763 (bitset_in_memory): Use rx_restricted_mem_operand.
1764 (bitinvert_in_memory): Likewise.
1765 (bitclr_in_memory): Likewise.
1767 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1768 Nick Clifton <nickc@redhat.com>
1770 * config/rx/rx.md: Add peepholes to match a register move followed
1771 by a comparison of the moved register. Replace these with an
1772 addition of zero that does both actions in one instruction.
1774 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1777 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1778 predicate to allow CONST_INT.
1779 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1781 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1783 * opts-common.c (opt_enum_arg_to_value): New.
1784 * opts.h (opt_enum_arg_to_value): Declare.
1785 * config/i386/i386.opt (fpmath): Remove.
1786 (mfpmath=): Use Enum, Init and Save.
1787 (fpmath_unit): New Enum and EnumValue entries.
1788 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1789 name for function fpmath state.
1790 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1791 * config/i386/i386.c: Include diagnostic.h.
1792 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1793 (ix86_target_string): Take enum fpmath_unit value instead of string.
1794 (ix86_debug_options): Update call to ix86_target_string.
1795 (ix86_option_override_internal): Don't process fpmath strings here.
1796 (x86_function_specific_save, ix86_function_specific_restore):
1797 Don't handle fpmath state specially.
1798 (ix86_function_specific_print): Pass fpmath state to
1799 ix86_target_string instead of printing in this function.
1800 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1801 Handle enum attributes.
1802 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1803 (ix86_valid_target_attribute_tree): Update option_strings
1804 handling. Handle fpmath as enum option.
1805 (ix86_can_inline_p): Update field names for function fpmath state.
1806 (ix86_expand_builtin): Update call to ix86_target_string.
1807 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1808 (ix86_fpmath): Remove.
1809 * config/i386/t-i386 (i386.o): Update dependencies.
1811 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1813 PR preprocessor/48677
1814 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1815 from decoded_options[0], not from itself.
1817 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1819 * config/i386/constraints.md (z): New constraint.
1820 * config/i386/i386.c (c): New mode attribute.
1821 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1822 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1823 constraint for operand 0.
1824 (*call_vzeroupper): Ditto.
1825 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1826 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1827 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1828 Use "lzm" constraint for operand 0.
1829 (*call_pop_vzeroupper): Ditto.
1830 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1831 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1832 constraint for operand 0.
1833 (*sibcall_vzeroupper): Ditto.
1834 (*sibcall_rex64_ms_sysv): Ditto.
1835 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1836 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1837 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1838 (*sibcall_pop_vzeroupper): Ditto.
1839 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1840 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1841 mode iterator. Use "<c>zm" constraint for operand 1.
1842 (*call_value_vzeroupper): Ditto.
1843 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1845 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1846 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1847 *call_value_pop_1. Use "lzm" constraint for operand 1.
1848 (*call_value_pop_vzeroupper): Ditto.
1849 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1850 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1851 mode iterator. Use "Uz" constraint for operand 1.
1852 (*sibcall_value_vzeroupper): Ditto.
1853 (*sibcall_value_rex64_ms_sysv): Ditto.
1854 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1855 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1856 constraint for operand 1.
1857 (*sibcall_value_pop_vzeroupper): Ditto.
1858 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1859 and "z" constraint for operand 2.
1860 (*tls_global_dynamic_32_gnu): Ditto.
1861 (*tls_local_dynamic_base_32_gnu): Ditto.
1862 (*tls_local_dynamic_base_64): Ditto.
1863 (*tls_local_dynamic_32_once): Ditto.
1864 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1866 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1868 2011-05-16 Richard Guenther <rguenther@suse.de>
1870 * gimple.c (gimple_types_compatible_p_1): Use names of the
1871 type itself, not its main variant.
1872 (iterative_hash_gimple_type): Likewise.
1874 2011-05-16 Richard Guenther <rguenther@suse.de>
1876 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1877 always visit pointer target and function result and argument types.
1879 2011-05-16 Jason Merrill <jason@redhat.com>
1882 * tree-inline.c (copy_statement_list): Put back recursion.
1884 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1888 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1889 * config/avr/avr.md ("*ior<mode>qi.byte0",
1890 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1892 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1895 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1896 register is needed for a function argument.
1898 2011-05-16 Richard Guenther <rguenther@suse.de>
1900 * gimple.c (struct type_hash_pair): New type.
1901 (type_hash_pair_compare): New function.
1902 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1904 2011-05-16 Revital Eres <revital.eres@linaro.org>
1906 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1908 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1910 * config/i386/i386.md (floating point move splitters): Fix
1911 usage of standard_80387_constant_p.
1912 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1914 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1916 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1918 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1920 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1921 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1922 (tree_ssa_lim_finalize): Likewise.
1924 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1926 * config/i386/constraint.md (Yd, Yx): New register constraints.
1927 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1928 Yd conditional register constraint.
1929 (*movtf_internal): Use standard_sse_constant_opcode.
1930 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1931 Yx conditional register constraint.
1932 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1933 Yd conditional register constraint. Use standard_sse_constant_p to
1934 check for valid SSE constants and call standard_sse_constant_opcode to
1936 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1937 constants and call standard_sse_constant_opcode to output SSE insn.
1938 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1939 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1940 optimize_size is set.
1941 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1943 2011-05-14 Tobias Burnus <burnus@net-b.de>
1945 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1947 2011-05-13 Martin Jambor <mjambor@suse.cz>
1949 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1950 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1951 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1952 (evaluate_conditions_for_ipcp_clone): Removed.
1953 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1954 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1955 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1957 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1959 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1960 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1961 lieu of MAY_HAVE_DEBUG_STMTS.
1962 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1963 debug statements if !MAY_HAVE_DEBUG_STMTS.
1965 2011-05-13 Martin Thuresson <martint@google.com>
1967 PR gcov-profile/47793
1968 * libgcov.c (gcov_exit): Support relative profile paths.
1969 * doc/invoke.texi (-fprofile-dir): Update for above change.
1971 2011-05-13 Richard Guenther <rguenther@suse.de>
1973 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1974 type-pair caching, do not compare hashes.
1976 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1979 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1980 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1982 2011-05-13 Kai Tietz <ktietz@redhat.com>
1984 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1985 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1986 compatible type for TRUTH_NOT_EXPR.
1988 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1990 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1991 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1992 can_create_pseudo_p ().
1994 2011-05-13 Richard Guenther <rguenther@suse.de>
1997 * gimple.c (iterative_hash_gimple_type): Revert change in
1998 pointer target and function result and argument hashing.
2000 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2002 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2003 (*movxf_internal_nointeger): Ditto.
2004 (*movdf_internal_rex64): Ditto.
2005 (*movdf_internal): Ditto.
2006 (*movdf_internal_nointeger): Ditto.
2007 (*movsf_internal): Ditto.
2008 (sincos splitters): Use can_create_pseudo ().
2010 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2012 * config/i386/i386-opts.h: New.
2013 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2014 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2015 ix86_section_threshold): Remove.
2016 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2017 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2019 (ix86_option_override_internal): Don't decode strings for options
2020 other than -march=, -mtune= and -mfpmath=. Don't allow for
2021 __attribute__ uses in remaining diagnostics for options with
2022 string arguments. Don't check for integer arguments being negative.
2023 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2024 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2025 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2026 ix86_branch_cost, ix86_section_threshold): Remove.
2027 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2029 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2031 (masm=): Use Enum and Init.
2032 (asm_dialect): New Enum and EnumValue entries.
2033 (mbranch-cost=): Use UInteger.
2034 (mlarge-data-threshold=): Use UInteger and Init.
2035 (mcmodel=): Use Enum and Init.
2036 (cmodel): New Enum and EnumValue entries.
2037 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2038 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2039 mregparm=): Use UInteger.
2040 (mstringop-strategy=): Use Enum and Init.
2041 (stringop_alg): New Enum and EnumValue entries.
2042 (mtls-dialect=): Use Enum and Init.
2043 (tls_dialect): New Enum and EnumValue entries.
2044 (mabi=): Use Enum and Init.
2045 (calling_abi): New Enum and EnumValue entries.
2046 (mveclibabi=): Use Enum and Init.
2047 (ix86_veclibabi): New Enum and EnumValue entries.
2049 2011-05-13 Nick Clifton <nickc@redhat.com>
2051 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2052 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2054 2011-05-13 Kai Tietz <ktietz@redhat.com>
2057 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2058 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2059 (gimple_boolify): Check for cast for boolean_type_node instead for
2062 2011-05-13 Richard Guenther <rguenther@suse.de>
2064 PR tree-optimization/48172
2065 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2066 multiplying by number of iterations for equal step.
2067 (vect_create_cond_for_alias_checks): Likewise.
2069 2011-05-13 Andreas Schwab <schwab@redhat.com>
2071 * configure.ac: Use AS_HELP_STRING throughout.
2072 * configure: Regenerate.
2074 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2076 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2077 (ix86_emit_restore_regs_using_mov): Likewise.
2078 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2080 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2082 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2083 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2084 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2085 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2086 RTX_OK_FOR_OLO10_P): ...here.
2087 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2090 2011-05-12 Kai Tietz <ktietz@redhat.com>
2092 * gimplify.c (gimple_boolify): Re-boolify expression
2093 arguments even if expression type is of kind BOOLEAN_TYPE.
2094 (gimplify_boolean_expr): Removed.
2095 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2096 and XOR. Additional take care that we keep expression's type.
2097 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2098 of TRUTH_AND|OR|XOR_EXPR.
2100 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2102 PR tree-optimization/48975
2103 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2104 on all bbs here and free and clear ifc_bbs at the end.
2106 2011-05-12 Richard Guenther <rguenther@suse.de>
2108 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2109 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2110 until after simple checks.
2111 (gimple_types_compatible_p): Likewise.
2112 (iterative_hash_gimple_type): Always hash pointer targets
2113 and function return and argument types.
2114 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2115 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2116 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2117 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2118 completely in the simple compare section.
2119 (gimple_register_canonical_type): Query the cache again after
2122 2011-05-12 Richard Guenther <rguenther@suse.de>
2124 PR tree-optimization/48172
2125 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2126 the number of iterations from the segment size calculation.
2127 (vect_create_cond_for_alias_checks): Adjust.
2129 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2132 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2133 if validate_subreg fails.
2135 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2137 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2138 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2141 2011-05-12 DJ Delorie <dj@redhat.com>
2143 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2144 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2145 created builtin into rx_builtins array.
2146 (rx_builtin_decl): New function.
2147 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2149 2011-05-12 DJ Delorie <dj@redhat.com>
2150 Nick Clifton <nickc@redhat.com>
2152 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2153 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2154 (rx_is_legitimate_address): Add pre-decrement and post-increment
2155 addressing in HImode and QImode. Fix test for out of range
2157 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2158 (rx_align_for_label): Test label before extracting its usage count.
2159 (rx_adjust_insn_lengths): Fix selection of insn codes.
2160 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2162 2011-05-11 Jason Merrill <jason@redhat.com>
2164 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2166 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2168 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2169 reindent the subsequent block.
2171 2011-05-11 Satoru Takabayashi <satorux@google.com>
2172 Paul Pluzhnikov <ppluzhnikov@google.com>
2174 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2175 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2176 * config.in: Add LINKER_HASH_STYLE.
2177 * configure.ac: Add --with-linker-hash-style.
2178 * configure: Regenerate.
2180 2011-05-11 Richard Guenther <rguenther@suse.de>
2183 * gimple.c (iterative_hash_canonical_type): Fix typo.
2185 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2187 * config/i386/i386.c (legitimize_tls_address)
2188 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2189 expanders directly for TARGET_GNU2_TLS. Determine pic and
2190 __tls_get_addr symbol reference here. Update call to
2191 gen_tls_global_dynamic_{32,64} for added arguments.
2192 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2193 expanders directly for TARGET_GNU2_TLS. Determine
2194 __tls_get_addr symbol reference here. Update call to
2195 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2196 unique UNSPEC REG_EQUIV to libcall block.
2197 (ix86_tls_get_addr): Declare static.
2198 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2199 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2200 Do not determine pic and __tls_get_addr symbol reference here. Do not
2201 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2202 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2203 (tls_global_dynamic_64): Add operand 2. Do not determine
2204 __tls_get_addr symbol reference here. Do not call
2205 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2206 (tls_local_dynamic_base64): Ditto for operand 1.
2208 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2210 * function.c (expand_function_start): Initialize stack_check_probe_note
2211 only if the generic stack checking mechanism is used.
2213 2011-05-11 Richard Guenther <rguenther@suse.de>
2215 PR tree-optimization/15256
2216 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2217 (A & B) | C, combine (A op CST1) op CST2.
2218 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2219 visit assigns that have uses.
2221 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2223 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2224 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2225 (unpack_ts_type_common_value_fields): ...this. Update comment.
2226 (unpack_value_fields): Adjust for renaming.
2227 (lto_input_ts_type_tree_pointers): Split into...
2228 (lto_input_ts_type_common_tree_pointer): ...this and...
2229 (lto_input_ts_type_non_common_tree_pointers): ...this.
2230 (lto_input_tree_pointers): Adjust for above split.
2231 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2232 (pack_ts_type_common_value_fields): ...this. Update comment.
2233 (lto_output_ts_type_tree_pointers): Split into...
2234 (lto_output_ts_type_common_tree_pointers): ...this and...
2235 (lto_output_ts_type_non_common_tree_pointers): ...this.
2236 (lto_output_tree_pointers): Adjust for above split.
2237 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2238 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2239 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2240 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2242 (struct tree_type): Split into...
2243 (struct tree_type_common: ...this and...
2244 (struct tree_type_with_lang_specific): ...this and...
2245 (struct tree_type_non_common): ...this. Adjust accessor macros
2247 (TYPE_VALUES_RAW): Define.
2248 (union tree_node): Update for above changes.
2249 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2251 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2252 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2253 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2254 * treestructu.def (TS_TYPE): Remove.
2255 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2258 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2261 * tree-ssa.c (reset_debug_uses): New function.
2262 * tree-flow.h (reset_debug_uses): New prototype.
2263 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2264 * tree-loop-distribution.c (generate_loops_for_partition): Call
2265 reset_debug_uses on the stmts that will be removed. Keep around
2266 all debug stmts, don't count them as bits in partition bitmap.
2267 (generate_builtin): Don't count debug stmts or labels as bits in
2270 2011-05-11 Richard Guenther <rguenther@suse.de>
2272 * gimple.c (gimple_type_hash_1): Merge with ...
2273 (gimple_type_hash): ... this.
2274 (gtc_visit): Remove mode parameter and simplify accordingly.
2275 (gimple_types_compatible_p_1): Likewise.
2276 (gimple_types_compatible_p): Likewise.
2277 (iterative_hash_gimple_type): Likewise.
2279 (gimple_type_eq): Adjust.
2281 2011-05-11 Revital Eres <revital.eres@linaro.org>
2283 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2284 enters the branch create an anti edge in the opposite direction
2285 to prevent the creation of reg-moves.
2286 * modulo-sched.c: Adjust comment to reflect the fact we are
2287 scheduling closing branch.
2288 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2289 (stage_count): New field in struct partial_schedule.
2290 (calculate_stage_count): New function.
2291 (normalize_sched_times): Rename to reset_sched_times and handle
2292 incrementing the sched time of the nodes by a constant value
2293 passed as parameter.
2294 (duplicate_insns_of_cycles): Skip closing branch.
2295 (sms_schedule_by_order): Schedule closing branch.
2296 (ps_insn_find_column): Handle closing branch.
2297 (sms_schedule): Call reset_sched_times and adjust the code to
2298 support scheduling of the closing branch.
2299 (ps_insert_empty_row): Update calls to normalize_sched_times
2300 and rotate_partial_schedule functions.
2302 2011-05-11 Richard Guenther <rguenther@suse.de>
2305 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2307 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2309 * opts.c (finish_options): Move warning settings from process_options.
2310 * toplev.c (process_options): Move warning settings to finish_options.
2312 2011-05-11 Richard Guenther <rguenther@suse.de>
2314 PR tree-optimization/18041
2315 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2316 (simplify_bitwise_binary): ... this. Handle operand conversions
2317 by applying them to the result instead.
2318 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2320 2011-05-11 Richard Guenther <rguenther@suse.de>
2322 * gimple.c (gimple_canonical_types_compatible_p): Split out
2323 from gimple_types_compatible_p and friends. Do not recurse
2324 to pointed-to types.
2325 (gimple_canonical_type_eq): Use it.
2326 (iterative_hash_canonical_type): Split out from
2327 iterative_hash_gimple_type and friends. Do not recurse
2328 to pointed-to types.
2329 (gimple_canonical_type_hash): Use it, allocate the hash here.
2331 2011-05-11 Revital Eres <revital.eres@linaro.org>
2333 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2336 2011-05-11 Revital Eres <revital.eres@linaro.org>
2338 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2339 instead of PREV_INSN.
2341 2011-05-11 Revital Eres <revital.eres@linaro.org>
2343 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2344 * loop-doloop.c (doloop_condition_get): Likewise.
2345 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2347 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2349 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2351 * tree.def (CASE_LABEL_EXPR): Add an operand.
2352 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2354 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2356 * c-decl.c (c_override_global_bindings_to_false): Remove.
2357 (global_bindings_p): Don't check
2358 c_override_global_bindings_to_false.
2359 * c-tree.h (c_override_global_bindings_to_false): Remove.
2360 * c-typeck.c (composite_type): Don't set
2361 c_override_global_bindings_to_false.
2363 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2365 PR target/48857, 48495
2366 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2368 (VSX_MOVE_MODE): Ditto.
2369 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2370 VSX vector types. Add V2DImode.
2371 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2372 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2373 (MODES_TIEABLE_P): Ditto.
2375 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2376 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2378 (init_cumulative_args): Ditto.
2379 (rs6000_function_arg_boundary): Ditto.
2380 (rs6000_function_arg_advance_1): Ditto.
2381 (rs6000_function_arg): Ditto.
2382 (rs6000_function_ok_for_sibcall): Ditto.
2383 (emit_frame_save): Ditto.
2384 (rs6000_function_value): Ditto.
2385 (rs6000_libcall_value): Ditto.
2387 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2389 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2390 i386/darwin-lib.h to $libgcc_tm_file.
2391 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2393 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2395 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2397 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2399 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2400 * config/rs6000/rs6000-tables.opt: New file (generated).
2401 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2402 rs6000/rs6000-tables.opt to extra_options.
2403 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2404 * config/rs6000/rs6000.c (rs6000_select): Remove.
2405 (processor_target_table): Move contents to rs6000-cpus.def.
2406 (darwin_rs6000_override_options): Check
2407 global_options_set.x_rs6000_cpu_index instead of
2408 rs6000_select[1].string.
2409 (rs6000_option_override_internal): Likewise.
2410 (rs6000_handle_option): Don't assert that global structures are in
2411 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2412 (rs6000_default_cpu): New variable.
2413 (rs6000_file_start): Set it instead of local default_cpu. Check
2414 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2415 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2416 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2417 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2418 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2419 rs6000_select): Remove.
2420 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2422 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2423 * config/rs6000/t-rs6000
2424 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2425 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2426 global_options_set.x_rs6000_cpu_index instead of
2427 rs6000_select[1].string.
2428 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2429 global_options_set.x_rs6000_cpu_index instead of
2430 rs6000_select[1].string.
2432 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2434 * config.gcc (libgcc_tm_file): Define instead of including files
2435 from ../../libgcc/config/ in tm_file.
2436 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2437 * configure: Regenerate.
2438 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2439 libgcc_tm.h, cs-libgcc_tm.h): New.
2440 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2441 (clean): Remove libgcc_tm.h.
2442 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2443 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2444 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2446 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2449 * config/avr/avr.c (avr_ret_register): Return unsigned int
2451 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2452 it to avr_libcall_value.
2453 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2455 (avr_expand_binop_builtin): Ditto.
2456 (avr_expand_unop_builtin): Ditto.
2458 2011-05-10 DJ Delorie <dj@redhat.com>
2460 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2461 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2462 * config/rx/rx.c (rx_align_for_label): Add label and
2463 uses_threshold parameters. Do not align when the label is not
2465 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2467 2011-05-10 Richard Guenther <rguenther@suse.de>
2469 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2470 a series of conversions and apply foldings similar to what
2472 (tree_ssa_forward_propagate_single_use_vars): Call it.
2474 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2476 PR tree-optimization/48611
2477 PR tree-optimization/48794
2478 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2479 referenced from RESX or EH_DISPATCH arguments.
2482 * dfp.c (decimal_to_decnumber): Handle conversion from
2483 dconst{1,2,m1,half}.
2485 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2487 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2488 for !flag_prefer_avx128.
2489 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2491 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2493 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2494 (fold_ternary_loc): Use expr_location_or.
2496 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2499 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2500 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2501 Pmode and mem_mode is not VOIDmode.
2503 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2505 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2506 TYPE_QUAL_RESTRICT): Convert to enum.
2508 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2510 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2511 (const_pow2_1_to_8_operand): Ditto.
2512 (const_pow2_1_to_128_operand): Ditto.
2513 (const_pow2_1_to_32768_operand): Ditto.
2514 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2515 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2516 in insn constraint to check integer value of operand 3.
2517 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2519 (PINSR_MODE): New mode iterator.
2520 (sse2p4_1): New mode attribute.
2521 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2522 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2523 iterator. Use const_int_operand instead of
2524 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2525 exact_log2 in insn constraint to check integer value of operand 3.
2527 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2529 * config/i386/sse.md (blendbits): Remove mode attribute.
2530 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2531 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2532 Check integer value of operand 3 in insn constraint.
2534 2011-05-09 Richard Guenther <rguenther@suse.de>
2536 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2538 (lto_symtab_merge): Likewise. Do not register types here.
2539 (lto_symtab_merge_decls_2): Likewise.
2540 (lto_symtab_merge_decls_1): Likewise.
2541 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2542 * gimple.c (enum gtc_mode): Declare.
2543 (gimple_types_compatible_p): Make static.
2545 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2547 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2548 temporary register to match Pmode.
2550 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2552 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2553 and *vec_concatv4si_1_avx.
2555 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2557 PR rtl-optimization/48927
2558 * ira-conflicts.c (commutative_constraint_p): Use
2559 recog_data.alternative_enabled_p to disable alternatives where
2560 "enabled" attribute is false.
2561 (get_dup_num): Ditto.
2562 * ira-lives.c (single_reg_class): Ditto.
2563 (ira_implicitly_set_insn_hard_regs): Ditto.
2565 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2567 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2568 (dataflow_set_preserve_mem_locs): Likewise.
2570 2011-05-09 Philipp Thomas <pth@suse.de>
2572 * config/mep/mep.c (mep_validate_vliw): Syntax description
2573 should not be translated.
2575 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2577 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2578 * config/mips/mips-tables.opt: New file (generated).
2579 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2580 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2581 MIPS_ARCH_OPTION_NATIVE): Define.
2582 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2584 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2585 mips_parse_cpu): Remove.
2586 (mips_cpu_info_from_opt, mips_default_arch): New.
2587 (mips_handle_option): Don't assert that global structures are in
2588 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2589 (mips_option_override): Use new variables and functions to set
2590 state of these options. Use strcmp to check for individual CPU names.
2591 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2593 * config/mips/mips.opt (march=): Use ToLower and Enum.
2594 (mips): Use ToLower, Enum and Var.
2595 (mtune=): Use ToLower and Enum.
2596 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2598 2011-05-08 Jan Hubicka <jh@suse.cz>
2600 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2601 Arrange type pairs to be UID ordered.
2602 (gimple_lookup_type_leader): Make inline.
2604 2011-05-09 Nick Clifton <nickc@redhat.com>
2607 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2611 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2614 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2616 * combine.c (simplify_comparison): Abstract out parts into...
2617 (simplify_compare_const): ... new function.
2618 (try_combine): Generalize parallel arithmetic/compare combining
2619 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2621 2011-05-08 Jan Hubicka <jh@suse.cz>
2623 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2624 (cgraph_create_virtual_clone): Call hooks once virtual clone
2626 * cgraph.h (cgraph_clone_node): Update prototype.
2627 * ipa-cp.c (ipcp_estimate_growth): Use
2628 estimate_ipcp_clone_size_and_time.
2629 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2630 * lto-cgraph.c (input_node): Update.
2631 * ipa-inline.c (recursive_inlining): Update.
2632 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2633 (evaluate_conditions_for_known_args): Break out from ...
2634 (evaluate_conditions_for_edge): ... here.
2635 (evaluate_conditions_for_ipcp_clone): New function.
2636 (inline_node_duplication_hook): Update clone summary based
2638 (estimate_callee_size_and_time): Rename to ...
2639 (estimate_node_size_and_time): take NODE instead of EDGE;
2640 take POSSIBLE_TRUTHS as argument.
2641 (estimate_callee_size_and_time): Update.
2642 (estimate_ipcp_clone_size_and_time): New function.
2643 (do_estimate_edge_time): Update.
2645 2011-05-08 Richard Guenther <rguenther@suse.de>
2649 * expmed.c (expand_shift_1): Compute adjusted constant shift
2652 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2654 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2656 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2658 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2660 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2662 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2664 2011-05-07 Jan Hubicka <jh@suse.cz>
2666 * ipa-inline-transform.c (inline_call): Account when program size
2668 * ipa-inline.c (relative_time_benefit): New function.
2669 (edge_badness): Reorganize to be power 2 based; fix thinko when
2670 computing badness for negative growth; update comments to match
2671 reality; better dumps.
2673 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2675 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2676 type to bool and adjust comment.
2677 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2678 (fold_mathfn_compare): Remove calls to global_bindings_p.
2679 (fold_inf_compare): Likewise.
2680 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2681 * c-tree.h (global_bindings_p): Adjust prototype.
2682 * c-decl.c (global_bindings_p): Return bool and simplify.
2684 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2686 PR tree-optimization/48837
2687 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2688 when accumulator transformation is performed.
2690 2011-05-06 Jan Hubicka <jh@suse.cz>
2692 * i386.h (ix86_tune_indices): Add
2693 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2694 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2695 * i386.c (initial_ix86_tune_features): Add
2696 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2697 (software_prefetching_beneficial_p): Remove predicate.
2698 (ix86_option_override_internal): Use new macro.
2700 2011-05-06 Jan Hubicka <jh@suse.cz>
2702 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2704 2011-05-06 Jan Hubicka <jh@suse.cz>
2706 * cgraph.c (cgraph_add_thunk): Create real function node instead
2707 of alias node; finalize it and mark needed/reachale; arrange visibility
2708 to be right and add it into the corresponding same comdat group list.
2709 (dump_cgraph_node): Dump thunks.
2710 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2711 cgraph_function_with_gimple_body_p,
2712 cgraph_first_function_with_gimple_body,
2713 cgraph_next_function_with_gimple_body): New functions.
2714 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2716 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2717 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2718 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2719 devirtualization when optimizing.
2720 (verify_cgraph_node): Verify thunks.
2721 (cgraph_analyze_function): Analyze thunks.
2722 (cgraph_mark_functions_to_output): Output thunks only in combination
2723 with function they are assigned to.
2724 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2725 alias into normal node.
2726 (assemble_thunks): New functoin.
2727 (cgraph_expand_function): Use it.
2728 * lto-cgraph.c (lto_output_node): Stream thunks.
2729 (input_overwrite_node): Stream in thunks.
2730 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2731 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2732 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2733 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2734 (inline_analyze_function): Do not care about thunk jump functions.
2735 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2736 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2737 cgraph_function_with_gimple_body_p.
2738 * passes.c (do_per_function_toporder): Use
2739 cgraph_function_with_gimple_body_p.
2740 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2741 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2742 (function_called_by_processed_nodes_p): Likewise.
2744 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2746 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2747 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2749 (mabi=): Replace with separate entries for mabi=altivec,
2750 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2751 mabi=ieeelongdouble and mabi=ibmlongdouble.
2752 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2753 check for -mabi=spe without SPE ABI support here.
2754 (rs6000_handle_option): Replace OPT_mabi_ handling with
2755 OPT_mabi_altivec and OPT_mabi_spe handling.
2757 2011-05-06 Cary Coutant <ccoutant@google.com>
2759 * dwarf2out.c (contains_subprogram_definition): New function.
2760 (should_move_die_to_comdat): Call it.
2762 2011-05-06 Jeff Law <law@redhat.com>
2764 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2765 remove_ctrl_stmt_and_useless_edges.
2766 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2767 (fixup_template_block, thread_single_edge): Likewise.
2768 (mark_threaded_blocks): Use THREAD_TARGET.
2770 2011-05-06 Alan Modra <amodra@gmail.com>
2773 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2774 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2776 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2778 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2779 constraint modifier to "r".
2781 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2783 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2784 fall through for OPT_mcmodel_.
2786 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2788 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2790 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2792 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2795 * config/arm/arm.opt (marm): Document it.
2796 (mthumb): Reject negative variant.
2798 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2801 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2802 Fix typo in "ccvt" variable name.
2804 2011-05-06 Tristan Gingold <gingold@adacore.com>
2807 * config/vms/vms-ar.c (main): Remove cwd variable.
2809 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2812 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2814 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2816 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2817 * gimplify.c (gimplify_switch_expr): Likewise.
2818 * omp-low.c (expand_omp_sections): Likewise.
2819 * tree-eh.c (lower_try_finally_switch): Likewise.
2820 (lower_eh_dispatch): Likewise.
2821 * tree.h (build_case_label): Declare.
2822 * tree.c (build_case_label): Define.
2824 2011-05-05 Jason Merrill <jason@redhat.com>
2827 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2828 (copy_statement_list): Don't recurse.
2829 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2832 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2834 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2835 through from -mfpu= handling.
2836 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2838 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2840 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2843 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2845 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2847 (hppa[12]*-*-hpux11*): Ditto.
2848 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2849 * config/ia64/hpux-unix2003.h: New.
2850 * config/pa/pa-hpux1131.opt: New.
2851 * config/pa/pa-hpux1131.h: New.
2852 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2853 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2854 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2856 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2859 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2860 instead of mode as 3rd argument to recursive call.
2861 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2862 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2864 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2865 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2866 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2867 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2869 2011-05-05 Julian Brown <julian@codesourcery.com>
2871 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2872 parenthesis in D-register case.
2874 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2876 * opt-functions.awk (var_type_struct): Handle Enum options.
2877 * optc-gen.awk: Don't check range of variables of character type.
2878 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2879 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2880 rs6000_sdata_name, rs6000_explicit_options): Remove.
2881 (rs6000_option_override_internal): Check for -malign-power here.
2882 Use global_options_set instead of rs6000_explicit_options.
2883 (rs6000_parse_fpu_option): Remove.
2884 (rs6000_handle_option): Access variables via opts and opts_set
2885 pointers. Use error_at and warning_at. Add fall-through
2886 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2887 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2888 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2889 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2890 here. Don't use rs6000_parse_fpu_option.
2891 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2892 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2893 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2895 (mspe): Use Var and Save.
2896 (mtraceback=): Use Enum and Var.
2897 (rs6000_traceback_type): New Enum and EnumValue entries.
2898 (mfloat-gprs=): Use Enum, Var and Save.
2899 (rs6000_float_gprs): New Enum and EnumValue entries.
2900 (mlong-double-): use Var and Save.
2901 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2902 (malign-): Use Enum and Var.
2903 (rs6000_alignment_flags): New Enum and EnumValue entries.
2905 (fpu_type_t): New Enum and EnumValue entries.
2906 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2907 global_options_set instead of rs6000_explicit_options.
2908 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2909 global_options_set instead of rs6000_explicit_options.
2910 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2911 global_options_set instead of rs6000_explicit_options.
2912 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2913 global_options_set instead of rs6000_explicit_options.
2914 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2915 global_options_set instead of rs6000_explicit_options.
2916 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2917 global_options_set instead of rs6000_explicit_options.
2918 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2920 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2921 global_options_set instead of rs6000_explicit_options.
2922 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2923 (rs6000_cmodel): New Enum and EnumValue entries.
2924 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2925 global_options_set instead of rs6000_explicit_options.
2926 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2927 (mtls-size=): Use Enum and Var.
2928 (rs6000_tls_size): New Enum and EnumValue entries.
2930 2011-05-05 Michael Matz <matz@suse.de>
2932 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2933 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2934 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2935 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2936 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2937 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2938 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2939 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2940 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2941 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2942 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2943 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2944 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2945 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2946 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2947 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2949 2011-05-05 Richard Guenther <rguenther@suse.de>
2951 * expmed.c (expand_variable_shift): Rename to ...
2952 (expand_shift_1): ... this. Take an expanded shift amount.
2953 For rotates recurse directly not building trees for the shift amount.
2954 (expand_variable_shift): Wrap around expand_shift_1.
2955 (expand_shift): Adjust.
2957 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2959 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2961 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2963 * tree.h (get_pending_sizes): Remove prototype.
2964 (put_pending_size): Likewise.
2965 (put_pending_sizes): Likewise.
2966 * stor-layout.c (pending_sizes): Delete.
2967 (get_pending_sizes): Likewise.
2968 (put_pending_size): Likewise.
2969 (put_pending_sizes): Likewise.
2970 (variable_size): Do not call put_pending_size and tidy up.
2971 * function.h (struct function): Remove dont_save_pending_sizes_p.
2972 * lto-streamer-in.c (input_function): Do not stream it.
2973 * lto-streamer-out.c (output_function): Likewise.
2974 * tree-inline.c (initialize_cfun): Do not copy it.
2975 * c-decl.c (store_parm_decls): Do not set it.
2976 * omp-low.c (create_task_copyfn): Likewise.
2977 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2979 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2981 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2983 (*movdf_internal): Ditto.
2984 (*movdf_internal_nointeger): Ditto.
2985 (*movsf_internal): Ditto.
2987 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2989 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2990 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2991 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2992 (c_variable_size): Remove.
2993 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2994 call put_pending_sizes.
2995 (get_parm_info): Add parameter expr. Use it to set
2996 arg_info->pending_sizes.
2997 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2999 * c-parser.c (c_parser_parms_declarator): Update call to
3000 c_parser_parms_list_declarator.
3001 (c_parser_parms_list_declarator): Take parameter expr. Update
3002 call to push_parm_decl. Update recursive call. Don't call
3003 get_pending_sizes. Update calls to get_parm_info.
3004 (c_parser_objc_method_definition): Update calls to
3005 c_parser_objc_method_decl and objc_start_method_definition.
3006 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3007 (c_parser_objc_method_decl): Add parameter expr. Update call to
3009 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3010 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3011 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3013 2011-05-05 Michael Hope <michael.hope@linaro.org>
3016 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3019 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3021 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3022 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3023 (spu_output_mi_thunk): New function.
3025 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3027 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3028 targetm.asm_out.print_operand.
3029 * config/sol2.c: Include target.h.
3031 2011-05-04 Jan Hubicka <jh@suse.cz>
3033 * ipa-inline.c (reset_edge_caches): New function.
3034 (update_caller_keys): Add check_inlinablity_for; do not
3035 reset edge caches; remove now unnecesary loop.
3036 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3037 (update_all_callee_keys): Likewise.
3038 (inline_small_functions): Sanity check cache; update code
3041 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3043 PR rtl-optimization/47612
3044 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3045 as the last insn of the sequence to be moved.
3047 2011-05-04 Tobias Burnus <burnus@net-b.de>
3050 * doc/invoke.texi (Ofast): Document that it
3051 enables Fortran's -fno-protect-parens.
3053 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3055 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3057 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3059 * stor-layout.c (variable_size): Do not issue errors.
3061 2011-05-04 Richard Guenther <rguenther@suse.de>
3063 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3064 for array-ref indices.
3065 (tree_coverage_counter_addr): Likewise.
3066 (build_fn_info_type): Use size_int for index types.
3067 (build_gcov_info): Likewise.
3069 2011-05-04 Richard Guenther <rguenther@suse.de>
3071 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3073 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3074 for constructor indices.
3075 (push_init_level): Likewise.
3077 2011-05-04 Richard Guenther <rguenther@suse.de>
3079 * explow.c (promote_mode): Move variable declarations before code.
3081 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3083 * tree.h (build_function_type_array): Declare.
3084 (build_varargs_function_type_array): Declare.
3085 (build_function_type_vec, build_varargs_function_type_vec): Define.
3086 * tree.c (build_function_type_array_1): New function.
3087 (build_function_type_array): New function.
3088 (build_varargs_function_type_array): New function.
3090 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3092 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3093 before setting STMT_VINFO_TYPE.
3095 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3097 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3098 instead of spu_pass_by_reference.
3100 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3102 * calls.c (emit_library_call_value_1): Invoke
3103 promote_function_mode hook on libcall arguments.
3104 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3105 argument being NULL.
3106 * targhooks.c (default_promote_function_mode): Lisewise.
3107 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3108 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3110 * doc/tm.texi: Document that TYPE argument might be NULL.
3112 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3114 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3116 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3119 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3121 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3123 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3124 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3126 * mips-tfile.c: ... here.
3127 Don't include coretypes.h, tm.h, filenames.h.
3128 (saber_stop): Remove definition and all calls.
3129 [__SABER__]: Remove.
3130 (__LINE__): Remove default.
3131 (Size_t, Ptrdiff_t): Remove definitions.
3132 Replace by size_t, ptrdiff_t.
3133 [!MIPS_DEBUGGING_INFO]: Remove.
3134 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3135 (progname): Add const.
3137 Replace all uses by static.
3138 (ALIGN_SYMTABLE_OFFSET): Remove default.
3139 * mips-tdump.c: Don't include coretypes.h, tm.h.
3140 Remove !MIPS_IS_STAB guard.
3141 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3142 $(TM_H), filenames.h dependencies.
3143 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3145 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3148 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3149 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3151 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3154 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3155 account and save/restore RETS.
3156 (PROFILE_BEFORE_PROLOGUE): Define.
3157 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3158 the push insn to use predecrement.
3160 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3163 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3165 2011-05-04 Nick Clifton <nickc@redhat.com>
3167 * config/mn10300/mn10300.c: Include cfgloop.h.
3169 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3170 Lcc or a FLcc insn into the instruction stream.
3171 (mn10300_block_contains_call): New function. Returns true if the
3172 given basic block contains a CALL insn.
3173 (mn10300_loop_contains_call_insn): New function. Returns true if
3174 the given loop contains a CALL insn.
3175 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3176 to use the SETLB and Lcc or FLcc insns.
3177 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3178 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3179 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3180 disable the SETLB optimization.
3181 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3182 __SETLB__ or __NO_SETLB__.
3183 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3184 (movsf_internal): Handle MDR register.
3185 (cmpsi): Make visible.
3186 (setlb): New pattern.
3188 (FLcc): New pattern.
3190 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3193 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3194 for reg<->xmm moves.
3195 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3196 (vec_concatv2di_rex64_sse): Ditto.
3197 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3198 (*vec_extractv2di_1_rex64): Ditto.
3201 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3203 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3205 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3207 2011-05-04 Richard Guenther <rguenther@suse.de>
3209 * tree.h (int_const_binop): Remove notrunc argument.
3210 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3211 create integer constants that are properly truncated.
3212 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3213 (const_binop): Remove zero notrunc argument to int_const_binop.
3214 (size_binop_loc): Likewise.
3215 (fold_div_compare): Likewise.
3216 (maybe_canonicalize_comparison_1): Likewise.
3217 (fold_comparison): Likewise.
3218 (fold_binary_loc): Likewise.
3219 (multiple_of_p): Likewise.
3220 * expr.c (store_constructor): Likewise.
3221 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3222 (maybe_fold_stmt_addition): Likewise.
3223 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3224 * stor-layout.c (layout_type): Likewise.
3225 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3226 * tree-sra.c (build_ref_for_offset): Likewise.
3227 (build_user_friendly_ref_for_offset): Likewise.
3228 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3229 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3230 * tree-ssa-loop-niter.c (inverse): Likewise.
3231 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3232 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3233 * tree-switch-conversion.c (check_range): Likewise.
3234 (build_constructors): Likewise.
3235 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3236 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3237 (extract_range_from_assert): Likewise.
3238 (vrp_int_const_binop): Likewise.
3239 (extract_range_from_binary_expr): Likewise.
3240 (extract_range_from_unary_expr): Likewise.
3241 (check_array_ref): Likewise.
3242 (find_case_label_range): Likewise.
3243 (simplify_div_or_mod_using_ranges): Likewise.
3244 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3245 comparing case labels for merging.
3247 2011-05-03 Mark Wielaard <mjw@redhat.com>
3249 * dwarf2out.c (debug_str_hash_forced): Removed.
3250 (gen_label_for_indirect_string): Removed.
3251 (get_debug_string_label): Removed.
3252 (AT_string_form): Generate label directly.
3253 (output_indirect_string): Test indirect_string_node for
3254 DW_FORM_strp instead of checking label and refcount.
3255 (prune_indirect_string): Removed.
3256 (prune_unused_types): Don't check debug_str_hash_forced or
3257 call prune_indirect_string.
3259 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3262 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3264 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3268 * combine.c (try_combine): Skip debug insns at m_split tests.
3270 2011-04-26 Mark Wielaard <mjw@redhat.com>
3273 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3274 when info_section_emitted.
3276 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3278 * config/mips/mips-opts.h: New.
3279 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3281 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3282 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3283 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3285 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3287 (mips_abi, mips_code_readable): Don't declare.
3288 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3289 (mabi=): Use Enum and Var.
3290 (mips_abi): New Enum and EnumValue entries.
3291 (mcode-readable=): Use Enum and Var.
3292 (mips_code_readable_setting): New Enum and EnumValue entries.
3293 (mr10k-cache-barrier=): Use Enum and Var.
3294 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3296 2011-05-03 Jan Hubicka <jh@suse.cz>
3298 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3299 replace hash by pointer map.
3300 (cgraph_node_set_element_def, cgraph_node_set_element,
3301 const_cgraph_node_set_element, varpool_node_set_element_def,
3302 varpool_node_set_element, const_varpool_node_set_element): Remove.
3303 (free_cgraph_node_set, free_varpool_node_set): New function.
3304 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3305 * tree-emutls.c: Free varpool node set.
3306 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3307 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3308 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3309 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3310 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3311 Move here from ipa.c; implement using pointer_map
3312 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3313 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3314 debug_cgraph_node_set, varpool_node_set_new,
3315 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3316 dump_varpool_node_set, debug_varpool_node_set):
3317 Move to ipa-uitls.c.
3318 * passes.c (ipa_write_summaries): Update.
3320 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3322 From Mike Frysinger:
3323 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3324 bf542/bf544/bf547/bf548/bf549.
3326 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3328 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3330 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3333 * config/bfin/bfin.md (MOVCC): New mode_macro.
3334 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3335 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3336 comments from generated assembly.
3338 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3341 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3342 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3343 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3344 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3345 * config/bfin/lib1funcs.asm (___muldi3): New function.
3347 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3349 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3350 build_function_type_list instead of build_function_type.
3351 Rearrange initialization of `args' to do so.
3353 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3355 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3356 instead of build_function_type.
3358 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3360 * config/rs6000/rs6000.c (spe_init_builtins): Call
3361 build_function_type_list instead of build_function_type.
3362 (paired_init_builtins, altivec_init_builtins): Likewise.
3363 (builtin_function_type): Likewise.
3365 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3367 * config/sh/sh.c (sh_media_init_builtins): Call
3368 build_function_type_list instead of build_function_type.
3370 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3372 * config/sparc/sparc.c (sparc_file_end): Call
3373 build_function_type_list instead of build_function_type.
3375 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3377 * config/alpha/alpha.c (alpha_init_builtins): Call
3378 build_function_type_list instead of build_function_type.
3380 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3382 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3383 build_function_type_list instead of build_function_type.
3385 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3387 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3388 build_function_type_list instead of build_function_type.
3389 Delete `endlink' variable.
3391 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3393 * config/avr/avr.c (avr_init_builtins): Call
3394 build_function_type_list instead of build_function_type.
3396 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3398 * config/picochip/picochip.c (picochip_init_builtins): Call
3399 build_function_type_list instead of build_function_type.
3400 Delete `endlink' variable.
3402 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3404 * config/bfin/bfin.c (bfin_init_builtins): Call
3405 build_function_type_list instead of build_function_type.
3407 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3410 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3411 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3413 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3416 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3417 libbffastfp overrides libgcc when -mfast-fp.
3419 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3421 Originally from Bernd Schmidt
3422 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3423 * config/bfin/bfin.c (override_options): Test it and error if
3426 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3428 Originally From Bernd Schmidt
3429 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3432 2011-05-03 Jeff Law <law@redhat.com>
3434 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3435 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3436 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3437 than accessing AUX field directly. Free the AUX field before
3439 (thread_block, thread_through_loop_header): Likewise.
3440 (thread_single_edge, mark_threaded_blocks): Likewise.
3441 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3442 (register_jump_thread): Do not attempt to thread to a NULL edge.
3444 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3446 * function.c (init_function_start): Call decide_function_section.
3447 * varasm.c (decide_function_section): New function.
3448 (assemble_start_function): When not using
3449 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3450 or first_function_block_is_cold.
3451 * rtl.h (decide_function_section): Declare.
3453 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3454 Jakub Jelinek <jakub@redhat.com>
3457 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3458 only succeed if req_mode is the same as set_mode.
3460 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3462 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3463 * genemit.c (gen_exp): Handle RETURN.
3464 * emit-rtl.c (verify_rtx_sharing): Likewise.
3465 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3466 * rtl.c (copy_rtx): RETURN is shared.
3467 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3469 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3470 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3471 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3472 * config/cris/cris.c (cris_expand_return): Likewise.
3473 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3474 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3475 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3476 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3477 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3479 * config/v850/v850.c (expand_epilogue): Likewise.
3480 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3481 * config/arm/arm.md (epilogue): Likewise.
3482 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3483 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3484 variable to ret_reg.
3486 2011-05-03 Richard Guenther <rguenther@suse.de>
3489 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3490 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3491 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3493 2011-05-03 Richard Guenther <rguenther@suse.de>
3495 * c-decl.c (grokdeclarator): Instead of looking at
3496 TREE_OVERFLOW check if the constant fits in the index type.
3498 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3500 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3501 (vec_store_lanes<mode><mode>): Likewise.
3503 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3505 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3506 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3507 convert_optab_index values.
3508 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3509 * genopinit.c (optabs): Initialize the new optabs.
3510 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3511 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3512 (expand_STORE_LANES): New functions.
3513 * tree.h (build_array_type_nelts): Declare.
3514 * tree.c (build_array_type_nelts): New function.
3515 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3516 (vect_model_load_cost): Likewise.
3517 (vect_store_lanes_supported, vect_load_lanes_supported)
3518 (vect_record_strided_load_vectors): Declare.
3519 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3520 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3521 (vect_transform_strided_load): Split out statement recording into...
3522 (vect_record_strided_load_vectors): ...this new function.
3523 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3524 (write_vector_array, create_array_ref): New functions.
3525 (vect_model_store_cost): Add store_lanes_p argument.
3526 (vect_model_load_cost): Add load_lanes_p argument.
3527 (vectorizable_store): Try to use store-lanes functions for
3529 (vectorizable_load): Likewise load-lanes and loads.
3530 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3531 to vect_model_store_cost.
3532 (vect_build_slp_tree): Likewise vect_model_load_cost.
3534 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3536 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3537 * hooks.c (hook_bool_mode_uhwi_false): New function.
3538 * target.def (array_mode_supported_p): New hook.
3539 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3540 * doc/tm.texi: Regenerate.
3541 * stor-layout.c (mode_for_array): New function.
3542 (layout_type): Use it.
3543 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3544 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3546 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3549 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3550 for -fstack-check if the size to allocate is negative.
3552 2011-05-02 Lawrence Crowl <crowl@google.com>
3554 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3555 (timevar_cond_start): New for starting a timer only when it is not
3557 (timevar_cond_stop): New for stopping a timer when it was not already
3560 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3561 (timevar_cond_start): New as above.
3562 (timevar_cond_stop): New as above.
3564 * timevar.def: Add start/stop timers for compiler phases,
3565 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3566 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3567 and TV_PHASE_FINALIZE.
3568 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3569 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3570 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3571 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3572 Make unused TV_OVERLOAD into a start/stop timer.
3574 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3575 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3576 to indicate that they are start/stop timers.
3578 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3579 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3580 Move initialization to do_compile.
3581 (do_compile): Add initialization from above.
3582 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3584 * c-decl.c (c_write_global_declarations): Add start/stop of
3585 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3587 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3588 or TV_PARSE_INLINE, as appropriate.
3589 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3590 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3592 2011-05-02 Jason Merrill <jason@redhat.com>
3595 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3597 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3600 * c-decl.c (finish_decl): Only create a composite if the types are
3603 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3605 * config/fr30/fr30-protos.h (Mmode): Don't define.
3606 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3607 definition where used.
3608 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3609 define. Expand definitions where used.
3610 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3611 Expand definitions where used.
3612 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3613 rx_function_arg, rx_function_arg_advance,
3614 rx_function_arg_boundary): Expand definitions of those macros.
3615 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3616 definition where used.
3618 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3620 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3622 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3623 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3624 with *movv2sf_internal_rex64_avx.
3625 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3626 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3627 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3628 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3629 "vex" in "prefix" attribute calculation.
3630 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3632 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3635 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3636 inputs match the output.
3638 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3641 * config/m68k/m68k.c (m68k_expand_prologue): Set
3642 current_function_static_stack_size.
3644 2011-05-02 Jan Hubicka <jh@suse.cz>
3646 * lto-streamer.c (lto_streamer_cache_insert_1,
3647 lto_streamer_cache_lookup, lto_streamer_cache_create,
3648 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3649 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3651 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3653 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3654 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3655 config/m68k/t-opts: New files.
3656 * config/m68k/m68k-tables.opt: New file (generated).
3657 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3658 extra_options and m68k/t-opts to tmake_file.
3659 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3660 (all_isas): Initialize using m68k-isas.def.
3661 (all_microarchs): Initialize using m68k-microarchs.def.
3662 (m68k_find_selection): Remove.
3663 (m68k_handle_option): Don't assert that global structures are in
3664 use. Use error_at. Access variables via opts pointer. Don't
3665 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3666 directly for -m68020-40 and -m68020-60.
3667 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3668 m68k_tune_entry here.
3669 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3671 (m68k_library_id_string): Remove declaration.
3672 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3673 (m68k_library_id_string): New Variable.
3674 (march=, mcpu=, mtune=): Use Enum and Var.
3676 2011-05-02 Richard Guenther <rguenther@suse.de>
3678 * varasm.c (output_constructor_regular_field): Compute zero-based
3679 index with double-ints. Make sure to ICE instead of producing
3681 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3682 in asserts. Properly use a signed type.
3684 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3686 * config/i386/sse.md (V): New mode iterator.
3687 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3689 (V_256): Rename from AVX256MODE.
3690 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3691 condition to all users.
3693 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3694 condition to all users.
3695 (VF_128): Make V4SF mode unconditional.
3696 (VF_256): Rename from AVX256MODEF2P.
3697 (VI4F_128): Rename from SSEMODE4S.
3698 (VI8F_128): Rename from SSEMODE2D.
3699 (VI4F_256): Rename from AVX256MODE8P.
3700 (VI8F_256): Rename from AVX256MODE4P.
3701 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3702 (ssescalarmodesuffix): Remove SF and DF modes.
3703 (SSEMODE124): Remove.
3704 (SSEMODE1248): Ditto.
3705 (SSEMODEF2P): Ditto.
3706 (AVXMODEF2P): Ditto.
3707 (AVXMODEFDP): Ditto.
3708 (AVXMODEFSP): Ditto.
3709 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3711 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3713 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3714 xop_pcmov_<mode>256. Use V mode iterator.
3716 Adjust RTX patterns globally for renamed mode attributes.
3718 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3720 * haifa-sched.c (sched_emit_insn): Emit insn before first
3721 non-scheduled insn. Inform back-end about new insn. Add
3722 new insn to scheduled_insns list.
3724 2011-05-02 Richard Guenther <rguenther@suse.de>
3726 PR tree-optimization/48822
3727 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3728 (process_scc): Indicate which iteration we start.
3730 2011-05-02 Jan Hubicka <jh@suse.cz>
3732 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3733 (lto_section_overrun): New.
3734 * lto-section-out.c (append_block): Rename to ...
3735 (lto_append_block): ... this one; export.
3736 (lto_output_1_stream): Move lto lto-streamer.h
3737 (lto_output_data_stream): Update.
3738 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3739 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3742 2011-05-02 Richard Guenther <rguenther@suse.de>
3744 * tree.c (tree_code_counts): New global array.
3745 (record_node_allocation_statistics): Count individual tree codes.
3746 (dump_tree_statistics): Dump individual code stats.
3748 2011-05-01 Jan Hubicka <jh@suse.cz>
3750 * ipa-inline.c (caller_growth_limits): Fix thinko when
3751 looking for largest stack frame.
3752 * ipa-inline.h (dump_inline_summary): Declare.
3753 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3755 (dump_inline_summary): Export.
3756 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3758 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3760 * reginfo.c (memory_move_cost): Change rclass argument type form
3761 'enum reg_class' to reg_class_t.
3762 * reload.h (memory_move_cost): Update prototype.
3763 * postreload.c reload_cse_simplify_set): Change type dclass var to
3765 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3767 (ira_allocate_and_set_costs): Change aclass argument type form
3768 'enum reg_class' to reg_class_t.
3769 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3770 Change aclass argument type to reg_class_t.
3771 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3773 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3774 memory_move_cost call.
3776 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3777 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3778 Change type tmp var to reg_class_t.
3780 2011-04-30 Jan Hubicka <jh@suse.cz>
3782 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3783 inlining into function with flatten attribute.
3784 (want_inline_small_function_p): Be more realistic about inlining
3785 cold calls where callee size grows.
3787 2011-04-30 Jan Hubicka <jh@suse.cz>
3789 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3792 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3794 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3795 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3796 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3797 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3798 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3799 (print_operand): Rename to...
3800 (sparc_print_operand): ...this. Make static. Adjust
3801 sparc_print_operand function call.
3802 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3805 2011-04-30 Jan Hubicka <jh@suse.cz>
3808 * ipa-inline.c (early_inliner): Disable when doing late
3809 addition of function.
3811 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3813 * dwarf2out.c (get_address_mode): New inline.
3814 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3815 if not dwarf_strict emit
3816 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3817 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3818 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3819 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3820 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3821 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3822 mem_loc_descriptor callers.
3823 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3824 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3825 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3826 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3827 (base_types): New variable.
3828 (get_base_type_offset, calc_base_type_die_sizes,
3829 base_type_for_mode, mark_base_types, base_type_cmp,
3830 move_marked_base_types): New functions.
3831 (calc_die_sizes): Assert that die_offset is 0 or equal to
3833 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3834 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3835 callers. If not dwarf_strict, call mem_loc_descriptor even for
3836 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3837 (gen_subprogram_die): Don't give up on call site parameters
3838 with non-integral or large integral modes. Adjust
3839 mem_loc_descriptor callers.
3840 (prune_unused_types): Call prune_unused_types_mark on base_types
3842 (resolve_addr): Call mark_base_types.
3843 (dwarf2out_finish): Call move_marked_base_types.
3845 PR tree-optimization/48809
3846 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3848 (gen_inbound_check): Don't compute index_expr - range_min in utype
3849 again, instead reuse SSA_NAME initialized in build_arrays.
3850 Remove two useless gsi_for_stmt calls.
3852 2011-04-29 Jeff Law <law@redhat.com>
3854 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3856 2011-04-29 Martin Jambor <mjambor@suse.cz>
3858 * cgraph.h (cgraph_postorder): Remove declaration.
3859 * ipa-utils.h (ipa_free_postorder_info): Declare.
3860 (ipa_reverse_postorder): Likewise.
3861 * cgraphunit.c: Include ipa-utils.h.
3862 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3863 * ipa-inline.c: Include ipa-utils.h.
3864 (ipa_inline): Update call to ipa_reverse_postorder.
3865 * ipa-pure-const.c (propagate_pure_const): Update call to
3866 ipa_reduced_postorder and ipa_print_order. Call
3867 ipa_free_postorder_info to clean up.
3868 (propagate_nothrow): Likewise.
3869 * ipa-reference.c (propagate): Removed a useless call to
3870 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3871 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3872 * ipa.c: Include ipa-utils.h.
3873 (ipa_profile): Update call to ipa_reverse_postorder.
3874 (cgraph_postorder): Moved to...
3875 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3876 (ipa_utils_print_order): Renamed to ipa_print_order.
3877 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3879 (ipa_free_postorder_info): New function.
3880 * passes.c: Include ipa-utils.h.
3881 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3882 (ipa_write_summaries): Likewise.
3883 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3884 (cgraphunit.o): Likewise.
3886 (ipa-inline.o): Likewise.
3888 2011-04-29 Jan Hubicka <jh@suse.cz>
3890 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3891 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3892 * ipa-inline.h (clause_t): Turn into unsigned int.
3893 * ipa-inline-analysis.c (add_clause): Do more simplification.
3894 (and_predicates): Shortcut more cases.
3895 (predicates_equal_p): Move forward; check that clauses are properly
3897 (or_predicates): Shortcut more cases.
3898 (edge_execution_predicate): Rewrite as...
3899 (set_cond_stmt_execution_predicate): ... this function; handle
3900 __builtin_constant_p.
3901 (set_switch_stmt_execution_predicate): New .
3902 (compute_bb_predicates): New.
3903 (will_be_nonconstant_predicate): Update TODO.
3904 (estimate_function_body_sizes): Use compute_bb_predicates
3905 and free them later, always try to estimate if stmt is constant.
3906 (estimate_time_after_inlining, estimate_size_after_inlining):
3907 Gracefully handle optimized out edges.
3908 (read_predicate): Fix off by one error.
3910 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3912 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3914 2011-04-27 Xinliang David Li <davidxl@google.com>
3916 * tree-profile.c (init_ic_make_global_vars): Set
3917 tls attribute on ic vars.
3918 * coverage.c (coverage_end_function): Initialize
3919 function_list with zero.
3921 2011-04-29 Richard Guenther <rguenther@suse.de>
3923 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3924 for the type of the result.
3925 (fold_builtin_isascii): Likewise.
3926 (fold_builtin_toascii): Use integer_type_node where appropriate.
3927 (fold_builtin_logb): Likewise.
3928 (fold_builtin_frexp): Likewise.
3929 (fold_builtin_strstr): Likewise.
3930 (fold_builtin_strpbrk): Likewise.
3931 (fold_builtin_fputs): Likewise.
3932 (fold_builtin_sprintf): Likewise.
3933 (fold_builtin_snprintf): Likewise.
3934 (fold_builtin_printf): Likewise.
3935 (do_mpfr_remquo): Use a proper type for the assigned constant.
3936 (do_mpfr_lgamma_r): Likewise.
3937 * dwarf2out.c (resolve_one_addr): Use size_int.
3938 * except.c (init_eh): Likewise.
3939 (assign_filter_values): Use integer_type_node for filter values.
3940 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3942 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3943 for EH region numbers.
3944 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3945 for the shift amount.
3947 2011-04-29 Richard Guenther <rguenther@suse.de>
3949 * expr.h (expand_shift): Rename to ...
3950 (expand_variable_shift): ... this.
3951 (expand_shift): Take a constant shift amount.
3952 * expmed.c (expand_shift): Rename to ...
3953 (expand_variable_shift): ... this.
3954 (expand_shift): New wrapper around expand_variable_shift.
3955 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3956 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3957 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3958 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3959 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3960 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3961 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3962 emit_store_flag_1, emit_store_flag): Likewise.
3963 * builtins.c (expand_builtin_signbit): Likewise.
3964 * calls.c (load_register_parameters): Likewise.
3965 * function.c (assign_parm_setup_block): Likewise.
3966 * lower-subreg.c (resolve_shift_zext): Likewise.
3967 * optabs.c (widen_bswap, expand_abs_nojump,
3968 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3969 * spu/spu.c (spu_expand_extv): Likewise.
3970 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3972 2011-04-29 Richard Guenther <rguenther@suse.de>
3974 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3975 for the remapped region number.
3976 * predict.c (build_predict_expr): Use integer_type_node for the
3978 * fold-const.c (fold_binary_loc): Use integer_type_node for
3979 the shift amount. Use a proper type for the PLUS_EXPR operand.
3981 2011-04-29 Michael Matz <matz@suse.de>
3983 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3984 other trees that just builtins.
3985 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3987 2011-04-29 Richard Guenther <rguenther@suse.de>
3989 * tree-nested.c (get_trampoline_type): Use size_int.
3990 (get_nl_goto_field): Likewise.
3991 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3993 (lower_eh_constructs_2): Likewise.
3994 (lower_resx): Likewise.
3995 (lower_eh_dispatch): Likewise.
3996 * tree-mudflap.c (mf_build_string): Use size_int.
3997 (mudflap_register_call): Use integer_type_node for the flag.
3998 (mudflap_enqueue_constant): Use size_int.
3999 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4000 instead of rebuilding it.
4002 2011-04-29 Richard Guenther <rguenther@suse.de>
4004 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4005 Handle OBJ_TYPE_REF.
4006 (find_func_aliases_for_call): Use it more consistently.
4008 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4010 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4011 (rank_for_schedule): Use it.
4012 (schedule_block): Set it.
4014 2011-04-28 David Li <davidxl@google.com>
4016 * tree.c (crc32_string): Use crc32_byte.
4017 (crc32_byte): New function.
4018 * tree.h (crc32_byte): New function.
4019 * gcov.c (read_graph_file): Handle new cfg_cksum.
4020 (read_count_file): Ditto.
4021 * profile.c (instrument_values): Ditto.
4022 (get_exec_counts): Ditto.
4023 (read_profile_edge_counts): Ditto.
4024 (compute_branch_probabilities): Ditto.
4025 (compute_value_histograms): Ditto.
4026 (branch_prob): Ditto.
4027 (end_branch_prob): Ditto.
4028 * coverage.c (read_counts_file): Ditto.
4029 (get_coverage_counts): Ditto.
4030 (tree_coverage_counter_addr): Ditto.
4031 (coverage_checksum_string): Ditto.
4032 (coverage_begin_output): Ditto.
4033 (coverage_end_function): Ditto.
4034 (build_fn_info_type): Ditto.
4035 (build_fn_info_value): Ditto.
4036 * libgcov.c (gcov_exit): Ditto.
4037 * gcov-dump.c (tag_function): Ditto.
4038 (compute_checksum): Remove.
4040 2011-04-29 Alan Modra <amodra@gmail.com>
4042 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4043 unspec plus offset. Tidy macho code.
4045 2011-04-29 Martin Jambor <mjambor@suse.cz>
4047 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4048 node instead of a decl. Update all callers.
4049 * cgraph.h: Update declaration.
4051 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4053 PR tree-optimization/48765
4054 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4055 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4056 to indicate if loop aware SLP is being used. Scan the statements
4057 and update the vectorization factor according to the type of
4058 vectorization before statement analysis.
4059 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4060 pass it to vect_analyze_loop_operations.
4061 (vectorizable_reduction): Set number of copies to 1 in case of pure
4063 * tree-vect-stmts.c (vectorizable_conversion,
4064 vectorizable_assignment, vectorizable_shift,
4065 vectorizable_operation, vectorizable_type_demotion,
4066 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4068 (vectorizable_condition): Move the check that it is not SLP
4069 vectorization before the number of copies check.
4070 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4071 to vectorize the loop using SLP.
4073 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4076 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4079 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4081 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4082 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4083 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4084 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4085 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4087 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4088 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4089 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4090 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4091 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4092 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4094 * config/i386/linux.h (REG_NAME): Don't define.
4095 * config/i386/linux64.h (REG_NAME): Don't define.
4096 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4097 Undefine before defining.
4099 2011-04-28 Jan Hubicka <jh@suse.cz>
4101 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4102 nonconstant_names array.
4103 (estimate_function_body_sizes): Build nonconstant_names array; handle
4104 BUILT_IN_CONSTANT_P.
4106 2011-04-28 Richard Guenther <rguenther@suse.de>
4110 2011-04-28 Richard Guenther <rguenther@suse.de>
4112 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4113 as late as possible.
4115 2011-04-28 Richard Guenther <rguenther@suse.de>
4117 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4118 (debug_constraint): Do it here.
4119 (dump_constraints): And here.
4120 (rewrite_constraints): And here.
4121 (dump_constraint_edge): Remove.
4122 (dump_constraint_graph): Rewrite to produce DOT output.
4123 (solve_constraints): Build succ graph as late as possible.
4124 Dump constraint graphs before and after solving.
4126 2011-04-28 Richard Guenther <rguenther@suse.de>
4128 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4129 New function split out from ...
4130 (find_func_aliases): ... here. Call it.
4131 (find_func_aliases_for_call): Likewise.
4133 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4135 * internal-fn.h (internal_fn_name_array): Declare.
4136 (internal_fn_flags_array): Likewise.
4138 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4140 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4141 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4143 (ssemodefsuffix): Remove.
4144 (ssevecmodesuffix): New mode attribute.
4145 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4146 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4147 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4148 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4149 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4150 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4151 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4152 ssemodesuffix mode attribute.
4153 (float splitters): Use ssevecmodesuffix mode attribute.
4154 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4155 (sseinsmode): Rename from avxvecmode.
4156 (avxsizesuffix): Rename from avxmodesuffix.
4157 (sseintvecmode): Rename from avxpermvecmode.
4158 (ssedoublevecmode): Rename from ssedoublesizemode.
4159 (ssehalfvecmode): Rename from avxhalfvecmode.
4160 (ssescalarmode): Rename from avxscalarmode.
4161 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4162 templates for ssemodesuffix mode attribute.
4163 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4166 Adjust RTX patterns globally for renamed mode attributes.
4168 2011-04-27 Jan Hubcika <jh@suse.cz>
4170 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4171 * ipa-inline-analysis.c: Include alloc-pool.h.
4172 (edge_predicate_pool): New.
4173 (trye_predicate_p): New function
4174 (false_predicate_p): New function.
4175 (add_clause): Sanity check that false clauses are "optimized";
4176 never add clauses to predicate that is already known to be false.
4177 (and_predicate): Use flase_predicate_p.
4178 (evaulate_predicate): Rename to ...
4179 (evaluate_predicate): ... this one; update all callers; assert
4180 that false is not listed among possible truths.
4181 (dump_predicate): Use true_predicate_p.
4182 (account_size_time): Use false_predicate_p.
4183 (evaulate_conditions_for_edge): Rename to ...
4184 (evaluate_conditions_for_edge) ... this one.
4185 (edge_set_predicate): New function.
4186 (inline_edge_duplication_hook): Duplicate edge predicates.
4187 (inline_edge_removal_hook): Free edge predicates.
4188 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4189 (dump_inline_summary): Update.
4190 (estimate_function_body_sizes): Set edge predicates.
4191 (estimate_calls_size_and_time): Handle predicates.
4192 (estimate_callee_size_and_time): Update.
4193 (remap_predicate): Add toplev_predicate; update comment.
4194 (remap_edge_predicates): New function.
4195 (inline_merge_summary): Compute toplev predicate; update.
4196 (read_predicate): New function.
4197 (read_inline_edge_summary): Use it.
4198 (inline_read_section): Likewise.
4199 (write_predicate): New function.
4200 (write_inline_edge_summary): Use it.
4201 (inline_write_summary): Likewise.
4202 (inline_free_summary): Free alloc pool and edge summary vec.
4204 2011-04-27 Richard Guenther <rguenther@suse.de>
4206 * tree-ssa-structalias.c (changed_count): Remove.
4207 (changed): Use a bitmap.
4208 (unify_nodes): Adjust.
4209 (do_sd_constraint): Likewise.
4210 (do_ds_constraint): Likewise.
4211 (do_complex_constraint): Likewise.
4212 (solve_graph): Likewise.
4214 2011-04-27 Jan Hubicka <jh@suse.cz>
4216 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4218 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4220 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4221 (avx_vperm2f128_*_operand): Ditto.
4222 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4223 Use avx_vpermilp_parallel in insn condition.
4224 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4225 Use avx_vperm2f128_parallel in insn condition.
4227 2011-04-27 Richard Guenther <rguenther@suse.de>
4229 * Makefile.in (tree-ssa-structalias.o): Remove
4230 gt-tree-ssa-structalias.h dependency.
4231 (GTFILES): Remove tree-ssa-structalias.c.
4232 * tree.c (allocate_decl_uid): New function.
4233 (make_node_stat): Use it.
4234 (copy_node_stat): Likewise.
4235 * tree.h (allocate_decl_uid): Declare.
4236 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4237 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4238 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4239 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4240 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4241 (struct heapvar_map): Likewise.
4242 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4243 heapvar_insert): Likewise.
4244 (make_heapvar_for): Rename to ...
4245 (make_heapvar): ... this. Simplify.
4246 (fake_var_decl_obstack): New global var.
4247 (build_fake_var_decl): New function.
4248 (make_constraint_from_heapvar): Adjust.
4249 (handle_lhs_call): Likewise.
4250 (create_function_info_for): Likewise.
4251 (intra_create_variable_infos): Likewise.
4252 (init_alias_vars): Allocate fake_var_decl_obstack.
4253 (init_alias_heapvars, delete_alias_heapvars): Remove.
4254 (compute_points_to_sets): Do not call init_alias_heapvars.
4255 (ipa_pta_execute): Likewise.
4256 (delete_points_to_sets): Free fake_var_decl_obstack.
4258 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4260 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4261 (si_from_UTItype, si_to_UTItype): New functions.
4262 (__udivmodti4): Use them to implement type-punning.
4263 * config/spu/multi3.c (union qword_TItype): New data type.
4264 (si_from_TItype, si_to_TItype): New functions.
4265 (__multi3): Use them to implement type-punning.
4267 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4269 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4271 2011-04-27 Jan Hubicka <jh@suse.cz>
4273 * ipa-prop.c (function_insertion_hook_holder): New holder.
4274 (ipa_add_new_function): New function.
4275 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4276 Register/deregister holder.
4278 2011-04-27 Richard Guenther <rguenther@suse.de>
4280 PR tree-optimization/48772
4281 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4283 2011-04-27 Richard Guenther <rguenther@suse.de>
4285 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4286 TARGET_MEM_REF handling.
4288 2011-04-27 Nick Clifton <nickc@redhat.com>
4290 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4291 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4292 (REG_CLASS_NAMES): Likewise.
4293 (REG_CLASS_CONTENTS): Likewise.
4294 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4295 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4296 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4297 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4298 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4299 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4300 duplicate register classes.
4301 (frv_class_likely_spilled_p): Likewise.
4302 (frv_register_move_cost): Likewise.
4304 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4305 end of the regno_reg_class array.
4307 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4310 * c-typeck.c (build_binary_op): Don't wrap arguments if
4311 int_operands is true.
4313 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4316 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4317 targetm.calls.must_pass_in_stack for void type.
4319 2011-04-26 Jan Hubicka <jh@suse.cz>
4321 * cgraphbuild.c (build_cgraph_edges): Update call
4322 of cgraph_create_edge and cgraph_create_indirect_edge.
4323 * cgraph.c (cgraph_create_edge_including_clones,
4324 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4325 cgraph_update_edges_for_call_stmt_node): Do not take nest
4326 argument; do not initialize call_stmt_size/time.
4327 (dump_cgraph_node): Do not dump nest.
4328 (cgraph_clone_edge): Do not take loop_nest argument;
4329 do not propagate it; do not clone call_stmt_size/time.
4330 (cgraph_clone_node): Likewise.
4331 (cgraph_create_virtual_clone): Update.
4332 * cgraph.h (struct cgraph_edge): Remove
4333 call_stmt_size/call_stmt_time/loop_nest.
4334 (cgraph_create_edge, cgraph_create_indirect_edge,
4335 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4337 * tree-emutls.c (gen_emutls_addr): Update.
4338 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4339 loop_nest; handle indirect calls, too.
4340 (clone_inlined_nodes): Do not care about updating inline summaries.
4341 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4342 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4343 stream call_stmt_size/call_stmt_time/loop_nest.
4344 * ipa-inline.c (edge_badness): Update.
4345 (ipa_inline): dump summaries after inlining.
4346 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4348 (inline_edge_summary): New function.
4349 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4350 (inline_edge_removal_hook): Handle edge summaries.
4351 (inline_edge_duplication_hook): New hook.
4352 (inline_summary_alloc): Alloc hooks.
4353 (initialize_growth_caches): Do not register removal hooks.
4354 (free_growth_caches); Do not free removal hook.
4355 (dump_inline_edge_summary): New function.
4356 (dump_inline_summary): Use it.
4357 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4358 (inline_update_callee_summaries): New function.
4359 (inline_merge_summary): Use it.
4360 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4361 (read_inline_edge_summary): New function.
4362 (inline_read_section): Use it.
4363 (write_inline_edge_summary): New function.
4364 (inline_write_summary): Use it.
4365 (inline_free_summary): Free edge new holders.
4366 * tree-inline.c (copy_bb): Update.
4368 2011-04-26 Jason Merrill <jason@redhat.com>
4370 * tree-eh.c (lower_try_finally_switch): Create the label along with
4371 the CASE_LABEL_EXPR.
4373 2011-04-26 David S. Miller <davem@davemloft.net>
4374 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4376 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4377 * configure: Regenerate.
4379 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4382 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4384 (VEC_reduc): New code iterator and splitters for vector reduction.
4385 (VEC_reduc_name): Ditto.
4386 (VEC_reduc_rtx): Ditto.
4387 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4388 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4390 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4391 support for extracting SF on VSX.
4393 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4394 generating xscvspdp.
4395 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4396 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4397 double add, minimum, maximum vector reduction.
4398 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4399 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4400 optimize double vector reduction.
4401 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4403 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4405 * config/fr30/fr30.h (inhibit_libc): Don't define.
4406 * config/m32r/m32r-protos.h: Correct comment.
4407 * config/v850/v850.h (GHS_default_section_names,
4408 GHS_current_section_names): Use tree, not union tree_node *.
4410 2011-04-26 Xinliang David Li <davidxl@google.com>
4412 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4413 * c-family/c-opts.c (c_common_handle_option): Set
4414 warn_maybe_uninitialized.
4415 * opts.c (common_handle_option): Ditto.
4416 * common.opt: New option.
4417 * tree-ssa.c (warn_uninit): Add one more parameter.
4418 (warn_uninitialized_var): Pass warning code.
4419 * tree-flow.h: Interface change.
4422 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4424 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4425 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4426 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4428 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4430 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4431 * config/mips/mips.opt (mmips-tfile): Remove.
4433 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4434 mips-tdump reference to ...
4435 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4436 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4437 reference by Tru64 UNIX.
4439 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4442 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4443 is error_mark_node, set value to NULL.
4445 PR tree-optimization/48734
4446 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4447 if return value from maybe_fold_*_comparsions isn't something
4448 the code is prepared to handle.
4450 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4452 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4454 (ext_QIreg_nomode_operands): Remove.
4455 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4459 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4461 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4463 2011-04-26 Richard Guenther <rguenther@suse.de>
4465 * c-typeck.c (build_unary_op): Do not expand array-refs via
4466 pointer arithmetic. Only adjust qualifiers for function types.
4468 2011-04-26 Richard Guenther <rguenther@suse.de>
4471 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4472 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4473 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4474 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4476 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4478 * doc/extend.texi: Document __underlying_type.
4480 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4482 * config/rs6000/titan.md (automata_option "progress"): Remove.
4484 2011-04-25 Jeff Law <law@redhat.com>
4486 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4488 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4490 * system.h (ENUM_BITFIELD): Remove.
4492 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4493 Eric Botcazou <ebotcazou@adacore.com>
4495 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4496 for STORE_FLAG_VALUE==-1 case.
4498 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4501 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4502 LEGITIMATE_PIC_OPERAND_P.
4504 2011-04-24 Jan Hubicka <jh@suse.cz>
4506 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4508 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4509 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4510 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4511 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4512 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4513 Sanity check predicate length.
4514 (remap_predicate): Likewise; sanity check jump functions.
4515 (inline_read_section, inline_write_summary): Sanity check
4518 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4521 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4522 __is_literal_type, and __is_trivial; update throughout about
4523 possibly cv-qualified void types.
4525 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4527 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4528 testsuite and make it version agnostic.
4530 2011-04-22 Jan Hubicka <jh@suse.cz>
4532 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4534 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4537 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4538 to VOID_TYPE even around MODIFY_EXPR.
4540 2011-04-22 Mike Stump <mikestump@comcast.net>
4542 * gensupport.c (read_md_rtx): Fix typo in comment.
4543 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4546 2011-04-22 Jan Hubicka <jh@suse.cz>
4548 * gengtype.c (open_base_files): Add ipa-inline.h include.
4549 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4550 ipa-prop.c; update all uses.
4551 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4552 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4553 merge summary of inlined function into former caller.
4554 * ipa-inline.c (max_benefit): Remove.
4555 (edge_badness): Compensate for removal of benefits.
4556 (update_caller_keys): Use
4557 reset_node_growth_cache/reset_edge_growth_cache.
4558 (update_callee_keys): Likewise.
4559 (update_all_callee_keys): Likewise.
4560 (inline_small_functions): Do not collect max_benefit; do not reset
4561 estimated_growth; call free_growth_caches and initialize_growth_caches.
4562 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4563 struct size_time_entry): New structures.
4564 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4565 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4566 and estimated_growth.
4567 (edge_growth_cache_entry): New structure.
4568 (node_growth_cache, edge_growth_cache): New global vars.
4569 (estimate_growth): Turn into inline.
4570 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4571 initialize_growth_caches, free_growth_caches): Declare.
4572 (estimate_edge_growth): Rewrite.
4573 (estimate_edge_time): Implement as inline cache lookup.
4574 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4576 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4577 (NUM_CONDITIONS): New constant.
4578 (predicate_conditions): New enum.
4579 (IS_NOT_CONSTANT): New constant.
4580 (edge_removal_hook_holder): New var.
4581 (node_growth_cache, edge_growth_cache): New global vars.
4582 (true_predicate, single_cond_predicate, false_predicate,
4583 not_inlined_predicate, add_condition, add_clause, and_predicates,
4584 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4585 dump_clause, dump_predicate, account_size_time,
4586 evaulate_conditions_for_edge): New functions.
4587 (inline_summary_alloc): Move to heap.
4588 (inline_node_removal_hook): Clear condition and entry vectors.
4589 (inline_edge_removal_hook): New function.
4590 (initialize_growth_caches, free_growth_caches): New function.
4591 (dump_inline_summary): Update.
4592 (edge_execution_predicate): New function.
4593 (will_be_nonconstant_predicate): New function.
4594 (estimate_function_body_sizes): Compute BB and constantness predicates.
4595 (compute_inline_parameters): Do not clear estimated_growth.
4596 (estimate_edge_size_and_time): New function.
4597 (estimate_calls_size_and_time): New function.
4598 (estimate_callee_size_and_time): New function.
4599 (remap_predicate): New function.
4600 (inline_merge_summary): New function.
4601 (do_estimate_edge_time): New function based on...
4602 (estimate_edge_time): ... this one.
4603 (do_estimate_edge_growth): New function.
4604 (do_estimate_growth): New function based on....
4605 (estimate_growth): ... this one.
4606 (inline_analyze_function): Analyze after deciding on jump functions.
4607 (inline_read_section): New function.
4608 (inline_read_summary): Use it.
4609 (inline_write_summary): Write all the new data.
4610 * ipa-prop.c (ipa_get_param_decl_index): Export.
4611 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4612 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4614 (ipa_get_lattice): Move here from ipa-cp.c
4615 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4616 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4617 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4618 cgraph_edge_inlinable_p): Remove.
4619 * cgraphunit.c: Include ipainline.h
4620 (cgraph_process_new_functions): Update call of
4621 compute_inline_parameters.
4623 2011-04-22 Richard Guenther <rguenther@suse.de>
4625 * tree.c (build_int_cst): Properly create canonicalized integer
4627 (build_int_cst_type): Remove scary comments.
4629 2011-04-22 Xinliang David Li <davidxl@google.com>
4631 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4632 by default when -Wno-error is not specified.
4633 * opts-global.c (decode_options): Remove call to
4634 control_warning_options.
4636 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4638 PR tree-optimization/48717
4639 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4640 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4642 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4644 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4645 definition where used.
4647 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4650 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4651 TREE_STATIC variables declared inside of some OpenMP construct.
4653 2011-04-22 Martin Jambor <mjambor@suse.cz>
4656 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4658 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4661 * c-typeck.c (pop_init_level): Do not warn about initializing
4664 2011-04-22 Alan Modra <amodra@gmail.com>
4666 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4667 when returning call_cookie.
4668 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4669 pointers, to functions with no more vector args than the current
4670 function, and some non-local calls for ABI_V4.
4671 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4672 sibcall_nonlocal_aix64): Combine to ..
4673 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4674 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4675 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4676 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4677 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4679 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4680 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4681 sibcall_value_symbolic_64): Delete.
4683 2011-04-21 Xinliang David Li <davidxl@google.com>
4685 * cgraph.h: Remove pid.
4686 * cgraph.c: Remove pid.
4687 * value-prof.c (init_node_map): New function.
4688 (del_node_map): New function.
4689 (find_func_by_funcdef_no): New function.
4690 (gimple_ic_transform): Call new function.
4691 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4692 * function.c (get_last_funcdef_no): New function.
4693 * function.h (get_last_funcdef_no): New function.
4694 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4695 to libgcov function.
4696 (tree-profiling): Call node map init and delete function.
4698 2011-04-21 Ian Lance Taylor <iant@google.com>
4700 * godump.c (go_format_type): Use exported Go name for anonymous
4703 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4705 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4706 Call builtin_function_type_list instead of builtin_function_type.
4707 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4709 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4711 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4712 build_function_type_list instead of build_function_type.
4713 Delete variable `endlink'.
4715 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4717 * config/s390/s390.c (s390_init_builtins): Call
4718 build_function_type_list instead of build_function_type.
4720 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4722 * config/ia64/ia64.c (ia64_init_builtins): Call
4723 build_function_type_list instead of builtin_function_type.
4725 2011-04-21 Easwaran Raman <eraman@google.com>
4727 * cfgexpand.c (stack_var): Remove OFFSET...
4728 (add_stack_var): ...and its reference here...
4729 (expand_stack_vars): ...and here.
4730 (stack_var_cmp): Sort by descending order of size.
4731 (partition_stack_vars): Change heuristic.
4732 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4733 (dump_stack_var_partition): Add newline after each partition.
4735 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4736 Jeff Law <law@redhat.com>
4738 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4739 * gengtype.c (matching_file_name_substitute): Likewise.
4741 2011-04-21 Richard Guenther <rguenther@suse.de>
4744 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4746 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4748 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4750 2011-04-21 Richard Guenther <rguenther@suse.de>
4752 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4755 2011-04-21 Richard Guenther <rguenther@suse.de>
4757 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4758 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4759 Use DECL_P, not SSA_VAR_P.
4760 (ptr_derefs_may_alias_p): Likewise.
4761 (ptr_deref_may_alias_ref_p_1): Likewise.
4762 (decl_refs_may_alias_p): Likewise.
4763 (refs_may_alias_p_1): Likewise.
4764 (ref_maybe_used_by_call_p_1): Likewise.
4765 (call_may_clobber_ref_p_1): Likewise.
4766 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4767 are either MEM_REF or TARGET_MEM_REF.
4768 (indirect_refs_may_alias_p): Likewise.
4769 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4770 for MEM_EXPR of indirect calls.
4772 2011-04-21 Tristan Gingold <gingold@adacore.com>
4774 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4775 (dst_file_info_struct): Remove flen field.
4776 (lookup_filename): Remove code that set flen field.
4778 2011-04-21 Tristan Gingold <gingold@adacore.com>
4780 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4782 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4785 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4786 vec_extract and vec_concat for non-SSE4_1 targets.
4788 2011-04-21 Richard Guenther <rguenther@suse.de>
4790 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4793 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4795 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4797 (FILE): Don't undefine.
4799 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4801 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4803 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4805 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4806 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4807 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4809 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4810 definitions where used.
4811 * config/microblaze/microblaze.h (struct microblaze_args): Use
4812 rtx, not struct rtx_def *.
4813 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4815 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4816 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4817 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4818 not struct rtx_def *.
4819 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4821 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4823 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4825 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4827 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4828 operand_equal_p to compare DR_BASE_ADDRESSes.
4829 (vect_check_interleaving): Likewise.
4831 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4834 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4835 for all Neon struct constants.
4837 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4839 * target.def (legitimate_constant_p): New hook.
4840 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4841 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4842 * doc/tm.texi: Regenerate.
4843 * hooks.h (hook_bool_mode_rtx_true): Declare.
4844 * hooks.c (hook_bool_mode_rtx_true): Define.
4845 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4846 * calls.c (precompute_register_parameters): Replace uses of
4847 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4848 (emit_library_call_value_1): Likewise.
4849 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4850 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4851 * ira-costs.c (scan_one_insn): Likewise.
4852 * recog.c (general_operand, immediate_operand): Likewise.
4853 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4854 * reload1.c (init_eliminable_invariants): Likewise.
4856 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4858 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4859 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4861 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4862 * config/alpha/predicates.md (input_operand): Update call to
4863 alpha_legitimate_constant_p.
4865 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4866 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4867 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4868 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4869 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4870 (arm_legitimate_constant_p): New functions.
4871 (arm_cannot_force_const_mem): Make static.
4873 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4875 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4876 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4877 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4878 instead of bfin_legitimate_constant_p.
4879 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4880 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4882 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4884 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4886 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4887 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4888 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4889 (frv_legitimate_constant_p): Make static. Add a mode argument.
4891 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4892 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4893 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4895 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4896 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4897 * config/i386/i386.c (legitimate_constant_p): Rename to...
4898 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4900 (ix86_cannot_force_const_mem): Update accordingly.
4901 (ix86_legitimate_address_p): Likewise.
4902 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4903 * config/i386/i386.md: Update commentary.
4905 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4906 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4907 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4908 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4910 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4912 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4913 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4914 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4915 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4917 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4918 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4919 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4921 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4922 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4923 (m32r_legitimate_constant_p): New function.
4925 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4926 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4927 LEGITIMATE_CONSTANT_P.
4928 (LEGITIMATE_CONSTANT_P): Delete.
4929 * config/m68k/m68k.c (m68k_expand_prologue): Call
4930 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4931 (m68k_legitimate_constant_p): New function.
4932 * config/m68k/m68k.md: Update comments.
4934 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4935 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4936 (mcore_legitimate_constant_p): New function.
4938 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4939 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4940 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4941 Add a mode argument.
4942 (mep_legitimate_address): Update accordingly.
4943 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4945 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4947 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4948 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4949 static. Check OP's mode for VOIDmode.
4950 (microblaze_legitimate_constant_p): New function.
4951 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4953 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4954 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4955 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4956 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4957 * config/mips/predicates.md: Update comments.
4959 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4960 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4961 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4962 (mmix_legitimate_constant_p): Make static, return a bool, and take
4964 (mmix_print_operand_address): Update accordingly.
4966 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4968 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4969 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4970 static. Add a mode argument.
4971 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4973 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4975 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4976 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4977 (pa_legitimate_constant_p): New function.
4979 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4981 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4982 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4983 (pdp11_legitimate_constant_p): New function.
4985 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4986 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4987 (rs6000_legitimate_constant_p): New function.
4989 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4990 (rx_legitimate_constant_p): ...this.
4991 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4992 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4993 (rx_legitimate_constant_p): ...this.
4994 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4995 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4997 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4998 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4999 * config/s390/s390.c (legitimate_constant_p): Rename to...
5000 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5001 and add a mode argument.
5002 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5004 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5006 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5007 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5008 (sh_legitimate_constant_p): New function.
5010 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5011 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5012 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5013 (legitimate_constant_p): Rename to...
5014 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5016 (constant_address_p): Update accordingly.
5018 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5019 argument and return a bool.
5020 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5021 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5022 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5023 (spu_rtx_costs): Update accordingly.
5024 * config/spu/predicates.md (vec_imm_operand): Likewise.
5026 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5028 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5029 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5030 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5032 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5033 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5034 * config/vax/vax.c (legitimate_constant_p): Likewise.
5036 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5037 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5038 (xtensa_legitimate_constant_p): New function.
5040 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5042 * target.def (cannot_force_const_mem): Add a mode argument.
5043 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5044 * doc/tm.texi: Regenerate.
5045 * hooks.h (hook_bool_mode_rtx_false): Declare.
5046 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5047 (hook_bool_mode_const_rtx_true): Likewise.
5048 (hook_bool_mode_rtx_false): New function.
5049 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5050 to be non-VOID. Update call to cannot_force_const_mem.
5051 (find_reloads): Update accordingly.
5052 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5053 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5055 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5056 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5057 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5058 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5059 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5060 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5061 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5062 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5063 (m68k_cannot_force_const_mem): ...this new function.
5064 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5066 (mips_const_insns, mips_legitimize_const_move): Update calls.
5067 (mips_secondary_reload_class): Likewise.
5068 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5069 (pa_cannot_force_const_mem): ...this new function.
5070 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5071 (rs6000_cannot_force_const_mem): ...this new function.
5072 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5074 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5075 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5077 (xtensa_cannot_force_const_mem): ...this new function.
5079 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5081 * config/mips/mips.c (mips16_build_function_stub): Call
5082 build_function_type_list instead of build_function_type.
5083 (mips16_build_call_stub): Likewise.
5085 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5087 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5088 instead of build_function_type.
5090 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5092 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5093 instead of build_function_type.
5095 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5098 * config/i386/i386.md (insv): Change operand 0 constraint to
5099 "register_operand". Change operand 1 and 2 constraint to
5100 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5101 * config/i386/sse.md (sse4_1_pinsrb): Export.
5102 (sse2_pinsrw): Ditto.
5103 (sse4_1_pinsrd): Ditto.
5104 (sse4_1_pinsrq): Ditto.
5105 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5106 * config/i386/i386.c (ix86_expand_pinsr): New.
5108 2011-04-20 Easwaran Raman <eraman@google.com>
5110 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5111 containing union type only with -fstrict-aliasing.
5113 2011-04-20 Jim Meyering <meyering@redhat.com>
5115 Remove useless if-before-free tests.
5116 * calls.c (expand_call, save_area): Likewise.
5117 * cfgcleanup.c (try_forward_edges): Likewise.
5118 * collect2.c (collect_execute): Likewise.
5119 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5120 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5121 * coverage.c (coverage_checksum_string): Likewise.
5122 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5123 * cselib.c (cselib_init): Likewise.
5124 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5125 (df_set_clean_cfg): Likewise.
5126 * function.c (free_after_compilation): Likewise.
5127 * gcc.c (do_spec_1, main): Likewise.
5128 * gcov.c (create_file_names): Likewise.
5129 * gensupport.c (identify_predicable_attribute): Likewise.
5130 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5131 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5132 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5133 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5134 * ipa-pure-const.c (local_pure_const): Likewise.
5135 * ipa-reference.c (propagate): Likewise.
5136 * ira-costs.c (free_ira_costs): Likewise.
5137 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5138 * matrix-reorg.c (mat_free): Likewise.
5139 * prefix.c (get_key_value): Likewise.
5140 * profile.c (compute_value_histograms): Likewise.
5141 * reload1.c (free_reg_equiv): Likewise.
5142 * sched-deps.c (free_deps): Likewise.
5143 * sel-sched-ir.c (fence_clear): Likewise.
5144 * sese.c (set_rename, if_region_set_false_region): Likewise.
5145 * tree-data-ref.c (free_rdg): Likewise.
5146 * tree-eh.c (lower_try_finally): Likewise.
5147 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5148 * tree-ssa-live.c (delete_var_map): Likewise.
5149 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5150 * tree-ssa-pre.c (phi_trans_add): Likewise.
5152 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5154 PR tree-optimization/48611
5155 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5156 beyond ERT_MUST_NOT_THROW region.
5158 2011-04-20 Catherine Moore <clm@codesourcery.com>
5160 * config/mips/mips.opt (mfix-24k): New.
5161 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5162 * config/mips/mips.md (length): Increase by 4 for stores if
5164 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5165 all noreorder if fixing 24K errata.
5166 * doc/invoke.texi: Document mfix-24k.
5168 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5170 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5171 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5173 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5175 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5176 (const_ok_for_op): ... to here.
5178 2011-04-20 Kai Tietz <ktietz@redhat.com>
5180 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5181 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5183 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5185 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5187 2011-04-20 Richard Guenther <rguenther@suse.de>
5189 PR tree-optimization/47892
5190 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5193 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5195 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5197 2011-04-20 Tristan Gingold <gingold@adacore.com>
5199 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5201 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5205 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5206 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5207 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5208 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5209 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5211 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5214 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5215 (avr_asm_named_section, avr_asm_output_aligned_common,
5216 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5217 New functions to update...
5218 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5219 (avr_asm_init_sections): Overwrite section callbacks for
5220 data_section, bss_section.
5221 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5223 (avr_file_end): ...here.
5225 2011-04-20 Richard Guenther <rguenther@suse.de>
5228 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5229 objects and types here. Adjust for their offset before comparing.
5231 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5233 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5236 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5238 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5239 (GIMPLE_H): Include $(INTERNAL_FN_H).
5240 (OBJS-common): Add internal-fn.o.
5241 (internal-fn.o): New rule.
5242 * internal-fn.def: New file.
5243 * internal-fn.h: Likewise.
5244 * internal-fn.c: Likewise.
5245 * gimple.h: Include internal-fn.h.
5246 (GF_CALL_INTERNAL): New gf_mask.
5247 (gimple_statement_call): Put fntype into a union with a new
5249 (gimple_build_call_internal): Declare.
5250 (gimple_build_call_internal_vec): Likewise.
5251 (gimple_call_same_target_p): Likewise.
5252 (gimple_call_internal_p): New function.
5253 (gimple_call_internal_fn): Likewise.
5254 (gimple_call_fntype): Return null for internal calls.
5255 (gimple_call_set_fntype): Assert that the function is not internal.
5256 (gimple_call_set_fn): Likewise.
5257 (gimple_call_set_fndecl): Likewise.
5258 (gimple_call_set_internal_fn): New function.
5259 (gimple_call_addr_fndecl): Handle null functions.
5260 (gimple_call_return_type): Likewise null types.
5261 * gimple.c (gimple_build_call_internal_1): New function.
5262 (gimple_build_call_internal): Likewise.
5263 (gimple_build_call_internal_vec): Likewise.
5264 (gimple_call_same_target_p): Likewise.
5265 (gimple_call_flags): Handle calls to internal functions.
5266 (gimple_call_fnspec): New function.
5267 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5268 (gimple_has_side_effects): Handle null functions.
5269 (gimple_rhs_has_side_effects): Likewise.
5270 (gimple_call_copy_skip_args): Handle calls to internal functions.
5271 * cfgexpand.c (expand_call_stmt): Likewise.
5272 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5273 * gimple-fold.c (gimple_fold_call): Handle null functions.
5274 (gimple_fold_stmt_to_constant_1): Don't fold
5275 calls to internal functions.
5276 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5278 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5279 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5280 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5281 (do_warn_unused_result): Likewise.
5282 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5283 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5284 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5285 the target of a call.
5286 (initialize_hash_element): Update accordingly.
5287 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5288 (iterative_hash_hashable_expr): Handle calls to internal functions.
5289 (print_expr_hash_elt): Likewise.
5290 * tree-ssa-pre.c (can_value_number_call): Likewise.
5291 (eliminate): Handle null functions.
5292 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5293 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5294 (find_func_aliases): Likewise.
5295 * value-prof.c (gimple_ic_transform): Likewise.
5296 (gimple_indirect_call_to_profile): Likewise.
5297 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5298 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5300 2011-04-19 Jan Hubicka <jh@suse.cz>
5302 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5303 * ipa-inline.c (inline_small_functions): Compute summaries first,
5304 populate heap later.
5306 2011-04-19 Jan Hubicka <jh@suse.cz>
5308 * cgraph.h (save_inline_function_body): Remove.
5309 * ipa-inline-transform.c: New file, broke out of...
5310 * ipa-inline.c: ... this one; Update toplevel comment.
5311 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5313 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5314 (cgraph_mark_inline_edge): Rename to inline_call; move to
5315 ipa-inline-transform.c.
5316 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5317 move to ipa-inline-transform.c
5318 (recursive_inlining, inline_small_functions, flatten_function,
5319 ipa_inline, inline_always_inline_functions,
5320 early_inline_small_functions): Update.
5321 (inline_transform): Move to ipa-inline-transform.c.
5322 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5324 * Makefile.in (ipa-inline-transform.o): New file.
5325 * cgraphunit.c (save_inline_function_body): Move to
5326 ipa-inline-transform.c
5328 2011-04-19 DJ Delorie <dj@redhat.com>
5330 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5331 registers if we already know there aren't any.
5332 (m32c_emit_epilogue): Don't emit a barrier here.
5333 (m32c_emit_eh_epilogue): Likewise.
5334 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5335 operands at expand time.
5336 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5338 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5339 duplicates. Provide aliases instead.
5340 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5341 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5344 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5346 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5347 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5348 (general_or_i64_p, sparc_register_move_cost): New function.
5350 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5352 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5353 Add lynx, mipssde. Sort table.
5355 2011-04-19 Xinliang David Li <davidxl@google.com>
5357 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5360 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5363 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5364 is a SUBREG with non-MODE_INT mode inside of it.
5366 2011-04-19 Martin Jambor <mjambor@suse.cz>
5368 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5369 also according to actual contants.
5370 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5371 (gimple_fold_call): Use it.
5372 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5374 2011-04-19 Martin Jambor <mjambor@suse.cz>
5376 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5377 non-pointer assignments.
5379 2011-04-19 Martin Jambor <mjambor@suse.cz>
5381 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5382 account anc_offset and otr_type from the indirect edge info.
5383 * ipa-prop.c (get_ancestor_addr_info): New function.
5384 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5385 get_ancestor_addr_info, call it.
5386 (ipa_note_param_call): Do not initialize information about polymorphic
5387 calls, return the indirect call graph edge. Remove the last
5388 parameter, adjust all callers.
5389 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5390 parameters. Initialize polymorphic information in the indirect edge.
5392 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5395 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5396 the types if they have different enumeration identifiers.
5398 2011-04-19 Jan Hubicka <jh@suse.cz>
5400 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5401 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5402 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5403 (optimize_function_for_size_p) ... here.
5405 2011-04-19 Richard Guenther <rguenther@suse.de>
5408 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5411 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5413 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5414 if DECL_NO_INLINE_WARNING_P is set on the function.
5416 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5419 * reload1.c (inc_for_reload): Return void. All callers changed.
5420 (emit_input_reload_insns): Don't try to delete previous output
5421 reloads to a register, or record spill_reg_store for autoincs.
5423 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5425 * gengtype.h: Updated copyright year.
5426 (struct input_file_st): Add inpisplugin field.
5427 (type_fileloc): New function.
5429 (write_typed_struct_alloc_def): Add gcc_assert.
5430 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5431 (write_typed_alloc_defns): Don't output for plugin files.
5432 (input_file_by_name): Clear inpisplugin field.
5433 (main): Set inpisplugin field for plugin files.
5435 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5437 * gengtype-state.c (string_eq): New.
5438 (read_state): Use string_eq instead of strcmp when creating the
5441 2011-04-19 Wei Guozhi <carrot@google.com>
5444 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5445 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5447 * config/arm/constraints.md (Uu): New constraint.
5448 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5450 2011-04-19 Tristan Gingold <gingold@adacore.com>
5452 * config.gcc (-*-*-*vms): Added.
5453 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5455 * config/vms/vms-ld.c: New file.
5456 * config/vms/vms-ar.c: New file.
5457 * config/vms/t-vmsnative: New file.
5459 2011-04-18 Xinliang David Li <davidxl@google.com>
5461 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5463 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5466 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5467 if TREE_TYPE (v) is non-NULL.
5469 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5470 gimple_get_virt_mehtod_for_binfo.
5471 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5472 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5474 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5476 2011-04-18 Michael Matz <matz@suse.de>
5477 Steve Ellcey <sje@cup.hp.com>
5479 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5480 use its mode as source mode if it isn't VOIDmode.
5482 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5484 * doc/passes.texi: Fill crossref nodes.
5486 2011-04-18 Jim Meyering <meyering@redhat.com>
5488 Fix doubled-word typos in comments and strings
5489 * config/alpha/vms-unwind.h: s/for for/for/
5490 * config/arm/unwind-arm.h: Likewise.
5491 * config/microblaze/microblaze.c: Likewise.
5492 * config/sh/constraints.md: s/in in/in/
5493 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5495 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5497 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5498 (AVX_FLOAT_MODE_P): Ditto.
5499 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5500 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5501 (AVX_VEC_FLOAT_MODE_P): Ditto.
5502 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5503 (UNSPEC_MASKSTORE): Ditto.
5504 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5505 Merge from <sse>_movmsk<ssemodesuffix> and
5506 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5507 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5509 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5510 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5511 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5513 2011-04-18 Jan Hubicka <jh@suse.cz>
5515 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5517 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5518 (want_inline_function_called_once_p): Break out the logic from
5520 (edge_badness): Ensure that profile is not misupdated.
5521 (lookup_recursive_calls): Prioritize by call frequencies.
5522 (inline_small_functions): Move program size estimates here;
5523 actually process whole queue even when unit growth has been
5524 met. (to properly compute inline_failed reasons and for the
5525 case unit size decrease.) Revisit comments on recursive inlining.
5526 (ipa_inline): Remove unit summary code; first inline hot calls
5527 of functions called once, cold calls next.
5528 (order, nnodes): Remove unused variables.
5529 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5530 (GTFILES): Remove ipa-inline.c
5531 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5533 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5535 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5537 2011-04-18 Jie Zhang <jie@codesourcery.com>
5538 Richard Earnshaw <rearnsha@arm.com>
5540 * arm.c (neon_builtin_type_bits): Remove.
5541 (typedef enum neon_builtin_mode): New.
5542 (T_MAX): Don't define.
5543 (typedef enum neon_builtin_datum): Remove bits, codes[],
5544 num_vars and base_fcode. Add mode, code and fcode.
5545 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5546 VAR10): Change accordingly.
5547 (neon_builtin_data[]): Change accordingly
5548 (arm_init_neon_builtins): Change accordingly.
5549 (neon_builtin_compare): Remove.
5550 (locate_neon_builtin_icode): Remove.
5551 (arm_expand_neon_builtin): Change accordingly.
5553 * arm.h (enum arm_builtins): Move to ...
5554 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5556 * arm.c (arm_builtin_decl): Declare.
5557 (TARGET_BUILTIN_DECL): Define.
5558 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5559 (arm_builtin_decls[]): New.
5560 (arm_init_neon_builtins): Store builtin declarations in
5561 arm_builtin_decls[].
5562 (arm_init_tls_builtins): Likewise.
5563 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5564 (arm_builtin_decl): New.
5566 2011-04-18 Richard Guenther <rguenther@suse.de>
5568 * tree.c (upper_bound_in_type): Build properly canonicalized
5570 (lower_bound_in_type): Likewise.
5572 2011-04-18 Richard Guenther <rguenther@suse.de>
5574 * gimple.h (gimple_call_addr_fndecl): New function.
5575 (gimple_call_fndecl): Use it.
5576 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5578 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5579 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5581 2011-04-18 Richard Guenther <rguenther@suse.de>
5584 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5586 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5589 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5590 DECL_IN_CONSTANT_POOL without RTL.
5592 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5593 Ira Rosen <ira.rosen@linaro.org>
5596 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5597 to match neon_vzip/vuzp/vtrn_internal.
5598 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5599 outputs explicitly dependent on both inputs.
5600 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5602 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5604 PR tree-optimization/48616
5605 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5606 whether the shift is by scalar or vector based on whether all SLP
5607 scalar stmts have the same rhs.
5609 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5611 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5614 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5617 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5620 2011-04-17 Jan Hubicka <jh@suse.cz>
5622 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5623 * cgrpahunit.c (cgraph_finalize_function): Do not set
5624 finalized_by_frontend.
5625 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5626 finalized_by_frontend.
5628 2011-04-17 Jan Hubicka <jh@suse.cz>
5630 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5631 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5632 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5633 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5635 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5637 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5639 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5642 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5643 is non-null before accessing it.
5644 (input_cgraph): Remove trailing spaces.
5646 2011-04-17 Revital Eres <revital.eres@linaro.org>
5648 * params.def (sms-min-sc): New param flag.
5649 * modulo-sched.c (sms_schedule): Use it.
5650 * doc/invoke.texi (sms-min-sc): Document it.
5652 2011-04-17 Jan Hubicka <jh@suse.cz>
5654 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5655 present, also set gimple_call_set_cannot_inline.
5656 * ipa-inline.c: Update toplevel comment.
5658 (cgraph_clone_inlined_nodes): Fix linebreaks.
5659 (cgraph_check_inline_limits): Restructure to ...
5660 (caller_growth_limits): ... this one; be more tolerant
5661 on growth in nested inline chains; add explanatory comment;
5662 fix stack accounting thinko introduced by previous patch.
5663 (cgraph_default_inline_p): Remove.
5664 (report_inline_failed_reason): New function.
5665 (can_inline_edge_p): New function.
5666 (can_early_inline_edge_p): New function.
5667 (leaf_node_p): Move upwards in file.
5668 (want_early_inline_function_p): New function.
5669 (want_inline_small_function_p): New function.
5670 (want_inline_self_recursive_call_p): New function.
5671 (cgraph_edge_badness): Rename to ...
5672 (edge_badness) ... this one; fix linebreaks.
5673 (update_edge_key): Update call of edge_baddness; add
5674 detailed dump about queue updates.
5675 (update_caller_keys): Use can_inline_edge_p and
5676 want_inline_small_function_p.
5677 (cgraph_decide_recursive_inlining): Rename to...
5678 (recursive_inlining): Use can_inline_edge_p and
5679 want_inline_self_recursive_call_p; simplify and remove no longer
5681 (cgraph_set_inline_failed): Remove.
5682 (add_new_edges_to_heap): Use can_inline_edge_p and
5683 want_inline_small_function_p.
5684 (cgraph_decide_inlining_of_small_functions): Rename to ...
5685 (inline_small_functions): ... this one; cleanup; use
5686 can/want predicates; cleanup debug ouput; work edges till fibheap
5687 is exhausted and do not stop once unit growth is reached; remove
5688 later loop processing remaining edges.
5689 (cgraph_flatten): Rename to ...
5690 (flatten_function): ... this one; use can_inline_edge_p
5691 and can_early_inline_edge_p predicates.
5692 (cgraph_decide_inlining): Rename to ...
5693 (ipa_inline): ... this one; remove unreachable nodes before
5694 inlining functions called once; simplify the pass.
5695 (cgraph_perform_always_inlining): Rename to ...
5696 (inline_always_inline_functions): ... this one; use
5697 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5698 (cgraph_decide_inlining_incrementally): Rename to ...
5699 (early_inline_small_functions): ... this one; simplify
5700 using new predicates; cleanup; make dumps prettier.
5701 (cgraph_early_inlining): Rename to ...
5702 (early_inliner): newer inline regular functions into always-inlines;
5703 fix updating of call stmt summaries.
5704 (pass_early_inline): Update for new names.
5705 (inline_transform): Fix formating.
5706 (gate_cgraph_decide_inlining): Rename to ...
5707 (pass_ipa_inline): ... this one.
5708 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5709 * ipa-inline-analysis.c (dump_inline_summary): Update.
5710 (compute_inline_parameters): Do not compute disregard_inline_limits;
5711 look for mismatching arguments.
5712 (estimate_growth): Fix handlig of non-trivial self recursion.
5713 (inline_read_summary): Do not read info->disregard_inline_limits.
5714 (inline_write_summary): Do not write info->disregard_inline_limits.
5715 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5716 and move all checks into can_inline_edge_p predicate; re-enable code
5717 comparing optimization levels.
5718 (expand_call_inline): Do not test inline_forbidden_into_p.
5719 * Makefile.in (ipa-inline.o): Update arguments.
5721 2011-04-17 Revital Eres <revital.eres@linaro.org>
5723 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5725 2011-04-17 Revital Eres <revital.eres@linaro.org>
5727 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5729 2011-04-17 Michael Matz <matz@suse.de>
5731 PR tree-optimization/48622
5733 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5734 in same order as they're written.
5736 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5738 * config/pa/predicates.md: Reorganize and simplify predicates.
5739 Eliminate duplicate code checks.
5740 (arith_operand): Rename to arith14_operand
5741 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5742 * config/pa/pa.md: Use renamed operands.
5743 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5744 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5745 arith11_operand, adddi3_operand, indexed_memory_operand,
5746 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5747 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5748 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5749 move_dest_operand, move_src_operand, prefetch_cc_operand,
5750 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5751 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5752 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5753 div_operand, int5_operand, movb_comparison_operator,
5754 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5755 arith_double_operand, ireg_operand, lhs_lshift_operand,
5756 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5757 integer_store_memory_operand): Likewise.
5758 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5759 (integer_store_memory_operand, read_only_operand,
5760 function_label_operand, borx_reg_operand,
5761 non_hard_reg_operand): Likewise.
5762 (eq_neq_comparison_operator): Delete unused operator.
5763 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5764 function_label_operand.
5765 (emit_move_sequence): Likewise.
5767 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5769 * config/i386/sse.md (sseunpackmode): New mode attribute.
5770 (ssepackmode): Ditto.
5771 (vec_pack_trunc_<mode>): Macroize expander from
5772 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5773 (vec_unpacks_lo_<mode>): Macroize expander from
5774 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5775 (vec_unpacks_hi_<mode>): Macroize expander from
5776 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5777 (vec_unpacku_lo_<mode>): Macroize expander from
5778 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5779 (vec_unpacku_hi_<mode>): Macroize expander from
5780 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5781 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5782 ix86_expand_sse4_unpack.
5783 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5785 2011-04-16 Jan Hubicka <jh@suse.cz>
5787 * cgraphbuild.c: Include ipa-inline.h.
5788 (reset_inline_failed): Use initialize_inline_failed.
5789 * cgraph.c: Include ipa-inline.h.
5790 (cgraph_create_node_1): Do not initialize estimated_growth.
5791 (initialize_inline_failed): More to ipa-inline-analysis.c
5792 (dump_cgraph_node): Do not dump inline flags.
5793 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5794 and disregard_inline_limits flags.
5795 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5796 time, size, estimated_growth.
5797 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5799 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5800 DECL_DISREGARD_INLINE_LIMITS.
5801 (cgraph_analyze_function): Do not initialize
5802 node->local.disregard_inline_limits.
5803 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5804 inlinable, versionable and disregard_inline_limits.
5805 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5806 cgraph_check_inline_limits, cgraph_default_inline_p,
5807 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5808 add_new_edges_to_heap): Update.
5809 (cgraph_decide_inlining_of_small_function): Update; set
5810 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5811 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5812 cgraph_decide_inlining_incrementally): Update.
5813 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5814 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5815 time, size and estimated_growth parameters.
5816 (estimate_edge_growth): Update.
5817 (initialize_inline_failed): Declare.
5818 * ipa-split.c: Include ipa-inline.h
5819 (execute_split_functions): Update.
5820 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5821 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5822 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5823 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5824 estimated_growth to INT_MIN.
5825 (inline_node_duplication_hook): Likewise.
5826 (dump_inline_summary): Dump new fields.
5827 (compute_inline_parameters): Update.
5828 (estimate_edge_time, estimate_time_after_inlining,
5829 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5830 inline_write_summary):
5831 (initialize_inline_failed): Move here from cgraph.c.
5832 * tree-sra.c: Include ipa-inline.h.
5833 (ipa_sra_preliminary_function_checks): Update.
5834 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5837 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5839 * config/i386/sse.md (V16): New mode iterator.
5841 (AVXMODEQI, AVXMODEDI): Remove.
5842 (sse2, sse3): New mode attribute.
5843 (mov<mode>): Use V16 mode iterator.
5844 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5845 (push<mode>1): Use V16 mode iterator.
5846 (movmisalign<mode>): Ditto.
5847 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5848 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5849 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5850 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5851 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5852 avx_movdqu<avxmodesuffix>.
5853 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5854 *avx_movdqu<avxmodesuffix>.
5855 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5856 avx_lddqu<avxmodesuffix>.
5857 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5858 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5859 avx_movnt<AVXMODEDI:mode>.
5860 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5861 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5863 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5866 * haifa-sched.c (prune_ready_list, schedule_block): Use
5867 sched_pressure_p rather than flag_sched_pressure.
5869 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5871 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5872 cgraph_get_node instead of cgraph_get_create_node.
5874 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5876 * cfgexpand.c (expand_debug_expr): Use
5877 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5879 2011-04-15 Michael Matz <matz@suse.de>
5881 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5882 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5883 * function.c (gimplify_parameters): Ditto.
5884 * gimplify.c (gimplify_vla_decl): Ditto.
5886 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5887 (gimple_call_set_alloca_for_var): New inline function.
5888 (gimple_call_alloca_for_var_p): Ditto.
5889 * gimple.c (gimple_build_call_from_tree): Remember
5890 CALL_ALLOCA_FOR_VAR_P state.
5891 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5893 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5894 calls if they were for VLA objects.
5896 2011-04-15 Martin Jambor <mjambor@suse.cz>
5898 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5901 2011-04-15 Martin Jambor <mjambor@suse.cz>
5904 * tree-emutls.c (lower_emutls_function_body): Call
5905 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5908 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5910 * c-decl.c (detect_field_duplicates): Call
5911 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5913 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5915 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5916 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5917 * ipa-pure-const.c (check_stmt): Call it.
5918 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5920 2011-04-15 Richard Guenther <rguenther@suse.de>
5922 PR tree-optimization/48290
5923 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5924 Properly decide inhibiting propagation based on the valueized
5925 operand. Do loop-closed SSA form preserving here ...
5926 (init_copy_prop): ... not here.
5928 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5931 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5932 (*ieee_smax<mode>3): Likewise.
5934 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5936 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5937 Replace match_operand with match_dup for the third operand in
5940 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5942 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5943 to track processing of conditionals. Update all callers.
5944 (try_combine, simplify_if_then_else): Update.
5946 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5948 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5951 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5953 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5954 instead of match_operand for operand 3.
5956 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5958 * recog.h (insn_operand_data): Add an "allows_mem" field.
5959 * genoutput.c (output_operand_data): Initialize it.
5960 * optabs.c (maybe_legitimize_operand_same_code): New function.
5961 (maybe_legitimize_operand): Use it when matching the original
5964 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5966 * gimplify.c: Fix issues in comments throughout.
5967 (voidify_wrapper_expr): Fix long line.
5968 (build_stack_save_restore): Likewise.
5969 (gimplify_loop_expr): Likewise.
5970 (gimplify_compound_lval): Likewise.
5971 (gimplify_init_ctor_eval): Likewise.
5972 (gimplify_modify_expr_rhs): Likewise.
5973 (omp_notice_threadprivate_variable): Likewise.
5975 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5977 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5978 original one if this is not a builtin function.
5980 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5983 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5984 offset it as needed based on top 2 bits in operands[3], change
5985 MEM mode to SFmode and mask those 2 bits away from operands[3].
5987 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5989 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5990 change from objc_declare_protocols() to objc_declare_protocol().
5992 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5994 * config/i386/sse.md (sse4_1): New mode attribute.
5995 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5996 avx_blend<ssemodesuffix><avxmodesuffix> and
5997 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5998 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5999 avx_blendv<ssemodesuffix><avxmodesuffix> and
6000 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6001 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6002 avx_dp<ssemodesuffix><avxmodesuffix> and
6003 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6004 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6005 (sse4_1_packusdw): Merge with *avx_packusdw.
6006 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6007 (sse4_1_pblendw): Merge with *avx_pblendw.
6008 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6009 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6010 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6012 (sse4_1_round<ssescalarmodesuffix>): Merge with
6013 *avx_round<ssescalarmodesuffix>.
6014 (aesenc): Merge with *avx_aesenc.
6015 (aesenclast): Merge with *avx_aesenclast.
6016 (aesdec): Merge with *avx_aesdec.
6017 (aesdeclast): Merge with *avx_aesdeclast.
6018 (pclmulqdq): Merge with *pclmulqdq.
6019 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6021 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6023 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6026 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6027 (align_local_variable): This. Update DECL_ALIGN.
6028 (add_stack_var): Updated.
6029 (expand_one_stack_var): Likewise.
6031 2011-04-14 Richard Guenther <rguenther@suse.de>
6033 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6035 (dse_initialize_block_local_data, dse_leave_block,
6036 record_voperand_set, get_stmt_uid): Likewise.
6037 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6038 (dse_optimize_stmt): Remove voperand set handling code.
6039 Simplify and improve to handle any kind of killing stmt.
6040 (dse_record_phi): Remove.
6041 (dse_enter_block): Simplify.
6042 (tree_ssa_dse): Likewise.
6043 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6045 2011-04-14 Jan Hubicka <jh@suse.cz>
6047 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6048 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6049 (cgraph_local_info): Remove inline_summary.
6050 * ipa-cp.c: Include ipa-inline.h.
6051 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6052 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6054 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6055 (input_overwrite_node): Do not set inline summary.
6056 (input_node): Do not stream inline summary.
6057 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6058 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6059 growth; we do not have inline parameters computed for that anyway.
6060 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6061 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6062 (inline_summary_t): New type and VECtor.
6063 (debug_inline_summary, dump_inline_summaries): Declare.
6064 (inline_summary): Use VOCtor.
6065 (estimate_edge_growth): Kill hack computing call stmt size directly.
6066 * lto-section-in.c (lto_section_name): Add inline section.
6067 * ipa-inline-analysis.c: Include lto-streamer.h
6068 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6069 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6070 (inline_summary_vec): Define.
6071 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6072 dump_inline_summaries): New functions.
6073 (estimate_function_body_sizes): Properly compute size/time of outgoing
6075 (compute_inline_parameters): Alloc inline_summary; do not compute
6076 size/time of incomming calls.
6077 (estimate_edge_time): Avoid missing time summary hack.
6078 (inline_read_summary): Read inline summary info.
6079 (inline_write_summary): Write inline summary info.
6080 (inline_free_summary): Free all hooks and inline summary vector.
6081 * lto-streamer.h: Add LTO_section_inline_summary section.
6082 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6083 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6085 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6087 * tree-vectorizer.h (vect_strided_store_supported): Add a
6088 HOST_WIDE_INT argument.
6089 (vect_strided_load_supported): Likewise.
6090 (vect_permute_store_chain): Return void.
6091 (vect_transform_strided_load): Likewise.
6092 (vect_permute_load_chain): Delete.
6093 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6094 count argument. Check that the count is a power of two.
6095 (vect_strided_load_supported): Likewise.
6096 (vect_permute_store_chain): Return void. Update after above changes.
6097 Assert that the access is supported.
6098 (vect_permute_load_chain): Likewise.
6099 (vect_transform_strided_load): Return void.
6100 * tree-vect-stmts.c (vectorizable_store): Update calls after
6101 above interface changes.
6102 (vectorizable_load): Likewise.
6103 (vect_analyze_stmt): Don't check for strided powers of two here.
6105 2011-04-14 Richard Guenther <rguenther@suse.de>
6107 PR tree-optimization/48590
6108 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6109 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6110 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6111 BUILT_IN_STACK_SAVE.
6112 * tree-ssa-dce.c (propagate_necessity): Handle
6113 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6115 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6117 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6120 2011-04-14 Richard Guenther <rguenther@suse.de>
6122 * tree.h (get_object_alignment_1): Declare.
6123 * builtins.c (get_object_alignment_1): Split out worker from ...
6124 (get_object_alignment): ... here.
6125 * fold-const.c (get_pointer_modulus_and_residue): Use
6126 get_object_alignment_1.
6128 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6130 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6132 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6133 parameter. Generalise code to handle arrays as well as vectors.
6134 (vect_setup_realignment): Update accordingly.
6135 * tree-vect-stmts.c (vectorizable_store): Likewise.
6136 (vectorizable_load): Likewise.
6138 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6140 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6141 within the per-copy loop.
6143 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6145 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6148 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6150 * doc/options.texi (Negative): Explicitly mention that the
6151 Negative chain must be circular.
6153 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6155 * function.h (block_chainon): Declare.
6156 * function.c (block_chainon): Define.
6158 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6159 Eric Weddington <eric.weddington@atmel.com>
6160 Georg-Johann Lay <avr@gjlay.de>
6162 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6164 (avr_init_builtins, avr_expand_builtin,
6165 avr_expand_delay_cycles, avr_expand_unop_builtin,
6166 avr_expand_binop_builtin ): New functions.
6167 (avr_builtin_id): New enum
6168 (struct avr_builtin_description): New struct
6169 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6170 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6172 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6173 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6174 UNSPECV_DELAY_CYCLES): new enumeration values
6175 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6176 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6177 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6178 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6179 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6180 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6181 "fmulsu"): New insns
6183 * config/avr/avr-c.c: fix line endings
6184 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6185 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6186 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6187 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6188 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6190 * doc/extend.texi (AVR Built-in Functions): New node
6191 (Target Builtins): Add documentation of AVR
6194 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6197 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6198 alone. Error if non-const data has attribute progmem.
6200 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6202 * tree.h (struct tree_constructor): Include tree_typed instead of
6204 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6205 TS_TYPED instead of TS_COMMON.
6207 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6209 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6210 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6211 (sse2_psadbw): Merge with *avx_psadbw.
6212 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6213 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6214 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6215 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6216 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6217 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6218 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6219 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6220 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6221 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6222 (ssse3_palignrti): Merge with *avx_palignrti.
6224 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6226 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6227 * tree-ssanames.c (fini_ssanames): VEC_free it.
6228 (make_ssa_name_fn): Update for VECness of free_ssanames.
6229 (release_ssa_name, release_dead_ssa_names): Likewise.
6230 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6232 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6233 TS_TYPED instead of TS_COMMON.
6235 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6237 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6238 statistics_counter_event.
6239 * tree-ssa-copyrename.c (stats): Define.
6240 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6241 statistics_counter_event.
6242 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6243 (bswap_stats, widen_mul_stats): Define.
6244 (insert_reciprocals): Increment rdivs_inserted.
6245 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6246 rfuncs_inserted. Add calls to statistics_counter_event.
6247 (execute_cse_sincos_1): Increment inserted.
6248 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6249 statistics_counter_event.
6250 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6251 of bswap_stats. Add calls to statistics_counter_event.
6252 (convert_mult_to_widen): Increment widen_mults_inserted.
6253 (convert_plusminus_to_widen): Increment maccs_inserted.
6254 (convert_mult_to_fma): Increment fmas_inserted.
6255 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6256 calls to statistics_counter_event.
6258 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6260 PR rtl-optimization/48455
6261 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6262 `temp_costs->mem_cost'.
6264 2011-04-13 Jan Hubicka <jh@suse.cz>
6266 * ipa-inline.h: New file.
6267 * ipa-inline-analysis.c: New file. Broken out of ...
6268 * ipa-inline.c: ... this file; update toplevel comment;
6269 include ipa-inline.h
6270 (inline_summary): Move to ipa-inline.h
6271 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6272 ipa-inline-analysis.c.
6273 (cgraph_estimate_time_after_inlining): Rename to
6274 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6275 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6276 to estimate_edge_growth.
6277 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6278 rename to estimate_size_after_inlining.
6279 (cgraph_mark_inline_edge): Update for new naming convention.
6280 (cgraph_check_inline_limits): Likewise.
6281 (cgraph_edge_badness): Likewise.
6282 (cgraph_decide_recursive_inlining): Likewise.
6283 (cgraph_decide_inlining_of_small_functions): Likewise.
6284 (cgraph_decide_inlining_incrementally): Likewise.
6285 (cgraph_estimate_growth): Rename to estimate_growth; move to
6286 ipa-inline-analysis.c.
6287 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6288 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6289 (compute_inline_parameters): Likewise.
6290 (compute_inline_parameters_for_current): Likewise.
6291 (pass_inline_parameters): Likewise.
6292 (inline_indirect_intraprocedural_analysis): Likewise.
6293 (analyze_function): Rename to inline_analyze_function; likewise.
6294 (add_new_function): Move to ipa-inline-analysis.c.
6295 (inline_generate_summary): Likewise.
6296 (inline_read_summary): Likewise.
6297 (inline_write_summary): Likewise.
6298 * Makefile.in (ipa-inline-analysis.c): New file.
6300 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6302 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6303 * configure: Regenerate.
6305 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6307 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6308 instead of tree_common.
6309 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6311 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6312 TS_TYPED rather than TS_COMMON.
6313 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6315 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6318 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6319 r20 around calls of __tablejump_elpm__
6321 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6324 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6326 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6328 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6330 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6331 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6332 (cfi_vec): New typedef.
6333 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6334 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6335 (cie_cfi_vec): New static variable.
6336 (cie_cfi_head): Delete.
6337 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6338 declaration changed. Use vector rather than list operations.
6339 (new_cfi): Don't initialize the dw_cfi_next field.
6340 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6341 rather than list operations.
6342 (lookup_cfa): Use vector rather than list operations.
6343 (output_cfis): New argument upto. Accept a cfi_vec rather than
6344 a dw_cfi_ref list head as argument. All callers changed.
6345 Iterate over the vector using upto as a maximum index.
6346 (output_all_cfis): New static function.
6347 (output_fde): Use vector rather than list operations. Use the
6348 new upto argument for output_cfis rather than manipulating a
6350 (dwarf2out_begin_prologue): Change initializations to match
6352 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6353 from the vector length rather than searching for the end of a list.
6354 Use output_all_cfis.
6355 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6357 2011-04-13 Nick Clifton <nickc@redhat.com>
6359 * config/rx/rx.md (movmemsi): Do not use this pattern when
6360 volatile pointers are involved.
6362 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6364 * config/i386/sse.md (pinsrbits): Remove.
6365 (sse2_packsswb): Merge with *avx_packsswb.
6366 (sse2_packssdw): Merge with *avx_packssdw.
6367 (sse2_packuswb): Merge with *avx_packuswb.
6368 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6369 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6370 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6371 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6372 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6373 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6374 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6375 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6376 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6377 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6378 (sse2_loadld): Merge with *avx_loadld.
6379 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6380 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6381 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6382 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6383 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6385 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6387 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6389 * print-tree.c (print_node): Likewise.
6390 * tree-inline.c (copy_tree_r): Likewise.
6391 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6392 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6393 instead of TS_COMMON.
6394 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6395 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6396 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6397 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6398 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6400 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6402 (TREE_CHAIN): Check for a TS_COMMON structure.
6403 (TREE_TYPE): Check for a TS_TYPED structure.
6405 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6407 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6408 cgraph_get_create_node instead of cgraph_node.
6410 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6412 * c-parser.c (c_parser_initelt): Updated call to
6413 objc_build_message_expr.
6414 (c_parser_postfix_expression): Likewise.
6416 2011-04-12 Kai Tietz <ktietz@redhat.com>
6418 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6419 MASK_MS_BITFIELD_LAYOUT bit.
6421 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6423 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6424 assert it is always true.
6425 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6428 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6430 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6431 compiling Objective-C to be more efficient.
6433 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6435 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6438 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6440 * recog.h, genoutput.c, optabs.c: Revert last patch.
6442 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6445 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6447 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6449 * recog.h (insn_operand_data): Add an "allows_mem" field.
6450 * genoutput.c (output_operand_data): Initialize it.
6451 * optabs.c (maybe_legitimize_operand_same_code): New function.
6452 (maybe_legitimize_operand): Use it when matching the original
6455 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6457 * genpreds.c (process_define_predicate): Move most processing
6458 to gensupport.c. Continue to validate the expression.
6459 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6460 (process_define_predicate): Move processing to gensupport.c.
6461 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6462 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6463 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6465 (valid_predicate_name_p): New function, split out from old
6466 genpreds.c:process_define_predicate.
6467 (process_define_predicate): New function, combining code from
6468 old genpreds.c and genrecog.c functions.
6469 (process_rtx): Call it for DEFINE_PREDICATE and
6470 DEFINE_SPECIAL_PREDICATE.
6472 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6474 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6475 size of a '%A' memory reference.
6476 (T_DREG, T_QREG): New neon_builtin_type_bits.
6477 (arm_init_neon_builtins): Assert that the load and store operands
6478 are neon_struct_operands.
6479 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6480 (NEON_ARG_MEMORY): New builtin_arg.
6481 (neon_dereference_pointer): New function.
6482 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6483 Handle NEON_ARG_MEMORY.
6484 (arm_expand_neon_builtin): Update after above interface changes.
6485 Use NEON_ARG_MEMORY for loads and stores.
6486 * config/arm/predicates.md (neon_struct_operand): New predicate.
6487 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6488 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6489 (V_four_elem): Tweak formatting.
6490 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6491 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6492 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6493 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6494 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6495 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6496 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6497 Use %A in the output template.
6498 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6499 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6500 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6501 the width of the memory access. Remove post-increment.
6502 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6504 2011-04-12 Nick Clifton <nickc@redhat.com>
6506 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6507 instruction for interrupt handlers if the target is the basic V850
6509 (expand_epilogue): Likewise.
6511 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6513 PR rtl-optimization/48549
6514 * combine.c (propagate_for_debug): Also stop after BB_END of
6515 this_basic_block. Process LAST and just stop processing after it.
6516 (combine_instructions): If last_combined_insn has been deleted,
6517 set last_combined_insn to its PREV_INSN.
6519 2011-04-12 Richard Guenther <rguenther@suse.de>
6521 PR tree-optimization/46076
6522 * gimple.h (struct gimple_statement_call): Add fntype field.
6523 (gimple_call_fntype): Adjust.
6524 (gimple_call_set_fntype): New function.
6525 * gimple.c (gimple_build_call_1): Set the call function type.
6526 * gimplify.c (gimplify_call_expr): Preserve the function
6527 type the frontend used for the call.
6528 (gimplify_modify_expr): Likewise.
6529 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6531 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6533 * tree-ssa.c (useless_type_conversion_p): Function pointer
6534 conversions are useless.
6536 2011-04-12 Martin Jambor <mjambor@suse.cz>
6538 * cgraph.h (cgraph_node): Remove function declaration.
6539 (cgraph_create_node): Declare.
6540 (cgraph_get_create_node): Likewise.
6541 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6542 Updated all callers.
6543 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6544 the decl does not already exist. Call cgraph_get_create_node instead
6546 (cgraph_get_create_node): New function.
6547 (cgraph_same_body_alias): Update comment.
6548 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6549 assert it does not return NULL.
6550 (cgraph_update_edges_for_call_stmt): Likewise.
6551 (cgraph_clone_edge): Likewise.
6552 (cgraph_create_virtual_clone): Likewise.
6553 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6554 instead of cgraph_node.
6555 (cgraph_add_new_function): Call cgraph_create_node or
6556 cgraph_get_create_node instead of cgraph_node.
6557 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6558 instead of cgraph_node.
6559 (record_eh_tables): Likewise.
6560 (mark_address): Likewise.
6561 (mark_load): Likewise.
6562 (build_cgraph_edges): Call cgraph_get_create_node instead
6564 (rebuild_cgraph_edges): Likewise.
6565 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6566 instead of cgraph_node.
6567 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6569 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6570 cgraph_create_node instead of cgraph_node.
6571 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6573 * lto-cgraph.c (input_node): Likewise.
6574 * lto-streamer-in.c (input_function): Likewise.
6575 * varasm.c (mark_decl_referenced): Likewise.
6576 (assemble_alias): Likewise.
6578 2011-04-12 Martin Jambor <mjambor@suse.cz>
6580 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6581 instead of cgraph_node and assert it does not return NULL.
6582 * lto-streamer-in.c (lto_read_body): Likewise.
6583 * omp-low.c (new_omp_context): Likewise.
6584 (create_task_copyfn): Likewise.
6585 * tree-emutls.c (lower_emutls_function_body): Likewise.
6586 * matrix-reorg.c (transform_allocation_sites): Likewise.
6588 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6591 * c-typeck.c (build_asm_expr): Error out on attempts to use
6592 void type outputs or inputs for constraints that allow reg or
6595 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6596 Richard Earnshaw <rearnsha@arm.com>
6599 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6600 to use sign-magnitude offsets. Reject unsupported unaligned
6601 cases. Add detailed description in comments.
6602 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6603 condition from TARGET_32BIT to TARGET_ARM.
6605 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6607 * tree.h (struct typed_tree): New.
6608 (struct tree_common): Include it instead of tree_base.
6609 (TREE_TYPE): Update for new location of type field.
6610 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6611 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6612 (union tree_node): Add typed field.
6613 * treestruct.def (TS_TYPED): New.
6614 * lto-streamer.c (check_handled_ts_structures): Handle it.
6615 * tree.c (MARK_TS_TYPED): New macro.
6616 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6618 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6620 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6621 (force_nonfallthru): Do not alter the loop nest if no basic block
6624 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6626 * config/i386/sse.md (VI): New mode iterator.
6628 (AVX256MODEI): Ditto.
6629 (AVXMODEF4P): Ditto.
6630 (avxvecpsmode): Ditto.
6631 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6632 (sse2_andnot<mode>3): New expander.
6633 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6634 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6635 (<any_logic:code><mode>3): Use VI mode iterator.
6636 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6637 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6638 (*andnottf3): Handle AVX three-operand constraints.
6639 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6641 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6642 Robert Millan <rmh@gnu.org>
6644 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6645 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6646 GNU_USER_DYNAMIC_LINKER64): Define.
6647 (REG_NAME): Don't undefine.
6648 (MD_UNWIND_SUPPORT): Undefine.
6649 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6650 (REG_NAME): Don't undefine.
6651 (MD_UNWIND_SUPPORT): Undefine.
6652 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6654 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6656 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6657 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6659 2011-04-11 Xinliang David Li <davidxl@google.com>
6661 * value-profile.c (check_ic_target): New function.
6662 (gimple_ic_transform): Sanity check indirect call target.
6663 * gimple-low.c (gimple_check_call_args): Interface change.
6664 (gimple_check_call_matching_types): New function.
6665 * tree-inline.c (tree_can_inline_p): Call new function.
6667 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6669 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6670 tree-pretty-print.h & realmpfr.h.
6672 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6675 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6676 (setup_allocno_and_important_classes): Ditto.
6678 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6680 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6681 GNU_USER_DYNAMIC_LINKER.
6682 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6683 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6684 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6685 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6686 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6687 GNU_USER_TARGET_OS_CPP_BUILTINS.
6688 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6689 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6690 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6691 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6692 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6693 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6694 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6695 GNU_USER_TARGET_OS_CPP_BUILTINS.
6696 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6697 GNU_USER_DYNAMIC_LINKER.
6698 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6699 GNU_USER_TARGET_OS_CPP_BUILTINS.
6700 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6701 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6702 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6703 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6704 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6705 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6706 GNU_USER_DYNAMIC_LINKER64): Remove.
6707 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6708 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6709 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6710 GNU_USER_DYNAMIC_LINKER.
6711 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6712 GNU_USER_TARGET_OS_CPP_BUILTINS.
6713 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6714 GNU_USER_TARGET_OS_CPP_BUILTINS.
6715 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6716 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6717 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6718 GNU_USER_TARGET_OS_CPP_BUILTINS.
6719 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6720 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6721 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6722 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6724 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6725 GNU_USER_DYNAMIC_LINKER.
6726 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6727 GNU_USER_TARGET_OS_CPP_BUILTINS.
6728 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6729 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6730 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6731 GNU_USER_DYNAMIC_LINKER.
6732 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6733 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6734 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6735 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6736 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6737 GNU_USER_DYNAMIC_LINKER.
6738 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6739 GNU_USER_DYNAMIC_LINKERN32.
6740 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6741 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6742 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6743 GNU_USER_DYNAMIC_LINKER32.
6744 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6745 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6746 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6747 GNU_USER_DYNAMIC_LINKER.
6748 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6749 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6750 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6751 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6752 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6753 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6754 GNU_USER_DYNAMIC_LINKER32.
6755 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6756 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6757 GNU_USER_DYNAMIC_LINKER.
6758 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6759 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6760 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6761 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6762 GNU_USER_DYNAMIC_LINKER64.
6763 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6764 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6765 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6766 GNU_USER_DYNAMIC_LINKER.
6767 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6768 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6769 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6770 GNU_USER_DYNAMIC_LINKER.
6771 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6772 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6773 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6774 GNU_USER_DYNAMIC_LINKER32.
6775 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6776 GNU_USER_DYNAMIC_LINKER64.
6777 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6778 GNU_USER_DYNAMIC_LINKER64.
6779 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6780 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6781 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6782 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6783 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6785 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6787 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6788 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6789 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6790 GNU_USER_DYNAMIC_LINKER.
6791 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6792 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6793 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6794 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6795 GNU_USER_DYNAMIC_LINKER64.
6796 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6797 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6798 GNU_USER_LINK_EMULATION.
6799 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6800 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6801 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6802 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6803 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6804 CPP_SPEC, CC1_SPEC): Remove.
6805 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6806 (GNU_USER_DYNAMIC_LINKER): Define.
6807 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6808 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6809 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6810 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6811 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6812 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6813 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6814 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6815 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6816 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6817 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6818 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6819 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6820 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6821 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6822 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6823 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6824 GNU_USER_DYNAMIC_LINKER.
6825 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6826 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6827 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6828 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6829 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6830 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6831 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6832 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6833 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6834 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6836 2011-04-11 Kai Tietz <ktietz@redhat.com>
6840 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6841 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6843 (ix86_is_msabi_thiscall): Removed.
6844 (ix86_is_type_thiscall): Likewise.
6845 (ix86_get_callcvt): New function.
6846 (ix86_comp_type_attributes): Simplify check.
6847 (ix86_function_regparm): Use ix86_get_callcvt for calling
6848 convention attribute checks.
6849 (ix86_return_pops_args): Likewise.
6850 (ix86_static_chain): Likewise.
6851 (x86_this_parameter): Likewise.
6852 (x86_output_mi_thunk): Likewise.
6853 (ix86_function_type_abi): Optimize check for types without attributes.
6854 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6855 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6856 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6858 (IX86_BASE_CALLCVT): Helper macro.
6859 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6860 Use ix86_get_callcvt for calling convention attribute checks and avoid
6861 symbol-decoration for stdcall in TARGET_RTD case.
6862 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6864 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6867 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6869 * config/i386/sse.md (VI_128): New mode iterator.
6870 (VI12_128): Rename from SSEMODE12.
6871 (VI14_128): Rename from SSEMODE14.
6872 (VI124_128): New mode iterator.
6873 (VI24_128): Rename from SSEMODE248.
6874 (VI248_128): Rename from SSEMODE248.
6875 (SSEMODE124C8): Remove.
6876 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6877 (*sse2_<plusminus_insn><mode>3): Merge with
6878 *avx_<plusminus_insn><mode>3.
6879 (*mulv8hi3): Merge with *avx_mulv8hi3.
6880 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6881 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6882 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6883 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6884 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6885 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6886 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6887 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6888 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6889 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6890 (*<smaxmin:code>v8hi3): Ditto.
6891 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6892 (*<smaxmin:code>v16qi3): Ditto.
6893 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6894 (*sse2_eq<mode>3): Ditto.
6895 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6896 (*sse2_gt<mode>3): Ditto.
6897 (vcondv2di): Split out of vcond<mode>.
6898 (vconduv2di): Split out of vcondu<mode>.
6900 2011-04-11 Richard Guenther <rguenther@suse.de>
6902 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6903 before calling tree_low_cst.
6905 2011-04-11 Richard Guenther <rguenther@suse.de>
6907 * stor-layout.c (layout_type): Compute all array index size operations
6908 in the original type.
6909 (initialize_sizetypes): Add comment.
6910 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6912 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6914 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6916 2011-04-11 Martin Jambor <mjambor@suse.cz>
6918 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6919 of cgraph_node, handle NULL return value.
6920 (cgraph_global_info): Likewise.
6921 (cgraph_rtl_info): Likewise.
6922 * tree-inline.c (estimate_num_insns): Likewise.
6923 * gimplify.c (unshare_body): Likewise.
6924 (unvisit_body): Likewise.
6925 (gimplify_body): Likewise.
6926 * predict.c (optimize_function_for_size_p): Likewise.
6927 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6928 (call_may_clobber_ref_p_1): Likewise.
6929 * varasm.c (function_section_1): Likewise.
6930 (assemble_start_function): Likewise.
6932 2011-04-11 Martin Jambor <mjambor@suse.cz>
6934 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6936 * final.c (rest_of_clean_state): Likewise.
6937 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6938 * passes.c (pass_init_dump_file): Likewise.
6939 (execute_all_ipa_transforms): Likewise.
6940 (function_called_by_processed_nodes_p): Likewise.
6941 * predict.c (maybe_hot_frequency_p): Likewise.
6942 (probably_never_executed_bb_p): Likewise.
6943 (compute_function_frequency): Likewise.
6944 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6945 (unnest_nesting_tree_1): Likewise.
6946 (lower_nested_functions): Likewise.
6947 * tree-optimize.c (execute_fixup_cfg): Likewise.
6948 (tree_rest_of_compilation): Likewise.
6949 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6950 * tree-sra.c (ipa_early_sra): Likewise.
6951 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6952 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6953 * ipa.c (record_cdtor_fn): Likewise.
6954 * ipa-inline.c (cgraph_early_inlining): Likewise.
6955 (compute_inline_parameters_for_current): Likewise.
6956 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6957 * ipa-pure-const.c (local_pure_const): Likewise.
6958 * ipa-split.c (split_function): Likewise.
6959 (execute_split_functions): Likewise.
6960 * cgraphbuild.c (build_cgraph_edges): Likewise.
6961 (rebuild_cgraph_edges): Likewise.
6962 (cgraph_rebuild_references): Likewise.
6963 (remove_cgraph_callee_edges): Likewise.
6964 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6965 (verify_cgraph_node): Likewise.
6966 (cgraph_analyze_functions): Likewise.
6967 (cgraph_preserve_function_body_p): Likewise.
6968 (save_inline_function_body): Likewise.
6969 (save_inline_function_body): Likewise.
6970 * tree-inline.c (copy_bb): Likewise.
6971 (optimize_inline_calls): Likewise.
6973 2011-04-11 Martin Jambor <mjambor@suse.cz>
6975 PR tree-optimization/48195
6976 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6977 ipa_check_create_edge_args.
6978 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6979 ipa_check_create_edge_args.
6980 * ipa-inline.c (inline_generate_summary): Do not call
6981 ipa_check_create_node_params and ipa_check_create_edge_args.
6982 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6983 ipa_check_create_edge_args.
6985 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6987 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6989 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6990 * function.c (record_hard_reg_sets): Likewise.
6991 * ira.c (compute_regs_asm_clobbered): Likewise.
6992 * sched-deps.c (sched_analyze_1): Likewise.
6993 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6995 2011-04-09 Xinliang David Li <davidxl@google.com>
6997 PR tree-optimization/PR48484
6998 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6999 has_valid_pred lazily
7001 2011-04-09 Duncan Sands <baldrick@free.fr>
7003 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7005 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7007 * combine.c (combine_validate_cost): Adjust comments. Set registered
7008 cost of I0 to zero at the end, if any.
7010 2011-04-08 Xinliang David Li <davidxl@google.com>
7012 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7013 to insane profile data.
7015 2011-04-08 Xinliang David Li <davidxl@google.com>
7017 * ipa-cp.c (ipcp_update_profiling): Correct
7018 negative scale factor due to insane profile data.
7020 2011-04-08 Xinliang David Li <davidxl@google.com>
7022 * final.c (dump_basic_block_info): New function.
7023 (final): Dump basic block.
7024 (final_scan_insn): Remove old dump.
7026 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7029 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7032 2011-04-08 Michael Matz <matz@suse.de>
7035 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7037 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7038 * rtl.h (rebuild_jump_labels_chain): Declare.
7039 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7040 insns inserted on edges.
7042 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7044 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7045 * config/arm/arm-arches.def: New.
7046 * config/arm/arm-opts.h: New.
7047 * config/arm/genopt.sh: New.
7048 * config/arm/arm-tables.opt: New (generated).
7049 * config/arm/arm.c (arm_handle_option, arm_target_help,
7050 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7051 (all_architectures): Get most table contents from arm-arches.def.
7052 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7053 arm_selected_tune here.
7054 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7055 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7056 (march=, mcpu=, mtune=): Use Enum and Var.
7057 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7058 (arm.o): Update dependencies.
7060 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7062 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7064 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7065 (write_typed_alloc_defns): Likewise.
7066 (main): Calls write_typed_alloc_defns with output_header.
7068 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7071 * ira-color.c (setup_profitable_hard_regs): Add comments.
7072 Don't take prohibited hard regs into account.
7073 (setup_conflict_profitable_regs): Rename to
7074 get_conflict_profitable_regs.
7075 (check_hard_reg_p): Check prohibited hard regs.
7077 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7079 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7080 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7081 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7083 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7086 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7087 move from floating point to shift amount register.
7088 (emit_move_sequence): Remove secondary reload support for floating
7089 point to shift amount amount register copies.
7090 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7091 amount register copies.
7092 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7093 register, return false if mode isn't a scalar integer mode.
7094 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7096 2011-04-08 Richard Guenther <rguenther@suse.de>
7098 * gimple.c (gimple_call_flags): Remove kludge.
7100 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7102 * sel-sched.c (sel_region_init): Move call to
7103 sel_setup_region_sched_flags after setup_current_loop_nest.
7105 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7107 PR rtl-optimization/48272
7108 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7109 init_insn_reg_pressure_info. Adjust a caller.
7110 * sched-int.h (init_insn_reg_pressure_info): Declare.
7111 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7112 when sched-pressure is enabled.
7114 2011-04-08 Richard Guenther <rguenther@suse.de>
7116 * gimple.c (gimple_set_modified): Do not queue calls to
7117 MODIFIED_NORETURN_CALLS here ...
7118 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7120 2011-04-08 Richard Guenther <rguenther@suse.de>
7123 * toplev.c (lang_dependent_init): Do not open asm_out_file
7124 in WPA mode, nor perform debug machinery initialization.
7125 (finalize): Do not unlink asm_out_file in WPA mode.
7127 2011-04-08 Richard Guenther <rguenther@suse.de>
7129 * gimple.h (gimple_call_fntype): New function.
7130 (gimple_call_return_type): Use it.
7131 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7132 * gimple-low.c (gimple_check_call_args): Likewise.
7133 * gimple.c (gimple_call_flags): Likewise.
7134 (gimple_call_arg_flags): Likewise.
7135 (gimple_call_return_flags): Likewise.
7136 * tree-cfg.c (verify_gimple_call): Likewise.
7137 (do_warn_unused_result): Likewise.
7138 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7139 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7141 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7143 PR rtl-optimization/48235
7144 * sel-sched.c (code_motion_process_successors): Recompute the last
7145 insn in basic block if control flow changed.
7146 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7147 Update condition for ilist_remove.
7149 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7151 PR rtl-optimization/48302
7152 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7153 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7154 it to record added preheader blocks.
7155 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7156 on to sel_add_loop_preheaders.
7157 (sel_region_init): Move call to setup_current_loop_nest after
7160 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7163 * cfgloop.h (loop_has_exit_edges): New helper.
7164 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7166 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7167 that have no exit edges.
7169 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7171 PR rtl-optimization/48442
7172 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7173 all callers. Adjust assert.
7175 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7177 PR tree-optimization/48377
7178 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7179 is_packed to true even for types with smaller TYPE_ALIGN than
7182 2011-04-08 Richard Guenther <rguenther@suse.de>
7185 * doc/tm.texi: Re-generate.
7187 2011-04-08 Wei Guozhi <carrot@google.com>
7190 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7191 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7192 * config/arm/arm.md (*push_multi): Change the length computation to
7195 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7197 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7198 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7199 * doc/tm.texi: Regenerate.
7200 * system.h (ASM_OUTPUT_BSS): Poison.
7201 * varasm.c (asm_output_bss): Remove function.
7202 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7204 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7205 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7206 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7207 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7209 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7211 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7213 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7215 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7217 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7220 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7222 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7223 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7224 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7226 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7227 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7228 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7229 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7230 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7231 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7232 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7233 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7234 options. Don't map other m68k options manually. Don't handle
7235 old-style options as canonical.
7236 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7237 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7239 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7241 * basic-block.h (force_nonfallthru): Move to...
7242 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7243 (force_nonfallthru): ...here.
7244 * cfghooks.c (force_nonfallthru): New function.
7245 * cfgrtl.c (force_nonfallthru): Rename into...
7246 (rtl_force_nonfallthru): ...this.
7247 (commit_one_edge_insertion): Do not set AUX field.
7248 (commit_edge_insertions): Do not discover new basic blocks.
7249 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7250 (cfg_layout_rtl_cfg_hooks): Likewise.
7251 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7252 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7253 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7255 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7257 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7260 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7262 * config/i386/sse.md: Update copyright year.
7263 (avxcvtvecmode): Remove.
7264 (sse_movhlps): Merge with *avx_movhlps.
7265 (sse_movlhps): Merge with *avx_movlhps.
7266 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7267 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7268 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7269 (sse_loadhps): Merge with *avx_loadhps.
7270 (sse_storelps): Merge with *avx_storelps.
7271 (sse_loadlps): Merge with *avx_loadlps.
7272 (sse_movss): Merge with *avx_movss.
7273 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7274 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7275 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7276 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7277 (vec_set<mode>_0): Ditto.
7278 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7279 (sse4_1_insertps): Merge with *avx_insertps.
7280 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7281 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7282 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7283 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7284 (sse2_storehpd): Merge with *avx_storehpd.
7285 (sse2_loadhpd): Merge with *avx_loadhpd.
7286 (sse2_loadlpd): Merge with *avx_loadlpd.
7287 (sse2_movsd): Merge with *avx_movsd.
7288 (*vec_concatv2df): Merge with *vec_concatv2df.
7290 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7293 * combine.c (combine_instructions): Add last_combined_insn,
7294 update it if insn is after it, pass it to all try_combine calls.
7295 (try_combine): Add last_combined_insn parameter, pass it instead of
7296 i3 to propagate_for_debug.
7298 2011-04-07 Nick Clifton <nickc@redhat.com>
7300 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7301 to handle MDR <-> data register transfers.
7302 (movhi_internal): Likewise.
7304 2011-04-07 Alan Modra <amodra@gmail.com>
7306 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7307 previous stack info.
7309 2011-04-07 Tom de Vries <tom@codesourcery.com>
7312 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7313 flow_find_cross_jump. Swap variables to implement backward replacement.
7314 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7316 2011-04-07 Tom de Vries <tom@codesourcery.com>
7319 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7320 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7322 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7323 src1 or src2. Redirect edges to the last basic block. Update
7324 frequency and count on multiple basic blocks in case of fallthru.
7326 2011-04-07 Tom de Vries <tom@codesourcery.com>
7329 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7331 (old_insns_match_p): Change return type. Replace return false/true
7332 with return dir_none/dir_both. Use can_replace_by.
7333 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7334 direction from dir_p. Register replacement direction in dir, last_dir
7335 and afterlast_dir. Handle new return type of old_insns_match_p using
7336 merge_dir. Return replacement direction in dir_p.
7337 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7338 return type of old_insns_match_p.
7339 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7340 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7341 flow_find_cross_jump.
7342 * basic-block.h (enum replace_direction): New type.
7343 (flow_find_cross_jump): Add parameter to declaration.
7345 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7347 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7348 (AVXMODEDCVTPS2DQ): Ditto.
7349 (VEC_FLOAT_MODE): Ditto.
7350 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7351 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7352 (<any_logic:code><mode>3): Use VF mode iterator.
7353 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7354 Use VF mode iterator.
7355 (copysign<mode>3): Use VF mode iterator.
7356 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7357 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7358 (*<any_logic:code><MODEF:mode>3): Merge with
7359 *avx_<any_logic:code><MODEF:mode>3.
7360 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7361 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7362 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7363 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7364 (sse2_cvtdq2ps): Use %v modifier.
7365 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7366 (avx_cvtps2dq<avxmodesuffix>): Remove.
7367 (sse2_cvtps2dq): Use %v modifier.
7368 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7369 (avx_cvttps2dq<avxmodesuffix>): Remove.
7370 (sse2_cvttps2dq): Use %v modifier.
7371 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7372 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7373 (sse2_cvtsd2siq): Fix insn template.
7374 (sse2_cvtsd2siq_2): Ditto.
7375 (sse2_cvttsd2siq): Ditto.
7376 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7377 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7379 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7381 * gcov-io.c: Use GCC Runtime Library Exception.
7383 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7386 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7387 as base_reg whatever register reg has been eliminated to, instead
7388 of hardcoding STACK_POINTER_REGNUM.
7390 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7392 * doc/tm.texi.in: Document C target hooks as separate from general
7394 * doc/tm.texi: Regenerate.
7395 * genhooks.c (struct hook_desc): Add docname field.
7396 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7398 (hook_array): Include c-target.def.
7399 (emit_documentation): Use docname field in output.
7400 (emit_init_macros): Take docname argument. Only emit definitions
7401 for hooks matching docname.
7402 (main): Expect additional arguments in all cases. Pass argument
7403 to emit_init_macros.
7404 * target.def: Move initial macro definitions and comments to
7405 target-hooks-macros.h.
7406 (gcc_targetcm): Move to c-family/c-target.def.
7407 * target.h (targetcm): Move declaration to c-family/c-target.h.
7408 * targhooks.c (default_handle_c_option): Move to
7410 * targhooks.h (default_handle_c_option): Move declaration to
7411 c-family/c-common.h.
7412 * target-hooks-macros.h: New file.
7413 * config.gcc (target_has_targetcm): Define and use to add to
7414 c_target_objs and cxx_target_objs.
7415 * config/default-c.c: New file.
7416 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7417 of target.h and target-def.h.
7418 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7419 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7420 darwin_check_cfstring_format_arg): Make static.
7421 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7422 TARGET_STRING_OBJECT_REF_TYPE_P,
7423 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7424 * config/darwin-protos.h (darwin_objc_construct_string,
7425 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7427 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7428 TARGET_STRING_OBJECT_REF_TYPE_P,
7429 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7430 * config/t-darwin (darwin-c.o): Update dependencies.
7431 * system.h (TARGET_HAS_TARGETCM): Poison.
7432 * Makefile.in (TARGET_H): Update.
7433 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7434 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7435 (default-c.o): New target.
7436 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7437 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7438 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7440 (build/genhooks.o): Update dependencies.
7442 2011-04-06 Richard Guenther <rguenther@suse.de>
7444 * ipa-inline.c (enum inlining_mode): Remove.
7445 (cgraph_flatten): Use some other token.
7446 (cgraph_edge_early_inlinable_p): New function, split out from ...
7447 (cgraph_perform_always_inlining): New function, split out from ...
7448 (cgraph_decide_inlining_incrementally): ... here.
7449 (cgraph_mark_inline_edge): Adjust.
7450 (cgraph_early_inlining): Re-structure.
7451 (pass_early_inline): Require SSA form.
7453 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7454 Julian Brown <julian@codesourcery.com>
7455 Mark Shinwell <shinwell@codesourcery.com>
7457 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7458 LO_REGS only for Thumb-1.
7459 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7460 be used in short instructions when optimising for size on Thumb-2.
7462 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7464 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7465 associated with user returns to be preserved.
7467 2011-04-06 Tristan Gingold <gingold@adacore.com>
7469 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7470 symbol_queue_size, DBXOUT_DECR_NESTING,
7471 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7472 if XCOFF_DEBUGGING_INFO.
7474 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7476 * config/i386/i386.md (attribute isa): New.
7477 (attribute enabled): New.
7478 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7479 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7480 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7481 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7482 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7483 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7484 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7485 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7487 * config/i386/sse.md (VF): New mode iterator.
7491 (SSEMODEF4): Remove.
7492 (attribute sse): Handle V8SF and V4DF modes.
7493 (<absneg:code><mode>2): Use VF mode iterator.
7494 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7496 (<plusminus_insn><mode>3): Use VF mode iterator.
7497 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7498 Use VF mode iterator.
7499 (<sse>_vm<plusminus_insn><mode>3): Merge with
7500 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7501 (mul<mode>3): Use VF mode iterator.
7502 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7503 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7505 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7506 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7507 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7508 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7510 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7511 Use VF1 mode iterator.
7512 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7513 (sqrt<VF2:mode>2): New expander.
7514 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7515 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7516 and sqrtv2df2. Use VF mode iterator.
7517 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7519 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7520 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7521 Use VF1 mode iterator.
7522 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7523 (<smaxmin:code><mode>3): Use VF mode iterator.
7524 (*<smaxmin:code><mode>3_finite): Merge with
7525 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7526 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7527 (<sse>_vm<smaxmin:code><mode>2): Merge with
7528 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7529 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7531 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7533 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7534 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7535 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7536 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7537 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7539 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7540 Use VF_128 mode iterator.
7541 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7543 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7544 VF_128 mode iterator.
7545 (vcond<mode>): Use VF mode iterator.
7546 * config/i386/predicates.md (sse_comparison_operator): Merge with
7547 avx_comparison_float_operator. Do not declare as special_predicate.
7548 * config/i386/i386.c (struct builtin_description): Update for renamed
7550 (ix86_expand_args_builtin): Ditto.
7551 (ix86_expand_sse_compare_mask): Ditto.
7553 2011-04-06 Richard Guenther <rguenther@suse.de>
7555 * tree-inline.c (estimate_num_insns): For calls simply account
7556 for all passed arguments and a used return value.
7558 2011-04-06 Richard Guenther <rguenther@suse.de>
7560 PR tree-optimization/47663
7561 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7562 call_stmt_time fields.
7563 (cgraph_edge_inlinable_p): Declare.
7564 (cgraph_edge_recursive_p): New inline function.
7565 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7566 (cgraph_clone_edge): Copy it.
7567 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7568 Account for call stmt time.
7569 (cgraph_estimate_time_after_inlining): Take edge argument.
7570 (cgraph_estimate_edge_growth): Account call stmt size.
7571 (cgraph_estimate_size_after_inlining): Take edge argument.
7572 (cgraph_mark_inline_edge): Adjust.
7573 (cgraph_check_inline_limits): Likewise.
7574 (cgraph_recursive_inlining_p): Remove.
7575 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7576 (cgraph_decide_recursive_inlining): Take edge argument and
7578 (cgraph_decide_inlining_of_small_functions): Do not avoid
7579 diags for recursive inlining here.
7580 (cgraph_flatten): Adjust.
7581 (cgraph_decide_inlining_incrementally): Likewise.
7582 (estimate_function_body_sizes): Remove call cost handling.
7583 (compute_inline_parameters): Initialize caller edge call costs.
7584 (cgraph_estimate_edge_growth): New function.
7585 (cgraph_estimate_growth): Use it.
7586 (cgraph_edge_badness): Likewise.
7587 (cgraph_check_inline_limits): Take an edge argument.
7588 (cgraph_decide_inlining_of_small_functions): Adjust.
7589 (cgraph_decide_inlining): Likewise.
7590 * tree-inline.c (estimate_num_insns): Only account for call
7591 return value if it is used.
7592 (expand_call_inline): Avoid diagnostics on recursive inline
7594 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7595 (input_edge): Input edge call costs.
7597 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7599 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7601 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7603 * doc/invoke.texi (Spec Files): Fix typo.
7605 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7607 * profile.c (branch_prob): Move declaration of local variable. Remove
7608 obsolete ??? comment. Expand the location explicitly instead of using
7609 the LOCATION_FILE and LOCATION_LINE macros.
7611 2011-04-06 Wei Guozhi <carrot@google.com>
7614 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7615 (arm_cond_branch): Likewise.
7616 (arm_cond_branch_reversed): Likewise.
7617 (arm_jump): Likewise.
7618 (push_multi): Likewise.
7619 * config/arm/constraints.md (Py): New constraint.
7621 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7624 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7626 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7627 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7628 #ifdef DBX_DEBUGGING_INFO.
7630 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7633 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7634 if old and new states differ.
7636 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7638 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7639 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7640 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7641 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7642 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7644 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7645 ColdFire options to -mcpu= options.
7647 2011-04-05 Jeff Law <law@redhat.com>
7649 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7650 check if BB is a successor of LOOP->header and return
7651 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7653 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7655 * cprop.c (struct reg_use): Remove.
7656 (reg_use_table): Make an array of RTX.
7657 (find_used_regs, constprop_register, local_cprop_pass,
7658 bypass_block): Simplify users of reg_use_table.
7659 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7660 on one of the uses found by find_used_regs.
7662 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7665 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7668 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7670 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7672 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7674 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7677 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7679 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7681 * combine.c: Include obstack.h.
7682 (struct insn_link): Define.
7683 (uid_log_links): Adjust type.
7684 (FOR_EACH_LOG_LINK): New macro.
7685 (insn_link_obstack): Declare.
7686 (alloc_insn_link): Define.
7687 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7688 type of link variables.
7689 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7690 (try_combine, record_promoted_values, distribute_notes): Likewise.
7691 (distribute_links): Likewise. Tweak prototype.
7692 (clear_log_links): Delete.
7693 (adjust_for_new_dest): Call alloc_insn_link.
7694 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7696 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7698 * gcse.c (modify_mem_list): Convert to an array of VECs.
7699 (canon_modify_mem_list, compute_transp): Tweak formatting.
7700 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7701 (load_killed_in_block_p): Likewise.
7702 (record_last_mem_set_info): Likewise.
7703 (clear_modify_mem_tables): Likewise.
7705 2011-04-05 Tom de Vries <tom@codesourcery.com>
7708 * function.c (emit_use_return_register_into_block): Only define if
7711 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7713 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7715 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7717 * config/rx/rx-opts.h: New.
7718 * config/rx/rx.c (rx_cpu_type): Remove.
7719 (rx_handle_option): Don't assert that global structures are in
7720 use. Access variables via opts pointer. Defer most handling of
7721 OPT_mint_register_. Use error_at.
7722 (rx_option_override): Handle deferred OPT_mint_register_ here.
7723 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7724 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7725 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7726 (rx_cpu_types): New Enum and EnumValue entries.
7727 (mint-register=): Use Defer and use Var accordingly.
7729 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7731 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7732 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7733 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7735 (debug_free_queue, debug_nesting, symbol_queue_index):
7737 * dbxout.c: ...to here. Make static.
7739 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7741 * gcse.c (modify_pair): Define. Define a VEC of it.
7742 (canon_modify_mem_list): Convert to an array of VECs.
7743 (free_insn_expr_list_list): Delete.
7744 (clear_modify_mem_tables): Call VEC_free instead.
7745 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7746 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7747 (canon_list_insert, compute_transp): Likewise.
7749 2011-04-05 Tom de Vries <tom@codesourcery.com>
7752 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7755 2011-04-05 Tom de Vries <tom@codesourcery.com>
7758 * function.c (emit_use_return_register_into_block): New function.
7759 (thread_prologue_and_epilogue_insns): Use
7760 emit_use_return_register_into_block.
7762 2011-04-05 Tom de Vries <tom@codesourcery.com>
7765 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7768 2011-04-05 Tom de Vries <tom@codesourcery.com>
7770 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7772 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7774 * config/arm/arm.md (define_constants for unspec): Replace with
7776 (define_constants for unspecv): Replace with define_c_enum.
7777 * config/arm/neon.md (define_constants for unspec): Replace with
7780 2011-04-04 Richard Henderson <rth@redhat.com>
7783 * dwarf2out.c (output_line_info): Always emit line info from
7784 at least one section.
7785 (dwarf2out_init): Create text_section_line_info here ...
7786 (set_cur_line_info_table): ... not here.
7788 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7791 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7794 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7796 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7798 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7799 (expr_equiv_p): Remove.
7800 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7801 (hash_scan_set): Update call to insert_set_in_table.
7802 (dump_hash_table): Dump <dest, src> pair.
7803 (lookup_set): Simplify. Lookup <dest, src> pair.
7804 (compute_transp): Remove, fold heavily simplified code into...
7805 (compute_local_properties): ...here. Expect COMP and TRANSP
7807 (find_avail_set): Take set directly from struct expr.
7808 (find_bypass-set): Likewise.
7809 (bypass_block): Likewise.
7810 (cprop_insn): Likewise. Remove redundant INSN_P test.
7812 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7813 checks on form of COND from find_implicit_sets to here.
7814 (find_implicit_sets): Cleanup control flow. Split critical edges
7815 if it exposes implicit sets. Allocate/resize implicit_sets as
7817 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7818 changed something. Run df_analyze after find_implicit_sets if any
7819 edges were split. Do not allocate implicit_sets here.
7821 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7822 (gcse_obstack): Renamed to cprop_obstack.
7823 (GNEW, GNEWVEC, GNEWVAR): Remove.
7825 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7826 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7827 (gcse_alloc): Likewise, and rename to cprop_alloc.
7828 (alloc_gcse_men, free_gcse_mem): Remove.
7829 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7830 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7831 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7833 * cprop.c (oprs_not_set_p): Remove.
7834 (mark_set, mark_clobber): Remove.
7835 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7836 (reg_not_set_p): New function.
7837 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7838 (cprop_insn): Likewise.
7839 (cprop_jump): Use FOR_EACH_EDGE.
7841 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7844 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7845 (rank_for_schedule): Use scheduled_insns vector instead of
7846 last_scheduled_insn.
7847 (ok_for_early_queue_removal): Likewise.
7848 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7850 (choose_ready): Likewise.
7851 (commit_schedule): Use VEC_iterate.
7852 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7853 a dbg_cnt, use it and ensure the first insn is in the ready list.
7854 (haifa_sched_init): Allocate scheduled_insns.
7855 (sched_extend_ready_list): Don't allocate it; reserve space.
7856 (haifa_sched_finish): Free it.
7858 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7860 * optc-gen.awk: Always remove type from Variable entry before
7861 recording in var_seen.
7863 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7865 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7866 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7867 call to tidy_fallthru_edges.
7869 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7871 * doc/options.texi (ToLower): Document.
7872 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7873 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7874 * opts.h (cl_option): Add cl_tolower field.
7875 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7876 arguments with lowercase strings.
7877 * config/rx/rx.opt (mcpu=): Add ToLower.
7878 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7881 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7883 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7885 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7887 * config/vax/vax.c: Include reload.h.
7889 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7891 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7892 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7893 (sparc_preferred_reload_class): New function.
7895 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7898 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7899 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7901 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7903 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7904 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7906 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7908 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7909 (ASM_OUTPUT_ALIGNED_BSS): Define.
7911 2011-04-03 Michael Matz <matz@suse.de>
7913 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7914 and next_slot members.
7915 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7916 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7917 (lto_streamer_cache_append): Declare.
7918 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7919 unsigned index, remove offset parameter, ensure that we append
7920 or update existing entries.
7921 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7922 parameter, update next_slot for append.
7923 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7925 (lto_streamer_cache_insert_at): Likewise.
7926 (lto_streamer_cache_append): New function.
7927 (lto_streamer_cache_lookup): Use unsigned index.
7928 (lto_streamer_cache_get): Likewise.
7929 (lto_record_common_node): Don't test tree_node_can_be_shared.
7930 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7931 (lto_streamer_cache_delete): Don't free offsets member.
7932 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7933 (lto_output_string_with_length): Use lto_output_data_stream.
7934 (lto_output_tree_header): Remove ix parameter, don't write it.
7935 (lto_output_builtin_tree): Likewise.
7936 (lto_write_tree): Adjust callers to above, don't track and write
7937 offset, write unsigned index.
7938 (output_unreferenced_globals): Don't emit all global vars.
7939 (write_global_references): Use unsigned indices.
7940 (lto_output_decl_state_refs): Likewise.
7941 (write_symbol): Likewise.
7942 * lto-streamer-in.c (lto_input_chain): Move earlier.
7943 (input_function): Use unsigned index.
7944 (input_alias_pairs): Don't read and then ignore all global vars.
7945 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7946 don't pass it back, use lto_streamer_cache_append.
7947 (lto_register_var_decl_in_symtab): Use unsigned index.
7948 (lto_register_function_decl_in_symtab): Likewise.
7949 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7951 (lto_get_builtin_tree): Don't read index, use
7952 lto_streamer_cache_append.
7953 (lto_read_tree): Adjust call to lto_materialize_tree.
7955 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7956 don't use function calls in arguments to MIN.
7958 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7961 * gimple.c (gimple_type_leader_entry): Mark deletable.
7963 2011-04-03 Alan Modra <amodra@gmail.com>
7965 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7967 2011-04-03 Michael Matz <matz@suse.de>
7969 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7971 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7973 2011-04-03 Michael Matz <matz@suse.de>
7975 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7976 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7977 without function context.
7978 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7979 current_function_decl and cfun.
7981 2011-04-03 Michael Matz <matz@suse.de>
7983 * tree.c (decl_init_priority_insert): Don't create entry for
7985 (decl_fini_priority_insert): Ditto.
7986 (fields_compatible_p, find_compatible_field): Remove.
7987 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7988 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7990 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7992 * combine.c (try_combine): Remove useless local variable.
7994 2011-04-03 Richard Guenther <rguenther@suse.de>
7995 Ira Rosen <ira.rosen@linaro.org>
7997 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7998 non-variable offsets and compare the remaining bases of the two
7999 accesses instead of looking for exact same data-ref.
8001 2011-04-02 Kai Tietz <ktietz@redhat.com>
8004 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8006 * i386.c (ix86_is_msabi_thiscall): New helper function.
8007 (ix86_is_type_thiscall): New helper function.
8008 (ix86_comp_type_attributes): Handle thiscall for method-functions
8010 (init_cumulative_args): Likewise.
8011 (find_drap_reg): Likewise.
8012 (ix86_static_chain): Likewise.
8013 (x86_this_parameter): Likewise.
8014 (x86_output_mi_thunk): Likewise.
8016 2011-04-01 Olivier Hainque <hainque@adacore.com>
8017 Nicolas Setton <setton@adacore.com>
8018 Eric Botcazou <ebotcazou@adacore.com>
8020 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8021 (add_gnat_descriptive_type_attribute): New function.
8022 (gen_array_type_die): Call it.
8023 (gen_enumeration_type_die): Likewise.
8024 (gen_struct_or_union_type_die): Likewise.
8025 (modified_type_die): Likewise.
8026 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8027 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8028 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8030 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8033 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8034 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8037 2011-03-17 Richard Guenther <rguenther@suse.de>
8040 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8041 origin for decls in other ltrans units.
8042 (input_varpool_node): Likewise.
8044 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8047 * expr.c (expand_assignment): Handle all possibilities
8048 if TO_RTX is CONCAT.
8049 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8050 (store_split_bit_field): If SUBREG_REG (op0) or
8051 op0 itself has smaller mode than word, return it
8052 for offset 0 and const0_rtx for out-of-bounds stores.
8053 If word is const0_rtx, skip it.
8055 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8057 * config/h8300/h8300.c (print_operand_address): Rename to...
8058 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8059 Call h8300_print_operand and h8300_print_operand_address instead of
8060 print_operand and print_operand_address. Declare.
8061 (print_operand): Renake to...
8062 (h8300_print_operand): ...this. Make static. Adjust comments.
8063 Call h8300_print_operand instead of print_operand. Declare.
8064 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8065 (h8300_register_move_cost): Likewise.
8066 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8067 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8068 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8069 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8070 * config/h8300/h8300-protos.h (print_operand): Delete.
8071 (print_operand_address): Delete.
8073 2011-04-01 Richard Henderson <rth@redhat.com>
8076 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8077 in strict mode before dwarf4. Re-order tests to early out
8078 before switching sections.
8080 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8082 * config/h8300/constraints.md: New file.
8083 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8084 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8085 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8086 * config/h8300/predicates.md (bit_operand): Likewise.
8087 (incdec_operand): Use satisfies_constraint_M and
8088 satisfies_constraint_O. Don't use C code block.
8089 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8090 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8091 (compute_mov_length): Use satisfies_constraint_G.
8092 (fix_bit_operand): Use satisfies_constraint_U.
8093 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8094 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8095 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8096 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8097 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8098 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8099 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8100 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8101 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8102 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8103 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8104 (EXTRA_MEMORY_CONSTRAINT): Delete.
8106 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8107 Michael Meissner <meissner@linux.vnet.ibm.com>
8110 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8111 operands, as per the specifications.
8113 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8114 (vec_extract_evenv4sf): Ditto.
8115 (vec_extract_evenv8hi): Ditto.
8116 (vec_extract_evenv16qi): Ditto.
8117 (vec_extract_oddv4si): Ditto.
8119 2011-03-31 Mark Wielaard <mjw@redhat.com>
8121 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8122 high_pc attribute if the CU has no associated code. Only output
8123 DW_AT_entry_pc for CU if not generating strict dwarf and
8126 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8128 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8129 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8131 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8132 * final.c (final_start_function): Call the new function rather
8133 than using a NULL argument for dwarf2out_frame_debug.
8135 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8136 that contains the prologue.
8138 * haifa-sched.c (queue_insn): New arg REASON. All callers
8139 changed. Print it in debugging output.
8141 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8143 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8144 Split most of the code into...
8145 (begin_move_insn): ... here. New function.
8146 (ebb_sched_info): Add a pointer to it.
8147 * haifa-sched.c (scheduled_insns): New static variable.
8148 (sched_extend_ready_list): Allocate it.
8149 (schedule_block): Use it to record the order of scheduled insns.
8150 Perform RTL changes to move insns only after all scheduling
8151 decisions have been made.
8152 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8153 begin_move_insn field.
8154 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8155 * sched-int.h (struct haifa_sched_info): Remove second argument
8156 from begin_schedule_ready hook. Add new member begin_move_insn.
8157 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8158 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8160 * haifa-sched.c (prune_ready_list): New function, broken out of
8162 (schedule_block): Use it.
8164 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8166 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8168 2011-04-01 Kai Tietz <ktietz@redhat.com>
8170 * config.gcc (*-*-mingw*): Allow as option the
8171 posix threading model.
8172 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8173 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8175 (CPP_SPEC): Add pthread/no-pthread handling.
8176 (LIB_SPEC): Likewise.
8177 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8178 (LIB_SPEC): Likewise.
8179 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8180 flag to pass -pthread option for shared libgcc build.
8181 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8182 for shared libgcc build.
8183 * config/i386/t-mingw-pthread: New file.
8184 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8185 New define to enable use of library pthread by default.
8186 * config/i386/mingw.opt (pthread): New driver option.
8187 (no-pthread): New driver option.
8188 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8189 * config/i386/mingw-w64.opt: Likewise.
8191 2011-04-01 Gary Funck <gary@intrepid.com>
8193 * c-decl.c (grokdeclarator): Fix formatting.
8195 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8197 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8198 instead of n_operands.
8199 (set_storage_via_setmem): Likewise.
8200 * optabs.c (maybe_gen_insn): Likewise.
8201 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8202 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8203 (mips_expand_builtin_direct): Likewise.
8204 * config/spu/spu.c (expand_builtin_args): Likewise.
8206 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8208 * recog.h (insn_data_d): Add n_generator_args.
8209 * genoutput.c (data): Likewise.
8210 (output_insn_data): Print it.
8211 (max_opno, num_dups): Delete.
8212 (scan_operands): Just fill in "d->operand[...]".
8213 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8215 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8217 * gensupport.h (pattern_stats): New structure.
8218 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8219 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8220 (max_operand_1, max_operand_vec): Delete.
8221 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8223 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8225 * emit-rtl.c (emit_pattern_after_setloc): New function.
8226 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8227 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8228 (emit_pattern_after): New function.
8229 (emit_insn_after, emit_jump_insn_after): Call it.
8230 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8231 (emit_pattern_before_setloc): New function.
8232 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8233 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8235 (emit_pattern_before): New function.
8236 (emit_insn_before, emit_jump_insn_before): Call it.
8237 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8239 2011-03-31 Richard Henderson <rth@redhat.com>
8241 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8242 (dw_separate_line_info_entry): Remove.
8243 (enum dw_line_info_opcode): New.
8244 (dw_line_info_entry): Use it.
8245 (dw_line_info_table, dw_line_info_table_p): New.
8246 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8247 (line_info_table, line_info_label_num): Remove.
8248 (line_info_table_in_use): Remove.
8249 (separate_line_info_table): Remove.
8250 (separate_line_info_table_allocated): Remove.
8251 (separate_line_info_table_in_use): Remove.
8252 (LINE_INFO_TABLE_INCREMENT): Remove.
8253 (line_info_label_num): New.
8254 (cur_line_info_table): New.
8255 (text_section_line_info, cold_text_section_line_info): New.
8256 (separate_line_info): New.
8257 (SEPARATE_LINE_CODE_LABEL): Remove.
8258 (print_dwarf_line_table): Remove.
8259 (debug_dwarf): Don't dump it.
8260 (output_one_line_info_table): New.
8261 (output_line_info): Use it.
8262 (new_line_info_table): New.
8263 (set_cur_line_info_table): New.
8264 (dwarf2out_switch_text_section): Use it.
8265 (dwarf2out_begin_function): Likewise.
8266 (push_dw_line_info_entry): New.
8267 (dwarf2out_source_line): Rewrite for new line info tables.
8268 (dwarf2out_init): Remove dead initailizations.
8270 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8272 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8274 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8275 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8276 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8277 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8278 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8279 * opt-functions.awk (flag_init, switch_bit_fields): New.
8280 (switch_flags): Don't handle flags moved to bit-fields. Don't
8281 generate CL_MISSING_OK or CL_SAVE.
8282 * optc-gen.awk: Update to generate bit-field output as well as
8284 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8285 bit-field instead of CL_REJECT_DRIVER flag.
8286 * opts-common.c (generate_canonical_option,
8287 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8288 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8289 instead of CL_REJECT_NEGATIVE flag.
8290 * toplev.c (print_switch_values): Use cl_report bit-field instead
8293 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8295 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8296 a zero minimum index only if it is redundant.
8298 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8300 PR rtl-optimization/48381
8301 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8302 instead of ira_class_hard_reg_index for calculating conflicting
8305 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8307 * cprop.c: Clean up hash table building.
8308 (reg_avail_info): Remove.
8309 (oprs_available_p): Remove.
8310 (record_last_reg_set_info): Remove.
8311 (record_last_set_info): Remove.
8312 (reg_available_p): New function.
8313 (gcse_constant_p): Do not treat unfolded conditions as constants.
8314 (make_set_regs_unavailable): New function.
8315 (hash_scan_set): Simplify with new reg_available_p.
8316 (compute_hash_table_work): Traverse insns stream only once.
8317 Do not compute reg_avail_info. Traverse insns in reverse order.
8318 Record implicit sets after recording explicit sets from the block.
8320 2011-03-31 Michael Matz <matz@suse.de>
8322 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8324 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8326 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8327 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8328 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8329 (h8300_mode_dependent_address_p): New function.
8330 (h8300_get_index): Make static.
8332 2011-03-31 Jeff Law <law@redhat.com>
8334 * reload1.c (elimination_effects): Fix typo in recent change.
8336 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8337 typo potentially leading to null pointer dereference.
8339 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8340 (setup_save_areas): Corresponding changes to avoid useless
8343 * jump.c (reversed_comparison_code_parts): Avoid successive return
8344 statements when REVERSE_CONDITION is defined.
8346 * expr.c (expand_assignment): Avoid useless assignments.
8347 (expand_expr_real_1): Likewise.
8348 (expand_expr_real_2): Avoid useless statements.
8350 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8352 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8354 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8357 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8359 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8362 * doc/tm.texi.in (TARGET_VERSION): Remove.
8363 * doc/tm.texi: Regenerate.
8364 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8365 * collect2.c (main): Don't use TARGET_VERSION.
8366 * mips-tdump.c (main): Don't use TARGET_VERSION.
8367 * mips-tfile.c (main): Don't use TARGET_VERSION.
8368 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8369 * config/rs6000/vxworksae.h: Remove.
8370 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8371 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8372 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8373 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8374 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8375 * config/arm/arm.h (TARGET_VERSION): Remove.
8376 * config/arm/coff.h (TARGET_VERSION): Remove.
8377 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8378 * config/arm/elf.h (TARGET_VERSION): Remove.
8379 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8380 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8381 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8382 * config/arm/pe.h (TARGET_VERSION): Remove.
8383 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8384 * config/arm/semi.h (TARGET_VERSION): Remove.
8385 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8386 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8387 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8388 * config/avr/avr.h (TARGET_VERSION): Remove.
8389 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8390 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8391 * config/frv/frv.h (TARGET_VERSION): Remove.
8392 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8393 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8394 * config/i386/darwin.h (TARGET_VERSION): Remove.
8395 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8396 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8397 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8398 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8399 * config/i386/gnu.h (TARGET_VERSION): Remove.
8400 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8401 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8402 * config/i386/linux.h (TARGET_VERSION): Remove.
8403 * config/i386/linux64.h (TARGET_VERSION): Remove.
8404 * config/i386/lynx.h (TARGET_VERSION): Remove.
8405 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8406 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8407 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8408 * config/i386/netware.h (TARGET_VERSION): Remove.
8409 * config/i386/nto.h (TARGET_VERSION): Remove.
8410 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8411 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8412 * config/ia64/elf.h (TARGET_VERSION): Remove.
8413 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8414 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8415 * config/ia64/linux.h (TARGET_VERSION): Remove.
8416 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8417 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8418 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8419 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8420 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8421 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8422 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8423 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8424 * config/m68k/linux.h (TARGET_VERSION): Remove.
8425 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8426 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8427 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8428 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8429 * config/mep/mep.h (TARGET_VERSION): Remove.
8430 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8431 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8432 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8433 * config/mips/linux.h (TARGET_VERSION): Remove.
8434 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8435 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8436 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8437 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8438 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8439 * config/pa/pa.h (TARGET_VERSION): Remove.
8440 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8441 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8442 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8443 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8444 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8445 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8446 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8447 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8448 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8449 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8450 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8451 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8452 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8453 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8454 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8455 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8456 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8457 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8458 * config/s390/linux.h (TARGET_VERSION): Remove.
8459 * config/s390/s390.h (TARGET_VERSION): Remove.
8460 * config/s390/tpf.h (TARGET_VERSION): Remove.
8461 * config/score/score.h (TARGET_VERSION): Remove.
8462 * config/sh/linux.h (TARGET_VERSION): Remove.
8463 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8464 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8465 * config/sh/sh.h (TARGET_VERSION): Remove.
8466 * config/sh/sh64.h (TARGET_VERSION): Remove.
8467 * config/sh/superh.h (TARGET_VERSION): Remove.
8468 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8469 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8470 * config/sparc/linux.h (TARGET_VERSION): Remove.
8471 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8472 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8473 TARGET_NAME32, TARGET_NAME): Remove.
8474 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8475 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8476 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8477 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8478 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8479 * config/spu/spu.h (TARGET_VERSION): Remove.
8480 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8481 * config/v850/v850.h (TARGET_VERSION): Remove.
8482 * config/vax/linux.h (TARGET_VERSION): Remove.
8483 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8484 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8485 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8487 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8490 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8491 frame-related from frame-unrelated adjustments to the stack pointer.
8493 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8495 * common.opt (fdebug-types-section): Move earlier.
8496 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8498 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8500 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8503 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8505 * tree.h (CASE_CHAIN): Define.
8506 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8507 (gimple_redirect_edge_and_branch): Likewise.
8509 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8512 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8515 2011-03-30 Jeff Law <law@redhat.com>
8517 * PR bootstrap/48371
8518 * reload1.c (reload): Fix botch in last change.
8520 * reload.h (struct reload): Fix typo introduced in last change.
8522 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8524 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8525 Undocumented. Remove help text.
8526 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8529 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8531 * doc/options.texi (NegativeAlias): Document.
8532 (Alias): Mention NegativeAlias.
8533 * opt-functions.awk: Handle NegativeAlias.
8534 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8535 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8536 * opts.h (CL_NEGATIVE_ALIAS): Define.
8537 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8538 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8540 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8542 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8543 mno-spe and mno-isel instead of mspe=no and -misel=no.
8545 2011-03-29 Mark Wielaard <mjw@redhat.com>
8547 * common.opt (fdebug-types-section): New flag.
8548 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8549 * dwarf2out.c (use_debug_types): New define.
8550 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8551 (print_die): Guard output of type unit signatures using
8553 (build_abbrev_table): Replace assert of dwarf_version >= 4
8554 with assert on use_debug_types.
8555 (size_of_die): Likewise.
8556 (unmark_dies): Likewise.
8557 (value_format): Decide AT_ref_external form on use_debug_types.
8558 (output_die): Replace dwarf_version version check guard with
8559 use_debug_types where appropriate.
8560 (modified_type_die): Likewise.
8561 (gen_reference_type_die): Likewise.
8562 (dwarf2out_start_source_file): Likewise.
8563 (dwarf2out_end_source_file): Likewise.
8564 (prune_unused_types_walk_attribs): Likewise.
8565 (dwarf2out_finish): Likewise.
8567 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8569 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8571 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8573 PR rtl-optimization/48332
8574 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8575 mode of input operand N and modeN to its actual mode.
8577 2011-03-30 Jeff Law <law@redhat.com>
8579 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8580 define accessor macro.
8581 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8582 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8583 (reg_equiv_init): Likewise.
8584 (reg_equivs_size): New variable.
8585 (reg_equiv_init_size): Remove.
8586 (allocate_initial_values): Move prototype to here from....
8587 * integrate.h (allocate_initial_values): Remove prototype.
8588 * integrate.c: Include reload.h.
8589 (allocate_initial_values): Corresponding changes.
8590 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8591 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8592 (update_equiv_regs): Corresponding changes.
8593 (ira): Corresponding changes.
8594 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8595 (push_secondary_reload): Corresponding changes.
8596 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8597 (make_memloc, find_reloads_address): Corresponding changes.
8598 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8599 (find_reloads_address_1): Corresponding changes.
8600 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8601 (refers_to_regno_for_reload_p): Corresponding changes.
8602 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8603 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8604 * reload1.c: Include ggc.h.
8605 (grow_reg_equivs): New function.
8606 (replace_pseudos_in, reload): Corresponding changes.
8607 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8608 (eliminate_regs_1, elimination_effects): Corresponding changes.
8609 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8610 (delete_output_reload): Likewise.
8611 * caller-save.c (mark_referenced_regs): Corresponding changes.
8612 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8613 * frv/predicates.md (frv_load_operand): Corresponding changes.
8614 * microblaze/microblaze.c (double_memory_operand): Corresponding
8616 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8617 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8618 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8619 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8620 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8622 * pa/pa.c (emit_move_sequence): Corresponding changes.
8623 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8625 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8628 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8629 structure modes. Don't check neon_vector_mem_operand for
8630 vector or structure modes.
8632 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8633 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8636 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8637 operand 1 and reshuffle the operands to match.
8638 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8640 2011-03-30 Christian Schüler <cschueler@gmx.de>
8643 * config/c.opt (F): Added 'Driver' to -F option.
8646 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8648 * config/darwin.opt: Added '-arch' option.
8650 2011-03-30 Nick Clifton <nickc@redhat.com>
8652 * config/rx/rx.md: Add peepholes and patterns to combine
8653 extending loads and simple arithmetic instructions.
8654 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8655 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8656 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8657 modes to use pre-decrement and post-increment addressing.
8658 (rx_is_restricted_memory_address): Add range checking of REG+INT
8660 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8661 (rx_memory_move_cost): Adjust cost of stores.
8662 (rx_adjust_insn_length): New function.
8664 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8667 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8668 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8669 matching arg00/arg01 types.
8671 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8673 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8674 last_location to UNKNOWN_LOCATION.
8676 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8679 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8682 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8683 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8686 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8688 (sparc_cpu): Likewise.
8689 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8692 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8696 PR rtl-optimization/48345
8697 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8698 hard regs for given mode from profitable regs when doing secondary
8701 2011-03-29 Jeff Law <law@redhat.com>
8704 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8705 do_not_duplicate field.
8706 (lookup_redirection_data): Corresponding changes.
8707 (create_duplicates): Always create a template block.
8708 (redirect_edges): Remove code which reused the original block
8709 when it was going to become unreachable code.
8710 (thread_block): Don't set do_not_duplicate field.
8712 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8714 * lto-opts.c (register_user_option_p, lto_register_user_option):
8715 Make type argument unsigned.
8716 * lto-streamer.h (lto_register_user_option): Make type argument
8718 * opth-gen.awk: Make CL_* macros unsigned.
8719 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8720 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8721 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8722 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8723 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8724 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8725 (find_opt): Make lang_mask argument unsigned.
8727 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8729 PR rtl-optimization/48331
8730 PR rtl-optimization/48334
8731 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8732 for any used algorithm.
8734 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8736 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8739 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8741 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8742 (alpha_option_override): Don't set alpha_sr_alias_set.
8743 (emit_frame_store_1): Use gen_frame_mem rather than calling
8745 (alpha_expand_epilogue): Ditto.
8747 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8749 PR tree-optimization/48290
8750 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8751 vectorization, check that relevant phis in the basic block after
8752 the inner loop are really inner loop's exit phis.
8754 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8757 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8758 (cached_dw_loc_list_def): New structure.
8759 (cached_dw_loc_list): New typedef.
8760 (cached_dw_loc_list_table): New variable.
8761 (cached_dw_loc_list_table_hash): New function.
8762 (cached_dw_loc_list_table_eq): Likewise.
8763 (add_location_or_const_value_attribute): Take a bool cache_p.
8764 Cache the list when the parameter is true.
8765 (gen_formal_parameter_die): Update caller.
8766 (gen_variable_die): Likewise.
8767 (dwarf2out_finish): Likewise.
8768 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8769 while generating debug info for the decl.
8770 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8771 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8772 (resolve_addr): Cache the result of resolving a chain of
8775 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8777 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8778 conflict object hard regset nodes have intersecting hard reg sets.
8780 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8781 after regstat_init_n_sets_and_refs.
8783 * ira.c: Add more comments at the top.
8784 (setup_stack_reg_pressure_class, setup_pressure_classes):
8785 Add comments how we compute the register pressure classes.
8786 (setup_allocno_and_important_classes): Add more comments.
8787 (setup_class_translate_array, reorder_important_classes)
8788 (setup_reg_class_relations): Add comments.
8790 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8793 * ira-color.c: Add 2011 to the Copyright line.
8794 (assign_hard_reg): Add more comments.
8795 (improve_allocation): Ditto.
8797 * ira-costs.c: Add 2011 to the Copyright line.
8798 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8800 (setup_regno_cost_classes_by_mode): Ditto.
8802 Initial patches from ira-improv branch:
8804 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8806 * ira-build.c (ira_create_object): Remove initialization of
8807 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8808 (ira_create_allocno): Remove initialization of
8809 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8810 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8811 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8812 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8813 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8814 Initialize ALLOCNO_ADD_DATA.
8815 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8816 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8818 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8819 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8821 * ira.c (ira_reallocate): Remove.
8822 (setup_pressure_classes): Call
8823 ira_init_register_move_cost_if_necessary. Use
8824 ira_register_move_cost instead of ira_get_register_move_cost.
8825 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8826 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8828 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8829 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8830 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8831 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8832 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8833 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8835 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8836 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8837 (struct allocno_color_data): New.
8838 (allocno_color_data_t): New typedef.
8839 (allocno_color_data): New definition.
8840 (ALLOCNO_COLOR_DATA): New macro.
8841 (struct object_color_data): New.
8842 (object_color_data_t): New typedef.
8843 (object_color_data): New definition.
8844 (OBJECT_COLOR_DATA): New macro.
8845 (update_copy_costs, calculate_allocno_spill_cost): Call
8846 ira_init_register_move_cost_if_necessary. Use
8847 ira_register_move_cost instead of ira_get_register_move_cost.
8848 (move_spill_restore, update_curr_costs): Ditto.
8849 (allocno_spill_priority): Make it inline.
8850 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8851 (struct coalesce_data, coalesce_data_t): New.
8852 (allocno_coalesce_data): New definition.
8853 (ALLOCNO_COALESCE_DATA): New macro.
8854 (merge_allocnos, coalesced_allocno_conflict_p): Use
8855 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8856 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8857 (coalesce_allocnos): Ditto.
8858 (setup_coalesced_allocno_costs_and_nums): Ditto.
8859 (collect_spilled_coalesced_allocnos): Ditto.
8860 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8861 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8862 (coalesce_spill_slots): Ditto.
8863 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8864 free allocno_coalesce_data.
8866 * ira-conflicts.c: Fix formatting.
8867 (process_regs_for_copy): Call
8868 ira_init_register_move_cost_if_necessary. Use
8869 ira_register_move_cost instead of ira_get_register_move_cost.
8870 (build_object_conflicts): Optimize.
8872 * ira-costs.c (record_reg_classes): Optimize. Call
8873 ira_init_register_move_cost_if_necessary. Use
8874 ira_register_move_cost, ira_may_move_in_cost, and
8875 ira_may_move_out_cost instead of ira_get_register_move_cost and
8876 ira_get_may_move_cost.
8877 (record_address_regs): Ditto.
8878 (scan_one_insn): Optimize.
8879 (find_costs_and_classes): Optimize.
8880 (process_bb_node_for_hard_reg_moves): Call
8881 ira_init_register_move_cost_if_necessary. Use
8882 ira_register_move_cost instead of ira_get_register_move_cost.
8884 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8885 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8886 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8887 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8889 (ira_initiate_emit_data, ira_finish_emit_data)
8890 (create_new_allocno): New functions.
8891 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8892 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8893 Use ira_register_move_cost instead of ira_get_register_move_cost.
8895 * ira-int.h: Fix some comments.
8896 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8897 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8898 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8899 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8901 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8902 bitfield after mode. Make hard_regno a short int. Make
8903 hard_regno short. Remove first_coalesced_allocno and
8904 next_coalesced_allocno. Move mem_optimized_dest_p,
8905 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8906 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8907 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8908 temp, colorable_p. Add new member add_data.
8909 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8910 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8911 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8912 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8913 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8914 (ALLOCNO_ADD_DATA): New macro.
8915 (ira_emit_data_t): New typedef.
8916 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8917 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8918 from struct ira_allocno.
8919 (ALLOCNO_EMIT_DATA): New macro.
8920 (ira_allocno_emit_data, allocno_emit_reg): New.
8921 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8922 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8923 (OBJECT_ADD_DATA): New macro.
8924 (ira_reallocate): Remove.
8925 (ira_initiate_emit_data, ira_finish_emit_data): New.
8926 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8927 (ira_init_register_move_cost_if_necessary): New.
8928 (ira_object_conflict_iter_next): Merge into
8929 ira_object_conflict_iter_cond.
8930 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8932 * ira-live.c (process_single_reg_class_operands): Call
8933 ira_init_register_move_cost_if_necessary. Use
8934 ira_register_move_cost instead of ira_get_register_move_cost.
8936 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8938 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8940 * ira-costs.c: Fix formatting.
8941 (cost_classes, cost_classes_num): Remove.
8942 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8943 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8944 (cost_classes_del, cost_classes_htab): New.
8945 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8946 (initiate_regno_cost_classes, setup_cost_classes): New.
8947 (setup_regno_cost_classes_by_aclass): New.
8948 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8949 (record_reg_classes): Use regno_cost_classes instead of
8950 cost_classes. Move checking opposite operand up.
8951 (record_address_regs): Use regno_cost_classes
8952 instead of cost_classes.
8953 (scan_one_insn): Ditto. Use always general register.
8954 (print_allocno_costs): Use regno_cost_classes instead of
8956 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8957 (find_costs_and_classes): Set up cost classes for each registers.
8958 Use also their mode for this. Use regno_cost_classes instead of
8960 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8962 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8963 (ira_costs, ira_set_pseudo_classes): Call
8964 initiate_regno_cost_classes and finish_regno_cost_classes.
8966 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8968 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8970 * target.def (ira_cover_classes): Remove.
8972 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8974 * doc/tm.texi.in: Ditto.
8976 * ira-conflicts.c: Remove mentioning cover classes from the file.
8977 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8978 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8980 * targhooks.c (default_ira_cover_classes): Remove.
8982 * targhooks.h (default_ira_cover_classes): Ditto.
8984 * haifa-sched.c: Remove mentioning cover classes from the file.
8985 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8986 ira_pressure_classes and ira_pressure_classes_num instead of
8987 ira_reg_class_cover_size and ira_reg_class_cover. Use
8988 sched_regno_pressure_class instead of sched_regno_cover_class.
8989 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8990 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8992 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8993 classes from the file.
8994 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8995 (struct object_hard_regs, struct object_hard_regs_node): New.
8996 (struct ira_object): New members profitable_hard_regs,
8997 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8998 (struct ira_allocno): Rename cover_class to aclass. Rename
8999 cover_class_cost and updated_cover_class_cost to class_cost and
9000 updated_class_cost. Remove splay_removed_p and
9001 left_conflict_size. Add new members colorable_p.
9002 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9003 (ALLOCNO_COLORABLE_P): New macro.
9004 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9005 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9006 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9007 (OBJECT_...): Rename parameter C to O.
9008 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9009 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9010 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9011 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9012 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9013 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9014 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9015 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9016 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9017 x_ira_reg_class_subunion.
9018 (ira_max_memory_move_cost, ira_max_register_move_cost)
9019 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9020 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9021 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9022 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9023 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9024 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9025 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9026 (ira_tune_allocno_costs_and_cover_classes): Rename to
9027 ira_tune_allocno_costs.
9028 (ira_debug_hard_regs_forest): New.
9029 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9030 (ira_object_conflict_iter_next): Fix comments.
9031 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9032 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9033 cover_class to aclass.
9034 (ira_allocate_and_accumulate_costs): Ditto.
9035 (ira_allocate_and_set_or_copy_costs): Ditto.
9037 * opts.c (decode_options): Remove ira_cover_class check.
9039 * ira-color.c: Remove mentioning cover classes from the file. Use
9040 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9041 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9042 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9043 (splay-tree.h): Remove include.
9044 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9045 before copy_freq_compare_func.
9046 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9047 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9049 (hard_regs_roots, hard_regs_node_vec): Ditto.
9050 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9051 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9052 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9053 (create_new_object_hard_regs_node): Ditto.
9054 (add_new_object_hard_regs_node_to_forest): Ditto.
9055 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9056 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9058 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9059 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9060 (remove_unused_object_hard_regs_nodes): Ditto.
9061 (enumerate_object_hard_regs_nodes): Ditto.
9062 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9063 (object_hard_regs_subnode_t): Ditto.
9064 (struct object_hard_regs_subnode): Ditto.
9065 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9066 (setup_object_hard_regs_subnode_index): Ditto.
9067 (get_object_hard_regs_subnodes_num): Ditto.
9068 (form_object_hard_regs_nodes_forest): Ditto.
9069 (finish_object_hard_regs_nodes_tree): Ditto.
9070 (finish_object_hard_regs_nodes_forest): Ditto.
9071 (allocnos_have_intersected_live_ranges_p): Rename to
9072 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9073 (pseudos_have_intersected_live_ranges_p): Rename to
9074 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9075 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9076 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9077 (update_copy_costs): Remove assert. Skip cost update if the hard
9078 reg does not belong the class.
9079 (assign_hard_reg): Process only profitable hard regs.
9080 (uncolorable_allocnos_num): Make it scalar.
9081 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9082 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9083 and ira_reg_class_max_nregs.
9084 (bucket_allocno_compare_func): Check frequency first.
9085 (sort_bucket): Add compare function as a parameter.
9086 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9087 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9088 (push_allocno_to_stack): Rewrite for checking new allocno
9090 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9091 (push_only_colorable): Pass new parameter to sort_bucket.
9092 (push_allocno_to_spill): Remove.
9093 (allocno_spill_priority_compare): Make it inline and rewrite.
9094 (splay_tree_allocate, splay_tree_free): Remove.
9095 (allocno_spill_sort_compare): New function.
9096 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9097 build and use splay tree. Choose first allocno in uncolorable
9098 allocno bucket to spill. Remove setting spill cost.
9099 (all_conflicting_hard_regs): Remove.
9100 (setup_allocno_available_regs_num): Check only profitable hard
9101 regs. Print info about hard regs nodes.
9102 (setup_allocno_left_conflicts_size): Remove.
9103 (put_allocno_into_bucket): Don't call
9104 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9105 (improve_allocation): New.
9106 (color_allocnos): Call setup_profitable_hard_regs,
9107 form_object_hard_regs_nodes_forest, improve_allocation,
9108 finish_object_hard_regs_nodes_forest. Setup spill cost.
9109 (print_loop_title): Use pressure classes.
9110 (color_allocnso): Ditto.
9111 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9112 and allocnos_for_spilling.
9113 (ira_sort_regnos_for_alter_reg): Don't setup members
9114 {first,next}_coalesced_allocno.
9115 (color): Remove allocating and freeing removed_splay_allocno_vec.
9116 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9117 prohibited_class_mode_regs.
9119 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9121 (update_allocno_pressure_excess_length): Use pressure classes.
9122 (inc_register_pressure, dec_register_pressure): Check for pressure
9124 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9125 pressure class. Use ira_reg_class_nregs instead of
9126 ira_reg_class_max_nregs.
9127 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9128 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9129 (single_reg_class): Use ira_reg_class_nregs instead of
9130 ira_reg_class_max_nregs.
9131 (process_bb_node_lives): Use pressure classes.
9133 * ira-emit.c: Remove mentioning cover classes from the file. Use
9134 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9135 (change_loop): Use pressure classes.
9136 (modify_move_list): Call ira_set_allocno_class instead of
9137 ira_set_allocno_cover_class.
9139 * ira-build.c: Remove mentioning cover classes from the file. Use
9140 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9141 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9142 ALLOCNO_UPDATED_CLASS_COST instead of
9143 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9144 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9145 (ira_create_allocno): Remove initialization of
9146 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9147 ALLOCNO_COLORABLE_P.
9148 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9149 Update conflict regs for the objects.
9150 (create_cap_allocno): Remove assert. Don't propagate
9151 ALLOCNO_AVAILABLE_REGS_NUM.
9152 (ira_free_allocno_costs): New function.
9153 (finish_allocno): Change a part of code into call of
9154 ira_free_allocno_costs.
9155 (low_pressure_loop_node_p): Use pressure classes.
9156 (object_range_compare_func): Don't compare classes.
9157 (setup_min_max_conflict_allocno_ids): Ditto.
9159 * loop-invariant.c: Remove mentioning cover classes from the file.
9160 Use ira_pressure_classes and ira_pressure_classes_num instead of
9161 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9162 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9163 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9164 Use reg_allocno_class instead of reg_cover_class.
9165 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9166 STACK_REG_COVER_CLASS.
9167 (get_regno_cover_class): Rename to get_regno_pressure_class.
9168 (move_loop_invariants): Initialize and finalize regstat.
9170 * ira.c: Remove mentioning cover classes from the file. Add
9171 comments about coloring without cover classes. Use ALLOCNO_CLASS
9172 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9173 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9174 setup_class_subset_and_memory_move_costs.
9175 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9176 (setup_cover_and_important_classes): Rename to
9177 setup_allocno_and_important_classes.
9178 (setup_class_translate_array): New.
9179 (setup_class_translate): Call it for allocno and pressure classes.
9180 (cover_class_order): Rename to allocno_class_order.
9181 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9182 of ira_class_translate.
9183 (reorder_important_classes): Set up ira_important_class_nums.
9184 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9185 (print_class_cover): Rename to print_classes. Add parameter.
9186 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9187 Print pressure classes too.
9188 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9189 setup_reg_subclasses.
9190 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9191 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9192 (setup_prohibited_class_mode_regs): Use
9193 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9194 (clarify_prohibited_class_mode_regs): New function.
9195 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9196 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9197 (ira_init_once): Initialize them.
9198 (free_register_move_costs): Process them.
9199 (ira_init): Move calls of find_reg_classes and
9200 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9201 Call clarify_prohibited_class_mode_regs.
9202 (ira_no_alloc_reg): Remove.
9203 (too_high_register_pressure_p): Use pressure classes.
9205 * sched-deps.c: Remove mentioning cover classes from the file.
9206 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9207 ira_pressure_classes and ira_pressure_classes_num instead of
9208 ira_reg_class_cover_size and ira_reg_class_cover.
9209 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9210 sched_regno_pressure_class instead of sched_regno_cover_class.
9211 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9212 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9214 * ira.h: Add 2010 to Copyright.
9215 (ira_no_alloc_reg): Remove external.
9216 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9217 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9218 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9219 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9220 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9221 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9222 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9223 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9224 x_ira_no_alloc_regs.
9225 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9226 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9227 ira_allocno_classes_num and ira_allocno_classes.
9228 (ira_class_translate): Rename to ira_allocno_class_translate.
9229 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9230 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9231 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9232 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9233 (ira_no_alloc_regs): New.
9235 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9236 classes from the file. Use ALLOCNO_CLASS instead of
9237 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9238 ALLOCNO_COVER_CLASS_COST.
9239 (regno_cover_class): Rename to regno_aclass.
9240 (record_reg_classes): Use ira_reg_class_subunion instead of
9241 ira_reg_class_union.
9242 (record_address_regs): Check overflow.
9243 (scan_one_insn): Ditto.
9244 (print_allocno_costs): Print total mem cost fore regional allocation.
9245 (print_pseudo_costs): Use REG_N_REFS.
9246 (find_costs_and_classes): Use classes intersected with them on the
9247 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9248 ira_reg_class_union. Use ira_allocno_class_translate and
9249 regno_aclass instead of ira_class_translate and regno_cover_class.
9250 Modify code for finding regno_aclass. Setup preferred classes for
9252 (setup_allocno_cover_class_and_costs): Rename to
9253 setup_allocno_class_and_costs. Use regno_aclass instead of
9254 regno_cover_class. Use ira_set_allocno_class instead of
9255 ira_set_allocno_cover_class.
9256 (init_costs, finish_costs): Use regno_aclass instead of
9258 (ira_costs): Use setup_allocno_class_and_costs instead of
9259 setup_allocno_cover_class_and_costs.
9260 (ira_tune_allocno_costs_and_cover_classes): Rename to
9261 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9262 by processing objects. Use ira_reg_class_max_nregs instead of
9263 ira_reg_class_nregs.
9265 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9267 * sched-int.h: Remove mentioning cover classes from the file.
9268 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9270 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9271 classes from the file.
9272 (struct reg_pref): Rename coverclass into allocnoclass.
9273 (reg_cover_class): Rename to reg_allocno_class.
9275 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9277 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9279 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9281 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9283 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9285 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9287 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9289 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9291 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9293 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9295 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9296 (i386_ira_cover_classes): Ditto.
9298 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9300 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9302 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9304 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9306 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9308 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9310 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9311 (mips_ira_cover_classes): Ditto.
9313 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9315 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9317 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9319 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9321 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9323 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9324 (IRA_COVER_CLASSES_VSX): Ditto.
9326 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9327 (rs6000_ira_cover_classes): Ditto.
9329 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9331 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9333 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9335 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9337 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9339 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9341 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9343 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9345 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9347 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9349 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9352 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9353 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9354 dw_fde_unlikely_section_end_label, cold_in_std_section,
9355 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9356 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9358 (output_fde): Use dw_fde_second_{begin,end} if second is
9359 true, otherwise dw_fde_{begin,end}.
9360 (output_call_frame_info): Test dw_fde_second_begin != NULL
9361 instead of dw_fde_switched_sections.
9362 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9363 fields, initialize new fields. Initialize in_std_section
9364 unconditionally from the first partition.
9365 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9366 dw_fde_second_begin is non-NULL.
9367 (dwarf2out_switch_text_section): Stop initializing removed
9368 dw_fde_struct fields, initialize new fields, initialize
9369 also dw_fde_end here. Set dw_fde_switch_cfi even when
9370 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9371 (struct var_loc_list_def): Add last_before_switch field.
9372 (arange_table, arange_table_allocated, arange_table_in_use,
9373 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9374 (size_of_aranges): Count !in_std_section and !second_in_std_section
9375 hunks in fdes, instead of looking at arange_table_in_use.
9376 (output_aranges): Add aranges_length argument, don't call
9377 size_of_aranges here. Instead of using aranges_table*
9378 emit ranges for fdes when !in_std_section resp.
9379 !second_in_std_section.
9380 (dw_loc_list): Break ranges crossing section switch.
9381 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9382 use dw_fde_second_end instead of dw_fde_end as end of last range.
9383 (gen_subprogram_die): Don't call add_arange. Use
9384 dw_fde_{begin,end} for first partition and if switched
9385 section dw_fde_second_{begin,end} for the second.
9386 (var_location_switch_text_section_1,
9387 var_location_switch_text_section): New functions.
9388 (dwarf2out_begin_function): Initialize cold_text_section even
9389 when function_section () isn't text_section.
9390 (prune_unused_types): Don't walk arange_table.
9391 (dwarf2out_finish): Don't needlessly test
9392 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9393 If info_section_emitted, call size_of_aranges and if it indicates
9394 non-empty .debug_aranges, call output_aranges with the computed
9395 size. Stop using removed dw_fde_struct fields, use
9396 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9400 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9401 create ENTRY_VALUE if incoming or address of incoming's MEM
9403 * dwarf2out.c (mem_loc_descriptor): Don't emit
9404 DW_OP_GNU_entry_value of DW_OP_fbreg.
9405 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9406 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9407 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9408 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9410 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9411 is a REG_P or MEM_P with REG_P address, compute hash directly
9412 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9413 (preserve_only_constants): Don't clear VALUES forwaring
9414 ENTRY_VALUE to some other VALUE.
9416 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9418 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9421 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9423 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9424 block before expanding the statement.
9425 (expand_gimple_stmt_1): Likewise. Set them here...
9426 (expand_gimple_stmt): ...and not here. Tidy.
9427 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9430 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9432 * Makefile.in: New rule for cprop.o.
9433 * gcse.c: Move constant/copy propagation to cprop.c.
9434 (compute_local_properties): Only handle expression tables.
9435 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9436 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9437 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9438 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9439 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9440 compute_cprop_data, find_used_regs, try_replace_reg,
9441 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9442 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9443 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9444 find_bypass_set, reg_killed_on_edge, bypass_block,
9445 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9446 execute_rtl_cprop, pass_rtl_cprop): Move to...
9447 * cprop.c: ...here. New file, constant/copy propagation for RTL
9448 moved from gcse.c to here with minor cleanups in duplicated code.
9450 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9452 * config/i386/i386.c (flag_opts): Fix a typo in
9453 -mavx256-split-unaligned-store.
9455 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9457 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9458 LIBCALL_VALUE): Remove macros.
9459 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9460 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9461 (h8300_function_value, h8300_libcall_value,
9462 h8300_function_value_regno_p): New functions.
9464 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9466 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9468 2011-03-28 Jeff Law <law@redhat.com>
9470 * tree-ssa-threadupdate.c (redirect_edges): Call
9471 create_edge_and_update_destination_phis as needed.
9472 (create_edge_and_update_destination_phis): Accept new BB argument.
9473 All callers updated.
9474 (thread_block): Do not update the profile when threading around
9475 intermediate blocks.
9476 (thread_single_edge): Likewise.
9477 (determine_bb_domination_status): If BB is not a successor of the
9478 loop header, return NONDOMINATING.
9479 (register_jump_thread): Note when we register a jump thread around
9480 an intermediate block.
9481 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9482 (thread_across_edge): Use it.
9484 2011-03-28 Tristan Gingold <gingold@adacore.com>
9486 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9487 when for_return is 2.
9489 2011-03-28 Jeff Law <law@redhat.com>
9491 * var-tracking.c (canonicalize_values_mark): Delete unused
9493 (canonicalize_values_star, set_variable_part): Likewise.
9494 (clobber_variable_part, delete_variable_part): Likewise.
9496 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9498 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9500 2011-03-28 Martin Jambor <mjambor@suse.cz>
9502 * tree-inline.c (expand_call_inline): Do not check that destination
9504 (optimize_inline_calls): Assert that destination node is analyzed.
9505 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9506 not call tree_lowering_passes.
9507 * cgraph.h (cgraph_analyze_function): Declare.
9508 * cgraphunit.c (cgraph_analyze_function): Make public.
9510 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9512 * config/sparc/sparc-opts.h: New.
9513 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9514 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9515 (sparc_option_override): Store processor_type enumeration rather
9516 than string in cpu_default. Remove name and enumeration from
9517 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9518 without using sparc_select. Use target_flags_explicit instead of
9520 * config/sparc/sparc.h (enum processor_type): Move to
9522 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9523 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9524 HeaderInclude entry.
9525 (mcpu=, mtune=): Use Var and Enum.
9526 (sparc_processor_type): New Enum and EnumValue entries.
9528 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9529 Iain Sandoe <iains@gcc.gnu.org>
9532 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9534 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9536 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9537 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9538 Insert new statements at it in lieu of STMT.
9539 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9540 * tree-vect-stmts.c (vectorizable_store): Likewise.
9541 (vectorizable_load): Likewise.
9543 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9545 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9550 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9552 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9553 unaligned 256bit load/store.
9554 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9555 (*avx_movdqu<avxmodesuffix>): Likewise.
9557 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9560 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9561 * config/pa/pa.md (iordi3): Use new predicate in expander.
9564 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9566 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9567 FUNCTION_VALUE_REGNO_P): Remove macros.
9568 * config/mips/mips-protos.h (mips_function_value): Remove.
9569 * config/mips/mips.c (mips_function_value): Rename to...
9570 (mips_function_value_1): ... this. Make static. Handle receiving
9571 the function type in 'fn_decl_or_type' argument.
9572 (mips_function_value, mips_libcall_value,
9573 mips_function_value_regno_p): New function.
9574 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9575 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9577 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9579 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9580 and -mavx256-split-unaligned-store.
9581 (ix86_option_override_internal): Split 32-byte AVX unaligned
9582 load/store by default.
9583 (ix86_avx256_split_vector_move_misalign): New.
9584 (ix86_expand_vector_move_misalign): Use it.
9586 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9587 -mavx256-split-unaligned-store.
9589 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9590 256bit load/store. Generate unaligned store on misaligned memory
9592 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9594 (*avx_movdqu<avxmodesuffix>): Likewise.
9596 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9597 -mavx256-split-unaligned-store.
9599 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9602 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9605 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9607 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9608 opno arguments with an expand_operand. Use create_input_operand.
9609 (mips_prepare_builtin_target): Delete.
9610 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9612 (mips_expand_builtin_direct): Use create_output_operand and
9613 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9614 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9615 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9617 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9619 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9621 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9623 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9625 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9626 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9627 basic blocks and call commit_edge_insertions directly.
9628 (fixup_abnormal_edges): Move from here to...
9629 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9630 on the edges and return whether some have actually been inserted.
9631 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9634 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9636 PR rtl-optimization/48144
9637 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9638 (merge_expr_data): ... here.
9639 (av_set_intersect): Rename to av_set_code_motion_filter.
9640 Update all callers. Call merge_history_vect when an expression
9641 is found in both sets.
9642 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9644 2011-03-26 Alan Modra <amodra@gmail.com>
9646 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9647 cmodel medium addresses.
9648 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9649 64-bit gpr loads and stores.
9650 (rs6000_secondary_reload_ppc64): New function.
9651 * config/rs6000/rs6000-protos.h: Declare it.
9652 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9654 2011-03-26 Alan Modra <amodra@gmail.com>
9657 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9658 GNU Go in traceback table.
9660 2011-03-25 Richard Henderson <rth@redhat.com>
9662 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9663 if there are exactly 6 operands.
9664 (set_storage_via_setmem): Similarly.
9666 2011-03-25 Kai Tietz <ktietz@redhat.com>
9668 * collect2.c (write_c_file_stat): Handle backslash
9669 as right-hand directory separator.
9670 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9671 checking just for slash.
9672 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9673 instead of checking for trailing slash.
9674 * gcc.c (record_temp_file): Use filename_cmp instead
9676 (do_spec_1): Likewise.
9677 (replace_outfile_spec_function): Likewise.
9678 (is_directory): Use filename_ncmp instead of strncmp.
9679 (print_multilib_info): Likewise.
9680 * gcov.c (find_source): Use filename_cmp instead
9682 (make_gcov_file_name): Fix order of slash/backslash
9684 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9685 (add_standard_paths): Likewise.
9686 * mips-tfile.c (saber_stop): Handle backslash.
9687 * prefix.c (update_path): Use filename_ncmp instead of
9689 * profile.c (output_location): Use filename_cmp instead
9691 * read-md.c (handle_toplevel_file): Handle backslash.
9692 * tlink.c (frob_extension): Likewise.
9693 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9695 * tree-dump.c (dequeue_and_dump): Handle backslash.
9696 * tree.c (get_file_function_name): Likewise.
9697 * gengtype.c (read_input_list): Likewise.
9698 (get_file_realbasename): Likewise.
9699 (get_output_file_with_visibility): Use filename_cmp
9702 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9704 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9707 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9709 * fold-const.c (expr_location_or): New function.
9710 (fold_truth_not_expr): Call it.
9712 2011-03-25 Jeff Law <law@redhat.com>
9714 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9716 * c-family/c-common.c (def_fn_type): Likewise.
9717 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9718 * emit-rtl.c (gen_rtvec): Likewise.
9719 * lto/lto-lang.c (def_fn_type): Likewise.
9721 2011-03-25 Richard Guenther <rguenther@suse.de>
9723 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9724 also generate copies.
9725 (fini_copy_prop): Handle constant values properly.
9727 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9729 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9730 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9731 (hash_loc_operands, compare_loc_operands): Handle
9732 DW_OP_GNU_entry_value.
9734 2011-03-25 Kai Tietz <ktietz@redhat.com>
9736 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9737 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9738 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9739 comment and use macro TARGET_64BIT_MS_ABI instead.
9740 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9741 and change default behavior for 32-bit MS_ABI.
9742 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9743 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9745 (ix86_cfun_abi): Likewise.
9746 (ix86_maybe_switch_abi): Adjust comment.
9747 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9748 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9749 instead of checking for SYSV_ABI.
9750 (ix86_nsaved_sseregs): Likewise.
9751 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9753 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9754 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9755 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9756 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9757 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9759 2011-03-25 Richard Guenther <rguenther@suse.de>
9761 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9762 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9763 (verify_gimple): Remove.
9764 * tree-cfg.c (verify_gimple_call): Merge verification
9766 (verify_gimple_phi): Merge verification from verify_stmts.
9767 (verify_gimple_label): New function.
9768 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9769 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9770 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9771 (verify_stmts): Rename to verify_gimple_in_cfg.
9772 (verify_gimple_in_cfg): New function.
9773 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9774 * tree-ssa.c (verify_ssa): Likewise.
9775 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9777 2011-03-25 Richard Guenther <rguenther@suse.de>
9779 * passes.c (init_optimization_passes): Add FRE pass after
9782 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9783 Andrew Stubbs <ams@codesourcery.com>
9785 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9787 (arm_movdi_vfp_cortexa8): New pattern.
9788 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9789 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9790 instructions when tuning for Cortex-A8. Set attribute "arch".
9791 * config/arm/arm.md: Move include arm-tune.md up a bit.
9792 (define_attr "arch"): Add "onlya8" and "nota8" values.
9793 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9795 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9799 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9801 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9802 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9803 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9804 * passes.c (init_optimization_passes): Move
9805 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9807 2011-03-25 Kai Tietz <ktietz@redhat.com>
9809 * c-typeck.c (comptypes_internal): Replace target
9810 hook call of comp_type_attributes by version in tree.c file.
9811 * gimple.c (gimple_types_compatible_p_1): Likewise.
9812 * tree-ssa.c (useless_type_conversion_p): Likewise.
9813 * tree.c (build_type_attribute_qual_variant): Likewise.
9814 (attribute_value_equal): New static helper function.
9815 (comp_type_attributes): New function.
9816 (merge_attributes): Use attribute_value_equal for comparison.
9817 (attribute_list_contained): Likewise.
9818 * tree.h (comp_type_attributes): New prototype.
9820 2011-03-25 Richard Guenther <rguenther@suse.de>
9822 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9823 of complex types at -O0.
9824 (verify_gimple_assign_binary): Likewise.
9825 (verify_gimple_assign_ternary): Likewise.
9827 2011-03-24 Mark Wielaard <mjw@redhat.com>
9829 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9830 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9832 2011-03-24 Mark Wielaard <mjw@redhat.com>
9835 * dwarf2out.c (output_abbrev_section): Only write table when
9836 abbrev_die_table_in_use > 1.
9838 2011-02-24 Richard Henderson <rth@redhat.com>
9840 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9841 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9842 (alpha_expand_unaligned_load_words): Use extql.
9843 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9844 (emit_insxl): Handle all modes for consistency.
9846 2011-02-24 Richard Henderson <rth@redhat.com>
9848 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9849 (alpha_expand_unaligned_load): Likewise.
9850 (alpha_expand_unaligned_store): Likewise.
9851 (alpha_expand_unaligned_load_words): Likewise.
9852 (alpha_expand_unaligned_store_words): Likewise.
9853 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9854 (alpha_split_lock_test_and_set_12): Likewise.
9855 (print_operand, alpha_fold_builtin_extxx): Likewise.
9856 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9857 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9858 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9859 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9860 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9861 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9862 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9863 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9864 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9865 (extwl, extll, extql): Similarly.
9866 (inswh, inslh, insqh): Similarly.
9867 (mskbl, mskwl, mskll, mskql): Similarly.
9868 (mskwh, msklh, mskqh): Similarly.
9870 2011-02-24 Richard Henderson <rth@redhat.com>
9872 * config/alpha/alpha.md (attribute isa): Add er, ner.
9873 (attribute enabled): Handle them.
9874 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9876 2011-02-24 Richard Henderson <rth@redhat.com>
9878 * config/alpha/alpha.md (attribute isa): Add vms.
9879 (attribute enabled): Handle it.
9880 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9881 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9882 (*movtf): Rename from *movtf_internal for consistency.
9883 (*movsi): Merge with *movsi_nt_vms.
9884 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9885 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9886 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9887 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9889 2011-02-24 Richard Henderson <rth@redhat.com>
9891 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9892 (extendqisi2, extendhisi2): Likewise.
9893 (extendqidi2): Simplify BWX/non-BWX expansions.
9894 (extendhidi2): Similarly.
9896 2011-02-24 Richard Henderson <rth@redhat.com>
9898 * config/alpha/alpha.md (attribute isa): New.
9899 (attribute enabled): New.
9900 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9901 (zero_extendqisi2, zero_extendqidi2): Similarly.
9902 (zero_extendhisi2, zero_extendhidi2): Similarly.
9903 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9905 2011-02-24 Richard Henderson <rth@redhat.com>
9907 * config/alpha/predicates.md (input_operand): Revert last change;
9908 update comment to mention 32-bit VMS rather than Windows.
9910 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9912 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9913 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9914 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9915 * passes.c (init_optimization_passes): Move
9916 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9918 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9920 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9922 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9924 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9927 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9930 * simplify-rtx.c (simplify_const_unary_operation): Call
9931 real_convert when changing mode class with FLOAT_EXTEND.
9933 2011-03-24 Nick Clifton <nickc@redhat.com>
9935 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9936 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9937 * config/rx/rx.c (rx_option_override): Set align_jumps,
9938 align_loops and align_labels if not set by the user.
9939 (rx_align_for_label): New function.
9940 (rx_max_skip_for_label): New function.
9941 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9942 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9943 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9944 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9945 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9947 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9949 PR rtl-optimization/48263
9950 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9951 and original commutative_p handling. Use maybe_gen_insn.
9953 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9955 * reload.c (find_reloads_subreg_address): Add address_reloaded
9956 parameter and return true there if the full address has been
9958 (find_reloads_toplev): Pass address_reloaded flag.
9959 (find_reloads_address_1): Don't use address_reloaded parameter.
9961 2011-03-24 Jeff Law <law@redhat.com>
9963 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9964 unused variable "ann".
9965 (remove_unused_locals): Likewise.
9967 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9970 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9973 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9975 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9976 for invalid symbolic addresses.
9977 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9980 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9982 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9983 the argument in calls to fold_truth_not_expr.
9985 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9987 * tree.c (record_node_allocation_statistics): New function.
9988 (make_node_stat, copy_node_stat, build_string): Call it.
9989 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9990 (build1_stat, build_omp_clause): Likewise.
9992 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9994 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9997 2011-03-24 Richard Guenther <rguenther@suse.de>
9999 PR tree-optimization/48271
10000 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10001 blocks that still exist.
10003 2011-03-24 Richard Guenther <rguenther@suse.de>
10005 PR tree-optimization/48270
10006 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10007 not free datarefs before ddrs.
10009 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10011 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10012 from the address built for a reference with variable offset.
10014 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10017 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10018 alternatives that can be handled with movq or movabsq insn.
10019 (*movdf_internal): Disable for !TARGET_64BIT.
10020 (*movdf_internal_nointeger): Ditto.
10021 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10023 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10025 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10026 (FUNCTION_ARG_ADVANCE): Likewise.
10027 * tm.texi.in: Change references to them to hook references.
10028 * tm.texi: Regenerate.
10029 * targhooks.c (default_function_arg): Eliminate check for target macro.
10030 (default_function_incoming_arg): Likewise.
10031 (default_function_arg_advance): Likewise.
10032 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10033 (function_arg_advance): Likewise.
10034 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10036 2011-03-24 Richard Guenther <rguenther@suse.de>
10038 PR middle-end/48269
10039 * tree-object-size.c (addr_object_size): Do not double-account
10040 for MEM_REF offsets.
10042 2011-03-24 Diego Novillo <dnovillo@google.com>
10044 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10045 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10046 (lto_input_data_block): Move from lto-opts.c. Make extern.
10048 (lto_input_string): Rename from input_string. Make extern.
10050 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10051 output_string_with_length.
10052 Output 0 to indicate a non-NULL string. Update all callers to
10054 (lto_output_string): Rename from output_string. Make extern.
10056 (lto_output_decl_state_streams): Make extern.
10057 (lto_output_decl_state_refs): Make extern.
10058 * lto-streamer.h (lto_input_string): Declare.
10059 (lto_input_data_block): Declare.
10060 (lto_output_string): Declare.
10061 (lto_output_string_with_length): Declare.
10062 (lto_output_decl_state_streams): Declare.
10063 (lto_output_decl_state_refs): Declare.
10065 2011-03-24 Richard Guenther <rguenther@suse.de>
10067 PR tree-optimization/46562
10068 * tree.c (build_invariant_address): New function.
10069 * tree.h (build_invariant_address): Declare.
10070 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10071 a renamed function moved ...
10072 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10073 Take valueization callback parameter.
10074 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10075 * gimple-fold.h: New file.
10076 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10077 (ccp_fold, fold_const_aggregate_ref,
10078 fold_ctor_reference, fold_nonarray_ctor_reference,
10079 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10080 get_base_constructor): Move ...
10081 * gimple-fold.c: ... here.
10082 (gimple_fold_stmt_to_constant_1): New function
10083 split out from ccp_fold. Take a valueization callback parameter.
10084 Valueize all operands.
10085 (gimple_fold_stmt_to_constant): New wrapper function.
10086 (fold_const_aggregate_ref_1): New function split out from
10087 fold_const_aggregate_ref. Take a valueization callback parameter.
10088 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10089 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10090 invariant POINTER_PLUS_EXPRs to invariant form.
10091 (vn_valueize): New function.
10092 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10093 * tree-vrp.c (vrp_valueize): New function.
10094 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10095 to fold statements to constants.
10096 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10097 function declarations.
10098 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10099 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10101 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10103 * config/h8300/predicates.md (jump_address_operand): Fix register
10106 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10108 * doc/invoke.texi (max-stores-to-sink): Document.
10109 * params.h (MAX_STORES_TO_SINK): Define.
10110 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10111 if either vectorization or if-conversion is disabled.
10112 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10113 tree-vect-data-refs.c vect_equal_offsets.
10114 (dr_equal_offsets_p): New function.
10115 (find_data_references_in_bb): Remove static.
10116 * tree-data-ref.h (find_data_references_in_bb): Declare.
10117 (dr_equal_offsets_p): Likewise.
10118 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10119 (vect_drs_dependent_in_basic_block): Update calls to
10120 vect_equal_offsets.
10121 (vect_check_interleaving): Likewise.
10122 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10123 (cond_if_else_store_replacement): Rename to...
10124 (cond_if_else_store_replacement_1): ... this. Change arguments and
10126 (cond_if_else_store_replacement): New function.
10127 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10128 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10130 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10133 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10134 to subtract lower bound instead of GEN_INT().
10136 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10141 * doc/extend.texi (Alignment): Move section to match order in TOC.
10142 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10143 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10145 2011-03-23 Jeff Law <law@redhat.com>
10147 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10148 before removing the edge.
10150 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10151 it may have been freed by redirect_branch_edge or
10152 redirect_edge_succ_nodup.
10154 2011-03-23 Richard Guenther <rguenther@suse.de>
10156 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10157 (check_va_list_escapes): Likewise.
10158 (check_all_va_list_escapes): Likewise.
10160 2011-03-23 Richard Guenther <rguenther@suse.de>
10162 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10163 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10164 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10165 (alias.o): Likewise.
10166 (ipa-type-escape.o): Remove.
10167 (ipa-struct-reorg.o): Likewise.
10168 (GTFILES): Remove ipa-struct-reorg.c.
10169 * alias.c: Do not include ipa-type-escape.h.
10170 * tree-ssa-alias.c: Likewise.
10171 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10172 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10173 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10174 and ipa-type-escape passes.
10175 * tree-pass.h (pass_ipa_type_escape): Remove.
10176 (pass_ipa_struct_reorg): Likewise.
10177 * ipa-struct-reorg.h: Remove.
10178 * ipa-struct-reorg.c: Likewise.
10179 * ipa-type-escape.h: Likewise.
10180 * ipa-type-escape.c: Likewise.
10181 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10182 (--param struct-reorg-cold-struct-ratio): Likewise.
10183 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10184 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10185 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10187 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10189 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10190 cpu attribute value.
10191 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10192 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10193 * config/s390/s390.c (processor_flags_table): New constant array.
10194 (s390_handle_arch_option): Remove.
10195 (s390_handle_option): Remove s390_handle_arch_option invocations
10196 and OPT_mwarn_framesize_ handling.
10197 (s390_option_override): Remove s390_handle_arch_option invocation.
10198 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10200 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10201 * config/s390/s390.opt (s390_tune, s390_arch)
10202 (march=): Replace s390_arch_option enum and values with
10203 processor_type. Set variable name to s390_arch. Set
10204 initialization value.
10205 (mtune=): Replace s390_arch_option with processor_type. Set
10206 variable name to s390_tune. Set initialization value.
10208 2011-03-23 Julian Brown <julian@codesourcery.com>
10210 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10211 accesses which are not naturally aligned.
10213 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10216 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10218 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10220 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10221 parameter from "int" to "enum insn_code".
10222 (expand_operand_type): New enum.
10223 (expand_operand): New structure.
10224 (create_expand_operand): New function.
10225 (create_fixed_operand, create_output_operand): Likewise
10226 (create_input_operand, create_convert_operand_to): Likewise.
10227 (create_convert_operand_from, create_address_operand): Likewise.
10228 (create_integer_operand): Likewise.
10229 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10230 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10231 (expand_insn, expand_jump_insn): Likewise.
10232 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10233 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10234 (expand_movstr, expand_builtin___clear_cache): Likewise.
10235 (expand_builtin_lock_release): Likewise.
10236 * explow.c (allocate_dynamic_stack_space): Likewise.
10237 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10238 and use the default handling in that case.
10239 * expmed.c (check_predicate_volatile_ok): Delete.
10240 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10241 (emit_cstore): Likewise.
10242 * expr.c (emit_block_move_via_movmem): Likewise.
10243 (set_storage_via_setmem, expand_assignment): Likewise.
10244 (emit_storent_insn, try_casesi): Likewise.
10245 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10246 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10247 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10248 (expand_twoval_unop, expand_twoval_binop): Likewise.
10249 (expand_unop_direct, emit_indirect_jump): Likewise.
10250 (emit_conditional_move, vector_compare_rtx): Likewise.
10251 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10252 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10253 (expand_sync_lock_test_and_set): Likewise.
10254 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10255 (emit_unop_insn): Likewise.
10256 (expand_copysign_absneg): Change icode to an insn_code.
10257 (create_convert_operand_from_type): New function.
10258 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10259 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10260 (expand_insn, expand_jump_insn): Likewise.
10261 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10262 than const_int_operand for operand 2.
10264 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10266 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10269 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10271 * emit-rtl.c (emit_pattern_before_noloc): New function.
10272 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10273 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10274 (emit_pattern_after_noloc): New function.
10275 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10276 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10278 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10280 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10281 (__ffsDI2): Likewise.
10283 2011-03-22 Richard Henderson <rth@redhat.com>
10285 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10286 of !TARGET_ABI_OPEN_VMS.
10287 (alpha_trampoline_init, alpha_start_function): Likewise.
10288 (alpha_expand_epilogue, alpha_file_start): Likewise.
10289 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10290 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10291 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10292 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10293 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10295 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10297 * config/s390/s390-opts.h: New.
10298 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10299 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10300 s390_stack_guard): Remove.
10301 (s390_handle_arch_option): Return void. Take enum
10302 s390_arch_option value instead of string and searching array.
10303 (s390_handle_option): Don't assert that global structures are in
10304 use. Access variables via opts pointer. Use error_at. Don't use
10305 sscanf for -mstack-guard= or -mstack-size=. Update call to
10306 s390_handle_arch_option.
10307 (s390_option_override): Update call to s390_handle_arch_option.
10308 (s390_emit_prologue): Use %d format for s390_stack_size in
10309 diagnostic. Use %wd for HOST_WIDE_INT.
10310 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10311 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10312 * config/s390/s390.opt (config/s390/s390-opts.h): New
10313 HeaderInclude entry.
10314 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10315 s390_arch_flags, s390_warn_framesize): New Variable entries.
10316 (s390_arch_option): New Enum and EnumValue entries.
10317 (march=): Use Enum instead of Var.
10318 (mstack-guard=, mstack-size=): Use UInteger and Var.
10319 (mtune=): Use Enum.
10321 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10323 * config/score/score.c (score_handle_option): Don't assert that
10324 global structures are in use. Access target_flags via opts
10325 pointer. Use value of -march= option to determine target_flags
10327 * config/score/score.opt (march=): Use Enum.
10328 (score_arch): New Enum and EnumValue entries.
10330 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10332 * config/mep/mep.c (option_mtiny_specified): Remove.
10333 (mep_option_override): Move register handling for -mivc2 from
10334 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10335 instead of option_mtiny_specified.
10336 (mep_handle_option): Access target_flags via opts pointer. Don't
10337 assert that global structures are in use. Defer part of -mivc2
10338 handling and move it to mep_option_override.
10339 * config/mep/mep.opt (IVC2): New Mask entry.
10340 (mivc2): Use Var and Defer instead of Mask.
10342 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10344 * config/v850/v850-opts.h: New.
10345 * config/v850/v850.c (small_memory): Replace with
10346 small_memory_physical_max array. Make that array static const.
10347 (v850_handle_memory_option): Take integer value of argument. Take
10348 gcc_options pointer, option text and location. Return void.
10349 Update for changes to small memory structures.
10350 (v850_handle_option): Access target_flags via opts pointer. Don't
10351 assert that global structures are in use. Update calls to
10352 v850_handle_memory_option.
10353 (v850_encode_data_area): Update references to small memory settings.
10354 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10355 (enum small_memory_type): Move to v850-opts.h.
10356 * config/v850/v850.opt (config/v850/v850-opts.h): New
10357 HeaderInclude entry.
10358 (small_memory_max): New Variable entry.
10359 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10360 (mtda, mzda): Likewise.
10362 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10364 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10365 pointer. Don't assert that global structures are in use.
10367 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10369 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10370 via opts pointer. Don't assert that global structures are in use.
10372 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10374 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10375 (munix=93): Use Var.
10376 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10377 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10378 * config/pa/pa-opts.h: New.
10379 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10380 (pa_handle_option): Don't assert that global structures are in
10381 use. Access target_flags via opts pointer. Don't handle
10382 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10384 (pa_option_override): Handle deferred OPT_mfixed_range_.
10386 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10388 * config/mn10300/mn10300-opts.h: New.
10389 * config/mn10300/mn10300.c (mn10300_processor,
10390 mn10300_tune_string): Remove.
10391 (mn10300_handle_option): Don't assert that global structures are
10392 in use. Access mn10300_processor via opts pointer. Don't handle
10394 * config/mn10300/mn10300.h (enum processor_type): Move to
10396 (mn10300_processor): Remove.
10397 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10398 HeaderInclude entry.
10399 (mn10300_processor): New Variable entry.
10402 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10404 * config/microblaze/microblaze.c: Don't include opts.h.
10405 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10406 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10407 (mno-clearbss): Use Var and Warn.
10409 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10411 * config/m32r/m32r-opts.h: New.
10412 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10413 (m32r_handle_option): Don't assert that global structures are in
10414 use. Access target_flags and m32r_cache_flush_func via opts
10415 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10416 OPT_mno_flush_trap here.
10417 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10418 include of m32r-opts.h.
10419 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10420 HeaderInclude entry.
10421 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10422 (mmodel=): Use Enum and Var.
10423 (m32r_model): New Enum and EnumValue entries.
10424 (mno-flush-trap): Use Var.
10425 (msdata=): Use Enum and Var.
10426 (m32r_sdata): New Enum and EnumValue entries.
10428 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10430 * config/m32c/m32c.c: Don't include opts.h.
10431 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10432 m32c_handle_option): Remove.
10433 (m32c_option_override): Check global_options_set.x_target_memregs
10434 instead of target_memregs_set.
10435 * config/m32c/m32c.h (target_memregs): Remove.
10436 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10439 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10441 * config/iq2000/iq2000-opts.h: New.
10442 * config/iq2000/iq2000.c: Don't include opts.h.
10443 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10444 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10445 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10446 HeaderInclude entry.
10447 (iq2000_tune): New Variable entry.
10448 (march=): Add comment. Use Enum.
10449 (iq2000_arch): New Enum and EnumValue entries.
10450 (mcpu=): Use Enum and Var.
10451 (iq2000_tune): New Enum and EnumValue entries.
10453 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10455 * config/ia64/ia64-opts.h: New.
10456 * config/ia64/ia64.c (ia64_tune): Remove.
10457 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10458 here. Use error_at.
10459 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10460 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10461 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10462 HeaderInclude entry.
10463 (ia64_tune): New Variable entry.
10464 (mfixed-range=): Use Defer and Var.
10465 (mtune=): Use Enum and Var.
10466 (ia64_tune): New Enum and EnumValue entries.
10468 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10470 * config/frv/frv-opts.h: New.
10471 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10473 (frv_cpu_type): Remove.
10474 * config/frv/frv.c: Don't include opts.h.
10475 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10476 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10477 (frv_cpu_type): New Variable entry.
10478 (frv_cpu): New Enum and EnumValue entries.
10480 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10482 * config/cris/cris.c (cris_handle_option): Access target_flags via
10483 opts pointer. Don't assert that global structures are in use.
10484 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10485 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10487 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10489 * config/bfin/bfin-opts.h: New.
10490 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10491 bfin_si_revision, bfin_workarounds): Remove.
10492 (bfin_cpus): Make static const.
10493 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10494 not bfin_lib_id_given.
10495 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10496 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10497 pointer. Use error_at. Don't assert that global structures are in use.
10498 * config/bfin/bfin.h: Include bfin-opts.h.
10499 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10500 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10501 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10502 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10505 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10507 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10508 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10509 or -msoft-float here.
10510 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10511 -msoft-float and -mhard-float.
10512 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10513 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10515 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10517 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10518 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10520 (LIBGCC_SPEC): Don't handle -msoft-float.
10521 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10523 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10525 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10526 -mfloat-abi=*, not -msoft-float and -mhard-float.
10527 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10529 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10530 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10531 mhard-float and msoft-float.
10532 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10533 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10534 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10535 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10537 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10538 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10540 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10542 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10545 2011-03-22 Richard Henderson <rth@redhat.com>
10547 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10548 TARGET_ABI_WINDOWS_NT.
10549 (alpha_output_function_end_prologue): Likewise.
10550 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10551 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10552 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10553 (trap, *movsi_nt_vms): Likewise.
10554 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10555 (*tablejump_osf_nt_internal): Remove.
10556 * config/alpha/predicates.md (input_operand): Only test Pmode.
10558 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10560 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10561 via opts pointer. Use error_at. Don't assert that global
10562 structures are in use.
10564 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10566 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10567 (ix86_handle_option): Access ix86_isa_flags and
10568 ix86_isa_flags_explicit via opts pointer. Don't assert that
10569 global structures are in use.
10570 (ix86_function_specific_save, ix86_function_specific_restore):
10571 Update ix86_isa_flags_explicit field name.
10572 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10573 (ix86_isa_flags_explicit): Rename TargetSave entry to
10574 x_ix86_isa_flags_explicit.
10576 2011-03-22 Richard Henderson <rth@redhat.com>
10578 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10579 (alpha_option_override, direct_return): Likewise.
10580 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10581 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10582 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10583 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10584 (alpha_expand_epilogue, alpha_end_function): Likewise.
10585 (alpha_init_libfuncs): Likewise.
10586 (struct machine_function): Remove unicosmk members.
10587 (print_operand) ['t']: Remove.
10588 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10589 unicosmk_output_module_name, unicosmk_output_common,
10590 current_section_align, unicosmk_output_text_section_asm_op,
10591 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10592 unicosmk_section_type_flags, unicosmk_unique_section,
10593 unicosmk_asm_named_section, unicosmk_insert_attributes,
10594 unicosmk_output_align, unicosmk_defer_case_vector,
10595 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10596 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10597 unicosmk_output_ssib, unicosmk_add_call_info_word,
10598 unicosmk_extern_head, unicosmk_output_default_externs,
10599 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10600 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10601 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10602 * config/alpha/alpha-protos.h: Update.
10603 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10604 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10605 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10606 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10607 (*mulsi_se, mulvsi3): Likewise.
10608 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10609 (*divmodsi_internal, call, call_value, realign): Likewise.
10610 (moddi3, umoddi3): Likewise; remove duplicate expander.
10611 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10612 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10613 (*movdi_nofix): Remove r/U alternative.
10614 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10615 * config/alpha/constraints.md ("U"): Remove.
10616 * config/alpha/predicates.md (call_operand"): Don't test
10617 TARGET_ABI_UNICOSMK.
10619 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10621 * target.def (handle_option): Take gcc_options and
10622 cl_decoded_option pointers and location_t.
10623 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10624 * doc/tm.texi: Regenerate.
10625 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10626 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10627 * lto-opts.c (lto_reissue_options): Generate option structure for
10628 targetm.handle_option call.
10629 * opts.c (target_handle_option): Update call to
10630 targetm.handle_option. Remove assertions about values now passed
10632 * targhooks.c (default_target_handle_option): New.
10633 * targhooks.h (default_target_handle_option): Declare.
10634 * config/alpha/alpha.c: Include opts.h.
10635 (alpha_handle_option): Update to new hook interface.
10636 * config/arm/arm.c: Include opts.h.
10637 (arm_handle_option): Update to new hook interface.
10638 * config/arm/t-arm (arm.o): Update dependencies.
10639 * config/bfin/bfin.c: Include opts.h.
10640 (bfin_handle_option): Update to new hook interface.
10641 * config/cris/cris.c: Include opts.h.
10642 (cris_handle_option): Update to new hook interface.
10643 * config/frv/frv.c: Include opts.h.
10644 (frv_handle_option): Update to new hook interface.
10645 * config/i386/i386.c: Include opts.h.
10646 (ix86_handle_option): Update to new hook interface.
10647 (ix86_valid_target_attribute_inner_p): Generate option structure
10648 for call to ix86_handle_option.
10649 * config/i386/t-i386 (i386.o): Update dependencies.
10650 * config/ia64/ia64.c: Include opts.h.
10651 (ia64_handle_option): Update to new hook interface.
10652 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10653 * config/iq2000/iq2000.c: Include opts.h.
10654 (iq2000_handle_option): Update to new hook interface.
10655 * config/m32c/m32c.c: Include opts.h.
10656 (m32c_handle_option): Update to new hook interface.
10657 * config/m32r/m32r.c: Include opts.h.
10658 (m32r_handle_option): Update to new hook interface.
10659 * config/m68k/m68k.c: Include opts.h.
10660 (m68k_handle_option): Update to new hook interface.
10661 * config/mep/mep.c: Include opts.h.
10662 (mep_handle_option): Update to new hook interface.
10663 * config/microblaze/microblaze.c: Include opts.h.
10664 (microblaze_handle_option): Update to new hook interface.
10665 * config/mips/mips.c: Include opts.h.
10666 (mips_handle_option): Update to new hook interface.
10667 * config/mn10300/mn10300.c: Include opts.h.
10668 (mn10300_handle_option): Update to new hook interface.
10669 * config/pa/pa.c: Include opts.h.
10670 (pa_handle_option): Update to new hook interface.
10671 * config/pdp11/pdp11.c: Include opts.h.
10672 (pdp11_handle_option): Update to new hook interface.
10673 * config/rs6000/rs6000.c: Include opts.h.
10674 (rs6000_handle_option): Update to new hook interface.
10675 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10676 * config/rx/rx.c: Include opts.h.
10677 (rx_handle_option): Update to new hook interface.
10678 * config/s390/s390.c: Include opts.h.
10679 (s390_handle_option): Update to new hook interface.
10680 * config/score/score.c: Include opts.h.
10681 (score_handle_option): Update to new hook interface.
10682 * config/sh/sh.c: Include opts.h.
10683 (sh_handle_option): Update to new hook interface.
10684 * config/sparc/sparc.c: Include opts.h.
10685 (sparc_handle_option): Update to new hook interface.
10686 * config/v850/v850.c: Include opts.h.
10687 (v850_handle_option): Update to new hook interface.
10689 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10691 * gcc.c (driver_unknown_option_callback): Only permit and save
10692 unknown -Wno- options.
10693 (driver_wrong_lang_callback): Save options directly instead of via
10694 driver_unknown_option_callback.
10696 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10698 * combine.c (simplify_set): Try harder to find the best CC mode when
10699 simplifying a nested COMPARE on the RHS.
10701 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10703 * config/alpha/gnu.h: Remove.
10704 * config/arc: Remove directory.
10705 * config/arm/netbsd.h: Remove.
10706 * config/arm/t-pe: Remove.
10707 * config/crx: Remove directory.
10708 * config/i386/netbsd.h: Remove.
10709 * config/m68hc11: Remove directory.
10710 * config/m68k/uclinux-oldabi.h: Remove.
10711 * config/mcore/mcore-pe.h: Remove.
10712 * config/mcore/t-mcore-pe: Remove.
10713 * config/netbsd-aout.h: Remove.
10714 * config/rs6000/gnu.h: Remove.
10715 * config/sh/sh-symbian.h: Remove.
10716 * config/sh/symbian-base.c: Remove.
10717 * config/sh/symbian-c.c: Remove.
10718 * config/sh/symbian-cxx.c: Remove.
10719 * config/sh/symbian-post.h: Remove.
10720 * config/sh/symbian-pre.h: Remove.
10721 * config/sh/t-symbian: Remove.
10722 * config/svr3.h: Remove.
10723 * config/vax/netbsd.h: Remove.
10724 * config.build: Don't handle i[34567]86-*-pe.
10725 * config.gcc: Remove handling of deprecations for most deprecated
10727 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10728 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10729 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10730 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10731 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10732 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10734 * config.host: Don't handle i[34567]86-*-pe.
10735 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10736 (ASM_SPEC32): Don't handle -mcall-gnu.
10737 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10739 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10740 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10741 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10742 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10743 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10744 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10745 conditional on SYMBIAN.
10746 * configure.ac: Don't handle powerpc*-*-gnu*.
10747 * configure: Regenerate.
10748 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10749 * doc/install-old.texi (m6811, m6812): Don't mention.
10750 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10751 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10752 (m68k-uclinuxoldabi): Don't mention.
10753 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10755 (-mcall-gnu): Remove.
10756 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10757 families): Remove constraint documentation.
10759 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10761 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10762 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10763 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10765 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10768 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10769 vector when peeking at the next token for vector, don't expand the
10772 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10774 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10775 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10776 * config/avr/avr.c (init_cumulative_args)
10777 (avr_function_arg_advance): Use it.
10778 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10780 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10781 (avr_function_ok_for_sibcall): ...this new function.
10782 (avr_lookup_function_attribute1): New static Function.
10783 (avr_naked_function_p, interrupt_function_p)
10784 (signal_function_p, avr_OS_task_function_p)
10785 (avr_OS_main_function_p): Use it.
10786 * config/avr/avr.md ("sibcall", "sibcall_value")
10787 ("sibcall_epilogue"): New expander.
10788 ("*call_insn", "*call_value_insn"): New insn.
10789 ("call_insn", "call_value_insn"): Remove
10790 ("call", "call_value", "epilogue"): Change expander to handle
10793 2011-03-21 Nick Clifton <nickc@redhat.com>
10795 * doc/invoke.texi (Overall Options): Move closing brace to end of
10797 (Optimization Options): Add missing @gol.
10798 (Directory Options): Likewise.
10799 (i386 and x86-64 Options): Likewise.
10800 (RS6000 and PowerPC Options): Likewise.
10801 (i386 and x86-64 Windows Options): Likewise.
10802 (V850 Options): Add text missing from descriptions.
10804 2011-03-22 Richard Henderson <rth@redhat.com>
10806 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10807 (avr_incoming_return_addr_rtx): New.
10808 (emit_push_byte): New.
10809 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10810 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10811 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10812 (emit_pop_byte): New.
10813 (expand_epilogue): Use it. Pop frame pointer by bytes.
10814 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10815 (INCOMING_RETURN_ADDR_RTX): New.
10816 (INCOMING_FRAME_SP_OFFSET): New.
10817 (ARG_POINTER_CFA_OFFSET): New.
10818 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10819 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10822 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10824 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10826 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10827 (FUNCTION_ARG_ADVANCE): Likewise.
10828 * tm.texi.in: Change references to them to hook references.
10829 * tm.texi: Regenerate.
10830 * targhooks.c (default_function_arg): Eliminate check for target
10832 (default_function_incoming_arg): Likewise.
10833 (default_function_arg_advance): Likewise.
10834 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10835 (function_arg_advance): Likewise.
10836 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10838 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10840 * tree.c (build_call_1): New function.
10841 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10843 2011-03-22 Richard Guenther <rguenther@suse.de>
10845 PR tree-optimization/48228
10846 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10847 for single-arg PHIs.
10849 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10851 PR rtl-optimization/48143
10852 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10853 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10854 sse2_cvtps2pd): Likewise.
10856 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10858 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10860 2011-03-22 Richard Guenther <rguenther@suse.de>
10862 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10863 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10864 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10865 and REALIGN_LOAD_EXPR.
10866 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10867 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10868 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10869 DOT_PROD_EXPR case ...
10870 (expand_expr_real_2): ... here.
10871 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10872 and REALIGN_LOAD_EXPR.
10873 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10874 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10875 (vect_create_epilog_for_reduction): Likewise.
10876 (vectorizable_reduction): Likewise.
10877 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10878 * tree-vect-stmts.c (vectorizable_load): Likewise.
10880 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10882 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10884 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10886 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10887 handling for PLTOFF/GOTOFF.
10889 2011-03-22 Nick Clifton <nickc@redhat.com>
10891 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10892 trailing backslash from the end of the macro definition.
10894 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10896 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10899 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10901 * expr.h (prepare_operand): Move to...
10902 * optabs.h (prepare_operand): ...here and change the insn code
10903 parameter from "int" to "enum insn_code".
10904 (insn_operand_matches): Declare.
10905 * expr.c (init_expr_target): Use insn_operand_matches.
10906 (compress_float_constant): Likewise.
10907 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10908 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10909 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10910 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10912 (gen_cond_trap): Likewise.
10913 (prepare_operand): Likewise. Change icode to an insn_code.
10914 (insn_operand_matches): New function.
10915 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10916 * reload1.c (gen_reload): Likewise.
10917 * targhooks.c (default_secondary_reload): Likewise.
10919 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10921 * config/alpha/alpha.md (unspec): New define_c_enum.
10924 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10927 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10928 between a call and its CALL_ARG_LOCATION note.
10930 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10932 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10934 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10938 * c-common.c (shorten_compare): If primopN is first sign-extended
10939 to opN and then zero-extended to result type, set primopN to opN.
10941 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10943 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10944 for barrier handlers.
10946 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10948 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10949 UNSPEC constants to be in the unspec enumeration, and redefine
10950 all UNSPECV constants to be in the unspecv enumeration, so that
10951 dumps print which unspec/unspec_volatile this is.
10952 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10953 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10954 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10955 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10956 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10958 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10959 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10960 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10961 * config/rs6000/sync.md (isync, lwsync): Ditto.
10963 2011-03-21 Richard Guenther <rguenther@suse.de>
10965 * params.def (lto-min-partition): Fix typo.
10967 2011-03-21 Richard Guenther <rguenther@suse.de>
10970 * c-decl.c (grokdeclarator): Drop to the main variant only
10971 for array types. Drop flag_gen_aux_info check.
10973 2011-03-21 Richard Guenther <rguenther@suse.de>
10975 PR translation/47911
10976 * params.def (lto-partitions): Fix typo.
10977 (lto-min-partition): Fix wording.
10979 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10981 * config/rs6000/t-freebsd: Remove duplication from file.
10983 2011-03-21 Richard Guenther <rguenther@suse.de>
10985 PR middle-end/47661
10986 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10988 2011-03-21 Richard Guenther <rguenther@suse.de>
10991 * params.def (lto-partitions): Require at least 1 partition.
10993 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10995 * gthr-solaris.h: Remove.
10996 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10997 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10998 (LIB_SPEC): Likewise.
10999 * config/sol2.opt (threads): Remove.
11000 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11001 (sparc*-*-solaris2*): Likewise.
11002 * configure.ac (enable_threads): Enable solaris support.
11003 * configure: Regenerate.
11004 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11005 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11008 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11010 * config.gcc: Obsolete *-*-solaris2.8*.
11011 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11013 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11016 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11017 reference. Solaris 8 perl works.
11019 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11022 * doc/install.texi (Prerequisites): Move jar etc. up.
11023 Explain support library version requirements.
11025 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11028 * doc/install.texi (Prerequisites): Move Perl to build
11029 requirements. Always necessary on Solaris 2 with Sun ld.
11031 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11033 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11035 (Specific, i?86-*-solaris2.[89]): Likewise.
11036 (Specific, i?86-*-solaris2.10): Likewise.
11037 (Specific, mips-sgi-irix6): Likewise.
11038 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11039 Update for binutils 2.21.
11041 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11043 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11044 Allow -fuse-linker-plugin for non-default plugin linker.
11045 * configure: Regenerate.
11047 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11050 * gengtype.c (files_rules): Added rule for cp/parser.h.
11052 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11055 * config/s390/s390.c (s390_delegitimize_address): Don't call
11056 lowpart_subreg if orig_x has BLKmode.
11058 2011-03-21 Kai Tietz <ktietz@redhat.com>
11061 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11062 * tree.h (attribute_spec): Add new member affects_type_identity.
11063 * attribs.c (empty_attribute_table): Adjust attribute_spec
11065 * config/alpha/alpha.c: Likewise.
11066 * config/arc/arc.c: Likewise.
11067 * config/arm/arm.c: Likewise.
11068 * config/avr/avr.c: Likewise.
11069 * config/bfin/bfin.c: Likewise.
11070 * config/crx/crx.c: Likewise.
11071 * config/darwin.h: Likewise.
11072 * config/h8300/h8300.c: Likewise.
11073 * config/i386/cygming.h: Likewise.
11074 * config/i386/i386.c: Likewise.
11075 * config/ia64/ia64.c: Likewise.
11076 * config/m32c/m32c.c: Likewise.
11077 * config/m32r/m32r.c: Likewise.
11078 * config/m68hc11/m68hc11.c: Likewise.
11079 * config/m68k/m68k.c: Likewise.
11080 * config/mcore/mcore.c: Likewise.
11081 * config/mep/mep.c: Likewise.
11082 * config/microblaze/microblaze.c: Likewise.
11083 * config/mips/mips.c: Likewise.
11084 * config/rs6000/rs6000.c: Likewise.
11085 * config/rx/rx.c: Likewise.
11086 * config/sh/sh.c: Likewise.
11087 * config/sol2.h: Likewise.
11088 * config/sparc/sparc.c: Likewise.
11089 * config/spu/spu.c: Likewise.
11090 * config/stormy16/stormy16.c: Likewise.
11091 * config/v850/v850.c: Likewise.
11093 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11095 * simplify-rtx.c (simplify_binary_operation_1): Handle
11096 (xor (and A B) C) case when B and C are both constants.
11098 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11100 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11102 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11105 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11107 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11109 PR rtl-optimization/48156
11110 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11111 assume df and df_lr are not NULL.
11113 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11116 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11117 between a call and its CALL_ARG_LOCATION note.
11119 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11122 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11123 between a call and its corresponding CALL_ARG_LOCATION note.
11125 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11127 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11128 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11129 * haifa-sched.c (setup_ref_regs): Ditto.
11130 * caller-save.c (add_used_regs_1): Ditto.
11131 * dse.c (look_for_hardregs): Ditto.
11132 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11133 * sched-rgn.c (check_live_1): Ditto.
11135 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11137 * c-decl.c (diagnose_mismatched_decls): Give an error for
11138 redefining a typedef with variably modified type.
11140 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11142 * c-decl.c (grokfield): Don't allow typedefs for structures or
11143 unions with no tag by default.
11144 * doc/extend.texi (Unnamed Fields): Update.
11146 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11148 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11149 Rewrite using indirect functions.
11150 (lwp_slwpcb): Ditto.
11151 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11152 (avx_vinsertf128<mode>): Ditto.
11154 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11156 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11159 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11161 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11162 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11164 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11166 PR rtl-optimization/48170
11167 * gcse.c (hoist_code): Remove bogus asserts.
11169 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11171 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11172 computation for prologue/epilogue.
11174 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11176 * Makefile.in (check-consistency): Remove.
11178 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11181 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11182 arange_table_in_use is 0, but either text_section_used or
11183 cold_text_section_used is true. Don't call it if
11184 !info_section_emitted.
11186 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11188 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11189 FUNCTION_VALUE_REGNO_P): Remove.
11190 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11192 * config/avr/avr.c (avr_ret_register): Make static inline.
11193 (avr_function_value_regno_p): New function.
11194 (avr_libcall_value): Make static. Add 'func' argument.
11195 (avr_function_value): Make static. Rename 'func' argument to
11196 'fn_decl_or_type', forward it to avr_libcall_value. Call
11197 avr_ret_register function instead of RET_REGISTER macro.
11198 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11200 2011-03-18 Jason Merrill <jason@redhat.com>
11203 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11205 2011-03-18 Richard Guenther <rguenther@suse.de>
11207 * doc/install.texi (--enable-gold): Remove.
11208 (--with-plugin-ld): Document.
11209 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11211 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11213 PR middle-end/47790
11214 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11215 again after expansion changes.
11217 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11219 * combine.c (try_combine): Do simplification only call of
11220 subst() on i2 even when i1 is present. Update comments.
11222 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11224 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11225 and UNSPEC_PCREL_SYMOFF.
11227 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11229 * config/s390/s390.md: Use define_c_enum for the unspec constant
11232 2011-03-18 Richard Henderson <rth@redhat.com>
11233 Jakub Jelinek <jakub@redhat.com>
11236 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11237 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11239 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11241 PR middle-end/47725
11242 * combine.c (cant_combine_insn_p): Don't check zero/sign
11243 extended hard registers.
11245 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11247 PR middle-end/47725
11248 * combine.c (cant_combine_insn_p): Check zero/sign extended
11251 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11253 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11254 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11255 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11256 Change return type to bool.
11257 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11259 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11262 * var-tracking.c (prepare_call_arguments): If CALL target
11263 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11264 pc instead of looking it up using cselib_lookup and use
11265 Pmode for it if x has VOIDmode.
11266 * dwarf2out.c (gen_subprogram_die): If also both first and
11267 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11270 * function.c (assign_parms): For data.passed_pointer parms
11271 use MEM of data.entry_parm instead of data.entry_parm itself
11272 as DECL_INCOMING_RTL.
11273 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11274 also when passed and declared mode is the same, DECL_RTL
11275 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11278 2011-03-16 Jeff Law <law@redhat.com>
11280 PR rtl-optimization/37273
11281 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11282 handle them like argument loads from stack slots. Do not double
11283 count memory for memory constants and argument loads from stack slots.
11285 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11288 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11290 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11293 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11295 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11298 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11300 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11301 Clear call_arg_locations and call_arg_loc_last always.
11303 PR middle-end/48152
11304 * var-tracking.c (prepare_call_arguments): If argument needs to be
11305 passed by reference, adjust argtype and mode.
11307 2011-03-17 Richard Guenther <rguenther@suse.de>
11309 PR middle-end/48134
11310 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11311 a value make sure to fold the statement.
11313 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11316 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11317 return condition with !cfun->calls_alloca.
11319 2011-03-17 Richard Guenther <rguenther@suse.de>
11322 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11323 origin for decls in other ltrans units.
11324 (input_varpool_node): Likewise.
11326 2011-03-17 Richard Guenther <rguenther@suse.de>
11328 PR middle-end/48165
11329 * tree-object-size.c (compute_object_offset): Properly return
11330 the offset operand of MEM_REFs as sizetype.
11332 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11334 PR rtl-optimization/48141
11335 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11336 * dse.c: Include params.h.
11337 (active_local_stores_len): New variable.
11338 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11340 (record_store, check_mem_read_rtx): Decrease it when removing
11342 (scan_insn): Likewise. Increase it when adding to chain, if it
11343 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11344 set active_local_stores to NULL before the addition.
11345 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11347 PR rtl-optimization/48141
11348 * dse.c (record_store): If no positions are needed in an insn
11349 that cannot be deleted, at least unchain it from active_local_stores.
11351 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11354 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11355 (lookup_type_die_strip_naming_typedef): ... here.
11356 (get_context_die): Use it.
11357 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11358 the anonymous struct named by the naming typedef.
11360 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11363 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11364 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11366 2011-03-16 Jeff Law <law@redhat.com>
11368 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11369 check for operands of conditional. Allow type to be a pointer.
11371 2011-03-16 Richard Guenther <rguenther@suse.de>
11373 PR tree-optimization/48149
11374 * fold-const.c (fold_binary_loc): Fold
11375 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11377 2011-03-16 Richard Guenther <rguenther@suse.de>
11379 PR tree-optimization/26134
11380 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11381 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11382 (non_rewritable_mem_ref_base): Handle complex type component
11383 accesses, constrain offsets for vector and complex extracts
11386 2011-03-16 Richard Guenther <rguenther@suse.de>
11388 PR tree-optimization/48146
11389 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11390 operands avoiding the need for renaming.
11392 2011-03-16 Richard Guenther <rguenther@suse.de>
11394 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11395 constant folding. Move MEM_REF canonicalization first.
11396 Rely on fold_const_aggregate_ref for initializer folding.
11397 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11399 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11401 PR middle-end/48136
11402 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11403 arg0/arg1 or their arguments are always fold converted to matching
11406 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11409 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11412 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11413 Handle in-tree gold.
11414 (ld_vers): Extract binutils version for gold.
11415 (gcc_cv_ld_hidden): Handle gold here.
11416 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11417 * configure: Regenerate.
11418 * config.in: Regenerate.
11419 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11420 -fuse-linker-plugin otherwise.
11421 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11422 (LINK_COMMAND_SPEC): Use it.
11423 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11425 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11427 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11428 * calls.c: Remove debug.h include.
11429 (emit_call_1): Don't call virtual_call_token debug hook.
11430 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11431 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11432 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11433 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11434 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11435 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11436 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11437 dwarf2out_virtual_call): Remove.
11438 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11439 copy_call_info and virtual_call hooks.
11440 (dwarf2out_init): Don't initialize vcall_insn_table,
11441 debug_dcall_section and debug_vcall_section.
11442 (prune_unused_types): Don't mark nodes from dcall_table.
11443 (dwarf2out_finish): Don't output dcall or vcall tables.
11444 * final.c (final_scan_insn): Don't call direct_call or
11445 virtual_call debug hooks.
11446 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11447 virtual_call_token, copy_call_info and virtual_call hooks.
11448 (debug_nothing_uid): Remove prototype.
11449 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11450 copy_call_info and virtual_call hooks.
11451 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11452 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11453 * debug.c (do_nothing_debug_hooks): Likewise.
11454 (debug_nothing_uid): Remove.
11455 * doc/invoke.texi (-fenable-icf-debug): Remove.
11456 * common.opt (-fenable-icf-debug): Likewise.
11458 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11459 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11460 call's MEM. Handle functions returning aggregate through a hidden
11461 first pointer. For virtual calls add clobbered pc to call arguments
11463 * dwarf2out.c (gen_subprogram_die): Emit
11464 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11468 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11469 * rtl.h (ENTRY_VALUE_EXP): Define.
11470 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11471 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11472 * print-rtl.c (print_rtx): Likewise.
11473 * gengtype.c (adjust_field_rtx_def): Likewise.
11474 * var-tracking.c (vt_add_function_parameter): Adjust
11475 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11476 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11477 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11478 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11479 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11481 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11482 Call var_location debug hook even on CALL_INSNs.
11483 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11484 * rtl.def (ENTRY_VALUE): New.
11485 * dwarf2out.c: Include cfglayout.h.
11486 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11487 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11488 (struct call_arg_loc_node): New type.
11489 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11490 tail_call_site_count): New variables.
11491 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11492 DW_TAG_GNU_call_site_parameter.
11493 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11494 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11495 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11496 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11497 and DW_AT_GNU_all_source_call_sites.
11498 (mem_loc_descriptor): Handle ENTRY_VALUE.
11499 (add_src_coords_attributes): Don't add enything if
11500 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11501 (dwarf2out_abstract_function): Save and clear call_arg_location,
11502 call_site_count and tail_call_site_count around dwarf2out_decl call.
11503 (gen_call_site_die): New function.
11504 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11505 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11506 (dwarf2out_function_decl): Clear call_arg_locations,
11507 call_arg_loc_last, set call_site_count and tail_call_site_count
11508 to -1 and free block_map.
11509 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11510 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11511 followed by any real instructions.
11512 (dwarf2out_begin_function): Set call_site_count and
11513 tail_call_site_count to 0.
11514 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11515 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11516 attempt to force a DIE for it and worst case remove the attribute.
11517 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11518 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11520 * var-tracking.c: Include tm_p.h.
11521 (vt_stack_adjustments): For calls call note_register_arguments.
11522 (argument_reg_set): New variable.
11523 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11524 ensure the VALUE is resolved.
11525 (call_arguments): New variable.
11526 (prepare_call_arguments): New function.
11527 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11528 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11529 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11530 always use the best expression.
11531 (vt_expand_loc): Add ignore_cur_loc argument.
11532 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11533 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11534 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11535 note for all calls.
11536 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11537 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11538 argument. Don't call cselib_preserve_only_values and
11539 cselib_reset_table.
11540 (note_register_arguments): New function.
11541 (vt_initialize): Compute argument_reg_set. Call
11542 vt_add_function_parameters before processing basic blocks instead of
11543 afterwards. For calls call prepare_call_arguments before calling
11544 cselib_process_insn.
11545 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11546 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11547 (var-tracking.o): Depend on $(TM_P_H).
11548 * cfglayout.h (insn_scope): New prototype.
11549 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11550 * cfglayout.c (insn_scope): No longer static.
11551 * insn-notes.def (CALL_ARG_LOCATION): New.
11552 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11553 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11554 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11555 nothing for DECL_EXTERNAL BLOCK_VARS.
11557 2011-03-16 Alan Modra <amodra@gmail.com>
11560 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11561 create invalid offset address for vsx splat insn.
11562 * config/rs6000/predicates.md (splat_input_operand): New.
11563 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11565 2011-03-15 Xinliang David Li <davidxl@google.com>
11568 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11569 (normalize_preds): New function.
11570 (is_use_properly_guarded): Normalize def predicates.
11572 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11575 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11576 in the output template.
11578 2011-03-15 Richard Guenther <rguenther@suse.de>
11580 PR middle-end/47650
11581 * tree-pretty-print.c (dump_function_declaration): Properly
11582 dump unprototyped and varargs function types.
11584 2011-03-15 Richard Guenther <rguenther@suse.de>
11586 PR tree-optimization/13954
11587 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11590 2011-03-15 Richard Guenther <rguenther@suse.de>
11592 PR tree-optimization/48037
11593 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11594 selects into BIT_FIELD_REFs.
11595 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11598 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11600 PR tree-optimization/48129
11601 * builtins.c (fold_builtin_snprintf): Convert to type of
11602 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11603 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11605 2011-03-15 Richard Guenther <rguenther@suse.de>
11607 PR tree-optimization/41490
11608 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11609 value but with VUSE.
11610 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11612 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11613 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11614 * tree-tailcall.c (find_tail_calls): Ignore returns.
11616 2011-03-15 Richard Guenther <rguenther@suse.de>
11618 PR middle-end/48031
11619 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11620 or variable-indexed array accesses when in gimple form.
11622 2011-03-15 Richard Guenther <rguenther@suse.de>
11624 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11626 2011-03-15 Alan Modra <amodra@gmail.com>
11629 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11630 presume symbol_refs without a symbol_ref_decl are suitably
11631 aligned, nor other trees we may see here. Handle anchor symbols.
11632 (legitimate_constant_pool_address_p): Comment. Add mode param.
11633 Check cmodel=medium addresses. Adjust all calls.
11634 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11635 creating cmodel=medium optimized access to locals.
11636 * config/rs6000/constraints.md (R): Pass QImode to
11637 legitimate_constant_pool_address_p.
11638 * config/rs6000/predicates.md (input_operand): Pass mode to
11639 legitimate_constant_pool_address_p.
11640 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11643 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11646 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11647 64-bit constants being loaded into registers other than GPRs such
11648 as loading 0 into a VSX register.
11650 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11652 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11654 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11656 PR middle-end/47917
11657 * builtins.c (fold_builtin_snprintf): New function.
11658 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11659 (fold_builtin_4): Likewise.
11661 PR middle-end/38878
11662 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11663 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11664 and C - X == X also strip nops from +/-/p+ operand.
11665 When optimizing -X == C, fold C to arg0's type.
11668 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11669 emit it as add_AT_int instead of add_AT_unsigned.
11671 2011-03-14 Tom Tromey <tromey@redhat.com>
11673 * unwind-dw2.c: Include sys/sdt.h if it exists.
11674 (_Unwind_DebugHook): Use STAP_PROBE2.
11675 * config.in, configure: Rebuild.
11676 * configure.ac: Check for sys/sdt.h.
11678 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11680 * config/i386/i386.md (ROUND_FLOOR): New constant.
11681 (ROUND_CEIL): Ditto.
11682 (ROUND_TRUNC): Ditto.
11683 (ROUND_MXCSR): Ditto.
11684 (ROUND_NO_EXC): Ditto.
11685 (rint<mode>2): Use new defines instead of numerical constants.
11686 (floor<mode>2): Ditto.
11687 (ceil<mode>2): Ditto.
11688 (btrunc<mode>2): Ditto.
11689 * config/i386/i386-builtin-types.def: Define ROUND function type
11691 * config/i386/i386.c (enum ix86_builtins): Add
11692 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11693 (struct builtin_description): Add
11694 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11695 (ix86_expand_sse_round): New static function.
11696 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11698 (ix86_builtin_vectorized_function): Handle
11699 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11701 2011-03-14 Tom Tromey <tromey@redhat.com>
11703 * c-parser.c (c_parser_asm_string_literal): Clear
11704 warn_overlength_strings.
11706 2011-03-14 Tom Tromey <tromey@redhat.com>
11708 * c-parser.c (disable_extension_diagnostics): Save
11709 warn_overlength_strings.
11710 (restore_extension_diagnostics): Restore warn_overlength_strings.
11712 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11714 * BASE-VER: Change to 4.7.0.
11716 2011-03-14 Richard Guenther <rguenther@suse.de>
11718 PR middle-end/48098
11719 * tree.c (build_vector_from_val): Adjust assert to requirements
11722 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11725 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11727 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11729 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11730 terms of target_flags_explicit. Adjust copyright year.
11732 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11733 * config/rs6000/t-freebsd: New file. Add override for
11736 2011-03-13 Chris Demetriou <cgd@google.com>
11738 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11739 (-fno-diagnostics-show-option): this, to reflect current default.
11740 (-Werror=): Update text about -fno-diagnostics-show-option.
11742 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11745 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11746 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11747 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11748 mode is not V2DImode or V2DFmode.
11749 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11750 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11751 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11753 (movdi_internal64): Likewise.
11755 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11757 PR tree-optimization/47127
11758 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11760 (set_cloog_options): Same.
11761 (scop_to_clast): Same.
11762 (print_clast_stmt): Do not call cloog_state_malloc and
11764 (print_generated_program): Same.
11766 * graphite-clast-to-gimple.h (cloog_state): Declared.
11767 (scop_to_clast): Adjust declaration.
11768 * graphite.c (cloog_state): Defined here.
11769 (graphite_initialize): Call cloog_state_malloc.
11770 (graphite_finalize): Call cloog_state_free.
11772 2011-03-11 Jason Merrill <jason@redhat.com>
11774 * attribs.c (lookup_attribute_spec): Take const_tree.
11777 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11779 * config/sparc/sparc.c (sparc_option_override): Use
11780 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11782 2011-03-11 Richard Guenther <rguenther@suse.de>
11784 PR tree-optimization/48067
11785 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11786 multiplication result will be only used once on the target
11789 2011-03-11 Richard Guenther <rguenther@suse.de>
11791 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11793 2011-03-11 Richard Guenther <rguenther@suse.de>
11796 * tree.c (find_decls_types_r): Do not walk types only reachable
11797 from IDENTIFIER_NODEs.
11799 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11801 PR middle-end/48044
11802 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11803 all vnode->force_output nodes as needed.
11805 2011-03-11 Jason Merrill <jason@redhat.com>
11808 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11809 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11811 2011-03-11 Martin Jambor <mjambor@suse.cz>
11813 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11816 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11818 PR tree-optimization/48063
11819 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11820 inline functions called once if !tree_can_inline_p (node->callers).
11822 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11824 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11826 * config/score/score3.c: Delete.
11827 * config/score/score3.h: Delete.
11828 * config/score/mul-div.S: Delete.
11829 * config/score/sfp-machine.h: Add new file.
11830 * config/score/constraints.md: Add new file.
11831 * config/score/t-score-softfp: Add new file.
11832 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11833 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11834 (score7_extra_constraint): Delete.
11835 (score7_option_override): Remove unused code.
11836 * config/score/score.c: Remove score3 and score5 define and code.
11837 * config/score/score.h: Remove score3 and score5 define and code.
11838 * config/score/score.md: Remove score3 template and unusual insn.
11839 * config/score/score.opt: Remove score3 and score5 options.
11841 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11843 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11844 when _HPUX_SOURCE is defined.
11845 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11847 2011-03-10 Jason Merrill <jason@redhat.com>
11850 * stor-layout.c (layout_type): Don't set structural equality
11851 on arrays of incomplete type.
11852 * tree.c (type_hash_eq): Handle comparing them properly.
11854 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11857 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11858 result mode matches original rtl mode.
11860 2011-03-10 Nick Clifton <nickc@redhat.com>
11862 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11863 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11865 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11867 PR rtl-optimization/47866
11868 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11869 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11870 if target wasn't scalar.
11871 * function.c (assign_stack_temp_for_type): Assert that neither
11872 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11873 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11875 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11877 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11879 * config/s390/s390-protos.h (s390_label_align): New prototype.
11880 * config/s390/s390.c (s390_label_align): New function.
11881 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11883 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11886 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11887 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11888 (output_vec_const_move): Ditto.
11890 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11892 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11893 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11894 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11895 Change 'rclass' argument and result type to reg_class_t.
11896 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11898 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11900 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11901 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11902 (TARGET_MEMORY_MOVE_COST): Define.
11903 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11905 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11908 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11911 PR tree-optimization/48022
11912 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11915 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11918 * var-tracking.c (find_use_val): Return NULL for
11919 cui->sets && cui->store_p BLKmode MEMs.
11921 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11923 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11925 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11926 xstormy16_print_operand_address): Remove.
11927 * config/stormy16/stormy16.c (xstormy16_print_operand,
11928 xstormy16_print_operand_address): Make static.
11929 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11931 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11934 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11935 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11938 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11941 * cfgloopmanip.c (fix_bb_placements): Return immediately
11942 if FROM is BASE_LOOP's header.
11944 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11946 * gimplify.c (gimplify_function_tree): Fix building calls
11947 to __builtin_return_address.
11949 2011-03-07 Alan Modra <amodra@gmail.com>
11951 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11952 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11953 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11954 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11956 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11957 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11958 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11959 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11960 * config/rs6000/rs6000.c
11961 (rs6000_elf_end_indicate_exec_stack): Rename to..
11962 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11963 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11964 (rs6000_file_start): ..here.
11965 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11966 file scope variables.
11967 (call_ABI_of_interest): New function.
11968 (init_cumulative_args): Set above vars when function return value
11969 is a float, vector, or small struct.
11970 (rs6000_function_arg_advance_1): Likewise for function args.
11971 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11972 references float args.
11974 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11976 * doc/cfg.texi: Remove "See" before @ref.
11977 * doc/invoke.texi: Likewise.
11979 2011-03-05 Jason Merrill <jason@redhat.com>
11981 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11983 2011-03-05 Anthony Green <green@moxielogic.com>
11985 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11987 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11989 PR rtl-optimization/47899
11990 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11991 to flow_loop_nested_p when moving the loop upward.
11993 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11996 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11998 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12000 PR tree-optimization/47967
12001 * ipa-cp.c (build_const_val): Return NULL instead of creating
12002 VIEW_CONVERT_EXPR for mismatching sizes.
12003 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12004 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12005 give up on versioning.
12007 2011-03-05 Alan Modra <amodra@gmail.com>
12010 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12011 full cmodel medium/large lo_sum + high addresses.
12013 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12015 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12016 pool references in UNSPEC_LTREL_OFFSET.
12018 2011-03-04 Jan Hubicka <jh@suse.cz>
12021 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12022 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12023 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12025 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12026 cgraph_add_thunk): Add node pointers.
12027 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12028 associated to right node.
12029 (input_node): Update use of cgraph_same_body_alias
12030 and cgraph_add_thunk.
12032 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12034 * config/i386/i386.opt (mprefer-avx128): New flag.
12035 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12036 modes when the flag -mprefer-avx128 is on.
12038 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12040 * dwarf2out.c (compare_loc_operands): Fix address handling.
12042 2011-03-04 Alan Modra <amodra@gmail.com>
12044 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12046 2011-03-04 Richard Guenther <rguenther@suse.de>
12048 PR middle-end/47968
12049 * expmed.c (extract_bit_field_1): Prefer vector modes that
12050 vec_extract patterns can handle.
12052 2011-03-04 Richard Guenther <rguenther@suse.de>
12054 PR middle-end/47975
12055 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12057 2011-03-04 Richard Henderson <rth@redhat.com>
12059 * explow.c (emit_stack_save): Remove 'after' parameter.
12060 (emit_stack_restore): Likewise.
12061 * expr.h: Update to match.
12062 * builtins.c, calls.c, stmt.c: Likewise.
12063 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12064 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12065 * function.c (expand_function_end): Insert the emit_stack_save
12066 sequence before parm_birth_insn instead of after.
12068 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12070 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12071 (ssse3_pmaddubsw128): Ditto.
12072 (ssse3_pmaddubsw): Ditto.
12074 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12076 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12078 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12081 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12082 on TYPE_SIZE_UNIT if it is a DECL.
12085 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12086 first operand is not is_gimple_mem_ref_addr, try to fold it.
12087 If the operand still isn't is_gimple_mem_ref_addr, clear
12090 2011-03-03 Richard Guenther <rguenther@suse.de>
12092 PR middle-end/47283
12093 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12095 (refs_may_alias_p_1): For release branches return true if
12096 we are confused by our input.
12098 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12100 * config/s390/s390.c (s390_function_value): Rename to ...
12101 (s390_function_and_libcall_value): ... this.
12102 (s390_function_value): New function.
12103 (s390_libcall_value): New function.
12104 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12105 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12106 target macro definitions.
12107 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12109 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12111 * config/i386/freebsd64.h (CC1_SPEC): Define.
12112 * config/i386/linux64.h (CC1_SPEC): Define.
12113 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12115 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12117 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12119 * config/stormy16/stormy16.c: Include reload.h.
12120 (xstormy16_memory_move_cost): New function.
12121 (TARGET_MEMORY_MOVE_COST): Define.
12123 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12125 PR rtl-optimization/47925
12126 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12127 with side effects. Remove the more-specific check for volatile asms.
12129 2011-03-02 Alan Modra <amodra@gmail.com>
12132 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12133 toc relative addresses for valid offsets.
12135 2011-03-01 Richard Guenther <rguenther@suse.de>
12137 PR tree-optimization/47890
12138 * tree-vect-loop.c (get_initial_def_for_induction): Set
12139 related stmt properly.
12141 2011-03-01 Richard Guenther <rguenther@suse.de>
12144 * lto-streamer.c (lto_record_common_node): Also register
12145 the canonical type.
12147 2011-03-01 Richard Guenther <rguenther@suse.de>
12150 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12151 Do not stream DECL_ABSTRACT_ORIGIN.
12152 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12153 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12154 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12155 Do not stream DECL_ABSTRACT_ORIGIN.
12156 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12157 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12159 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12161 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12162 FUNCTION_VALUE_REGNO_P): Remove.
12163 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12164 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12165 Add 'outgoing' argument.
12166 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12168 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12169 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12171 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12174 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12175 (lookup_filename): Likewise.
12176 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12178 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12179 Jakub Jelinek <jakub@redhat.com>
12181 PR middle-end/47893
12182 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12183 (assign_stack_local_1): Change last argument type to int.
12184 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12185 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12186 don't record padding space into frame_space_list nor use those areas.
12187 (assign_stack_local): Adjust caller.
12188 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12189 of assign_stack_local, pass 0 as last argument.
12190 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12193 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12196 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12197 Use target address_mode and pointer_mode hooks instead of hardcoded
12198 Pmode and ptr_mode. Handle some simple cases of extending if
12199 POINTERS_EXTEND_UNSIGNED < 0.
12200 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12201 Call convert_debug_memory_address.
12202 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12203 convert_debug_memory_address.
12205 PR middle-end/46790
12206 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12207 * configure: Regenerated.
12208 * config.in: Regenerated.
12209 * varasm.c (default_function_section): Return NULL
12210 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12212 2011-02-28 Martin Jambor <mjambor@suse.cz>
12214 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12215 the description to match the printed values.
12217 2011-02-28 Richard Guenther <rguenther@suse.de>
12219 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12220 of the copied scope tree.
12222 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12224 * doc/extend.texi (Function Attributes): Avoid deeply (and
12225 wrongly) nested tables.
12227 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12229 PR middle-end/47903
12230 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12231 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12232 r isn't op0 nor op1.
12234 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12236 * config/avr/avr.md: Remove magic comment for emacs.
12238 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12241 * config/avr/avr.c (avr_option_override): Use error on bad options.
12242 (avr_help): New function.
12243 (TARGET_HELP): Define.
12245 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12248 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12249 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12251 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12253 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12254 (ARM Options): Ditto.
12255 (i386 and x86-64 Options): Ditto.
12256 (RX Options): Ditto.
12257 (SPARC Options): Ditto.
12259 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12261 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12262 FreeBSD 6 and later. Generally use cpu generic.
12264 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12266 * doc/cpp.texi: Update copyright years.
12268 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12271 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12273 2011-02-25 Jon Beniston <jon@beniston.com>
12276 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12277 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12278 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12279 (lm32_block_move_inline): Add type cast to remove warning.
12280 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12281 (gen_int_relational): Move declarations to start of function.
12283 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12285 PR tree-optimization/45470
12286 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12287 can throw internally only.
12288 * tree-vect-stmts.c (vectorizable_call): Likewise.
12290 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12292 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12293 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12294 * config/stormy16/stormy16-protos.h
12295 (xstormy16_preferred_reload_class): Remove.
12296 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12297 static. Change 'rclass' argument and return type to reg_class_t.
12298 (TARGET_PREFERRED_RELOAD_CLASS,
12299 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12301 2011-02-24 Richard Guenther <rguenther@suse.de>
12303 * lto-streamer-in.c (input_bb): Do not find referenced vars
12304 in debug statements.
12306 2011-02-23 Jason Merrill <jason@redhat.com>
12308 * common.opt (fabi-version): Document v5 and v6.
12310 2011-02-23 Richard Guenther <rguenther@suse.de>
12312 PR tree-optimization/47849
12313 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12315 2011-02-23 Jie Zhang <jie@codesourcery.com>
12317 * opts-common.c (decode_cmdline_option): Print empty string
12318 argument as "" in decoded->orig_option_with_args_text.
12319 * gcc.c (execute): Print empty string argument as ""
12320 in the verbose output.
12321 (do_spec_1): Keep empty string argument.
12323 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12325 * config.gcc: Declare score-* and crx-* obsolete.
12327 2011-02-23 Jie Zhang <jie@codesourcery.com>
12329 PR rtl-optimization/47763
12330 * web.c (web_main): Ignore naked clobber when replacing register.
12332 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12334 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12337 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12340 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12342 2011-02-22 Mike Stump <mikestump@comcast.net>
12344 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12346 * configure: Regenerate.
12348 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12350 PR rtl-optimization/46002
12351 * ira-color.c (update_copy_costs): Change class intersection
12352 test to reg_class_contents[] test of 'hard_regno'.
12354 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12356 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12357 than Driver option.
12358 * config/hpux11.opt (mt): Likewise.
12359 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12360 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12361 * config/vax/elf.opt (mno-asm-pic): Likewise.
12362 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12364 2011-02-21 Mike Stump <mikestump@comcast.net>
12367 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12368 tree so we can get save the type.
12369 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12370 for CFString instead of trying to use past the end of the builtins.
12371 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12372 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12373 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12374 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12375 Rename to darwin_builtin_cfstring.
12376 (darwin_init_cfstring_builtins): Return the built type.
12378 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12381 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12382 (_mm256_insert_epi64): Use _mm_insert_epi64.
12384 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12386 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12387 * config/stormy16/stormy16-protos.h
12388 (xstormy16_mode_dependent_address_p): Remove.
12389 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12390 Make static. Change return type to bool. Change argument type to
12391 const_rtx. Remove dead code.
12392 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12394 2011-02-21 Richard Guenther <rguenther@suse.de>
12397 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12398 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12399 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12401 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12402 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12404 2011-02-20 Richard Guenther <rguenther@suse.de>
12407 * tree.c (free_lang_data_in_decl): Clean builtins from
12408 the TU decl BLOCK_VARS.
12410 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12414 * haifa-sched.c (fix_tick_ready): Skip tick computation
12417 2011-02-19 Richard Guenther <rguenther@suse.de>
12420 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12421 Remove lazy BLOCK_VARS streaming.
12422 (lto_input_ts_block_tree_pointers): Likewise.
12423 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12425 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12427 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12429 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12431 * config/i386/biarch32.h, config/i386/mach.h,
12432 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12434 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12437 * config/i386/i386.md (peephole2 for shift and plus): Use
12438 operands[1] original mode in the first insn.
12440 2011-02-18 Mike Stump <mikestump@comcast.net>
12442 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12444 2011-02-18 Jan Hubicka <jh@suse.cz>
12446 PR middle-end/47788
12447 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12448 to zero when the function is not inlinable at all.
12450 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12452 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12453 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12454 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12455 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12456 * config/pa/t-pa64: Likewise.
12457 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12459 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12462 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12464 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12467 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12469 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12471 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12472 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12473 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12474 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12475 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12476 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12477 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12478 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12479 m32r_legitimate_address_p): New functions.
12480 * config/m32r/constraints.md (constraint "S"): Don't use
12481 STORE_PREINC_PREDEC_P.
12482 (constraint "U"): Don't use LOAD_POSTINC_P.
12484 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12486 PR rtl-optimization/46178
12487 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12488 compute ira_hard_regno_cover_class[].
12490 2011-02-18 Richard Guenther <rguenther@suse.de>
12493 * lto-streamer.h (lto_global_var_decls): Declare.
12494 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12495 statics for global var processing.
12497 2011-02-18 Richard Guenther <rguenther@suse.de>
12499 PR tree-optimization/47737
12500 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12501 edge dominance check.
12503 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12506 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12507 avoid invalid rtx sharing.
12509 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12511 * doc/cpp.texi (Obsolete Features): Add background on the
12512 origin of assertions.
12514 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12516 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12518 * config/darwin.c (output_objc_section_asm_op): Added support for
12520 (is_objc_metadata): New.
12521 (darwin_objc2_section): New.
12522 (darwin_objc1_section): New.
12523 (machopic_select_section): Added support for ABI v1 and v2.
12524 (darwin_emit_objc_zeroed): New.
12525 (darwin_output_aligned_bss): Detect objc metadata and treat it
12527 (darwin_asm_output_aligned_decl_common): Same.
12528 (darwin_asm_output_aligned_decl_local): Same.
12529 * config/darwin-sections.def: Updated for ABI v1 and v2.
12530 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12531 compiling Objective-C code for the NeXT runtime, default to using
12532 ABI version 0 for 32-bit, and version 2 for 64-bit.
12534 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12536 * common.opt (optimize_fast): New Variable.
12537 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12538 instead of local variable ofast.
12540 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12542 * doc/invoke.texi (fobjc-abi-version): Documented.
12543 (fobjc-nilcheck): Documented.
12544 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12547 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12550 * common.opt (export-dynamic): New Driver option.
12551 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12553 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12555 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12557 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12558 Jan Hubicka <jh@suse.cz>
12562 * cfgexpand.c (account_used_vars_for_block): Remove.
12563 (estimated_stack_frame_size): Use referenced vars.
12564 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12565 that were referenced in the original function. Test src_fn
12566 rather than cfun. Drop redundant get_var_ann.
12567 (setup_one_parameter): Drop redundant get_var_ann.
12568 (declare_return_variable): Likewise.
12569 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12570 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12571 * ipa-inline.c (compute_inline_parameters): Do not compute
12572 disregard_inline_limits here.
12573 (compute_inlinable_for_current, pass_inlinable): New.
12574 (pass_inline_parameters): Require PROP_referenced_vars.
12575 * cgraphunit.c (cgraph_process_new_functions): Don't run
12576 compute_inline_parameters explicitly unless function is in SSA form.
12577 (cgraph_analyze_function): Set .disregard_inline_limits.
12578 * tree-sra.c (convert_callers): Compute inliner parameters
12579 only for functions already in SSA form.
12581 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12583 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12584 -mlittle-endian-data.
12586 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12588 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12589 -mno-fpu, not -fpu and -no-fpu.
12590 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12591 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12593 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12596 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12597 input reload with PLUS RTX.
12599 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12601 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12602 of InverseVar(MDMX).
12604 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12606 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12609 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12611 * config/mn10300/mn10300.opt (mno-crt0): New.
12613 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12615 * config/m68k/uclinux.opt (static-libc): New Driver option.
12617 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12619 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12621 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12623 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12624 %{muser-extend-enabled}.
12626 2011-02-16 Richard Guenther <rguenther@suse.de>
12628 PR tree-optimization/47738
12629 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12630 the TODO from tree_predictive_commoning.
12632 2011-02-15 Jeff Law <law@redhat.com>
12635 2011-01-25 Jeff Law <law@redhat.com>
12637 PR rtl-optimization/37273
12638 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12639 handle them like argument loads from stack slots. Do not double
12640 count memory for memory constants and argument loads from stack slots.
12642 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12644 PR middle-end/47725
12645 * combine.c (cant_combine_insn_p): Revert the last change.
12647 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12650 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12651 mode for vector constants. Remove code that checks for TImode.
12653 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12657 * cgraph.h (compute_inline_parameters): Return void.
12658 * ipa-inline.c (compute_inline_parameters): Adjust.
12660 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12664 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12666 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12667 * ipa-inline.c (compute_inline_parameters): Adjust.
12669 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12673 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12674 Adjust all users. Pass FN to...
12675 * tree-flow-inline.h (first_referenced_var): ... this. Add
12677 * ipa-struct-reorg.c: Adjust.
12678 * tree-dfa.c: Adjust.
12679 * tree-into-ssa.c: Adjust.
12680 * tree-sra.c: Adjust.
12681 * tree-ssa-alias.c: Adjust.
12682 * tree-ssa-live.c: Adjust.
12683 * tree-ssa.c: Adjust.
12684 * tree-ssanames.c: Adjust.
12685 * tree-tailcall.c: Adjust.
12687 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12691 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12692 Adjust all callers.
12693 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12694 * tree-flow-inline.h: Adjust.
12695 * gimple-pretty-print.c: Adjust.
12696 * tree-into-ssa.c: Adjust.
12697 * tree-ssa.c: Adjust.
12698 * cfgexpand.c: Adjust.
12700 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12702 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12703 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12704 (EXTRA_CONSTRAINT): Delete.
12705 * config/iq2000/constraints.md: New file.
12706 * config/iq2000/iq2000.md: Include it.
12707 (define_insn ""): Delete.
12708 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12709 unsupported constraint letters from patterns.
12710 (call_value, call_value_internal1): Likewise.
12711 (call_value_multiple_internal1): Likewise.
12713 2011-02-15 Nick Clifton <nickc@redhat.com>
12715 * config/mn10300/mn10300.c: Include tm-constrs.h.
12716 (struct liw_data): New data structure describing an LIW candidate
12718 (extract_bundle): Use struct liw_data. Allow small integer
12719 operands for some instructions.
12720 (check_liw_constraints): Use struct liw_data. Remove swapped
12721 parameter. Add comments describing the checks. Fix bug when
12722 assigning the source of liw1 to the source of liw2.
12723 (liw_candidate): Delete. Code moved into extract_bundle.
12724 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12726 * config/mn10300/predicates.md (liw_operand): New predicate.
12727 Allows registers and small integer constants.
12728 * config/mn10300/constraints.md (O): New constraint. Accetps
12729 integers in the range -8 to +7 inclusive.
12730 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12731 for moving a small integer into a register. Give this alternative
12733 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12734 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12735 using the J,K,L and M constraints,
12736 (liw): Remove SI mode on second operands to allow for HI and QI
12738 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12741 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12743 PR middle-end/47725
12744 * combine.c (cant_combine_insn_p): Check zero/sign extended
12747 2011-02-15 Richard Guenther <rguenther@suse.de>
12749 PR tree-optimization/47743
12750 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12751 for a non-type-compatible VN lookup bail out.
12753 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12755 * config/fr30/constraints.md: New file.
12756 * config/fr30/fr30.md: Include it.
12757 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12758 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12759 (EXTRA_CONSTRAINT): Delete.
12761 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12763 * config/frv/constraints.md: New file.
12764 * config/frv/predicates.md: Include it.
12765 * config/frv/frv.c (reg_class_from_letter): Delete.
12766 (frv_option_override): Don't initialize it.
12767 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12768 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12769 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12770 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12771 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12772 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12773 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12774 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12775 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12776 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12777 (REG_CLASS_FROM_CONSTRAINT): Delete.
12779 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12781 PR middle-end/47581
12782 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12783 if frame size is 0 in a leaf function.
12785 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12788 * config/alpha/host-osf.c: New file.
12789 * config/alpha/x-osf: New file.
12790 * config.host (alpha*-dec-osf*): Use it.
12792 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12794 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12795 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12796 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12797 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12799 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12801 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12803 * config/stormy16/constraints.md: New file.
12804 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12805 Use satisfies_constraint_Q and satisfies_constraint_R.
12806 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12808 (xstormy16_legitiamte_address_p): Declare.
12809 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12810 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12811 (EXTRA_CONSTRAINT): Delete.
12812 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12814 (xstormy16_extra_constraint_p): Delete.
12816 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12818 PR tree-optimization/46494
12819 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12820 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12821 (pass_rtl_loop_done): Add TODO_verify_flow.
12822 * fwprop.c (pass_rtl_fwprop): Likewise.
12823 * modulo-sched.c (pass_sms): Likewise.
12824 * tree-ssa-dom.c (pass_dominator): Likewise.
12825 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12826 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12827 (pass_tree_loop_done): Likewise.
12828 * tree-ssa-pre.c (execute_pre): Likewise.
12829 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12830 * tree-ssa-sink.c (pass_sink_code): Likewise.
12831 * tree-vrp.c (pass_vrp): Likewise.
12833 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12835 * config/v850/constraints.md: New file.
12836 * config/v850/v850.md: Include it.
12837 * config/v850/predicates.md (reg_or_0_operand): Use
12838 satisfies_constraint_G.
12839 (special_symbolref_operand): Use satisfies_constraint_K.
12840 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12841 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12842 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12843 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12844 (EXTRA_CONSTRAINT): Delete.
12845 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12846 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12847 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12849 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12852 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12855 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12857 * config/mcore/constraints.md: New file.
12858 * config/mcore/mcore.md: Include it.
12859 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12860 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12861 (REG_CLASS_FROM_LETTER): Delete.
12862 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12863 insn_const_int_ok_for_constraint.
12864 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12865 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12866 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12867 (EXTRA_CONSTRAINT): Delete.
12869 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12872 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12873 (IS_SIGHANDLER): Define.
12874 (sparc64_is_sighandler): New function, split off from
12875 sparc64_fallback_frame_state.
12876 (sparc_is_sighandler): New function, split off from
12877 sparc_fallback_frame_state.
12878 (sparc64_fallback_frame_state): Merge with ...
12879 (sparc_fallback_frame_state): ... this into ...
12880 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12881 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12882 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12883 stack instead of hardcoded offsets.
12885 2011-02-14 Andriy Gapon <avg@freebsd.org>
12888 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12890 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12892 * configure: Regenerate.
12894 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12897 * gcc.c (asm_options): Correct spec matching --target-help.
12899 2011-02-12 Martin Jambor <mjambor@suse.cz>
12901 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12902 to gimple call error.
12904 2011-02-12 Mike Stump <mikestump@comcast.net>
12906 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12907 comments in backslash regions.
12909 2011-02-12 Mike Stump <mikestump@comcast.net>
12910 Jakub Jelinek <jakub@redhat.com>
12911 Iain Sandoe <iains@gcc.gnu.org>
12914 * dwarf2out.c (output_cfa_loc): When required, apply the
12915 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12916 (output_loc_sequence): Likewise.
12917 (output_loc_operands_raw): Likewise.
12918 (output_loc_sequence_raw): Likewise.
12919 (output_cfa_loc): Likewise.
12920 (output_loc_list): Suppress register number adjustment when
12921 calling output_loc_sequence()
12922 (output_die): Likewise.
12924 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12926 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12928 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12929 xtensa_memory_move_cost): New functions.
12930 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12932 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12935 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12936 in the current directory.
12937 * configure: Rebuilt.
12939 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12941 * config/darwin.c (darwin_override_options): Add a hunk missed
12942 from the commit of r168571. Trim comment line lengths and
12943 correct indents of the preceding block.
12945 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12947 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12950 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12952 * common.opt (nostartfiles): New Driver option.
12954 2011-02-11 Xinliang David Li <davidxl@google.com>
12956 PR tree-optimization/47707
12957 * tree-chrec.c (convert_affine_scev): Keep type precision.
12959 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12961 PR tree-optimization/47420
12962 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12964 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12966 PR rtl-optimization/47614
12967 * rtl.h (check_for_inc_dec): Declare.
12968 * dse.c (check_for_inc_dec): Externalize...
12969 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12970 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12972 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12975 * gcc.c (main): Do not compile inputs if there were errors in
12977 * opts-common.c (read_cmdline_option): Check for wrong language
12978 after other error checks.
12980 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12982 * cgraph.c: Fix comment typos.
12983 * cgraph.h: Likewise.
12984 * cgraphunit.c: Likewise.
12985 * ipa-cp.c: Likewise.
12986 * ipa-inline.c: Likewise.
12987 * ipa-prop.c: Likewise.
12988 * ipa-pure-const.c: Likewise.
12989 * ipa-ref.c: Likewise.
12990 * ipa-reference.c: Likewise.
12992 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12995 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12997 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13000 * doc/sourcebuild.texi (Require Support): Document
13001 dg-require-ascii-locale.
13003 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13005 * doc/lto.texi (Write summary): Fix missing parentheses.
13007 2011-02-10 DJ Delorie <dj@redhat.com>
13009 * config/m32c/m32c.c (m32c_option_override): Disable
13010 -fcombine-stack-adjustments until flag value tracking and compare
13011 optimization can be rewritten.
13013 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13015 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13017 (PROCESSOR_DEFAULT64): Likewise.
13019 2011-02-10 Richard Henderson <rth@redhat.com>
13021 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13022 change from 2011-02-03.
13023 * config/rx/rx.c (flags_from_code): Likewise.
13024 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13025 is valid, n/pz otherwise.
13026 (rx_select_cc_mode): Return CCmode if Y is not zero.
13028 2011-02-10 Richard Guenther <rguenther@suse.de>
13030 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13032 2011-02-10 Richard Guenther <rguenther@suse.de>
13034 PR tree-optimization/47677
13035 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13037 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13040 * combine.c (make_compound_operation): Only change shifts into
13041 multiplication for SCALAR_INT_MODE_P.
13043 2011-02-10 Jie Zhang <jie@codesourcery.com>
13047 2011-02-05 Jie Zhang <jie@codesourcery.com>
13049 * web.c (entry_register): Don't clobber the number of the
13050 first uninitialized reference in used[].
13052 2011-02-09 Richard Guenther <rguenther@suse.de>
13054 PR tree-optimization/47664
13055 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13058 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13062 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13064 (PROCESSOR_DEFAULT64): Same.
13065 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13067 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13069 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13071 2011-02-09 Martin Jambor <mjambor@suse.cz>
13073 PR middle-end/45505
13074 * tree-sra.c (struct access): New flags grp_scalar_read and
13075 grp_scalar_write. Changed description of assignment read and write
13077 (dump_access): Dump new flags, reorder all of them.
13078 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13079 to detect multiple scalar reads.
13080 (analyze_access_subtree): Use the new scalar read write flags instead
13081 of the old flags. Adjusted comments.
13083 2011-02-08 DJ Delorie <dj@redhat.com>
13086 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13089 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13091 * config/m68k/uclinux.opt: New.
13092 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13094 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13096 * config/cris/elf.opt (sim): New Driver option.
13098 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13100 * config/xtensa/elf.opt: New.
13101 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13103 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13105 * config/vax/elf.opt: New.
13106 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13108 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13110 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13112 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13114 * config/gnu-user.opt: New.
13115 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13116 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13117 *-*-uclinux*): Use gnu-user.opt.
13119 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13121 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13122 * config/i386/gnu.h (CPP_SPEC): Likewise.
13124 2011-02-08 Ian Lance Taylor <iant@google.com>
13126 * common.opt (fcx-limited-range): Add SetByCombined flag.
13127 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13128 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13129 (fassociative-math, freciprocal-math): Likewise.
13130 (funsafe-math-optimizations): Likewise.
13131 * opth-gen.awk: Handle SetByCombined.
13132 * optc-gen.awk: Likewise.
13133 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13134 (set_unsafe_math_optimizations_flags): Likewise.
13135 * doc/options.texi (Option properties): Document SetByCombined.
13137 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13139 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13140 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13141 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13142 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13143 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13145 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13147 PR tree-optimization/46834
13148 PR tree-optimization/46994
13149 PR tree-optimization/46995
13150 * graphite-sese-to-poly.c (used_outside_reduction): New.
13151 (detect_commutative_reduction): Call used_outside_reduction.
13152 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13153 translate_scalar_reduction_to_array only when at least one
13154 loop-phi/close-phi tuple has been detected.
13156 2011-02-08 Richard Guenther <rguenther@suse.de>
13158 PR middle-end/47639
13159 * tree-vect-generic.c (expand_vector_operations_1): Update
13161 (expand_vector_operations): ... not here. Cleanup EH info
13162 and the CFG if required.
13164 2011-02-08 Richard Guenther <rguenther@suse.de>
13166 PR tree-optimization/47641
13167 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13168 require type compatibility.
13170 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13172 * gimple-low.c (lower_function_body): Don't remove the location of
13173 the return statement here.
13174 (lower_gimple_return): Do it here instead but only if the return
13175 statement is actually used twice.
13177 2011-02-08 Richard Guenther <rguenther@suse.de>
13179 PR tree-optimization/47632
13180 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13181 unused up_to_stmt parameter, return whether cfg-cleanup is
13182 necessary, remove EH info properly.
13183 (forward_propagate_into_gimple_cond): Adjust caller.
13184 (forward_propagate_into_cond): Likewise.
13185 (forward_propagate_comparison): Likewise.
13186 (tree_ssa_forward_propagate_single_use_vars): Make
13187 forward_propagate_comparison case similar to the two others.
13189 2011-02-08 Nick Clifton <nickc@redhat.com>
13191 * config/mn10300/mn10300.opt (mliw): New command line option.
13192 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13193 (liw_bundling): New automaton.
13194 (liw): New attribute.
13195 (liw_op): New attribute.
13196 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13197 (movsi_internal): Add LIW attributes.
13198 (andsi3): Likewise.
13199 (iorsi3): Likewise.
13200 (xorsi3): Likewise.
13201 (addsi3): Separate register and immediate alternatives.
13202 Add LIW attributes.
13203 (subsi3): Likewise.
13205 (aslsi3): Likewise.
13206 (lshrsi3): Likewise.
13207 (ashrsi3): Likewise.
13208 (liw): New pattern.
13209 * config/mn10300/mn10300.c (liw_op_names): New
13210 (mn10300_print_operand): Handle 'W' operand descriptor.
13211 (extract_bundle): New function.
13212 (check_liw_constraints): New function.
13213 (liw_candidate): New function.
13214 (mn10300_bundle_liw): New function.
13215 (mn10300_reorg): New function.
13216 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13217 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13218 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13219 __LIW__ or __NO_LIW__.
13220 * doc/invoke.texi: Describe the -mliw command line option.
13222 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13224 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13225 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13226 pthread_mutex_unlock): Remove.
13227 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13228 * config/pa/t-pa64: Likewise.
13229 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13230 shared libc if not linking against libpthread.
13231 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13233 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13236 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13237 on 10.6 and later to ensure that we always use the unwinder from
13238 the system. Only add -no_compact_unwind when tarteting darwin
13241 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13244 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13245 (vec_interleave_lowv2sf): Ditto.
13246 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13247 (vec_extract_oddv2sf): Ditto.
13249 2011-02-07 Mike Stump <mikestump@comcast.net>
13252 Add __ieee_divdc3 entry point.
13253 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13255 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13256 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13257 * config/darwin.c (darwin_rename_builtins): Add.
13258 * config/darwin-protos.h (darwin_rename_builtins): Add.
13260 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13263 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13266 2011-02-07 Mike Stump <mikestump@comcast.net>
13268 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13270 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13273 * config/avr/libgcc.S (exit): Move .endfunc
13275 2011-02-07 Richard Guenther <rguenther@suse.de>
13277 PR tree-optimization/47615
13278 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13279 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13280 (run_scc_vn): Initialize it.
13281 (visit_reference_op_load): Use it.
13282 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13284 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13286 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13287 DImode trapping arithmetic libfuncs.
13289 2011-02-07 Richard Guenther <rguenther@suse.de>
13291 PR tree-optimization/47621
13292 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13294 (execute_update_addresses_taken): ... here. Make it more
13295 conservative in what we accept.
13297 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13299 * config/sparc/freebsd.h (ASM_SPEC): Define.
13300 * config/sparc/vxworks.h (ASM_SPEC): Define.
13302 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13304 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13306 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13308 * doc/invoke.texi: Remove reference to compiler internals from
13309 user documentation.
13311 * reg-notes.def: Remove REG_VALUE_PROFILE.
13312 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13314 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13316 PR middle-end/47610
13317 * varasm.c (default_section_type_flags): If decl is NULL,
13318 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13320 2011-02-05 Jie Zhang <jie@codesourcery.com>
13323 * web.c (entry_register): Don't clobber the number of the
13324 first uninitialized reference in used[].
13326 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13328 PR tree-optimization/46194
13329 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13330 (build_classic_dist_vector_1): Do not represent classic distance
13331 vectors when the access functions are variating in different loops.
13333 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13335 * config/mips/iris6.opt: New.
13336 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13338 2011-02-04 Richard Henderson <rth@redhat.com>
13339 Steve Ellcey <sje@cup.hp.com>
13342 * config/ia64/predicates.md (mux1_brcst_element): New.
13343 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13344 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13345 (ia64_unpack_sign): New.
13346 (ia64_expand_unpack): Rewrite using new routines.
13347 (ia64_expand_widen_sum): Ditto.
13348 (ia64_expand_dot_prod_v8qi): Ditto.
13349 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13350 routines, add endian check.
13351 (pmpy2_even): Rename from pmpy2_r, add endian check.
13352 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13353 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13354 (vec_widen_smult_hi_v4hi): Ditto.
13355 (vec_widen_umult_lo_v4hi): Ditto.
13356 (vec_widen_umult_hi_v4hi): Ditto.
13357 (mulv2si3): Change endian checks.
13358 (sdot_prodv4hi): Rewrite with new calls.
13359 (udot_prodv4hi): New.
13360 (vec_pack_ssat_v4hi): Add endian check.
13361 (vec_pack_usat_v4hi): Ditto.
13362 (vec_pack_ssat_v2si): Ditto.
13363 (max1_even): Rename from max1_r, add endian check.
13364 (max1_odd): Rename from max1_l, add endian check.
13365 (*mux1_rev): Format change.
13366 (*mux1_mix): Ditto.
13367 (*mux1_shuf): Ditto.
13368 (*mux1_alt): Ditto.
13369 (*mux1_brcst_v8qi): Use new predicate.
13370 (vec_extract_evenv8qi): Remove endian check.
13371 (vec_extract_oddv8qi): Ditto.
13372 (vec_interleave_lowv4hi): Format change.
13373 (vec_interleave_highv4hi): Ditto.
13374 (mix2_even): Rename from mix2_r, add endian check.
13375 (mix2_odd): Rename from mux2_l, add endian check.
13376 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13377 (vec_extract_evenodd_helper): Format change.
13378 (vec_extract_evenv4hi): Remove endian check.
13379 (vec_extract_oddv4hi): Remove endian check.
13380 (vec_interleave_lowv2si): Format change.
13381 (vec_interleave_highv2si): Format change.
13382 (vec_initv2si): Remove endian check.
13383 (vecinit_v2si): Add endian check.
13384 (reduc_splus_v2sf): Add endian check.
13385 (reduc_smax_v2sf): Ditto.
13386 (reduc_smin_v2sf): Ditto.
13387 (vec_initv2sf): Remove endian check.
13388 (fpack): Add endian check.
13389 (fswap): Add endian check.
13390 (vec_interleave_highv2sf): Add endian check.
13391 (vec_interleave_lowv2sf): Add endian check.
13392 (fmix_lr): Add endian check.
13393 (vec_setv2sf): Format change.
13394 (*vec_extractv2sf_0_be): Use shift to extract operand.
13395 (*vec_extractv2sf_1_be): New.
13396 (vec_pack_trunc_v4hi): Add endian check.
13397 (vec_pack_trunc_v2si): Format change.
13399 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13401 PR inline-asm/23200
13402 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13403 do bb, locus and block comparison and disallow loads if it is not set.
13404 (stmt_is_replaceable_p): New function.
13405 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13407 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13408 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13410 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13412 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13414 * config/rs6000/xilinx.opt: New.
13415 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13417 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13419 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13421 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13423 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13424 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13425 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13426 secondary_reload_info, xtensa_secondary_reload): Remove.
13427 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13428 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13429 (xtensa_preferred_reload_class): Make static. Change return and
13430 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13431 Use CONST_DOUBLE_P predicate.
13432 (xtensa_preferred_output_reload_class): New function.
13433 (xtensa_secondary_reload): Make static.
13435 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13437 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13438 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13439 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13441 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13443 PR middle-end/31490
13444 * output.h (SECTION_RELRO): Define.
13445 (SECTION_MACH_DEP): Adjust.
13446 (get_variable_section): New prototype.
13447 * varpool.c (varpool_finalize_named_section_flags): New function.
13448 (varpool_assemble_pending_decls): Call it.
13449 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13450 * cgraphunit.c (cgraph_output_in_order): Call
13451 varpool_finalize_named_section_flags.
13452 * varasm.c (get_section): Allow section flags conflicts between
13453 relro and read-only sections if the section hasn't been declared yet.
13454 Set SECTION_OVERRIDE after diagnosing section type conflict.
13455 (get_variable_section): No longer static.
13456 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13457 readonly sections that need relocations.
13458 (decl_readonly_section_1): New function.
13459 (decl_readonly_section): Use it.
13462 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13463 Steve Ellcey <sje@cup.hp.com>
13465 PR middle-end/31490
13466 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13467 if section attribute used.
13469 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13471 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13472 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13473 (darwin_init_sections): Remove assertion.
13475 2011-02-03 Nick Clifton <nickc@redhat.com>
13477 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13479 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13480 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13481 instead of "n" and "pz".
13482 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13485 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13488 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13489 fma, expand FMA_EXPR as fma{,f,l} call.
13492 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13493 copy them into a unsigned char variable and pass address of it to
13494 lto_output_data_stream.
13497 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13498 around backend_init_target and lang_dependent_init_target calls.
13499 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13500 (verify_cgraph_node): Don't call set_cfun here. Use
13501 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13502 Set error_found for incorrectly represented calls to thunks.
13504 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13507 PR rtl-optimization/43494
13508 * rtl.h (for_each_inc_dec_fn): New type.
13509 (for_each_inc_dec): Declare.
13510 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13511 (for_each_inc_dec_find_inc_dec): New fn.
13512 (for_each_inc_dec_find_mem): New fn.
13513 (for_each_inc_dec): New fn.
13514 * dse.c (struct insn_size): Remove.
13515 (replace_inc_dec, replace_inc_dec_mem): Remove.
13516 (emit_inc_dec_insn_before): New fn.
13517 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13518 (canon_address): Pass mem modes to cselib_lookup.
13519 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13520 (cselib_lookup_from_insn): Likewise.
13521 (cselib_subst_to_values): Likewise.
13522 * cselib.c (find_slot_memmode): New var.
13523 (cselib_find_slot): New fn. Use it instead of
13524 htab_find_slot_with_hash everywhere.
13525 (entry_and_rtx_equal_p): Use find_slot_memmode.
13526 (autoinc_split): New fn.
13527 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13528 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13529 Deal with autoinc. Special-case recursion into MEMs.
13530 (cselib_hash_rtx): Likewise.
13531 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13532 address and MEM modes.
13533 (cselib_subst_to_values): Add memmode, pass it on.
13535 (cselib_lookup): Add memmode argument, pass it on.
13536 (cselib_lookup_from_insn): Add memmode.
13537 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13538 (struct cselib_record_autoinc_data): New.
13539 (cselib_record_autoinc_cb): New fn.
13540 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13541 mode to cselib_lookup. Reset autoinced REGs here instead of...
13542 (cselib_process_insn): ... here.
13543 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13545 (add_uses): Likewise, also to cselib_subst_to_values.
13546 (add_stores): Likewise.
13547 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13548 cselib_subst_to_values.
13549 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13550 * gcse.c (do_local_cprop): Adjusted.
13551 * postreload.c (reload_cse_simplify_set): Adjusted.
13552 (reload_cse_simplify_operands): Adjusted.
13553 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13555 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13557 PR tree-optimization/45122
13558 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13559 unsafe assumptions when there's more than one loop exit.
13561 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13564 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13565 Document using vector double with the load/store builtins, and
13566 that the load/store builtins always use Altivec instructions.
13568 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13569 to use altivec memory instructions, even on VSX.
13570 (vector_altivec_store_<mode>): Ditto.
13572 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13575 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13576 V2DF, V2DI support to load/store overloaded builtins.
13578 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13579 altivec load/store builtins for V2DF/V2DI types.
13581 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13582 set avoid indexed addresses on power6 if -maltivec.
13583 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13584 vector_altivec_load/vector_altivec_store builtins.
13585 (altivec_expand_st_builtin): Ditto.
13586 (altivec_expand_builtin): Add VSX memory builtins.
13587 (rs6000_init_builtins): Add V2DI types to internal types.
13588 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13589 load/store builtins.
13590 (rs6000_address_for_altivec): Insure memory address is appropriate
13593 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13594 vec_vsx_ld and vec_vsx_st.
13595 (vsx_store_<mode>): Ditto.
13597 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13598 variables to hold long long types for VSX vector memory builtins.
13599 (RS6000_BTI_unsigned_long_long): Ditto.
13600 (long_long_integer_type_internal_node): Ditti.
13601 (long_long_unsigned_type_internal_node): Ditti.
13603 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13604 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13605 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13607 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13609 (vec_vsx_st): Ditto.
13611 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13613 * config/pa/pa-hpux10.opt: New.
13614 * config/hpux11.opt (pthread): New Driver option.
13615 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13616 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13618 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13620 * config/ia64/vms.opt: New.
13621 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13623 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13626 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13627 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13628 generator functions.
13629 (vsx_floatuns<VSi><mode>2): Ditto.
13630 (vsx_fix_trunc<mode><VSi>2): Ditto.
13631 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13633 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13635 * config/i386/djgpp.opt (posix): New Driver option.
13637 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13639 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13640 Move to the unsupported targets list.
13642 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13644 PR rtl-optimization/47525
13645 * df-scan.c: Update copyright years.
13646 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13647 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13649 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13651 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13652 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13653 (ASM_OUTPUT_ASCII): Remove.
13654 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13656 2011-02-02 Jeff Law <law@redhat.com>
13658 PR middle-end/47543
13659 * reload.c (find_reloads_address): Handle reg+d address where both
13660 components are invalid by reloading the entire address.
13662 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13663 Richard Guenther <rguenther@suse.de>
13665 PR tree-optimization/40979
13667 * passes.c (init_optimization_passes): After LIM call copy_prop
13668 and DCE to clean up.
13669 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13671 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13673 PR tree-optimization/47576
13674 PR tree-optimization/47555
13675 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13676 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13677 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13678 * tree-scalar-evolution.c (follow_ssa_edge): Use
13679 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13681 2011-02-02 Richard Guenther <rguenther@suse.de>
13683 PR tree-optimization/47566
13684 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13686 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13690 * tree-inline.c (declare_return_variable): Remove unused caller
13695 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13696 * cfgexpand.c (account_used_vars_for_block): Use them.
13697 * tree-nrv.c (tree_nrv): Likewise.
13698 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13699 (dump_scope_block): Likewise.
13700 (remove_unused_locals): Likewise.
13704 * tree-inline.c (declare_return_variable): Add result decl to
13705 local decls only once.
13706 * gimple-low.c (record_vars_into): Mark newly-created variables
13709 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13715 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13717 (no_real_insns_p, schedule_block, set_priorities): Drop special
13718 treatment of boundary debug insns.
13719 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13720 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13721 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13722 (BOUNDARY_DEBUG_INSN_P): Likewise.
13723 (SCHEDULE_DEBUG_INSN_P): Likewise.
13724 * sched-rgn.c (init_ready_list): Drop special treatment of
13725 boundary debug insns.
13726 * final.c (rest_of_clean_state): Clear notes' BB.
13728 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13730 * config/openbsd.opt (assert=): New Driver option.
13732 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13734 * config/i386/nto.opt: New.
13735 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13737 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13739 * config/i386/netware.opt: New.
13740 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13742 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13744 * config/interix.opt (posix): New Driver option.
13746 2011-02-01 DJ Delorie <dj@redhat.com>
13748 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13750 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13753 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13755 PR tree-optimization/47561
13756 * toplev.c (process_options): Print the Graphite flags. Add
13757 flag_loop_flatten to the list of options requiring Graphite.
13759 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13761 * config/i386/cygming.opt (posix): New Driver option.
13763 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13765 * config/arm/vxworks.opt: New.
13766 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13768 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13770 * config/alpha/elf.opt: New.
13771 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13772 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13774 2011-02-01 Richard Guenther <rguenther@suse.de>
13776 PR tree-optimization/47559
13777 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13778 store-motion on references that can throw.
13780 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13782 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13783 * tree-pass.h (TDF_CSELIB): New macro.
13784 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13785 cselib_lookup): Check for it rather than for TDF_DETAILS.
13787 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13790 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13791 is HOST_BIT_BUCKET.
13793 * opts.c (finish_options): Don't add x_aux_base_name if it is
13796 2011-02-01 Richard Guenther <rguenther@suse.de>
13798 PR tree-optimization/47555
13800 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13802 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13804 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13807 * config/lm32/t-lm32: Add multilib for all CPU options.
13809 2011-02-01 Richard Guenther <rguenther@suse.de>
13811 PR tree-optimization/47541
13812 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13813 sure to have a field at offset zero.
13815 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13817 * config/arc/arc.opt (EB, EL): New Driver options.
13819 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13821 * config/alpha/osf5.opt: New.
13822 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13824 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13826 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13828 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13830 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13831 -floop-interchange.
13832 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13833 is an alias of -floop-interchange and that it requires the
13834 Graphite infrastructure.
13835 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13836 flag_loop_interchange based on the value of flag_tree_loop_linear.
13838 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13839 Richard Guenther <rguenther@suse.de>
13841 PR tree-optimization/47538
13842 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13843 type instead of r1type, except for comparisons. For right
13844 shifts and comparisons punt if there are mismatches in
13845 sizetype vs. non-sizetype types.
13847 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13849 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13852 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13854 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13856 * configure: Regenerate.
13858 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13860 * configure.ac (gcc_cv_ld_static_option): Define.
13861 (gcc_cv_ld_dynamic_option): Define.
13862 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13864 (HAVE_LD_STATIC_DYNAMIC): Update message.
13865 (LD_STATIC_OPTION): Define.
13866 (LD_DYNAMIC_OPTION): Define.
13867 * configure: Regenerate.
13868 * config.in: Regenerate.
13869 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13870 HAVE_LD_STATIC_DYNAMIC]: Use them.
13872 2011-01-31 Nick Clifton <nickc@redhat.com>
13874 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13875 registers inside interrupt handlers if the handler is not a leaf
13878 2011-01-31 Nick Clifton <nickc@redhat.com>
13880 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13881 reg_renumber returning an INVALID_REGNUM.
13883 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13886 * doc/install.texi: Document host options discarded when cross
13887 configuring target libraries.
13889 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13892 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13895 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13897 (no_real_insns_p, schedule_block, set_priorities): Drop special
13898 treatment of boundary debug insns.
13899 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13900 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13901 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13902 (BOUNDARY_DEBUG_INSN_P): Likewise.
13903 (SCHEDULE_DEBUG_INSN_P): Likewise.
13904 * sched-rgn.c (init_ready_list): Drop special treatment of
13905 boundary debug insns.
13906 * final.c (rest_of_clean-state): Clear notes' BB.
13908 2011-01-31 Alan Modra <amodra@gmail.com>
13910 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13911 toc relative expressions as we do in print_operand_address.
13913 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13915 * doc/extend.texi: Follow spelling conventions.
13916 * doc/invoke.texi: Fix a typo.
13918 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13920 * config/hpux11.opt: New.
13921 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13922 ia64*-*-hpux*): Use hpux11.opt.
13924 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13926 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13929 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13931 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13934 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13936 * doc/install.texi (Binaries): Remove outdated reference for
13937 Motorola 68HC11/68HC12 downloads.
13939 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13941 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13944 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13947 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13950 2011-01-28 Ahmad Sharif <asharif@google.com>
13952 * value-prof.c (check_counter): Corrected error message.
13954 2011-01-29 Jie Zhang <jie@codesourcery.com>
13956 * config/arm/arm.c (arm_legitimize_reload_address): New.
13957 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13958 arm_legitimize_reload_address.
13959 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13961 2011-01-28 Ian Lance Taylor <iant@google.com>
13963 * godump.c (go_define): Ignore macros whose definitions include
13964 two adjacent operands.
13966 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13969 * varasm.c (force_const_mem): Store copy of x in desc->constant
13970 instead of x itself.
13971 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13972 itself into REG_EQUAL note.
13974 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13976 * config/freebsd.opt (posix, rdynamic): New Driver options.
13978 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13980 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13981 -Bstatic/-Bdynamic.
13982 * configure: Regenerate.
13984 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13986 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13987 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13989 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13991 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13992 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13993 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13994 (s390_preferred_reload_class): Make static. Change return and
13995 'rclass' argument type to reg_class_t.
13997 2011-01-27 Jan Hubicka <jh@suse.cz>
13999 PR middle-end/46949
14000 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14001 (process_function_and_variable_attributes): Check defined weakrefs.
14003 2011-01-27 Martin Jambor <mjambor@suse.cz>
14005 PR tree-optimization/47228
14006 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14007 build_ref_for_offset.
14009 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14011 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14013 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14015 PR rtl-optimization/46856
14016 * postreload.c (reload_combine_recognize_const_pattern): Do not
14017 separate cc0 setter and user on cc0 targets.
14019 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14022 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14023 passed a VOID_TYPE expression, immediately emit an error and
14024 return error_mark_node.
14026 2011-01-26 Jeff Law <law@redhat.com>
14028 PR rtl-optimization/47464
14029 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14030 rather than may_trap_p as needed.
14032 2011-01-26 DJ Delorie <dj@redhat.com>
14034 PR rtl-optimization/46878
14035 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14036 setter/user dependency as well.
14038 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14040 PR rtl-optimization/44469
14041 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14042 after removing trivially dead basic blocks.
14044 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14046 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14047 * config/frv/frv.h (LINK_SPEC): Likewise.
14048 * config/i386/netware.h (LINK_SPEC): Likewise.
14049 * config/m68k/linux.h (ASM_SPEC): Likewise.
14050 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14051 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14052 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14053 * config/sparc/linux.h (ASM_SPEC): Likewise.
14054 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14055 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14057 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14059 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14060 * config/frv/frv.h (ASM_SPEC): Likewise.
14061 * config/m68k/linux.h (ASM_SPEC): Likewise.
14062 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14063 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14064 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14065 * config/sparc/linux.h (ASM_SPEC): Likewise.
14066 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14067 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14069 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14071 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14072 * config/frv/frv.h (LINK_SPEC): Likewise.
14073 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14075 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14077 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14078 * config/frv/frv.h (ASM_SPEC): Likewise.
14079 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14080 * config/m68k/linux.h (ASM_SPEC): Likewise.
14081 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14082 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14083 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14084 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14085 * config/sparc/linux.h (ASM_SPEC): Likewise.
14086 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14087 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14088 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14090 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14093 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14095 (vec_extract_evenodd_help): Ditto.
14096 (vec_extract_evenv4hi): Ditto.
14097 (vec_extract_oddv4hi): Ditto.
14098 (vec_interleave_lowv2si): Ditto.
14099 (vec_interleave_highv2si): Ditto.
14100 (vec_extract_evenv2si): Ditto.
14101 (vec_extract_oddv2si: Ditto.
14102 (vec_pack_trunc_v2si): Ditto.
14104 2011-01-22 Jan Hubicka <jh@suse.cz>
14107 * cgraph.h (cgraph_local_info): New field can_change_signature.
14108 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14109 signature can change.
14110 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14112 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14113 (cgraph_function_versioning): We can not change signature of functions
14114 that don't allow that.
14115 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14116 (lto_input_node): Likewise.
14117 * ipa-inline.c (compute_inline_parameters): Compute
14118 local.can_change_signature.
14119 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14120 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14121 functions that can not change signature.
14122 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14123 init_cumulative_args): Do not use local calling conventions
14124 for functions that can not change signature.
14126 2011-01-22 Jan Hubicka <jh@suse.cz>
14128 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14130 2011-01-26 Richard Guenther <rguenther@suse.de>
14132 PR tree-optimization/47190
14133 * cgraphunit.c (process_common_attributes): New function.
14134 (process_function_and_variable_attributes): Use it.
14136 2011-01-26 Richard Guenther <rguenther@suse.de>
14139 * cgraphbuild.c (record_eh_tables): Record reference to personality
14142 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14145 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14146 non-debug insns from moving up.
14148 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14151 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14152 t-dlldir{,-x} fragment for build and add it to tmake_file.
14153 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14154 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14155 * config/i386/t-dlldir: New file.
14156 (SHLIB_DLLDIR): Define.
14157 * config/i386/t-dlldir-x: New file.
14158 (SHLIB_DLLDIR): Define.
14159 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14160 (SHLIB_INSTALL): Use it.
14162 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14165 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14166 lower bound of the allowed Thumb-2 coprocessor load/store
14167 index range to -256. Add explaining comment.
14169 2011-01-25 Ian Lance Taylor <iant@google.com>
14171 * godump.c (go_define): Improve lexing of macro expansion to only
14172 accept expressions which match Go spec.
14174 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14177 * tree.c (handle_dll_attribute): Handle it.
14178 * doc/extend.texi (@item dllexport): Mention it.
14179 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14181 2011-01-25 Ian Lance Taylor <iant@google.com>
14183 PR tree-optimization/26854
14184 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14185 (decl_jump_unsafe): Move higher in file, with no other change.
14186 (bind): Set has_jump_unsafe_decl if appropriate.
14187 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14188 (check_earlier_gotos): Likewise.
14189 (c_check_switch_jump_warnings): Likewise.
14191 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14193 * doc/invoke.texi (Warning Options): Add missing hyphen.
14194 (-fprofile-dir): Minor grammatical fixes.
14195 (-fbranch-probabilities): Likewise.
14197 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14201 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14203 (no_real_insns_p, schedule_block, set_priorities): Drop special
14204 treatment of boundary debug insns.
14205 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14206 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14207 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14208 (BOUNDARY_DEBUG_INSN_P): Likewise.
14209 (SCHEDULE_DEBUG_INSN_P): Likewise.
14210 * sched-rgn.c (init_ready_list): Drop special treatment of
14211 boundary debug insns.
14212 * final.c (rest_of_clean-state): Clear notes' BB.
14214 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14216 * Makefile.in (LAMBDA_H): Removed.
14217 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14218 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14219 lambda-trans.o, and tree-loop-linear.o.
14220 (lto-symtab.o): Remove dependence on LAMBDA_H.
14221 (tree-loop-linear.o): Remove rule.
14222 (lambda-mat.o): Same.
14223 (lambda-trans.o): Same.
14224 (lambda-code.o): Same.
14225 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14226 (tree-vect-slp.o): Same.
14227 * hwint.h (gcd): Moved here.
14228 (least_common_multiple): Same.
14229 * lambda-code.c: Removed.
14230 * lambda-mat.c: Removed.
14231 * lambda-trans.c: Removed.
14232 * lambda.h: Removed.
14233 * tree-loop-linear.c: Removed.
14234 * lto-symtab.c: Do not include lambda.h.
14235 * omega.c (gcd): Removed.
14236 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14237 * tree-data-ref.c (print_lambda_vector): Moved here.
14238 (lambda_vector_copy): Same.
14239 (lambda_matrix_copy): Same.
14240 (lambda_matrix_id): Same.
14241 (lambda_vector_first_nz): Same.
14242 (lambda_matrix_row_add): Same.
14243 (lambda_matrix_row_exchange): Same.
14244 (lambda_vector_mult_const): Same.
14245 (lambda_vector_negate): Same.
14246 (lambda_matrix_row_negate): Same.
14247 (lambda_vector_equal): Same.
14248 (lambda_matrix_right_hermite): Same.
14249 * tree-data-ref.h: Do not include lambda.h.
14250 (lambda_vector): Moved here.
14251 (lambda_matrix): Same.
14252 (dependence_level): Same.
14253 (lambda_transform_legal_p): Removed declaration.
14254 (lambda_collect_parameters): Same.
14255 (lambda_compute_access_matrices): Same.
14256 (lambda_vector_gcd): Same.
14257 (lambda_vector_new): Same.
14258 (lambda_vector_clear): Same.
14259 (lambda_vector_lexico_pos): Same.
14260 (lambda_vector_zerop): Same.
14261 (lambda_matrix_new): Same.
14262 * tree-flow.h (least_common_multiple): Removed declaration.
14263 * tree-parloops.c (lambda_trans_matrix): Moved here.
14264 (LTM_MATRIX): Same.
14265 (LTM_ROWSIZE): Same.
14266 (LTM_COLSIZE): Same.
14267 (LTM_DENOMINATOR): Same.
14268 (lambda_trans_matrix_new): Same.
14269 (lambda_matrix_vector_mult): Same.
14270 (lambda_transform_legal_p): Same.
14271 * tree-pass.h (pass_linear_transform): Removed declaration.
14272 * tree-ssa-loop.c (tree_linear_transform): Removed.
14273 (gate_tree_linear_transform): Removed.
14274 (pass_linear_transform): Removed.
14275 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14276 flag_loop_interchange.
14278 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14280 PR tree-optimization/47265
14281 PR tree-optimization/47443
14282 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14283 if name still has some uses.
14285 2011-01-25 Martin Jambor <mjambor@suse.cz>
14287 PR tree-optimization/47382
14288 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14289 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14291 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14293 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14294 sjlj_except_unwind_info.
14296 2011-01-25 Richard Guenther <rguenther@suse.de>
14298 PR tree-optimization/47426
14299 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14300 visible functions results escape.
14302 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14305 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14306 (arm_get_frame_offsets): Use it.
14308 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14309 Jakub Jelinek <jakub@redhat.com>
14311 PR tree-optimization/47271
14312 * tree-if-conv.c (bb_postdominates_preds): New.
14313 (if_convertible_bb_p): Call bb_postdominates_preds.
14314 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14315 (predicate_scalar_phi): Call bb_postdominates_preds.
14317 2011-01-25 Nick Clifton <nickc@redhat.com>
14319 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14320 * config/rx/rx.c (rx_function_value): Likewise.
14321 (rx_promote_function_mode): Likewise.
14322 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14323 in order to make it legitimate.
14324 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14325 make sure that the first operand is the same as the result register.
14326 (addsi3_unspec): Delete.
14327 (subdi3): Do not accept immediate operands.
14328 (subdi3_internal): Likewise.
14330 2011-01-25 Jeff Law <law@redhat.com>
14332 PR rtl-optimization/37273
14333 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14334 handle them like argument loads from stack slots. Do not double
14335 count memory for memory constants and argument loads from stack slots.
14337 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14339 PR tree-optimization/47427
14340 PR tree-optimization/47428
14341 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14342 coalesce if the new root var would be TREE_READONLY.
14344 2011-01-25 Richard Guenther <rguenther@suse.de>
14346 PR middle-end/47414
14347 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14348 correct type for TBAA.
14350 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14352 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14353 (close_phi_written_to_memory): Call for_each_index with
14354 dr_indices_valid_in_loop.
14356 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14358 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14359 when it is initialized.
14361 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14363 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14364 call to graphite_find_data_references_in_stmt.
14365 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14366 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14367 call to graphite_find_data_references_in_stmt.
14368 (analyze_drs_in_stmts): Same.
14369 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14370 in which the scalar analysis of indices is performed.
14371 (create_data_ref): Same. Update call to dr_analyze_indices.
14372 (find_data_references_in_stmt): Update call to create_data_ref.
14373 (graphite_find_data_references_in_stmt): Same.
14374 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14376 (create_data_ref): Same.
14377 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14378 call to create_data_ref.
14380 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14382 * graphite-sese-to-poly.c (build_poly_scop): Move
14383 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14385 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14387 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14388 VAR_DECL, PARM_DECL, and RESULT_DECL.
14390 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14392 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14393 in a reduction PBB.
14394 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14395 that have already been marked as PBB_IS_REDUCTION.
14397 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14399 * graphite-scop-detection.c (same_close_phi_node): New.
14400 (remove_duplicate_close_phi): New.
14401 (make_close_phi_nodes_unique): New.
14402 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14404 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14406 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14407 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14408 of both data references to be the same.
14410 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14412 * graphite-dependences.c (build_lexicographical_constraint): Remove
14413 the gdim parameter.
14414 (build_lexicographical_constraint): Adjust call to
14415 ppl_powerset_is_empty.
14416 (dependence_polyhedron): Same.
14417 (graphite_legal_transform_dr): Same.
14418 (graphite_carried_dependence_level_k): Same.
14419 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14421 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14423 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14425 * graphite-sese-to-poly.c
14426 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14427 (close_phi_written_to_memory): New.
14428 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14431 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14433 * doc/install.texi: Update the expected version number of PPL to 0.11.
14434 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14435 #if PPL_VERSION_MINOR < 11.
14437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14439 * graphite-dependences.c: Include graphite-cloog-util.h.
14440 (new_poly_ddr): Inlined into dependence_polyhedron.
14441 (free_poly_ddr): Moved close by new_poly_ddr.
14442 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14443 Early return NULL when ppl_powerset_is_empty returns true.
14444 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14445 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14446 (graphite_legal_transform_dr): Call new_poly_ddr.
14447 (graphite_carried_dependence_level_k): Same.
14448 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14449 (dot_transformed_deps_stmt_1): Removed.
14450 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14451 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14452 (dot_deps_1): Call dot_deps_2.
14453 * Makefile.in (graphite-dependences.o): Add missing dependence on
14454 graphite-cloog-util.h.
14456 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14458 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14459 (build_lexicographical_constraint): Same.
14460 (dependence_polyhedron_1): Same.
14461 (graphite_legal_transform_dr): Same.
14462 (graphite_carried_dependence_level_k): Same.
14463 * graphite-ppl.c (ppl_powerset_is_empty): New.
14464 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14465 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14467 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14469 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14470 the "a followed by b" relation and document it.
14472 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14474 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14475 iteration when the bag of constraints is empty.
14477 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14479 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14481 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14483 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14484 nest and two loop depths as parameters.
14485 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14486 lst_perfect_nestify.
14488 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14490 * graphite-dependences.c (print_pddr): Call
14491 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14493 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14495 * graphite-ppl.c (debug_gmp_value): New.
14496 * graphite-ppl.h (debug_gmp_value): Declared.
14498 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14500 * doc/install.texi: Document availability of cloog-0.16.
14502 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14504 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14505 invalid postdominance info.
14507 2011-01-24 Jan Hubicka <jh@suse.cz>
14510 * doc/extend.texi (weak pragma): Drop claim that it must
14511 appear before definition.
14512 * varasm.c (merge_weak, declare_weak): Only sanity check
14513 that DECL is not output at a time it is declared weak.
14515 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14517 * machmode.def: Fixed comments.
14519 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14521 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14523 2011-01-24 Paul Koning <ni1d@arrl.net>
14525 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14528 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14531 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14532 (block_info): Add scanned and prev.
14533 (move_or_delete_vzeroupper_2): Return if the basic block
14534 has been scanned and the upper 128bit state is unchanged
14535 from the last scan.
14536 (move_or_delete_vzeroupper_1): Return true if the exit
14538 (move_or_delete_vzeroupper): Visit basic blocks using the
14539 work-list based algorithm based on vt_find_locations in
14542 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14544 2011-01-24 Nick Clifton <nickc@redhat.com>
14546 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14547 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14548 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14549 then define __v850e1__.
14550 * doc/invoke.texi: Document -mv850es.
14552 2011-01-24 Richard Henderson <rth@redhat.com>
14554 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14555 compound unordered comparisons.
14556 * config/rx/rx.c (rx_split_fp_compare): Remove.
14557 * config/rx/rx-protos.h: Update.
14558 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14559 (cbranchsf4): Don't call rx_split_fp_compare.
14560 (*cbranchsf4): Use rx_split_cbranch.
14561 (*cmpsf): Don't accept "i" constraint.
14562 (*conditional_branch): Only valid after reload.
14563 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14565 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14568 * config/rs6000/altivec.md (vector constant splitters): Add
14569 support for creating vector single precision constants if -mvsx is
14570 used and we would create the constant using Altivec primitives.
14572 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14573 Richard Sandiford <rdsandiford@googlemail.com>
14575 PR rtl-optimization/47166
14576 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14577 mechanism for PRE_MODIFY and POST_MODIFY.
14578 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14581 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14583 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14585 2011-01-22 Jan Hubicka <jh@suse.cz>
14588 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14590 2011-01-22 Jan Hubicka <jh@suse.cz>
14592 PR tree-optimization/43884
14594 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14595 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14597 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14599 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14600 * config/s390/s390.c (s390_register_move_cost,
14601 s390_memory_move_cost): New.
14602 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14604 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14606 PR middle-end/47401
14607 * except.c (sjlj_assign_call_site_values): Move setting the
14608 crtl->uses_eh_lsda flag to ...
14609 (sjlj_mark_call_sites): ... here.
14610 (sjlj_emit_function_enter): Support NULL dispatch label.
14611 (sjlj_build_landing_pads): In a function with no landing pads
14612 that still has must-not-throw regions, generate code to register
14613 a personality function with empty LSDA.
14615 2011-01-21 Richard Henderson <rth@redhat.com>
14617 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14619 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14621 * compare-elim.c: New file.
14622 * Makefile.in (OBJS-common): Add it.
14623 (compare-elim.o): New.
14624 * common.opt (fcompare-elim): New.
14625 * opts.c (default_options_table): Add OPT_fcompare_elim.
14626 * tree-pass.h (pass_compare_elim_after_reload): New.
14627 * passes.c (init_optimization_passes): Add it.
14628 * recog.h: Protect against re-inclusion.
14629 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14630 * doc/invoke.texi (-fcompare-elim): Document it.
14631 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14632 * doc/tm.texi: Rebuild.
14634 2011-01-22 Nick Clifton <nickc@redhat.com>
14636 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14637 rx_split_fp_compare.
14639 2011-01-22 Nick Clifton <nickc@redhat.com>
14641 * config/rx/rx.md (UNSPEC_CONST): New.
14642 (deallocate_and_return): Wrap the amount popped off the stack in
14643 an UNSPEC_CONST in order to stop it being rejected by
14644 -mmax-constant-size.
14645 (pop_and_return): Add a "(return)" rtx.
14646 (call): Drop the immediate operand.
14647 (call_internal): Likewise.
14648 (call_value): Likewise.
14649 (call_value_internal): Likewise.
14650 (sibcall_internal): Likewise.
14651 (sibcall_value_internal): Likewise.
14652 (sibcall): Likewise. Generate an explicit call using
14654 (sibcall_value): Likewise.
14655 (mov<>): FAIL if a constant operand is not legitimate.
14656 (addsi3_unpsec): New pattern.
14658 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14659 (ok_for_max_constant): New function.
14660 (gen_safe_add): New function.
14661 (rx_expand_prologue): Use gen_safe_add.
14662 (rx_expand_epilogue): Likewise.
14663 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14666 2011-01-21 Jeff Law <law@redhat.com>
14668 PR tree-optimization/47053
14669 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14670 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14671 statements are deleted.
14672 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14673 is nonempty, then purge dead edges and cleanup the CFG.
14675 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14678 Temporarily revert:
14679 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14681 * tree-dfa.c (create_var_ann): Mark variable as used.
14683 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14685 PR middle-end/45566
14686 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14687 notes from other section in hot/cold partitioning even if
14688 last_action is -3. Increment call_site_base.
14690 PR rtl-optimization/47366
14691 * fwprop.c (forward_propagate_into): Return bool. If
14692 any changes are made, -fnon-call-exceptions is used and
14693 REG_EH_REGION note is present, call purge_dead_edges
14694 and return true if it purged anything.
14695 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14696 any EH edges were purged.
14698 2011-01-21 Jeff Law <law@redhat.com>
14700 PR rtl-optimization/41619
14701 * caller-save.c (setup_save_areas): Break out code to determine
14702 which hard regs are live across calls by examining the reload chains
14703 so that it is always used.
14704 Eliminate code which checked REG_N_CALLS_CROSSED.
14706 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14708 PR tree-optimization/47355
14709 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14710 NOP has non-debug uses beyond PHIs in new_bb.
14712 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14715 * cfgexpand.c (account_used_vars_for_block): Only account vars
14716 that are annotated as used.
14717 (estimated_stack_frame_size): Don't set TREE_USED.
14718 * tree-dfa.c (create_var_ann): Mark variable as used.
14720 2011-01-21 Richard Guenther <rguenther@suse.de>
14722 PR middle-end/47395
14723 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14725 2011-01-21 Richard Guenther <rguenther@suse.de>
14727 PR tree-optimization/47365
14728 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14729 (vn_reference_lookup_pieces): Adjust.
14730 (vn_reference_lookup): Likewise.
14731 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14732 (vn_reference_lookup_3): Only look through kills if in
14733 VN_WALKREWRITE mode.
14734 (vn_reference_lookup_pieces): Adjust.
14735 (vn_reference_lookup): Likewise.
14736 (visit_reference_op_load): Likewise.
14737 (visit_reference_op_store): Likewise.
14738 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14739 (compute_avail): Likewise.
14740 (eliminate): Likewise.
14742 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14744 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14745 DECL_IGNORED_P non-reg vars if they are used.
14747 PR tree-optimization/47391
14748 * varpool.c (const_value_known_p): Return false if
14751 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14754 * config/i386/i386.c (ix86_local_alignment): Handle
14755 case for va_list_type_node is nil.
14756 (ix86_canonical_va_list_type): Likewise.
14758 2011-01-21 Alan Modra <amodra@gmail.com>
14760 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14761 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14763 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14765 * config/arm/arm.md (define_attr type): Rename f_load
14766 and f_store to f_fpa_load and f_fpa_store. Update.
14767 (write_conflict): Deal with rename fallout.
14768 (*push_fp_multi): Likewise.
14769 * config/arm/fpa.md (f_load): Use f_fpa_load.
14770 (f_store): Use f_fpa_store.
14771 (*movsf_fpa): Likewise.
14772 (*movdf_fpa): Likewise.
14773 (*movxf_fpa): Likewise.
14774 (*thumb2_movsf_fpa): Likewise.
14775 (*thumb2_movdf_fpa): Likewise.
14776 (*thumb2_movxf_fpa): Likewise.
14777 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14778 f_loadd and f_stored.
14779 (*thumb2_movdi_vfp): Likewise.
14780 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14781 (*thumb2_movsi_vfp): Likewise.
14782 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14783 Use f_loads instead of f_load.
14784 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14786 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14788 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14789 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14790 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14791 (xtensa_mode_dependent_address_p): New function.
14792 (constantpool_address_p): Make static. Change return type to bool.
14793 Change argument type to const_rtx. Use CONST_INT_P predicate.
14795 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14798 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14800 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14803 * cfgexpand.c (expand_debug_expr): Instead of generating
14804 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14807 2011-01-20 Richard Guenther <rguenther@suse.de>
14809 PR middle-end/47370
14810 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14811 the pointer operand of MEM_REFs.
14813 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14815 PR tree-optimization/46130
14816 * ipa-split.c (consider_split): If return_bb contains non-virtual
14817 PHIs other than for retval or if split_function would not adjust it,
14820 2011-01-20 Richard Guenther <rguenther@suse.de>
14822 PR tree-optimization/47167
14823 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14824 Revert previous change, only avoid enumeral type changes.
14826 2011-01-19 Mike Stump <mikestump@comcast.net>
14828 * doc/tm.texi.in (BRANCH_COST): Englishify.
14829 * doc/tm.texi (BRANCH_COST): Likewise.
14831 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14834 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14835 (gen_scheduled_generic_parms_dies): New functions.
14836 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14837 generation for the end of CU compilation.
14838 (dwarf2out_finish): Generate template parameters DIEs here.
14840 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14843 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14844 debug bind stmt on merge edges.
14846 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14850 * function.c (instantiate_expr): Instantiate incoming rtl of
14851 implicit arguments, and recurse on VALUE_EXPRs.
14852 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14853 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14855 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14857 * c-parser.c (c_parser_for_statement): Initialize
14858 collection_expression.
14860 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14862 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14864 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14866 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14867 (LINK_SHLIB_SPEC): Don't use %(link_path).
14868 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14870 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14872 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14873 (NO_SHARED_LIB_SUPPORT): Remove.
14874 (LINK_SHLIB_SPEC): Remove one conditional definition.
14876 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14878 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14880 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14881 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14882 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14883 %{call_shared} and conditionals on these options not being passed.
14884 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14887 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14889 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14892 * ipa-split.c: Spelling fixes.
14894 2011-01-19 Richard Henderson <rth@redhat.com>
14896 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14897 (*mulsi3): Likewise.
14899 * longlong.h [__mn10300__] (count_leading_zeros): New.
14900 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14901 [__mn10300__] (add_ssaaaa, subddmmss): New.
14902 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14903 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14905 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14907 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14909 2011-01-19 Richard Henderson <rth@redhat.com>
14911 * config/mn10300/mn10300.md (addsi3_flags): New.
14912 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14913 (subsi3_flags, subc_internal, subdi3): New.
14914 (subdi3_internal, *subdi3_degenerate): New.
14915 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14917 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14918 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14919 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14920 * config/mn10300/mn10300-protos.h: Update.
14921 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14922 (return_ret): Likewise. Rename from return_internal_regs.
14923 (return_internal): Remove.
14925 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14926 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14927 (mn10300_legitimate_constant_p): Likewise.
14928 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14929 (mn10300_frame_size): New.
14930 (mn10300_expand_prologue): Use it.
14931 (mn10300_expand_epilogue): Likewise.
14932 (mn10300_initial_offset): Likewise.
14933 * config/mn10300/mn10300-protos.h: Update.
14934 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14935 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14936 (prologue, epilogue, return_internal): Tidy output code.
14937 (mn10300_store_multiple_operation, return): Likewise.
14938 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14939 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14940 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14941 (load_pic, am33_load_pic): New.
14942 (mn10300_load_pic0, mn10300_load_pic1): New.
14944 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14945 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14946 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14947 (cc_flags_for_mode, cc_flags_for_code): New.
14948 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14949 overflow flag is not valid. Validate that the flags we need
14950 for the comparison are valid.
14951 (mn10300_output_cmp): Remove.
14952 (mn10300_output_add): New.
14953 (mn10300_select_cc_mode): Use cc_flags_for_code.
14954 (mn10300_split_cbranch): New.
14955 (mn10300_match_ccmode): New.
14956 (mn10300_split_and_operand_count): New.
14957 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14959 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14960 (addsi3): ... here. Use mn10300_output_add.
14961 (*addsi3_flags): New.
14962 (*am33_subsi3, *mn10300_subsi3): Merge...
14963 (subsi3): ... here. Use attribute isa.
14964 (*subsi3_flags): New.
14965 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14967 (*am33_andsi3, *mn10300_andsi3): Merge...
14968 (andsi3): ... here.
14969 (*andsi3_flags): New.
14970 (andsi3 splitters): New.
14971 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14972 (iorsi3): ... here.
14973 (*iorsi3_flags): New.
14974 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14975 (xorsi3): ... here.
14976 (*xorsi3_flags): New.
14977 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14978 (one_cmplsi2): ... here.
14979 (*one_cmplsi2_flags): New.
14980 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14981 instead of "dax" in constraints. Use mn10300_split_cbranch.
14982 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14983 use matching constraints to eliminate a self-comparison.
14984 (*integer_conditional_branch): Rename from integer_conditional_branch.
14985 Use int_mode_flags to match CC_REG.
14986 (*cbranchsi4_btst, *btstsi): New.
14987 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14988 mn10300_split_cbranch.
14989 (*am33_cmpsf): Rename from am33_cmpsf.
14990 (*float_conditional_branch): Rename from float_conditional_branch.
14991 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14992 (zero_extendqisi2): ... here.
14993 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14994 (zero_extendhisi2): ... here.
14995 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14996 (extendqisi2): ... here.
14997 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14998 (extendhisi2): ... here.
14999 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15000 (ashlsi3): ... here.
15001 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15002 (lshrsi3): ... here.
15003 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15004 (ashrsi3): ... here.
15005 (consecutive add peephole): Remove.
15006 * config/mn10300/predicates.md (label_ref_operand): New.
15007 (int_mode_flags): New.
15008 (CCZN_comparison_operator): New.
15010 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15011 (throughput_42_latency_43): New reservation.
15012 (mulsidi3, umulsidi3): New expanders.
15013 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15014 the MDR register to allocation; separately allocate the low and
15015 high parts of the DImode result.
15016 (umulsidi3_internal): Similarly.
15017 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15018 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15019 (udivsi3, umodsi3): Remove.
15020 (udivmodsi4, divmodsi4): New expanders.
15021 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15022 (*divmodsi4): Simiarly.
15023 (ext_internal): New.
15025 * config/mn10300/constraints.md ("z"): New constraint.
15026 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15027 (FIXED_REGISTERS): Don't fix MDR.
15028 (CALL_USED_REGSITERS): Reformat nicely.
15029 (REG_ALLOC_ORDER): Add MDR.
15030 (enum regclass): Add MDR_REGS.
15031 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15032 (IRA_COVER_CLASSES): Add MDR_REGS.
15033 (REGNO_REG_CLASS): Handle MDR_REG.
15034 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15035 (mn10300_register_move_cost): Likewise.
15036 * config/mn10300/mn10300.md (MDR_REG): New.
15037 (*movsi_internal): Handle moves to/from MDR_REGS.
15039 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15041 (mn10300_secondary_reload): Tidy combination reload classes.
15042 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15043 addresses for AM33. Allow symbolic offsets for reg+imm.
15044 (mn10300_regno_in_class_p): New.
15045 (mn10300_legitimize_reload_address): New.
15046 * config/mn10300/mn10300.h (enum reg_class): Remove
15047 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15048 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15049 SP_OR_GENERAL_REGS.
15050 (REG_CLASS_NAMES): Update to match.
15051 (REG_CLASS_CONTENTS): Likewise.
15052 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15053 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15054 (REGNO_IN_RANGE_P): Remove.
15055 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15056 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15057 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15058 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15059 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15060 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15061 (REGNO_GENERAL_P): New.
15062 (HAVE_POST_MODIFY_DISP): New.
15063 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15064 (LEGITIMIZE_RELOAD_ADDRESS): New.
15065 * config/mn10300/mn10300-protos.h: Update.
15067 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15068 DATA_REGS for AM33 stack-pointer destination.
15069 (mn10300_preferred_output_reload_class): Likewise.
15070 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15071 into a form appropriate for ...
15072 (TARGET_SECONDARY_RELOAD): New.
15073 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15074 * config/mn10300/mn10300-protos.h: Update.
15075 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15076 reload_insi; use the "A" constraint for the scratch; handle AM33
15077 moves of sp to non-address registers.
15079 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15080 (*movqi_internal): ... here.
15081 (*am33_movhi, *mn10300_movhi): Merge into...
15082 (*movhi_internal): ... here.
15083 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15084 as the source/destination of moves from/to SP.
15085 (movsf): Only allow for AM33-2.
15086 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15087 any integer constant constraint. Only allow for AM33-2. Tidy
15088 all of the alternative outputs.
15089 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15090 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15092 (udivsi3, umodsi3): New patterns for MN103 only.
15094 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15096 * doc/tm.texi.in: Spell out that a lack of register class unions
15098 * doc/tm.texi: Regenerate.
15100 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15102 PR rtl-optimization/47337
15103 * dce.c (check_argument_store): New function.
15104 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15106 PR tree-optimization/47290
15107 * tree-eh.c (infinite_empty_loop_p): New function.
15108 (cleanup_empty_eh): Use it.
15110 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15113 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15114 (a64_expand_widen_sum): Ditto.
15115 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15116 (vec_extract_evenodd_help): Ditto.
15117 (vec_extract_evenv4hi): Ditto.
15118 (vec_extract_oddv4hi): Ditto.
15119 (vec_extract_evenv2si): Ditto.
15120 (vec_extract_oddv2si): Ditto.
15121 (vec_extract_evenv2sf): Ditto.
15122 (vec_extract_oddv2sf): Ditto.
15123 (vec_pack_trunc_v4hi: Ditto.
15124 (vec_pack_trunc_v2si): Ditto.
15125 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15126 (vec_interleave_highv8qi): Ditto.
15128 (vec_extract_oddv8qi): Ditto.
15129 (vec_interleave_lowv4hi): Ditto.
15130 (vec_interleave_highv4hi): Ditto.
15131 (vec_interleave_lowv2si): Ditto.
15132 (vec_interleave_highv2si): Ditto.
15134 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15136 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15137 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15138 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15139 (pa_c_mode_for_suffix): New.
15140 (TARGET_EXPAND_BUILTIN): Define.
15141 (TARGET_C_MODE_FOR_SUFFIX): Define.
15142 (pa_builtins): Define.
15143 (pa_init_builtins): Register __float128 type and init new support
15145 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15146 * config/pa/quadlib.c (_U_Qfcopysign): New.
15148 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15150 PR middle-end/46894
15151 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15152 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15155 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15157 PR tree-optimization/47179
15158 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15159 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15161 2011-01-18 Richard Guenther <rguenther@suse.de>
15163 PR rtl-optimization/47216
15164 * emit-rtl.c: Include tree-flow.h.
15165 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15166 of replicating it with different semantics.
15167 * Makefile.in (emit-rtl.o): Adjust.
15169 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15171 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15172 (cortex_a9_dp): Handle neon types correctly.
15174 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15176 PR rtl-optimization/47299
15177 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15178 subtarget. Use normal multiplication if both operands are constants.
15179 * expmed.c (expand_widening_mult): Don't try to optimize constant
15180 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15183 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15185 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15186 spacing after 'e.g.', typos, comma, hyphenation.
15188 2011-01-17 Richard Henderson <rth@redhat.com>
15190 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15191 (rx_restricted_mem_operand): New.
15192 (rx_shift_operand): Use register_operand.
15193 (rx_source_operand, rx_compare_operand): Likewise.
15194 * config/rx/rx.md (addsi3_flags): New expander.
15195 (adddi3): Rewrite as expander.
15196 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15197 (subsi3_flags): New expander.
15198 (subdi3): Rewrite as expander.
15199 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15201 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15202 (rx_init_builtins): Remove sat builtin.
15203 (rx_expand_builtin): Likewise.
15204 * config/rx/rx.md (ssaddsi3): New.
15205 (*sat): Rename from sat. Represent the CC_REG input.
15207 * config/rx/predicates.md (rshift_operator): New.
15208 * config/rx/rx.c (rx_expand_insv): Remove.
15209 * config/rx/rx-protos.h: Update.
15210 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15211 operand to the canonical position.
15212 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15213 (*bitclr, *bitclr_in_memory): Similarly.
15214 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15215 (insv): Retain the zero_extract in the expansion.
15217 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15218 (bswaphi2, bitinvert, revw): Likewise.
15220 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15221 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15222 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15223 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15224 (bitset, bitset_in_memory): Likewise.
15225 (bitinvert, bitinvert_in_memory): Likewise.
15226 (bitclr, bitclr_in_memory): Likewise.
15227 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15228 (rx_strend, rx_cmpstrn): Likewise.
15229 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15230 (bitop peep2 patterns): Remove.
15232 * config/rx/rx.c (rx_match_ccmode): New.
15233 * config/rx/rx-protos.h: Update.
15234 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15235 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15236 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15237 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15238 (fix_truncsfsi2, floatsisf2): Likewise.
15239 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15240 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15241 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15242 (*subsi3_flags, *xorsi3_flags): New.
15244 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15246 * config/rx/rx.c (rx_print_operand): Remove workaround for
15247 unsplit comparison operations.
15249 * config/rx/rx.md (movsicc): Split after reload.
15250 (*movsicc): Merge *movsieq and *movsine via match_operator.
15251 (*stcc): New pattern.
15253 * config/rx/rx.c (rx_float_compare_mode): Remove.
15254 * config/rx/rx.h (rx_float_compare_mode): Remove.
15255 * config/rx/rx.md (cstoresi4): Split after reload.
15256 (*sccc): New pattern.
15258 * config/rx/predicates.md (label_ref_operand): New.
15259 (rx_z_comparison_operator): New.
15260 (rx_zs_comparison_operator): New.
15261 (rx_fp_comparison_operator): New.
15262 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15263 Validate that the flags are set properly for the comparison.
15264 (rx_gen_cond_branch_template): Remove.
15265 (rx_cc_modes_compatible): Remove.
15266 (mode_from_flags): New.
15267 (flags_from_code): Rename from flags_needed_for_conditional.
15268 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15269 (rx_select_cc_mode): Likewise.
15270 (rx_split_fp_compare): New.
15271 (rx_split_cbranch): New.
15272 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15273 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15274 (*cbranchsf4): Similarly.
15275 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15276 match_operator and rx_split_cbranch.
15277 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15278 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15279 (*cmpsi): Rename from cmpsi.
15280 (*tstsi): Rename from tstsi.
15281 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15282 (*conditional_branch): Rename from conditional_branch.
15283 (*reveresed_conditional_branch): Remove.
15284 (b<code>): Remove expander.
15285 * config/rx/rx-protos.h: Update.
15287 * config/rx/rx.c (rx_compare_redundant): Remove.
15288 * config/rx/rx.md (cmpsi): Don't use it.
15289 * config/rx/rx-protos.h: Update.
15291 * config/rx/rx-modes.def (CC_F): New mode.
15292 * config/rx/rx.c (rx_select_cc_mode): New.
15293 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15294 * config/rx/rx-protos.h: Update.
15296 2011-01-17 Richard Henderson <rth@redhat.com>
15298 * except.c (dump_eh_tree): Fix stray ; after for statement.
15300 2011-01-17 Richard Guenther <rguenther@suse.de>
15302 PR tree-optimization/47313
15303 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15304 handling before copying the body. Properly deal with
15305 by-reference result in SSA form.
15307 2011-01-17 Ian Lance Taylor <iant@google.com>
15310 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15311 (struct_value_alias_set): Don't define.
15312 (sparc_option_override): Don't set sparc_sr_alias_set and
15313 struct_value_alias_set.
15314 (save_or_restore_regs): Use gen_frame_mem rather than calling
15316 (sparc_struct_value_rtx): Likewise.
15318 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15321 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15322 (_mm_maskstore_pd): Likewise.
15323 (_mm_maskload_ps): Likewise.
15324 (_mm_maskstore_ps): Likewise.
15325 (_mm256_maskload_pd): Change mask to __m256i.
15326 (_mm256_maskstore_pd): Likewise.
15327 (_mm256_maskload_ps): Likewise.
15328 (_mm256_maskstore_ps): Likewise.
15330 * config/i386/i386-builtin-types.def: Updated.
15331 (ix86_expand_special_args_builtin): Likewise.
15333 * config/i386/i386.c (bdesc_special_args): Update
15334 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15335 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15336 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15337 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15339 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15340 Use <avxpermvecmode> on mask register.
15341 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15343 2011-01-17 Olivier Hainque <hainque@adacore.com>
15344 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15345 Eric Botcazou <ebotcazou@adacore.com>
15348 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15349 if <= USHRT_MAX in 32-bit mode.
15351 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15353 * doc/install.texi (Configuration, Specific): Wrap long
15354 lines in examples. Allow line wrapping in long options
15355 and URLs where beneficial for PDF output.
15357 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15359 * config/mips/mips.c (mips_classify_symbol): Don't return
15360 SYMBOL_PC_RELATIVE for nonlocal labels.
15362 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15364 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15366 2011-01-15 Jan Hubicka <jh@suse.cz>
15368 PR tree-optimization/47276
15369 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15370 declarations as needed.
15372 2011-01-15 Martin Jambor <mjambor@suse.cz>
15374 * common.opt (fdevirtualize): New flag.
15375 * doc/invoke.texi (Option Summary): Document it.
15376 * opts.c (default_options_table): Add devirtualize flag.
15377 * ipa-prop.c (detect_type_change): Return immediately if
15378 devirtualize flag is not set.
15379 (detect_type_change_ssa): Likewise.
15380 (compute_known_type_jump_func): Likewise.
15381 (ipa_analyze_virtual_call_uses): Likewise.
15383 2011-01-14 Martin Jambor <mjambor@suse.cz>
15385 PR tree-optimization/45934
15386 PR tree-optimization/46302
15387 * ipa-prop.c (type_change_info): New type.
15388 (stmt_may_be_vtbl_ptr_store): New function.
15389 (check_stmt_for_type_change): Likewise.
15390 (detect_type_change): Likewise.
15391 (detect_type_change_ssa): Likewise.
15392 (compute_complex_assign_jump_func): Check for dynamic type change.
15393 (compute_complex_ancestor_jump_func): Likewise.
15394 (compute_known_type_jump_func): Likewise.
15395 (compute_scalar_jump_functions): Likewise.
15396 (ipa_analyze_virtual_call_uses): Likewise.
15397 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15399 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15401 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15402 * config/i386/i386.opt (msse5): New Alias.
15404 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15406 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15407 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15408 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15409 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15411 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15413 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15415 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15416 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15417 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15418 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15420 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15422 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15424 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15426 2011-01-14 Mike Stump <mikestump@comcast.net>
15428 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15429 * config/fr30/fr30.md: Likweise
15430 (movsi_push): Likewise.
15431 (movsi_pop): Likewise.
15432 (enter_func): Likewise.
15433 * config/moxie/moxie.md (movsi_push): Likewise.
15434 (movsi_pop): Likewise.
15436 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15438 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15439 %{no_archive} %{exact_version}.
15440 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15441 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15442 %{no_archive} %{exact_version}.
15443 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15444 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15445 * config/mips/vxworks.h: Likewise.
15447 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15449 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15451 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15453 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15454 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15456 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15458 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15461 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15463 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15465 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15466 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15468 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15469 Don't handle -shlib.
15471 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15473 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15474 (CC1_SPEC): Don't handle -profile.
15476 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15478 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15479 * config/mips/mips.h (CC1_SPEC): Likewise.
15481 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15483 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15484 * config/mips/mips.h (CC1_SPEC): Likewise.
15486 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15488 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15489 * config/m32r/linux.h (LINK_SPEC): Likewise.
15490 * config/mips/linux.h (LINK_SPEC): Likewise.
15491 * config/mips/linux64.h (LINK_SPEC): Likewise.
15492 * config/sparc/linux.h (LINK_SPEC): Likewise.
15493 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15494 LINK_SPEC): Likewise.
15495 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15497 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15499 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15501 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15503 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15505 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15506 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15508 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15510 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15512 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15514 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15515 supports -Bstatic/-Bdynamic.
15516 * configure: Regenerate.
15518 2011-01-14 Jan Hubicka <jh@suse.cz>
15519 Jack Howarth <howarth@bromo.med.uc.edu>
15522 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15523 when checking debug_info_level. Test write_symbols instead of
15524 debug_hooks->var_location when setting flag_var_tracking_uninit.
15526 2011-01-14 Richard Guenther <rguenther@suse.de>
15528 PR tree-optimization/47179
15529 * target.def (ref_may_alias_errno): New target hook.
15530 * targhooks.h (default_ref_may_alias_errno): Declare.
15531 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15532 (default_ref_may_alias_errno): New function.
15533 * target.h (struct ao_ref_s): Declare.
15534 * tree-ssa-alias.c: Include target.h.
15535 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15536 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15537 (targhooks.o): Likewise.
15538 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15539 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15541 2011-01-14 Richard Guenther <rguenther@suse.de>
15543 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15545 2011-01-14 Richard Guenther <rguenther@suse.de>
15547 PR tree-optimization/47280
15548 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15549 return CFG changes.
15550 (tree_ssa_forward_propagate_single_use_vars): Deal with
15551 CFG changes from associate_plusminus.
15553 2011-01-14 Richard Guenther <rguenther@suse.de>
15555 PR middle-end/47281
15557 2011-01-11 Richard Guenther <rguenther@suse.de>
15559 PR tree-optimization/46076
15560 * tree-ssa.c (useless_type_conversion_p): Conversions from
15561 unprototyped to empty argument list function types are useless.
15563 2011-01-14 Richard Guenther <rguenther@suse.de>
15565 PR tree-optimization/47286
15566 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15568 2011-01-14 Martin Jambor <mjambor@suse.cz>
15570 PR middle-end/46823
15571 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15573 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15575 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15576 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15577 * config/xtensa/xtensa.c (xtensa_libcall_value,
15578 xtensa_function_value_regno_p): New functions.
15579 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15581 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15584 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15586 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15587 New function prototype.
15588 * config/i386/winnt.c (i386_pe_assemble_visibility):
15589 Warn only if attribute was specified by user.
15591 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15594 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15596 (floatunsdidf2_fcfidu): Ditto.
15598 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15600 * config/s390/s390.c (print_operand_address): Replace 'error' with
15601 'output_operand_lossage'.
15602 (print_operand): Likewise.
15604 2011-01-13 Jeff Law <law@redhat.com>
15606 PR rtl-optimization/39077
15607 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15608 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15609 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15610 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15611 * gcse.c (prune_insertions_deletions): New function.
15612 (compute_pre_data): Use it.
15614 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15617 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15619 (prune_unused_types_mark): Use it.
15621 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15623 PR rtl-optimization/45352
15624 * sel-sched.c: Update copyright years.
15625 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15626 in the advancing loop when we have issued issue_rate insns.
15628 2011-01-12 Richard Henderson <rth@redhat.com>
15630 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15631 (TARGET_MD_ASM_CLOBBERS): New.
15633 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15634 (TARGET_DELEGITIMIZE_ADDRESS): New.
15636 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15637 (clzsi2, *bsch): New patterns.
15639 * config/mn10300/mn10300.md (INT): New mode iterator.
15640 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15642 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15643 flag_split_wide_types.
15645 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15646 (mn10300_trampoline_init): Rewrite without a template, an immediate
15647 load and a direct branch.
15648 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15650 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15652 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15653 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15654 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15655 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15657 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15660 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15663 2011-01-12 Jan Hubicka <jh@suse.cz>
15666 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15667 (PLUGIN_COND_CLOSE): New macro.
15668 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15670 2011-01-12 Richard Guenther <rguenther@suse.de>
15673 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15674 register variables in a MEM_REF.
15676 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15678 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15679 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15680 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15681 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15682 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15683 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15684 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15685 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15686 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15687 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15688 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15689 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15690 * config/gnu-user.h: New. Copied from linux.h.
15691 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15692 GNU_USER_TARGET_STARTFILE_SPEC.
15693 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15694 GNU_USER_TARGET_ENDFILE_SPEC.
15695 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15696 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15697 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15698 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15699 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15700 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15701 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15702 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15703 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15704 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15705 * config/arm/linux-eabi.h (CC1_SPEC): Use
15706 GNU_USER_TARGET_CC1_SPEC.
15707 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15708 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15709 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15710 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15711 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15712 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15713 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15714 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15716 2011-01-12 Richard Guenther <rguenther@suse.de>
15719 * doc/invoke.texi (ffast-math): Document it is turned on
15722 2011-01-12 Jan Hubicka <jh@suse.cz>
15724 PR tree-optimization/47233
15725 * opts.c (common_handle_option): Disable ipa-reference with profile
15728 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15730 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15733 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15735 * c-parser.c (c_lex_one_token): Updated and reindented some
15736 comments. No changes in code.
15738 2011-01-11 Ian Lance Taylor <iant@google.com>
15740 * godump.c (go_output_var): Don't output the variable if there is
15741 already a type with the same name.
15743 2011-01-11 Ian Lance Taylor <iant@google.com>
15745 * godump.c (go_format_type): Don't generate float80.
15747 2011-01-11 Richard Henderson <rth@redhat.com>
15749 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15750 declaration. Rewrite for both speed and size.
15751 (mn10300_address_cost_1): Remove.
15752 (mn10300_register_move_cost): New.
15753 (mn10300_memory_move_cost): New.
15754 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15755 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15756 extensions, shifts, BSWAP, CLZ.
15757 (mn10300_wide_const_load_uses_clr): Remove.
15758 (TARGET_REGISTER_MOVE_COST): New.
15759 (TARGET_MEMORY_MOVE_COST): New.
15760 * config/mn10300/mn10300-protos.h: Update.
15761 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15763 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15764 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15765 * config/mn10300/mn10300-protos.h: Update.
15766 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15767 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15768 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15769 (*test_int_bitfield, *test_byte_bitfield): Remove.
15770 (*bit_test, *subreg_bit_test): Remove.
15771 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15773 * config/mn10300/constraints.md ("c"): Rename from "A".
15774 ("A", "D"): New constraint letters.
15775 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15776 (fmssf4, fnmasf4, fnmssf4): Likewise.
15778 * config/mn10300/mn10300.md (isa): New attribute.
15779 (enabled): New attribute.
15781 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15782 (abssf2, negsf2): Define only for hardware fp.
15783 (sqrtsf2): Reformat.
15784 (addsf3, subsf3, mulsf3): Merge expander and insn.
15786 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15787 (DEBUGGER_AUTO_OFFSET): Remove.
15788 (DEBUGGER_ARG_OFFSET): Remove.
15790 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15791 Emit register stores with the same offsets as the hardware.
15792 (mn10300_store_multiple_operation): Don't check that the register
15793 save offsets are monotonic.
15794 * config/mn10300/mn10300-protos.h: Update.
15796 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15798 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15799 in terms of the value on the stack, not the MDR register.
15801 2011-01-11 Jan Hubicka <jh@suse.cz>
15805 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15806 (symbol_alias_set_destroy, symbol_alias_set_contains,
15807 propagate_aliases_backward): Declare.
15808 * lto-streamer-out.c (struct sets): New sturcture.
15809 (trivally_defined_alias): New function.
15810 (output_alias_pair_p): Rewrite.
15811 (output_unreferenced_globals): Fix output of alias pairs.
15812 (produce_symtab): Likewise.
15813 * ipa.c (function_and_variable_visibility): Set weak alias destination
15815 * varasm.c (symbol_alias_set_t): Remove.
15816 (symbol_alias_set_destroy): Export.
15817 (propagate_aliases_forward, propagate_aliases_backward): New functions
15819 (compute_visible_aliases): ... this one; remove.
15820 (trivially_visible_alias): New
15821 (trivially_defined_alias): New.
15822 (remove_unreachable_alias_pairs): Rewrite.
15823 (finish_aliases_1): Reorganize code checking if alias is defined.
15824 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15827 2011-01-11 Richard Guenther <rguenther@suse.de>
15829 PR tree-optimization/46076
15830 * tree-ssa.c (useless_type_conversion_p): Conversions from
15831 unprototyped to empty argument list function types are useless.
15833 2011-01-11 Richard Guenther <rguenther@suse.de>
15835 PR middle-end/45235
15836 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15837 volatile MEMs as MEM_READONLY_P.
15839 2011-01-11 Richard Guenther <rguenther@suse.de>
15841 PR tree-optimization/47239
15842 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15844 2011-01-11 Jeff Law <law@redhat.com>
15846 PR tree-optimization/47086
15847 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15848 IVs from statements that might throw.
15850 2011-01-10 Jan Hubicka <jh@suse.cz>
15853 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15855 2011-01-10 Jan Hubicka <jh@suse.cz>
15858 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15859 when correcting profile.
15861 2011-01-10 Jan Hubicka <jh@suse.cz>
15864 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15865 DECL_FINI_PRIORITY.
15866 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15867 Restore DECL_FINI_PRIORITY.
15869 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15871 * doc/gimple.texi: Fix quoting of multi-word return values in
15872 @deftypefn statements. Ensure presence of return value. Wrap
15873 overlong @deftypefn lines.
15874 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15875 descriptions of removed functions.
15876 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15877 of multi-word return value in @deftypefn statement.
15879 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15881 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15882 (Conditional Expressions, Logical Operators)
15883 (Statement and operand traversals): Do not indent smallexample
15884 code. Fix duplicate function argument in example.
15886 2011-01-10 Jeff Law <law@redhat.com>
15888 PR tree-optimization/47141
15889 * ipa-split.c (split_function): Handle case where we are
15890 returning a value and the return block has a virtual operand phi.
15892 2011-01-10 Jan Hubicka <jh@suse.cz>
15894 PR tree-optimization/47234
15895 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15896 (pass_feedback_split_functions): Declare.
15897 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15899 * ipa-split.c (gate_split_functions): Update comments; disable
15900 split-functions for profile_arc_flag and branch_probabilities.
15901 (gate_feedback_split_functions): New function.
15902 (execute_feedback_split_functions): New function.
15903 (pass_feedback_split_functions): New global var.
15905 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15908 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15909 calling gimple_call_set_cannot_inline.
15911 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15913 * config/darwin-sections.def: Remove unused section.
15915 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15918 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15920 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15923 * c-parser.c (c_parser_declaration_or_fndef): Improved
15926 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15928 * config/i386/winnt.c (i386_pe_start_function): Make sure
15929 to switch back to function's section.
15931 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15935 * plugin.c: Move include of dlfcn.h from here...
15936 * system.h: ... to here.
15938 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15940 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15942 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15943 two extra empty pages in PDF output.
15945 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15948 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15949 for error recovery purposes behave as if it was not specified so
15950 that the default type is usd.
15952 2011-01-07 Jan Hubicka <jh@suse.cz>
15954 PR tree-optmization/46469
15955 * ipa.c (function_and_variable_visibility): Clear needed flags on
15956 nodes with external decls; handle weakrefs merging correctly.
15958 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15960 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15963 2011-01-07 Jan Hubicka <jh@suse.cz>
15965 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15966 and no longer claim that gold is required for linker plugin.
15967 * configure: Regenerate.
15968 * gcc.c (PLUGIN_COND): New macro.
15969 (LINK_COMMAND_SPEC): Use it.
15970 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15971 * config.in (HAVE_LTO_PLUGIN): New.
15972 * configure.ac (--with-lto-plugin): New parameter; autodetect
15975 2011-01-07 Jan Hubicka <jh@suse.cz>
15977 PR tree-optimization/46367
15978 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15979 when we can update original.
15980 (cgraph_mark_inline_edge): Sanity check.
15981 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15983 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15985 * config/spu/spu.h (ASM_COMMENT_START): Define.
15987 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15990 * gcc.c (%>S): New.
15991 (SWITCH_KEEP_FOR_GCC): Likewise.
15992 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15993 (do_spec_1): Handle "%>".
15995 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15997 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16000 * config/i386/i386.c (ix86_delegitimize_address): If
16001 simplify_gen_subreg fails, return orig_x.
16004 * value-prof.c (gimple_stringop_fixed_value): Handle
16005 lhs of the call properly.
16007 2011-01-07 Jan Hubicka <jh@suse.cz>
16010 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16012 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16014 * target.def (function_switched_text_sections): New hook.
16015 * doc/tm.texi: Regenerated.
16016 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16017 * final.c (default_function_switched_text_sections): New.
16018 (final_scan_insn): Call function_switched_text_sections when a
16019 mid-function section change occurs.
16020 * output.h (default_function_switched_text_sections): Declare.
16021 * config/darwin-protos.h (darwin_function_switched_text_sections):
16023 * config/darwin.c (darwin_function_switched_text_sections): New.
16024 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16026 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16028 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16029 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16030 the secondary code fragment when outputting for DWARF == 2.
16032 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16034 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16035 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16037 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16038 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16040 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16043 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16044 when it is not empty.
16046 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16049 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16050 (case ${target}): Add btver1.
16051 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16052 -march=native recognize btver1 processors.
16053 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16054 btver1 def_and_undef
16055 * config/i386/i386.c (struct processor_costs btver1_cost): New
16057 (m_BTVER1): New definition.
16058 (m_AMD_MULTIPLE): Includes m_BTVER1.
16059 (initial_ix86_tune_features): Add btver1 tune.
16060 (processor_target_table): Add btver1 entry.
16061 (static const char *const cpu_names): Add btver1 entry.
16062 (software_prefetching_beneficial_p): Add btver1.
16063 (ix86_option_override_internal): Add btver1 instruction sets.
16064 (ix86_issue_rate): Add btver1.
16065 (ix86_adjust_cost): Add btver1.
16066 * config/i386/i386.h (TARGET_BTVER1): New definition.
16067 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16068 (enum processor_type): Add PROCESSOR_BTVER1.
16069 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16071 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16074 * config/i386/i386.c (legitimize_tls_address)
16075 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16076 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16077 (tls_initial_exec_64_sun): New pattern.
16079 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16081 * doc/invoke.texi (Overall Options): Improve wording and markup
16082 of the description of -wrapper.
16084 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16086 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16087 rdynamic, threads): New Driver options.
16089 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16092 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16093 if coming from .tdata.
16094 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16096 2011-01-06 Jan Hubicka <jh@suse.cz>
16099 * collect2.c (main): Do not enable LTOmode when plugin is active.
16101 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16104 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16105 --version output if supported.
16106 * configure: Regenerate.
16108 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16110 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16113 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16116 * c-convert.c (convert): When converting a complex expression
16117 other than COMPLEX_EXPR to a different complex type, ensure
16118 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16119 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16120 when converting COMPLEX_TYPE.
16122 2011-01-06 Ira Rosen <irar@il.ibm.com>
16124 PR tree-optimization/47139
16125 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16126 only the last reduction value is used outside the loop. Update
16129 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16131 * config/rtems.opt: New.
16132 * config.gcc (*-*-rtems*): Use rtems.opt.
16134 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16136 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16137 processors do not support 3DNow instructions.
16139 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16141 * config/spu/spu.c (spu_option_override): Set parameter
16142 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16144 2011-01-05 Jan Hubicka <jh@suse.cz>
16146 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16147 at the command line.
16149 2011-01-05 Martin Jambor <mjambor@suse.cz>
16152 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16153 deltas on streamed outgoing edges.
16154 (output_node_opt_summary): Output info for outgoing edges only when
16155 the node is in new parameter set.
16156 (output_cgraph_opt_summary): New parameter set, passed to the two
16157 aforementioned functions. Update its forward declaration and its
16160 2011-01-05 Tom Tromey <tromey@redhat.com>
16162 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16163 operator to c_finish_omp_atomic.
16164 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16165 (build_unary_op): Update.
16166 (build_modify_expr): Update.
16167 (build_asm_expr): Update.
16169 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16171 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16172 newly inserted insns.
16173 (pad_bb): Likewise.
16174 (spu_emit_branch_hint): Likewise.
16175 (insert_hbrp_for_ilb_runout): Likewise.
16176 (spu_machine_dependent_reorg): Call df_finish_pass after
16177 schedule_insns returns.
16179 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16181 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16183 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16185 PR tree-optimization/47005
16186 * tree-sra.c (struct access): Add 'non_addressable' bit.
16187 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16188 (decide_one_param_reduction): Return 0 if the parameter is passed by
16189 reference and one of the accesses in the group is non_addressable.
16191 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16193 PR tree-optimization/47056
16194 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16195 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16196 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16198 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16200 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16201 initializer. Skip view conversions from aggregate types.
16203 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16206 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16208 2011-01-04 Philipp Thomas <pth@suse.de>
16210 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16213 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16215 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16216 on empty epilogue sequences.
16218 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16220 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16221 non-static): New Driver options.
16223 2011-01-04 Jie Zhang <jie@codesourcery.com>
16226 * gcc.c (default_compilers[]): Set combinable field to 0
16227 for all assembly languages.
16229 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16231 * config/mips/loongson3a.md: New file.
16232 * config/mips/mips.md: Include loongson3a.md.
16233 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16236 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16238 PR middle-end/47017
16239 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16240 instead of convert_memory_address_addr_space on the base expression.
16242 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16244 * config/spu/spu.c (spu_option_override): Update error text
16245 for bad -march= / -mtune= values.
16247 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16249 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16250 if branch-hint optimization will be performed.
16252 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16254 PR tree-optimization/47148
16255 * ipa-split.c (split_function): Convert arguments to
16256 DECL_ARG_TYPE if possible.
16258 PR tree-optimization/47155
16259 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16260 when computing uns.
16262 PR rtl-optimization/47157
16263 * combine.c (try_combine): If undobuf.other_insn becomes
16264 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16265 and set *new_direct_jump_p too.
16267 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16269 PR tree-optimization/47021
16270 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16272 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16274 * gcc.c (process_command): Update copyright notice dates.
16275 * gcov.c (print_version): Likewise.
16276 * gcov-dump.c (print_version): Likewise.
16277 * mips-tfile.c (main): Likewise.
16278 * mips-tdump.c (main): Likewise.
16280 2011-01-03 Martin Jambor <mjambor@suse.cz>
16282 PR tree-optimization/46801
16283 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16284 aggregate fields start at byte boundary instead of the bit-field flag.
16286 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16289 * gcc.c (main): Revert revision 168407.
16291 2011-01-03 Martin Jambor <mjambor@suse.cz>
16293 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16295 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16297 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16298 vector optab to expand vector/scalar shift, update gimple to vector.
16300 2011-01-03 Martin Jambor <mjambor@suse.cz>
16302 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16305 2011-01-03 Martin Jambor <mjambor@suse.cz>
16307 PR tree-optimization/46984
16308 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16310 (cgraph_create_indirect_edge): Fixed line length.
16311 (cgraph_indirect_call_info): Declare.
16312 (cgraph_make_edge_direct) Update declaration.
16313 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16314 (cgraph_create_indirect_edge): Use it.
16315 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16317 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16318 the new thunk_delta representation.
16319 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16321 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16322 (ipa_read_indirect_edge_info): Likewise.
16323 * lto-cgraph.c (output_edge_opt_summary): New function.
16324 (output_node_opt_summary): Call it on all outgoing edges.
16325 (input_edge_opt_summary): New function.
16326 (input_node_opt_summary): Call it on all outgoing edges.
16328 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16331 * gcc.c (main): Don't check have_o when settting combine_inputs.
16333 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16335 * regrename.c: Add general comment describing the pass.
16336 (struct du_head): Remove 'length' field.
16337 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16338 (regrename_optimize): Do not sort chains. Rework comments, add others.
16339 Force renaming to the preferred class (if any) in the first pass and do
16340 not consider registers that belong to it in the second pass.
16341 (create_new_chain): Do not set 'length' field.
16342 (scan_rtx_reg): Likewise.
16344 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16346 PR tree-optimization/47140
16347 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16348 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16349 to bit_value_binop.
16351 PR rtl-optimization/47028
16352 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16353 parm_birth_insn instead of at the beginning of first bb.
16355 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16357 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16358 Remove the word "see" before "@pxref".
16359 * doc/rtl.texi: Remove the word "see" before "@pxref".
16361 2011-01-01 Jan Hubicka <jh@suse.cz>
16363 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16366 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16369 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16372 Copyright (C) 2011 Free Software Foundation, Inc.
16374 Copying and distribution of this file, with or without modification,
16375 are permitted in any medium without royalty provided the copyright
16376 notice and this notice are preserved.