1 2011-06-01 David Li <davidxl@google.com>
3 * predict.c : Change pass name
6 * tree-profile.c: Ditto.
9 2011-06-01 David Li <davidxl@google.com>
11 * tree-pretty-print.c (dump_function_header): New function.
12 * final.c (rest_of_clean_state): Use header dumper.
13 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
14 * passes.c (pass_init_dump_file): Use header dumper.
16 2011-06-01 Jakub Jelinek <jakub@redhat.com>
18 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
19 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
20 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
22 (mem_loc_descriptor): Use them.
24 * var-tracking.c (create_entry_value): New function.
25 (vt_add_function_parameter): Use it.
27 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
30 Include <signal.h>, <ucontext.h>.
31 (sigill_caught): Define.
32 (sigill_hdlr): New function.
33 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
34 insns can be executed.
35 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math
37 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
39 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41 * config/t-slibgcc-darwin: Move to ...
42 * config/t-slibgcc-dummy: .. this.
44 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
45 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
46 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
47 (i[34567]86-*-rtems*): Remove extra_parts.
49 Remove i386/t-crtstuff from tmake_file.
50 (i[34567]86-*-solaris2*): Remove t-svr4,
51 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
53 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
54 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
55 sparc/t-crtfm from tmake_file.
56 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
57 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
59 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
60 * config/i386/t-nwld (SHLIB_LINK): Remove.
61 * config/i386/t-rtems-i386: Rename to ...
62 * config/i386/t-rtems: ... this.
63 ($(T)crti.o, $(T)crtn.o): Remove.
64 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
65 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
66 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
67 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
68 EXTRA_MULTILIB_PARTS): Remove.
69 * config/sparc/t-sol2-64: Likewise.
70 * config/sparc/t-sol2: Remove.
71 * config/sparc/t-crtin: Remove.
72 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
73 * config/i386/gmon-sol2.c: Remove.
74 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
75 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
76 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
77 * config/i386/sol2-gc1.asm: Remove.
78 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
79 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
80 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
81 * config/t-slibgcc-sld: Remove.
83 2011-06-01 Jakub Jelinek <jakub@redhat.com>
85 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
86 base_type_for_mode with op_mode instead of mode.
88 2011-06-01 Paul Brook <paul@cpodesourcery.com>
90 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
92 * config/arm/arm-tune.md: Regenerate.
93 * config/arm/arm-tables.opt: Regenerate.
94 * config/arm/arm.c (FL_DIV): Rename...
95 (FL_THUMB_DIV): ... to this.
97 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
98 (arm_arch_hwdiv): Remove.
99 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
100 (arm_issue_rate): Add cortexr5.
101 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
102 __ARM_ARCH_EXT_IDIV__.
103 (TARGET_IDIV): Define.
104 (arm_arch_hwdiv): Remove.
105 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
106 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
107 (divsi3, udivsi3): New patterns.
108 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
109 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
111 2011-06-01 Martin Jambor <mjambor@suse.cz>
113 * ipa-utils.c (ipa_dfs_info): New field scc_no.
114 * ipa-utils.c (searchc): Set scc_no.
116 2011-06-01 Martin Jambor <mjambor@suse.cz>
118 * ipa-utils.c (searchc_env): New field allow_overwritable.
119 (searchc): do not ignore edges to overwritable nodes if indicated
120 by env->allow_overwritable.
121 (ipa_reduced_postorder): Set env.allow_overwritable.
123 2011-06-01 Richard Guenther <rguenther@suse.de>
125 * tree.c (free_lang_data): Do not reset boolean_type_node nor
127 * lto-streamer.c (lto_record_common_node): Take node pointer,
128 do not register types.
129 (lto_preload_common_nodes): Explicitly skip preloading nodes
130 that differ between frontends.
132 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
134 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
137 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
139 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
140 parameter value for dump. Dump cost on outermost call only.
141 (rs6000_memory_move_cost): Dump cost on outermost call only.
143 2011-05-31 Jakub Jelinek <jakub@redhat.com>
145 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
146 DW_OP_GNU_convert ops.
148 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
149 cselib_preserve_constants.
150 (cselib_lookup_1): If cselib_preserve_constants,
151 a new VALUE is being created for REG and there is a VALUE for the
152 same register in wider mode, add another loc with lowpart SUBREG of
154 (cselib_subst_to_values): Handle ENTRY_VALUE.
155 * var-tracking.c (replace_expr_with_values): Return NULL for
157 * dwarf2out.c (convert_descriptor_to_signed): New function.
158 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
159 instead of two shifts.
160 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
161 the right mode if needed.
162 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
163 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
164 convert_descriptor_to_signed.
165 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
166 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
169 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
171 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
173 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
174 of X87MODEI12 and SWI48x instead of SSEMODEI24.
175 (SWI248x): New mode iterator, rename from X87MODEI.
176 (X87MODEI): Remove mode iterator.
180 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
182 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
183 * doc/invoke.texi: Document max-vartrack-expr-depth.
184 * var-tracking.c (EXPR_DEPTH): New.
185 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
187 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
189 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
190 * config/i386/sse.md: Add n to negated FMA pattern names.
192 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
194 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
196 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
198 * gengtype-state.c (read_state_params_structs): Initialize previous.
200 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
202 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
203 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
205 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
207 * config/i386/i386.md (*movtf_internal): Avoid allocating general
208 registers. Penalize F*r->o alternative to prevent partial memory
209 stalls. Slightly penalize *roF->*r alternative. Generate SSE
210 CONST_DOUBLE immediates when optimizing function for size. Do not move
211 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
212 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
213 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
214 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
216 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
218 (fp_register_operand splitters): Use fp_register_operand
219 constraint. Do not use FP_REG_P in insn condition.
220 (any_fp_register_operand splitters): Use any_fp_register_operand
221 constraint. Do not use ANY_FP_REG_P in insn condition.
223 2011-05-31 Jan Hubicka <jh@suse.cz>
225 * cgraph.h (cgraph_inline_failed_t): Give enum a name
226 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
227 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
228 (lto_output_edge): Use output_enum and var_len_unsigned.
229 (lto_output_varpool_node): Likewise.
230 (input_overwrite_node): Do not take resolution parameter;
231 extract it from a bitpack.
232 (input_node): Do not read resolution; use input_enum and
234 (input_varpool_node): Likewise.
235 (input_edge): Likewise.
236 (input_cgraph_1): Likewise.
238 2011-05-31 Richard Guenther <rguenther@suse.de>
240 * gimple.c (gimple_register_canonical_type): Do not register
241 any types via gimple_register_type.
243 2011-05-31 Jan Hubicka <jh@suse.cz>
245 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
248 2011-05-31 Jakub Jelinek <jakub@redhat.com>
250 PR rtl-optimization/49235
251 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
252 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
254 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
256 PR tree-optimization/49093
257 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
260 2011-05-31 Dodji Seketeli <dodji@redhat.com>
263 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
264 for concrete functions containing the code of cloned functions.
266 2011-05-31 Richard Guenther <rguenther@suse.de>
268 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
270 (forward_propagate_into_comparison_1): ... this.
271 (forward_propagate_comparison): Rename to ...
272 (forward_propagate_into_comparison): ... this. Split out
273 real forward propagation code to ...
274 (forward_propagate_comparison): ... this.
275 (forward_propagate_into_gimple_cond): Remove looping.
276 (forward_propagate_into_cond): Likewise.
277 (simplify_not_neg_expr): Return whether we have done something.
278 (simplify_gimple_switch): Likewise.
279 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
280 (ssa_forward_propagate_and_combine): ... this. Re-structure
281 to do a forward forward-propagation walk on BBs and a backward
282 stmt combining walk on BBs. Consistently re-scan changed statements.
283 (pass_forwprop): Adjust.
285 2011-05-30 Ian Lance Taylor <iant@google.com>
287 * godump.c (go_format_type): Correct length of name added to
288 obstack for anonymous field.
290 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
293 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
294 part of the second operand is 0.
296 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
298 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
299 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
300 to memory for !TARGET_MEMORY_MISMATCH_STALL.
301 (*movdf_internal_rex64): Do not penalize F->r alternative.
302 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
303 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
304 when optimizing function for size. Do not move CONST_DOUBLEs
305 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
306 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
307 SUBREGs. Do not check for MEM_P operands in the insn condition,
308 check for ANY_FP_REGNO_P instead.
309 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
310 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
312 * config/i386/i386.c (ix86_option_override_internal): Do not
313 set TARGET_INTEGER_DFMODE_MOVES here.
315 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
318 * config/i386/i386.md (*movtf_internal): Handle misaligned
321 2011-05-30 Jakub Jelinek <jakub@redhat.com>
323 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
324 DW_TAG_rvalue_reference_type even for
325 -gdwarf-4 -fno-debug-types-section.
327 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
329 PR tree-optimization/46728
330 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
331 (build_and_insert_binop): New.
332 (gimple_expand_builtin_pow): Reorder args for
333 build_and_insert_call; use build_and_insert_binop; add more
334 optimizations for fractional exponents.
336 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
341 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
343 * tree.h (struct tree_identifier): Inherit from tree_typed, not
345 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
346 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
347 TS_BASE instead of TS_COMMON.
348 * varasm.c (assemble_name): Remove assert.
350 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
352 * config.gcc: Keep obselete list sorted.
354 2011-05-30 Jakub Jelinek <jakub@redhat.com>
355 Eric Botcazou <ebotcazou@adacore.com>
357 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
358 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
359 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
360 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
361 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
363 2011-05-30 Richard Guenther <rguenther@suse.de>
365 * gimple.c (gimple_types_compatible_p_1): Compare record
366 and union type members properly.
368 2011-05-30 Richard Guenther <rguenther@suse.de>
370 PR tree-optimization/49210
371 * ipa-split.c (split_function): Care for the case where the call
372 result is not trivially convertible to the result holding variable.
374 2011-05-30 Richard Guenther <rguenther@suse.de>
376 PR tree-optimization/49218
377 * tree-vrp.c (adjust_range_with_scev): Properly check whether
380 2011-05-30 Richard Guenther <rguenther@suse.de>
382 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
383 New function split out from ...
384 (forward_propagate_into_gimple_cond): ... here. Adjust.
385 (forward_propagate_into_cond): Likewise.
386 (forward_propagate_comparison): Also propagate into
387 comparisons on assignment RHS. Change return value to
388 behave similar to forward_propagate_into_cond.
389 (tree_ssa_forward_propagate_single_use_vars): Handle
390 strict-overflow warnings properly for forward_propagate_comparison.
392 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
394 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
396 * configure: Regenerate.
398 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
400 PR tree-optimization/49199
401 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
402 non-reduction operands are either defined in the loop or by induction.
404 2011-05-29 Xinliang David Li <davidxl@google.com>
406 * opts-global.c (handle_common_deferred_options): Handle new options.
407 * passes.c (register_one_dump_file): Call register_pass_name.
408 (execute_one_pass): Check explicit enable/disable flag.
409 (passr_hash): New function.
411 (register_pass_name): Ditto.
412 (get_pass_by_name): Ditto.
415 (enable_pass): Ditto.
416 (disable_pass): Ditto.
417 (is_pass_explicitly_enabled_or_disabled): Ditto.
419 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
421 * config/i386/i386.md (*movoi_internal_avx): Use
422 standard_sse_constant_opcode for alternative 0.
423 (*movti_internal_sse): Ditto.
424 (*movti_internal_rex64): Use standard_sse_constant_opcode for
426 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
428 (*movsi_internal): Ditto.
429 (*movdi_internal): Ditto. Add ssecvt type moves.
431 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
434 * rtlanal.c (simplify_subreg_regno): Adjust comment.
436 2011-05-29 Jakub Jelinek <jakub@redhat.com>
438 PR rtl-optimization/49095
439 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
440 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
442 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
445 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
446 recurse_p argument. Only follow register copies if it is set,
447 and prevent mips_find_pic_call_symbol from recursing.
448 (mips_find_pic_call_symbol): Add a recurse_p argument.
449 Pass it to mips_pic_call_symbol_from_set.
450 (mips_annotate_pic_calls): Update accordingly.
452 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
454 * emit-rtl.c (try_split): Use a loop to search for
455 NOTE_INSN_CALL_ARG_LOCATIONs.
457 2011-05-29 Richard Guenther <rguenther@suse.de>
459 PR tree-optimization/49217
460 * ipa-pure-const.c (propagate_pure_const): Fix typos.
462 2011-05-28 Jan Hubicka <jh@suse.cz>
464 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
466 (string_slot_free): Remove
467 (create_output_block): Initialize obstack.
468 (destroy_output_block): Free obstack.
469 (lto_string_index): Add PERSISTENT parameter; do not duplicate
470 the string unless it needs to be added into the hash.
471 (lto_output_string_with_length): Add persistent attribute;
473 (lto_output_string): Add PERSISTENT parameter.
474 (output_string_cst, output_identifier): Simplify.
475 (lto_output_location_bitpack): Update.
476 (lto_output_builtin_tree): Update.
477 * lto-streamer.h (struct output_block): Add obstack.
478 (lto_output_string, lto_output_string_with_length): Remove
479 declarations; functions are static now.
481 2011-05-28 Jan Hubicka <jh@suse.cz>
483 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
484 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
485 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
486 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
487 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
488 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
489 unpack_ts_decl_with_vis_value_fields,
490 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
491 lto_get_builtin_tree): Use enum and variable length i/o.
492 * basic-block.h (profile_status_d): Add PROFILE_LAST.
493 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
495 (bp_pack_enum, bp_unpack_enum): New macros.
497 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
499 * genrecog.c: Remove redundant forward declarations.
501 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
503 * config.gcc: Deprecate mips*-*-openbsd*.
505 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
508 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
511 2011-05-27 Andrew Pinski <pinskia@gmail.com>
514 * gengtype.c (vec_prefix_type): New function.
515 (note_def_vec): Use vec_prefix_type and change the length
516 attribute to be based on the prefix.
517 * vec.c: Include coretypes.h before vec.h.
518 (struct vec_prefix): Remove.
519 (vec_gc_p_reserve): Change the offsetof to sizeof.
520 (vec_gc_p_reserve_exact): Likewise.
521 (vec_heap_p_reserve): Likewise.
522 (vec_heap_p_reserve_exact): Likewise.
523 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
524 (vec_stack_p_reserve): Change the offsetof to sizeof.
525 (vec_stack_p_reserve_exact): Likewise.
526 * vec.h (struct vec_prefix): New struct definition.
527 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
528 (VEC_T_GTY(T,B)): Likewise.
529 (DEF_VEC_FUNC_P(T)): Use prefix field.
530 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
531 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
533 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
535 PR tree-optimization/46728
536 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
537 (powi_as_mults): Add gimple_set_location.
538 (build_and_insert_call): New.
539 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
540 0.5, 0.25, 0.75, 1./3., or 1./6.
542 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
544 * doc/contrib.texi: Update copyright years.
545 (Contributors): Add Zdenek Sojka.
547 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
549 * c-decl.c (c_push_function_context): Copy the current statement
551 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
552 (finish_struct): Call building_stmt_list_p instead of checking
554 * c-parser.c (c_parser_postfix_expression): Likewise.
555 * c-typeck.c (c_end_compound_stmt): Likewise.
556 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
557 * tree-iterator.c (stmt_list_cache): Change to a VEC.
558 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
559 (free_stmt_list): Likewise.
560 * tree.h (struct tree_statement_list): Include typed_tree instead
562 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
563 as TS_TYPED instead of TS_COMMON.
565 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
566 Uros Bizjak <ubizjak@gmail.com>
568 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
569 (HAVE_AS_IX86_TLSGDPTL): Define.
570 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
571 (HAVE_AS_IX86_TLSLDMPLT): Define.
572 * configure: Regenerate.
573 * config.in: Regenerate.
574 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
575 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
576 TARGET_SUN_TLS, use @tlsgdplt or @plt.
577 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
578 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
580 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
582 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
584 * sched-int.h (struct _haifa_deps_insn_data): New members cond
586 (INSN_COND, INSN_REVERSE_COND): New macros.
587 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
589 (sched_get_condition_with_rev): Cache the results, and look them up
591 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
592 are clobbered by the current insn.
593 * target.def (exposed_pipline): New sched data hook.
594 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
595 * doc/tm.texi: Regenerate.
597 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
599 PR tree-optimization/49170
600 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
603 2011-05-27 Richard Guenther <rguenther@suse.de>
606 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
609 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
611 * haifa-sched.c (sched_scan_info): Remove.
612 (schedule_block): Call sched_extend_luids rather than sched_init_luids
614 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
616 (sched_scan): Remove.
617 (sched_extend_luids): Renamed from luids_extend_insn and no longer
618 static. All callers changed.
619 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
620 static. All callers changed.
621 (sched_init_luids): Remove all arguments except the first. All
622 callers changed. Don't use sched_scan.
623 (haifa_init_h_i_d): Likewise.
624 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
625 manually rather than using sched_init_luids. Likewise with
626 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
627 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
628 rather than sched_init_luids with NULL args.
629 * sel-sched-ir.c (new_insns): Remove variable.
630 (sched_scan): New static function, previously in haifa-sched.c. Remove
631 all arguments but the first two; all callers changed.
632 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
633 rather than sched_init_luids.
634 (sel_init_bbs): Remove second argument. All callers changed.
635 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
637 (create_insn_rtx_from_pattern): Likewise.
638 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
639 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
640 (sched_init_insn_luid, sched_extend_luids): Declare.
641 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
644 2011-05-27 Richard Guenther <rguenther@suse.de>
647 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
648 A CMP B ? (T) true : (T) false for non-integral types T again.
650 2011-05-27 Jan Hubicka <jh@suse.cz>
652 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
653 so 0 means NULL string.
654 (lto_output_string_with_length): ... here.
655 (lto_output_string, output_string_cst, output_identifier): Update
656 handling of NULL strings.
657 (lto_output_location_bitpack): New function.
658 (lto_output_location): Use it.
659 (lto_output_tree_ref): Use output_record_start.
660 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
662 * lto-streamer-in.c (string_for_index): Break out from ...; offset
664 (input_string_internal): ... here;
665 (input_string_cst, input_identifier, lto_input_string): Update handling
667 (lto_input_location_bitpack): New function
668 (lto_input_location): Use it.
669 (unpack_ts_type_common_value_fields): Pack align & alias in var len
671 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
672 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
673 (bp_pack_value): Sanity check the value range.
674 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
676 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
679 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
681 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
682 call_arg_location instructions down the floor.
684 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
686 PR rtl-optimization/49154
687 * ira.c (setup_pressure_classes): Process class without sublcasses
688 as a candidate for pressure classes.
690 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
692 PR rtl-optimization/48575
693 * genrecog.c (position_type): New enum.
694 (position): New structure.
695 (decision): Use position structure instead of a string.
696 (root_pos, peep2_insn_pos_list): New variables.
697 (next_position, compare_positions): New functions.
698 (new_decision): Use position structures instead of strings.
699 (maybe_both_true): Likewise.
700 (change_state): Likewise.
701 (write_tree): Likewise.
702 (make_insn_sequence): Likewise.
704 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
706 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
707 TS_BASE instead of TS_COMMON.
708 (find_decls_types_r): Check for TS_TYPED structure before looking at
710 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
712 (BLOCK_CHAIN): Use new chain field.
714 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
716 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
717 moves expensive on Power7 also.
719 2011-05-26 Richard Guenther <rguenther@suse.de>
721 * fold-const.c (fold_unary_loc): Remove bogus code.
723 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
725 * tree.h (struct tree_identifier): Inherit from tree_typed, not
727 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
728 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
729 TS_BASE instead of TS_COMMON.
730 * varasm.c (assemble_name): Remove assert.
732 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
734 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
736 * libgcc-std.ver: Delete file.
738 2011-05-26 Richard Guenther <rguenther@suse.de>
740 PR tree-optimization/48702
741 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
742 only when we know the base address is within bounds.
743 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
744 assume the base address of TARGET_MEM_REFs is in bounds.
746 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
749 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
750 declaration in TARGET_SOLARIS.
752 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
754 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
755 The instruction is then expanded explicitly.
756 (supported_compare): Callable instruction.
759 2011-05-26 Jakub Jelinek <jakub@redhat.com>
762 * gimplify.c (shortcut_cond_r): Don't special case
763 COND_EXPRs if they have void type on one of their arms.
765 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
767 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
768 to reduce duplication, and to achieve a slightly more logical order
771 2011-05-26 Jakub Jelinek <jakub@redhat.com>
773 PR tree-optimization/49161
774 * tree-vrp.c (struct case_info): New type.
775 (compare_case_labels): Sort case_info structs instead of
776 trees, and not primarily by CASE_LABEL uids but by
777 label_for_block indexes.
778 (find_switch_asserts): Put case labels into struct case_info
779 array instead of TREE_VEC, adjust sorting, compare label_for_block
780 values instead of CASE_LABELs.
782 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
784 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
785 ("orndi3_neon"): Likewise.
786 ("bic<mode>3_neon"): Likewise.
788 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
790 PR tree-optimization/49038
791 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
792 Ensure at least one epilogue iteration if required by data
794 * tree-vectorizer.h (struct _loop_vec_info): Add new field
795 to mark loops that require peeling for gaps.
796 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
797 (vect_get_known_peeling_cost): Take peeling for gaps into
799 (vect_transform_loop): Generate epilogue if required by data
801 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
802 loop as requiring an epilogue if there are gaps in the end of
805 2011-05-25 Ian Lance Taylor <iant@google.com>
807 * godump.c (go_format_type): Output the first field with a usable
810 2011-05-25 Ian Lance Taylor <iant@google.com>
812 * godump.c (go_format_type): Check for invalid type names, pointer
813 target types, and struct field types.
815 2011-05-25 Jason Merrill <jason@redhat.com>
817 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
819 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
821 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
823 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
825 * config/i386/i386.md (*movqi_extv_1)): Put back
826 "register_operand" check in "type" calculation.
827 (*movqi_extzv_2): Likewise.
829 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
831 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
833 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
836 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
837 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
838 __divxc3, __divtc3): Wrap definitions in #ifndef.
840 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
843 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
844 "register_operand" check and replace q_regs_operand with
845 QIreg_operand in "type" calculation.
846 (*movqi_extv_1): Likewise.
847 (*movqi_extzv_2_rex64): Likewise.
848 (*movqi_extzv_2): Likewise.
850 * config/i386/predicates.md (QIreg_operand): New.
852 2011-05-25 Richard Guenther <rguenther@suse.de>
854 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
855 type-based offset disambiguation, streamline MEM_REF and
856 TARGET_MEM_REF handling.
858 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
860 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
861 (bdesc_special_args): Add pause intrinsic.
863 * config/i386/i386.md (UNSPEC_PAUSE): New.
866 * config/i386/ia32intrin.h (__pause): Likewise.
868 * doc/extend.texi (X86 Built-in Functions): Add documentation for
871 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
873 PR tree-optimization/46728
874 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
875 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
877 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
879 * tree.h (struct tree_exp): Inherit from struct tree_typed.
880 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
881 instead of TS_COMMON.
883 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
885 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
886 LIBGCC2_GNU_PREFIX is defined.
888 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
889 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
890 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
891 __clz_tab): Define using __N.
892 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
893 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
894 * target.def (libfunc_gnu_prefix): New hook.
895 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
896 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
897 * doc/tm.texi: Regenerate.
898 * system.h (LIBGCC2_GNU_PREFIX): Poison.
899 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
901 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
902 (init_optabs): Likewise for the bswap libfuncs.
903 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
905 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
906 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
907 * libgcc-std.ver: Remove.
908 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
909 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
911 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
912 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
913 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
914 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
915 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
916 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
917 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
918 * config/fixed-bit.h (FIXED_OP): Define differently depending on
919 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
920 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
922 2011-05-25 Jan Hubicka <jh@suse.cz>
924 * lto-streamer-out.c (output_record_start): Use lto_output_enum
925 (lto_output_tree): Use output_record_start.
926 * lto-streamer-in.c (input_record_start): Use lto_input_enum
927 (lto_get_pickled_tree): Use input_record_start.
928 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
929 (lto_value_range_error): New function.
930 * lto-streamer.h (lto_value_range_error): Declare.
931 (lto_output_int_in_range, lto_input_int_in_range): New functions.
932 (lto_output_enum, lto_input_enum): New macros.
934 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
936 * common.opt (flag_stack_usage_info): New variable.
937 (-Wstack-usage): New option.
938 * doc/invoke.texi (Warning options): Document -Wstack-usage.
939 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
940 <OPT_fstack_usage>: Likewise.
941 * toplev.c (output_stack_usage): Handle -Wstack-usage.
942 * calls.c (expand_call): Test flag_stack_usage_info variable instead
944 (emit_library_call_value_1): Likewise.
945 * explow.c (allocate_dynamic_stack_space): Likewise.
946 * function.c (instantiate_virtual_regs ): Likewise.
947 (prepare_function_start): Likewise.
948 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
949 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
950 * config/arm/arm.c (arm_expand_prologue): Likewise.
951 (thumb1_expand_prologue): Likewise.
952 * config/avr/avr.c (expand_prologue): Likewise.
953 * config/i386/i386.c (ix86_expand_prologue): Likewise.
954 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
955 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
956 * config/mips/mips.c (mips_expand_prologue): Likewise.
957 * config/pa/pa.c (hppa_expand_prologue): Likewise.
958 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
959 * config/s390/s390.c (s390_emit_prologue): Likewise.
960 * config/sh/sh.c (sh_expand_prologue): Likewise.
961 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
962 * config/spu/spu.c (spu_expand_prologue): Likewise.
964 2011-05-25 Richard Guenther <rguenther@suse.de>
966 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
967 (gimple_canonical_types_compatible_p): Likewise.
969 2011-05-25 Jan Hubicka <jh@suse.cz>
972 * ipa.c (function_and_variable_visibility): Only add to same
973 comdat group list if DECL_ONE_ONLY.
975 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
977 PR rtl-optimization/49014
978 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
980 2011-05-25 Jakub Jelinek <jakub@redhat.com>
983 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
985 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
987 PR rtl-optimization/48757
988 * ira-build.c (loop_with_eh_edge_p): Rename to
989 loop_with_complex_edge_p, check edges on complexity, make function
991 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
994 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
996 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
997 force flag_ira_share_save_slots to 0.
999 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1001 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1002 (vt_initialize): Set PROLOGUE_BB unconditionally.
1003 Add block comment about CFA_BASE_RTX machinery.
1004 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1005 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1007 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1010 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1011 parsing of syntax error in ObjC instance variable lists. In
1012 particular, avoid an infinite loop if there is a stray ']'.
1013 Updated error message.
1015 2011-05-24 Ian Lance Taylor <iant@google.com>
1017 * godump.c (go_define): Don't accept a string immediately after
1020 2011-05-24 Ian Lance Taylor <iant@google.com>
1022 * godump.c (struct godump_container): Add invalid_hash field.
1023 (go_format_type): Return false if type is found in invalid_hash.
1024 (go_output_typedef): Add invalid type to invalid_hash.
1025 (go_finish): Create and delete invalid_hash.
1027 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1029 PR tree-optimization/46728
1030 * tree-ssa-math-opts.c (powi_table): New.
1031 (powi_lookup_cost): New.
1033 (powi_as_mults_1): New.
1034 (powi_as_mults): New.
1035 (gimple_expand_builtin_powi): New.
1036 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1037 (gate_cse_sincos): Remove sincos/cexp restriction.
1039 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1042 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1044 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1045 * mips-tdump.c: Likewise.
1047 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1050 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1051 add -mno-XXX. Handle FMA.
1053 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1055 PR rtl-optimization/48633
1056 * ira-build.c (loop_with_eh_edge_p): New function.
1057 (mark_loops_for_removal): Use it.
1059 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1061 PR rtl-optimization/48971
1062 * ira.c (setup_pressure_classes): Don't check register move cost
1063 for classes with one registers. Don't add pressure class if there
1064 is a pressure class with the same available hard registers.
1065 Check contains_reg_of_mode. Fix a typo in collecting
1066 temp_hard_regset. Ignore hard registers not belonging to a class.
1068 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1071 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1073 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1074 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1076 PR gcov-profile/48845
1077 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1079 2011-05-24 Richard Guenther <rguenther@suse.de>
1081 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1082 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1083 (gimple_types_compatible_p_1): Adjust.
1084 (iterative_hash_canonical_type): Do not bother about complete vs.
1086 (gimple_canonical_types_compatible_p): Likewise.
1088 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1090 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1092 2011-05-24 Richard Guenther <rguenther@suse.de>
1095 * gimple.c (gimple_register_canonical_type): Revert
1097 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1098 does not for a tree for the case where it matters. Cache
1099 pointer-type alias-sets.
1101 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1103 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1104 (OBJS): Remove options.o, opts-common.o and prefix.o.
1105 (OBJS-libcommon-target): New.
1106 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1107 (BACKEND): Include libcommon-target.a.
1108 (MOSTLYCLEANFILES): Include libcommon-target.a.
1109 (libcommon-target.a): New.
1110 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1113 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1115 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1116 parts of output shared with the driver.
1117 * optc-gen.awk: Don't generate parts of output not shared with the
1119 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1120 * doc/options.texi (SourcerInclude): Mention options-save.c.
1121 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1122 (OBJS): Add options-save.o.
1123 (options-save.c, options-save.o): New.
1124 (options.o): Update dependencies.
1125 (gcc-options.o): Remove.
1126 (mostlyclean): Remove options-save.c.
1128 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1131 * dbxout.c: Include cgraph.h.
1132 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1133 and without value expr, return NULL if no varpool node exists for
1134 it or if it is not needed.
1135 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1138 * c-decl.c (start_decl): Convert expr to void_type_node.
1140 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1142 PR rtl-optimization/48826
1143 * emit-rtl.c (try_split): When splitting a call that is followed
1144 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1146 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1148 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1149 parameters passed in memory prefer using DECL_INCOMING_RTL over
1150 the pseudos it will be copied into.
1152 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1155 * config/i386/i386.c (ix86_option_override_internal): Save the
1156 initial options after checking vzeroupper.
1158 2011-05-23 David Li <davidxl@google.com>
1160 PR tree-optimization/48988
1161 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1162 Initialize has_valid_pred for each pred chain.
1164 2011-05-23 Richard Guenther <rguenther@suse.de>
1166 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1167 (iterative_hash_gimple_type): Always hash type names.
1169 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1171 * c-typeck.c (build_function_call_vec): Tweak call to
1172 check_function_arguments.
1174 2011-05-23 Richard Guenther <rguenther@suse.de>
1176 PR tree-optimization/49115
1177 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1178 is not necessarily carried out, do not claim it kills the ref.
1179 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1181 2011-05-23 Richard Guenther <rguenther@suse.de>
1184 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1185 what pointer types we accept for folding.
1187 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1189 * gthr-gnat.c: Remove.
1190 * gthr-gnat.h: Remove.
1191 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1192 * config/t-freebsd (LIB2ADDEH): Likewise.
1193 * config/t-linux (LIB2ADDEH): Likewise.
1194 * config/t-sol2 (LIB2ADDEH): Likewise.
1195 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1196 * configure.ac (target_thread_file): Remove gnat handling.
1197 * configure: Regenerate.
1198 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1200 2011-05-23 Tristan Gingold <gingold@adacore.com>
1201 Eric Botcazou <ebotcazou@adacore.com>
1203 * gcov.c (create_file_names): If no object directory is specified,
1204 keep the directory of the file.
1206 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1208 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1209 * configure: Regenerate.
1211 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1214 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1215 failed and the comparison has a single bit signed type, use
1216 constm1_rtx instead of const1_rtx for true value.
1217 (do_store_flag): If ops->type is single bit signed type, disable
1218 signel bit test optimization and pass -1 instead of 1 as last
1219 parameter to emit_store_flag_force.
1221 2011-05-23 Tom de Vries <tom@codesourcery.com>
1224 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1226 (infer_loop_bounds_from_undefined): Use new function.
1228 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1230 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1231 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1232 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1234 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1236 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1238 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1239 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1242 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1244 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1246 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1248 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1249 UNSPEC_MOVE_PIC pattern.
1251 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1253 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1254 (sparc-*-rtems*): Likewise.
1255 (sparc64-*-elf*): Likewise.
1256 (sparc64-*-rtems*): Likewise.
1257 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1258 * config/sparc/t-crtin: New file.
1259 * config/sparc/t-sol2 (crti.o): Delete rule.
1261 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1262 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1263 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1264 (ENDFILE_SPEC): Add crtn.o.
1266 2011-05-22 Tom de Vries <tom@codesourcery.com>
1269 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1270 CODE_CONTAINS_STRUCT (TS_COMMON).
1272 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1275 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1276 only after deciding which mode to use.
1278 2011-05-22 Tom de Vries <tom@codesourcery.com>
1281 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1282 for call to get_shiftadd_cost.
1284 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1287 * config/i386/cpuid.h (bit_MMXEXT): New define.
1289 2011-05-22 Nick Clifton <nickc@redhat.com>
1291 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1292 initialisation of non-existant args[2] element. Use args[] array
1293 not arg[] array to pass arguments to build_function_type_list.
1295 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1297 PR tree-optimization/49087
1298 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1300 2011-05-21 Jason Merrill <jason@redhat.com>
1303 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1304 static storage duration.
1306 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1308 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1311 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1313 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1314 false if there are call-saved registers here...
1315 (sparc_can_use_return_insn_p): ...but here instead.
1316 (save_or_restore_regs): Fix thinko.
1317 (sparc_expand_prologue): Use current_function_is_leaf.
1318 (sparc_frame_pointer_required): Likewise.
1320 2011-05-21 Nick Clifton <nickc@redhat.com>
1323 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1325 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1327 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1328 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1330 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1332 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1333 * optc-gen.awk: Move common code to opt-read.awk.
1334 * opth-gen.awk: Likewise.
1335 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1337 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1339 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1341 2011-05-20 Tom de Vries <tom@codesourcery.com>
1344 * tree-ssa-loop-ivopts.c: Include expmed.h.
1345 (get_shiftadd_cost): New function.
1346 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1348 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1351 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1352 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1354 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1356 * Makefile.in: Update comment referring to $(OBJS-common).
1358 2011-05-20 Ian Lance Taylor <iant@google.com>
1360 * godump.c (go_output_typedef): Put enum constants in the macro
1361 hash table to avoid duplicate Go const definitions.
1363 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1365 * Makefile.in (LIBDEPS): Add libcommon.a.
1367 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1368 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1369 pretty-print.o and version.o.
1370 (OBJS-libcommon): New.
1371 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1372 (BACKEND): Add libcommon.a.
1373 (MOSTLYCLEANFILES): Likewise.
1375 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1376 (cpp$(exeext)): Likewise.
1377 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1378 pretty-print.o and input.o.
1379 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1380 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1382 (mips-tfile): Don't explicitly use version.o.
1383 (mips-tdump): Likewise.
1384 (gcov.o): Depend on $(DIAGNOSTIC_H).
1385 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1386 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1387 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1388 * gcov-dump.c: Include intl.h and diagnostic.h.
1389 (main): Initialize diagnostics.
1390 * gcov.c: Include diagnostic.h.
1392 (main): Initialize diagnostics.
1393 * lto-wrapper.c: Include diagnostic.h.
1394 (main): Initialize diagnostics.
1396 2011-05-20 Michael Matz <matz@suse.de>
1398 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1400 2011-05-20 Michael Matz <matz@suse.de>
1401 Richard Guenther <rguenther@suse.de>
1403 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1404 use lto_streamer_cache_append directly instead of returning a VEC.
1405 (preload_common_node): Remove.
1406 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1408 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1410 2011-05-20 Richard Guenther <rguenther@suse.de>
1412 PR tree-optimization/49079
1413 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1414 MEM_REFs correctly for the trailing array access detection.
1415 Special case constants the same way as decls for overall size
1418 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1420 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1423 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1425 PR tree-optimization/49073
1426 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1427 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1428 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1430 2011-05-20 Richard Guenther <rguenther@suse.de>
1433 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1434 of pointer types the same way the middle-end does.
1436 2011-05-20 Richard Guenther <rguenther@suse.de>
1438 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1439 or pointer-to chains. Delay all fixup to uniquify_nodes.
1441 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1443 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1444 (fma4_fmaddsub): Likewise
1446 2011-05-19 Jan Hubicka <jh@suse.cz>
1448 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1449 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1450 (type_pair_cache): New static var.
1451 (lookup_type_pair): Use fixed sized custom hash; make inline.
1452 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1453 calls of lookup_type_pair.
1454 (print_gimple_types_stats): Remove cache stats.
1455 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1458 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1460 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1461 when TARGET_RDRND is active.
1462 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1463 Generate dummy SImode target register when target is NULL.
1465 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1467 * config/arm/arm-fpus.def: New.
1468 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1470 * config/arm/arm-tables.opt: Regenerate.
1471 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1472 (arm_option_override): Don't decode FPU name to string here.
1473 * config/arm/arm.opt (mfpu=): Use Enum.
1474 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1475 Update dependencies.
1477 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1479 * collect2.c: Include diagnostic.h.
1480 (fatal_perror, fatal, error, fancy_abort): Remove.
1481 (main): Set progname. Call xmalloc_set_program_name and
1482 diagnostic_initialize.
1483 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1484 scan_libraries, resolve_lib_name): Call fatal_error instead of
1485 fatal and fatal_perror.
1486 * collect2.h (error, fatal, fatal_perror): Don't declare.
1487 * tlink.c: Include diagnostic-core.h.
1488 (recompile_files): Call fatal_error instead of fatal_perror.
1489 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1490 pretty-print.o and input.o.
1491 (collect2.o, tlink.o): Update dependencies.
1493 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1495 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1497 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1500 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1501 COMDAT group syntax, both SPARC and x86 variants.
1502 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1503 * configure: Regenerate.
1504 * config/sol2.h (TARGET_SOLARIS): Define.
1505 (PUSHSECTION_FORMAT): Remove.
1506 (SECTION_NAME_FORMAT): Define.
1507 * config/sol2.c: Include hashtab.h.
1508 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1509 expansion, using SECTION_NAME_FORMAT.
1510 (solaris_comdat_htab): New variable.
1511 (struct comdat_entry): Define.
1512 (comdat_hash): New function.
1513 (comdat_eq): New function.
1514 (solaris_elf_asm_comdat_section): New function.
1515 (solaris_define_comdat_signature): New function.
1516 (solaris_code_end): New function.
1517 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1518 (solaris_code_end): Declare.
1519 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1520 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1522 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1523 Remove ATTRIBUTE_UNUSED.
1524 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1525 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1526 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1527 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1528 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1529 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1530 (PUSHSECTION_FORMAT): Remove.
1531 (SECTION_NAME_FORMAT): Redefine.
1533 2011-05-19 Kai Tietz <ktietz@redhat.com>
1535 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1536 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1537 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1539 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1540 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1542 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1544 2011-05-19 Richard Guenther <rguenther@suse.de>
1547 * tree-object-size.c (addr_object_size): If the pointed-to
1548 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1550 2011-05-19 Richard Guenther <rguenther@suse.de>
1552 * gimple.c (gimple_types_compatible_p_1): Compare names of
1553 the types themselves.
1554 (iterative_hash_gimple_type): And hash them that way.
1555 (gimple_register_type_1): If we register a main variant properly
1556 initialize the leader to ourselves.
1558 2011-05-19 Tom de Vries <tom@codesourcery.com>
1561 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1562 get_loop_invariant_expr_id.
1563 (get_loop_invariant_expr_id): Use get_expr_id.
1564 (parm_decl_cost): New function.
1565 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1566 Improve bound cost estimation. Use different inv_expr_id for elim and
1569 2011-05-19 Tom de Vries <tom@codesourcery.com>
1572 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1573 cost_base.cost == 0.
1575 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1578 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1579 Properly handle load cast.
1581 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1583 PR tree-optimization/49039
1584 * tree-vrp.c (extract_range_from_binary_expr): For
1585 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1586 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1588 2011-05-18 Tom de Vries <tom@codesourcery.com>
1591 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1593 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1595 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1596 (*tls_global_dynamic_64): Ditto.
1597 (*tls_local_dynamic_base_32_gnu): Ditto.
1598 (*tls_local_dynamic_base_64): Ditto.
1599 (tls_initial_exec_64_sun): Ditto.
1601 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1603 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1604 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1606 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1607 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1608 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1609 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1610 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1611 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1612 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1614 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1616 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1617 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1618 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1619 target_thread_pointer, arm_structure_size_boundary, struct
1620 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1621 struct abi_name, arm_all_abis): Remove.
1622 (arm_option_override) Don't process most enumerated option values here.
1623 Don't process target_fpe_name here. Work with integer not string for
1624 structure size boundary; use separate diagnostics for each case.
1625 * config/arm/arm.h (enum float_abi_type, enum
1626 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1628 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1629 arm_structure_size_boundary): Remove.
1630 * config/arm/arm.opt (mabi=): Use Enum and Init.
1631 (arm_abi_type): New Enum and EnumValue entries.
1632 (mfloat-abi=): Use Enum and Init.
1633 (float_abi_type): New Enum and EnumValue entries.
1634 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1635 (mfp16-format=): Use Enum and Init.
1636 (arm_fp16_format_type): New Enum and EnumValue entries.
1637 (mstructure-size-boundary=): Use UInteger and Init.
1638 (mtp=): Use Enum and Init.
1639 (arm_tp_type): New Enum and EnumValue entries.
1641 2011-05-18 Richard Guenther <rguenther@suse.de>
1643 PR tree-optimization/49018
1644 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1645 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1646 gimple_has_side_effects.
1648 2011-05-18 Richard Guenther <rguenther@suse.de>
1650 * gimple.c (gimple_register_type_1): New function, split out from ...
1651 (gimple_register_type): ... here. Avoid infinite recursion.
1653 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1655 PR tree-optimization/41881
1656 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1657 reduction_chains along with a macro for its access.
1658 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1659 (destroy_loop_vec_info): Free reduction chains.
1660 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1661 (vect_is_slp_reduction): New function.
1662 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1663 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1664 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1665 definition types for reduction chains.
1666 (vect_supported_load_permutation_p): Don't allow permutations for
1668 (vect_analyze_slp_instance): Support reduction chains.
1669 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1670 (vect_get_constant_vectors): Handle reduction chains.
1671 (vect_schedule_slp_instance): Mark the first statement of the
1672 reduction chain as reduction.
1674 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1676 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1677 names for group elements access.
1678 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1679 reduction chains as well. Remove data reference and interleaving
1680 related words from the fields names.
1681 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1683 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1684 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1685 vect_update_interleaving_chain, vect_same_range_drs,
1686 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1687 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1688 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1689 vect_analyze_group_access, vect_analyze_data_ref_access,
1690 vect_create_data_ref_ptr, vect_transform_strided_load,
1691 vect_record_strided_load_vectors): Likewise.
1692 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1693 vect_model_load_cost, vectorizable_store, vectorizable_load,
1694 vect_remove_stores, new_stmt_vec_info): Likewise.
1695 * tree-vect-slp.c (vect_build_slp_tree,
1696 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1698 2011-05-18 Richard Guenther <rguenther@suse.de>
1701 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1702 operand verification.
1703 (verify_gimple_assign_binary): Likewise.
1704 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1705 to non-1-precision BOOLEAN_TYPEs.
1707 2011-05-18 Tom de Vries <tom@codesourcery.com>
1710 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1712 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1714 PR tree-optimization/49000
1715 * tree-ssa.c (execute_update_addresses_taken): Call
1716 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1717 be rewritten and decl has been marked for renaming, reset
1720 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1722 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1723 enum_opts_set when testing if attributes have set -mfpmath=.
1725 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1727 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1729 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1731 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1733 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1734 id.transform_lang_insert_block with NULL.
1736 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1738 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1739 (output_fp_compare): Change args 3 and 4 to bool.
1740 (ix86_expand_call): Change arg 6 to bool.
1741 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1742 (ix86_attr_length_vex_default): Change arg 3 to bool.
1743 * config/i386/i386.md: Update all uses.
1744 * config/i386/i386.c: Ditto.
1745 (ix86_flags_dependent): Change return type to bool.
1747 2011-05-17 Richard Guenther <rguenther@suse.de>
1749 * gimple.c (type_hash_pair_compare): Fix comparison.
1751 2011-05-17 Richard Guenther <rguenther@suse.de>
1753 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1754 case some more, fix final hash value of the non-singleton case.
1756 2011-05-17 Richard Guenther <rguenther@suse.de>
1760 2011-05-16 Richard Guenther <rguenther@suse.de>
1762 * gimple.c (gimple_types_compatible_p_1): Use names of the
1763 type itself, not its main variant.
1764 (iterative_hash_gimple_type): Likewise.
1766 2011-05-17 Richard Guenther <rguenther@suse.de>
1768 * gimple.c (gimple_register_canonical_type): Use the main-variant
1769 leader for computing the canonical type.
1771 2011-05-17 Nick Clifton <nickc@redhat.com>
1773 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1776 * config/rx/rx.md: Add peephole to remove redundant extensions
1778 (bitset_in_memory): Use rx_restricted_mem_operand.
1779 (bitinvert_in_memory): Likewise.
1780 (bitclr_in_memory): Likewise.
1782 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1783 Nick Clifton <nickc@redhat.com>
1785 * config/rx/rx.md: Add peepholes to match a register move followed
1786 by a comparison of the moved register. Replace these with an
1787 addition of zero that does both actions in one instruction.
1789 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1792 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1793 predicate to allow CONST_INT.
1794 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1796 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1798 * opts-common.c (opt_enum_arg_to_value): New.
1799 * opts.h (opt_enum_arg_to_value): Declare.
1800 * config/i386/i386.opt (fpmath): Remove.
1801 (mfpmath=): Use Enum, Init and Save.
1802 (fpmath_unit): New Enum and EnumValue entries.
1803 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1804 name for function fpmath state.
1805 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1806 * config/i386/i386.c: Include diagnostic.h.
1807 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1808 (ix86_target_string): Take enum fpmath_unit value instead of string.
1809 (ix86_debug_options): Update call to ix86_target_string.
1810 (ix86_option_override_internal): Don't process fpmath strings here.
1811 (x86_function_specific_save, ix86_function_specific_restore):
1812 Don't handle fpmath state specially.
1813 (ix86_function_specific_print): Pass fpmath state to
1814 ix86_target_string instead of printing in this function.
1815 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1816 Handle enum attributes.
1817 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1818 (ix86_valid_target_attribute_tree): Update option_strings
1819 handling. Handle fpmath as enum option.
1820 (ix86_can_inline_p): Update field names for function fpmath state.
1821 (ix86_expand_builtin): Update call to ix86_target_string.
1822 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1823 (ix86_fpmath): Remove.
1824 * config/i386/t-i386 (i386.o): Update dependencies.
1826 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1828 PR preprocessor/48677
1829 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1830 from decoded_options[0], not from itself.
1832 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1834 * config/i386/constraints.md (z): New constraint.
1835 * config/i386/i386.c (c): New mode attribute.
1836 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1837 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1838 constraint for operand 0.
1839 (*call_vzeroupper): Ditto.
1840 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1841 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1842 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1843 Use "lzm" constraint for operand 0.
1844 (*call_pop_vzeroupper): Ditto.
1845 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1846 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1847 constraint for operand 0.
1848 (*sibcall_vzeroupper): Ditto.
1849 (*sibcall_rex64_ms_sysv): Ditto.
1850 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1851 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1852 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1853 (*sibcall_pop_vzeroupper): Ditto.
1854 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1855 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1856 mode iterator. Use "<c>zm" constraint for operand 1.
1857 (*call_value_vzeroupper): Ditto.
1858 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1860 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1861 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1862 *call_value_pop_1. Use "lzm" constraint for operand 1.
1863 (*call_value_pop_vzeroupper): Ditto.
1864 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1865 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1866 mode iterator. Use "Uz" constraint for operand 1.
1867 (*sibcall_value_vzeroupper): Ditto.
1868 (*sibcall_value_rex64_ms_sysv): Ditto.
1869 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1870 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1871 constraint for operand 1.
1872 (*sibcall_value_pop_vzeroupper): Ditto.
1873 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1874 and "z" constraint for operand 2.
1875 (*tls_global_dynamic_32_gnu): Ditto.
1876 (*tls_local_dynamic_base_32_gnu): Ditto.
1877 (*tls_local_dynamic_base_64): Ditto.
1878 (*tls_local_dynamic_32_once): Ditto.
1879 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1881 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1883 2011-05-16 Richard Guenther <rguenther@suse.de>
1885 * gimple.c (gimple_types_compatible_p_1): Use names of the
1886 type itself, not its main variant.
1887 (iterative_hash_gimple_type): Likewise.
1889 2011-05-16 Richard Guenther <rguenther@suse.de>
1891 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1892 always visit pointer target and function result and argument types.
1894 2011-05-16 Jason Merrill <jason@redhat.com>
1897 * tree-inline.c (copy_statement_list): Put back recursion.
1899 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1903 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1904 * config/avr/avr.md ("*ior<mode>qi.byte0",
1905 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1907 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1910 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1911 register is needed for a function argument.
1913 2011-05-16 Richard Guenther <rguenther@suse.de>
1915 * gimple.c (struct type_hash_pair): New type.
1916 (type_hash_pair_compare): New function.
1917 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1919 2011-05-16 Revital Eres <revital.eres@linaro.org>
1921 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1923 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1925 * config/i386/i386.md (floating point move splitters): Fix
1926 usage of standard_80387_constant_p.
1927 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1929 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1931 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1933 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1935 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1936 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1937 (tree_ssa_lim_finalize): Likewise.
1939 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1941 * config/i386/constraint.md (Yd, Yx): New register constraints.
1942 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1943 Yd conditional register constraint.
1944 (*movtf_internal): Use standard_sse_constant_opcode.
1945 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1946 Yx conditional register constraint.
1947 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1948 Yd conditional register constraint. Use standard_sse_constant_p to
1949 check for valid SSE constants and call standard_sse_constant_opcode to
1951 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1952 constants and call standard_sse_constant_opcode to output SSE insn.
1953 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1954 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1955 optimize_size is set.
1956 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1958 2011-05-14 Tobias Burnus <burnus@net-b.de>
1960 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1962 2011-05-13 Martin Jambor <mjambor@suse.cz>
1964 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1965 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1966 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1967 (evaluate_conditions_for_ipcp_clone): Removed.
1968 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1969 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1970 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1972 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1974 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1975 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1976 lieu of MAY_HAVE_DEBUG_STMTS.
1977 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1978 debug statements if !MAY_HAVE_DEBUG_STMTS.
1980 2011-05-13 Martin Thuresson <martint@google.com>
1982 PR gcov-profile/47793
1983 * libgcov.c (gcov_exit): Support relative profile paths.
1984 * doc/invoke.texi (-fprofile-dir): Update for above change.
1986 2011-05-13 Richard Guenther <rguenther@suse.de>
1988 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1989 type-pair caching, do not compare hashes.
1991 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1994 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1995 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1997 2011-05-13 Kai Tietz <ktietz@redhat.com>
1999 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2000 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2001 compatible type for TRUTH_NOT_EXPR.
2003 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2005 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2006 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2007 can_create_pseudo_p ().
2009 2011-05-13 Richard Guenther <rguenther@suse.de>
2012 * gimple.c (iterative_hash_gimple_type): Revert change in
2013 pointer target and function result and argument hashing.
2015 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2017 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2018 (*movxf_internal_nointeger): Ditto.
2019 (*movdf_internal_rex64): Ditto.
2020 (*movdf_internal): Ditto.
2021 (*movdf_internal_nointeger): Ditto.
2022 (*movsf_internal): Ditto.
2023 (sincos splitters): Use can_create_pseudo ().
2025 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2027 * config/i386/i386-opts.h: New.
2028 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2029 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2030 ix86_section_threshold): Remove.
2031 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2032 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2034 (ix86_option_override_internal): Don't decode strings for options
2035 other than -march=, -mtune= and -mfpmath=. Don't allow for
2036 __attribute__ uses in remaining diagnostics for options with
2037 string arguments. Don't check for integer arguments being negative.
2038 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2039 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2040 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2041 ix86_branch_cost, ix86_section_threshold): Remove.
2042 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2044 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2046 (masm=): Use Enum and Init.
2047 (asm_dialect): New Enum and EnumValue entries.
2048 (mbranch-cost=): Use UInteger.
2049 (mlarge-data-threshold=): Use UInteger and Init.
2050 (mcmodel=): Use Enum and Init.
2051 (cmodel): New Enum and EnumValue entries.
2052 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2053 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2054 mregparm=): Use UInteger.
2055 (mstringop-strategy=): Use Enum and Init.
2056 (stringop_alg): New Enum and EnumValue entries.
2057 (mtls-dialect=): Use Enum and Init.
2058 (tls_dialect): New Enum and EnumValue entries.
2059 (mabi=): Use Enum and Init.
2060 (calling_abi): New Enum and EnumValue entries.
2061 (mveclibabi=): Use Enum and Init.
2062 (ix86_veclibabi): New Enum and EnumValue entries.
2064 2011-05-13 Nick Clifton <nickc@redhat.com>
2066 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2067 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2069 2011-05-13 Kai Tietz <ktietz@redhat.com>
2072 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2073 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2074 (gimple_boolify): Check for cast for boolean_type_node instead for
2077 2011-05-13 Richard Guenther <rguenther@suse.de>
2079 PR tree-optimization/48172
2080 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2081 multiplying by number of iterations for equal step.
2082 (vect_create_cond_for_alias_checks): Likewise.
2084 2011-05-13 Andreas Schwab <schwab@redhat.com>
2086 * configure.ac: Use AS_HELP_STRING throughout.
2087 * configure: Regenerate.
2089 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2091 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2092 (ix86_emit_restore_regs_using_mov): Likewise.
2093 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2095 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2097 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2098 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2099 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2100 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2101 RTX_OK_FOR_OLO10_P): ...here.
2102 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2105 2011-05-12 Kai Tietz <ktietz@redhat.com>
2107 * gimplify.c (gimple_boolify): Re-boolify expression
2108 arguments even if expression type is of kind BOOLEAN_TYPE.
2109 (gimplify_boolean_expr): Removed.
2110 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2111 and XOR. Additional take care that we keep expression's type.
2112 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2113 of TRUTH_AND|OR|XOR_EXPR.
2115 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2117 PR tree-optimization/48975
2118 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2119 on all bbs here and free and clear ifc_bbs at the end.
2121 2011-05-12 Richard Guenther <rguenther@suse.de>
2123 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2124 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2125 until after simple checks.
2126 (gimple_types_compatible_p): Likewise.
2127 (iterative_hash_gimple_type): Always hash pointer targets
2128 and function return and argument types.
2129 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2130 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2131 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2132 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2133 completely in the simple compare section.
2134 (gimple_register_canonical_type): Query the cache again after
2137 2011-05-12 Richard Guenther <rguenther@suse.de>
2139 PR tree-optimization/48172
2140 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2141 the number of iterations from the segment size calculation.
2142 (vect_create_cond_for_alias_checks): Adjust.
2144 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2147 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2148 if validate_subreg fails.
2150 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2152 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2153 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2156 2011-05-12 DJ Delorie <dj@redhat.com>
2158 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2159 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2160 created builtin into rx_builtins array.
2161 (rx_builtin_decl): New function.
2162 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2164 2011-05-12 DJ Delorie <dj@redhat.com>
2165 Nick Clifton <nickc@redhat.com>
2167 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2168 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2169 (rx_is_legitimate_address): Add pre-decrement and post-increment
2170 addressing in HImode and QImode. Fix test for out of range
2172 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2173 (rx_align_for_label): Test label before extracting its usage count.
2174 (rx_adjust_insn_lengths): Fix selection of insn codes.
2175 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2177 2011-05-11 Jason Merrill <jason@redhat.com>
2179 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2181 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2183 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2184 reindent the subsequent block.
2186 2011-05-11 Satoru Takabayashi <satorux@google.com>
2187 Paul Pluzhnikov <ppluzhnikov@google.com>
2189 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2190 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2191 * config.in: Add LINKER_HASH_STYLE.
2192 * configure.ac: Add --with-linker-hash-style.
2193 * configure: Regenerate.
2195 2011-05-11 Richard Guenther <rguenther@suse.de>
2198 * gimple.c (iterative_hash_canonical_type): Fix typo.
2200 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2202 * config/i386/i386.c (legitimize_tls_address)
2203 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2204 expanders directly for TARGET_GNU2_TLS. Determine pic and
2205 __tls_get_addr symbol reference here. Update call to
2206 gen_tls_global_dynamic_{32,64} for added arguments.
2207 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2208 expanders directly for TARGET_GNU2_TLS. Determine
2209 __tls_get_addr symbol reference here. Update call to
2210 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2211 unique UNSPEC REG_EQUIV to libcall block.
2212 (ix86_tls_get_addr): Declare static.
2213 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2214 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2215 Do not determine pic and __tls_get_addr symbol reference here. Do not
2216 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2217 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2218 (tls_global_dynamic_64): Add operand 2. Do not determine
2219 __tls_get_addr symbol reference here. Do not call
2220 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2221 (tls_local_dynamic_base64): Ditto for operand 1.
2223 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2225 * function.c (expand_function_start): Initialize stack_check_probe_note
2226 only if the generic stack checking mechanism is used.
2228 2011-05-11 Richard Guenther <rguenther@suse.de>
2230 PR tree-optimization/15256
2231 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2232 (A & B) | C, combine (A op CST1) op CST2.
2233 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2234 visit assigns that have uses.
2236 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2238 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2239 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2240 (unpack_ts_type_common_value_fields): ...this. Update comment.
2241 (unpack_value_fields): Adjust for renaming.
2242 (lto_input_ts_type_tree_pointers): Split into...
2243 (lto_input_ts_type_common_tree_pointer): ...this and...
2244 (lto_input_ts_type_non_common_tree_pointers): ...this.
2245 (lto_input_tree_pointers): Adjust for above split.
2246 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2247 (pack_ts_type_common_value_fields): ...this. Update comment.
2248 (lto_output_ts_type_tree_pointers): Split into...
2249 (lto_output_ts_type_common_tree_pointers): ...this and...
2250 (lto_output_ts_type_non_common_tree_pointers): ...this.
2251 (lto_output_tree_pointers): Adjust for above split.
2252 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2253 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2254 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2255 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2257 (struct tree_type): Split into...
2258 (struct tree_type_common: ...this and...
2259 (struct tree_type_with_lang_specific): ...this and...
2260 (struct tree_type_non_common): ...this. Adjust accessor macros
2262 (TYPE_VALUES_RAW): Define.
2263 (union tree_node): Update for above changes.
2264 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2266 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2267 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2268 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2269 * treestructu.def (TS_TYPE): Remove.
2270 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2273 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2276 * tree-ssa.c (reset_debug_uses): New function.
2277 * tree-flow.h (reset_debug_uses): New prototype.
2278 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2279 * tree-loop-distribution.c (generate_loops_for_partition): Call
2280 reset_debug_uses on the stmts that will be removed. Keep around
2281 all debug stmts, don't count them as bits in partition bitmap.
2282 (generate_builtin): Don't count debug stmts or labels as bits in
2285 2011-05-11 Richard Guenther <rguenther@suse.de>
2287 * gimple.c (gimple_type_hash_1): Merge with ...
2288 (gimple_type_hash): ... this.
2289 (gtc_visit): Remove mode parameter and simplify accordingly.
2290 (gimple_types_compatible_p_1): Likewise.
2291 (gimple_types_compatible_p): Likewise.
2292 (iterative_hash_gimple_type): Likewise.
2294 (gimple_type_eq): Adjust.
2296 2011-05-11 Revital Eres <revital.eres@linaro.org>
2298 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2299 enters the branch create an anti edge in the opposite direction
2300 to prevent the creation of reg-moves.
2301 * modulo-sched.c: Adjust comment to reflect the fact we are
2302 scheduling closing branch.
2303 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2304 (stage_count): New field in struct partial_schedule.
2305 (calculate_stage_count): New function.
2306 (normalize_sched_times): Rename to reset_sched_times and handle
2307 incrementing the sched time of the nodes by a constant value
2308 passed as parameter.
2309 (duplicate_insns_of_cycles): Skip closing branch.
2310 (sms_schedule_by_order): Schedule closing branch.
2311 (ps_insn_find_column): Handle closing branch.
2312 (sms_schedule): Call reset_sched_times and adjust the code to
2313 support scheduling of the closing branch.
2314 (ps_insert_empty_row): Update calls to normalize_sched_times
2315 and rotate_partial_schedule functions.
2317 2011-05-11 Richard Guenther <rguenther@suse.de>
2320 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2322 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2324 * opts.c (finish_options): Move warning settings from process_options.
2325 * toplev.c (process_options): Move warning settings to finish_options.
2327 2011-05-11 Richard Guenther <rguenther@suse.de>
2329 PR tree-optimization/18041
2330 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2331 (simplify_bitwise_binary): ... this. Handle operand conversions
2332 by applying them to the result instead.
2333 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2335 2011-05-11 Richard Guenther <rguenther@suse.de>
2337 * gimple.c (gimple_canonical_types_compatible_p): Split out
2338 from gimple_types_compatible_p and friends. Do not recurse
2339 to pointed-to types.
2340 (gimple_canonical_type_eq): Use it.
2341 (iterative_hash_canonical_type): Split out from
2342 iterative_hash_gimple_type and friends. Do not recurse
2343 to pointed-to types.
2344 (gimple_canonical_type_hash): Use it, allocate the hash here.
2346 2011-05-11 Revital Eres <revital.eres@linaro.org>
2348 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2351 2011-05-11 Revital Eres <revital.eres@linaro.org>
2353 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2354 instead of PREV_INSN.
2356 2011-05-11 Revital Eres <revital.eres@linaro.org>
2358 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2359 * loop-doloop.c (doloop_condition_get): Likewise.
2360 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2362 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2364 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2366 * tree.def (CASE_LABEL_EXPR): Add an operand.
2367 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2369 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2371 * c-decl.c (c_override_global_bindings_to_false): Remove.
2372 (global_bindings_p): Don't check
2373 c_override_global_bindings_to_false.
2374 * c-tree.h (c_override_global_bindings_to_false): Remove.
2375 * c-typeck.c (composite_type): Don't set
2376 c_override_global_bindings_to_false.
2378 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2380 PR target/48857, 48495
2381 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2383 (VSX_MOVE_MODE): Ditto.
2384 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2385 VSX vector types. Add V2DImode.
2386 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2387 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2388 (MODES_TIEABLE_P): Ditto.
2390 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2391 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2393 (init_cumulative_args): Ditto.
2394 (rs6000_function_arg_boundary): Ditto.
2395 (rs6000_function_arg_advance_1): Ditto.
2396 (rs6000_function_arg): Ditto.
2397 (rs6000_function_ok_for_sibcall): Ditto.
2398 (emit_frame_save): Ditto.
2399 (rs6000_function_value): Ditto.
2400 (rs6000_libcall_value): Ditto.
2402 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2404 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2405 i386/darwin-lib.h to $libgcc_tm_file.
2406 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2408 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2410 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2412 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2414 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2415 * config/rs6000/rs6000-tables.opt: New file (generated).
2416 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2417 rs6000/rs6000-tables.opt to extra_options.
2418 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2419 * config/rs6000/rs6000.c (rs6000_select): Remove.
2420 (processor_target_table): Move contents to rs6000-cpus.def.
2421 (darwin_rs6000_override_options): Check
2422 global_options_set.x_rs6000_cpu_index instead of
2423 rs6000_select[1].string.
2424 (rs6000_option_override_internal): Likewise.
2425 (rs6000_handle_option): Don't assert that global structures are in
2426 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2427 (rs6000_default_cpu): New variable.
2428 (rs6000_file_start): Set it instead of local default_cpu. Check
2429 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2430 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2431 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2432 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2433 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2434 rs6000_select): Remove.
2435 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2437 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2438 * config/rs6000/t-rs6000
2439 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2440 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2441 global_options_set.x_rs6000_cpu_index instead of
2442 rs6000_select[1].string.
2443 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2444 global_options_set.x_rs6000_cpu_index instead of
2445 rs6000_select[1].string.
2447 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2449 * config.gcc (libgcc_tm_file): Define instead of including files
2450 from ../../libgcc/config/ in tm_file.
2451 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2452 * configure: Regenerate.
2453 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2454 libgcc_tm.h, cs-libgcc_tm.h): New.
2455 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2456 (clean): Remove libgcc_tm.h.
2457 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2458 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2459 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2461 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2464 * config/avr/avr.c (avr_ret_register): Return unsigned int
2466 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2467 it to avr_libcall_value.
2468 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2470 (avr_expand_binop_builtin): Ditto.
2471 (avr_expand_unop_builtin): Ditto.
2473 2011-05-10 DJ Delorie <dj@redhat.com>
2475 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2476 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2477 * config/rx/rx.c (rx_align_for_label): Add label and
2478 uses_threshold parameters. Do not align when the label is not
2480 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2482 2011-05-10 Richard Guenther <rguenther@suse.de>
2484 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2485 a series of conversions and apply foldings similar to what
2487 (tree_ssa_forward_propagate_single_use_vars): Call it.
2489 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2491 PR tree-optimization/48611
2492 PR tree-optimization/48794
2493 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2494 referenced from RESX or EH_DISPATCH arguments.
2497 * dfp.c (decimal_to_decnumber): Handle conversion from
2498 dconst{1,2,m1,half}.
2500 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2502 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2503 for !flag_prefer_avx128.
2504 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2506 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2508 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2509 (fold_ternary_loc): Use expr_location_or.
2511 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2514 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2515 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2516 Pmode and mem_mode is not VOIDmode.
2518 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2520 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2521 TYPE_QUAL_RESTRICT): Convert to enum.
2523 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2525 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2526 (const_pow2_1_to_8_operand): Ditto.
2527 (const_pow2_1_to_128_operand): Ditto.
2528 (const_pow2_1_to_32768_operand): Ditto.
2529 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2530 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2531 in insn constraint to check integer value of operand 3.
2532 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2534 (PINSR_MODE): New mode iterator.
2535 (sse2p4_1): New mode attribute.
2536 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2537 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2538 iterator. Use const_int_operand instead of
2539 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2540 exact_log2 in insn constraint to check integer value of operand 3.
2542 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2544 * config/i386/sse.md (blendbits): Remove mode attribute.
2545 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2546 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2547 Check integer value of operand 3 in insn constraint.
2549 2011-05-09 Richard Guenther <rguenther@suse.de>
2551 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2553 (lto_symtab_merge): Likewise. Do not register types here.
2554 (lto_symtab_merge_decls_2): Likewise.
2555 (lto_symtab_merge_decls_1): Likewise.
2556 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2557 * gimple.c (enum gtc_mode): Declare.
2558 (gimple_types_compatible_p): Make static.
2560 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2562 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2563 temporary register to match Pmode.
2565 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2567 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2568 and *vec_concatv4si_1_avx.
2570 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2572 PR rtl-optimization/48927
2573 * ira-conflicts.c (commutative_constraint_p): Use
2574 recog_data.alternative_enabled_p to disable alternatives where
2575 "enabled" attribute is false.
2576 (get_dup_num): Ditto.
2577 * ira-lives.c (single_reg_class): Ditto.
2578 (ira_implicitly_set_insn_hard_regs): Ditto.
2580 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2582 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2583 (dataflow_set_preserve_mem_locs): Likewise.
2585 2011-05-09 Philipp Thomas <pth@suse.de>
2587 * config/mep/mep.c (mep_validate_vliw): Syntax description
2588 should not be translated.
2590 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2592 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2593 * config/mips/mips-tables.opt: New file (generated).
2594 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2595 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2596 MIPS_ARCH_OPTION_NATIVE): Define.
2597 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2599 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2600 mips_parse_cpu): Remove.
2601 (mips_cpu_info_from_opt, mips_default_arch): New.
2602 (mips_handle_option): Don't assert that global structures are in
2603 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2604 (mips_option_override): Use new variables and functions to set
2605 state of these options. Use strcmp to check for individual CPU names.
2606 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2608 * config/mips/mips.opt (march=): Use ToLower and Enum.
2609 (mips): Use ToLower, Enum and Var.
2610 (mtune=): Use ToLower and Enum.
2611 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2613 2011-05-08 Jan Hubicka <jh@suse.cz>
2615 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2616 Arrange type pairs to be UID ordered.
2617 (gimple_lookup_type_leader): Make inline.
2619 2011-05-09 Nick Clifton <nickc@redhat.com>
2622 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2626 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2629 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2631 * combine.c (simplify_comparison): Abstract out parts into...
2632 (simplify_compare_const): ... new function.
2633 (try_combine): Generalize parallel arithmetic/compare combining
2634 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2636 2011-05-08 Jan Hubicka <jh@suse.cz>
2638 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2639 (cgraph_create_virtual_clone): Call hooks once virtual clone
2641 * cgraph.h (cgraph_clone_node): Update prototype.
2642 * ipa-cp.c (ipcp_estimate_growth): Use
2643 estimate_ipcp_clone_size_and_time.
2644 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2645 * lto-cgraph.c (input_node): Update.
2646 * ipa-inline.c (recursive_inlining): Update.
2647 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2648 (evaluate_conditions_for_known_args): Break out from ...
2649 (evaluate_conditions_for_edge): ... here.
2650 (evaluate_conditions_for_ipcp_clone): New function.
2651 (inline_node_duplication_hook): Update clone summary based
2653 (estimate_callee_size_and_time): Rename to ...
2654 (estimate_node_size_and_time): take NODE instead of EDGE;
2655 take POSSIBLE_TRUTHS as argument.
2656 (estimate_callee_size_and_time): Update.
2657 (estimate_ipcp_clone_size_and_time): New function.
2658 (do_estimate_edge_time): Update.
2660 2011-05-08 Richard Guenther <rguenther@suse.de>
2664 * expmed.c (expand_shift_1): Compute adjusted constant shift
2667 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2669 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2671 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2673 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2675 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2677 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2679 2011-05-07 Jan Hubicka <jh@suse.cz>
2681 * ipa-inline-transform.c (inline_call): Account when program size
2683 * ipa-inline.c (relative_time_benefit): New function.
2684 (edge_badness): Reorganize to be power 2 based; fix thinko when
2685 computing badness for negative growth; update comments to match
2686 reality; better dumps.
2688 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2690 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2691 type to bool and adjust comment.
2692 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2693 (fold_mathfn_compare): Remove calls to global_bindings_p.
2694 (fold_inf_compare): Likewise.
2695 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2696 * c-tree.h (global_bindings_p): Adjust prototype.
2697 * c-decl.c (global_bindings_p): Return bool and simplify.
2699 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2701 PR tree-optimization/48837
2702 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2703 when accumulator transformation is performed.
2705 2011-05-06 Jan Hubicka <jh@suse.cz>
2707 * i386.h (ix86_tune_indices): Add
2708 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2709 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2710 * i386.c (initial_ix86_tune_features): Add
2711 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2712 (software_prefetching_beneficial_p): Remove predicate.
2713 (ix86_option_override_internal): Use new macro.
2715 2011-05-06 Jan Hubicka <jh@suse.cz>
2717 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2719 2011-05-06 Jan Hubicka <jh@suse.cz>
2721 * cgraph.c (cgraph_add_thunk): Create real function node instead
2722 of alias node; finalize it and mark needed/reachale; arrange visibility
2723 to be right and add it into the corresponding same comdat group list.
2724 (dump_cgraph_node): Dump thunks.
2725 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2726 cgraph_function_with_gimple_body_p,
2727 cgraph_first_function_with_gimple_body,
2728 cgraph_next_function_with_gimple_body): New functions.
2729 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2731 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2732 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2733 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2734 devirtualization when optimizing.
2735 (verify_cgraph_node): Verify thunks.
2736 (cgraph_analyze_function): Analyze thunks.
2737 (cgraph_mark_functions_to_output): Output thunks only in combination
2738 with function they are assigned to.
2739 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2740 alias into normal node.
2741 (assemble_thunks): New functoin.
2742 (cgraph_expand_function): Use it.
2743 * lto-cgraph.c (lto_output_node): Stream thunks.
2744 (input_overwrite_node): Stream in thunks.
2745 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2746 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2747 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2748 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2749 (inline_analyze_function): Do not care about thunk jump functions.
2750 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2751 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2752 cgraph_function_with_gimple_body_p.
2753 * passes.c (do_per_function_toporder): Use
2754 cgraph_function_with_gimple_body_p.
2755 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2756 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2757 (function_called_by_processed_nodes_p): Likewise.
2759 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2761 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2762 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2764 (mabi=): Replace with separate entries for mabi=altivec,
2765 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2766 mabi=ieeelongdouble and mabi=ibmlongdouble.
2767 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2768 check for -mabi=spe without SPE ABI support here.
2769 (rs6000_handle_option): Replace OPT_mabi_ handling with
2770 OPT_mabi_altivec and OPT_mabi_spe handling.
2772 2011-05-06 Cary Coutant <ccoutant@google.com>
2774 * dwarf2out.c (contains_subprogram_definition): New function.
2775 (should_move_die_to_comdat): Call it.
2777 2011-05-06 Jeff Law <law@redhat.com>
2779 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2780 remove_ctrl_stmt_and_useless_edges.
2781 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2782 (fixup_template_block, thread_single_edge): Likewise.
2783 (mark_threaded_blocks): Use THREAD_TARGET.
2785 2011-05-06 Alan Modra <amodra@gmail.com>
2788 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2789 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2791 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2793 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2794 constraint modifier to "r".
2796 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2798 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2799 fall through for OPT_mcmodel_.
2801 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2803 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2805 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2807 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2810 * config/arm/arm.opt (marm): Document it.
2811 (mthumb): Reject negative variant.
2813 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2816 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2817 Fix typo in "ccvt" variable name.
2819 2011-05-06 Tristan Gingold <gingold@adacore.com>
2822 * config/vms/vms-ar.c (main): Remove cwd variable.
2824 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2827 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2829 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2831 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2832 * gimplify.c (gimplify_switch_expr): Likewise.
2833 * omp-low.c (expand_omp_sections): Likewise.
2834 * tree-eh.c (lower_try_finally_switch): Likewise.
2835 (lower_eh_dispatch): Likewise.
2836 * tree.h (build_case_label): Declare.
2837 * tree.c (build_case_label): Define.
2839 2011-05-05 Jason Merrill <jason@redhat.com>
2842 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2843 (copy_statement_list): Don't recurse.
2844 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2847 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2849 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2850 through from -mfpu= handling.
2851 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2853 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2855 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2858 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2860 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2862 (hppa[12]*-*-hpux11*): Ditto.
2863 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2864 * config/ia64/hpux-unix2003.h: New.
2865 * config/pa/pa-hpux1131.opt: New.
2866 * config/pa/pa-hpux1131.h: New.
2867 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2868 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2869 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2871 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2874 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2875 instead of mode as 3rd argument to recursive call.
2876 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2877 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2879 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2880 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2881 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2882 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2884 2011-05-05 Julian Brown <julian@codesourcery.com>
2886 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2887 parenthesis in D-register case.
2889 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2891 * opt-functions.awk (var_type_struct): Handle Enum options.
2892 * optc-gen.awk: Don't check range of variables of character type.
2893 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2894 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2895 rs6000_sdata_name, rs6000_explicit_options): Remove.
2896 (rs6000_option_override_internal): Check for -malign-power here.
2897 Use global_options_set instead of rs6000_explicit_options.
2898 (rs6000_parse_fpu_option): Remove.
2899 (rs6000_handle_option): Access variables via opts and opts_set
2900 pointers. Use error_at and warning_at. Add fall-through
2901 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2902 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2903 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2904 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2905 here. Don't use rs6000_parse_fpu_option.
2906 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2907 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2908 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2910 (mspe): Use Var and Save.
2911 (mtraceback=): Use Enum and Var.
2912 (rs6000_traceback_type): New Enum and EnumValue entries.
2913 (mfloat-gprs=): Use Enum, Var and Save.
2914 (rs6000_float_gprs): New Enum and EnumValue entries.
2915 (mlong-double-): use Var and Save.
2916 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2917 (malign-): Use Enum and Var.
2918 (rs6000_alignment_flags): New Enum and EnumValue entries.
2920 (fpu_type_t): New Enum and EnumValue entries.
2921 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2922 global_options_set instead of rs6000_explicit_options.
2923 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2924 global_options_set instead of rs6000_explicit_options.
2925 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2926 global_options_set instead of rs6000_explicit_options.
2927 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2928 global_options_set instead of rs6000_explicit_options.
2929 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2930 global_options_set instead of rs6000_explicit_options.
2931 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2932 global_options_set instead of rs6000_explicit_options.
2933 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2935 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2936 global_options_set instead of rs6000_explicit_options.
2937 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2938 (rs6000_cmodel): New Enum and EnumValue entries.
2939 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2940 global_options_set instead of rs6000_explicit_options.
2941 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2942 (mtls-size=): Use Enum and Var.
2943 (rs6000_tls_size): New Enum and EnumValue entries.
2945 2011-05-05 Michael Matz <matz@suse.de>
2947 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2948 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2949 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2950 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2951 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2952 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2953 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2954 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2955 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2956 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2957 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2958 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2959 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2960 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2961 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2962 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2964 2011-05-05 Richard Guenther <rguenther@suse.de>
2966 * expmed.c (expand_variable_shift): Rename to ...
2967 (expand_shift_1): ... this. Take an expanded shift amount.
2968 For rotates recurse directly not building trees for the shift amount.
2969 (expand_variable_shift): Wrap around expand_shift_1.
2970 (expand_shift): Adjust.
2972 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2974 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2976 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2978 * tree.h (get_pending_sizes): Remove prototype.
2979 (put_pending_size): Likewise.
2980 (put_pending_sizes): Likewise.
2981 * stor-layout.c (pending_sizes): Delete.
2982 (get_pending_sizes): Likewise.
2983 (put_pending_size): Likewise.
2984 (put_pending_sizes): Likewise.
2985 (variable_size): Do not call put_pending_size and tidy up.
2986 * function.h (struct function): Remove dont_save_pending_sizes_p.
2987 * lto-streamer-in.c (input_function): Do not stream it.
2988 * lto-streamer-out.c (output_function): Likewise.
2989 * tree-inline.c (initialize_cfun): Do not copy it.
2990 * c-decl.c (store_parm_decls): Do not set it.
2991 * omp-low.c (create_task_copyfn): Likewise.
2992 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2994 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2996 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2998 (*movdf_internal): Ditto.
2999 (*movdf_internal_nointeger): Ditto.
3000 (*movsf_internal): Ditto.
3002 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3004 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3005 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3006 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3007 (c_variable_size): Remove.
3008 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3009 call put_pending_sizes.
3010 (get_parm_info): Add parameter expr. Use it to set
3011 arg_info->pending_sizes.
3012 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3014 * c-parser.c (c_parser_parms_declarator): Update call to
3015 c_parser_parms_list_declarator.
3016 (c_parser_parms_list_declarator): Take parameter expr. Update
3017 call to push_parm_decl. Update recursive call. Don't call
3018 get_pending_sizes. Update calls to get_parm_info.
3019 (c_parser_objc_method_definition): Update calls to
3020 c_parser_objc_method_decl and objc_start_method_definition.
3021 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3022 (c_parser_objc_method_decl): Add parameter expr. Update call to
3024 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3025 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3026 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3028 2011-05-05 Michael Hope <michael.hope@linaro.org>
3031 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3034 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3036 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3037 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3038 (spu_output_mi_thunk): New function.
3040 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3042 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3043 targetm.asm_out.print_operand.
3044 * config/sol2.c: Include target.h.
3046 2011-05-04 Jan Hubicka <jh@suse.cz>
3048 * ipa-inline.c (reset_edge_caches): New function.
3049 (update_caller_keys): Add check_inlinablity_for; do not
3050 reset edge caches; remove now unnecesary loop.
3051 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3052 (update_all_callee_keys): Likewise.
3053 (inline_small_functions): Sanity check cache; update code
3056 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3058 PR rtl-optimization/47612
3059 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3060 as the last insn of the sequence to be moved.
3062 2011-05-04 Tobias Burnus <burnus@net-b.de>
3065 * doc/invoke.texi (Ofast): Document that it
3066 enables Fortran's -fno-protect-parens.
3068 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3070 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3072 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3074 * stor-layout.c (variable_size): Do not issue errors.
3076 2011-05-04 Richard Guenther <rguenther@suse.de>
3078 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3079 for array-ref indices.
3080 (tree_coverage_counter_addr): Likewise.
3081 (build_fn_info_type): Use size_int for index types.
3082 (build_gcov_info): Likewise.
3084 2011-05-04 Richard Guenther <rguenther@suse.de>
3086 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3088 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3089 for constructor indices.
3090 (push_init_level): Likewise.
3092 2011-05-04 Richard Guenther <rguenther@suse.de>
3094 * explow.c (promote_mode): Move variable declarations before code.
3096 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3098 * tree.h (build_function_type_array): Declare.
3099 (build_varargs_function_type_array): Declare.
3100 (build_function_type_vec, build_varargs_function_type_vec): Define.
3101 * tree.c (build_function_type_array_1): New function.
3102 (build_function_type_array): New function.
3103 (build_varargs_function_type_array): New function.
3105 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3107 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3108 before setting STMT_VINFO_TYPE.
3110 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3112 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3113 instead of spu_pass_by_reference.
3115 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3117 * calls.c (emit_library_call_value_1): Invoke
3118 promote_function_mode hook on libcall arguments.
3119 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3120 argument being NULL.
3121 * targhooks.c (default_promote_function_mode): Lisewise.
3122 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3123 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3125 * doc/tm.texi: Document that TYPE argument might be NULL.
3127 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3129 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3131 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3134 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3136 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3138 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3139 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3141 * mips-tfile.c: ... here.
3142 Don't include coretypes.h, tm.h, filenames.h.
3143 (saber_stop): Remove definition and all calls.
3144 [__SABER__]: Remove.
3145 (__LINE__): Remove default.
3146 (Size_t, Ptrdiff_t): Remove definitions.
3147 Replace by size_t, ptrdiff_t.
3148 [!MIPS_DEBUGGING_INFO]: Remove.
3149 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3150 (progname): Add const.
3152 Replace all uses by static.
3153 (ALIGN_SYMTABLE_OFFSET): Remove default.
3154 * mips-tdump.c: Don't include coretypes.h, tm.h.
3155 Remove !MIPS_IS_STAB guard.
3156 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3157 $(TM_H), filenames.h dependencies.
3158 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3160 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3163 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3164 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3166 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3169 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3170 account and save/restore RETS.
3171 (PROFILE_BEFORE_PROLOGUE): Define.
3172 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3173 the push insn to use predecrement.
3175 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3178 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3180 2011-05-04 Nick Clifton <nickc@redhat.com>
3182 * config/mn10300/mn10300.c: Include cfgloop.h.
3184 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3185 Lcc or a FLcc insn into the instruction stream.
3186 (mn10300_block_contains_call): New function. Returns true if the
3187 given basic block contains a CALL insn.
3188 (mn10300_loop_contains_call_insn): New function. Returns true if
3189 the given loop contains a CALL insn.
3190 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3191 to use the SETLB and Lcc or FLcc insns.
3192 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3193 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3194 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3195 disable the SETLB optimization.
3196 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3197 __SETLB__ or __NO_SETLB__.
3198 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3199 (movsf_internal): Handle MDR register.
3200 (cmpsi): Make visible.
3201 (setlb): New pattern.
3203 (FLcc): New pattern.
3205 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3208 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3209 for reg<->xmm moves.
3210 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3211 (vec_concatv2di_rex64_sse): Ditto.
3212 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3213 (*vec_extractv2di_1_rex64): Ditto.
3216 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3218 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3220 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3222 2011-05-04 Richard Guenther <rguenther@suse.de>
3224 * tree.h (int_const_binop): Remove notrunc argument.
3225 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3226 create integer constants that are properly truncated.
3227 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3228 (const_binop): Remove zero notrunc argument to int_const_binop.
3229 (size_binop_loc): Likewise.
3230 (fold_div_compare): Likewise.
3231 (maybe_canonicalize_comparison_1): Likewise.
3232 (fold_comparison): Likewise.
3233 (fold_binary_loc): Likewise.
3234 (multiple_of_p): Likewise.
3235 * expr.c (store_constructor): Likewise.
3236 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3237 (maybe_fold_stmt_addition): Likewise.
3238 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3239 * stor-layout.c (layout_type): Likewise.
3240 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3241 * tree-sra.c (build_ref_for_offset): Likewise.
3242 (build_user_friendly_ref_for_offset): Likewise.
3243 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3244 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3245 * tree-ssa-loop-niter.c (inverse): Likewise.
3246 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3247 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3248 * tree-switch-conversion.c (check_range): Likewise.
3249 (build_constructors): Likewise.
3250 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3251 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3252 (extract_range_from_assert): Likewise.
3253 (vrp_int_const_binop): Likewise.
3254 (extract_range_from_binary_expr): Likewise.
3255 (extract_range_from_unary_expr): Likewise.
3256 (check_array_ref): Likewise.
3257 (find_case_label_range): Likewise.
3258 (simplify_div_or_mod_using_ranges): Likewise.
3259 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3260 comparing case labels for merging.
3262 2011-05-03 Mark Wielaard <mjw@redhat.com>
3264 * dwarf2out.c (debug_str_hash_forced): Removed.
3265 (gen_label_for_indirect_string): Removed.
3266 (get_debug_string_label): Removed.
3267 (AT_string_form): Generate label directly.
3268 (output_indirect_string): Test indirect_string_node for
3269 DW_FORM_strp instead of checking label and refcount.
3270 (prune_indirect_string): Removed.
3271 (prune_unused_types): Don't check debug_str_hash_forced or
3272 call prune_indirect_string.
3274 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3277 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3279 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3283 * combine.c (try_combine): Skip debug insns at m_split tests.
3285 2011-04-26 Mark Wielaard <mjw@redhat.com>
3288 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3289 when info_section_emitted.
3291 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3293 * config/mips/mips-opts.h: New.
3294 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3296 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3297 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3298 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3300 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3302 (mips_abi, mips_code_readable): Don't declare.
3303 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3304 (mabi=): Use Enum and Var.
3305 (mips_abi): New Enum and EnumValue entries.
3306 (mcode-readable=): Use Enum and Var.
3307 (mips_code_readable_setting): New Enum and EnumValue entries.
3308 (mr10k-cache-barrier=): Use Enum and Var.
3309 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3311 2011-05-03 Jan Hubicka <jh@suse.cz>
3313 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3314 replace hash by pointer map.
3315 (cgraph_node_set_element_def, cgraph_node_set_element,
3316 const_cgraph_node_set_element, varpool_node_set_element_def,
3317 varpool_node_set_element, const_varpool_node_set_element): Remove.
3318 (free_cgraph_node_set, free_varpool_node_set): New function.
3319 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3320 * tree-emutls.c: Free varpool node set.
3321 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3322 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3323 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3324 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3325 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3326 Move here from ipa.c; implement using pointer_map
3327 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3328 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3329 debug_cgraph_node_set, varpool_node_set_new,
3330 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3331 dump_varpool_node_set, debug_varpool_node_set):
3332 Move to ipa-uitls.c.
3333 * passes.c (ipa_write_summaries): Update.
3335 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3337 From Mike Frysinger:
3338 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3339 bf542/bf544/bf547/bf548/bf549.
3341 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3343 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3345 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3348 * config/bfin/bfin.md (MOVCC): New mode_macro.
3349 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3350 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3351 comments from generated assembly.
3353 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3356 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3357 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3358 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3359 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3360 * config/bfin/lib1funcs.asm (___muldi3): New function.
3362 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3364 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3365 build_function_type_list instead of build_function_type.
3366 Rearrange initialization of `args' to do so.
3368 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3370 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3371 instead of build_function_type.
3373 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3375 * config/rs6000/rs6000.c (spe_init_builtins): Call
3376 build_function_type_list instead of build_function_type.
3377 (paired_init_builtins, altivec_init_builtins): Likewise.
3378 (builtin_function_type): Likewise.
3380 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3382 * config/sh/sh.c (sh_media_init_builtins): Call
3383 build_function_type_list instead of build_function_type.
3385 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3387 * config/sparc/sparc.c (sparc_file_end): Call
3388 build_function_type_list instead of build_function_type.
3390 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3392 * config/alpha/alpha.c (alpha_init_builtins): Call
3393 build_function_type_list instead of build_function_type.
3395 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3397 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3398 build_function_type_list instead of build_function_type.
3400 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3402 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3403 build_function_type_list instead of build_function_type.
3404 Delete `endlink' variable.
3406 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3408 * config/avr/avr.c (avr_init_builtins): Call
3409 build_function_type_list instead of build_function_type.
3411 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3413 * config/picochip/picochip.c (picochip_init_builtins): Call
3414 build_function_type_list instead of build_function_type.
3415 Delete `endlink' variable.
3417 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3419 * config/bfin/bfin.c (bfin_init_builtins): Call
3420 build_function_type_list instead of build_function_type.
3422 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3425 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3426 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3428 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3431 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3432 libbffastfp overrides libgcc when -mfast-fp.
3434 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3436 Originally from Bernd Schmidt
3437 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3438 * config/bfin/bfin.c (override_options): Test it and error if
3441 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3443 Originally From Bernd Schmidt
3444 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3447 2011-05-03 Jeff Law <law@redhat.com>
3449 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3450 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3451 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3452 than accessing AUX field directly. Free the AUX field before
3454 (thread_block, thread_through_loop_header): Likewise.
3455 (thread_single_edge, mark_threaded_blocks): Likewise.
3456 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3457 (register_jump_thread): Do not attempt to thread to a NULL edge.
3459 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3461 * function.c (init_function_start): Call decide_function_section.
3462 * varasm.c (decide_function_section): New function.
3463 (assemble_start_function): When not using
3464 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3465 or first_function_block_is_cold.
3466 * rtl.h (decide_function_section): Declare.
3468 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3469 Jakub Jelinek <jakub@redhat.com>
3472 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3473 only succeed if req_mode is the same as set_mode.
3475 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3477 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3478 * genemit.c (gen_exp): Handle RETURN.
3479 * emit-rtl.c (verify_rtx_sharing): Likewise.
3480 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3481 * rtl.c (copy_rtx): RETURN is shared.
3482 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3484 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3485 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3486 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3487 * config/cris/cris.c (cris_expand_return): Likewise.
3488 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3489 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3490 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3491 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3492 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3494 * config/v850/v850.c (expand_epilogue): Likewise.
3495 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3496 * config/arm/arm.md (epilogue): Likewise.
3497 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3498 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3499 variable to ret_reg.
3501 2011-05-03 Richard Guenther <rguenther@suse.de>
3504 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3505 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3506 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3508 2011-05-03 Richard Guenther <rguenther@suse.de>
3510 * c-decl.c (grokdeclarator): Instead of looking at
3511 TREE_OVERFLOW check if the constant fits in the index type.
3513 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3515 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3516 (vec_store_lanes<mode><mode>): Likewise.
3518 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3520 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3521 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3522 convert_optab_index values.
3523 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3524 * genopinit.c (optabs): Initialize the new optabs.
3525 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3526 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3527 (expand_STORE_LANES): New functions.
3528 * tree.h (build_array_type_nelts): Declare.
3529 * tree.c (build_array_type_nelts): New function.
3530 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3531 (vect_model_load_cost): Likewise.
3532 (vect_store_lanes_supported, vect_load_lanes_supported)
3533 (vect_record_strided_load_vectors): Declare.
3534 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3535 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3536 (vect_transform_strided_load): Split out statement recording into...
3537 (vect_record_strided_load_vectors): ...this new function.
3538 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3539 (write_vector_array, create_array_ref): New functions.
3540 (vect_model_store_cost): Add store_lanes_p argument.
3541 (vect_model_load_cost): Add load_lanes_p argument.
3542 (vectorizable_store): Try to use store-lanes functions for
3544 (vectorizable_load): Likewise load-lanes and loads.
3545 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3546 to vect_model_store_cost.
3547 (vect_build_slp_tree): Likewise vect_model_load_cost.
3549 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3551 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3552 * hooks.c (hook_bool_mode_uhwi_false): New function.
3553 * target.def (array_mode_supported_p): New hook.
3554 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3555 * doc/tm.texi: Regenerate.
3556 * stor-layout.c (mode_for_array): New function.
3557 (layout_type): Use it.
3558 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3559 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3561 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3564 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3565 for -fstack-check if the size to allocate is negative.
3567 2011-05-02 Lawrence Crowl <crowl@google.com>
3569 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3570 (timevar_cond_start): New for starting a timer only when it is not
3572 (timevar_cond_stop): New for stopping a timer when it was not already
3575 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3576 (timevar_cond_start): New as above.
3577 (timevar_cond_stop): New as above.
3579 * timevar.def: Add start/stop timers for compiler phases,
3580 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3581 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3582 and TV_PHASE_FINALIZE.
3583 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3584 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3585 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3586 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3587 Make unused TV_OVERLOAD into a start/stop timer.
3589 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3590 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3591 to indicate that they are start/stop timers.
3593 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3594 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3595 Move initialization to do_compile.
3596 (do_compile): Add initialization from above.
3597 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3599 * c-decl.c (c_write_global_declarations): Add start/stop of
3600 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3602 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3603 or TV_PARSE_INLINE, as appropriate.
3604 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3605 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3607 2011-05-02 Jason Merrill <jason@redhat.com>
3610 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3612 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3615 * c-decl.c (finish_decl): Only create a composite if the types are
3618 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3620 * config/fr30/fr30-protos.h (Mmode): Don't define.
3621 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3622 definition where used.
3623 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3624 define. Expand definitions where used.
3625 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3626 Expand definitions where used.
3627 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3628 rx_function_arg, rx_function_arg_advance,
3629 rx_function_arg_boundary): Expand definitions of those macros.
3630 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3631 definition where used.
3633 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3635 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3637 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3638 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3639 with *movv2sf_internal_rex64_avx.
3640 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3641 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3642 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3643 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3644 "vex" in "prefix" attribute calculation.
3645 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3647 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3650 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3651 inputs match the output.
3653 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3656 * config/m68k/m68k.c (m68k_expand_prologue): Set
3657 current_function_static_stack_size.
3659 2011-05-02 Jan Hubicka <jh@suse.cz>
3661 * lto-streamer.c (lto_streamer_cache_insert_1,
3662 lto_streamer_cache_lookup, lto_streamer_cache_create,
3663 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3664 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3666 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3668 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3669 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3670 config/m68k/t-opts: New files.
3671 * config/m68k/m68k-tables.opt: New file (generated).
3672 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3673 extra_options and m68k/t-opts to tmake_file.
3674 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3675 (all_isas): Initialize using m68k-isas.def.
3676 (all_microarchs): Initialize using m68k-microarchs.def.
3677 (m68k_find_selection): Remove.
3678 (m68k_handle_option): Don't assert that global structures are in
3679 use. Use error_at. Access variables via opts pointer. Don't
3680 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3681 directly for -m68020-40 and -m68020-60.
3682 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3683 m68k_tune_entry here.
3684 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3686 (m68k_library_id_string): Remove declaration.
3687 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3688 (m68k_library_id_string): New Variable.
3689 (march=, mcpu=, mtune=): Use Enum and Var.
3691 2011-05-02 Richard Guenther <rguenther@suse.de>
3693 * varasm.c (output_constructor_regular_field): Compute zero-based
3694 index with double-ints. Make sure to ICE instead of producing
3696 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3697 in asserts. Properly use a signed type.
3699 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3701 * config/i386/sse.md (V): New mode iterator.
3702 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3704 (V_256): Rename from AVX256MODE.
3705 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3706 condition to all users.
3708 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3709 condition to all users.
3710 (VF_128): Make V4SF mode unconditional.
3711 (VF_256): Rename from AVX256MODEF2P.
3712 (VI4F_128): Rename from SSEMODE4S.
3713 (VI8F_128): Rename from SSEMODE2D.
3714 (VI4F_256): Rename from AVX256MODE8P.
3715 (VI8F_256): Rename from AVX256MODE4P.
3716 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3717 (ssescalarmodesuffix): Remove SF and DF modes.
3718 (SSEMODE124): Remove.
3719 (SSEMODE1248): Ditto.
3720 (SSEMODEF2P): Ditto.
3721 (AVXMODEF2P): Ditto.
3722 (AVXMODEFDP): Ditto.
3723 (AVXMODEFSP): Ditto.
3724 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3726 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3728 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3729 xop_pcmov_<mode>256. Use V mode iterator.
3731 Adjust RTX patterns globally for renamed mode attributes.
3733 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3735 * haifa-sched.c (sched_emit_insn): Emit insn before first
3736 non-scheduled insn. Inform back-end about new insn. Add
3737 new insn to scheduled_insns list.
3739 2011-05-02 Richard Guenther <rguenther@suse.de>
3741 PR tree-optimization/48822
3742 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3743 (process_scc): Indicate which iteration we start.
3745 2011-05-02 Jan Hubicka <jh@suse.cz>
3747 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3748 (lto_section_overrun): New.
3749 * lto-section-out.c (append_block): Rename to ...
3750 (lto_append_block): ... this one; export.
3751 (lto_output_1_stream): Move lto lto-streamer.h
3752 (lto_output_data_stream): Update.
3753 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3754 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3757 2011-05-02 Richard Guenther <rguenther@suse.de>
3759 * tree.c (tree_code_counts): New global array.
3760 (record_node_allocation_statistics): Count individual tree codes.
3761 (dump_tree_statistics): Dump individual code stats.
3763 2011-05-01 Jan Hubicka <jh@suse.cz>
3765 * ipa-inline.c (caller_growth_limits): Fix thinko when
3766 looking for largest stack frame.
3767 * ipa-inline.h (dump_inline_summary): Declare.
3768 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3770 (dump_inline_summary): Export.
3771 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3773 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3775 * reginfo.c (memory_move_cost): Change rclass argument type form
3776 'enum reg_class' to reg_class_t.
3777 * reload.h (memory_move_cost): Update prototype.
3778 * postreload.c reload_cse_simplify_set): Change type dclass var to
3780 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3782 (ira_allocate_and_set_costs): Change aclass argument type form
3783 'enum reg_class' to reg_class_t.
3784 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3785 Change aclass argument type to reg_class_t.
3786 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3788 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3789 memory_move_cost call.
3791 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3792 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3793 Change type tmp var to reg_class_t.
3795 2011-04-30 Jan Hubicka <jh@suse.cz>
3797 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3798 inlining into function with flatten attribute.
3799 (want_inline_small_function_p): Be more realistic about inlining
3800 cold calls where callee size grows.
3802 2011-04-30 Jan Hubicka <jh@suse.cz>
3804 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3807 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3809 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3810 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3811 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3812 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3813 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3814 (print_operand): Rename to...
3815 (sparc_print_operand): ...this. Make static. Adjust
3816 sparc_print_operand function call.
3817 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3820 2011-04-30 Jan Hubicka <jh@suse.cz>
3823 * ipa-inline.c (early_inliner): Disable when doing late
3824 addition of function.
3826 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3828 * dwarf2out.c (get_address_mode): New inline.
3829 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3830 if not dwarf_strict emit
3831 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3832 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3833 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3834 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3835 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3836 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3837 mem_loc_descriptor callers.
3838 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3839 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3840 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3841 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3842 (base_types): New variable.
3843 (get_base_type_offset, calc_base_type_die_sizes,
3844 base_type_for_mode, mark_base_types, base_type_cmp,
3845 move_marked_base_types): New functions.
3846 (calc_die_sizes): Assert that die_offset is 0 or equal to
3848 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3849 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3850 callers. If not dwarf_strict, call mem_loc_descriptor even for
3851 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3852 (gen_subprogram_die): Don't give up on call site parameters
3853 with non-integral or large integral modes. Adjust
3854 mem_loc_descriptor callers.
3855 (prune_unused_types): Call prune_unused_types_mark on base_types
3857 (resolve_addr): Call mark_base_types.
3858 (dwarf2out_finish): Call move_marked_base_types.
3860 PR tree-optimization/48809
3861 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3863 (gen_inbound_check): Don't compute index_expr - range_min in utype
3864 again, instead reuse SSA_NAME initialized in build_arrays.
3865 Remove two useless gsi_for_stmt calls.
3867 2011-04-29 Jeff Law <law@redhat.com>
3869 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3871 2011-04-29 Martin Jambor <mjambor@suse.cz>
3873 * cgraph.h (cgraph_postorder): Remove declaration.
3874 * ipa-utils.h (ipa_free_postorder_info): Declare.
3875 (ipa_reverse_postorder): Likewise.
3876 * cgraphunit.c: Include ipa-utils.h.
3877 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3878 * ipa-inline.c: Include ipa-utils.h.
3879 (ipa_inline): Update call to ipa_reverse_postorder.
3880 * ipa-pure-const.c (propagate_pure_const): Update call to
3881 ipa_reduced_postorder and ipa_print_order. Call
3882 ipa_free_postorder_info to clean up.
3883 (propagate_nothrow): Likewise.
3884 * ipa-reference.c (propagate): Removed a useless call to
3885 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3886 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3887 * ipa.c: Include ipa-utils.h.
3888 (ipa_profile): Update call to ipa_reverse_postorder.
3889 (cgraph_postorder): Moved to...
3890 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3891 (ipa_utils_print_order): Renamed to ipa_print_order.
3892 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3894 (ipa_free_postorder_info): New function.
3895 * passes.c: Include ipa-utils.h.
3896 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3897 (ipa_write_summaries): Likewise.
3898 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3899 (cgraphunit.o): Likewise.
3901 (ipa-inline.o): Likewise.
3903 2011-04-29 Jan Hubicka <jh@suse.cz>
3905 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3906 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3907 * ipa-inline.h (clause_t): Turn into unsigned int.
3908 * ipa-inline-analysis.c (add_clause): Do more simplification.
3909 (and_predicates): Shortcut more cases.
3910 (predicates_equal_p): Move forward; check that clauses are properly
3912 (or_predicates): Shortcut more cases.
3913 (edge_execution_predicate): Rewrite as...
3914 (set_cond_stmt_execution_predicate): ... this function; handle
3915 __builtin_constant_p.
3916 (set_switch_stmt_execution_predicate): New .
3917 (compute_bb_predicates): New.
3918 (will_be_nonconstant_predicate): Update TODO.
3919 (estimate_function_body_sizes): Use compute_bb_predicates
3920 and free them later, always try to estimate if stmt is constant.
3921 (estimate_time_after_inlining, estimate_size_after_inlining):
3922 Gracefully handle optimized out edges.
3923 (read_predicate): Fix off by one error.
3925 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3927 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3929 2011-04-27 Xinliang David Li <davidxl@google.com>
3931 * tree-profile.c (init_ic_make_global_vars): Set
3932 tls attribute on ic vars.
3933 * coverage.c (coverage_end_function): Initialize
3934 function_list with zero.
3936 2011-04-29 Richard Guenther <rguenther@suse.de>
3938 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3939 for the type of the result.
3940 (fold_builtin_isascii): Likewise.
3941 (fold_builtin_toascii): Use integer_type_node where appropriate.
3942 (fold_builtin_logb): Likewise.
3943 (fold_builtin_frexp): Likewise.
3944 (fold_builtin_strstr): Likewise.
3945 (fold_builtin_strpbrk): Likewise.
3946 (fold_builtin_fputs): Likewise.
3947 (fold_builtin_sprintf): Likewise.
3948 (fold_builtin_snprintf): Likewise.
3949 (fold_builtin_printf): Likewise.
3950 (do_mpfr_remquo): Use a proper type for the assigned constant.
3951 (do_mpfr_lgamma_r): Likewise.
3952 * dwarf2out.c (resolve_one_addr): Use size_int.
3953 * except.c (init_eh): Likewise.
3954 (assign_filter_values): Use integer_type_node for filter values.
3955 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3957 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3958 for EH region numbers.
3959 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3960 for the shift amount.
3962 2011-04-29 Richard Guenther <rguenther@suse.de>
3964 * expr.h (expand_shift): Rename to ...
3965 (expand_variable_shift): ... this.
3966 (expand_shift): Take a constant shift amount.
3967 * expmed.c (expand_shift): Rename to ...
3968 (expand_variable_shift): ... this.
3969 (expand_shift): New wrapper around expand_variable_shift.
3970 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3971 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3972 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3973 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3974 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3975 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3976 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3977 emit_store_flag_1, emit_store_flag): Likewise.
3978 * builtins.c (expand_builtin_signbit): Likewise.
3979 * calls.c (load_register_parameters): Likewise.
3980 * function.c (assign_parm_setup_block): Likewise.
3981 * lower-subreg.c (resolve_shift_zext): Likewise.
3982 * optabs.c (widen_bswap, expand_abs_nojump,
3983 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3984 * spu/spu.c (spu_expand_extv): Likewise.
3985 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3987 2011-04-29 Richard Guenther <rguenther@suse.de>
3989 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3990 for the remapped region number.
3991 * predict.c (build_predict_expr): Use integer_type_node for the
3993 * fold-const.c (fold_binary_loc): Use integer_type_node for
3994 the shift amount. Use a proper type for the PLUS_EXPR operand.
3996 2011-04-29 Michael Matz <matz@suse.de>
3998 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3999 other trees that just builtins.
4000 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4002 2011-04-29 Richard Guenther <rguenther@suse.de>
4004 * tree-nested.c (get_trampoline_type): Use size_int.
4005 (get_nl_goto_field): Likewise.
4006 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4008 (lower_eh_constructs_2): Likewise.
4009 (lower_resx): Likewise.
4010 (lower_eh_dispatch): Likewise.
4011 * tree-mudflap.c (mf_build_string): Use size_int.
4012 (mudflap_register_call): Use integer_type_node for the flag.
4013 (mudflap_enqueue_constant): Use size_int.
4014 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4015 instead of rebuilding it.
4017 2011-04-29 Richard Guenther <rguenther@suse.de>
4019 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4020 Handle OBJ_TYPE_REF.
4021 (find_func_aliases_for_call): Use it more consistently.
4023 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4025 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4026 (rank_for_schedule): Use it.
4027 (schedule_block): Set it.
4029 2011-04-28 David Li <davidxl@google.com>
4031 * tree.c (crc32_string): Use crc32_byte.
4032 (crc32_byte): New function.
4033 * tree.h (crc32_byte): New function.
4034 * gcov.c (read_graph_file): Handle new cfg_cksum.
4035 (read_count_file): Ditto.
4036 * profile.c (instrument_values): Ditto.
4037 (get_exec_counts): Ditto.
4038 (read_profile_edge_counts): Ditto.
4039 (compute_branch_probabilities): Ditto.
4040 (compute_value_histograms): Ditto.
4041 (branch_prob): Ditto.
4042 (end_branch_prob): Ditto.
4043 * coverage.c (read_counts_file): Ditto.
4044 (get_coverage_counts): Ditto.
4045 (tree_coverage_counter_addr): Ditto.
4046 (coverage_checksum_string): Ditto.
4047 (coverage_begin_output): Ditto.
4048 (coverage_end_function): Ditto.
4049 (build_fn_info_type): Ditto.
4050 (build_fn_info_value): Ditto.
4051 * libgcov.c (gcov_exit): Ditto.
4052 * gcov-dump.c (tag_function): Ditto.
4053 (compute_checksum): Remove.
4055 2011-04-29 Alan Modra <amodra@gmail.com>
4057 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4058 unspec plus offset. Tidy macho code.
4060 2011-04-29 Martin Jambor <mjambor@suse.cz>
4062 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4063 node instead of a decl. Update all callers.
4064 * cgraph.h: Update declaration.
4066 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4068 PR tree-optimization/48765
4069 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4070 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4071 to indicate if loop aware SLP is being used. Scan the statements
4072 and update the vectorization factor according to the type of
4073 vectorization before statement analysis.
4074 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4075 pass it to vect_analyze_loop_operations.
4076 (vectorizable_reduction): Set number of copies to 1 in case of pure
4078 * tree-vect-stmts.c (vectorizable_conversion,
4079 vectorizable_assignment, vectorizable_shift,
4080 vectorizable_operation, vectorizable_type_demotion,
4081 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4083 (vectorizable_condition): Move the check that it is not SLP
4084 vectorization before the number of copies check.
4085 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4086 to vectorize the loop using SLP.
4088 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4091 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4094 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4096 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4097 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4098 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4099 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4100 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4102 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4103 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4104 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4105 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4106 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4107 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4109 * config/i386/linux.h (REG_NAME): Don't define.
4110 * config/i386/linux64.h (REG_NAME): Don't define.
4111 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4112 Undefine before defining.
4114 2011-04-28 Jan Hubicka <jh@suse.cz>
4116 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4117 nonconstant_names array.
4118 (estimate_function_body_sizes): Build nonconstant_names array; handle
4119 BUILT_IN_CONSTANT_P.
4121 2011-04-28 Richard Guenther <rguenther@suse.de>
4125 2011-04-28 Richard Guenther <rguenther@suse.de>
4127 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4128 as late as possible.
4130 2011-04-28 Richard Guenther <rguenther@suse.de>
4132 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4133 (debug_constraint): Do it here.
4134 (dump_constraints): And here.
4135 (rewrite_constraints): And here.
4136 (dump_constraint_edge): Remove.
4137 (dump_constraint_graph): Rewrite to produce DOT output.
4138 (solve_constraints): Build succ graph as late as possible.
4139 Dump constraint graphs before and after solving.
4141 2011-04-28 Richard Guenther <rguenther@suse.de>
4143 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4144 New function split out from ...
4145 (find_func_aliases): ... here. Call it.
4146 (find_func_aliases_for_call): Likewise.
4148 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4150 * internal-fn.h (internal_fn_name_array): Declare.
4151 (internal_fn_flags_array): Likewise.
4153 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4155 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4156 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4158 (ssemodefsuffix): Remove.
4159 (ssevecmodesuffix): New mode attribute.
4160 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4161 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4162 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4163 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4164 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4165 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4166 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4167 ssemodesuffix mode attribute.
4168 (float splitters): Use ssevecmodesuffix mode attribute.
4169 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4170 (sseinsmode): Rename from avxvecmode.
4171 (avxsizesuffix): Rename from avxmodesuffix.
4172 (sseintvecmode): Rename from avxpermvecmode.
4173 (ssedoublevecmode): Rename from ssedoublesizemode.
4174 (ssehalfvecmode): Rename from avxhalfvecmode.
4175 (ssescalarmode): Rename from avxscalarmode.
4176 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4177 templates for ssemodesuffix mode attribute.
4178 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4181 Adjust RTX patterns globally for renamed mode attributes.
4183 2011-04-27 Jan Hubcika <jh@suse.cz>
4185 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4186 * ipa-inline-analysis.c: Include alloc-pool.h.
4187 (edge_predicate_pool): New.
4188 (trye_predicate_p): New function
4189 (false_predicate_p): New function.
4190 (add_clause): Sanity check that false clauses are "optimized";
4191 never add clauses to predicate that is already known to be false.
4192 (and_predicate): Use flase_predicate_p.
4193 (evaulate_predicate): Rename to ...
4194 (evaluate_predicate): ... this one; update all callers; assert
4195 that false is not listed among possible truths.
4196 (dump_predicate): Use true_predicate_p.
4197 (account_size_time): Use false_predicate_p.
4198 (evaulate_conditions_for_edge): Rename to ...
4199 (evaluate_conditions_for_edge) ... this one.
4200 (edge_set_predicate): New function.
4201 (inline_edge_duplication_hook): Duplicate edge predicates.
4202 (inline_edge_removal_hook): Free edge predicates.
4203 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4204 (dump_inline_summary): Update.
4205 (estimate_function_body_sizes): Set edge predicates.
4206 (estimate_calls_size_and_time): Handle predicates.
4207 (estimate_callee_size_and_time): Update.
4208 (remap_predicate): Add toplev_predicate; update comment.
4209 (remap_edge_predicates): New function.
4210 (inline_merge_summary): Compute toplev predicate; update.
4211 (read_predicate): New function.
4212 (read_inline_edge_summary): Use it.
4213 (inline_read_section): Likewise.
4214 (write_predicate): New function.
4215 (write_inline_edge_summary): Use it.
4216 (inline_write_summary): Likewise.
4217 (inline_free_summary): Free alloc pool and edge summary vec.
4219 2011-04-27 Richard Guenther <rguenther@suse.de>
4221 * tree-ssa-structalias.c (changed_count): Remove.
4222 (changed): Use a bitmap.
4223 (unify_nodes): Adjust.
4224 (do_sd_constraint): Likewise.
4225 (do_ds_constraint): Likewise.
4226 (do_complex_constraint): Likewise.
4227 (solve_graph): Likewise.
4229 2011-04-27 Jan Hubicka <jh@suse.cz>
4231 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4233 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4235 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4236 (avx_vperm2f128_*_operand): Ditto.
4237 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4238 Use avx_vpermilp_parallel in insn condition.
4239 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4240 Use avx_vperm2f128_parallel in insn condition.
4242 2011-04-27 Richard Guenther <rguenther@suse.de>
4244 * Makefile.in (tree-ssa-structalias.o): Remove
4245 gt-tree-ssa-structalias.h dependency.
4246 (GTFILES): Remove tree-ssa-structalias.c.
4247 * tree.c (allocate_decl_uid): New function.
4248 (make_node_stat): Use it.
4249 (copy_node_stat): Likewise.
4250 * tree.h (allocate_decl_uid): Declare.
4251 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4252 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4253 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4254 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4255 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4256 (struct heapvar_map): Likewise.
4257 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4258 heapvar_insert): Likewise.
4259 (make_heapvar_for): Rename to ...
4260 (make_heapvar): ... this. Simplify.
4261 (fake_var_decl_obstack): New global var.
4262 (build_fake_var_decl): New function.
4263 (make_constraint_from_heapvar): Adjust.
4264 (handle_lhs_call): Likewise.
4265 (create_function_info_for): Likewise.
4266 (intra_create_variable_infos): Likewise.
4267 (init_alias_vars): Allocate fake_var_decl_obstack.
4268 (init_alias_heapvars, delete_alias_heapvars): Remove.
4269 (compute_points_to_sets): Do not call init_alias_heapvars.
4270 (ipa_pta_execute): Likewise.
4271 (delete_points_to_sets): Free fake_var_decl_obstack.
4273 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4275 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4276 (si_from_UTItype, si_to_UTItype): New functions.
4277 (__udivmodti4): Use them to implement type-punning.
4278 * config/spu/multi3.c (union qword_TItype): New data type.
4279 (si_from_TItype, si_to_TItype): New functions.
4280 (__multi3): Use them to implement type-punning.
4282 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4284 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4286 2011-04-27 Jan Hubicka <jh@suse.cz>
4288 * ipa-prop.c (function_insertion_hook_holder): New holder.
4289 (ipa_add_new_function): New function.
4290 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4291 Register/deregister holder.
4293 2011-04-27 Richard Guenther <rguenther@suse.de>
4295 PR tree-optimization/48772
4296 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4298 2011-04-27 Richard Guenther <rguenther@suse.de>
4300 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4301 TARGET_MEM_REF handling.
4303 2011-04-27 Nick Clifton <nickc@redhat.com>
4305 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4306 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4307 (REG_CLASS_NAMES): Likewise.
4308 (REG_CLASS_CONTENTS): Likewise.
4309 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4310 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4311 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4312 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4313 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4314 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4315 duplicate register classes.
4316 (frv_class_likely_spilled_p): Likewise.
4317 (frv_register_move_cost): Likewise.
4319 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4320 end of the regno_reg_class array.
4322 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4325 * c-typeck.c (build_binary_op): Don't wrap arguments if
4326 int_operands is true.
4328 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4331 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4332 targetm.calls.must_pass_in_stack for void type.
4334 2011-04-26 Jan Hubicka <jh@suse.cz>
4336 * cgraphbuild.c (build_cgraph_edges): Update call
4337 of cgraph_create_edge and cgraph_create_indirect_edge.
4338 * cgraph.c (cgraph_create_edge_including_clones,
4339 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4340 cgraph_update_edges_for_call_stmt_node): Do not take nest
4341 argument; do not initialize call_stmt_size/time.
4342 (dump_cgraph_node): Do not dump nest.
4343 (cgraph_clone_edge): Do not take loop_nest argument;
4344 do not propagate it; do not clone call_stmt_size/time.
4345 (cgraph_clone_node): Likewise.
4346 (cgraph_create_virtual_clone): Update.
4347 * cgraph.h (struct cgraph_edge): Remove
4348 call_stmt_size/call_stmt_time/loop_nest.
4349 (cgraph_create_edge, cgraph_create_indirect_edge,
4350 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4352 * tree-emutls.c (gen_emutls_addr): Update.
4353 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4354 loop_nest; handle indirect calls, too.
4355 (clone_inlined_nodes): Do not care about updating inline summaries.
4356 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4357 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4358 stream call_stmt_size/call_stmt_time/loop_nest.
4359 * ipa-inline.c (edge_badness): Update.
4360 (ipa_inline): dump summaries after inlining.
4361 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4363 (inline_edge_summary): New function.
4364 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4365 (inline_edge_removal_hook): Handle edge summaries.
4366 (inline_edge_duplication_hook): New hook.
4367 (inline_summary_alloc): Alloc hooks.
4368 (initialize_growth_caches): Do not register removal hooks.
4369 (free_growth_caches); Do not free removal hook.
4370 (dump_inline_edge_summary): New function.
4371 (dump_inline_summary): Use it.
4372 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4373 (inline_update_callee_summaries): New function.
4374 (inline_merge_summary): Use it.
4375 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4376 (read_inline_edge_summary): New function.
4377 (inline_read_section): Use it.
4378 (write_inline_edge_summary): New function.
4379 (inline_write_summary): Use it.
4380 (inline_free_summary): Free edge new holders.
4381 * tree-inline.c (copy_bb): Update.
4383 2011-04-26 Jason Merrill <jason@redhat.com>
4385 * tree-eh.c (lower_try_finally_switch): Create the label along with
4386 the CASE_LABEL_EXPR.
4388 2011-04-26 David S. Miller <davem@davemloft.net>
4389 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4391 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4392 * configure: Regenerate.
4394 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4397 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4399 (VEC_reduc): New code iterator and splitters for vector reduction.
4400 (VEC_reduc_name): Ditto.
4401 (VEC_reduc_rtx): Ditto.
4402 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4403 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4405 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4406 support for extracting SF on VSX.
4408 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4409 generating xscvspdp.
4410 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4411 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4412 double add, minimum, maximum vector reduction.
4413 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4414 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4415 optimize double vector reduction.
4416 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4418 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4420 * config/fr30/fr30.h (inhibit_libc): Don't define.
4421 * config/m32r/m32r-protos.h: Correct comment.
4422 * config/v850/v850.h (GHS_default_section_names,
4423 GHS_current_section_names): Use tree, not union tree_node *.
4425 2011-04-26 Xinliang David Li <davidxl@google.com>
4427 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4428 * c-family/c-opts.c (c_common_handle_option): Set
4429 warn_maybe_uninitialized.
4430 * opts.c (common_handle_option): Ditto.
4431 * common.opt: New option.
4432 * tree-ssa.c (warn_uninit): Add one more parameter.
4433 (warn_uninitialized_var): Pass warning code.
4434 * tree-flow.h: Interface change.
4437 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4439 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4440 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4441 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4443 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4445 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4446 * config/mips/mips.opt (mmips-tfile): Remove.
4448 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4449 mips-tdump reference to ...
4450 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4451 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4452 reference by Tru64 UNIX.
4454 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4457 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4458 is error_mark_node, set value to NULL.
4460 PR tree-optimization/48734
4461 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4462 if return value from maybe_fold_*_comparsions isn't something
4463 the code is prepared to handle.
4465 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4467 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4469 (ext_QIreg_nomode_operands): Remove.
4470 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4474 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4476 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4478 2011-04-26 Richard Guenther <rguenther@suse.de>
4480 * c-typeck.c (build_unary_op): Do not expand array-refs via
4481 pointer arithmetic. Only adjust qualifiers for function types.
4483 2011-04-26 Richard Guenther <rguenther@suse.de>
4486 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4487 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4488 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4489 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4491 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4493 * doc/extend.texi: Document __underlying_type.
4495 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4497 * config/rs6000/titan.md (automata_option "progress"): Remove.
4499 2011-04-25 Jeff Law <law@redhat.com>
4501 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4503 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4505 * system.h (ENUM_BITFIELD): Remove.
4507 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4508 Eric Botcazou <ebotcazou@adacore.com>
4510 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4511 for STORE_FLAG_VALUE==-1 case.
4513 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4516 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4517 LEGITIMATE_PIC_OPERAND_P.
4519 2011-04-24 Jan Hubicka <jh@suse.cz>
4521 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4523 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4524 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4525 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4526 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4527 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4528 Sanity check predicate length.
4529 (remap_predicate): Likewise; sanity check jump functions.
4530 (inline_read_section, inline_write_summary): Sanity check
4533 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4536 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4537 __is_literal_type, and __is_trivial; update throughout about
4538 possibly cv-qualified void types.
4540 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4542 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4543 testsuite and make it version agnostic.
4545 2011-04-22 Jan Hubicka <jh@suse.cz>
4547 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4549 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4552 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4553 to VOID_TYPE even around MODIFY_EXPR.
4555 2011-04-22 Mike Stump <mikestump@comcast.net>
4557 * gensupport.c (read_md_rtx): Fix typo in comment.
4558 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4561 2011-04-22 Jan Hubicka <jh@suse.cz>
4563 * gengtype.c (open_base_files): Add ipa-inline.h include.
4564 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4565 ipa-prop.c; update all uses.
4566 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4567 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4568 merge summary of inlined function into former caller.
4569 * ipa-inline.c (max_benefit): Remove.
4570 (edge_badness): Compensate for removal of benefits.
4571 (update_caller_keys): Use
4572 reset_node_growth_cache/reset_edge_growth_cache.
4573 (update_callee_keys): Likewise.
4574 (update_all_callee_keys): Likewise.
4575 (inline_small_functions): Do not collect max_benefit; do not reset
4576 estimated_growth; call free_growth_caches and initialize_growth_caches.
4577 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4578 struct size_time_entry): New structures.
4579 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4580 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4581 and estimated_growth.
4582 (edge_growth_cache_entry): New structure.
4583 (node_growth_cache, edge_growth_cache): New global vars.
4584 (estimate_growth): Turn into inline.
4585 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4586 initialize_growth_caches, free_growth_caches): Declare.
4587 (estimate_edge_growth): Rewrite.
4588 (estimate_edge_time): Implement as inline cache lookup.
4589 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4591 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4592 (NUM_CONDITIONS): New constant.
4593 (predicate_conditions): New enum.
4594 (IS_NOT_CONSTANT): New constant.
4595 (edge_removal_hook_holder): New var.
4596 (node_growth_cache, edge_growth_cache): New global vars.
4597 (true_predicate, single_cond_predicate, false_predicate,
4598 not_inlined_predicate, add_condition, add_clause, and_predicates,
4599 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4600 dump_clause, dump_predicate, account_size_time,
4601 evaulate_conditions_for_edge): New functions.
4602 (inline_summary_alloc): Move to heap.
4603 (inline_node_removal_hook): Clear condition and entry vectors.
4604 (inline_edge_removal_hook): New function.
4605 (initialize_growth_caches, free_growth_caches): New function.
4606 (dump_inline_summary): Update.
4607 (edge_execution_predicate): New function.
4608 (will_be_nonconstant_predicate): New function.
4609 (estimate_function_body_sizes): Compute BB and constantness predicates.
4610 (compute_inline_parameters): Do not clear estimated_growth.
4611 (estimate_edge_size_and_time): New function.
4612 (estimate_calls_size_and_time): New function.
4613 (estimate_callee_size_and_time): New function.
4614 (remap_predicate): New function.
4615 (inline_merge_summary): New function.
4616 (do_estimate_edge_time): New function based on...
4617 (estimate_edge_time): ... this one.
4618 (do_estimate_edge_growth): New function.
4619 (do_estimate_growth): New function based on....
4620 (estimate_growth): ... this one.
4621 (inline_analyze_function): Analyze after deciding on jump functions.
4622 (inline_read_section): New function.
4623 (inline_read_summary): Use it.
4624 (inline_write_summary): Write all the new data.
4625 * ipa-prop.c (ipa_get_param_decl_index): Export.
4626 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4627 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4629 (ipa_get_lattice): Move here from ipa-cp.c
4630 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4631 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4632 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4633 cgraph_edge_inlinable_p): Remove.
4634 * cgraphunit.c: Include ipainline.h
4635 (cgraph_process_new_functions): Update call of
4636 compute_inline_parameters.
4638 2011-04-22 Richard Guenther <rguenther@suse.de>
4640 * tree.c (build_int_cst): Properly create canonicalized integer
4642 (build_int_cst_type): Remove scary comments.
4644 2011-04-22 Xinliang David Li <davidxl@google.com>
4646 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4647 by default when -Wno-error is not specified.
4648 * opts-global.c (decode_options): Remove call to
4649 control_warning_options.
4651 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4653 PR tree-optimization/48717
4654 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4655 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4657 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4659 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4660 definition where used.
4662 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4665 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4666 TREE_STATIC variables declared inside of some OpenMP construct.
4668 2011-04-22 Martin Jambor <mjambor@suse.cz>
4671 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4673 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4676 * c-typeck.c (pop_init_level): Do not warn about initializing
4679 2011-04-22 Alan Modra <amodra@gmail.com>
4681 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4682 when returning call_cookie.
4683 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4684 pointers, to functions with no more vector args than the current
4685 function, and some non-local calls for ABI_V4.
4686 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4687 sibcall_nonlocal_aix64): Combine to ..
4688 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4689 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4690 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4691 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4692 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4694 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4695 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4696 sibcall_value_symbolic_64): Delete.
4698 2011-04-21 Xinliang David Li <davidxl@google.com>
4700 * cgraph.h: Remove pid.
4701 * cgraph.c: Remove pid.
4702 * value-prof.c (init_node_map): New function.
4703 (del_node_map): New function.
4704 (find_func_by_funcdef_no): New function.
4705 (gimple_ic_transform): Call new function.
4706 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4707 * function.c (get_last_funcdef_no): New function.
4708 * function.h (get_last_funcdef_no): New function.
4709 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4710 to libgcov function.
4711 (tree-profiling): Call node map init and delete function.
4713 2011-04-21 Ian Lance Taylor <iant@google.com>
4715 * godump.c (go_format_type): Use exported Go name for anonymous
4718 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4720 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4721 Call builtin_function_type_list instead of builtin_function_type.
4722 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4724 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4726 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4727 build_function_type_list instead of build_function_type.
4728 Delete variable `endlink'.
4730 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4732 * config/s390/s390.c (s390_init_builtins): Call
4733 build_function_type_list instead of build_function_type.
4735 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4737 * config/ia64/ia64.c (ia64_init_builtins): Call
4738 build_function_type_list instead of builtin_function_type.
4740 2011-04-21 Easwaran Raman <eraman@google.com>
4742 * cfgexpand.c (stack_var): Remove OFFSET...
4743 (add_stack_var): ...and its reference here...
4744 (expand_stack_vars): ...and here.
4745 (stack_var_cmp): Sort by descending order of size.
4746 (partition_stack_vars): Change heuristic.
4747 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4748 (dump_stack_var_partition): Add newline after each partition.
4750 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4751 Jeff Law <law@redhat.com>
4753 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4754 * gengtype.c (matching_file_name_substitute): Likewise.
4756 2011-04-21 Richard Guenther <rguenther@suse.de>
4759 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4761 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4763 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4765 2011-04-21 Richard Guenther <rguenther@suse.de>
4767 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4770 2011-04-21 Richard Guenther <rguenther@suse.de>
4772 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4773 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4774 Use DECL_P, not SSA_VAR_P.
4775 (ptr_derefs_may_alias_p): Likewise.
4776 (ptr_deref_may_alias_ref_p_1): Likewise.
4777 (decl_refs_may_alias_p): Likewise.
4778 (refs_may_alias_p_1): Likewise.
4779 (ref_maybe_used_by_call_p_1): Likewise.
4780 (call_may_clobber_ref_p_1): Likewise.
4781 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4782 are either MEM_REF or TARGET_MEM_REF.
4783 (indirect_refs_may_alias_p): Likewise.
4784 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4785 for MEM_EXPR of indirect calls.
4787 2011-04-21 Tristan Gingold <gingold@adacore.com>
4789 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4790 (dst_file_info_struct): Remove flen field.
4791 (lookup_filename): Remove code that set flen field.
4793 2011-04-21 Tristan Gingold <gingold@adacore.com>
4795 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4797 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4800 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4801 vec_extract and vec_concat for non-SSE4_1 targets.
4803 2011-04-21 Richard Guenther <rguenther@suse.de>
4805 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4808 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4810 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4812 (FILE): Don't undefine.
4814 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4816 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4818 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4820 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4821 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4822 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4824 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4825 definitions where used.
4826 * config/microblaze/microblaze.h (struct microblaze_args): Use
4827 rtx, not struct rtx_def *.
4828 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4830 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4831 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4832 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4833 not struct rtx_def *.
4834 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4836 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4838 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4840 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4842 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4843 operand_equal_p to compare DR_BASE_ADDRESSes.
4844 (vect_check_interleaving): Likewise.
4846 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4849 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4850 for all Neon struct constants.
4852 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4854 * target.def (legitimate_constant_p): New hook.
4855 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4856 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4857 * doc/tm.texi: Regenerate.
4858 * hooks.h (hook_bool_mode_rtx_true): Declare.
4859 * hooks.c (hook_bool_mode_rtx_true): Define.
4860 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4861 * calls.c (precompute_register_parameters): Replace uses of
4862 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4863 (emit_library_call_value_1): Likewise.
4864 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4865 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4866 * ira-costs.c (scan_one_insn): Likewise.
4867 * recog.c (general_operand, immediate_operand): Likewise.
4868 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4869 * reload1.c (init_eliminable_invariants): Likewise.
4871 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4873 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4874 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4876 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4877 * config/alpha/predicates.md (input_operand): Update call to
4878 alpha_legitimate_constant_p.
4880 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4881 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4882 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4883 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4884 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4885 (arm_legitimate_constant_p): New functions.
4886 (arm_cannot_force_const_mem): Make static.
4888 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4890 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4891 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4892 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4893 instead of bfin_legitimate_constant_p.
4894 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4895 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4897 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4899 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4901 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4902 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4903 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4904 (frv_legitimate_constant_p): Make static. Add a mode argument.
4906 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4907 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4908 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4910 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4911 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4912 * config/i386/i386.c (legitimate_constant_p): Rename to...
4913 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4915 (ix86_cannot_force_const_mem): Update accordingly.
4916 (ix86_legitimate_address_p): Likewise.
4917 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4918 * config/i386/i386.md: Update commentary.
4920 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4921 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4922 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4923 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4925 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4927 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4928 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4929 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4930 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4932 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4933 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4934 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4936 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4937 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4938 (m32r_legitimate_constant_p): New function.
4940 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4941 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4942 LEGITIMATE_CONSTANT_P.
4943 (LEGITIMATE_CONSTANT_P): Delete.
4944 * config/m68k/m68k.c (m68k_expand_prologue): Call
4945 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4946 (m68k_legitimate_constant_p): New function.
4947 * config/m68k/m68k.md: Update comments.
4949 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4950 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4951 (mcore_legitimate_constant_p): New function.
4953 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4954 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4955 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4956 Add a mode argument.
4957 (mep_legitimate_address): Update accordingly.
4958 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4960 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4962 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4963 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4964 static. Check OP's mode for VOIDmode.
4965 (microblaze_legitimate_constant_p): New function.
4966 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4968 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4969 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4970 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4971 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4972 * config/mips/predicates.md: Update comments.
4974 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4975 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4976 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4977 (mmix_legitimate_constant_p): Make static, return a bool, and take
4979 (mmix_print_operand_address): Update accordingly.
4981 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4983 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4984 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4985 static. Add a mode argument.
4986 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4988 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4990 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4991 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4992 (pa_legitimate_constant_p): New function.
4994 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4996 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4997 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4998 (pdp11_legitimate_constant_p): New function.
5000 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5001 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5002 (rs6000_legitimate_constant_p): New function.
5004 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5005 (rx_legitimate_constant_p): ...this.
5006 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5007 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5008 (rx_legitimate_constant_p): ...this.
5009 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5010 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5012 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5013 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5014 * config/s390/s390.c (legitimate_constant_p): Rename to...
5015 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5016 and add a mode argument.
5017 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5019 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5021 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5022 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5023 (sh_legitimate_constant_p): New function.
5025 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5026 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5027 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5028 (legitimate_constant_p): Rename to...
5029 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5031 (constant_address_p): Update accordingly.
5033 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5034 argument and return a bool.
5035 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5036 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5037 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5038 (spu_rtx_costs): Update accordingly.
5039 * config/spu/predicates.md (vec_imm_operand): Likewise.
5041 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5043 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5044 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5045 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5047 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5048 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5049 * config/vax/vax.c (legitimate_constant_p): Likewise.
5051 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5052 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5053 (xtensa_legitimate_constant_p): New function.
5055 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5057 * target.def (cannot_force_const_mem): Add a mode argument.
5058 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5059 * doc/tm.texi: Regenerate.
5060 * hooks.h (hook_bool_mode_rtx_false): Declare.
5061 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5062 (hook_bool_mode_const_rtx_true): Likewise.
5063 (hook_bool_mode_rtx_false): New function.
5064 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5065 to be non-VOID. Update call to cannot_force_const_mem.
5066 (find_reloads): Update accordingly.
5067 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5068 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5070 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5071 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5072 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5073 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5074 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5075 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5076 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5077 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5078 (m68k_cannot_force_const_mem): ...this new function.
5079 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5081 (mips_const_insns, mips_legitimize_const_move): Update calls.
5082 (mips_secondary_reload_class): Likewise.
5083 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5084 (pa_cannot_force_const_mem): ...this new function.
5085 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5086 (rs6000_cannot_force_const_mem): ...this new function.
5087 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5089 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5090 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5092 (xtensa_cannot_force_const_mem): ...this new function.
5094 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5096 * config/mips/mips.c (mips16_build_function_stub): Call
5097 build_function_type_list instead of build_function_type.
5098 (mips16_build_call_stub): Likewise.
5100 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5102 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5103 instead of build_function_type.
5105 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5107 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5108 instead of build_function_type.
5110 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5113 * config/i386/i386.md (insv): Change operand 0 constraint to
5114 "register_operand". Change operand 1 and 2 constraint to
5115 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5116 * config/i386/sse.md (sse4_1_pinsrb): Export.
5117 (sse2_pinsrw): Ditto.
5118 (sse4_1_pinsrd): Ditto.
5119 (sse4_1_pinsrq): Ditto.
5120 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5121 * config/i386/i386.c (ix86_expand_pinsr): New.
5123 2011-04-20 Easwaran Raman <eraman@google.com>
5125 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5126 containing union type only with -fstrict-aliasing.
5128 2011-04-20 Jim Meyering <meyering@redhat.com>
5130 Remove useless if-before-free tests.
5131 * calls.c (expand_call, save_area): Likewise.
5132 * cfgcleanup.c (try_forward_edges): Likewise.
5133 * collect2.c (collect_execute): Likewise.
5134 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5135 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5136 * coverage.c (coverage_checksum_string): Likewise.
5137 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5138 * cselib.c (cselib_init): Likewise.
5139 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5140 (df_set_clean_cfg): Likewise.
5141 * function.c (free_after_compilation): Likewise.
5142 * gcc.c (do_spec_1, main): Likewise.
5143 * gcov.c (create_file_names): Likewise.
5144 * gensupport.c (identify_predicable_attribute): Likewise.
5145 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5146 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5147 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5148 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5149 * ipa-pure-const.c (local_pure_const): Likewise.
5150 * ipa-reference.c (propagate): Likewise.
5151 * ira-costs.c (free_ira_costs): Likewise.
5152 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5153 * matrix-reorg.c (mat_free): Likewise.
5154 * prefix.c (get_key_value): Likewise.
5155 * profile.c (compute_value_histograms): Likewise.
5156 * reload1.c (free_reg_equiv): Likewise.
5157 * sched-deps.c (free_deps): Likewise.
5158 * sel-sched-ir.c (fence_clear): Likewise.
5159 * sese.c (set_rename, if_region_set_false_region): Likewise.
5160 * tree-data-ref.c (free_rdg): Likewise.
5161 * tree-eh.c (lower_try_finally): Likewise.
5162 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5163 * tree-ssa-live.c (delete_var_map): Likewise.
5164 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5165 * tree-ssa-pre.c (phi_trans_add): Likewise.
5167 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5169 PR tree-optimization/48611
5170 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5171 beyond ERT_MUST_NOT_THROW region.
5173 2011-04-20 Catherine Moore <clm@codesourcery.com>
5175 * config/mips/mips.opt (mfix-24k): New.
5176 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5177 * config/mips/mips.md (length): Increase by 4 for stores if
5179 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5180 all noreorder if fixing 24K errata.
5181 * doc/invoke.texi: Document mfix-24k.
5183 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5185 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5186 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5188 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5190 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5191 (const_ok_for_op): ... to here.
5193 2011-04-20 Kai Tietz <ktietz@redhat.com>
5195 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5196 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5198 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5200 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5202 2011-04-20 Richard Guenther <rguenther@suse.de>
5204 PR tree-optimization/47892
5205 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5208 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5210 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5212 2011-04-20 Tristan Gingold <gingold@adacore.com>
5214 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5216 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5220 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5221 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5222 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5223 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5224 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5226 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5229 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5230 (avr_asm_named_section, avr_asm_output_aligned_common,
5231 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5232 New functions to update...
5233 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5234 (avr_asm_init_sections): Overwrite section callbacks for
5235 data_section, bss_section.
5236 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5238 (avr_file_end): ...here.
5240 2011-04-20 Richard Guenther <rguenther@suse.de>
5243 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5244 objects and types here. Adjust for their offset before comparing.
5246 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5248 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5251 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5253 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5254 (GIMPLE_H): Include $(INTERNAL_FN_H).
5255 (OBJS-common): Add internal-fn.o.
5256 (internal-fn.o): New rule.
5257 * internal-fn.def: New file.
5258 * internal-fn.h: Likewise.
5259 * internal-fn.c: Likewise.
5260 * gimple.h: Include internal-fn.h.
5261 (GF_CALL_INTERNAL): New gf_mask.
5262 (gimple_statement_call): Put fntype into a union with a new
5264 (gimple_build_call_internal): Declare.
5265 (gimple_build_call_internal_vec): Likewise.
5266 (gimple_call_same_target_p): Likewise.
5267 (gimple_call_internal_p): New function.
5268 (gimple_call_internal_fn): Likewise.
5269 (gimple_call_fntype): Return null for internal calls.
5270 (gimple_call_set_fntype): Assert that the function is not internal.
5271 (gimple_call_set_fn): Likewise.
5272 (gimple_call_set_fndecl): Likewise.
5273 (gimple_call_set_internal_fn): New function.
5274 (gimple_call_addr_fndecl): Handle null functions.
5275 (gimple_call_return_type): Likewise null types.
5276 * gimple.c (gimple_build_call_internal_1): New function.
5277 (gimple_build_call_internal): Likewise.
5278 (gimple_build_call_internal_vec): Likewise.
5279 (gimple_call_same_target_p): Likewise.
5280 (gimple_call_flags): Handle calls to internal functions.
5281 (gimple_call_fnspec): New function.
5282 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5283 (gimple_has_side_effects): Handle null functions.
5284 (gimple_rhs_has_side_effects): Likewise.
5285 (gimple_call_copy_skip_args): Handle calls to internal functions.
5286 * cfgexpand.c (expand_call_stmt): Likewise.
5287 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5288 * gimple-fold.c (gimple_fold_call): Handle null functions.
5289 (gimple_fold_stmt_to_constant_1): Don't fold
5290 calls to internal functions.
5291 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5293 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5294 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5295 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5296 (do_warn_unused_result): Likewise.
5297 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5298 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5299 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5300 the target of a call.
5301 (initialize_hash_element): Update accordingly.
5302 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5303 (iterative_hash_hashable_expr): Handle calls to internal functions.
5304 (print_expr_hash_elt): Likewise.
5305 * tree-ssa-pre.c (can_value_number_call): Likewise.
5306 (eliminate): Handle null functions.
5307 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5308 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5309 (find_func_aliases): Likewise.
5310 * value-prof.c (gimple_ic_transform): Likewise.
5311 (gimple_indirect_call_to_profile): Likewise.
5312 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5313 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5315 2011-04-19 Jan Hubicka <jh@suse.cz>
5317 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5318 * ipa-inline.c (inline_small_functions): Compute summaries first,
5319 populate heap later.
5321 2011-04-19 Jan Hubicka <jh@suse.cz>
5323 * cgraph.h (save_inline_function_body): Remove.
5324 * ipa-inline-transform.c: New file, broke out of...
5325 * ipa-inline.c: ... this one; Update toplevel comment.
5326 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5328 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5329 (cgraph_mark_inline_edge): Rename to inline_call; move to
5330 ipa-inline-transform.c.
5331 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5332 move to ipa-inline-transform.c
5333 (recursive_inlining, inline_small_functions, flatten_function,
5334 ipa_inline, inline_always_inline_functions,
5335 early_inline_small_functions): Update.
5336 (inline_transform): Move to ipa-inline-transform.c.
5337 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5339 * Makefile.in (ipa-inline-transform.o): New file.
5340 * cgraphunit.c (save_inline_function_body): Move to
5341 ipa-inline-transform.c
5343 2011-04-19 DJ Delorie <dj@redhat.com>
5345 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5346 registers if we already know there aren't any.
5347 (m32c_emit_epilogue): Don't emit a barrier here.
5348 (m32c_emit_eh_epilogue): Likewise.
5349 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5350 operands at expand time.
5351 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5353 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5354 duplicates. Provide aliases instead.
5355 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5356 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5359 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5361 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5362 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5363 (general_or_i64_p, sparc_register_move_cost): New function.
5365 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5367 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5368 Add lynx, mipssde. Sort table.
5370 2011-04-19 Xinliang David Li <davidxl@google.com>
5372 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5375 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5378 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5379 is a SUBREG with non-MODE_INT mode inside of it.
5381 2011-04-19 Martin Jambor <mjambor@suse.cz>
5383 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5384 also according to actual contants.
5385 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5386 (gimple_fold_call): Use it.
5387 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5389 2011-04-19 Martin Jambor <mjambor@suse.cz>
5391 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5392 non-pointer assignments.
5394 2011-04-19 Martin Jambor <mjambor@suse.cz>
5396 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5397 account anc_offset and otr_type from the indirect edge info.
5398 * ipa-prop.c (get_ancestor_addr_info): New function.
5399 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5400 get_ancestor_addr_info, call it.
5401 (ipa_note_param_call): Do not initialize information about polymorphic
5402 calls, return the indirect call graph edge. Remove the last
5403 parameter, adjust all callers.
5404 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5405 parameters. Initialize polymorphic information in the indirect edge.
5407 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5410 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5411 the types if they have different enumeration identifiers.
5413 2011-04-19 Jan Hubicka <jh@suse.cz>
5415 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5416 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5417 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5418 (optimize_function_for_size_p) ... here.
5420 2011-04-19 Richard Guenther <rguenther@suse.de>
5423 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5426 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5428 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5429 if DECL_NO_INLINE_WARNING_P is set on the function.
5431 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5434 * reload1.c (inc_for_reload): Return void. All callers changed.
5435 (emit_input_reload_insns): Don't try to delete previous output
5436 reloads to a register, or record spill_reg_store for autoincs.
5438 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5440 * gengtype.h: Updated copyright year.
5441 (struct input_file_st): Add inpisplugin field.
5442 (type_fileloc): New function.
5444 (write_typed_struct_alloc_def): Add gcc_assert.
5445 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5446 (write_typed_alloc_defns): Don't output for plugin files.
5447 (input_file_by_name): Clear inpisplugin field.
5448 (main): Set inpisplugin field for plugin files.
5450 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5452 * gengtype-state.c (string_eq): New.
5453 (read_state): Use string_eq instead of strcmp when creating the
5456 2011-04-19 Wei Guozhi <carrot@google.com>
5459 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5460 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5462 * config/arm/constraints.md (Uu): New constraint.
5463 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5465 2011-04-19 Tristan Gingold <gingold@adacore.com>
5467 * config.gcc (-*-*-*vms): Added.
5468 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5470 * config/vms/vms-ld.c: New file.
5471 * config/vms/vms-ar.c: New file.
5472 * config/vms/t-vmsnative: New file.
5474 2011-04-18 Xinliang David Li <davidxl@google.com>
5476 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5478 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5481 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5482 if TREE_TYPE (v) is non-NULL.
5484 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5485 gimple_get_virt_mehtod_for_binfo.
5486 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5487 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5489 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5491 2011-04-18 Michael Matz <matz@suse.de>
5492 Steve Ellcey <sje@cup.hp.com>
5494 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5495 use its mode as source mode if it isn't VOIDmode.
5497 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5499 * doc/passes.texi: Fill crossref nodes.
5501 2011-04-18 Jim Meyering <meyering@redhat.com>
5503 Fix doubled-word typos in comments and strings
5504 * config/alpha/vms-unwind.h: s/for for/for/
5505 * config/arm/unwind-arm.h: Likewise.
5506 * config/microblaze/microblaze.c: Likewise.
5507 * config/sh/constraints.md: s/in in/in/
5508 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5510 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5512 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5513 (AVX_FLOAT_MODE_P): Ditto.
5514 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5515 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5516 (AVX_VEC_FLOAT_MODE_P): Ditto.
5517 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5518 (UNSPEC_MASKSTORE): Ditto.
5519 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5520 Merge from <sse>_movmsk<ssemodesuffix> and
5521 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5522 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5524 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5525 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5526 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5528 2011-04-18 Jan Hubicka <jh@suse.cz>
5530 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5532 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5533 (want_inline_function_called_once_p): Break out the logic from
5535 (edge_badness): Ensure that profile is not misupdated.
5536 (lookup_recursive_calls): Prioritize by call frequencies.
5537 (inline_small_functions): Move program size estimates here;
5538 actually process whole queue even when unit growth has been
5539 met. (to properly compute inline_failed reasons and for the
5540 case unit size decrease.) Revisit comments on recursive inlining.
5541 (ipa_inline): Remove unit summary code; first inline hot calls
5542 of functions called once, cold calls next.
5543 (order, nnodes): Remove unused variables.
5544 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5545 (GTFILES): Remove ipa-inline.c
5546 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5548 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5550 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5552 2011-04-18 Jie Zhang <jie@codesourcery.com>
5553 Richard Earnshaw <rearnsha@arm.com>
5555 * arm.c (neon_builtin_type_bits): Remove.
5556 (typedef enum neon_builtin_mode): New.
5557 (T_MAX): Don't define.
5558 (typedef enum neon_builtin_datum): Remove bits, codes[],
5559 num_vars and base_fcode. Add mode, code and fcode.
5560 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5561 VAR10): Change accordingly.
5562 (neon_builtin_data[]): Change accordingly
5563 (arm_init_neon_builtins): Change accordingly.
5564 (neon_builtin_compare): Remove.
5565 (locate_neon_builtin_icode): Remove.
5566 (arm_expand_neon_builtin): Change accordingly.
5568 * arm.h (enum arm_builtins): Move to ...
5569 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5571 * arm.c (arm_builtin_decl): Declare.
5572 (TARGET_BUILTIN_DECL): Define.
5573 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5574 (arm_builtin_decls[]): New.
5575 (arm_init_neon_builtins): Store builtin declarations in
5576 arm_builtin_decls[].
5577 (arm_init_tls_builtins): Likewise.
5578 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5579 (arm_builtin_decl): New.
5581 2011-04-18 Richard Guenther <rguenther@suse.de>
5583 * tree.c (upper_bound_in_type): Build properly canonicalized
5585 (lower_bound_in_type): Likewise.
5587 2011-04-18 Richard Guenther <rguenther@suse.de>
5589 * gimple.h (gimple_call_addr_fndecl): New function.
5590 (gimple_call_fndecl): Use it.
5591 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5593 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5594 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5596 2011-04-18 Richard Guenther <rguenther@suse.de>
5599 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5601 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5604 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5605 DECL_IN_CONSTANT_POOL without RTL.
5607 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5608 Ira Rosen <ira.rosen@linaro.org>
5611 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5612 to match neon_vzip/vuzp/vtrn_internal.
5613 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5614 outputs explicitly dependent on both inputs.
5615 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5617 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5619 PR tree-optimization/48616
5620 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5621 whether the shift is by scalar or vector based on whether all SLP
5622 scalar stmts have the same rhs.
5624 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5626 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5629 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5632 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5635 2011-04-17 Jan Hubicka <jh@suse.cz>
5637 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5638 * cgrpahunit.c (cgraph_finalize_function): Do not set
5639 finalized_by_frontend.
5640 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5641 finalized_by_frontend.
5643 2011-04-17 Jan Hubicka <jh@suse.cz>
5645 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5646 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5647 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5648 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5650 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5652 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5654 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5657 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5658 is non-null before accessing it.
5659 (input_cgraph): Remove trailing spaces.
5661 2011-04-17 Revital Eres <revital.eres@linaro.org>
5663 * params.def (sms-min-sc): New param flag.
5664 * modulo-sched.c (sms_schedule): Use it.
5665 * doc/invoke.texi (sms-min-sc): Document it.
5667 2011-04-17 Jan Hubicka <jh@suse.cz>
5669 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5670 present, also set gimple_call_set_cannot_inline.
5671 * ipa-inline.c: Update toplevel comment.
5673 (cgraph_clone_inlined_nodes): Fix linebreaks.
5674 (cgraph_check_inline_limits): Restructure to ...
5675 (caller_growth_limits): ... this one; be more tolerant
5676 on growth in nested inline chains; add explanatory comment;
5677 fix stack accounting thinko introduced by previous patch.
5678 (cgraph_default_inline_p): Remove.
5679 (report_inline_failed_reason): New function.
5680 (can_inline_edge_p): New function.
5681 (can_early_inline_edge_p): New function.
5682 (leaf_node_p): Move upwards in file.
5683 (want_early_inline_function_p): New function.
5684 (want_inline_small_function_p): New function.
5685 (want_inline_self_recursive_call_p): New function.
5686 (cgraph_edge_badness): Rename to ...
5687 (edge_badness) ... this one; fix linebreaks.
5688 (update_edge_key): Update call of edge_baddness; add
5689 detailed dump about queue updates.
5690 (update_caller_keys): Use can_inline_edge_p and
5691 want_inline_small_function_p.
5692 (cgraph_decide_recursive_inlining): Rename to...
5693 (recursive_inlining): Use can_inline_edge_p and
5694 want_inline_self_recursive_call_p; simplify and remove no longer
5696 (cgraph_set_inline_failed): Remove.
5697 (add_new_edges_to_heap): Use can_inline_edge_p and
5698 want_inline_small_function_p.
5699 (cgraph_decide_inlining_of_small_functions): Rename to ...
5700 (inline_small_functions): ... this one; cleanup; use
5701 can/want predicates; cleanup debug ouput; work edges till fibheap
5702 is exhausted and do not stop once unit growth is reached; remove
5703 later loop processing remaining edges.
5704 (cgraph_flatten): Rename to ...
5705 (flatten_function): ... this one; use can_inline_edge_p
5706 and can_early_inline_edge_p predicates.
5707 (cgraph_decide_inlining): Rename to ...
5708 (ipa_inline): ... this one; remove unreachable nodes before
5709 inlining functions called once; simplify the pass.
5710 (cgraph_perform_always_inlining): Rename to ...
5711 (inline_always_inline_functions): ... this one; use
5712 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5713 (cgraph_decide_inlining_incrementally): Rename to ...
5714 (early_inline_small_functions): ... this one; simplify
5715 using new predicates; cleanup; make dumps prettier.
5716 (cgraph_early_inlining): Rename to ...
5717 (early_inliner): newer inline regular functions into always-inlines;
5718 fix updating of call stmt summaries.
5719 (pass_early_inline): Update for new names.
5720 (inline_transform): Fix formating.
5721 (gate_cgraph_decide_inlining): Rename to ...
5722 (pass_ipa_inline): ... this one.
5723 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5724 * ipa-inline-analysis.c (dump_inline_summary): Update.
5725 (compute_inline_parameters): Do not compute disregard_inline_limits;
5726 look for mismatching arguments.
5727 (estimate_growth): Fix handlig of non-trivial self recursion.
5728 (inline_read_summary): Do not read info->disregard_inline_limits.
5729 (inline_write_summary): Do not write info->disregard_inline_limits.
5730 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5731 and move all checks into can_inline_edge_p predicate; re-enable code
5732 comparing optimization levels.
5733 (expand_call_inline): Do not test inline_forbidden_into_p.
5734 * Makefile.in (ipa-inline.o): Update arguments.
5736 2011-04-17 Revital Eres <revital.eres@linaro.org>
5738 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5740 2011-04-17 Revital Eres <revital.eres@linaro.org>
5742 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5744 2011-04-17 Michael Matz <matz@suse.de>
5746 PR tree-optimization/48622
5748 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5749 in same order as they're written.
5751 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5753 * config/pa/predicates.md: Reorganize and simplify predicates.
5754 Eliminate duplicate code checks.
5755 (arith_operand): Rename to arith14_operand
5756 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5757 * config/pa/pa.md: Use renamed operands.
5758 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5759 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5760 arith11_operand, adddi3_operand, indexed_memory_operand,
5761 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5762 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5763 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5764 move_dest_operand, move_src_operand, prefetch_cc_operand,
5765 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5766 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5767 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5768 div_operand, int5_operand, movb_comparison_operator,
5769 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5770 arith_double_operand, ireg_operand, lhs_lshift_operand,
5771 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5772 integer_store_memory_operand): Likewise.
5773 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5774 (integer_store_memory_operand, read_only_operand,
5775 function_label_operand, borx_reg_operand,
5776 non_hard_reg_operand): Likewise.
5777 (eq_neq_comparison_operator): Delete unused operator.
5778 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5779 function_label_operand.
5780 (emit_move_sequence): Likewise.
5782 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5784 * config/i386/sse.md (sseunpackmode): New mode attribute.
5785 (ssepackmode): Ditto.
5786 (vec_pack_trunc_<mode>): Macroize expander from
5787 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5788 (vec_unpacks_lo_<mode>): Macroize expander from
5789 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5790 (vec_unpacks_hi_<mode>): Macroize expander from
5791 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5792 (vec_unpacku_lo_<mode>): Macroize expander from
5793 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5794 (vec_unpacku_hi_<mode>): Macroize expander from
5795 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5796 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5797 ix86_expand_sse4_unpack.
5798 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5800 2011-04-16 Jan Hubicka <jh@suse.cz>
5802 * cgraphbuild.c: Include ipa-inline.h.
5803 (reset_inline_failed): Use initialize_inline_failed.
5804 * cgraph.c: Include ipa-inline.h.
5805 (cgraph_create_node_1): Do not initialize estimated_growth.
5806 (initialize_inline_failed): More to ipa-inline-analysis.c
5807 (dump_cgraph_node): Do not dump inline flags.
5808 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5809 and disregard_inline_limits flags.
5810 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5811 time, size, estimated_growth.
5812 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5814 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5815 DECL_DISREGARD_INLINE_LIMITS.
5816 (cgraph_analyze_function): Do not initialize
5817 node->local.disregard_inline_limits.
5818 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5819 inlinable, versionable and disregard_inline_limits.
5820 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5821 cgraph_check_inline_limits, cgraph_default_inline_p,
5822 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5823 add_new_edges_to_heap): Update.
5824 (cgraph_decide_inlining_of_small_function): Update; set
5825 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5826 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5827 cgraph_decide_inlining_incrementally): Update.
5828 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5829 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5830 time, size and estimated_growth parameters.
5831 (estimate_edge_growth): Update.
5832 (initialize_inline_failed): Declare.
5833 * ipa-split.c: Include ipa-inline.h
5834 (execute_split_functions): Update.
5835 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5836 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5837 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5838 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5839 estimated_growth to INT_MIN.
5840 (inline_node_duplication_hook): Likewise.
5841 (dump_inline_summary): Dump new fields.
5842 (compute_inline_parameters): Update.
5843 (estimate_edge_time, estimate_time_after_inlining,
5844 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5845 inline_write_summary):
5846 (initialize_inline_failed): Move here from cgraph.c.
5847 * tree-sra.c: Include ipa-inline.h.
5848 (ipa_sra_preliminary_function_checks): Update.
5849 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5852 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5854 * config/i386/sse.md (V16): New mode iterator.
5856 (AVXMODEQI, AVXMODEDI): Remove.
5857 (sse2, sse3): New mode attribute.
5858 (mov<mode>): Use V16 mode iterator.
5859 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5860 (push<mode>1): Use V16 mode iterator.
5861 (movmisalign<mode>): Ditto.
5862 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5863 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5864 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5865 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5866 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5867 avx_movdqu<avxmodesuffix>.
5868 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5869 *avx_movdqu<avxmodesuffix>.
5870 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5871 avx_lddqu<avxmodesuffix>.
5872 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5873 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5874 avx_movnt<AVXMODEDI:mode>.
5875 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5876 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5878 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5881 * haifa-sched.c (prune_ready_list, schedule_block): Use
5882 sched_pressure_p rather than flag_sched_pressure.
5884 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5886 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5887 cgraph_get_node instead of cgraph_get_create_node.
5889 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5891 * cfgexpand.c (expand_debug_expr): Use
5892 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5894 2011-04-15 Michael Matz <matz@suse.de>
5896 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5897 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5898 * function.c (gimplify_parameters): Ditto.
5899 * gimplify.c (gimplify_vla_decl): Ditto.
5901 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5902 (gimple_call_set_alloca_for_var): New inline function.
5903 (gimple_call_alloca_for_var_p): Ditto.
5904 * gimple.c (gimple_build_call_from_tree): Remember
5905 CALL_ALLOCA_FOR_VAR_P state.
5906 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5908 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5909 calls if they were for VLA objects.
5911 2011-04-15 Martin Jambor <mjambor@suse.cz>
5913 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5916 2011-04-15 Martin Jambor <mjambor@suse.cz>
5919 * tree-emutls.c (lower_emutls_function_body): Call
5920 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5923 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5925 * c-decl.c (detect_field_duplicates): Call
5926 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5928 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5930 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5931 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5932 * ipa-pure-const.c (check_stmt): Call it.
5933 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5935 2011-04-15 Richard Guenther <rguenther@suse.de>
5937 PR tree-optimization/48290
5938 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5939 Properly decide inhibiting propagation based on the valueized
5940 operand. Do loop-closed SSA form preserving here ...
5941 (init_copy_prop): ... not here.
5943 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5946 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5947 (*ieee_smax<mode>3): Likewise.
5949 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5951 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5952 Replace match_operand with match_dup for the third operand in
5955 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5957 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5958 to track processing of conditionals. Update all callers.
5959 (try_combine, simplify_if_then_else): Update.
5961 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5963 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5966 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5968 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5969 instead of match_operand for operand 3.
5971 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5973 * recog.h (insn_operand_data): Add an "allows_mem" field.
5974 * genoutput.c (output_operand_data): Initialize it.
5975 * optabs.c (maybe_legitimize_operand_same_code): New function.
5976 (maybe_legitimize_operand): Use it when matching the original
5979 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5981 * gimplify.c: Fix issues in comments throughout.
5982 (voidify_wrapper_expr): Fix long line.
5983 (build_stack_save_restore): Likewise.
5984 (gimplify_loop_expr): Likewise.
5985 (gimplify_compound_lval): Likewise.
5986 (gimplify_init_ctor_eval): Likewise.
5987 (gimplify_modify_expr_rhs): Likewise.
5988 (omp_notice_threadprivate_variable): Likewise.
5990 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5992 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5993 original one if this is not a builtin function.
5995 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5998 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5999 offset it as needed based on top 2 bits in operands[3], change
6000 MEM mode to SFmode and mask those 2 bits away from operands[3].
6002 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6004 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6005 change from objc_declare_protocols() to objc_declare_protocol().
6007 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6009 * config/i386/sse.md (sse4_1): New mode attribute.
6010 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6011 avx_blend<ssemodesuffix><avxmodesuffix> and
6012 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6013 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6014 avx_blendv<ssemodesuffix><avxmodesuffix> and
6015 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6016 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6017 avx_dp<ssemodesuffix><avxmodesuffix> and
6018 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6019 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6020 (sse4_1_packusdw): Merge with *avx_packusdw.
6021 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6022 (sse4_1_pblendw): Merge with *avx_pblendw.
6023 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6024 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6025 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6027 (sse4_1_round<ssescalarmodesuffix>): Merge with
6028 *avx_round<ssescalarmodesuffix>.
6029 (aesenc): Merge with *avx_aesenc.
6030 (aesenclast): Merge with *avx_aesenclast.
6031 (aesdec): Merge with *avx_aesdec.
6032 (aesdeclast): Merge with *avx_aesdeclast.
6033 (pclmulqdq): Merge with *pclmulqdq.
6034 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6036 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6038 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6041 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6042 (align_local_variable): This. Update DECL_ALIGN.
6043 (add_stack_var): Updated.
6044 (expand_one_stack_var): Likewise.
6046 2011-04-14 Richard Guenther <rguenther@suse.de>
6048 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6050 (dse_initialize_block_local_data, dse_leave_block,
6051 record_voperand_set, get_stmt_uid): Likewise.
6052 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6053 (dse_optimize_stmt): Remove voperand set handling code.
6054 Simplify and improve to handle any kind of killing stmt.
6055 (dse_record_phi): Remove.
6056 (dse_enter_block): Simplify.
6057 (tree_ssa_dse): Likewise.
6058 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6060 2011-04-14 Jan Hubicka <jh@suse.cz>
6062 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6063 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6064 (cgraph_local_info): Remove inline_summary.
6065 * ipa-cp.c: Include ipa-inline.h.
6066 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6067 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6069 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6070 (input_overwrite_node): Do not set inline summary.
6071 (input_node): Do not stream inline summary.
6072 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6073 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6074 growth; we do not have inline parameters computed for that anyway.
6075 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6076 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6077 (inline_summary_t): New type and VECtor.
6078 (debug_inline_summary, dump_inline_summaries): Declare.
6079 (inline_summary): Use VOCtor.
6080 (estimate_edge_growth): Kill hack computing call stmt size directly.
6081 * lto-section-in.c (lto_section_name): Add inline section.
6082 * ipa-inline-analysis.c: Include lto-streamer.h
6083 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6084 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6085 (inline_summary_vec): Define.
6086 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6087 dump_inline_summaries): New functions.
6088 (estimate_function_body_sizes): Properly compute size/time of outgoing
6090 (compute_inline_parameters): Alloc inline_summary; do not compute
6091 size/time of incomming calls.
6092 (estimate_edge_time): Avoid missing time summary hack.
6093 (inline_read_summary): Read inline summary info.
6094 (inline_write_summary): Write inline summary info.
6095 (inline_free_summary): Free all hooks and inline summary vector.
6096 * lto-streamer.h: Add LTO_section_inline_summary section.
6097 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6098 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6100 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6102 * tree-vectorizer.h (vect_strided_store_supported): Add a
6103 HOST_WIDE_INT argument.
6104 (vect_strided_load_supported): Likewise.
6105 (vect_permute_store_chain): Return void.
6106 (vect_transform_strided_load): Likewise.
6107 (vect_permute_load_chain): Delete.
6108 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6109 count argument. Check that the count is a power of two.
6110 (vect_strided_load_supported): Likewise.
6111 (vect_permute_store_chain): Return void. Update after above changes.
6112 Assert that the access is supported.
6113 (vect_permute_load_chain): Likewise.
6114 (vect_transform_strided_load): Return void.
6115 * tree-vect-stmts.c (vectorizable_store): Update calls after
6116 above interface changes.
6117 (vectorizable_load): Likewise.
6118 (vect_analyze_stmt): Don't check for strided powers of two here.
6120 2011-04-14 Richard Guenther <rguenther@suse.de>
6122 PR tree-optimization/48590
6123 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6124 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6125 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6126 BUILT_IN_STACK_SAVE.
6127 * tree-ssa-dce.c (propagate_necessity): Handle
6128 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6130 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6132 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6135 2011-04-14 Richard Guenther <rguenther@suse.de>
6137 * tree.h (get_object_alignment_1): Declare.
6138 * builtins.c (get_object_alignment_1): Split out worker from ...
6139 (get_object_alignment): ... here.
6140 * fold-const.c (get_pointer_modulus_and_residue): Use
6141 get_object_alignment_1.
6143 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6145 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6147 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6148 parameter. Generalise code to handle arrays as well as vectors.
6149 (vect_setup_realignment): Update accordingly.
6150 * tree-vect-stmts.c (vectorizable_store): Likewise.
6151 (vectorizable_load): Likewise.
6153 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6155 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6156 within the per-copy loop.
6158 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6160 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6163 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6165 * doc/options.texi (Negative): Explicitly mention that the
6166 Negative chain must be circular.
6168 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6170 * function.h (block_chainon): Declare.
6171 * function.c (block_chainon): Define.
6173 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6174 Eric Weddington <eric.weddington@atmel.com>
6175 Georg-Johann Lay <avr@gjlay.de>
6177 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6179 (avr_init_builtins, avr_expand_builtin,
6180 avr_expand_delay_cycles, avr_expand_unop_builtin,
6181 avr_expand_binop_builtin ): New functions.
6182 (avr_builtin_id): New enum
6183 (struct avr_builtin_description): New struct
6184 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6185 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6187 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6188 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6189 UNSPECV_DELAY_CYCLES): new enumeration values
6190 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6191 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6192 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6193 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6194 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6195 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6196 "fmulsu"): New insns
6198 * config/avr/avr-c.c: fix line endings
6199 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6200 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6201 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6202 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6203 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6205 * doc/extend.texi (AVR Built-in Functions): New node
6206 (Target Builtins): Add documentation of AVR
6209 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6212 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6213 alone. Error if non-const data has attribute progmem.
6215 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6217 * tree.h (struct tree_constructor): Include tree_typed instead of
6219 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6220 TS_TYPED instead of TS_COMMON.
6222 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6224 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6225 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6226 (sse2_psadbw): Merge with *avx_psadbw.
6227 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6228 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6229 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6230 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6231 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6232 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6233 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6234 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6235 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6236 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6237 (ssse3_palignrti): Merge with *avx_palignrti.
6239 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6241 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6242 * tree-ssanames.c (fini_ssanames): VEC_free it.
6243 (make_ssa_name_fn): Update for VECness of free_ssanames.
6244 (release_ssa_name, release_dead_ssa_names): Likewise.
6245 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6247 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6248 TS_TYPED instead of TS_COMMON.
6250 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6252 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6253 statistics_counter_event.
6254 * tree-ssa-copyrename.c (stats): Define.
6255 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6256 statistics_counter_event.
6257 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6258 (bswap_stats, widen_mul_stats): Define.
6259 (insert_reciprocals): Increment rdivs_inserted.
6260 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6261 rfuncs_inserted. Add calls to statistics_counter_event.
6262 (execute_cse_sincos_1): Increment inserted.
6263 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6264 statistics_counter_event.
6265 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6266 of bswap_stats. Add calls to statistics_counter_event.
6267 (convert_mult_to_widen): Increment widen_mults_inserted.
6268 (convert_plusminus_to_widen): Increment maccs_inserted.
6269 (convert_mult_to_fma): Increment fmas_inserted.
6270 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6271 calls to statistics_counter_event.
6273 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6275 PR rtl-optimization/48455
6276 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6277 `temp_costs->mem_cost'.
6279 2011-04-13 Jan Hubicka <jh@suse.cz>
6281 * ipa-inline.h: New file.
6282 * ipa-inline-analysis.c: New file. Broken out of ...
6283 * ipa-inline.c: ... this file; update toplevel comment;
6284 include ipa-inline.h
6285 (inline_summary): Move to ipa-inline.h
6286 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6287 ipa-inline-analysis.c.
6288 (cgraph_estimate_time_after_inlining): Rename to
6289 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6290 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6291 to estimate_edge_growth.
6292 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6293 rename to estimate_size_after_inlining.
6294 (cgraph_mark_inline_edge): Update for new naming convention.
6295 (cgraph_check_inline_limits): Likewise.
6296 (cgraph_edge_badness): Likewise.
6297 (cgraph_decide_recursive_inlining): Likewise.
6298 (cgraph_decide_inlining_of_small_functions): Likewise.
6299 (cgraph_decide_inlining_incrementally): Likewise.
6300 (cgraph_estimate_growth): Rename to estimate_growth; move to
6301 ipa-inline-analysis.c.
6302 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6303 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6304 (compute_inline_parameters): Likewise.
6305 (compute_inline_parameters_for_current): Likewise.
6306 (pass_inline_parameters): Likewise.
6307 (inline_indirect_intraprocedural_analysis): Likewise.
6308 (analyze_function): Rename to inline_analyze_function; likewise.
6309 (add_new_function): Move to ipa-inline-analysis.c.
6310 (inline_generate_summary): Likewise.
6311 (inline_read_summary): Likewise.
6312 (inline_write_summary): Likewise.
6313 * Makefile.in (ipa-inline-analysis.c): New file.
6315 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6317 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6318 * configure: Regenerate.
6320 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6322 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6323 instead of tree_common.
6324 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6326 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6327 TS_TYPED rather than TS_COMMON.
6328 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6330 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6333 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6334 r20 around calls of __tablejump_elpm__
6336 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6339 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6341 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6343 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6345 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6346 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6347 (cfi_vec): New typedef.
6348 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6349 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6350 (cie_cfi_vec): New static variable.
6351 (cie_cfi_head): Delete.
6352 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6353 declaration changed. Use vector rather than list operations.
6354 (new_cfi): Don't initialize the dw_cfi_next field.
6355 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6356 rather than list operations.
6357 (lookup_cfa): Use vector rather than list operations.
6358 (output_cfis): New argument upto. Accept a cfi_vec rather than
6359 a dw_cfi_ref list head as argument. All callers changed.
6360 Iterate over the vector using upto as a maximum index.
6361 (output_all_cfis): New static function.
6362 (output_fde): Use vector rather than list operations. Use the
6363 new upto argument for output_cfis rather than manipulating a
6365 (dwarf2out_begin_prologue): Change initializations to match
6367 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6368 from the vector length rather than searching for the end of a list.
6369 Use output_all_cfis.
6370 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6372 2011-04-13 Nick Clifton <nickc@redhat.com>
6374 * config/rx/rx.md (movmemsi): Do not use this pattern when
6375 volatile pointers are involved.
6377 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6379 * config/i386/sse.md (pinsrbits): Remove.
6380 (sse2_packsswb): Merge with *avx_packsswb.
6381 (sse2_packssdw): Merge with *avx_packssdw.
6382 (sse2_packuswb): Merge with *avx_packuswb.
6383 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6384 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6385 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6386 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6387 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6388 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6389 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6390 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6391 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6392 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6393 (sse2_loadld): Merge with *avx_loadld.
6394 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6395 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6396 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6397 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6398 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6400 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6402 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6404 * print-tree.c (print_node): Likewise.
6405 * tree-inline.c (copy_tree_r): Likewise.
6406 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6407 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6408 instead of TS_COMMON.
6409 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6410 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6411 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6412 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6413 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6415 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6417 (TREE_CHAIN): Check for a TS_COMMON structure.
6418 (TREE_TYPE): Check for a TS_TYPED structure.
6420 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6422 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6423 cgraph_get_create_node instead of cgraph_node.
6425 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6427 * c-parser.c (c_parser_initelt): Updated call to
6428 objc_build_message_expr.
6429 (c_parser_postfix_expression): Likewise.
6431 2011-04-12 Kai Tietz <ktietz@redhat.com>
6433 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6434 MASK_MS_BITFIELD_LAYOUT bit.
6436 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6438 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6439 assert it is always true.
6440 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6443 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6445 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6446 compiling Objective-C to be more efficient.
6448 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6450 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6453 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6455 * recog.h, genoutput.c, optabs.c: Revert last patch.
6457 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6460 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6462 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6464 * recog.h (insn_operand_data): Add an "allows_mem" field.
6465 * genoutput.c (output_operand_data): Initialize it.
6466 * optabs.c (maybe_legitimize_operand_same_code): New function.
6467 (maybe_legitimize_operand): Use it when matching the original
6470 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6472 * genpreds.c (process_define_predicate): Move most processing
6473 to gensupport.c. Continue to validate the expression.
6474 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6475 (process_define_predicate): Move processing to gensupport.c.
6476 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6477 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6478 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6480 (valid_predicate_name_p): New function, split out from old
6481 genpreds.c:process_define_predicate.
6482 (process_define_predicate): New function, combining code from
6483 old genpreds.c and genrecog.c functions.
6484 (process_rtx): Call it for DEFINE_PREDICATE and
6485 DEFINE_SPECIAL_PREDICATE.
6487 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6489 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6490 size of a '%A' memory reference.
6491 (T_DREG, T_QREG): New neon_builtin_type_bits.
6492 (arm_init_neon_builtins): Assert that the load and store operands
6493 are neon_struct_operands.
6494 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6495 (NEON_ARG_MEMORY): New builtin_arg.
6496 (neon_dereference_pointer): New function.
6497 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6498 Handle NEON_ARG_MEMORY.
6499 (arm_expand_neon_builtin): Update after above interface changes.
6500 Use NEON_ARG_MEMORY for loads and stores.
6501 * config/arm/predicates.md (neon_struct_operand): New predicate.
6502 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6503 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6504 (V_four_elem): Tweak formatting.
6505 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6506 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6507 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6508 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6509 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6510 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6511 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6512 Use %A in the output template.
6513 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6514 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6515 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6516 the width of the memory access. Remove post-increment.
6517 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6519 2011-04-12 Nick Clifton <nickc@redhat.com>
6521 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6522 instruction for interrupt handlers if the target is the basic V850
6524 (expand_epilogue): Likewise.
6526 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6528 PR rtl-optimization/48549
6529 * combine.c (propagate_for_debug): Also stop after BB_END of
6530 this_basic_block. Process LAST and just stop processing after it.
6531 (combine_instructions): If last_combined_insn has been deleted,
6532 set last_combined_insn to its PREV_INSN.
6534 2011-04-12 Richard Guenther <rguenther@suse.de>
6536 PR tree-optimization/46076
6537 * gimple.h (struct gimple_statement_call): Add fntype field.
6538 (gimple_call_fntype): Adjust.
6539 (gimple_call_set_fntype): New function.
6540 * gimple.c (gimple_build_call_1): Set the call function type.
6541 * gimplify.c (gimplify_call_expr): Preserve the function
6542 type the frontend used for the call.
6543 (gimplify_modify_expr): Likewise.
6544 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6546 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6548 * tree-ssa.c (useless_type_conversion_p): Function pointer
6549 conversions are useless.
6551 2011-04-12 Martin Jambor <mjambor@suse.cz>
6553 * cgraph.h (cgraph_node): Remove function declaration.
6554 (cgraph_create_node): Declare.
6555 (cgraph_get_create_node): Likewise.
6556 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6557 Updated all callers.
6558 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6559 the decl does not already exist. Call cgraph_get_create_node instead
6561 (cgraph_get_create_node): New function.
6562 (cgraph_same_body_alias): Update comment.
6563 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6564 assert it does not return NULL.
6565 (cgraph_update_edges_for_call_stmt): Likewise.
6566 (cgraph_clone_edge): Likewise.
6567 (cgraph_create_virtual_clone): Likewise.
6568 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6569 instead of cgraph_node.
6570 (cgraph_add_new_function): Call cgraph_create_node or
6571 cgraph_get_create_node instead of cgraph_node.
6572 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6573 instead of cgraph_node.
6574 (record_eh_tables): Likewise.
6575 (mark_address): Likewise.
6576 (mark_load): Likewise.
6577 (build_cgraph_edges): Call cgraph_get_create_node instead
6579 (rebuild_cgraph_edges): Likewise.
6580 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6581 instead of cgraph_node.
6582 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6584 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6585 cgraph_create_node instead of cgraph_node.
6586 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6588 * lto-cgraph.c (input_node): Likewise.
6589 * lto-streamer-in.c (input_function): Likewise.
6590 * varasm.c (mark_decl_referenced): Likewise.
6591 (assemble_alias): Likewise.
6593 2011-04-12 Martin Jambor <mjambor@suse.cz>
6595 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6596 instead of cgraph_node and assert it does not return NULL.
6597 * lto-streamer-in.c (lto_read_body): Likewise.
6598 * omp-low.c (new_omp_context): Likewise.
6599 (create_task_copyfn): Likewise.
6600 * tree-emutls.c (lower_emutls_function_body): Likewise.
6601 * matrix-reorg.c (transform_allocation_sites): Likewise.
6603 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6606 * c-typeck.c (build_asm_expr): Error out on attempts to use
6607 void type outputs or inputs for constraints that allow reg or
6610 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6611 Richard Earnshaw <rearnsha@arm.com>
6614 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6615 to use sign-magnitude offsets. Reject unsupported unaligned
6616 cases. Add detailed description in comments.
6617 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6618 condition from TARGET_32BIT to TARGET_ARM.
6620 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6622 * tree.h (struct typed_tree): New.
6623 (struct tree_common): Include it instead of tree_base.
6624 (TREE_TYPE): Update for new location of type field.
6625 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6626 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6627 (union tree_node): Add typed field.
6628 * treestruct.def (TS_TYPED): New.
6629 * lto-streamer.c (check_handled_ts_structures): Handle it.
6630 * tree.c (MARK_TS_TYPED): New macro.
6631 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6633 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6635 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6636 (force_nonfallthru): Do not alter the loop nest if no basic block
6639 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6641 * config/i386/sse.md (VI): New mode iterator.
6643 (AVX256MODEI): Ditto.
6644 (AVXMODEF4P): Ditto.
6645 (avxvecpsmode): Ditto.
6646 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6647 (sse2_andnot<mode>3): New expander.
6648 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6649 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6650 (<any_logic:code><mode>3): Use VI mode iterator.
6651 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6652 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6653 (*andnottf3): Handle AVX three-operand constraints.
6654 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6656 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6657 Robert Millan <rmh@gnu.org>
6659 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6660 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6661 GNU_USER_DYNAMIC_LINKER64): Define.
6662 (REG_NAME): Don't undefine.
6663 (MD_UNWIND_SUPPORT): Undefine.
6664 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6665 (REG_NAME): Don't undefine.
6666 (MD_UNWIND_SUPPORT): Undefine.
6667 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6669 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6671 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6672 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6674 2011-04-11 Xinliang David Li <davidxl@google.com>
6676 * value-profile.c (check_ic_target): New function.
6677 (gimple_ic_transform): Sanity check indirect call target.
6678 * gimple-low.c (gimple_check_call_args): Interface change.
6679 (gimple_check_call_matching_types): New function.
6680 * tree-inline.c (tree_can_inline_p): Call new function.
6682 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6684 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6685 tree-pretty-print.h & realmpfr.h.
6687 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6690 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6691 (setup_allocno_and_important_classes): Ditto.
6693 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6695 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6696 GNU_USER_DYNAMIC_LINKER.
6697 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6698 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6699 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6700 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6701 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6702 GNU_USER_TARGET_OS_CPP_BUILTINS.
6703 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6704 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6705 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6706 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6707 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6708 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6709 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6710 GNU_USER_TARGET_OS_CPP_BUILTINS.
6711 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6712 GNU_USER_DYNAMIC_LINKER.
6713 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6714 GNU_USER_TARGET_OS_CPP_BUILTINS.
6715 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6716 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6717 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6718 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6719 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6720 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6721 GNU_USER_DYNAMIC_LINKER64): Remove.
6722 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6724 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6725 GNU_USER_DYNAMIC_LINKER.
6726 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6727 GNU_USER_TARGET_OS_CPP_BUILTINS.
6728 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6729 GNU_USER_TARGET_OS_CPP_BUILTINS.
6730 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6731 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6732 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6733 GNU_USER_TARGET_OS_CPP_BUILTINS.
6734 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6735 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6736 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6737 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6738 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6739 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6740 GNU_USER_DYNAMIC_LINKER.
6741 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6742 GNU_USER_TARGET_OS_CPP_BUILTINS.
6743 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6744 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6745 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6746 GNU_USER_DYNAMIC_LINKER.
6747 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6748 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6749 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6750 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6751 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6752 GNU_USER_DYNAMIC_LINKER.
6753 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6754 GNU_USER_DYNAMIC_LINKERN32.
6755 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6756 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6757 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6758 GNU_USER_DYNAMIC_LINKER32.
6759 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6760 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6761 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6762 GNU_USER_DYNAMIC_LINKER.
6763 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6764 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6765 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6766 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6767 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6768 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6769 GNU_USER_DYNAMIC_LINKER32.
6770 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6771 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6772 GNU_USER_DYNAMIC_LINKER.
6773 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6774 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6775 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6776 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6777 GNU_USER_DYNAMIC_LINKER64.
6778 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6779 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6780 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6781 GNU_USER_DYNAMIC_LINKER.
6782 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6783 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6784 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6785 GNU_USER_DYNAMIC_LINKER.
6786 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6787 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6788 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6789 GNU_USER_DYNAMIC_LINKER32.
6790 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6791 GNU_USER_DYNAMIC_LINKER64.
6792 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6793 GNU_USER_DYNAMIC_LINKER64.
6794 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6795 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6796 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6797 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6798 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6800 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6802 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6803 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6804 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6805 GNU_USER_DYNAMIC_LINKER.
6806 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6807 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6808 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6809 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6810 GNU_USER_DYNAMIC_LINKER64.
6811 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6812 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6813 GNU_USER_LINK_EMULATION.
6814 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6815 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6816 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6817 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6818 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6819 CPP_SPEC, CC1_SPEC): Remove.
6820 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6821 (GNU_USER_DYNAMIC_LINKER): Define.
6822 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6823 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6824 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6825 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6826 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6827 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6828 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6829 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6830 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6831 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6832 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6833 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6834 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6835 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6836 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6837 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6838 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6839 GNU_USER_DYNAMIC_LINKER.
6840 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6841 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6842 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6843 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6844 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6845 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6846 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6847 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6848 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6849 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6851 2011-04-11 Kai Tietz <ktietz@redhat.com>
6855 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6856 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6858 (ix86_is_msabi_thiscall): Removed.
6859 (ix86_is_type_thiscall): Likewise.
6860 (ix86_get_callcvt): New function.
6861 (ix86_comp_type_attributes): Simplify check.
6862 (ix86_function_regparm): Use ix86_get_callcvt for calling
6863 convention attribute checks.
6864 (ix86_return_pops_args): Likewise.
6865 (ix86_static_chain): Likewise.
6866 (x86_this_parameter): Likewise.
6867 (x86_output_mi_thunk): Likewise.
6868 (ix86_function_type_abi): Optimize check for types without attributes.
6869 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6870 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6871 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6873 (IX86_BASE_CALLCVT): Helper macro.
6874 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6875 Use ix86_get_callcvt for calling convention attribute checks and avoid
6876 symbol-decoration for stdcall in TARGET_RTD case.
6877 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6879 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6882 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6884 * config/i386/sse.md (VI_128): New mode iterator.
6885 (VI12_128): Rename from SSEMODE12.
6886 (VI14_128): Rename from SSEMODE14.
6887 (VI124_128): New mode iterator.
6888 (VI24_128): Rename from SSEMODE248.
6889 (VI248_128): Rename from SSEMODE248.
6890 (SSEMODE124C8): Remove.
6891 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6892 (*sse2_<plusminus_insn><mode>3): Merge with
6893 *avx_<plusminus_insn><mode>3.
6894 (*mulv8hi3): Merge with *avx_mulv8hi3.
6895 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6896 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6897 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6898 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6899 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6900 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6901 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6902 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6903 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6904 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6905 (*<smaxmin:code>v8hi3): Ditto.
6906 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6907 (*<smaxmin:code>v16qi3): Ditto.
6908 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6909 (*sse2_eq<mode>3): Ditto.
6910 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6911 (*sse2_gt<mode>3): Ditto.
6912 (vcondv2di): Split out of vcond<mode>.
6913 (vconduv2di): Split out of vcondu<mode>.
6915 2011-04-11 Richard Guenther <rguenther@suse.de>
6917 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6918 before calling tree_low_cst.
6920 2011-04-11 Richard Guenther <rguenther@suse.de>
6922 * stor-layout.c (layout_type): Compute all array index size operations
6923 in the original type.
6924 (initialize_sizetypes): Add comment.
6925 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6927 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6929 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6931 2011-04-11 Martin Jambor <mjambor@suse.cz>
6933 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6934 of cgraph_node, handle NULL return value.
6935 (cgraph_global_info): Likewise.
6936 (cgraph_rtl_info): Likewise.
6937 * tree-inline.c (estimate_num_insns): Likewise.
6938 * gimplify.c (unshare_body): Likewise.
6939 (unvisit_body): Likewise.
6940 (gimplify_body): Likewise.
6941 * predict.c (optimize_function_for_size_p): Likewise.
6942 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6943 (call_may_clobber_ref_p_1): Likewise.
6944 * varasm.c (function_section_1): Likewise.
6945 (assemble_start_function): Likewise.
6947 2011-04-11 Martin Jambor <mjambor@suse.cz>
6949 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6951 * final.c (rest_of_clean_state): Likewise.
6952 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6953 * passes.c (pass_init_dump_file): Likewise.
6954 (execute_all_ipa_transforms): Likewise.
6955 (function_called_by_processed_nodes_p): Likewise.
6956 * predict.c (maybe_hot_frequency_p): Likewise.
6957 (probably_never_executed_bb_p): Likewise.
6958 (compute_function_frequency): Likewise.
6959 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6960 (unnest_nesting_tree_1): Likewise.
6961 (lower_nested_functions): Likewise.
6962 * tree-optimize.c (execute_fixup_cfg): Likewise.
6963 (tree_rest_of_compilation): Likewise.
6964 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6965 * tree-sra.c (ipa_early_sra): Likewise.
6966 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6967 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6968 * ipa.c (record_cdtor_fn): Likewise.
6969 * ipa-inline.c (cgraph_early_inlining): Likewise.
6970 (compute_inline_parameters_for_current): Likewise.
6971 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6972 * ipa-pure-const.c (local_pure_const): Likewise.
6973 * ipa-split.c (split_function): Likewise.
6974 (execute_split_functions): Likewise.
6975 * cgraphbuild.c (build_cgraph_edges): Likewise.
6976 (rebuild_cgraph_edges): Likewise.
6977 (cgraph_rebuild_references): Likewise.
6978 (remove_cgraph_callee_edges): Likewise.
6979 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6980 (verify_cgraph_node): Likewise.
6981 (cgraph_analyze_functions): Likewise.
6982 (cgraph_preserve_function_body_p): Likewise.
6983 (save_inline_function_body): Likewise.
6984 (save_inline_function_body): Likewise.
6985 * tree-inline.c (copy_bb): Likewise.
6986 (optimize_inline_calls): Likewise.
6988 2011-04-11 Martin Jambor <mjambor@suse.cz>
6990 PR tree-optimization/48195
6991 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6992 ipa_check_create_edge_args.
6993 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6994 ipa_check_create_edge_args.
6995 * ipa-inline.c (inline_generate_summary): Do not call
6996 ipa_check_create_node_params and ipa_check_create_edge_args.
6997 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6998 ipa_check_create_edge_args.
7000 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7002 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7004 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7005 * function.c (record_hard_reg_sets): Likewise.
7006 * ira.c (compute_regs_asm_clobbered): Likewise.
7007 * sched-deps.c (sched_analyze_1): Likewise.
7008 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7010 2011-04-09 Xinliang David Li <davidxl@google.com>
7012 PR tree-optimization/PR48484
7013 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7014 has_valid_pred lazily
7016 2011-04-09 Duncan Sands <baldrick@free.fr>
7018 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7020 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7022 * combine.c (combine_validate_cost): Adjust comments. Set registered
7023 cost of I0 to zero at the end, if any.
7025 2011-04-08 Xinliang David Li <davidxl@google.com>
7027 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7028 to insane profile data.
7030 2011-04-08 Xinliang David Li <davidxl@google.com>
7032 * ipa-cp.c (ipcp_update_profiling): Correct
7033 negative scale factor due to insane profile data.
7035 2011-04-08 Xinliang David Li <davidxl@google.com>
7037 * final.c (dump_basic_block_info): New function.
7038 (final): Dump basic block.
7039 (final_scan_insn): Remove old dump.
7041 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7044 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7047 2011-04-08 Michael Matz <matz@suse.de>
7050 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7052 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7053 * rtl.h (rebuild_jump_labels_chain): Declare.
7054 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7055 insns inserted on edges.
7057 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7059 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7060 * config/arm/arm-arches.def: New.
7061 * config/arm/arm-opts.h: New.
7062 * config/arm/genopt.sh: New.
7063 * config/arm/arm-tables.opt: New (generated).
7064 * config/arm/arm.c (arm_handle_option, arm_target_help,
7065 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7066 (all_architectures): Get most table contents from arm-arches.def.
7067 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7068 arm_selected_tune here.
7069 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7070 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7071 (march=, mcpu=, mtune=): Use Enum and Var.
7072 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7073 (arm.o): Update dependencies.
7075 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7077 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7079 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7080 (write_typed_alloc_defns): Likewise.
7081 (main): Calls write_typed_alloc_defns with output_header.
7083 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7086 * ira-color.c (setup_profitable_hard_regs): Add comments.
7087 Don't take prohibited hard regs into account.
7088 (setup_conflict_profitable_regs): Rename to
7089 get_conflict_profitable_regs.
7090 (check_hard_reg_p): Check prohibited hard regs.
7092 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7094 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7095 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7096 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7098 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7101 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7102 move from floating point to shift amount register.
7103 (emit_move_sequence): Remove secondary reload support for floating
7104 point to shift amount amount register copies.
7105 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7106 amount register copies.
7107 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7108 register, return false if mode isn't a scalar integer mode.
7109 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7111 2011-04-08 Richard Guenther <rguenther@suse.de>
7113 * gimple.c (gimple_call_flags): Remove kludge.
7115 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7117 * sel-sched.c (sel_region_init): Move call to
7118 sel_setup_region_sched_flags after setup_current_loop_nest.
7120 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7122 PR rtl-optimization/48272
7123 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7124 init_insn_reg_pressure_info. Adjust a caller.
7125 * sched-int.h (init_insn_reg_pressure_info): Declare.
7126 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7127 when sched-pressure is enabled.
7129 2011-04-08 Richard Guenther <rguenther@suse.de>
7131 * gimple.c (gimple_set_modified): Do not queue calls to
7132 MODIFIED_NORETURN_CALLS here ...
7133 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7135 2011-04-08 Richard Guenther <rguenther@suse.de>
7138 * toplev.c (lang_dependent_init): Do not open asm_out_file
7139 in WPA mode, nor perform debug machinery initialization.
7140 (finalize): Do not unlink asm_out_file in WPA mode.
7142 2011-04-08 Richard Guenther <rguenther@suse.de>
7144 * gimple.h (gimple_call_fntype): New function.
7145 (gimple_call_return_type): Use it.
7146 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7147 * gimple-low.c (gimple_check_call_args): Likewise.
7148 * gimple.c (gimple_call_flags): Likewise.
7149 (gimple_call_arg_flags): Likewise.
7150 (gimple_call_return_flags): Likewise.
7151 * tree-cfg.c (verify_gimple_call): Likewise.
7152 (do_warn_unused_result): Likewise.
7153 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7154 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7156 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7158 PR rtl-optimization/48235
7159 * sel-sched.c (code_motion_process_successors): Recompute the last
7160 insn in basic block if control flow changed.
7161 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7162 Update condition for ilist_remove.
7164 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7166 PR rtl-optimization/48302
7167 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7168 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7169 it to record added preheader blocks.
7170 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7171 on to sel_add_loop_preheaders.
7172 (sel_region_init): Move call to setup_current_loop_nest after
7175 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7178 * cfgloop.h (loop_has_exit_edges): New helper.
7179 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7181 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7182 that have no exit edges.
7184 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7186 PR rtl-optimization/48442
7187 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7188 all callers. Adjust assert.
7190 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7192 PR tree-optimization/48377
7193 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7194 is_packed to true even for types with smaller TYPE_ALIGN than
7197 2011-04-08 Richard Guenther <rguenther@suse.de>
7200 * doc/tm.texi: Re-generate.
7202 2011-04-08 Wei Guozhi <carrot@google.com>
7205 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7206 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7207 * config/arm/arm.md (*push_multi): Change the length computation to
7210 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7212 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7213 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7214 * doc/tm.texi: Regenerate.
7215 * system.h (ASM_OUTPUT_BSS): Poison.
7216 * varasm.c (asm_output_bss): Remove function.
7217 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7219 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7220 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7221 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7222 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7224 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7226 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7228 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7230 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7232 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7235 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7237 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7238 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7239 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7241 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7242 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7243 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7244 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7245 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7246 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7247 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7248 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7249 options. Don't map other m68k options manually. Don't handle
7250 old-style options as canonical.
7251 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7252 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7254 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7256 * basic-block.h (force_nonfallthru): Move to...
7257 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7258 (force_nonfallthru): ...here.
7259 * cfghooks.c (force_nonfallthru): New function.
7260 * cfgrtl.c (force_nonfallthru): Rename into...
7261 (rtl_force_nonfallthru): ...this.
7262 (commit_one_edge_insertion): Do not set AUX field.
7263 (commit_edge_insertions): Do not discover new basic blocks.
7264 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7265 (cfg_layout_rtl_cfg_hooks): Likewise.
7266 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7267 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7268 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7270 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7272 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7275 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7277 * config/i386/sse.md: Update copyright year.
7278 (avxcvtvecmode): Remove.
7279 (sse_movhlps): Merge with *avx_movhlps.
7280 (sse_movlhps): Merge with *avx_movlhps.
7281 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7282 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7283 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7284 (sse_loadhps): Merge with *avx_loadhps.
7285 (sse_storelps): Merge with *avx_storelps.
7286 (sse_loadlps): Merge with *avx_loadlps.
7287 (sse_movss): Merge with *avx_movss.
7288 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7289 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7290 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7291 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7292 (vec_set<mode>_0): Ditto.
7293 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7294 (sse4_1_insertps): Merge with *avx_insertps.
7295 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7296 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7297 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7298 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7299 (sse2_storehpd): Merge with *avx_storehpd.
7300 (sse2_loadhpd): Merge with *avx_loadhpd.
7301 (sse2_loadlpd): Merge with *avx_loadlpd.
7302 (sse2_movsd): Merge with *avx_movsd.
7303 (*vec_concatv2df): Merge with *vec_concatv2df.
7305 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7308 * combine.c (combine_instructions): Add last_combined_insn,
7309 update it if insn is after it, pass it to all try_combine calls.
7310 (try_combine): Add last_combined_insn parameter, pass it instead of
7311 i3 to propagate_for_debug.
7313 2011-04-07 Nick Clifton <nickc@redhat.com>
7315 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7316 to handle MDR <-> data register transfers.
7317 (movhi_internal): Likewise.
7319 2011-04-07 Alan Modra <amodra@gmail.com>
7321 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7322 previous stack info.
7324 2011-04-07 Tom de Vries <tom@codesourcery.com>
7327 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7328 flow_find_cross_jump. Swap variables to implement backward replacement.
7329 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7331 2011-04-07 Tom de Vries <tom@codesourcery.com>
7334 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7335 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7337 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7338 src1 or src2. Redirect edges to the last basic block. Update
7339 frequency and count on multiple basic blocks in case of fallthru.
7341 2011-04-07 Tom de Vries <tom@codesourcery.com>
7344 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7346 (old_insns_match_p): Change return type. Replace return false/true
7347 with return dir_none/dir_both. Use can_replace_by.
7348 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7349 direction from dir_p. Register replacement direction in dir, last_dir
7350 and afterlast_dir. Handle new return type of old_insns_match_p using
7351 merge_dir. Return replacement direction in dir_p.
7352 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7353 return type of old_insns_match_p.
7354 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7355 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7356 flow_find_cross_jump.
7357 * basic-block.h (enum replace_direction): New type.
7358 (flow_find_cross_jump): Add parameter to declaration.
7360 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7362 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7363 (AVXMODEDCVTPS2DQ): Ditto.
7364 (VEC_FLOAT_MODE): Ditto.
7365 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7366 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7367 (<any_logic:code><mode>3): Use VF mode iterator.
7368 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7369 Use VF mode iterator.
7370 (copysign<mode>3): Use VF mode iterator.
7371 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7372 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7373 (*<any_logic:code><MODEF:mode>3): Merge with
7374 *avx_<any_logic:code><MODEF:mode>3.
7375 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7376 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7377 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7378 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7379 (sse2_cvtdq2ps): Use %v modifier.
7380 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7381 (avx_cvtps2dq<avxmodesuffix>): Remove.
7382 (sse2_cvtps2dq): Use %v modifier.
7383 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7384 (avx_cvttps2dq<avxmodesuffix>): Remove.
7385 (sse2_cvttps2dq): Use %v modifier.
7386 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7387 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7388 (sse2_cvtsd2siq): Fix insn template.
7389 (sse2_cvtsd2siq_2): Ditto.
7390 (sse2_cvttsd2siq): Ditto.
7391 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7392 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7394 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7396 * gcov-io.c: Use GCC Runtime Library Exception.
7398 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7401 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7402 as base_reg whatever register reg has been eliminated to, instead
7403 of hardcoding STACK_POINTER_REGNUM.
7405 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7407 * doc/tm.texi.in: Document C target hooks as separate from general
7409 * doc/tm.texi: Regenerate.
7410 * genhooks.c (struct hook_desc): Add docname field.
7411 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7413 (hook_array): Include c-target.def.
7414 (emit_documentation): Use docname field in output.
7415 (emit_init_macros): Take docname argument. Only emit definitions
7416 for hooks matching docname.
7417 (main): Expect additional arguments in all cases. Pass argument
7418 to emit_init_macros.
7419 * target.def: Move initial macro definitions and comments to
7420 target-hooks-macros.h.
7421 (gcc_targetcm): Move to c-family/c-target.def.
7422 * target.h (targetcm): Move declaration to c-family/c-target.h.
7423 * targhooks.c (default_handle_c_option): Move to
7425 * targhooks.h (default_handle_c_option): Move declaration to
7426 c-family/c-common.h.
7427 * target-hooks-macros.h: New file.
7428 * config.gcc (target_has_targetcm): Define and use to add to
7429 c_target_objs and cxx_target_objs.
7430 * config/default-c.c: New file.
7431 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7432 of target.h and target-def.h.
7433 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7434 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7435 darwin_check_cfstring_format_arg): Make static.
7436 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7437 TARGET_STRING_OBJECT_REF_TYPE_P,
7438 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7439 * config/darwin-protos.h (darwin_objc_construct_string,
7440 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7442 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7443 TARGET_STRING_OBJECT_REF_TYPE_P,
7444 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7445 * config/t-darwin (darwin-c.o): Update dependencies.
7446 * system.h (TARGET_HAS_TARGETCM): Poison.
7447 * Makefile.in (TARGET_H): Update.
7448 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7449 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7450 (default-c.o): New target.
7451 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7452 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7453 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7455 (build/genhooks.o): Update dependencies.
7457 2011-04-06 Richard Guenther <rguenther@suse.de>
7459 * ipa-inline.c (enum inlining_mode): Remove.
7460 (cgraph_flatten): Use some other token.
7461 (cgraph_edge_early_inlinable_p): New function, split out from ...
7462 (cgraph_perform_always_inlining): New function, split out from ...
7463 (cgraph_decide_inlining_incrementally): ... here.
7464 (cgraph_mark_inline_edge): Adjust.
7465 (cgraph_early_inlining): Re-structure.
7466 (pass_early_inline): Require SSA form.
7468 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7469 Julian Brown <julian@codesourcery.com>
7470 Mark Shinwell <shinwell@codesourcery.com>
7472 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7473 LO_REGS only for Thumb-1.
7474 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7475 be used in short instructions when optimising for size on Thumb-2.
7477 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7479 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7480 associated with user returns to be preserved.
7482 2011-04-06 Tristan Gingold <gingold@adacore.com>
7484 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7485 symbol_queue_size, DBXOUT_DECR_NESTING,
7486 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7487 if XCOFF_DEBUGGING_INFO.
7489 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7491 * config/i386/i386.md (attribute isa): New.
7492 (attribute enabled): New.
7493 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7494 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7495 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7496 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7497 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7498 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7499 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7500 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7502 * config/i386/sse.md (VF): New mode iterator.
7506 (SSEMODEF4): Remove.
7507 (attribute sse): Handle V8SF and V4DF modes.
7508 (<absneg:code><mode>2): Use VF mode iterator.
7509 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7511 (<plusminus_insn><mode>3): Use VF mode iterator.
7512 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7513 Use VF mode iterator.
7514 (<sse>_vm<plusminus_insn><mode>3): Merge with
7515 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7516 (mul<mode>3): Use VF mode iterator.
7517 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7518 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7520 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7521 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7522 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7523 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7525 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7526 Use VF1 mode iterator.
7527 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7528 (sqrt<VF2:mode>2): New expander.
7529 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7530 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7531 and sqrtv2df2. Use VF mode iterator.
7532 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7534 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7535 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7536 Use VF1 mode iterator.
7537 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7538 (<smaxmin:code><mode>3): Use VF mode iterator.
7539 (*<smaxmin:code><mode>3_finite): Merge with
7540 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7541 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7542 (<sse>_vm<smaxmin:code><mode>2): Merge with
7543 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7544 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7546 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7548 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7549 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7550 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7551 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7552 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7554 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7555 Use VF_128 mode iterator.
7556 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7558 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7559 VF_128 mode iterator.
7560 (vcond<mode>): Use VF mode iterator.
7561 * config/i386/predicates.md (sse_comparison_operator): Merge with
7562 avx_comparison_float_operator. Do not declare as special_predicate.
7563 * config/i386/i386.c (struct builtin_description): Update for renamed
7565 (ix86_expand_args_builtin): Ditto.
7566 (ix86_expand_sse_compare_mask): Ditto.
7568 2011-04-06 Richard Guenther <rguenther@suse.de>
7570 * tree-inline.c (estimate_num_insns): For calls simply account
7571 for all passed arguments and a used return value.
7573 2011-04-06 Richard Guenther <rguenther@suse.de>
7575 PR tree-optimization/47663
7576 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7577 call_stmt_time fields.
7578 (cgraph_edge_inlinable_p): Declare.
7579 (cgraph_edge_recursive_p): New inline function.
7580 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7581 (cgraph_clone_edge): Copy it.
7582 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7583 Account for call stmt time.
7584 (cgraph_estimate_time_after_inlining): Take edge argument.
7585 (cgraph_estimate_edge_growth): Account call stmt size.
7586 (cgraph_estimate_size_after_inlining): Take edge argument.
7587 (cgraph_mark_inline_edge): Adjust.
7588 (cgraph_check_inline_limits): Likewise.
7589 (cgraph_recursive_inlining_p): Remove.
7590 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7591 (cgraph_decide_recursive_inlining): Take edge argument and
7593 (cgraph_decide_inlining_of_small_functions): Do not avoid
7594 diags for recursive inlining here.
7595 (cgraph_flatten): Adjust.
7596 (cgraph_decide_inlining_incrementally): Likewise.
7597 (estimate_function_body_sizes): Remove call cost handling.
7598 (compute_inline_parameters): Initialize caller edge call costs.
7599 (cgraph_estimate_edge_growth): New function.
7600 (cgraph_estimate_growth): Use it.
7601 (cgraph_edge_badness): Likewise.
7602 (cgraph_check_inline_limits): Take an edge argument.
7603 (cgraph_decide_inlining_of_small_functions): Adjust.
7604 (cgraph_decide_inlining): Likewise.
7605 * tree-inline.c (estimate_num_insns): Only account for call
7606 return value if it is used.
7607 (expand_call_inline): Avoid diagnostics on recursive inline
7609 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7610 (input_edge): Input edge call costs.
7612 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7614 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7616 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7618 * doc/invoke.texi (Spec Files): Fix typo.
7620 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7622 * profile.c (branch_prob): Move declaration of local variable. Remove
7623 obsolete ??? comment. Expand the location explicitly instead of using
7624 the LOCATION_FILE and LOCATION_LINE macros.
7626 2011-04-06 Wei Guozhi <carrot@google.com>
7629 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7630 (arm_cond_branch): Likewise.
7631 (arm_cond_branch_reversed): Likewise.
7632 (arm_jump): Likewise.
7633 (push_multi): Likewise.
7634 * config/arm/constraints.md (Py): New constraint.
7636 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7639 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7641 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7642 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7643 #ifdef DBX_DEBUGGING_INFO.
7645 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7648 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7649 if old and new states differ.
7651 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7653 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7654 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7655 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7656 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7657 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7659 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7660 ColdFire options to -mcpu= options.
7662 2011-04-05 Jeff Law <law@redhat.com>
7664 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7665 check if BB is a successor of LOOP->header and return
7666 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7668 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7670 * cprop.c (struct reg_use): Remove.
7671 (reg_use_table): Make an array of RTX.
7672 (find_used_regs, constprop_register, local_cprop_pass,
7673 bypass_block): Simplify users of reg_use_table.
7674 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7675 on one of the uses found by find_used_regs.
7677 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7680 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7683 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7685 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7687 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7689 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7692 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7694 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7696 * combine.c: Include obstack.h.
7697 (struct insn_link): Define.
7698 (uid_log_links): Adjust type.
7699 (FOR_EACH_LOG_LINK): New macro.
7700 (insn_link_obstack): Declare.
7701 (alloc_insn_link): Define.
7702 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7703 type of link variables.
7704 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7705 (try_combine, record_promoted_values, distribute_notes): Likewise.
7706 (distribute_links): Likewise. Tweak prototype.
7707 (clear_log_links): Delete.
7708 (adjust_for_new_dest): Call alloc_insn_link.
7709 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7711 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7713 * gcse.c (modify_mem_list): Convert to an array of VECs.
7714 (canon_modify_mem_list, compute_transp): Tweak formatting.
7715 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7716 (load_killed_in_block_p): Likewise.
7717 (record_last_mem_set_info): Likewise.
7718 (clear_modify_mem_tables): Likewise.
7720 2011-04-05 Tom de Vries <tom@codesourcery.com>
7723 * function.c (emit_use_return_register_into_block): Only define if
7726 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7728 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7730 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7732 * config/rx/rx-opts.h: New.
7733 * config/rx/rx.c (rx_cpu_type): Remove.
7734 (rx_handle_option): Don't assert that global structures are in
7735 use. Access variables via opts pointer. Defer most handling of
7736 OPT_mint_register_. Use error_at.
7737 (rx_option_override): Handle deferred OPT_mint_register_ here.
7738 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7739 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7740 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7741 (rx_cpu_types): New Enum and EnumValue entries.
7742 (mint-register=): Use Defer and use Var accordingly.
7744 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7746 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7747 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7748 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7750 (debug_free_queue, debug_nesting, symbol_queue_index):
7752 * dbxout.c: ...to here. Make static.
7754 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7756 * gcse.c (modify_pair): Define. Define a VEC of it.
7757 (canon_modify_mem_list): Convert to an array of VECs.
7758 (free_insn_expr_list_list): Delete.
7759 (clear_modify_mem_tables): Call VEC_free instead.
7760 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7761 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7762 (canon_list_insert, compute_transp): Likewise.
7764 2011-04-05 Tom de Vries <tom@codesourcery.com>
7767 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7770 2011-04-05 Tom de Vries <tom@codesourcery.com>
7773 * function.c (emit_use_return_register_into_block): New function.
7774 (thread_prologue_and_epilogue_insns): Use
7775 emit_use_return_register_into_block.
7777 2011-04-05 Tom de Vries <tom@codesourcery.com>
7780 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7783 2011-04-05 Tom de Vries <tom@codesourcery.com>
7785 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7787 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7789 * config/arm/arm.md (define_constants for unspec): Replace with
7791 (define_constants for unspecv): Replace with define_c_enum.
7792 * config/arm/neon.md (define_constants for unspec): Replace with
7795 2011-04-04 Richard Henderson <rth@redhat.com>
7798 * dwarf2out.c (output_line_info): Always emit line info from
7799 at least one section.
7800 (dwarf2out_init): Create text_section_line_info here ...
7801 (set_cur_line_info_table): ... not here.
7803 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7806 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7809 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7811 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7813 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7814 (expr_equiv_p): Remove.
7815 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7816 (hash_scan_set): Update call to insert_set_in_table.
7817 (dump_hash_table): Dump <dest, src> pair.
7818 (lookup_set): Simplify. Lookup <dest, src> pair.
7819 (compute_transp): Remove, fold heavily simplified code into...
7820 (compute_local_properties): ...here. Expect COMP and TRANSP
7822 (find_avail_set): Take set directly from struct expr.
7823 (find_bypass-set): Likewise.
7824 (bypass_block): Likewise.
7825 (cprop_insn): Likewise. Remove redundant INSN_P test.
7827 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7828 checks on form of COND from find_implicit_sets to here.
7829 (find_implicit_sets): Cleanup control flow. Split critical edges
7830 if it exposes implicit sets. Allocate/resize implicit_sets as
7832 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7833 changed something. Run df_analyze after find_implicit_sets if any
7834 edges were split. Do not allocate implicit_sets here.
7836 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7837 (gcse_obstack): Renamed to cprop_obstack.
7838 (GNEW, GNEWVEC, GNEWVAR): Remove.
7840 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7841 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7842 (gcse_alloc): Likewise, and rename to cprop_alloc.
7843 (alloc_gcse_men, free_gcse_mem): Remove.
7844 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7845 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7846 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7848 * cprop.c (oprs_not_set_p): Remove.
7849 (mark_set, mark_clobber): Remove.
7850 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7851 (reg_not_set_p): New function.
7852 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7853 (cprop_insn): Likewise.
7854 (cprop_jump): Use FOR_EACH_EDGE.
7856 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7859 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7860 (rank_for_schedule): Use scheduled_insns vector instead of
7861 last_scheduled_insn.
7862 (ok_for_early_queue_removal): Likewise.
7863 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7865 (choose_ready): Likewise.
7866 (commit_schedule): Use VEC_iterate.
7867 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7868 a dbg_cnt, use it and ensure the first insn is in the ready list.
7869 (haifa_sched_init): Allocate scheduled_insns.
7870 (sched_extend_ready_list): Don't allocate it; reserve space.
7871 (haifa_sched_finish): Free it.
7873 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7875 * optc-gen.awk: Always remove type from Variable entry before
7876 recording in var_seen.
7878 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7880 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7881 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7882 call to tidy_fallthru_edges.
7884 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7886 * doc/options.texi (ToLower): Document.
7887 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7888 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7889 * opts.h (cl_option): Add cl_tolower field.
7890 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7891 arguments with lowercase strings.
7892 * config/rx/rx.opt (mcpu=): Add ToLower.
7893 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7896 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7898 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7900 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7902 * config/vax/vax.c: Include reload.h.
7904 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7906 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7907 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7908 (sparc_preferred_reload_class): New function.
7910 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7913 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7914 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7916 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7918 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7919 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7921 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7923 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7924 (ASM_OUTPUT_ALIGNED_BSS): Define.
7926 2011-04-03 Michael Matz <matz@suse.de>
7928 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7929 and next_slot members.
7930 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7931 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7932 (lto_streamer_cache_append): Declare.
7933 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7934 unsigned index, remove offset parameter, ensure that we append
7935 or update existing entries.
7936 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7937 parameter, update next_slot for append.
7938 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7940 (lto_streamer_cache_insert_at): Likewise.
7941 (lto_streamer_cache_append): New function.
7942 (lto_streamer_cache_lookup): Use unsigned index.
7943 (lto_streamer_cache_get): Likewise.
7944 (lto_record_common_node): Don't test tree_node_can_be_shared.
7945 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7946 (lto_streamer_cache_delete): Don't free offsets member.
7947 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7948 (lto_output_string_with_length): Use lto_output_data_stream.
7949 (lto_output_tree_header): Remove ix parameter, don't write it.
7950 (lto_output_builtin_tree): Likewise.
7951 (lto_write_tree): Adjust callers to above, don't track and write
7952 offset, write unsigned index.
7953 (output_unreferenced_globals): Don't emit all global vars.
7954 (write_global_references): Use unsigned indices.
7955 (lto_output_decl_state_refs): Likewise.
7956 (write_symbol): Likewise.
7957 * lto-streamer-in.c (lto_input_chain): Move earlier.
7958 (input_function): Use unsigned index.
7959 (input_alias_pairs): Don't read and then ignore all global vars.
7960 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7961 don't pass it back, use lto_streamer_cache_append.
7962 (lto_register_var_decl_in_symtab): Use unsigned index.
7963 (lto_register_function_decl_in_symtab): Likewise.
7964 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7966 (lto_get_builtin_tree): Don't read index, use
7967 lto_streamer_cache_append.
7968 (lto_read_tree): Adjust call to lto_materialize_tree.
7970 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7971 don't use function calls in arguments to MIN.
7973 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7976 * gimple.c (gimple_type_leader_entry): Mark deletable.
7978 2011-04-03 Alan Modra <amodra@gmail.com>
7980 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7982 2011-04-03 Michael Matz <matz@suse.de>
7984 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7986 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7988 2011-04-03 Michael Matz <matz@suse.de>
7990 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7991 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7992 without function context.
7993 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7994 current_function_decl and cfun.
7996 2011-04-03 Michael Matz <matz@suse.de>
7998 * tree.c (decl_init_priority_insert): Don't create entry for
8000 (decl_fini_priority_insert): Ditto.
8001 (fields_compatible_p, find_compatible_field): Remove.
8002 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8003 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8005 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8007 * combine.c (try_combine): Remove useless local variable.
8009 2011-04-03 Richard Guenther <rguenther@suse.de>
8010 Ira Rosen <ira.rosen@linaro.org>
8012 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8013 non-variable offsets and compare the remaining bases of the two
8014 accesses instead of looking for exact same data-ref.
8016 2011-04-02 Kai Tietz <ktietz@redhat.com>
8019 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8021 * i386.c (ix86_is_msabi_thiscall): New helper function.
8022 (ix86_is_type_thiscall): New helper function.
8023 (ix86_comp_type_attributes): Handle thiscall for method-functions
8025 (init_cumulative_args): Likewise.
8026 (find_drap_reg): Likewise.
8027 (ix86_static_chain): Likewise.
8028 (x86_this_parameter): Likewise.
8029 (x86_output_mi_thunk): Likewise.
8031 2011-04-01 Olivier Hainque <hainque@adacore.com>
8032 Nicolas Setton <setton@adacore.com>
8033 Eric Botcazou <ebotcazou@adacore.com>
8035 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8036 (add_gnat_descriptive_type_attribute): New function.
8037 (gen_array_type_die): Call it.
8038 (gen_enumeration_type_die): Likewise.
8039 (gen_struct_or_union_type_die): Likewise.
8040 (modified_type_die): Likewise.
8041 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8042 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8043 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8045 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8048 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8049 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8052 2011-03-17 Richard Guenther <rguenther@suse.de>
8055 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8056 origin for decls in other ltrans units.
8057 (input_varpool_node): Likewise.
8059 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8062 * expr.c (expand_assignment): Handle all possibilities
8063 if TO_RTX is CONCAT.
8064 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8065 (store_split_bit_field): If SUBREG_REG (op0) or
8066 op0 itself has smaller mode than word, return it
8067 for offset 0 and const0_rtx for out-of-bounds stores.
8068 If word is const0_rtx, skip it.
8070 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8072 * config/h8300/h8300.c (print_operand_address): Rename to...
8073 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8074 Call h8300_print_operand and h8300_print_operand_address instead of
8075 print_operand and print_operand_address. Declare.
8076 (print_operand): Renake to...
8077 (h8300_print_operand): ...this. Make static. Adjust comments.
8078 Call h8300_print_operand instead of print_operand. Declare.
8079 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8080 (h8300_register_move_cost): Likewise.
8081 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8082 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8083 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8084 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8085 * config/h8300/h8300-protos.h (print_operand): Delete.
8086 (print_operand_address): Delete.
8088 2011-04-01 Richard Henderson <rth@redhat.com>
8091 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8092 in strict mode before dwarf4. Re-order tests to early out
8093 before switching sections.
8095 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8097 * config/h8300/constraints.md: New file.
8098 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8099 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8100 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8101 * config/h8300/predicates.md (bit_operand): Likewise.
8102 (incdec_operand): Use satisfies_constraint_M and
8103 satisfies_constraint_O. Don't use C code block.
8104 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8105 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8106 (compute_mov_length): Use satisfies_constraint_G.
8107 (fix_bit_operand): Use satisfies_constraint_U.
8108 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8109 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8110 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8111 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8112 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8113 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8114 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8115 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8116 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8117 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8118 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8119 (EXTRA_MEMORY_CONSTRAINT): Delete.
8121 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8122 Michael Meissner <meissner@linux.vnet.ibm.com>
8125 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8126 operands, as per the specifications.
8128 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8129 (vec_extract_evenv4sf): Ditto.
8130 (vec_extract_evenv8hi): Ditto.
8131 (vec_extract_evenv16qi): Ditto.
8132 (vec_extract_oddv4si): Ditto.
8134 2011-03-31 Mark Wielaard <mjw@redhat.com>
8136 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8137 high_pc attribute if the CU has no associated code. Only output
8138 DW_AT_entry_pc for CU if not generating strict dwarf and
8141 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8143 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8144 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8146 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8147 * final.c (final_start_function): Call the new function rather
8148 than using a NULL argument for dwarf2out_frame_debug.
8150 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8151 that contains the prologue.
8153 * haifa-sched.c (queue_insn): New arg REASON. All callers
8154 changed. Print it in debugging output.
8156 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8158 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8159 Split most of the code into...
8160 (begin_move_insn): ... here. New function.
8161 (ebb_sched_info): Add a pointer to it.
8162 * haifa-sched.c (scheduled_insns): New static variable.
8163 (sched_extend_ready_list): Allocate it.
8164 (schedule_block): Use it to record the order of scheduled insns.
8165 Perform RTL changes to move insns only after all scheduling
8166 decisions have been made.
8167 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8168 begin_move_insn field.
8169 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8170 * sched-int.h (struct haifa_sched_info): Remove second argument
8171 from begin_schedule_ready hook. Add new member begin_move_insn.
8172 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8173 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8175 * haifa-sched.c (prune_ready_list): New function, broken out of
8177 (schedule_block): Use it.
8179 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8181 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8183 2011-04-01 Kai Tietz <ktietz@redhat.com>
8185 * config.gcc (*-*-mingw*): Allow as option the
8186 posix threading model.
8187 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8188 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8190 (CPP_SPEC): Add pthread/no-pthread handling.
8191 (LIB_SPEC): Likewise.
8192 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8193 (LIB_SPEC): Likewise.
8194 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8195 flag to pass -pthread option for shared libgcc build.
8196 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8197 for shared libgcc build.
8198 * config/i386/t-mingw-pthread: New file.
8199 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8200 New define to enable use of library pthread by default.
8201 * config/i386/mingw.opt (pthread): New driver option.
8202 (no-pthread): New driver option.
8203 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8204 * config/i386/mingw-w64.opt: Likewise.
8206 2011-04-01 Gary Funck <gary@intrepid.com>
8208 * c-decl.c (grokdeclarator): Fix formatting.
8210 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8212 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8213 instead of n_operands.
8214 (set_storage_via_setmem): Likewise.
8215 * optabs.c (maybe_gen_insn): Likewise.
8216 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8217 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8218 (mips_expand_builtin_direct): Likewise.
8219 * config/spu/spu.c (expand_builtin_args): Likewise.
8221 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8223 * recog.h (insn_data_d): Add n_generator_args.
8224 * genoutput.c (data): Likewise.
8225 (output_insn_data): Print it.
8226 (max_opno, num_dups): Delete.
8227 (scan_operands): Just fill in "d->operand[...]".
8228 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8230 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8232 * gensupport.h (pattern_stats): New structure.
8233 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8234 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8235 (max_operand_1, max_operand_vec): Delete.
8236 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8238 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8240 * emit-rtl.c (emit_pattern_after_setloc): New function.
8241 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8242 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8243 (emit_pattern_after): New function.
8244 (emit_insn_after, emit_jump_insn_after): Call it.
8245 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8246 (emit_pattern_before_setloc): New function.
8247 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8248 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8250 (emit_pattern_before): New function.
8251 (emit_insn_before, emit_jump_insn_before): Call it.
8252 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8254 2011-03-31 Richard Henderson <rth@redhat.com>
8256 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8257 (dw_separate_line_info_entry): Remove.
8258 (enum dw_line_info_opcode): New.
8259 (dw_line_info_entry): Use it.
8260 (dw_line_info_table, dw_line_info_table_p): New.
8261 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8262 (line_info_table, line_info_label_num): Remove.
8263 (line_info_table_in_use): Remove.
8264 (separate_line_info_table): Remove.
8265 (separate_line_info_table_allocated): Remove.
8266 (separate_line_info_table_in_use): Remove.
8267 (LINE_INFO_TABLE_INCREMENT): Remove.
8268 (line_info_label_num): New.
8269 (cur_line_info_table): New.
8270 (text_section_line_info, cold_text_section_line_info): New.
8271 (separate_line_info): New.
8272 (SEPARATE_LINE_CODE_LABEL): Remove.
8273 (print_dwarf_line_table): Remove.
8274 (debug_dwarf): Don't dump it.
8275 (output_one_line_info_table): New.
8276 (output_line_info): Use it.
8277 (new_line_info_table): New.
8278 (set_cur_line_info_table): New.
8279 (dwarf2out_switch_text_section): Use it.
8280 (dwarf2out_begin_function): Likewise.
8281 (push_dw_line_info_entry): New.
8282 (dwarf2out_source_line): Rewrite for new line info tables.
8283 (dwarf2out_init): Remove dead initailizations.
8285 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8287 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8289 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8290 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8291 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8292 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8293 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8294 * opt-functions.awk (flag_init, switch_bit_fields): New.
8295 (switch_flags): Don't handle flags moved to bit-fields. Don't
8296 generate CL_MISSING_OK or CL_SAVE.
8297 * optc-gen.awk: Update to generate bit-field output as well as
8299 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8300 bit-field instead of CL_REJECT_DRIVER flag.
8301 * opts-common.c (generate_canonical_option,
8302 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8303 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8304 instead of CL_REJECT_NEGATIVE flag.
8305 * toplev.c (print_switch_values): Use cl_report bit-field instead
8308 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8310 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8311 a zero minimum index only if it is redundant.
8313 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8315 PR rtl-optimization/48381
8316 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8317 instead of ira_class_hard_reg_index for calculating conflicting
8320 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8322 * cprop.c: Clean up hash table building.
8323 (reg_avail_info): Remove.
8324 (oprs_available_p): Remove.
8325 (record_last_reg_set_info): Remove.
8326 (record_last_set_info): Remove.
8327 (reg_available_p): New function.
8328 (gcse_constant_p): Do not treat unfolded conditions as constants.
8329 (make_set_regs_unavailable): New function.
8330 (hash_scan_set): Simplify with new reg_available_p.
8331 (compute_hash_table_work): Traverse insns stream only once.
8332 Do not compute reg_avail_info. Traverse insns in reverse order.
8333 Record implicit sets after recording explicit sets from the block.
8335 2011-03-31 Michael Matz <matz@suse.de>
8337 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8339 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8341 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8342 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8343 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8344 (h8300_mode_dependent_address_p): New function.
8345 (h8300_get_index): Make static.
8347 2011-03-31 Jeff Law <law@redhat.com>
8349 * reload1.c (elimination_effects): Fix typo in recent change.
8351 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8352 typo potentially leading to null pointer dereference.
8354 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8355 (setup_save_areas): Corresponding changes to avoid useless
8358 * jump.c (reversed_comparison_code_parts): Avoid successive return
8359 statements when REVERSE_CONDITION is defined.
8361 * expr.c (expand_assignment): Avoid useless assignments.
8362 (expand_expr_real_1): Likewise.
8363 (expand_expr_real_2): Avoid useless statements.
8365 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8367 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8369 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8372 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8374 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8377 * doc/tm.texi.in (TARGET_VERSION): Remove.
8378 * doc/tm.texi: Regenerate.
8379 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8380 * collect2.c (main): Don't use TARGET_VERSION.
8381 * mips-tdump.c (main): Don't use TARGET_VERSION.
8382 * mips-tfile.c (main): Don't use TARGET_VERSION.
8383 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8384 * config/rs6000/vxworksae.h: Remove.
8385 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8386 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8387 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8388 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8389 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8390 * config/arm/arm.h (TARGET_VERSION): Remove.
8391 * config/arm/coff.h (TARGET_VERSION): Remove.
8392 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8393 * config/arm/elf.h (TARGET_VERSION): Remove.
8394 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8395 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8396 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8397 * config/arm/pe.h (TARGET_VERSION): Remove.
8398 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8399 * config/arm/semi.h (TARGET_VERSION): Remove.
8400 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8401 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8402 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8403 * config/avr/avr.h (TARGET_VERSION): Remove.
8404 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8405 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8406 * config/frv/frv.h (TARGET_VERSION): Remove.
8407 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8408 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8409 * config/i386/darwin.h (TARGET_VERSION): Remove.
8410 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8411 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8412 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8413 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8414 * config/i386/gnu.h (TARGET_VERSION): Remove.
8415 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8416 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8417 * config/i386/linux.h (TARGET_VERSION): Remove.
8418 * config/i386/linux64.h (TARGET_VERSION): Remove.
8419 * config/i386/lynx.h (TARGET_VERSION): Remove.
8420 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8421 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8422 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8423 * config/i386/netware.h (TARGET_VERSION): Remove.
8424 * config/i386/nto.h (TARGET_VERSION): Remove.
8425 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8426 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8427 * config/ia64/elf.h (TARGET_VERSION): Remove.
8428 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8429 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8430 * config/ia64/linux.h (TARGET_VERSION): Remove.
8431 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8432 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8433 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8434 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8435 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8436 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8437 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8438 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8439 * config/m68k/linux.h (TARGET_VERSION): Remove.
8440 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8441 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8442 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8443 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8444 * config/mep/mep.h (TARGET_VERSION): Remove.
8445 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8446 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8447 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8448 * config/mips/linux.h (TARGET_VERSION): Remove.
8449 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8450 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8451 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8452 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8453 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8454 * config/pa/pa.h (TARGET_VERSION): Remove.
8455 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8456 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8457 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8458 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8459 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8460 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8461 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8462 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8463 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8464 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8465 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8466 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8467 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8468 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8469 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8470 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8471 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8472 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8473 * config/s390/linux.h (TARGET_VERSION): Remove.
8474 * config/s390/s390.h (TARGET_VERSION): Remove.
8475 * config/s390/tpf.h (TARGET_VERSION): Remove.
8476 * config/score/score.h (TARGET_VERSION): Remove.
8477 * config/sh/linux.h (TARGET_VERSION): Remove.
8478 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8479 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8480 * config/sh/sh.h (TARGET_VERSION): Remove.
8481 * config/sh/sh64.h (TARGET_VERSION): Remove.
8482 * config/sh/superh.h (TARGET_VERSION): Remove.
8483 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8484 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8485 * config/sparc/linux.h (TARGET_VERSION): Remove.
8486 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8487 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8488 TARGET_NAME32, TARGET_NAME): Remove.
8489 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8490 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8491 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8492 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8493 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8494 * config/spu/spu.h (TARGET_VERSION): Remove.
8495 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8496 * config/v850/v850.h (TARGET_VERSION): Remove.
8497 * config/vax/linux.h (TARGET_VERSION): Remove.
8498 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8499 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8500 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8502 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8505 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8506 frame-related from frame-unrelated adjustments to the stack pointer.
8508 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8510 * common.opt (fdebug-types-section): Move earlier.
8511 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8513 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8515 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8518 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8520 * tree.h (CASE_CHAIN): Define.
8521 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8522 (gimple_redirect_edge_and_branch): Likewise.
8524 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8527 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8530 2011-03-30 Jeff Law <law@redhat.com>
8532 * PR bootstrap/48371
8533 * reload1.c (reload): Fix botch in last change.
8535 * reload.h (struct reload): Fix typo introduced in last change.
8537 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8539 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8540 Undocumented. Remove help text.
8541 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8544 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8546 * doc/options.texi (NegativeAlias): Document.
8547 (Alias): Mention NegativeAlias.
8548 * opt-functions.awk: Handle NegativeAlias.
8549 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8550 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8551 * opts.h (CL_NEGATIVE_ALIAS): Define.
8552 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8553 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8555 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8557 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8558 mno-spe and mno-isel instead of mspe=no and -misel=no.
8560 2011-03-29 Mark Wielaard <mjw@redhat.com>
8562 * common.opt (fdebug-types-section): New flag.
8563 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8564 * dwarf2out.c (use_debug_types): New define.
8565 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8566 (print_die): Guard output of type unit signatures using
8568 (build_abbrev_table): Replace assert of dwarf_version >= 4
8569 with assert on use_debug_types.
8570 (size_of_die): Likewise.
8571 (unmark_dies): Likewise.
8572 (value_format): Decide AT_ref_external form on use_debug_types.
8573 (output_die): Replace dwarf_version version check guard with
8574 use_debug_types where appropriate.
8575 (modified_type_die): Likewise.
8576 (gen_reference_type_die): Likewise.
8577 (dwarf2out_start_source_file): Likewise.
8578 (dwarf2out_end_source_file): Likewise.
8579 (prune_unused_types_walk_attribs): Likewise.
8580 (dwarf2out_finish): Likewise.
8582 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8584 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8586 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8588 PR rtl-optimization/48332
8589 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8590 mode of input operand N and modeN to its actual mode.
8592 2011-03-30 Jeff Law <law@redhat.com>
8594 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8595 define accessor macro.
8596 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8597 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8598 (reg_equiv_init): Likewise.
8599 (reg_equivs_size): New variable.
8600 (reg_equiv_init_size): Remove.
8601 (allocate_initial_values): Move prototype to here from....
8602 * integrate.h (allocate_initial_values): Remove prototype.
8603 * integrate.c: Include reload.h.
8604 (allocate_initial_values): Corresponding changes.
8605 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8606 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8607 (update_equiv_regs): Corresponding changes.
8608 (ira): Corresponding changes.
8609 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8610 (push_secondary_reload): Corresponding changes.
8611 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8612 (make_memloc, find_reloads_address): Corresponding changes.
8613 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8614 (find_reloads_address_1): Corresponding changes.
8615 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8616 (refers_to_regno_for_reload_p): Corresponding changes.
8617 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8618 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8619 * reload1.c: Include ggc.h.
8620 (grow_reg_equivs): New function.
8621 (replace_pseudos_in, reload): Corresponding changes.
8622 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8623 (eliminate_regs_1, elimination_effects): Corresponding changes.
8624 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8625 (delete_output_reload): Likewise.
8626 * caller-save.c (mark_referenced_regs): Corresponding changes.
8627 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8628 * frv/predicates.md (frv_load_operand): Corresponding changes.
8629 * microblaze/microblaze.c (double_memory_operand): Corresponding
8631 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8632 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8633 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8634 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8635 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8637 * pa/pa.c (emit_move_sequence): Corresponding changes.
8638 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8640 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8643 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8644 structure modes. Don't check neon_vector_mem_operand for
8645 vector or structure modes.
8647 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8648 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8651 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8652 operand 1 and reshuffle the operands to match.
8653 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8655 2011-03-30 Christian Schüler <cschueler@gmx.de>
8658 * config/c.opt (F): Added 'Driver' to -F option.
8661 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8663 * config/darwin.opt: Added '-arch' option.
8665 2011-03-30 Nick Clifton <nickc@redhat.com>
8667 * config/rx/rx.md: Add peepholes and patterns to combine
8668 extending loads and simple arithmetic instructions.
8669 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8670 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8671 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8672 modes to use pre-decrement and post-increment addressing.
8673 (rx_is_restricted_memory_address): Add range checking of REG+INT
8675 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8676 (rx_memory_move_cost): Adjust cost of stores.
8677 (rx_adjust_insn_length): New function.
8679 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8682 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8683 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8684 matching arg00/arg01 types.
8686 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8688 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8689 last_location to UNKNOWN_LOCATION.
8691 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8694 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8697 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8698 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8701 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8703 (sparc_cpu): Likewise.
8704 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8707 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8711 PR rtl-optimization/48345
8712 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8713 hard regs for given mode from profitable regs when doing secondary
8716 2011-03-29 Jeff Law <law@redhat.com>
8719 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8720 do_not_duplicate field.
8721 (lookup_redirection_data): Corresponding changes.
8722 (create_duplicates): Always create a template block.
8723 (redirect_edges): Remove code which reused the original block
8724 when it was going to become unreachable code.
8725 (thread_block): Don't set do_not_duplicate field.
8727 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8729 * lto-opts.c (register_user_option_p, lto_register_user_option):
8730 Make type argument unsigned.
8731 * lto-streamer.h (lto_register_user_option): Make type argument
8733 * opth-gen.awk: Make CL_* macros unsigned.
8734 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8735 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8736 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8737 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8738 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8739 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8740 (find_opt): Make lang_mask argument unsigned.
8742 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8744 PR rtl-optimization/48331
8745 PR rtl-optimization/48334
8746 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8747 for any used algorithm.
8749 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8751 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8754 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8756 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8757 (alpha_option_override): Don't set alpha_sr_alias_set.
8758 (emit_frame_store_1): Use gen_frame_mem rather than calling
8760 (alpha_expand_epilogue): Ditto.
8762 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8764 PR tree-optimization/48290
8765 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8766 vectorization, check that relevant phis in the basic block after
8767 the inner loop are really inner loop's exit phis.
8769 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8772 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8773 (cached_dw_loc_list_def): New structure.
8774 (cached_dw_loc_list): New typedef.
8775 (cached_dw_loc_list_table): New variable.
8776 (cached_dw_loc_list_table_hash): New function.
8777 (cached_dw_loc_list_table_eq): Likewise.
8778 (add_location_or_const_value_attribute): Take a bool cache_p.
8779 Cache the list when the parameter is true.
8780 (gen_formal_parameter_die): Update caller.
8781 (gen_variable_die): Likewise.
8782 (dwarf2out_finish): Likewise.
8783 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8784 while generating debug info for the decl.
8785 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8786 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8787 (resolve_addr): Cache the result of resolving a chain of
8790 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8792 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8793 conflict object hard regset nodes have intersecting hard reg sets.
8795 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8796 after regstat_init_n_sets_and_refs.
8798 * ira.c: Add more comments at the top.
8799 (setup_stack_reg_pressure_class, setup_pressure_classes):
8800 Add comments how we compute the register pressure classes.
8801 (setup_allocno_and_important_classes): Add more comments.
8802 (setup_class_translate_array, reorder_important_classes)
8803 (setup_reg_class_relations): Add comments.
8805 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8808 * ira-color.c: Add 2011 to the Copyright line.
8809 (assign_hard_reg): Add more comments.
8810 (improve_allocation): Ditto.
8812 * ira-costs.c: Add 2011 to the Copyright line.
8813 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8815 (setup_regno_cost_classes_by_mode): Ditto.
8817 Initial patches from ira-improv branch:
8819 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8821 * ira-build.c (ira_create_object): Remove initialization of
8822 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8823 (ira_create_allocno): Remove initialization of
8824 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8825 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8826 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8827 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8828 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8829 Initialize ALLOCNO_ADD_DATA.
8830 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8831 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8833 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8834 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8836 * ira.c (ira_reallocate): Remove.
8837 (setup_pressure_classes): Call
8838 ira_init_register_move_cost_if_necessary. Use
8839 ira_register_move_cost instead of ira_get_register_move_cost.
8840 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8841 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8843 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8844 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8845 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8846 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8847 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8848 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8850 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8851 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8852 (struct allocno_color_data): New.
8853 (allocno_color_data_t): New typedef.
8854 (allocno_color_data): New definition.
8855 (ALLOCNO_COLOR_DATA): New macro.
8856 (struct object_color_data): New.
8857 (object_color_data_t): New typedef.
8858 (object_color_data): New definition.
8859 (OBJECT_COLOR_DATA): New macro.
8860 (update_copy_costs, calculate_allocno_spill_cost): Call
8861 ira_init_register_move_cost_if_necessary. Use
8862 ira_register_move_cost instead of ira_get_register_move_cost.
8863 (move_spill_restore, update_curr_costs): Ditto.
8864 (allocno_spill_priority): Make it inline.
8865 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8866 (struct coalesce_data, coalesce_data_t): New.
8867 (allocno_coalesce_data): New definition.
8868 (ALLOCNO_COALESCE_DATA): New macro.
8869 (merge_allocnos, coalesced_allocno_conflict_p): Use
8870 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8871 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8872 (coalesce_allocnos): Ditto.
8873 (setup_coalesced_allocno_costs_and_nums): Ditto.
8874 (collect_spilled_coalesced_allocnos): Ditto.
8875 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8876 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8877 (coalesce_spill_slots): Ditto.
8878 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8879 free allocno_coalesce_data.
8881 * ira-conflicts.c: Fix formatting.
8882 (process_regs_for_copy): Call
8883 ira_init_register_move_cost_if_necessary. Use
8884 ira_register_move_cost instead of ira_get_register_move_cost.
8885 (build_object_conflicts): Optimize.
8887 * ira-costs.c (record_reg_classes): Optimize. Call
8888 ira_init_register_move_cost_if_necessary. Use
8889 ira_register_move_cost, ira_may_move_in_cost, and
8890 ira_may_move_out_cost instead of ira_get_register_move_cost and
8891 ira_get_may_move_cost.
8892 (record_address_regs): Ditto.
8893 (scan_one_insn): Optimize.
8894 (find_costs_and_classes): Optimize.
8895 (process_bb_node_for_hard_reg_moves): Call
8896 ira_init_register_move_cost_if_necessary. Use
8897 ira_register_move_cost instead of ira_get_register_move_cost.
8899 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8900 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8901 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8902 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8904 (ira_initiate_emit_data, ira_finish_emit_data)
8905 (create_new_allocno): New functions.
8906 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8907 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8908 Use ira_register_move_cost instead of ira_get_register_move_cost.
8910 * ira-int.h: Fix some comments.
8911 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8912 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8913 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8914 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8916 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8917 bitfield after mode. Make hard_regno a short int. Make
8918 hard_regno short. Remove first_coalesced_allocno and
8919 next_coalesced_allocno. Move mem_optimized_dest_p,
8920 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8921 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8922 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8923 temp, colorable_p. Add new member add_data.
8924 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8925 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8926 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8927 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8928 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8929 (ALLOCNO_ADD_DATA): New macro.
8930 (ira_emit_data_t): New typedef.
8931 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8932 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8933 from struct ira_allocno.
8934 (ALLOCNO_EMIT_DATA): New macro.
8935 (ira_allocno_emit_data, allocno_emit_reg): New.
8936 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8937 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8938 (OBJECT_ADD_DATA): New macro.
8939 (ira_reallocate): Remove.
8940 (ira_initiate_emit_data, ira_finish_emit_data): New.
8941 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8942 (ira_init_register_move_cost_if_necessary): New.
8943 (ira_object_conflict_iter_next): Merge into
8944 ira_object_conflict_iter_cond.
8945 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8947 * ira-live.c (process_single_reg_class_operands): Call
8948 ira_init_register_move_cost_if_necessary. Use
8949 ira_register_move_cost instead of ira_get_register_move_cost.
8951 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8953 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8955 * ira-costs.c: Fix formatting.
8956 (cost_classes, cost_classes_num): Remove.
8957 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8958 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8959 (cost_classes_del, cost_classes_htab): New.
8960 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8961 (initiate_regno_cost_classes, setup_cost_classes): New.
8962 (setup_regno_cost_classes_by_aclass): New.
8963 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8964 (record_reg_classes): Use regno_cost_classes instead of
8965 cost_classes. Move checking opposite operand up.
8966 (record_address_regs): Use regno_cost_classes
8967 instead of cost_classes.
8968 (scan_one_insn): Ditto. Use always general register.
8969 (print_allocno_costs): Use regno_cost_classes instead of
8971 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8972 (find_costs_and_classes): Set up cost classes for each registers.
8973 Use also their mode for this. Use regno_cost_classes instead of
8975 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8977 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8978 (ira_costs, ira_set_pseudo_classes): Call
8979 initiate_regno_cost_classes and finish_regno_cost_classes.
8981 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8983 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8985 * target.def (ira_cover_classes): Remove.
8987 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8989 * doc/tm.texi.in: Ditto.
8991 * ira-conflicts.c: Remove mentioning cover classes from the file.
8992 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8993 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8995 * targhooks.c (default_ira_cover_classes): Remove.
8997 * targhooks.h (default_ira_cover_classes): Ditto.
8999 * haifa-sched.c: Remove mentioning cover classes from the file.
9000 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9001 ira_pressure_classes and ira_pressure_classes_num instead of
9002 ira_reg_class_cover_size and ira_reg_class_cover. Use
9003 sched_regno_pressure_class instead of sched_regno_cover_class.
9004 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9005 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9007 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9008 classes from the file.
9009 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9010 (struct object_hard_regs, struct object_hard_regs_node): New.
9011 (struct ira_object): New members profitable_hard_regs,
9012 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9013 (struct ira_allocno): Rename cover_class to aclass. Rename
9014 cover_class_cost and updated_cover_class_cost to class_cost and
9015 updated_class_cost. Remove splay_removed_p and
9016 left_conflict_size. Add new members colorable_p.
9017 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9018 (ALLOCNO_COLORABLE_P): New macro.
9019 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9020 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9021 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9022 (OBJECT_...): Rename parameter C to O.
9023 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9024 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9025 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9026 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9027 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9028 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9029 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9030 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9031 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9032 x_ira_reg_class_subunion.
9033 (ira_max_memory_move_cost, ira_max_register_move_cost)
9034 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9035 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9036 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9037 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9038 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9039 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9040 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9041 (ira_tune_allocno_costs_and_cover_classes): Rename to
9042 ira_tune_allocno_costs.
9043 (ira_debug_hard_regs_forest): New.
9044 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9045 (ira_object_conflict_iter_next): Fix comments.
9046 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9047 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9048 cover_class to aclass.
9049 (ira_allocate_and_accumulate_costs): Ditto.
9050 (ira_allocate_and_set_or_copy_costs): Ditto.
9052 * opts.c (decode_options): Remove ira_cover_class check.
9054 * ira-color.c: Remove mentioning cover classes from the file. Use
9055 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9056 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9057 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9058 (splay-tree.h): Remove include.
9059 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9060 before copy_freq_compare_func.
9061 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9062 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9064 (hard_regs_roots, hard_regs_node_vec): Ditto.
9065 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9066 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9067 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9068 (create_new_object_hard_regs_node): Ditto.
9069 (add_new_object_hard_regs_node_to_forest): Ditto.
9070 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9071 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9073 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9074 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9075 (remove_unused_object_hard_regs_nodes): Ditto.
9076 (enumerate_object_hard_regs_nodes): Ditto.
9077 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9078 (object_hard_regs_subnode_t): Ditto.
9079 (struct object_hard_regs_subnode): Ditto.
9080 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9081 (setup_object_hard_regs_subnode_index): Ditto.
9082 (get_object_hard_regs_subnodes_num): Ditto.
9083 (form_object_hard_regs_nodes_forest): Ditto.
9084 (finish_object_hard_regs_nodes_tree): Ditto.
9085 (finish_object_hard_regs_nodes_forest): Ditto.
9086 (allocnos_have_intersected_live_ranges_p): Rename to
9087 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9088 (pseudos_have_intersected_live_ranges_p): Rename to
9089 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9090 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9091 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9092 (update_copy_costs): Remove assert. Skip cost update if the hard
9093 reg does not belong the class.
9094 (assign_hard_reg): Process only profitable hard regs.
9095 (uncolorable_allocnos_num): Make it scalar.
9096 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9097 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9098 and ira_reg_class_max_nregs.
9099 (bucket_allocno_compare_func): Check frequency first.
9100 (sort_bucket): Add compare function as a parameter.
9101 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9102 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9103 (push_allocno_to_stack): Rewrite for checking new allocno
9105 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9106 (push_only_colorable): Pass new parameter to sort_bucket.
9107 (push_allocno_to_spill): Remove.
9108 (allocno_spill_priority_compare): Make it inline and rewrite.
9109 (splay_tree_allocate, splay_tree_free): Remove.
9110 (allocno_spill_sort_compare): New function.
9111 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9112 build and use splay tree. Choose first allocno in uncolorable
9113 allocno bucket to spill. Remove setting spill cost.
9114 (all_conflicting_hard_regs): Remove.
9115 (setup_allocno_available_regs_num): Check only profitable hard
9116 regs. Print info about hard regs nodes.
9117 (setup_allocno_left_conflicts_size): Remove.
9118 (put_allocno_into_bucket): Don't call
9119 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9120 (improve_allocation): New.
9121 (color_allocnos): Call setup_profitable_hard_regs,
9122 form_object_hard_regs_nodes_forest, improve_allocation,
9123 finish_object_hard_regs_nodes_forest. Setup spill cost.
9124 (print_loop_title): Use pressure classes.
9125 (color_allocnso): Ditto.
9126 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9127 and allocnos_for_spilling.
9128 (ira_sort_regnos_for_alter_reg): Don't setup members
9129 {first,next}_coalesced_allocno.
9130 (color): Remove allocating and freeing removed_splay_allocno_vec.
9131 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9132 prohibited_class_mode_regs.
9134 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9136 (update_allocno_pressure_excess_length): Use pressure classes.
9137 (inc_register_pressure, dec_register_pressure): Check for pressure
9139 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9140 pressure class. Use ira_reg_class_nregs instead of
9141 ira_reg_class_max_nregs.
9142 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9143 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9144 (single_reg_class): Use ira_reg_class_nregs instead of
9145 ira_reg_class_max_nregs.
9146 (process_bb_node_lives): Use pressure classes.
9148 * ira-emit.c: Remove mentioning cover classes from the file. Use
9149 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9150 (change_loop): Use pressure classes.
9151 (modify_move_list): Call ira_set_allocno_class instead of
9152 ira_set_allocno_cover_class.
9154 * ira-build.c: Remove mentioning cover classes from the file. Use
9155 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9156 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9157 ALLOCNO_UPDATED_CLASS_COST instead of
9158 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9159 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9160 (ira_create_allocno): Remove initialization of
9161 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9162 ALLOCNO_COLORABLE_P.
9163 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9164 Update conflict regs for the objects.
9165 (create_cap_allocno): Remove assert. Don't propagate
9166 ALLOCNO_AVAILABLE_REGS_NUM.
9167 (ira_free_allocno_costs): New function.
9168 (finish_allocno): Change a part of code into call of
9169 ira_free_allocno_costs.
9170 (low_pressure_loop_node_p): Use pressure classes.
9171 (object_range_compare_func): Don't compare classes.
9172 (setup_min_max_conflict_allocno_ids): Ditto.
9174 * loop-invariant.c: Remove mentioning cover classes from the file.
9175 Use ira_pressure_classes and ira_pressure_classes_num instead of
9176 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9177 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9178 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9179 Use reg_allocno_class instead of reg_cover_class.
9180 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9181 STACK_REG_COVER_CLASS.
9182 (get_regno_cover_class): Rename to get_regno_pressure_class.
9183 (move_loop_invariants): Initialize and finalize regstat.
9185 * ira.c: Remove mentioning cover classes from the file. Add
9186 comments about coloring without cover classes. Use ALLOCNO_CLASS
9187 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9188 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9189 setup_class_subset_and_memory_move_costs.
9190 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9191 (setup_cover_and_important_classes): Rename to
9192 setup_allocno_and_important_classes.
9193 (setup_class_translate_array): New.
9194 (setup_class_translate): Call it for allocno and pressure classes.
9195 (cover_class_order): Rename to allocno_class_order.
9196 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9197 of ira_class_translate.
9198 (reorder_important_classes): Set up ira_important_class_nums.
9199 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9200 (print_class_cover): Rename to print_classes. Add parameter.
9201 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9202 Print pressure classes too.
9203 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9204 setup_reg_subclasses.
9205 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9206 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9207 (setup_prohibited_class_mode_regs): Use
9208 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9209 (clarify_prohibited_class_mode_regs): New function.
9210 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9211 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9212 (ira_init_once): Initialize them.
9213 (free_register_move_costs): Process them.
9214 (ira_init): Move calls of find_reg_classes and
9215 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9216 Call clarify_prohibited_class_mode_regs.
9217 (ira_no_alloc_reg): Remove.
9218 (too_high_register_pressure_p): Use pressure classes.
9220 * sched-deps.c: Remove mentioning cover classes from the file.
9221 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9222 ira_pressure_classes and ira_pressure_classes_num instead of
9223 ira_reg_class_cover_size and ira_reg_class_cover.
9224 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9225 sched_regno_pressure_class instead of sched_regno_cover_class.
9226 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9227 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9229 * ira.h: Add 2010 to Copyright.
9230 (ira_no_alloc_reg): Remove external.
9231 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9232 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9233 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9234 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9235 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9236 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9237 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9238 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9239 x_ira_no_alloc_regs.
9240 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9241 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9242 ira_allocno_classes_num and ira_allocno_classes.
9243 (ira_class_translate): Rename to ira_allocno_class_translate.
9244 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9245 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9246 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9247 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9248 (ira_no_alloc_regs): New.
9250 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9251 classes from the file. Use ALLOCNO_CLASS instead of
9252 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9253 ALLOCNO_COVER_CLASS_COST.
9254 (regno_cover_class): Rename to regno_aclass.
9255 (record_reg_classes): Use ira_reg_class_subunion instead of
9256 ira_reg_class_union.
9257 (record_address_regs): Check overflow.
9258 (scan_one_insn): Ditto.
9259 (print_allocno_costs): Print total mem cost fore regional allocation.
9260 (print_pseudo_costs): Use REG_N_REFS.
9261 (find_costs_and_classes): Use classes intersected with them on the
9262 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9263 ira_reg_class_union. Use ira_allocno_class_translate and
9264 regno_aclass instead of ira_class_translate and regno_cover_class.
9265 Modify code for finding regno_aclass. Setup preferred classes for
9267 (setup_allocno_cover_class_and_costs): Rename to
9268 setup_allocno_class_and_costs. Use regno_aclass instead of
9269 regno_cover_class. Use ira_set_allocno_class instead of
9270 ira_set_allocno_cover_class.
9271 (init_costs, finish_costs): Use regno_aclass instead of
9273 (ira_costs): Use setup_allocno_class_and_costs instead of
9274 setup_allocno_cover_class_and_costs.
9275 (ira_tune_allocno_costs_and_cover_classes): Rename to
9276 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9277 by processing objects. Use ira_reg_class_max_nregs instead of
9278 ira_reg_class_nregs.
9280 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9282 * sched-int.h: Remove mentioning cover classes from the file.
9283 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9285 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9286 classes from the file.
9287 (struct reg_pref): Rename coverclass into allocnoclass.
9288 (reg_cover_class): Rename to reg_allocno_class.
9290 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9292 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9294 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9296 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9298 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9300 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9302 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9304 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9306 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9308 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9310 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9311 (i386_ira_cover_classes): Ditto.
9313 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9315 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9317 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9319 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9321 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9323 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9325 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9326 (mips_ira_cover_classes): Ditto.
9328 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9330 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9332 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9334 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9336 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9338 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9339 (IRA_COVER_CLASSES_VSX): Ditto.
9341 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9342 (rs6000_ira_cover_classes): Ditto.
9344 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9346 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9348 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9350 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9352 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9354 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9356 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9358 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9360 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9362 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9364 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9367 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9368 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9369 dw_fde_unlikely_section_end_label, cold_in_std_section,
9370 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9371 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9373 (output_fde): Use dw_fde_second_{begin,end} if second is
9374 true, otherwise dw_fde_{begin,end}.
9375 (output_call_frame_info): Test dw_fde_second_begin != NULL
9376 instead of dw_fde_switched_sections.
9377 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9378 fields, initialize new fields. Initialize in_std_section
9379 unconditionally from the first partition.
9380 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9381 dw_fde_second_begin is non-NULL.
9382 (dwarf2out_switch_text_section): Stop initializing removed
9383 dw_fde_struct fields, initialize new fields, initialize
9384 also dw_fde_end here. Set dw_fde_switch_cfi even when
9385 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9386 (struct var_loc_list_def): Add last_before_switch field.
9387 (arange_table, arange_table_allocated, arange_table_in_use,
9388 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9389 (size_of_aranges): Count !in_std_section and !second_in_std_section
9390 hunks in fdes, instead of looking at arange_table_in_use.
9391 (output_aranges): Add aranges_length argument, don't call
9392 size_of_aranges here. Instead of using aranges_table*
9393 emit ranges for fdes when !in_std_section resp.
9394 !second_in_std_section.
9395 (dw_loc_list): Break ranges crossing section switch.
9396 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9397 use dw_fde_second_end instead of dw_fde_end as end of last range.
9398 (gen_subprogram_die): Don't call add_arange. Use
9399 dw_fde_{begin,end} for first partition and if switched
9400 section dw_fde_second_{begin,end} for the second.
9401 (var_location_switch_text_section_1,
9402 var_location_switch_text_section): New functions.
9403 (dwarf2out_begin_function): Initialize cold_text_section even
9404 when function_section () isn't text_section.
9405 (prune_unused_types): Don't walk arange_table.
9406 (dwarf2out_finish): Don't needlessly test
9407 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9408 If info_section_emitted, call size_of_aranges and if it indicates
9409 non-empty .debug_aranges, call output_aranges with the computed
9410 size. Stop using removed dw_fde_struct fields, use
9411 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9415 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9416 create ENTRY_VALUE if incoming or address of incoming's MEM
9418 * dwarf2out.c (mem_loc_descriptor): Don't emit
9419 DW_OP_GNU_entry_value of DW_OP_fbreg.
9420 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9421 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9422 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9423 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9425 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9426 is a REG_P or MEM_P with REG_P address, compute hash directly
9427 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9428 (preserve_only_constants): Don't clear VALUES forwaring
9429 ENTRY_VALUE to some other VALUE.
9431 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9433 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9436 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9438 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9439 block before expanding the statement.
9440 (expand_gimple_stmt_1): Likewise. Set them here...
9441 (expand_gimple_stmt): ...and not here. Tidy.
9442 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9445 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9447 * Makefile.in: New rule for cprop.o.
9448 * gcse.c: Move constant/copy propagation to cprop.c.
9449 (compute_local_properties): Only handle expression tables.
9450 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9451 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9452 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9453 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9454 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9455 compute_cprop_data, find_used_regs, try_replace_reg,
9456 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9457 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9458 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9459 find_bypass_set, reg_killed_on_edge, bypass_block,
9460 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9461 execute_rtl_cprop, pass_rtl_cprop): Move to...
9462 * cprop.c: ...here. New file, constant/copy propagation for RTL
9463 moved from gcse.c to here with minor cleanups in duplicated code.
9465 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9467 * config/i386/i386.c (flag_opts): Fix a typo in
9468 -mavx256-split-unaligned-store.
9470 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9472 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9473 LIBCALL_VALUE): Remove macros.
9474 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9475 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9476 (h8300_function_value, h8300_libcall_value,
9477 h8300_function_value_regno_p): New functions.
9479 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9481 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9483 2011-03-28 Jeff Law <law@redhat.com>
9485 * tree-ssa-threadupdate.c (redirect_edges): Call
9486 create_edge_and_update_destination_phis as needed.
9487 (create_edge_and_update_destination_phis): Accept new BB argument.
9488 All callers updated.
9489 (thread_block): Do not update the profile when threading around
9490 intermediate blocks.
9491 (thread_single_edge): Likewise.
9492 (determine_bb_domination_status): If BB is not a successor of the
9493 loop header, return NONDOMINATING.
9494 (register_jump_thread): Note when we register a jump thread around
9495 an intermediate block.
9496 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9497 (thread_across_edge): Use it.
9499 2011-03-28 Tristan Gingold <gingold@adacore.com>
9501 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9502 when for_return is 2.
9504 2011-03-28 Jeff Law <law@redhat.com>
9506 * var-tracking.c (canonicalize_values_mark): Delete unused
9508 (canonicalize_values_star, set_variable_part): Likewise.
9509 (clobber_variable_part, delete_variable_part): Likewise.
9511 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9513 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9515 2011-03-28 Martin Jambor <mjambor@suse.cz>
9517 * tree-inline.c (expand_call_inline): Do not check that destination
9519 (optimize_inline_calls): Assert that destination node is analyzed.
9520 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9521 not call tree_lowering_passes.
9522 * cgraph.h (cgraph_analyze_function): Declare.
9523 * cgraphunit.c (cgraph_analyze_function): Make public.
9525 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9527 * config/sparc/sparc-opts.h: New.
9528 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9529 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9530 (sparc_option_override): Store processor_type enumeration rather
9531 than string in cpu_default. Remove name and enumeration from
9532 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9533 without using sparc_select. Use target_flags_explicit instead of
9535 * config/sparc/sparc.h (enum processor_type): Move to
9537 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9538 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9539 HeaderInclude entry.
9540 (mcpu=, mtune=): Use Var and Enum.
9541 (sparc_processor_type): New Enum and EnumValue entries.
9543 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9544 Iain Sandoe <iains@gcc.gnu.org>
9547 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9549 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9551 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9552 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9553 Insert new statements at it in lieu of STMT.
9554 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9555 * tree-vect-stmts.c (vectorizable_store): Likewise.
9556 (vectorizable_load): Likewise.
9558 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9560 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9565 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9567 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9568 unaligned 256bit load/store.
9569 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9570 (*avx_movdqu<avxmodesuffix>): Likewise.
9572 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9575 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9576 * config/pa/pa.md (iordi3): Use new predicate in expander.
9579 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9581 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9582 FUNCTION_VALUE_REGNO_P): Remove macros.
9583 * config/mips/mips-protos.h (mips_function_value): Remove.
9584 * config/mips/mips.c (mips_function_value): Rename to...
9585 (mips_function_value_1): ... this. Make static. Handle receiving
9586 the function type in 'fn_decl_or_type' argument.
9587 (mips_function_value, mips_libcall_value,
9588 mips_function_value_regno_p): New function.
9589 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9590 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9592 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9594 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9595 and -mavx256-split-unaligned-store.
9596 (ix86_option_override_internal): Split 32-byte AVX unaligned
9597 load/store by default.
9598 (ix86_avx256_split_vector_move_misalign): New.
9599 (ix86_expand_vector_move_misalign): Use it.
9601 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9602 -mavx256-split-unaligned-store.
9604 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9605 256bit load/store. Generate unaligned store on misaligned memory
9607 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9609 (*avx_movdqu<avxmodesuffix>): Likewise.
9611 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9612 -mavx256-split-unaligned-store.
9614 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9617 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9620 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9622 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9623 opno arguments with an expand_operand. Use create_input_operand.
9624 (mips_prepare_builtin_target): Delete.
9625 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9627 (mips_expand_builtin_direct): Use create_output_operand and
9628 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9629 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9630 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9632 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9634 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9636 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9638 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9640 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9641 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9642 basic blocks and call commit_edge_insertions directly.
9643 (fixup_abnormal_edges): Move from here to...
9644 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9645 on the edges and return whether some have actually been inserted.
9646 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9649 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9651 PR rtl-optimization/48144
9652 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9653 (merge_expr_data): ... here.
9654 (av_set_intersect): Rename to av_set_code_motion_filter.
9655 Update all callers. Call merge_history_vect when an expression
9656 is found in both sets.
9657 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9659 2011-03-26 Alan Modra <amodra@gmail.com>
9661 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9662 cmodel medium addresses.
9663 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9664 64-bit gpr loads and stores.
9665 (rs6000_secondary_reload_ppc64): New function.
9666 * config/rs6000/rs6000-protos.h: Declare it.
9667 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9669 2011-03-26 Alan Modra <amodra@gmail.com>
9672 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9673 GNU Go in traceback table.
9675 2011-03-25 Richard Henderson <rth@redhat.com>
9677 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9678 if there are exactly 6 operands.
9679 (set_storage_via_setmem): Similarly.
9681 2011-03-25 Kai Tietz <ktietz@redhat.com>
9683 * collect2.c (write_c_file_stat): Handle backslash
9684 as right-hand directory separator.
9685 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9686 checking just for slash.
9687 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9688 instead of checking for trailing slash.
9689 * gcc.c (record_temp_file): Use filename_cmp instead
9691 (do_spec_1): Likewise.
9692 (replace_outfile_spec_function): Likewise.
9693 (is_directory): Use filename_ncmp instead of strncmp.
9694 (print_multilib_info): Likewise.
9695 * gcov.c (find_source): Use filename_cmp instead
9697 (make_gcov_file_name): Fix order of slash/backslash
9699 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9700 (add_standard_paths): Likewise.
9701 * mips-tfile.c (saber_stop): Handle backslash.
9702 * prefix.c (update_path): Use filename_ncmp instead of
9704 * profile.c (output_location): Use filename_cmp instead
9706 * read-md.c (handle_toplevel_file): Handle backslash.
9707 * tlink.c (frob_extension): Likewise.
9708 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9710 * tree-dump.c (dequeue_and_dump): Handle backslash.
9711 * tree.c (get_file_function_name): Likewise.
9712 * gengtype.c (read_input_list): Likewise.
9713 (get_file_realbasename): Likewise.
9714 (get_output_file_with_visibility): Use filename_cmp
9717 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9719 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9722 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9724 * fold-const.c (expr_location_or): New function.
9725 (fold_truth_not_expr): Call it.
9727 2011-03-25 Jeff Law <law@redhat.com>
9729 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9731 * c-family/c-common.c (def_fn_type): Likewise.
9732 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9733 * emit-rtl.c (gen_rtvec): Likewise.
9734 * lto/lto-lang.c (def_fn_type): Likewise.
9736 2011-03-25 Richard Guenther <rguenther@suse.de>
9738 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9739 also generate copies.
9740 (fini_copy_prop): Handle constant values properly.
9742 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9744 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9745 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9746 (hash_loc_operands, compare_loc_operands): Handle
9747 DW_OP_GNU_entry_value.
9749 2011-03-25 Kai Tietz <ktietz@redhat.com>
9751 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9752 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9753 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9754 comment and use macro TARGET_64BIT_MS_ABI instead.
9755 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9756 and change default behavior for 32-bit MS_ABI.
9757 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9758 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9760 (ix86_cfun_abi): Likewise.
9761 (ix86_maybe_switch_abi): Adjust comment.
9762 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9763 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9764 instead of checking for SYSV_ABI.
9765 (ix86_nsaved_sseregs): Likewise.
9766 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9768 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9769 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9770 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9771 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9772 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9774 2011-03-25 Richard Guenther <rguenther@suse.de>
9776 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9777 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9778 (verify_gimple): Remove.
9779 * tree-cfg.c (verify_gimple_call): Merge verification
9781 (verify_gimple_phi): Merge verification from verify_stmts.
9782 (verify_gimple_label): New function.
9783 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9784 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9785 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9786 (verify_stmts): Rename to verify_gimple_in_cfg.
9787 (verify_gimple_in_cfg): New function.
9788 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9789 * tree-ssa.c (verify_ssa): Likewise.
9790 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9792 2011-03-25 Richard Guenther <rguenther@suse.de>
9794 * passes.c (init_optimization_passes): Add FRE pass after
9797 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9798 Andrew Stubbs <ams@codesourcery.com>
9800 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9802 (arm_movdi_vfp_cortexa8): New pattern.
9803 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9804 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9805 instructions when tuning for Cortex-A8. Set attribute "arch".
9806 * config/arm/arm.md: Move include arm-tune.md up a bit.
9807 (define_attr "arch"): Add "onlya8" and "nota8" values.
9808 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9810 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9814 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9816 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9817 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9818 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9819 * passes.c (init_optimization_passes): Move
9820 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9822 2011-03-25 Kai Tietz <ktietz@redhat.com>
9824 * c-typeck.c (comptypes_internal): Replace target
9825 hook call of comp_type_attributes by version in tree.c file.
9826 * gimple.c (gimple_types_compatible_p_1): Likewise.
9827 * tree-ssa.c (useless_type_conversion_p): Likewise.
9828 * tree.c (build_type_attribute_qual_variant): Likewise.
9829 (attribute_value_equal): New static helper function.
9830 (comp_type_attributes): New function.
9831 (merge_attributes): Use attribute_value_equal for comparison.
9832 (attribute_list_contained): Likewise.
9833 * tree.h (comp_type_attributes): New prototype.
9835 2011-03-25 Richard Guenther <rguenther@suse.de>
9837 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9838 of complex types at -O0.
9839 (verify_gimple_assign_binary): Likewise.
9840 (verify_gimple_assign_ternary): Likewise.
9842 2011-03-24 Mark Wielaard <mjw@redhat.com>
9844 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9845 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9847 2011-03-24 Mark Wielaard <mjw@redhat.com>
9850 * dwarf2out.c (output_abbrev_section): Only write table when
9851 abbrev_die_table_in_use > 1.
9853 2011-02-24 Richard Henderson <rth@redhat.com>
9855 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9856 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9857 (alpha_expand_unaligned_load_words): Use extql.
9858 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9859 (emit_insxl): Handle all modes for consistency.
9861 2011-02-24 Richard Henderson <rth@redhat.com>
9863 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9864 (alpha_expand_unaligned_load): Likewise.
9865 (alpha_expand_unaligned_store): Likewise.
9866 (alpha_expand_unaligned_load_words): Likewise.
9867 (alpha_expand_unaligned_store_words): Likewise.
9868 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9869 (alpha_split_lock_test_and_set_12): Likewise.
9870 (print_operand, alpha_fold_builtin_extxx): Likewise.
9871 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9872 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9873 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9874 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9875 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9876 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9877 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9878 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9879 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9880 (extwl, extll, extql): Similarly.
9881 (inswh, inslh, insqh): Similarly.
9882 (mskbl, mskwl, mskll, mskql): Similarly.
9883 (mskwh, msklh, mskqh): Similarly.
9885 2011-02-24 Richard Henderson <rth@redhat.com>
9887 * config/alpha/alpha.md (attribute isa): Add er, ner.
9888 (attribute enabled): Handle them.
9889 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9891 2011-02-24 Richard Henderson <rth@redhat.com>
9893 * config/alpha/alpha.md (attribute isa): Add vms.
9894 (attribute enabled): Handle it.
9895 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9896 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9897 (*movtf): Rename from *movtf_internal for consistency.
9898 (*movsi): Merge with *movsi_nt_vms.
9899 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9900 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9901 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9902 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9904 2011-02-24 Richard Henderson <rth@redhat.com>
9906 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9907 (extendqisi2, extendhisi2): Likewise.
9908 (extendqidi2): Simplify BWX/non-BWX expansions.
9909 (extendhidi2): Similarly.
9911 2011-02-24 Richard Henderson <rth@redhat.com>
9913 * config/alpha/alpha.md (attribute isa): New.
9914 (attribute enabled): New.
9915 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9916 (zero_extendqisi2, zero_extendqidi2): Similarly.
9917 (zero_extendhisi2, zero_extendhidi2): Similarly.
9918 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9920 2011-02-24 Richard Henderson <rth@redhat.com>
9922 * config/alpha/predicates.md (input_operand): Revert last change;
9923 update comment to mention 32-bit VMS rather than Windows.
9925 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9927 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9928 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9929 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9930 * passes.c (init_optimization_passes): Move
9931 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9933 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9935 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9937 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9939 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9942 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9945 * simplify-rtx.c (simplify_const_unary_operation): Call
9946 real_convert when changing mode class with FLOAT_EXTEND.
9948 2011-03-24 Nick Clifton <nickc@redhat.com>
9950 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9951 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9952 * config/rx/rx.c (rx_option_override): Set align_jumps,
9953 align_loops and align_labels if not set by the user.
9954 (rx_align_for_label): New function.
9955 (rx_max_skip_for_label): New function.
9956 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9957 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9958 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9959 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9960 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9962 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9964 PR rtl-optimization/48263
9965 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9966 and original commutative_p handling. Use maybe_gen_insn.
9968 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9970 * reload.c (find_reloads_subreg_address): Add address_reloaded
9971 parameter and return true there if the full address has been
9973 (find_reloads_toplev): Pass address_reloaded flag.
9974 (find_reloads_address_1): Don't use address_reloaded parameter.
9976 2011-03-24 Jeff Law <law@redhat.com>
9978 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9979 unused variable "ann".
9980 (remove_unused_locals): Likewise.
9982 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9985 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9988 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9990 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9991 for invalid symbolic addresses.
9992 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9995 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9997 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9998 the argument in calls to fold_truth_not_expr.
10000 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10002 * tree.c (record_node_allocation_statistics): New function.
10003 (make_node_stat, copy_node_stat, build_string): Call it.
10004 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10005 (build1_stat, build_omp_clause): Likewise.
10007 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10009 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10012 2011-03-24 Richard Guenther <rguenther@suse.de>
10014 PR tree-optimization/48271
10015 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10016 blocks that still exist.
10018 2011-03-24 Richard Guenther <rguenther@suse.de>
10020 PR tree-optimization/48270
10021 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10022 not free datarefs before ddrs.
10024 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10026 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10027 from the address built for a reference with variable offset.
10029 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10032 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10033 alternatives that can be handled with movq or movabsq insn.
10034 (*movdf_internal): Disable for !TARGET_64BIT.
10035 (*movdf_internal_nointeger): Ditto.
10036 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10038 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10040 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10041 (FUNCTION_ARG_ADVANCE): Likewise.
10042 * tm.texi.in: Change references to them to hook references.
10043 * tm.texi: Regenerate.
10044 * targhooks.c (default_function_arg): Eliminate check for target macro.
10045 (default_function_incoming_arg): Likewise.
10046 (default_function_arg_advance): Likewise.
10047 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10048 (function_arg_advance): Likewise.
10049 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10051 2011-03-24 Richard Guenther <rguenther@suse.de>
10053 PR middle-end/48269
10054 * tree-object-size.c (addr_object_size): Do not double-account
10055 for MEM_REF offsets.
10057 2011-03-24 Diego Novillo <dnovillo@google.com>
10059 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10060 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10061 (lto_input_data_block): Move from lto-opts.c. Make extern.
10063 (lto_input_string): Rename from input_string. Make extern.
10065 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10066 output_string_with_length.
10067 Output 0 to indicate a non-NULL string. Update all callers to
10069 (lto_output_string): Rename from output_string. Make extern.
10071 (lto_output_decl_state_streams): Make extern.
10072 (lto_output_decl_state_refs): Make extern.
10073 * lto-streamer.h (lto_input_string): Declare.
10074 (lto_input_data_block): Declare.
10075 (lto_output_string): Declare.
10076 (lto_output_string_with_length): Declare.
10077 (lto_output_decl_state_streams): Declare.
10078 (lto_output_decl_state_refs): Declare.
10080 2011-03-24 Richard Guenther <rguenther@suse.de>
10082 PR tree-optimization/46562
10083 * tree.c (build_invariant_address): New function.
10084 * tree.h (build_invariant_address): Declare.
10085 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10086 a renamed function moved ...
10087 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10088 Take valueization callback parameter.
10089 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10090 * gimple-fold.h: New file.
10091 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10092 (ccp_fold, fold_const_aggregate_ref,
10093 fold_ctor_reference, fold_nonarray_ctor_reference,
10094 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10095 get_base_constructor): Move ...
10096 * gimple-fold.c: ... here.
10097 (gimple_fold_stmt_to_constant_1): New function
10098 split out from ccp_fold. Take a valueization callback parameter.
10099 Valueize all operands.
10100 (gimple_fold_stmt_to_constant): New wrapper function.
10101 (fold_const_aggregate_ref_1): New function split out from
10102 fold_const_aggregate_ref. Take a valueization callback parameter.
10103 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10104 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10105 invariant POINTER_PLUS_EXPRs to invariant form.
10106 (vn_valueize): New function.
10107 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10108 * tree-vrp.c (vrp_valueize): New function.
10109 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10110 to fold statements to constants.
10111 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10112 function declarations.
10113 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10114 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10116 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10118 * config/h8300/predicates.md (jump_address_operand): Fix register
10121 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10123 * doc/invoke.texi (max-stores-to-sink): Document.
10124 * params.h (MAX_STORES_TO_SINK): Define.
10125 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10126 if either vectorization or if-conversion is disabled.
10127 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10128 tree-vect-data-refs.c vect_equal_offsets.
10129 (dr_equal_offsets_p): New function.
10130 (find_data_references_in_bb): Remove static.
10131 * tree-data-ref.h (find_data_references_in_bb): Declare.
10132 (dr_equal_offsets_p): Likewise.
10133 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10134 (vect_drs_dependent_in_basic_block): Update calls to
10135 vect_equal_offsets.
10136 (vect_check_interleaving): Likewise.
10137 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10138 (cond_if_else_store_replacement): Rename to...
10139 (cond_if_else_store_replacement_1): ... this. Change arguments and
10141 (cond_if_else_store_replacement): New function.
10142 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10143 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10145 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10148 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10149 to subtract lower bound instead of GEN_INT().
10151 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10156 * doc/extend.texi (Alignment): Move section to match order in TOC.
10157 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10158 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10160 2011-03-23 Jeff Law <law@redhat.com>
10162 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10163 before removing the edge.
10165 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10166 it may have been freed by redirect_branch_edge or
10167 redirect_edge_succ_nodup.
10169 2011-03-23 Richard Guenther <rguenther@suse.de>
10171 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10172 (check_va_list_escapes): Likewise.
10173 (check_all_va_list_escapes): Likewise.
10175 2011-03-23 Richard Guenther <rguenther@suse.de>
10177 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10178 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10179 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10180 (alias.o): Likewise.
10181 (ipa-type-escape.o): Remove.
10182 (ipa-struct-reorg.o): Likewise.
10183 (GTFILES): Remove ipa-struct-reorg.c.
10184 * alias.c: Do not include ipa-type-escape.h.
10185 * tree-ssa-alias.c: Likewise.
10186 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10187 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10188 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10189 and ipa-type-escape passes.
10190 * tree-pass.h (pass_ipa_type_escape): Remove.
10191 (pass_ipa_struct_reorg): Likewise.
10192 * ipa-struct-reorg.h: Remove.
10193 * ipa-struct-reorg.c: Likewise.
10194 * ipa-type-escape.h: Likewise.
10195 * ipa-type-escape.c: Likewise.
10196 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10197 (--param struct-reorg-cold-struct-ratio): Likewise.
10198 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10199 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10200 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10202 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10204 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10205 cpu attribute value.
10206 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10207 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10208 * config/s390/s390.c (processor_flags_table): New constant array.
10209 (s390_handle_arch_option): Remove.
10210 (s390_handle_option): Remove s390_handle_arch_option invocations
10211 and OPT_mwarn_framesize_ handling.
10212 (s390_option_override): Remove s390_handle_arch_option invocation.
10213 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10215 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10216 * config/s390/s390.opt (s390_tune, s390_arch)
10217 (march=): Replace s390_arch_option enum and values with
10218 processor_type. Set variable name to s390_arch. Set
10219 initialization value.
10220 (mtune=): Replace s390_arch_option with processor_type. Set
10221 variable name to s390_tune. Set initialization value.
10223 2011-03-23 Julian Brown <julian@codesourcery.com>
10225 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10226 accesses which are not naturally aligned.
10228 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10231 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10233 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10235 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10236 parameter from "int" to "enum insn_code".
10237 (expand_operand_type): New enum.
10238 (expand_operand): New structure.
10239 (create_expand_operand): New function.
10240 (create_fixed_operand, create_output_operand): Likewise
10241 (create_input_operand, create_convert_operand_to): Likewise.
10242 (create_convert_operand_from, create_address_operand): Likewise.
10243 (create_integer_operand): Likewise.
10244 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10245 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10246 (expand_insn, expand_jump_insn): Likewise.
10247 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10248 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10249 (expand_movstr, expand_builtin___clear_cache): Likewise.
10250 (expand_builtin_lock_release): Likewise.
10251 * explow.c (allocate_dynamic_stack_space): Likewise.
10252 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10253 and use the default handling in that case.
10254 * expmed.c (check_predicate_volatile_ok): Delete.
10255 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10256 (emit_cstore): Likewise.
10257 * expr.c (emit_block_move_via_movmem): Likewise.
10258 (set_storage_via_setmem, expand_assignment): Likewise.
10259 (emit_storent_insn, try_casesi): Likewise.
10260 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10261 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10262 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10263 (expand_twoval_unop, expand_twoval_binop): Likewise.
10264 (expand_unop_direct, emit_indirect_jump): Likewise.
10265 (emit_conditional_move, vector_compare_rtx): Likewise.
10266 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10267 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10268 (expand_sync_lock_test_and_set): Likewise.
10269 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10270 (emit_unop_insn): Likewise.
10271 (expand_copysign_absneg): Change icode to an insn_code.
10272 (create_convert_operand_from_type): New function.
10273 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10274 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10275 (expand_insn, expand_jump_insn): Likewise.
10276 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10277 than const_int_operand for operand 2.
10279 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10281 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10284 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10286 * emit-rtl.c (emit_pattern_before_noloc): New function.
10287 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10288 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10289 (emit_pattern_after_noloc): New function.
10290 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10291 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10293 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10295 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10296 (__ffsDI2): Likewise.
10298 2011-03-22 Richard Henderson <rth@redhat.com>
10300 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10301 of !TARGET_ABI_OPEN_VMS.
10302 (alpha_trampoline_init, alpha_start_function): Likewise.
10303 (alpha_expand_epilogue, alpha_file_start): Likewise.
10304 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10305 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10306 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10307 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10308 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10310 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10312 * config/s390/s390-opts.h: New.
10313 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10314 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10315 s390_stack_guard): Remove.
10316 (s390_handle_arch_option): Return void. Take enum
10317 s390_arch_option value instead of string and searching array.
10318 (s390_handle_option): Don't assert that global structures are in
10319 use. Access variables via opts pointer. Use error_at. Don't use
10320 sscanf for -mstack-guard= or -mstack-size=. Update call to
10321 s390_handle_arch_option.
10322 (s390_option_override): Update call to s390_handle_arch_option.
10323 (s390_emit_prologue): Use %d format for s390_stack_size in
10324 diagnostic. Use %wd for HOST_WIDE_INT.
10325 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10326 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10327 * config/s390/s390.opt (config/s390/s390-opts.h): New
10328 HeaderInclude entry.
10329 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10330 s390_arch_flags, s390_warn_framesize): New Variable entries.
10331 (s390_arch_option): New Enum and EnumValue entries.
10332 (march=): Use Enum instead of Var.
10333 (mstack-guard=, mstack-size=): Use UInteger and Var.
10334 (mtune=): Use Enum.
10336 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10338 * config/score/score.c (score_handle_option): Don't assert that
10339 global structures are in use. Access target_flags via opts
10340 pointer. Use value of -march= option to determine target_flags
10342 * config/score/score.opt (march=): Use Enum.
10343 (score_arch): New Enum and EnumValue entries.
10345 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10347 * config/mep/mep.c (option_mtiny_specified): Remove.
10348 (mep_option_override): Move register handling for -mivc2 from
10349 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10350 instead of option_mtiny_specified.
10351 (mep_handle_option): Access target_flags via opts pointer. Don't
10352 assert that global structures are in use. Defer part of -mivc2
10353 handling and move it to mep_option_override.
10354 * config/mep/mep.opt (IVC2): New Mask entry.
10355 (mivc2): Use Var and Defer instead of Mask.
10357 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10359 * config/v850/v850-opts.h: New.
10360 * config/v850/v850.c (small_memory): Replace with
10361 small_memory_physical_max array. Make that array static const.
10362 (v850_handle_memory_option): Take integer value of argument. Take
10363 gcc_options pointer, option text and location. Return void.
10364 Update for changes to small memory structures.
10365 (v850_handle_option): Access target_flags via opts pointer. Don't
10366 assert that global structures are in use. Update calls to
10367 v850_handle_memory_option.
10368 (v850_encode_data_area): Update references to small memory settings.
10369 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10370 (enum small_memory_type): Move to v850-opts.h.
10371 * config/v850/v850.opt (config/v850/v850-opts.h): New
10372 HeaderInclude entry.
10373 (small_memory_max): New Variable entry.
10374 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10375 (mtda, mzda): Likewise.
10377 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10379 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10380 pointer. Don't assert that global structures are in use.
10382 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10384 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10385 via opts pointer. Don't assert that global structures are in use.
10387 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10389 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10390 (munix=93): Use Var.
10391 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10392 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10393 * config/pa/pa-opts.h: New.
10394 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10395 (pa_handle_option): Don't assert that global structures are in
10396 use. Access target_flags via opts pointer. Don't handle
10397 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10399 (pa_option_override): Handle deferred OPT_mfixed_range_.
10401 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10403 * config/mn10300/mn10300-opts.h: New.
10404 * config/mn10300/mn10300.c (mn10300_processor,
10405 mn10300_tune_string): Remove.
10406 (mn10300_handle_option): Don't assert that global structures are
10407 in use. Access mn10300_processor via opts pointer. Don't handle
10409 * config/mn10300/mn10300.h (enum processor_type): Move to
10411 (mn10300_processor): Remove.
10412 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10413 HeaderInclude entry.
10414 (mn10300_processor): New Variable entry.
10417 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10419 * config/microblaze/microblaze.c: Don't include opts.h.
10420 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10421 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10422 (mno-clearbss): Use Var and Warn.
10424 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10426 * config/m32r/m32r-opts.h: New.
10427 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10428 (m32r_handle_option): Don't assert that global structures are in
10429 use. Access target_flags and m32r_cache_flush_func via opts
10430 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10431 OPT_mno_flush_trap here.
10432 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10433 include of m32r-opts.h.
10434 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10435 HeaderInclude entry.
10436 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10437 (mmodel=): Use Enum and Var.
10438 (m32r_model): New Enum and EnumValue entries.
10439 (mno-flush-trap): Use Var.
10440 (msdata=): Use Enum and Var.
10441 (m32r_sdata): New Enum and EnumValue entries.
10443 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10445 * config/m32c/m32c.c: Don't include opts.h.
10446 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10447 m32c_handle_option): Remove.
10448 (m32c_option_override): Check global_options_set.x_target_memregs
10449 instead of target_memregs_set.
10450 * config/m32c/m32c.h (target_memregs): Remove.
10451 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10454 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10456 * config/iq2000/iq2000-opts.h: New.
10457 * config/iq2000/iq2000.c: Don't include opts.h.
10458 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10459 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10460 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10461 HeaderInclude entry.
10462 (iq2000_tune): New Variable entry.
10463 (march=): Add comment. Use Enum.
10464 (iq2000_arch): New Enum and EnumValue entries.
10465 (mcpu=): Use Enum and Var.
10466 (iq2000_tune): New Enum and EnumValue entries.
10468 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10470 * config/ia64/ia64-opts.h: New.
10471 * config/ia64/ia64.c (ia64_tune): Remove.
10472 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10473 here. Use error_at.
10474 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10475 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10476 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10477 HeaderInclude entry.
10478 (ia64_tune): New Variable entry.
10479 (mfixed-range=): Use Defer and Var.
10480 (mtune=): Use Enum and Var.
10481 (ia64_tune): New Enum and EnumValue entries.
10483 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10485 * config/frv/frv-opts.h: New.
10486 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10488 (frv_cpu_type): Remove.
10489 * config/frv/frv.c: Don't include opts.h.
10490 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10491 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10492 (frv_cpu_type): New Variable entry.
10493 (frv_cpu): New Enum and EnumValue entries.
10495 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10497 * config/cris/cris.c (cris_handle_option): Access target_flags via
10498 opts pointer. Don't assert that global structures are in use.
10499 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10500 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10502 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10504 * config/bfin/bfin-opts.h: New.
10505 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10506 bfin_si_revision, bfin_workarounds): Remove.
10507 (bfin_cpus): Make static const.
10508 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10509 not bfin_lib_id_given.
10510 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10511 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10512 pointer. Use error_at. Don't assert that global structures are in use.
10513 * config/bfin/bfin.h: Include bfin-opts.h.
10514 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10515 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10516 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10517 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10520 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10522 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10523 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10524 or -msoft-float here.
10525 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10526 -msoft-float and -mhard-float.
10527 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10528 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10530 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10532 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10533 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10535 (LIBGCC_SPEC): Don't handle -msoft-float.
10536 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10538 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10540 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10541 -mfloat-abi=*, not -msoft-float and -mhard-float.
10542 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10544 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10545 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10546 mhard-float and msoft-float.
10547 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10548 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10549 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10550 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10552 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10553 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10555 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10557 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10560 2011-03-22 Richard Henderson <rth@redhat.com>
10562 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10563 TARGET_ABI_WINDOWS_NT.
10564 (alpha_output_function_end_prologue): Likewise.
10565 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10566 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10567 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10568 (trap, *movsi_nt_vms): Likewise.
10569 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10570 (*tablejump_osf_nt_internal): Remove.
10571 * config/alpha/predicates.md (input_operand): Only test Pmode.
10573 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10575 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10576 via opts pointer. Use error_at. Don't assert that global
10577 structures are in use.
10579 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10581 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10582 (ix86_handle_option): Access ix86_isa_flags and
10583 ix86_isa_flags_explicit via opts pointer. Don't assert that
10584 global structures are in use.
10585 (ix86_function_specific_save, ix86_function_specific_restore):
10586 Update ix86_isa_flags_explicit field name.
10587 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10588 (ix86_isa_flags_explicit): Rename TargetSave entry to
10589 x_ix86_isa_flags_explicit.
10591 2011-03-22 Richard Henderson <rth@redhat.com>
10593 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10594 (alpha_option_override, direct_return): Likewise.
10595 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10596 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10597 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10598 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10599 (alpha_expand_epilogue, alpha_end_function): Likewise.
10600 (alpha_init_libfuncs): Likewise.
10601 (struct machine_function): Remove unicosmk members.
10602 (print_operand) ['t']: Remove.
10603 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10604 unicosmk_output_module_name, unicosmk_output_common,
10605 current_section_align, unicosmk_output_text_section_asm_op,
10606 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10607 unicosmk_section_type_flags, unicosmk_unique_section,
10608 unicosmk_asm_named_section, unicosmk_insert_attributes,
10609 unicosmk_output_align, unicosmk_defer_case_vector,
10610 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10611 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10612 unicosmk_output_ssib, unicosmk_add_call_info_word,
10613 unicosmk_extern_head, unicosmk_output_default_externs,
10614 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10615 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10616 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10617 * config/alpha/alpha-protos.h: Update.
10618 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10619 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10620 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10621 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10622 (*mulsi_se, mulvsi3): Likewise.
10623 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10624 (*divmodsi_internal, call, call_value, realign): Likewise.
10625 (moddi3, umoddi3): Likewise; remove duplicate expander.
10626 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10627 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10628 (*movdi_nofix): Remove r/U alternative.
10629 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10630 * config/alpha/constraints.md ("U"): Remove.
10631 * config/alpha/predicates.md (call_operand"): Don't test
10632 TARGET_ABI_UNICOSMK.
10634 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10636 * target.def (handle_option): Take gcc_options and
10637 cl_decoded_option pointers and location_t.
10638 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10639 * doc/tm.texi: Regenerate.
10640 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10641 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10642 * lto-opts.c (lto_reissue_options): Generate option structure for
10643 targetm.handle_option call.
10644 * opts.c (target_handle_option): Update call to
10645 targetm.handle_option. Remove assertions about values now passed
10647 * targhooks.c (default_target_handle_option): New.
10648 * targhooks.h (default_target_handle_option): Declare.
10649 * config/alpha/alpha.c: Include opts.h.
10650 (alpha_handle_option): Update to new hook interface.
10651 * config/arm/arm.c: Include opts.h.
10652 (arm_handle_option): Update to new hook interface.
10653 * config/arm/t-arm (arm.o): Update dependencies.
10654 * config/bfin/bfin.c: Include opts.h.
10655 (bfin_handle_option): Update to new hook interface.
10656 * config/cris/cris.c: Include opts.h.
10657 (cris_handle_option): Update to new hook interface.
10658 * config/frv/frv.c: Include opts.h.
10659 (frv_handle_option): Update to new hook interface.
10660 * config/i386/i386.c: Include opts.h.
10661 (ix86_handle_option): Update to new hook interface.
10662 (ix86_valid_target_attribute_inner_p): Generate option structure
10663 for call to ix86_handle_option.
10664 * config/i386/t-i386 (i386.o): Update dependencies.
10665 * config/ia64/ia64.c: Include opts.h.
10666 (ia64_handle_option): Update to new hook interface.
10667 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10668 * config/iq2000/iq2000.c: Include opts.h.
10669 (iq2000_handle_option): Update to new hook interface.
10670 * config/m32c/m32c.c: Include opts.h.
10671 (m32c_handle_option): Update to new hook interface.
10672 * config/m32r/m32r.c: Include opts.h.
10673 (m32r_handle_option): Update to new hook interface.
10674 * config/m68k/m68k.c: Include opts.h.
10675 (m68k_handle_option): Update to new hook interface.
10676 * config/mep/mep.c: Include opts.h.
10677 (mep_handle_option): Update to new hook interface.
10678 * config/microblaze/microblaze.c: Include opts.h.
10679 (microblaze_handle_option): Update to new hook interface.
10680 * config/mips/mips.c: Include opts.h.
10681 (mips_handle_option): Update to new hook interface.
10682 * config/mn10300/mn10300.c: Include opts.h.
10683 (mn10300_handle_option): Update to new hook interface.
10684 * config/pa/pa.c: Include opts.h.
10685 (pa_handle_option): Update to new hook interface.
10686 * config/pdp11/pdp11.c: Include opts.h.
10687 (pdp11_handle_option): Update to new hook interface.
10688 * config/rs6000/rs6000.c: Include opts.h.
10689 (rs6000_handle_option): Update to new hook interface.
10690 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10691 * config/rx/rx.c: Include opts.h.
10692 (rx_handle_option): Update to new hook interface.
10693 * config/s390/s390.c: Include opts.h.
10694 (s390_handle_option): Update to new hook interface.
10695 * config/score/score.c: Include opts.h.
10696 (score_handle_option): Update to new hook interface.
10697 * config/sh/sh.c: Include opts.h.
10698 (sh_handle_option): Update to new hook interface.
10699 * config/sparc/sparc.c: Include opts.h.
10700 (sparc_handle_option): Update to new hook interface.
10701 * config/v850/v850.c: Include opts.h.
10702 (v850_handle_option): Update to new hook interface.
10704 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10706 * gcc.c (driver_unknown_option_callback): Only permit and save
10707 unknown -Wno- options.
10708 (driver_wrong_lang_callback): Save options directly instead of via
10709 driver_unknown_option_callback.
10711 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10713 * combine.c (simplify_set): Try harder to find the best CC mode when
10714 simplifying a nested COMPARE on the RHS.
10716 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10718 * config/alpha/gnu.h: Remove.
10719 * config/arc: Remove directory.
10720 * config/arm/netbsd.h: Remove.
10721 * config/arm/t-pe: Remove.
10722 * config/crx: Remove directory.
10723 * config/i386/netbsd.h: Remove.
10724 * config/m68hc11: Remove directory.
10725 * config/m68k/uclinux-oldabi.h: Remove.
10726 * config/mcore/mcore-pe.h: Remove.
10727 * config/mcore/t-mcore-pe: Remove.
10728 * config/netbsd-aout.h: Remove.
10729 * config/rs6000/gnu.h: Remove.
10730 * config/sh/sh-symbian.h: Remove.
10731 * config/sh/symbian-base.c: Remove.
10732 * config/sh/symbian-c.c: Remove.
10733 * config/sh/symbian-cxx.c: Remove.
10734 * config/sh/symbian-post.h: Remove.
10735 * config/sh/symbian-pre.h: Remove.
10736 * config/sh/t-symbian: Remove.
10737 * config/svr3.h: Remove.
10738 * config/vax/netbsd.h: Remove.
10739 * config.build: Don't handle i[34567]86-*-pe.
10740 * config.gcc: Remove handling of deprecations for most deprecated
10742 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10743 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10744 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10745 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10746 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10747 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10749 * config.host: Don't handle i[34567]86-*-pe.
10750 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10751 (ASM_SPEC32): Don't handle -mcall-gnu.
10752 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10754 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10755 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10756 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10757 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10758 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10759 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10760 conditional on SYMBIAN.
10761 * configure.ac: Don't handle powerpc*-*-gnu*.
10762 * configure: Regenerate.
10763 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10764 * doc/install-old.texi (m6811, m6812): Don't mention.
10765 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10766 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10767 (m68k-uclinuxoldabi): Don't mention.
10768 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10770 (-mcall-gnu): Remove.
10771 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10772 families): Remove constraint documentation.
10774 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10776 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10777 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10778 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10780 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10783 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10784 vector when peeking at the next token for vector, don't expand the
10787 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10789 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10790 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10791 * config/avr/avr.c (init_cumulative_args)
10792 (avr_function_arg_advance): Use it.
10793 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10795 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10796 (avr_function_ok_for_sibcall): ...this new function.
10797 (avr_lookup_function_attribute1): New static Function.
10798 (avr_naked_function_p, interrupt_function_p)
10799 (signal_function_p, avr_OS_task_function_p)
10800 (avr_OS_main_function_p): Use it.
10801 * config/avr/avr.md ("sibcall", "sibcall_value")
10802 ("sibcall_epilogue"): New expander.
10803 ("*call_insn", "*call_value_insn"): New insn.
10804 ("call_insn", "call_value_insn"): Remove
10805 ("call", "call_value", "epilogue"): Change expander to handle
10808 2011-03-21 Nick Clifton <nickc@redhat.com>
10810 * doc/invoke.texi (Overall Options): Move closing brace to end of
10812 (Optimization Options): Add missing @gol.
10813 (Directory Options): Likewise.
10814 (i386 and x86-64 Options): Likewise.
10815 (RS6000 and PowerPC Options): Likewise.
10816 (i386 and x86-64 Windows Options): Likewise.
10817 (V850 Options): Add text missing from descriptions.
10819 2011-03-22 Richard Henderson <rth@redhat.com>
10821 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10822 (avr_incoming_return_addr_rtx): New.
10823 (emit_push_byte): New.
10824 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10825 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10826 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10827 (emit_pop_byte): New.
10828 (expand_epilogue): Use it. Pop frame pointer by bytes.
10829 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10830 (INCOMING_RETURN_ADDR_RTX): New.
10831 (INCOMING_FRAME_SP_OFFSET): New.
10832 (ARG_POINTER_CFA_OFFSET): New.
10833 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10834 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10837 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10839 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10841 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10842 (FUNCTION_ARG_ADVANCE): Likewise.
10843 * tm.texi.in: Change references to them to hook references.
10844 * tm.texi: Regenerate.
10845 * targhooks.c (default_function_arg): Eliminate check for target
10847 (default_function_incoming_arg): Likewise.
10848 (default_function_arg_advance): Likewise.
10849 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10850 (function_arg_advance): Likewise.
10851 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10853 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10855 * tree.c (build_call_1): New function.
10856 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10858 2011-03-22 Richard Guenther <rguenther@suse.de>
10860 PR tree-optimization/48228
10861 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10862 for single-arg PHIs.
10864 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10866 PR rtl-optimization/48143
10867 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10868 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10869 sse2_cvtps2pd): Likewise.
10871 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10873 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10875 2011-03-22 Richard Guenther <rguenther@suse.de>
10877 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10878 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10879 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10880 and REALIGN_LOAD_EXPR.
10881 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10882 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10883 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10884 DOT_PROD_EXPR case ...
10885 (expand_expr_real_2): ... here.
10886 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10887 and REALIGN_LOAD_EXPR.
10888 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10889 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10890 (vect_create_epilog_for_reduction): Likewise.
10891 (vectorizable_reduction): Likewise.
10892 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10893 * tree-vect-stmts.c (vectorizable_load): Likewise.
10895 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10897 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10899 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10901 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10902 handling for PLTOFF/GOTOFF.
10904 2011-03-22 Nick Clifton <nickc@redhat.com>
10906 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10907 trailing backslash from the end of the macro definition.
10909 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10911 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10914 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10916 * expr.h (prepare_operand): Move to...
10917 * optabs.h (prepare_operand): ...here and change the insn code
10918 parameter from "int" to "enum insn_code".
10919 (insn_operand_matches): Declare.
10920 * expr.c (init_expr_target): Use insn_operand_matches.
10921 (compress_float_constant): Likewise.
10922 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10923 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10924 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10925 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10927 (gen_cond_trap): Likewise.
10928 (prepare_operand): Likewise. Change icode to an insn_code.
10929 (insn_operand_matches): New function.
10930 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10931 * reload1.c (gen_reload): Likewise.
10932 * targhooks.c (default_secondary_reload): Likewise.
10934 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10936 * config/alpha/alpha.md (unspec): New define_c_enum.
10939 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10942 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10943 between a call and its CALL_ARG_LOCATION note.
10945 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10947 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10949 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10953 * c-common.c (shorten_compare): If primopN is first sign-extended
10954 to opN and then zero-extended to result type, set primopN to opN.
10956 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10958 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10959 for barrier handlers.
10961 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10963 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10964 UNSPEC constants to be in the unspec enumeration, and redefine
10965 all UNSPECV constants to be in the unspecv enumeration, so that
10966 dumps print which unspec/unspec_volatile this is.
10967 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10968 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10969 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10970 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10971 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10973 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10974 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10975 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10976 * config/rs6000/sync.md (isync, lwsync): Ditto.
10978 2011-03-21 Richard Guenther <rguenther@suse.de>
10980 * params.def (lto-min-partition): Fix typo.
10982 2011-03-21 Richard Guenther <rguenther@suse.de>
10985 * c-decl.c (grokdeclarator): Drop to the main variant only
10986 for array types. Drop flag_gen_aux_info check.
10988 2011-03-21 Richard Guenther <rguenther@suse.de>
10990 PR translation/47911
10991 * params.def (lto-partitions): Fix typo.
10992 (lto-min-partition): Fix wording.
10994 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10996 * config/rs6000/t-freebsd: Remove duplication from file.
10998 2011-03-21 Richard Guenther <rguenther@suse.de>
11000 PR middle-end/47661
11001 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11003 2011-03-21 Richard Guenther <rguenther@suse.de>
11006 * params.def (lto-partitions): Require at least 1 partition.
11008 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11010 * gthr-solaris.h: Remove.
11011 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11012 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11013 (LIB_SPEC): Likewise.
11014 * config/sol2.opt (threads): Remove.
11015 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11016 (sparc*-*-solaris2*): Likewise.
11017 * configure.ac (enable_threads): Enable solaris support.
11018 * configure: Regenerate.
11019 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11020 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11023 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11025 * config.gcc: Obsolete *-*-solaris2.8*.
11026 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11028 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11031 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11032 reference. Solaris 8 perl works.
11034 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11037 * doc/install.texi (Prerequisites): Move jar etc. up.
11038 Explain support library version requirements.
11040 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11043 * doc/install.texi (Prerequisites): Move Perl to build
11044 requirements. Always necessary on Solaris 2 with Sun ld.
11046 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11048 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11050 (Specific, i?86-*-solaris2.[89]): Likewise.
11051 (Specific, i?86-*-solaris2.10): Likewise.
11052 (Specific, mips-sgi-irix6): Likewise.
11053 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11054 Update for binutils 2.21.
11056 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11058 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11059 Allow -fuse-linker-plugin for non-default plugin linker.
11060 * configure: Regenerate.
11062 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11065 * gengtype.c (files_rules): Added rule for cp/parser.h.
11067 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11070 * config/s390/s390.c (s390_delegitimize_address): Don't call
11071 lowpart_subreg if orig_x has BLKmode.
11073 2011-03-21 Kai Tietz <ktietz@redhat.com>
11076 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11077 * tree.h (attribute_spec): Add new member affects_type_identity.
11078 * attribs.c (empty_attribute_table): Adjust attribute_spec
11080 * config/alpha/alpha.c: Likewise.
11081 * config/arc/arc.c: Likewise.
11082 * config/arm/arm.c: Likewise.
11083 * config/avr/avr.c: Likewise.
11084 * config/bfin/bfin.c: Likewise.
11085 * config/crx/crx.c: Likewise.
11086 * config/darwin.h: Likewise.
11087 * config/h8300/h8300.c: Likewise.
11088 * config/i386/cygming.h: Likewise.
11089 * config/i386/i386.c: Likewise.
11090 * config/ia64/ia64.c: Likewise.
11091 * config/m32c/m32c.c: Likewise.
11092 * config/m32r/m32r.c: Likewise.
11093 * config/m68hc11/m68hc11.c: Likewise.
11094 * config/m68k/m68k.c: Likewise.
11095 * config/mcore/mcore.c: Likewise.
11096 * config/mep/mep.c: Likewise.
11097 * config/microblaze/microblaze.c: Likewise.
11098 * config/mips/mips.c: Likewise.
11099 * config/rs6000/rs6000.c: Likewise.
11100 * config/rx/rx.c: Likewise.
11101 * config/sh/sh.c: Likewise.
11102 * config/sol2.h: Likewise.
11103 * config/sparc/sparc.c: Likewise.
11104 * config/spu/spu.c: Likewise.
11105 * config/stormy16/stormy16.c: Likewise.
11106 * config/v850/v850.c: Likewise.
11108 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11110 * simplify-rtx.c (simplify_binary_operation_1): Handle
11111 (xor (and A B) C) case when B and C are both constants.
11113 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11115 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11117 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11120 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11122 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11124 PR rtl-optimization/48156
11125 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11126 assume df and df_lr are not NULL.
11128 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11131 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11132 between a call and its CALL_ARG_LOCATION note.
11134 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11137 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11138 between a call and its corresponding CALL_ARG_LOCATION note.
11140 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11142 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11143 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11144 * haifa-sched.c (setup_ref_regs): Ditto.
11145 * caller-save.c (add_used_regs_1): Ditto.
11146 * dse.c (look_for_hardregs): Ditto.
11147 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11148 * sched-rgn.c (check_live_1): Ditto.
11150 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11152 * c-decl.c (diagnose_mismatched_decls): Give an error for
11153 redefining a typedef with variably modified type.
11155 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11157 * c-decl.c (grokfield): Don't allow typedefs for structures or
11158 unions with no tag by default.
11159 * doc/extend.texi (Unnamed Fields): Update.
11161 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11163 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11164 Rewrite using indirect functions.
11165 (lwp_slwpcb): Ditto.
11166 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11167 (avx_vinsertf128<mode>): Ditto.
11169 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11171 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11174 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11176 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11177 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11179 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11181 PR rtl-optimization/48170
11182 * gcse.c (hoist_code): Remove bogus asserts.
11184 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11186 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11187 computation for prologue/epilogue.
11189 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11191 * Makefile.in (check-consistency): Remove.
11193 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11196 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11197 arange_table_in_use is 0, but either text_section_used or
11198 cold_text_section_used is true. Don't call it if
11199 !info_section_emitted.
11201 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11203 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11204 FUNCTION_VALUE_REGNO_P): Remove.
11205 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11207 * config/avr/avr.c (avr_ret_register): Make static inline.
11208 (avr_function_value_regno_p): New function.
11209 (avr_libcall_value): Make static. Add 'func' argument.
11210 (avr_function_value): Make static. Rename 'func' argument to
11211 'fn_decl_or_type', forward it to avr_libcall_value. Call
11212 avr_ret_register function instead of RET_REGISTER macro.
11213 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11215 2011-03-18 Jason Merrill <jason@redhat.com>
11218 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11220 2011-03-18 Richard Guenther <rguenther@suse.de>
11222 * doc/install.texi (--enable-gold): Remove.
11223 (--with-plugin-ld): Document.
11224 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11226 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11228 PR middle-end/47790
11229 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11230 again after expansion changes.
11232 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11234 * combine.c (try_combine): Do simplification only call of
11235 subst() on i2 even when i1 is present. Update comments.
11237 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11239 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11240 and UNSPEC_PCREL_SYMOFF.
11242 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11244 * config/s390/s390.md: Use define_c_enum for the unspec constant
11247 2011-03-18 Richard Henderson <rth@redhat.com>
11248 Jakub Jelinek <jakub@redhat.com>
11251 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11252 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11254 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11256 PR middle-end/47725
11257 * combine.c (cant_combine_insn_p): Don't check zero/sign
11258 extended hard registers.
11260 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11262 PR middle-end/47725
11263 * combine.c (cant_combine_insn_p): Check zero/sign extended
11266 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11268 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11269 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11270 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11271 Change return type to bool.
11272 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11274 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11277 * var-tracking.c (prepare_call_arguments): If CALL target
11278 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11279 pc instead of looking it up using cselib_lookup and use
11280 Pmode for it if x has VOIDmode.
11281 * dwarf2out.c (gen_subprogram_die): If also both first and
11282 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11285 * function.c (assign_parms): For data.passed_pointer parms
11286 use MEM of data.entry_parm instead of data.entry_parm itself
11287 as DECL_INCOMING_RTL.
11288 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11289 also when passed and declared mode is the same, DECL_RTL
11290 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11293 2011-03-16 Jeff Law <law@redhat.com>
11295 PR rtl-optimization/37273
11296 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11297 handle them like argument loads from stack slots. Do not double
11298 count memory for memory constants and argument loads from stack slots.
11300 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11303 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11305 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11308 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11310 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11313 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11315 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11316 Clear call_arg_locations and call_arg_loc_last always.
11318 PR middle-end/48152
11319 * var-tracking.c (prepare_call_arguments): If argument needs to be
11320 passed by reference, adjust argtype and mode.
11322 2011-03-17 Richard Guenther <rguenther@suse.de>
11324 PR middle-end/48134
11325 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11326 a value make sure to fold the statement.
11328 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11331 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11332 return condition with !cfun->calls_alloca.
11334 2011-03-17 Richard Guenther <rguenther@suse.de>
11337 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11338 origin for decls in other ltrans units.
11339 (input_varpool_node): Likewise.
11341 2011-03-17 Richard Guenther <rguenther@suse.de>
11343 PR middle-end/48165
11344 * tree-object-size.c (compute_object_offset): Properly return
11345 the offset operand of MEM_REFs as sizetype.
11347 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11349 PR rtl-optimization/48141
11350 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11351 * dse.c: Include params.h.
11352 (active_local_stores_len): New variable.
11353 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11355 (record_store, check_mem_read_rtx): Decrease it when removing
11357 (scan_insn): Likewise. Increase it when adding to chain, if it
11358 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11359 set active_local_stores to NULL before the addition.
11360 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11362 PR rtl-optimization/48141
11363 * dse.c (record_store): If no positions are needed in an insn
11364 that cannot be deleted, at least unchain it from active_local_stores.
11366 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11369 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11370 (lookup_type_die_strip_naming_typedef): ... here.
11371 (get_context_die): Use it.
11372 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11373 the anonymous struct named by the naming typedef.
11375 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11378 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11379 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11381 2011-03-16 Jeff Law <law@redhat.com>
11383 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11384 check for operands of conditional. Allow type to be a pointer.
11386 2011-03-16 Richard Guenther <rguenther@suse.de>
11388 PR tree-optimization/48149
11389 * fold-const.c (fold_binary_loc): Fold
11390 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11392 2011-03-16 Richard Guenther <rguenther@suse.de>
11394 PR tree-optimization/26134
11395 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11396 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11397 (non_rewritable_mem_ref_base): Handle complex type component
11398 accesses, constrain offsets for vector and complex extracts
11401 2011-03-16 Richard Guenther <rguenther@suse.de>
11403 PR tree-optimization/48146
11404 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11405 operands avoiding the need for renaming.
11407 2011-03-16 Richard Guenther <rguenther@suse.de>
11409 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11410 constant folding. Move MEM_REF canonicalization first.
11411 Rely on fold_const_aggregate_ref for initializer folding.
11412 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11414 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11416 PR middle-end/48136
11417 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11418 arg0/arg1 or their arguments are always fold converted to matching
11421 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11424 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11427 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11428 Handle in-tree gold.
11429 (ld_vers): Extract binutils version for gold.
11430 (gcc_cv_ld_hidden): Handle gold here.
11431 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11432 * configure: Regenerate.
11433 * config.in: Regenerate.
11434 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11435 -fuse-linker-plugin otherwise.
11436 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11437 (LINK_COMMAND_SPEC): Use it.
11438 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11440 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11442 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11443 * calls.c: Remove debug.h include.
11444 (emit_call_1): Don't call virtual_call_token debug hook.
11445 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11446 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11447 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11448 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11449 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11450 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11451 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11452 dwarf2out_virtual_call): Remove.
11453 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11454 copy_call_info and virtual_call hooks.
11455 (dwarf2out_init): Don't initialize vcall_insn_table,
11456 debug_dcall_section and debug_vcall_section.
11457 (prune_unused_types): Don't mark nodes from dcall_table.
11458 (dwarf2out_finish): Don't output dcall or vcall tables.
11459 * final.c (final_scan_insn): Don't call direct_call or
11460 virtual_call debug hooks.
11461 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11462 virtual_call_token, copy_call_info and virtual_call hooks.
11463 (debug_nothing_uid): Remove prototype.
11464 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11465 copy_call_info and virtual_call hooks.
11466 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11467 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11468 * debug.c (do_nothing_debug_hooks): Likewise.
11469 (debug_nothing_uid): Remove.
11470 * doc/invoke.texi (-fenable-icf-debug): Remove.
11471 * common.opt (-fenable-icf-debug): Likewise.
11473 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11474 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11475 call's MEM. Handle functions returning aggregate through a hidden
11476 first pointer. For virtual calls add clobbered pc to call arguments
11478 * dwarf2out.c (gen_subprogram_die): Emit
11479 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11483 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11484 * rtl.h (ENTRY_VALUE_EXP): Define.
11485 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11486 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11487 * print-rtl.c (print_rtx): Likewise.
11488 * gengtype.c (adjust_field_rtx_def): Likewise.
11489 * var-tracking.c (vt_add_function_parameter): Adjust
11490 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11491 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11492 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11493 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11494 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11496 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11497 Call var_location debug hook even on CALL_INSNs.
11498 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11499 * rtl.def (ENTRY_VALUE): New.
11500 * dwarf2out.c: Include cfglayout.h.
11501 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11502 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11503 (struct call_arg_loc_node): New type.
11504 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11505 tail_call_site_count): New variables.
11506 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11507 DW_TAG_GNU_call_site_parameter.
11508 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11509 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11510 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11511 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11512 and DW_AT_GNU_all_source_call_sites.
11513 (mem_loc_descriptor): Handle ENTRY_VALUE.
11514 (add_src_coords_attributes): Don't add enything if
11515 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11516 (dwarf2out_abstract_function): Save and clear call_arg_location,
11517 call_site_count and tail_call_site_count around dwarf2out_decl call.
11518 (gen_call_site_die): New function.
11519 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11520 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11521 (dwarf2out_function_decl): Clear call_arg_locations,
11522 call_arg_loc_last, set call_site_count and tail_call_site_count
11523 to -1 and free block_map.
11524 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11525 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11526 followed by any real instructions.
11527 (dwarf2out_begin_function): Set call_site_count and
11528 tail_call_site_count to 0.
11529 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11530 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11531 attempt to force a DIE for it and worst case remove the attribute.
11532 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11533 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11535 * var-tracking.c: Include tm_p.h.
11536 (vt_stack_adjustments): For calls call note_register_arguments.
11537 (argument_reg_set): New variable.
11538 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11539 ensure the VALUE is resolved.
11540 (call_arguments): New variable.
11541 (prepare_call_arguments): New function.
11542 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11543 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11544 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11545 always use the best expression.
11546 (vt_expand_loc): Add ignore_cur_loc argument.
11547 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11548 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11549 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11550 note for all calls.
11551 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11552 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11553 argument. Don't call cselib_preserve_only_values and
11554 cselib_reset_table.
11555 (note_register_arguments): New function.
11556 (vt_initialize): Compute argument_reg_set. Call
11557 vt_add_function_parameters before processing basic blocks instead of
11558 afterwards. For calls call prepare_call_arguments before calling
11559 cselib_process_insn.
11560 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11561 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11562 (var-tracking.o): Depend on $(TM_P_H).
11563 * cfglayout.h (insn_scope): New prototype.
11564 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11565 * cfglayout.c (insn_scope): No longer static.
11566 * insn-notes.def (CALL_ARG_LOCATION): New.
11567 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11568 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11569 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11570 nothing for DECL_EXTERNAL BLOCK_VARS.
11572 2011-03-16 Alan Modra <amodra@gmail.com>
11575 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11576 create invalid offset address for vsx splat insn.
11577 * config/rs6000/predicates.md (splat_input_operand): New.
11578 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11580 2011-03-15 Xinliang David Li <davidxl@google.com>
11583 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11584 (normalize_preds): New function.
11585 (is_use_properly_guarded): Normalize def predicates.
11587 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11590 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11591 in the output template.
11593 2011-03-15 Richard Guenther <rguenther@suse.de>
11595 PR middle-end/47650
11596 * tree-pretty-print.c (dump_function_declaration): Properly
11597 dump unprototyped and varargs function types.
11599 2011-03-15 Richard Guenther <rguenther@suse.de>
11601 PR tree-optimization/13954
11602 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11605 2011-03-15 Richard Guenther <rguenther@suse.de>
11607 PR tree-optimization/48037
11608 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11609 selects into BIT_FIELD_REFs.
11610 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11613 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11615 PR tree-optimization/48129
11616 * builtins.c (fold_builtin_snprintf): Convert to type of
11617 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11618 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11620 2011-03-15 Richard Guenther <rguenther@suse.de>
11622 PR tree-optimization/41490
11623 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11624 value but with VUSE.
11625 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11627 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11628 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11629 * tree-tailcall.c (find_tail_calls): Ignore returns.
11631 2011-03-15 Richard Guenther <rguenther@suse.de>
11633 PR middle-end/48031
11634 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11635 or variable-indexed array accesses when in gimple form.
11637 2011-03-15 Richard Guenther <rguenther@suse.de>
11639 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11641 2011-03-15 Alan Modra <amodra@gmail.com>
11644 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11645 presume symbol_refs without a symbol_ref_decl are suitably
11646 aligned, nor other trees we may see here. Handle anchor symbols.
11647 (legitimate_constant_pool_address_p): Comment. Add mode param.
11648 Check cmodel=medium addresses. Adjust all calls.
11649 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11650 creating cmodel=medium optimized access to locals.
11651 * config/rs6000/constraints.md (R): Pass QImode to
11652 legitimate_constant_pool_address_p.
11653 * config/rs6000/predicates.md (input_operand): Pass mode to
11654 legitimate_constant_pool_address_p.
11655 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11658 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11661 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11662 64-bit constants being loaded into registers other than GPRs such
11663 as loading 0 into a VSX register.
11665 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11667 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11669 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11671 PR middle-end/47917
11672 * builtins.c (fold_builtin_snprintf): New function.
11673 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11674 (fold_builtin_4): Likewise.
11676 PR middle-end/38878
11677 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11678 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11679 and C - X == X also strip nops from +/-/p+ operand.
11680 When optimizing -X == C, fold C to arg0's type.
11683 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11684 emit it as add_AT_int instead of add_AT_unsigned.
11686 2011-03-14 Tom Tromey <tromey@redhat.com>
11688 * unwind-dw2.c: Include sys/sdt.h if it exists.
11689 (_Unwind_DebugHook): Use STAP_PROBE2.
11690 * config.in, configure: Rebuild.
11691 * configure.ac: Check for sys/sdt.h.
11693 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11695 * config/i386/i386.md (ROUND_FLOOR): New constant.
11696 (ROUND_CEIL): Ditto.
11697 (ROUND_TRUNC): Ditto.
11698 (ROUND_MXCSR): Ditto.
11699 (ROUND_NO_EXC): Ditto.
11700 (rint<mode>2): Use new defines instead of numerical constants.
11701 (floor<mode>2): Ditto.
11702 (ceil<mode>2): Ditto.
11703 (btrunc<mode>2): Ditto.
11704 * config/i386/i386-builtin-types.def: Define ROUND function type
11706 * config/i386/i386.c (enum ix86_builtins): Add
11707 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11708 (struct builtin_description): Add
11709 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11710 (ix86_expand_sse_round): New static function.
11711 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11713 (ix86_builtin_vectorized_function): Handle
11714 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11716 2011-03-14 Tom Tromey <tromey@redhat.com>
11718 * c-parser.c (c_parser_asm_string_literal): Clear
11719 warn_overlength_strings.
11721 2011-03-14 Tom Tromey <tromey@redhat.com>
11723 * c-parser.c (disable_extension_diagnostics): Save
11724 warn_overlength_strings.
11725 (restore_extension_diagnostics): Restore warn_overlength_strings.
11727 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11729 * BASE-VER: Change to 4.7.0.
11731 2011-03-14 Richard Guenther <rguenther@suse.de>
11733 PR middle-end/48098
11734 * tree.c (build_vector_from_val): Adjust assert to requirements
11737 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11740 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11742 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11744 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11745 terms of target_flags_explicit. Adjust copyright year.
11747 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11748 * config/rs6000/t-freebsd: New file. Add override for
11751 2011-03-13 Chris Demetriou <cgd@google.com>
11753 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11754 (-fno-diagnostics-show-option): this, to reflect current default.
11755 (-Werror=): Update text about -fno-diagnostics-show-option.
11757 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11760 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11761 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11762 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11763 mode is not V2DImode or V2DFmode.
11764 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11765 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11766 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11768 (movdi_internal64): Likewise.
11770 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11772 PR tree-optimization/47127
11773 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11775 (set_cloog_options): Same.
11776 (scop_to_clast): Same.
11777 (print_clast_stmt): Do not call cloog_state_malloc and
11779 (print_generated_program): Same.
11781 * graphite-clast-to-gimple.h (cloog_state): Declared.
11782 (scop_to_clast): Adjust declaration.
11783 * graphite.c (cloog_state): Defined here.
11784 (graphite_initialize): Call cloog_state_malloc.
11785 (graphite_finalize): Call cloog_state_free.
11787 2011-03-11 Jason Merrill <jason@redhat.com>
11789 * attribs.c (lookup_attribute_spec): Take const_tree.
11792 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11794 * config/sparc/sparc.c (sparc_option_override): Use
11795 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11797 2011-03-11 Richard Guenther <rguenther@suse.de>
11799 PR tree-optimization/48067
11800 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11801 multiplication result will be only used once on the target
11804 2011-03-11 Richard Guenther <rguenther@suse.de>
11806 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11808 2011-03-11 Richard Guenther <rguenther@suse.de>
11811 * tree.c (find_decls_types_r): Do not walk types only reachable
11812 from IDENTIFIER_NODEs.
11814 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11816 PR middle-end/48044
11817 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11818 all vnode->force_output nodes as needed.
11820 2011-03-11 Jason Merrill <jason@redhat.com>
11823 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11824 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11826 2011-03-11 Martin Jambor <mjambor@suse.cz>
11828 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11831 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11833 PR tree-optimization/48063
11834 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11835 inline functions called once if !tree_can_inline_p (node->callers).
11837 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11839 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11841 * config/score/score3.c: Delete.
11842 * config/score/score3.h: Delete.
11843 * config/score/mul-div.S: Delete.
11844 * config/score/sfp-machine.h: Add new file.
11845 * config/score/constraints.md: Add new file.
11846 * config/score/t-score-softfp: Add new file.
11847 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11848 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11849 (score7_extra_constraint): Delete.
11850 (score7_option_override): Remove unused code.
11851 * config/score/score.c: Remove score3 and score5 define and code.
11852 * config/score/score.h: Remove score3 and score5 define and code.
11853 * config/score/score.md: Remove score3 template and unusual insn.
11854 * config/score/score.opt: Remove score3 and score5 options.
11856 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11858 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11859 when _HPUX_SOURCE is defined.
11860 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11862 2011-03-10 Jason Merrill <jason@redhat.com>
11865 * stor-layout.c (layout_type): Don't set structural equality
11866 on arrays of incomplete type.
11867 * tree.c (type_hash_eq): Handle comparing them properly.
11869 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11872 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11873 result mode matches original rtl mode.
11875 2011-03-10 Nick Clifton <nickc@redhat.com>
11877 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11878 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11880 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11882 PR rtl-optimization/47866
11883 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11884 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11885 if target wasn't scalar.
11886 * function.c (assign_stack_temp_for_type): Assert that neither
11887 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11888 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11890 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11892 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11894 * config/s390/s390-protos.h (s390_label_align): New prototype.
11895 * config/s390/s390.c (s390_label_align): New function.
11896 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11898 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11901 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11902 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11903 (output_vec_const_move): Ditto.
11905 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11907 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11908 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11909 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11910 Change 'rclass' argument and result type to reg_class_t.
11911 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11913 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11915 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11916 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11917 (TARGET_MEMORY_MOVE_COST): Define.
11918 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11920 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11923 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11926 PR tree-optimization/48022
11927 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11930 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11933 * var-tracking.c (find_use_val): Return NULL for
11934 cui->sets && cui->store_p BLKmode MEMs.
11936 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11938 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11940 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11941 xstormy16_print_operand_address): Remove.
11942 * config/stormy16/stormy16.c (xstormy16_print_operand,
11943 xstormy16_print_operand_address): Make static.
11944 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11946 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11949 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11950 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11953 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11956 * cfgloopmanip.c (fix_bb_placements): Return immediately
11957 if FROM is BASE_LOOP's header.
11959 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11961 * gimplify.c (gimplify_function_tree): Fix building calls
11962 to __builtin_return_address.
11964 2011-03-07 Alan Modra <amodra@gmail.com>
11966 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11967 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11968 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11969 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11971 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11972 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11973 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11974 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11975 * config/rs6000/rs6000.c
11976 (rs6000_elf_end_indicate_exec_stack): Rename to..
11977 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11978 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11979 (rs6000_file_start): ..here.
11980 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11981 file scope variables.
11982 (call_ABI_of_interest): New function.
11983 (init_cumulative_args): Set above vars when function return value
11984 is a float, vector, or small struct.
11985 (rs6000_function_arg_advance_1): Likewise for function args.
11986 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11987 references float args.
11989 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11991 * doc/cfg.texi: Remove "See" before @ref.
11992 * doc/invoke.texi: Likewise.
11994 2011-03-05 Jason Merrill <jason@redhat.com>
11996 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11998 2011-03-05 Anthony Green <green@moxielogic.com>
12000 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12002 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12004 PR rtl-optimization/47899
12005 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12006 to flow_loop_nested_p when moving the loop upward.
12008 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12011 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12013 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12015 PR tree-optimization/47967
12016 * ipa-cp.c (build_const_val): Return NULL instead of creating
12017 VIEW_CONVERT_EXPR for mismatching sizes.
12018 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12019 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12020 give up on versioning.
12022 2011-03-05 Alan Modra <amodra@gmail.com>
12025 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12026 full cmodel medium/large lo_sum + high addresses.
12028 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12030 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12031 pool references in UNSPEC_LTREL_OFFSET.
12033 2011-03-04 Jan Hubicka <jh@suse.cz>
12036 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12037 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12038 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12040 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12041 cgraph_add_thunk): Add node pointers.
12042 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12043 associated to right node.
12044 (input_node): Update use of cgraph_same_body_alias
12045 and cgraph_add_thunk.
12047 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12049 * config/i386/i386.opt (mprefer-avx128): New flag.
12050 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12051 modes when the flag -mprefer-avx128 is on.
12053 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12055 * dwarf2out.c (compare_loc_operands): Fix address handling.
12057 2011-03-04 Alan Modra <amodra@gmail.com>
12059 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12061 2011-03-04 Richard Guenther <rguenther@suse.de>
12063 PR middle-end/47968
12064 * expmed.c (extract_bit_field_1): Prefer vector modes that
12065 vec_extract patterns can handle.
12067 2011-03-04 Richard Guenther <rguenther@suse.de>
12069 PR middle-end/47975
12070 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12072 2011-03-04 Richard Henderson <rth@redhat.com>
12074 * explow.c (emit_stack_save): Remove 'after' parameter.
12075 (emit_stack_restore): Likewise.
12076 * expr.h: Update to match.
12077 * builtins.c, calls.c, stmt.c: Likewise.
12078 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12079 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12080 * function.c (expand_function_end): Insert the emit_stack_save
12081 sequence before parm_birth_insn instead of after.
12083 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12085 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12086 (ssse3_pmaddubsw128): Ditto.
12087 (ssse3_pmaddubsw): Ditto.
12089 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12091 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12093 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12096 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12097 on TYPE_SIZE_UNIT if it is a DECL.
12100 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12101 first operand is not is_gimple_mem_ref_addr, try to fold it.
12102 If the operand still isn't is_gimple_mem_ref_addr, clear
12105 2011-03-03 Richard Guenther <rguenther@suse.de>
12107 PR middle-end/47283
12108 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12110 (refs_may_alias_p_1): For release branches return true if
12111 we are confused by our input.
12113 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12115 * config/s390/s390.c (s390_function_value): Rename to ...
12116 (s390_function_and_libcall_value): ... this.
12117 (s390_function_value): New function.
12118 (s390_libcall_value): New function.
12119 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12120 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12121 target macro definitions.
12122 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12124 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12126 * config/i386/freebsd64.h (CC1_SPEC): Define.
12127 * config/i386/linux64.h (CC1_SPEC): Define.
12128 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12130 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12132 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12134 * config/stormy16/stormy16.c: Include reload.h.
12135 (xstormy16_memory_move_cost): New function.
12136 (TARGET_MEMORY_MOVE_COST): Define.
12138 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12140 PR rtl-optimization/47925
12141 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12142 with side effects. Remove the more-specific check for volatile asms.
12144 2011-03-02 Alan Modra <amodra@gmail.com>
12147 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12148 toc relative addresses for valid offsets.
12150 2011-03-01 Richard Guenther <rguenther@suse.de>
12152 PR tree-optimization/47890
12153 * tree-vect-loop.c (get_initial_def_for_induction): Set
12154 related stmt properly.
12156 2011-03-01 Richard Guenther <rguenther@suse.de>
12159 * lto-streamer.c (lto_record_common_node): Also register
12160 the canonical type.
12162 2011-03-01 Richard Guenther <rguenther@suse.de>
12165 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12166 Do not stream DECL_ABSTRACT_ORIGIN.
12167 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12168 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12169 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12170 Do not stream DECL_ABSTRACT_ORIGIN.
12171 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12172 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12174 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12176 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12177 FUNCTION_VALUE_REGNO_P): Remove.
12178 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12179 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12180 Add 'outgoing' argument.
12181 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12183 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12184 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12186 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12189 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12190 (lookup_filename): Likewise.
12191 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12193 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12194 Jakub Jelinek <jakub@redhat.com>
12196 PR middle-end/47893
12197 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12198 (assign_stack_local_1): Change last argument type to int.
12199 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12200 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12201 don't record padding space into frame_space_list nor use those areas.
12202 (assign_stack_local): Adjust caller.
12203 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12204 of assign_stack_local, pass 0 as last argument.
12205 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12208 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12211 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12212 Use target address_mode and pointer_mode hooks instead of hardcoded
12213 Pmode and ptr_mode. Handle some simple cases of extending if
12214 POINTERS_EXTEND_UNSIGNED < 0.
12215 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12216 Call convert_debug_memory_address.
12217 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12218 convert_debug_memory_address.
12220 PR middle-end/46790
12221 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12222 * configure: Regenerated.
12223 * config.in: Regenerated.
12224 * varasm.c (default_function_section): Return NULL
12225 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12227 2011-02-28 Martin Jambor <mjambor@suse.cz>
12229 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12230 the description to match the printed values.
12232 2011-02-28 Richard Guenther <rguenther@suse.de>
12234 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12235 of the copied scope tree.
12237 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12239 * doc/extend.texi (Function Attributes): Avoid deeply (and
12240 wrongly) nested tables.
12242 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12244 PR middle-end/47903
12245 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12246 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12247 r isn't op0 nor op1.
12249 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12251 * config/avr/avr.md: Remove magic comment for emacs.
12253 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12256 * config/avr/avr.c (avr_option_override): Use error on bad options.
12257 (avr_help): New function.
12258 (TARGET_HELP): Define.
12260 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12263 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12264 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12266 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12268 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12269 (ARM Options): Ditto.
12270 (i386 and x86-64 Options): Ditto.
12271 (RX Options): Ditto.
12272 (SPARC Options): Ditto.
12274 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12276 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12277 FreeBSD 6 and later. Generally use cpu generic.
12279 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12281 * doc/cpp.texi: Update copyright years.
12283 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12286 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12288 2011-02-25 Jon Beniston <jon@beniston.com>
12291 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12292 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12293 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12294 (lm32_block_move_inline): Add type cast to remove warning.
12295 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12296 (gen_int_relational): Move declarations to start of function.
12298 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12300 PR tree-optimization/45470
12301 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12302 can throw internally only.
12303 * tree-vect-stmts.c (vectorizable_call): Likewise.
12305 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12307 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12308 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12309 * config/stormy16/stormy16-protos.h
12310 (xstormy16_preferred_reload_class): Remove.
12311 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12312 static. Change 'rclass' argument and return type to reg_class_t.
12313 (TARGET_PREFERRED_RELOAD_CLASS,
12314 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12316 2011-02-24 Richard Guenther <rguenther@suse.de>
12318 * lto-streamer-in.c (input_bb): Do not find referenced vars
12319 in debug statements.
12321 2011-02-23 Jason Merrill <jason@redhat.com>
12323 * common.opt (fabi-version): Document v5 and v6.
12325 2011-02-23 Richard Guenther <rguenther@suse.de>
12327 PR tree-optimization/47849
12328 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12330 2011-02-23 Jie Zhang <jie@codesourcery.com>
12332 * opts-common.c (decode_cmdline_option): Print empty string
12333 argument as "" in decoded->orig_option_with_args_text.
12334 * gcc.c (execute): Print empty string argument as ""
12335 in the verbose output.
12336 (do_spec_1): Keep empty string argument.
12338 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12340 * config.gcc: Declare score-* and crx-* obsolete.
12342 2011-02-23 Jie Zhang <jie@codesourcery.com>
12344 PR rtl-optimization/47763
12345 * web.c (web_main): Ignore naked clobber when replacing register.
12347 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12349 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12352 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12355 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12357 2011-02-22 Mike Stump <mikestump@comcast.net>
12359 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12361 * configure: Regenerate.
12363 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12365 PR rtl-optimization/46002
12366 * ira-color.c (update_copy_costs): Change class intersection
12367 test to reg_class_contents[] test of 'hard_regno'.
12369 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12371 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12372 than Driver option.
12373 * config/hpux11.opt (mt): Likewise.
12374 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12375 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12376 * config/vax/elf.opt (mno-asm-pic): Likewise.
12377 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12379 2011-02-21 Mike Stump <mikestump@comcast.net>
12382 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12383 tree so we can get save the type.
12384 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12385 for CFString instead of trying to use past the end of the builtins.
12386 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12387 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12388 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12389 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12390 Rename to darwin_builtin_cfstring.
12391 (darwin_init_cfstring_builtins): Return the built type.
12393 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12396 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12397 (_mm256_insert_epi64): Use _mm_insert_epi64.
12399 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12401 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12402 * config/stormy16/stormy16-protos.h
12403 (xstormy16_mode_dependent_address_p): Remove.
12404 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12405 Make static. Change return type to bool. Change argument type to
12406 const_rtx. Remove dead code.
12407 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12409 2011-02-21 Richard Guenther <rguenther@suse.de>
12412 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12413 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12414 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12416 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12417 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12419 2011-02-20 Richard Guenther <rguenther@suse.de>
12422 * tree.c (free_lang_data_in_decl): Clean builtins from
12423 the TU decl BLOCK_VARS.
12425 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12429 * haifa-sched.c (fix_tick_ready): Skip tick computation
12432 2011-02-19 Richard Guenther <rguenther@suse.de>
12435 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12436 Remove lazy BLOCK_VARS streaming.
12437 (lto_input_ts_block_tree_pointers): Likewise.
12438 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12440 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12442 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12444 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12446 * config/i386/biarch32.h, config/i386/mach.h,
12447 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12449 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12452 * config/i386/i386.md (peephole2 for shift and plus): Use
12453 operands[1] original mode in the first insn.
12455 2011-02-18 Mike Stump <mikestump@comcast.net>
12457 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12459 2011-02-18 Jan Hubicka <jh@suse.cz>
12461 PR middle-end/47788
12462 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12463 to zero when the function is not inlinable at all.
12465 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12467 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12468 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12469 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12470 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12471 * config/pa/t-pa64: Likewise.
12472 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12474 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12477 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12479 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12482 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12484 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12486 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12487 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12488 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12489 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12490 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12491 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12492 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12493 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12494 m32r_legitimate_address_p): New functions.
12495 * config/m32r/constraints.md (constraint "S"): Don't use
12496 STORE_PREINC_PREDEC_P.
12497 (constraint "U"): Don't use LOAD_POSTINC_P.
12499 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12501 PR rtl-optimization/46178
12502 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12503 compute ira_hard_regno_cover_class[].
12505 2011-02-18 Richard Guenther <rguenther@suse.de>
12508 * lto-streamer.h (lto_global_var_decls): Declare.
12509 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12510 statics for global var processing.
12512 2011-02-18 Richard Guenther <rguenther@suse.de>
12514 PR tree-optimization/47737
12515 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12516 edge dominance check.
12518 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12521 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12522 avoid invalid rtx sharing.
12524 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12526 * doc/cpp.texi (Obsolete Features): Add background on the
12527 origin of assertions.
12529 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12531 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12533 * config/darwin.c (output_objc_section_asm_op): Added support for
12535 (is_objc_metadata): New.
12536 (darwin_objc2_section): New.
12537 (darwin_objc1_section): New.
12538 (machopic_select_section): Added support for ABI v1 and v2.
12539 (darwin_emit_objc_zeroed): New.
12540 (darwin_output_aligned_bss): Detect objc metadata and treat it
12542 (darwin_asm_output_aligned_decl_common): Same.
12543 (darwin_asm_output_aligned_decl_local): Same.
12544 * config/darwin-sections.def: Updated for ABI v1 and v2.
12545 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12546 compiling Objective-C code for the NeXT runtime, default to using
12547 ABI version 0 for 32-bit, and version 2 for 64-bit.
12549 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12551 * common.opt (optimize_fast): New Variable.
12552 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12553 instead of local variable ofast.
12555 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12557 * doc/invoke.texi (fobjc-abi-version): Documented.
12558 (fobjc-nilcheck): Documented.
12559 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12562 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12565 * common.opt (export-dynamic): New Driver option.
12566 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12568 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12570 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12572 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12573 Jan Hubicka <jh@suse.cz>
12577 * cfgexpand.c (account_used_vars_for_block): Remove.
12578 (estimated_stack_frame_size): Use referenced vars.
12579 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12580 that were referenced in the original function. Test src_fn
12581 rather than cfun. Drop redundant get_var_ann.
12582 (setup_one_parameter): Drop redundant get_var_ann.
12583 (declare_return_variable): Likewise.
12584 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12585 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12586 * ipa-inline.c (compute_inline_parameters): Do not compute
12587 disregard_inline_limits here.
12588 (compute_inlinable_for_current, pass_inlinable): New.
12589 (pass_inline_parameters): Require PROP_referenced_vars.
12590 * cgraphunit.c (cgraph_process_new_functions): Don't run
12591 compute_inline_parameters explicitly unless function is in SSA form.
12592 (cgraph_analyze_function): Set .disregard_inline_limits.
12593 * tree-sra.c (convert_callers): Compute inliner parameters
12594 only for functions already in SSA form.
12596 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12598 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12599 -mlittle-endian-data.
12601 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12603 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12604 -mno-fpu, not -fpu and -no-fpu.
12605 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12606 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12608 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12611 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12612 input reload with PLUS RTX.
12614 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12616 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12617 of InverseVar(MDMX).
12619 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12621 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12624 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12626 * config/mn10300/mn10300.opt (mno-crt0): New.
12628 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12630 * config/m68k/uclinux.opt (static-libc): New Driver option.
12632 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12634 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12636 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12638 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12639 %{muser-extend-enabled}.
12641 2011-02-16 Richard Guenther <rguenther@suse.de>
12643 PR tree-optimization/47738
12644 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12645 the TODO from tree_predictive_commoning.
12647 2011-02-15 Jeff Law <law@redhat.com>
12650 2011-01-25 Jeff Law <law@redhat.com>
12652 PR rtl-optimization/37273
12653 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12654 handle them like argument loads from stack slots. Do not double
12655 count memory for memory constants and argument loads from stack slots.
12657 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12659 PR middle-end/47725
12660 * combine.c (cant_combine_insn_p): Revert the last change.
12662 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12665 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12666 mode for vector constants. Remove code that checks for TImode.
12668 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12672 * cgraph.h (compute_inline_parameters): Return void.
12673 * ipa-inline.c (compute_inline_parameters): Adjust.
12675 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12679 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12681 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12682 * ipa-inline.c (compute_inline_parameters): Adjust.
12684 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12688 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12689 Adjust all users. Pass FN to...
12690 * tree-flow-inline.h (first_referenced_var): ... this. Add
12692 * ipa-struct-reorg.c: Adjust.
12693 * tree-dfa.c: Adjust.
12694 * tree-into-ssa.c: Adjust.
12695 * tree-sra.c: Adjust.
12696 * tree-ssa-alias.c: Adjust.
12697 * tree-ssa-live.c: Adjust.
12698 * tree-ssa.c: Adjust.
12699 * tree-ssanames.c: Adjust.
12700 * tree-tailcall.c: Adjust.
12702 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12706 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12707 Adjust all callers.
12708 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12709 * tree-flow-inline.h: Adjust.
12710 * gimple-pretty-print.c: Adjust.
12711 * tree-into-ssa.c: Adjust.
12712 * tree-ssa.c: Adjust.
12713 * cfgexpand.c: Adjust.
12715 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12717 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12718 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12719 (EXTRA_CONSTRAINT): Delete.
12720 * config/iq2000/constraints.md: New file.
12721 * config/iq2000/iq2000.md: Include it.
12722 (define_insn ""): Delete.
12723 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12724 unsupported constraint letters from patterns.
12725 (call_value, call_value_internal1): Likewise.
12726 (call_value_multiple_internal1): Likewise.
12728 2011-02-15 Nick Clifton <nickc@redhat.com>
12730 * config/mn10300/mn10300.c: Include tm-constrs.h.
12731 (struct liw_data): New data structure describing an LIW candidate
12733 (extract_bundle): Use struct liw_data. Allow small integer
12734 operands for some instructions.
12735 (check_liw_constraints): Use struct liw_data. Remove swapped
12736 parameter. Add comments describing the checks. Fix bug when
12737 assigning the source of liw1 to the source of liw2.
12738 (liw_candidate): Delete. Code moved into extract_bundle.
12739 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12741 * config/mn10300/predicates.md (liw_operand): New predicate.
12742 Allows registers and small integer constants.
12743 * config/mn10300/constraints.md (O): New constraint. Accetps
12744 integers in the range -8 to +7 inclusive.
12745 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12746 for moving a small integer into a register. Give this alternative
12748 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12749 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12750 using the J,K,L and M constraints,
12751 (liw): Remove SI mode on second operands to allow for HI and QI
12753 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12756 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12758 PR middle-end/47725
12759 * combine.c (cant_combine_insn_p): Check zero/sign extended
12762 2011-02-15 Richard Guenther <rguenther@suse.de>
12764 PR tree-optimization/47743
12765 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12766 for a non-type-compatible VN lookup bail out.
12768 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12770 * config/fr30/constraints.md: New file.
12771 * config/fr30/fr30.md: Include it.
12772 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12773 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12774 (EXTRA_CONSTRAINT): Delete.
12776 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12778 * config/frv/constraints.md: New file.
12779 * config/frv/predicates.md: Include it.
12780 * config/frv/frv.c (reg_class_from_letter): Delete.
12781 (frv_option_override): Don't initialize it.
12782 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12783 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12784 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12785 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12786 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12787 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12788 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12789 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12790 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12791 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12792 (REG_CLASS_FROM_CONSTRAINT): Delete.
12794 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12796 PR middle-end/47581
12797 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12798 if frame size is 0 in a leaf function.
12800 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12803 * config/alpha/host-osf.c: New file.
12804 * config/alpha/x-osf: New file.
12805 * config.host (alpha*-dec-osf*): Use it.
12807 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12809 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12810 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12811 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12812 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12814 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12816 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12818 * config/stormy16/constraints.md: New file.
12819 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12820 Use satisfies_constraint_Q and satisfies_constraint_R.
12821 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12823 (xstormy16_legitiamte_address_p): Declare.
12824 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12825 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12826 (EXTRA_CONSTRAINT): Delete.
12827 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12829 (xstormy16_extra_constraint_p): Delete.
12831 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12833 PR tree-optimization/46494
12834 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12835 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12836 (pass_rtl_loop_done): Add TODO_verify_flow.
12837 * fwprop.c (pass_rtl_fwprop): Likewise.
12838 * modulo-sched.c (pass_sms): Likewise.
12839 * tree-ssa-dom.c (pass_dominator): Likewise.
12840 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12841 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12842 (pass_tree_loop_done): Likewise.
12843 * tree-ssa-pre.c (execute_pre): Likewise.
12844 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12845 * tree-ssa-sink.c (pass_sink_code): Likewise.
12846 * tree-vrp.c (pass_vrp): Likewise.
12848 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12850 * config/v850/constraints.md: New file.
12851 * config/v850/v850.md: Include it.
12852 * config/v850/predicates.md (reg_or_0_operand): Use
12853 satisfies_constraint_G.
12854 (special_symbolref_operand): Use satisfies_constraint_K.
12855 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12856 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12857 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12858 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12859 (EXTRA_CONSTRAINT): Delete.
12860 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12861 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12862 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12864 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12867 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12870 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12872 * config/mcore/constraints.md: New file.
12873 * config/mcore/mcore.md: Include it.
12874 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12875 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12876 (REG_CLASS_FROM_LETTER): Delete.
12877 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12878 insn_const_int_ok_for_constraint.
12879 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12880 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12881 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12882 (EXTRA_CONSTRAINT): Delete.
12884 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12887 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12888 (IS_SIGHANDLER): Define.
12889 (sparc64_is_sighandler): New function, split off from
12890 sparc64_fallback_frame_state.
12891 (sparc_is_sighandler): New function, split off from
12892 sparc_fallback_frame_state.
12893 (sparc64_fallback_frame_state): Merge with ...
12894 (sparc_fallback_frame_state): ... this into ...
12895 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12896 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12897 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12898 stack instead of hardcoded offsets.
12900 2011-02-14 Andriy Gapon <avg@freebsd.org>
12903 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12905 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12907 * configure: Regenerate.
12909 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12912 * gcc.c (asm_options): Correct spec matching --target-help.
12914 2011-02-12 Martin Jambor <mjambor@suse.cz>
12916 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12917 to gimple call error.
12919 2011-02-12 Mike Stump <mikestump@comcast.net>
12921 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12922 comments in backslash regions.
12924 2011-02-12 Mike Stump <mikestump@comcast.net>
12925 Jakub Jelinek <jakub@redhat.com>
12926 Iain Sandoe <iains@gcc.gnu.org>
12929 * dwarf2out.c (output_cfa_loc): When required, apply the
12930 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12931 (output_loc_sequence): Likewise.
12932 (output_loc_operands_raw): Likewise.
12933 (output_loc_sequence_raw): Likewise.
12934 (output_cfa_loc): Likewise.
12935 (output_loc_list): Suppress register number adjustment when
12936 calling output_loc_sequence()
12937 (output_die): Likewise.
12939 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12941 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12943 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12944 xtensa_memory_move_cost): New functions.
12945 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12947 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12950 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12951 in the current directory.
12952 * configure: Rebuilt.
12954 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12956 * config/darwin.c (darwin_override_options): Add a hunk missed
12957 from the commit of r168571. Trim comment line lengths and
12958 correct indents of the preceding block.
12960 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12962 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12965 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12967 * common.opt (nostartfiles): New Driver option.
12969 2011-02-11 Xinliang David Li <davidxl@google.com>
12971 PR tree-optimization/47707
12972 * tree-chrec.c (convert_affine_scev): Keep type precision.
12974 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12976 PR tree-optimization/47420
12977 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12979 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12981 PR rtl-optimization/47614
12982 * rtl.h (check_for_inc_dec): Declare.
12983 * dse.c (check_for_inc_dec): Externalize...
12984 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12985 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12987 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12990 * gcc.c (main): Do not compile inputs if there were errors in
12992 * opts-common.c (read_cmdline_option): Check for wrong language
12993 after other error checks.
12995 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12997 * cgraph.c: Fix comment typos.
12998 * cgraph.h: Likewise.
12999 * cgraphunit.c: Likewise.
13000 * ipa-cp.c: Likewise.
13001 * ipa-inline.c: Likewise.
13002 * ipa-prop.c: Likewise.
13003 * ipa-pure-const.c: Likewise.
13004 * ipa-ref.c: Likewise.
13005 * ipa-reference.c: Likewise.
13007 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13010 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13012 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13015 * doc/sourcebuild.texi (Require Support): Document
13016 dg-require-ascii-locale.
13018 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13020 * doc/lto.texi (Write summary): Fix missing parentheses.
13022 2011-02-10 DJ Delorie <dj@redhat.com>
13024 * config/m32c/m32c.c (m32c_option_override): Disable
13025 -fcombine-stack-adjustments until flag value tracking and compare
13026 optimization can be rewritten.
13028 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13030 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13032 (PROCESSOR_DEFAULT64): Likewise.
13034 2011-02-10 Richard Henderson <rth@redhat.com>
13036 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13037 change from 2011-02-03.
13038 * config/rx/rx.c (flags_from_code): Likewise.
13039 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13040 is valid, n/pz otherwise.
13041 (rx_select_cc_mode): Return CCmode if Y is not zero.
13043 2011-02-10 Richard Guenther <rguenther@suse.de>
13045 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13047 2011-02-10 Richard Guenther <rguenther@suse.de>
13049 PR tree-optimization/47677
13050 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13052 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13055 * combine.c (make_compound_operation): Only change shifts into
13056 multiplication for SCALAR_INT_MODE_P.
13058 2011-02-10 Jie Zhang <jie@codesourcery.com>
13062 2011-02-05 Jie Zhang <jie@codesourcery.com>
13064 * web.c (entry_register): Don't clobber the number of the
13065 first uninitialized reference in used[].
13067 2011-02-09 Richard Guenther <rguenther@suse.de>
13069 PR tree-optimization/47664
13070 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13073 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13077 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13079 (PROCESSOR_DEFAULT64): Same.
13080 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13082 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13084 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13086 2011-02-09 Martin Jambor <mjambor@suse.cz>
13088 PR middle-end/45505
13089 * tree-sra.c (struct access): New flags grp_scalar_read and
13090 grp_scalar_write. Changed description of assignment read and write
13092 (dump_access): Dump new flags, reorder all of them.
13093 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13094 to detect multiple scalar reads.
13095 (analyze_access_subtree): Use the new scalar read write flags instead
13096 of the old flags. Adjusted comments.
13098 2011-02-08 DJ Delorie <dj@redhat.com>
13101 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13104 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13106 * config/m68k/uclinux.opt: New.
13107 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13109 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13111 * config/cris/elf.opt (sim): New Driver option.
13113 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13115 * config/xtensa/elf.opt: New.
13116 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13118 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13120 * config/vax/elf.opt: New.
13121 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13123 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13125 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13127 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13129 * config/gnu-user.opt: New.
13130 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13131 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13132 *-*-uclinux*): Use gnu-user.opt.
13134 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13136 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13137 * config/i386/gnu.h (CPP_SPEC): Likewise.
13139 2011-02-08 Ian Lance Taylor <iant@google.com>
13141 * common.opt (fcx-limited-range): Add SetByCombined flag.
13142 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13143 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13144 (fassociative-math, freciprocal-math): Likewise.
13145 (funsafe-math-optimizations): Likewise.
13146 * opth-gen.awk: Handle SetByCombined.
13147 * optc-gen.awk: Likewise.
13148 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13149 (set_unsafe_math_optimizations_flags): Likewise.
13150 * doc/options.texi (Option properties): Document SetByCombined.
13152 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13154 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13155 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13156 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13157 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13158 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13160 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13162 PR tree-optimization/46834
13163 PR tree-optimization/46994
13164 PR tree-optimization/46995
13165 * graphite-sese-to-poly.c (used_outside_reduction): New.
13166 (detect_commutative_reduction): Call used_outside_reduction.
13167 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13168 translate_scalar_reduction_to_array only when at least one
13169 loop-phi/close-phi tuple has been detected.
13171 2011-02-08 Richard Guenther <rguenther@suse.de>
13173 PR middle-end/47639
13174 * tree-vect-generic.c (expand_vector_operations_1): Update
13176 (expand_vector_operations): ... not here. Cleanup EH info
13177 and the CFG if required.
13179 2011-02-08 Richard Guenther <rguenther@suse.de>
13181 PR tree-optimization/47641
13182 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13183 require type compatibility.
13185 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13187 * gimple-low.c (lower_function_body): Don't remove the location of
13188 the return statement here.
13189 (lower_gimple_return): Do it here instead but only if the return
13190 statement is actually used twice.
13192 2011-02-08 Richard Guenther <rguenther@suse.de>
13194 PR tree-optimization/47632
13195 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13196 unused up_to_stmt parameter, return whether cfg-cleanup is
13197 necessary, remove EH info properly.
13198 (forward_propagate_into_gimple_cond): Adjust caller.
13199 (forward_propagate_into_cond): Likewise.
13200 (forward_propagate_comparison): Likewise.
13201 (tree_ssa_forward_propagate_single_use_vars): Make
13202 forward_propagate_comparison case similar to the two others.
13204 2011-02-08 Nick Clifton <nickc@redhat.com>
13206 * config/mn10300/mn10300.opt (mliw): New command line option.
13207 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13208 (liw_bundling): New automaton.
13209 (liw): New attribute.
13210 (liw_op): New attribute.
13211 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13212 (movsi_internal): Add LIW attributes.
13213 (andsi3): Likewise.
13214 (iorsi3): Likewise.
13215 (xorsi3): Likewise.
13216 (addsi3): Separate register and immediate alternatives.
13217 Add LIW attributes.
13218 (subsi3): Likewise.
13220 (aslsi3): Likewise.
13221 (lshrsi3): Likewise.
13222 (ashrsi3): Likewise.
13223 (liw): New pattern.
13224 * config/mn10300/mn10300.c (liw_op_names): New
13225 (mn10300_print_operand): Handle 'W' operand descriptor.
13226 (extract_bundle): New function.
13227 (check_liw_constraints): New function.
13228 (liw_candidate): New function.
13229 (mn10300_bundle_liw): New function.
13230 (mn10300_reorg): New function.
13231 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13232 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13233 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13234 __LIW__ or __NO_LIW__.
13235 * doc/invoke.texi: Describe the -mliw command line option.
13237 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13239 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13240 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13241 pthread_mutex_unlock): Remove.
13242 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13243 * config/pa/t-pa64: Likewise.
13244 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13245 shared libc if not linking against libpthread.
13246 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13248 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13251 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13252 on 10.6 and later to ensure that we always use the unwinder from
13253 the system. Only add -no_compact_unwind when tarteting darwin
13256 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13259 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13260 (vec_interleave_lowv2sf): Ditto.
13261 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13262 (vec_extract_oddv2sf): Ditto.
13264 2011-02-07 Mike Stump <mikestump@comcast.net>
13267 Add __ieee_divdc3 entry point.
13268 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13270 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13271 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13272 * config/darwin.c (darwin_rename_builtins): Add.
13273 * config/darwin-protos.h (darwin_rename_builtins): Add.
13275 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13278 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13281 2011-02-07 Mike Stump <mikestump@comcast.net>
13283 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13285 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13288 * config/avr/libgcc.S (exit): Move .endfunc
13290 2011-02-07 Richard Guenther <rguenther@suse.de>
13292 PR tree-optimization/47615
13293 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13294 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13295 (run_scc_vn): Initialize it.
13296 (visit_reference_op_load): Use it.
13297 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13299 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13301 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13302 DImode trapping arithmetic libfuncs.
13304 2011-02-07 Richard Guenther <rguenther@suse.de>
13306 PR tree-optimization/47621
13307 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13309 (execute_update_addresses_taken): ... here. Make it more
13310 conservative in what we accept.
13312 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13314 * config/sparc/freebsd.h (ASM_SPEC): Define.
13315 * config/sparc/vxworks.h (ASM_SPEC): Define.
13317 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13319 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13321 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13323 * doc/invoke.texi: Remove reference to compiler internals from
13324 user documentation.
13326 * reg-notes.def: Remove REG_VALUE_PROFILE.
13327 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13329 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13331 PR middle-end/47610
13332 * varasm.c (default_section_type_flags): If decl is NULL,
13333 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13335 2011-02-05 Jie Zhang <jie@codesourcery.com>
13338 * web.c (entry_register): Don't clobber the number of the
13339 first uninitialized reference in used[].
13341 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13343 PR tree-optimization/46194
13344 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13345 (build_classic_dist_vector_1): Do not represent classic distance
13346 vectors when the access functions are variating in different loops.
13348 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13350 * config/mips/iris6.opt: New.
13351 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13353 2011-02-04 Richard Henderson <rth@redhat.com>
13354 Steve Ellcey <sje@cup.hp.com>
13357 * config/ia64/predicates.md (mux1_brcst_element): New.
13358 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13359 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13360 (ia64_unpack_sign): New.
13361 (ia64_expand_unpack): Rewrite using new routines.
13362 (ia64_expand_widen_sum): Ditto.
13363 (ia64_expand_dot_prod_v8qi): Ditto.
13364 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13365 routines, add endian check.
13366 (pmpy2_even): Rename from pmpy2_r, add endian check.
13367 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13368 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13369 (vec_widen_smult_hi_v4hi): Ditto.
13370 (vec_widen_umult_lo_v4hi): Ditto.
13371 (vec_widen_umult_hi_v4hi): Ditto.
13372 (mulv2si3): Change endian checks.
13373 (sdot_prodv4hi): Rewrite with new calls.
13374 (udot_prodv4hi): New.
13375 (vec_pack_ssat_v4hi): Add endian check.
13376 (vec_pack_usat_v4hi): Ditto.
13377 (vec_pack_ssat_v2si): Ditto.
13378 (max1_even): Rename from max1_r, add endian check.
13379 (max1_odd): Rename from max1_l, add endian check.
13380 (*mux1_rev): Format change.
13381 (*mux1_mix): Ditto.
13382 (*mux1_shuf): Ditto.
13383 (*mux1_alt): Ditto.
13384 (*mux1_brcst_v8qi): Use new predicate.
13385 (vec_extract_evenv8qi): Remove endian check.
13386 (vec_extract_oddv8qi): Ditto.
13387 (vec_interleave_lowv4hi): Format change.
13388 (vec_interleave_highv4hi): Ditto.
13389 (mix2_even): Rename from mix2_r, add endian check.
13390 (mix2_odd): Rename from mux2_l, add endian check.
13391 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13392 (vec_extract_evenodd_helper): Format change.
13393 (vec_extract_evenv4hi): Remove endian check.
13394 (vec_extract_oddv4hi): Remove endian check.
13395 (vec_interleave_lowv2si): Format change.
13396 (vec_interleave_highv2si): Format change.
13397 (vec_initv2si): Remove endian check.
13398 (vecinit_v2si): Add endian check.
13399 (reduc_splus_v2sf): Add endian check.
13400 (reduc_smax_v2sf): Ditto.
13401 (reduc_smin_v2sf): Ditto.
13402 (vec_initv2sf): Remove endian check.
13403 (fpack): Add endian check.
13404 (fswap): Add endian check.
13405 (vec_interleave_highv2sf): Add endian check.
13406 (vec_interleave_lowv2sf): Add endian check.
13407 (fmix_lr): Add endian check.
13408 (vec_setv2sf): Format change.
13409 (*vec_extractv2sf_0_be): Use shift to extract operand.
13410 (*vec_extractv2sf_1_be): New.
13411 (vec_pack_trunc_v4hi): Add endian check.
13412 (vec_pack_trunc_v2si): Format change.
13414 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13416 PR inline-asm/23200
13417 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13418 do bb, locus and block comparison and disallow loads if it is not set.
13419 (stmt_is_replaceable_p): New function.
13420 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13422 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13423 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13425 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13427 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13429 * config/rs6000/xilinx.opt: New.
13430 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13432 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13434 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13436 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13438 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13439 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13440 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13441 secondary_reload_info, xtensa_secondary_reload): Remove.
13442 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13443 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13444 (xtensa_preferred_reload_class): Make static. Change return and
13445 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13446 Use CONST_DOUBLE_P predicate.
13447 (xtensa_preferred_output_reload_class): New function.
13448 (xtensa_secondary_reload): Make static.
13450 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13452 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13453 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13454 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13456 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13458 PR middle-end/31490
13459 * output.h (SECTION_RELRO): Define.
13460 (SECTION_MACH_DEP): Adjust.
13461 (get_variable_section): New prototype.
13462 * varpool.c (varpool_finalize_named_section_flags): New function.
13463 (varpool_assemble_pending_decls): Call it.
13464 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13465 * cgraphunit.c (cgraph_output_in_order): Call
13466 varpool_finalize_named_section_flags.
13467 * varasm.c (get_section): Allow section flags conflicts between
13468 relro and read-only sections if the section hasn't been declared yet.
13469 Set SECTION_OVERRIDE after diagnosing section type conflict.
13470 (get_variable_section): No longer static.
13471 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13472 readonly sections that need relocations.
13473 (decl_readonly_section_1): New function.
13474 (decl_readonly_section): Use it.
13477 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13478 Steve Ellcey <sje@cup.hp.com>
13480 PR middle-end/31490
13481 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13482 if section attribute used.
13484 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13486 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13487 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13488 (darwin_init_sections): Remove assertion.
13490 2011-02-03 Nick Clifton <nickc@redhat.com>
13492 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13494 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13495 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13496 instead of "n" and "pz".
13497 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13500 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13503 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13504 fma, expand FMA_EXPR as fma{,f,l} call.
13507 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13508 copy them into a unsigned char variable and pass address of it to
13509 lto_output_data_stream.
13512 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13513 around backend_init_target and lang_dependent_init_target calls.
13514 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13515 (verify_cgraph_node): Don't call set_cfun here. Use
13516 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13517 Set error_found for incorrectly represented calls to thunks.
13519 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13522 PR rtl-optimization/43494
13523 * rtl.h (for_each_inc_dec_fn): New type.
13524 (for_each_inc_dec): Declare.
13525 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13526 (for_each_inc_dec_find_inc_dec): New fn.
13527 (for_each_inc_dec_find_mem): New fn.
13528 (for_each_inc_dec): New fn.
13529 * dse.c (struct insn_size): Remove.
13530 (replace_inc_dec, replace_inc_dec_mem): Remove.
13531 (emit_inc_dec_insn_before): New fn.
13532 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13533 (canon_address): Pass mem modes to cselib_lookup.
13534 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13535 (cselib_lookup_from_insn): Likewise.
13536 (cselib_subst_to_values): Likewise.
13537 * cselib.c (find_slot_memmode): New var.
13538 (cselib_find_slot): New fn. Use it instead of
13539 htab_find_slot_with_hash everywhere.
13540 (entry_and_rtx_equal_p): Use find_slot_memmode.
13541 (autoinc_split): New fn.
13542 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13543 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13544 Deal with autoinc. Special-case recursion into MEMs.
13545 (cselib_hash_rtx): Likewise.
13546 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13547 address and MEM modes.
13548 (cselib_subst_to_values): Add memmode, pass it on.
13550 (cselib_lookup): Add memmode argument, pass it on.
13551 (cselib_lookup_from_insn): Add memmode.
13552 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13553 (struct cselib_record_autoinc_data): New.
13554 (cselib_record_autoinc_cb): New fn.
13555 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13556 mode to cselib_lookup. Reset autoinced REGs here instead of...
13557 (cselib_process_insn): ... here.
13558 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13560 (add_uses): Likewise, also to cselib_subst_to_values.
13561 (add_stores): Likewise.
13562 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13563 cselib_subst_to_values.
13564 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13565 * gcse.c (do_local_cprop): Adjusted.
13566 * postreload.c (reload_cse_simplify_set): Adjusted.
13567 (reload_cse_simplify_operands): Adjusted.
13568 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13570 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13572 PR tree-optimization/45122
13573 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13574 unsafe assumptions when there's more than one loop exit.
13576 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13579 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13580 Document using vector double with the load/store builtins, and
13581 that the load/store builtins always use Altivec instructions.
13583 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13584 to use altivec memory instructions, even on VSX.
13585 (vector_altivec_store_<mode>): Ditto.
13587 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13590 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13591 V2DF, V2DI support to load/store overloaded builtins.
13593 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13594 altivec load/store builtins for V2DF/V2DI types.
13596 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13597 set avoid indexed addresses on power6 if -maltivec.
13598 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13599 vector_altivec_load/vector_altivec_store builtins.
13600 (altivec_expand_st_builtin): Ditto.
13601 (altivec_expand_builtin): Add VSX memory builtins.
13602 (rs6000_init_builtins): Add V2DI types to internal types.
13603 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13604 load/store builtins.
13605 (rs6000_address_for_altivec): Insure memory address is appropriate
13608 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13609 vec_vsx_ld and vec_vsx_st.
13610 (vsx_store_<mode>): Ditto.
13612 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13613 variables to hold long long types for VSX vector memory builtins.
13614 (RS6000_BTI_unsigned_long_long): Ditto.
13615 (long_long_integer_type_internal_node): Ditti.
13616 (long_long_unsigned_type_internal_node): Ditti.
13618 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13619 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13620 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13622 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13624 (vec_vsx_st): Ditto.
13626 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13628 * config/pa/pa-hpux10.opt: New.
13629 * config/hpux11.opt (pthread): New Driver option.
13630 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13631 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13633 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13635 * config/ia64/vms.opt: New.
13636 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13638 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13641 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13642 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13643 generator functions.
13644 (vsx_floatuns<VSi><mode>2): Ditto.
13645 (vsx_fix_trunc<mode><VSi>2): Ditto.
13646 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13648 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13650 * config/i386/djgpp.opt (posix): New Driver option.
13652 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13654 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13655 Move to the unsupported targets list.
13657 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13659 PR rtl-optimization/47525
13660 * df-scan.c: Update copyright years.
13661 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13662 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13664 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13666 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13667 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13668 (ASM_OUTPUT_ASCII): Remove.
13669 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13671 2011-02-02 Jeff Law <law@redhat.com>
13673 PR middle-end/47543
13674 * reload.c (find_reloads_address): Handle reg+d address where both
13675 components are invalid by reloading the entire address.
13677 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13678 Richard Guenther <rguenther@suse.de>
13680 PR tree-optimization/40979
13682 * passes.c (init_optimization_passes): After LIM call copy_prop
13683 and DCE to clean up.
13684 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13686 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13688 PR tree-optimization/47576
13689 PR tree-optimization/47555
13690 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13691 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13692 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13693 * tree-scalar-evolution.c (follow_ssa_edge): Use
13694 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13696 2011-02-02 Richard Guenther <rguenther@suse.de>
13698 PR tree-optimization/47566
13699 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13701 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13705 * tree-inline.c (declare_return_variable): Remove unused caller
13710 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13711 * cfgexpand.c (account_used_vars_for_block): Use them.
13712 * tree-nrv.c (tree_nrv): Likewise.
13713 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13714 (dump_scope_block): Likewise.
13715 (remove_unused_locals): Likewise.
13719 * tree-inline.c (declare_return_variable): Add result decl to
13720 local decls only once.
13721 * gimple-low.c (record_vars_into): Mark newly-created variables
13724 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13730 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13732 (no_real_insns_p, schedule_block, set_priorities): Drop special
13733 treatment of boundary debug insns.
13734 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13735 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13736 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13737 (BOUNDARY_DEBUG_INSN_P): Likewise.
13738 (SCHEDULE_DEBUG_INSN_P): Likewise.
13739 * sched-rgn.c (init_ready_list): Drop special treatment of
13740 boundary debug insns.
13741 * final.c (rest_of_clean_state): Clear notes' BB.
13743 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13745 * config/openbsd.opt (assert=): New Driver option.
13747 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13749 * config/i386/nto.opt: New.
13750 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13752 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13754 * config/i386/netware.opt: New.
13755 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13757 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13759 * config/interix.opt (posix): New Driver option.
13761 2011-02-01 DJ Delorie <dj@redhat.com>
13763 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13765 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13768 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13770 PR tree-optimization/47561
13771 * toplev.c (process_options): Print the Graphite flags. Add
13772 flag_loop_flatten to the list of options requiring Graphite.
13774 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13776 * config/i386/cygming.opt (posix): New Driver option.
13778 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13780 * config/arm/vxworks.opt: New.
13781 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13783 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13785 * config/alpha/elf.opt: New.
13786 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13787 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13789 2011-02-01 Richard Guenther <rguenther@suse.de>
13791 PR tree-optimization/47559
13792 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13793 store-motion on references that can throw.
13795 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13797 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13798 * tree-pass.h (TDF_CSELIB): New macro.
13799 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13800 cselib_lookup): Check for it rather than for TDF_DETAILS.
13802 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13805 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13806 is HOST_BIT_BUCKET.
13808 * opts.c (finish_options): Don't add x_aux_base_name if it is
13811 2011-02-01 Richard Guenther <rguenther@suse.de>
13813 PR tree-optimization/47555
13815 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13817 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13819 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13822 * config/lm32/t-lm32: Add multilib for all CPU options.
13824 2011-02-01 Richard Guenther <rguenther@suse.de>
13826 PR tree-optimization/47541
13827 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13828 sure to have a field at offset zero.
13830 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13832 * config/arc/arc.opt (EB, EL): New Driver options.
13834 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13836 * config/alpha/osf5.opt: New.
13837 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13839 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13841 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13843 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13845 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13846 -floop-interchange.
13847 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13848 is an alias of -floop-interchange and that it requires the
13849 Graphite infrastructure.
13850 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13851 flag_loop_interchange based on the value of flag_tree_loop_linear.
13853 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13854 Richard Guenther <rguenther@suse.de>
13856 PR tree-optimization/47538
13857 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13858 type instead of r1type, except for comparisons. For right
13859 shifts and comparisons punt if there are mismatches in
13860 sizetype vs. non-sizetype types.
13862 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13864 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13867 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13869 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13871 * configure: Regenerate.
13873 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13875 * configure.ac (gcc_cv_ld_static_option): Define.
13876 (gcc_cv_ld_dynamic_option): Define.
13877 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13879 (HAVE_LD_STATIC_DYNAMIC): Update message.
13880 (LD_STATIC_OPTION): Define.
13881 (LD_DYNAMIC_OPTION): Define.
13882 * configure: Regenerate.
13883 * config.in: Regenerate.
13884 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13885 HAVE_LD_STATIC_DYNAMIC]: Use them.
13887 2011-01-31 Nick Clifton <nickc@redhat.com>
13889 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13890 registers inside interrupt handlers if the handler is not a leaf
13893 2011-01-31 Nick Clifton <nickc@redhat.com>
13895 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13896 reg_renumber returning an INVALID_REGNUM.
13898 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13901 * doc/install.texi: Document host options discarded when cross
13902 configuring target libraries.
13904 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13907 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13910 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13912 (no_real_insns_p, schedule_block, set_priorities): Drop special
13913 treatment of boundary debug insns.
13914 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13915 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13916 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13917 (BOUNDARY_DEBUG_INSN_P): Likewise.
13918 (SCHEDULE_DEBUG_INSN_P): Likewise.
13919 * sched-rgn.c (init_ready_list): Drop special treatment of
13920 boundary debug insns.
13921 * final.c (rest_of_clean-state): Clear notes' BB.
13923 2011-01-31 Alan Modra <amodra@gmail.com>
13925 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13926 toc relative expressions as we do in print_operand_address.
13928 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13930 * doc/extend.texi: Follow spelling conventions.
13931 * doc/invoke.texi: Fix a typo.
13933 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13935 * config/hpux11.opt: New.
13936 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13937 ia64*-*-hpux*): Use hpux11.opt.
13939 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13941 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13944 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13946 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13949 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13951 * doc/install.texi (Binaries): Remove outdated reference for
13952 Motorola 68HC11/68HC12 downloads.
13954 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13956 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13959 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13962 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13965 2011-01-28 Ahmad Sharif <asharif@google.com>
13967 * value-prof.c (check_counter): Corrected error message.
13969 2011-01-29 Jie Zhang <jie@codesourcery.com>
13971 * config/arm/arm.c (arm_legitimize_reload_address): New.
13972 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13973 arm_legitimize_reload_address.
13974 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13976 2011-01-28 Ian Lance Taylor <iant@google.com>
13978 * godump.c (go_define): Ignore macros whose definitions include
13979 two adjacent operands.
13981 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13984 * varasm.c (force_const_mem): Store copy of x in desc->constant
13985 instead of x itself.
13986 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13987 itself into REG_EQUAL note.
13989 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13991 * config/freebsd.opt (posix, rdynamic): New Driver options.
13993 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13995 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13996 -Bstatic/-Bdynamic.
13997 * configure: Regenerate.
13999 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14001 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14002 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14004 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14006 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14007 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14008 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14009 (s390_preferred_reload_class): Make static. Change return and
14010 'rclass' argument type to reg_class_t.
14012 2011-01-27 Jan Hubicka <jh@suse.cz>
14014 PR middle-end/46949
14015 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14016 (process_function_and_variable_attributes): Check defined weakrefs.
14018 2011-01-27 Martin Jambor <mjambor@suse.cz>
14020 PR tree-optimization/47228
14021 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14022 build_ref_for_offset.
14024 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14026 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14028 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14030 PR rtl-optimization/46856
14031 * postreload.c (reload_combine_recognize_const_pattern): Do not
14032 separate cc0 setter and user on cc0 targets.
14034 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14037 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14038 passed a VOID_TYPE expression, immediately emit an error and
14039 return error_mark_node.
14041 2011-01-26 Jeff Law <law@redhat.com>
14043 PR rtl-optimization/47464
14044 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14045 rather than may_trap_p as needed.
14047 2011-01-26 DJ Delorie <dj@redhat.com>
14049 PR rtl-optimization/46878
14050 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14051 setter/user dependency as well.
14053 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14055 PR rtl-optimization/44469
14056 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14057 after removing trivially dead basic blocks.
14059 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14061 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14062 * config/frv/frv.h (LINK_SPEC): Likewise.
14063 * config/i386/netware.h (LINK_SPEC): Likewise.
14064 * config/m68k/linux.h (ASM_SPEC): Likewise.
14065 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14066 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14067 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14068 * config/sparc/linux.h (ASM_SPEC): Likewise.
14069 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14070 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14072 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14074 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14075 * config/frv/frv.h (ASM_SPEC): Likewise.
14076 * config/m68k/linux.h (ASM_SPEC): Likewise.
14077 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14078 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14079 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14080 * config/sparc/linux.h (ASM_SPEC): Likewise.
14081 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14082 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14084 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14086 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14087 * config/frv/frv.h (LINK_SPEC): Likewise.
14088 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14090 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14092 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14093 * config/frv/frv.h (ASM_SPEC): Likewise.
14094 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14095 * config/m68k/linux.h (ASM_SPEC): Likewise.
14096 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14097 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14098 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14099 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14100 * config/sparc/linux.h (ASM_SPEC): Likewise.
14101 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14102 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14103 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14105 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14108 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14110 (vec_extract_evenodd_help): Ditto.
14111 (vec_extract_evenv4hi): Ditto.
14112 (vec_extract_oddv4hi): Ditto.
14113 (vec_interleave_lowv2si): Ditto.
14114 (vec_interleave_highv2si): Ditto.
14115 (vec_extract_evenv2si): Ditto.
14116 (vec_extract_oddv2si: Ditto.
14117 (vec_pack_trunc_v2si): Ditto.
14119 2011-01-22 Jan Hubicka <jh@suse.cz>
14122 * cgraph.h (cgraph_local_info): New field can_change_signature.
14123 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14124 signature can change.
14125 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14127 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14128 (cgraph_function_versioning): We can not change signature of functions
14129 that don't allow that.
14130 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14131 (lto_input_node): Likewise.
14132 * ipa-inline.c (compute_inline_parameters): Compute
14133 local.can_change_signature.
14134 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14135 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14136 functions that can not change signature.
14137 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14138 init_cumulative_args): Do not use local calling conventions
14139 for functions that can not change signature.
14141 2011-01-22 Jan Hubicka <jh@suse.cz>
14143 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14145 2011-01-26 Richard Guenther <rguenther@suse.de>
14147 PR tree-optimization/47190
14148 * cgraphunit.c (process_common_attributes): New function.
14149 (process_function_and_variable_attributes): Use it.
14151 2011-01-26 Richard Guenther <rguenther@suse.de>
14154 * cgraphbuild.c (record_eh_tables): Record reference to personality
14157 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14160 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14161 non-debug insns from moving up.
14163 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14166 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14167 t-dlldir{,-x} fragment for build and add it to tmake_file.
14168 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14169 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14170 * config/i386/t-dlldir: New file.
14171 (SHLIB_DLLDIR): Define.
14172 * config/i386/t-dlldir-x: New file.
14173 (SHLIB_DLLDIR): Define.
14174 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14175 (SHLIB_INSTALL): Use it.
14177 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14180 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14181 lower bound of the allowed Thumb-2 coprocessor load/store
14182 index range to -256. Add explaining comment.
14184 2011-01-25 Ian Lance Taylor <iant@google.com>
14186 * godump.c (go_define): Improve lexing of macro expansion to only
14187 accept expressions which match Go spec.
14189 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14192 * tree.c (handle_dll_attribute): Handle it.
14193 * doc/extend.texi (@item dllexport): Mention it.
14194 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14196 2011-01-25 Ian Lance Taylor <iant@google.com>
14198 PR tree-optimization/26854
14199 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14200 (decl_jump_unsafe): Move higher in file, with no other change.
14201 (bind): Set has_jump_unsafe_decl if appropriate.
14202 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14203 (check_earlier_gotos): Likewise.
14204 (c_check_switch_jump_warnings): Likewise.
14206 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14208 * doc/invoke.texi (Warning Options): Add missing hyphen.
14209 (-fprofile-dir): Minor grammatical fixes.
14210 (-fbranch-probabilities): Likewise.
14212 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14216 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14218 (no_real_insns_p, schedule_block, set_priorities): Drop special
14219 treatment of boundary debug insns.
14220 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14221 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14222 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14223 (BOUNDARY_DEBUG_INSN_P): Likewise.
14224 (SCHEDULE_DEBUG_INSN_P): Likewise.
14225 * sched-rgn.c (init_ready_list): Drop special treatment of
14226 boundary debug insns.
14227 * final.c (rest_of_clean-state): Clear notes' BB.
14229 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14231 * Makefile.in (LAMBDA_H): Removed.
14232 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14233 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14234 lambda-trans.o, and tree-loop-linear.o.
14235 (lto-symtab.o): Remove dependence on LAMBDA_H.
14236 (tree-loop-linear.o): Remove rule.
14237 (lambda-mat.o): Same.
14238 (lambda-trans.o): Same.
14239 (lambda-code.o): Same.
14240 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14241 (tree-vect-slp.o): Same.
14242 * hwint.h (gcd): Moved here.
14243 (least_common_multiple): Same.
14244 * lambda-code.c: Removed.
14245 * lambda-mat.c: Removed.
14246 * lambda-trans.c: Removed.
14247 * lambda.h: Removed.
14248 * tree-loop-linear.c: Removed.
14249 * lto-symtab.c: Do not include lambda.h.
14250 * omega.c (gcd): Removed.
14251 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14252 * tree-data-ref.c (print_lambda_vector): Moved here.
14253 (lambda_vector_copy): Same.
14254 (lambda_matrix_copy): Same.
14255 (lambda_matrix_id): Same.
14256 (lambda_vector_first_nz): Same.
14257 (lambda_matrix_row_add): Same.
14258 (lambda_matrix_row_exchange): Same.
14259 (lambda_vector_mult_const): Same.
14260 (lambda_vector_negate): Same.
14261 (lambda_matrix_row_negate): Same.
14262 (lambda_vector_equal): Same.
14263 (lambda_matrix_right_hermite): Same.
14264 * tree-data-ref.h: Do not include lambda.h.
14265 (lambda_vector): Moved here.
14266 (lambda_matrix): Same.
14267 (dependence_level): Same.
14268 (lambda_transform_legal_p): Removed declaration.
14269 (lambda_collect_parameters): Same.
14270 (lambda_compute_access_matrices): Same.
14271 (lambda_vector_gcd): Same.
14272 (lambda_vector_new): Same.
14273 (lambda_vector_clear): Same.
14274 (lambda_vector_lexico_pos): Same.
14275 (lambda_vector_zerop): Same.
14276 (lambda_matrix_new): Same.
14277 * tree-flow.h (least_common_multiple): Removed declaration.
14278 * tree-parloops.c (lambda_trans_matrix): Moved here.
14279 (LTM_MATRIX): Same.
14280 (LTM_ROWSIZE): Same.
14281 (LTM_COLSIZE): Same.
14282 (LTM_DENOMINATOR): Same.
14283 (lambda_trans_matrix_new): Same.
14284 (lambda_matrix_vector_mult): Same.
14285 (lambda_transform_legal_p): Same.
14286 * tree-pass.h (pass_linear_transform): Removed declaration.
14287 * tree-ssa-loop.c (tree_linear_transform): Removed.
14288 (gate_tree_linear_transform): Removed.
14289 (pass_linear_transform): Removed.
14290 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14291 flag_loop_interchange.
14293 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14295 PR tree-optimization/47265
14296 PR tree-optimization/47443
14297 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14298 if name still has some uses.
14300 2011-01-25 Martin Jambor <mjambor@suse.cz>
14302 PR tree-optimization/47382
14303 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14304 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14306 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14308 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14309 sjlj_except_unwind_info.
14311 2011-01-25 Richard Guenther <rguenther@suse.de>
14313 PR tree-optimization/47426
14314 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14315 visible functions results escape.
14317 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14320 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14321 (arm_get_frame_offsets): Use it.
14323 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14324 Jakub Jelinek <jakub@redhat.com>
14326 PR tree-optimization/47271
14327 * tree-if-conv.c (bb_postdominates_preds): New.
14328 (if_convertible_bb_p): Call bb_postdominates_preds.
14329 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14330 (predicate_scalar_phi): Call bb_postdominates_preds.
14332 2011-01-25 Nick Clifton <nickc@redhat.com>
14334 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14335 * config/rx/rx.c (rx_function_value): Likewise.
14336 (rx_promote_function_mode): Likewise.
14337 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14338 in order to make it legitimate.
14339 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14340 make sure that the first operand is the same as the result register.
14341 (addsi3_unspec): Delete.
14342 (subdi3): Do not accept immediate operands.
14343 (subdi3_internal): Likewise.
14345 2011-01-25 Jeff Law <law@redhat.com>
14347 PR rtl-optimization/37273
14348 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14349 handle them like argument loads from stack slots. Do not double
14350 count memory for memory constants and argument loads from stack slots.
14352 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14354 PR tree-optimization/47427
14355 PR tree-optimization/47428
14356 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14357 coalesce if the new root var would be TREE_READONLY.
14359 2011-01-25 Richard Guenther <rguenther@suse.de>
14361 PR middle-end/47414
14362 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14363 correct type for TBAA.
14365 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14367 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14368 (close_phi_written_to_memory): Call for_each_index with
14369 dr_indices_valid_in_loop.
14371 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14373 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14374 when it is initialized.
14376 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14378 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14379 call to graphite_find_data_references_in_stmt.
14380 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14381 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14382 call to graphite_find_data_references_in_stmt.
14383 (analyze_drs_in_stmts): Same.
14384 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14385 in which the scalar analysis of indices is performed.
14386 (create_data_ref): Same. Update call to dr_analyze_indices.
14387 (find_data_references_in_stmt): Update call to create_data_ref.
14388 (graphite_find_data_references_in_stmt): Same.
14389 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14391 (create_data_ref): Same.
14392 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14393 call to create_data_ref.
14395 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14397 * graphite-sese-to-poly.c (build_poly_scop): Move
14398 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14400 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14402 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14403 VAR_DECL, PARM_DECL, and RESULT_DECL.
14405 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14407 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14408 in a reduction PBB.
14409 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14410 that have already been marked as PBB_IS_REDUCTION.
14412 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14414 * graphite-scop-detection.c (same_close_phi_node): New.
14415 (remove_duplicate_close_phi): New.
14416 (make_close_phi_nodes_unique): New.
14417 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14419 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14421 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14422 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14423 of both data references to be the same.
14425 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14427 * graphite-dependences.c (build_lexicographical_constraint): Remove
14428 the gdim parameter.
14429 (build_lexicographical_constraint): Adjust call to
14430 ppl_powerset_is_empty.
14431 (dependence_polyhedron): Same.
14432 (graphite_legal_transform_dr): Same.
14433 (graphite_carried_dependence_level_k): Same.
14434 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14436 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14438 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14440 * graphite-sese-to-poly.c
14441 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14442 (close_phi_written_to_memory): New.
14443 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14446 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14448 * doc/install.texi: Update the expected version number of PPL to 0.11.
14449 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14450 #if PPL_VERSION_MINOR < 11.
14452 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14454 * graphite-dependences.c: Include graphite-cloog-util.h.
14455 (new_poly_ddr): Inlined into dependence_polyhedron.
14456 (free_poly_ddr): Moved close by new_poly_ddr.
14457 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14458 Early return NULL when ppl_powerset_is_empty returns true.
14459 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14460 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14461 (graphite_legal_transform_dr): Call new_poly_ddr.
14462 (graphite_carried_dependence_level_k): Same.
14463 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14464 (dot_transformed_deps_stmt_1): Removed.
14465 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14466 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14467 (dot_deps_1): Call dot_deps_2.
14468 * Makefile.in (graphite-dependences.o): Add missing dependence on
14469 graphite-cloog-util.h.
14471 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14473 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14474 (build_lexicographical_constraint): Same.
14475 (dependence_polyhedron_1): Same.
14476 (graphite_legal_transform_dr): Same.
14477 (graphite_carried_dependence_level_k): Same.
14478 * graphite-ppl.c (ppl_powerset_is_empty): New.
14479 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14480 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14482 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14484 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14485 the "a followed by b" relation and document it.
14487 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14489 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14490 iteration when the bag of constraints is empty.
14492 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14494 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14496 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14498 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14499 nest and two loop depths as parameters.
14500 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14501 lst_perfect_nestify.
14503 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14505 * graphite-dependences.c (print_pddr): Call
14506 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14508 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14510 * graphite-ppl.c (debug_gmp_value): New.
14511 * graphite-ppl.h (debug_gmp_value): Declared.
14513 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14515 * doc/install.texi: Document availability of cloog-0.16.
14517 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14519 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14520 invalid postdominance info.
14522 2011-01-24 Jan Hubicka <jh@suse.cz>
14525 * doc/extend.texi (weak pragma): Drop claim that it must
14526 appear before definition.
14527 * varasm.c (merge_weak, declare_weak): Only sanity check
14528 that DECL is not output at a time it is declared weak.
14530 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14532 * machmode.def: Fixed comments.
14534 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14536 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14538 2011-01-24 Paul Koning <ni1d@arrl.net>
14540 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14543 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14546 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14547 (block_info): Add scanned and prev.
14548 (move_or_delete_vzeroupper_2): Return if the basic block
14549 has been scanned and the upper 128bit state is unchanged
14550 from the last scan.
14551 (move_or_delete_vzeroupper_1): Return true if the exit
14553 (move_or_delete_vzeroupper): Visit basic blocks using the
14554 work-list based algorithm based on vt_find_locations in
14557 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14559 2011-01-24 Nick Clifton <nickc@redhat.com>
14561 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14562 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14563 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14564 then define __v850e1__.
14565 * doc/invoke.texi: Document -mv850es.
14567 2011-01-24 Richard Henderson <rth@redhat.com>
14569 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14570 compound unordered comparisons.
14571 * config/rx/rx.c (rx_split_fp_compare): Remove.
14572 * config/rx/rx-protos.h: Update.
14573 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14574 (cbranchsf4): Don't call rx_split_fp_compare.
14575 (*cbranchsf4): Use rx_split_cbranch.
14576 (*cmpsf): Don't accept "i" constraint.
14577 (*conditional_branch): Only valid after reload.
14578 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14580 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14583 * config/rs6000/altivec.md (vector constant splitters): Add
14584 support for creating vector single precision constants if -mvsx is
14585 used and we would create the constant using Altivec primitives.
14587 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14588 Richard Sandiford <rdsandiford@googlemail.com>
14590 PR rtl-optimization/47166
14591 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14592 mechanism for PRE_MODIFY and POST_MODIFY.
14593 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14596 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14598 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14600 2011-01-22 Jan Hubicka <jh@suse.cz>
14603 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14605 2011-01-22 Jan Hubicka <jh@suse.cz>
14607 PR tree-optimization/43884
14609 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14610 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14612 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14614 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14615 * config/s390/s390.c (s390_register_move_cost,
14616 s390_memory_move_cost): New.
14617 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14619 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14621 PR middle-end/47401
14622 * except.c (sjlj_assign_call_site_values): Move setting the
14623 crtl->uses_eh_lsda flag to ...
14624 (sjlj_mark_call_sites): ... here.
14625 (sjlj_emit_function_enter): Support NULL dispatch label.
14626 (sjlj_build_landing_pads): In a function with no landing pads
14627 that still has must-not-throw regions, generate code to register
14628 a personality function with empty LSDA.
14630 2011-01-21 Richard Henderson <rth@redhat.com>
14632 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14634 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14636 * compare-elim.c: New file.
14637 * Makefile.in (OBJS-common): Add it.
14638 (compare-elim.o): New.
14639 * common.opt (fcompare-elim): New.
14640 * opts.c (default_options_table): Add OPT_fcompare_elim.
14641 * tree-pass.h (pass_compare_elim_after_reload): New.
14642 * passes.c (init_optimization_passes): Add it.
14643 * recog.h: Protect against re-inclusion.
14644 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14645 * doc/invoke.texi (-fcompare-elim): Document it.
14646 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14647 * doc/tm.texi: Rebuild.
14649 2011-01-22 Nick Clifton <nickc@redhat.com>
14651 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14652 rx_split_fp_compare.
14654 2011-01-22 Nick Clifton <nickc@redhat.com>
14656 * config/rx/rx.md (UNSPEC_CONST): New.
14657 (deallocate_and_return): Wrap the amount popped off the stack in
14658 an UNSPEC_CONST in order to stop it being rejected by
14659 -mmax-constant-size.
14660 (pop_and_return): Add a "(return)" rtx.
14661 (call): Drop the immediate operand.
14662 (call_internal): Likewise.
14663 (call_value): Likewise.
14664 (call_value_internal): Likewise.
14665 (sibcall_internal): Likewise.
14666 (sibcall_value_internal): Likewise.
14667 (sibcall): Likewise. Generate an explicit call using
14669 (sibcall_value): Likewise.
14670 (mov<>): FAIL if a constant operand is not legitimate.
14671 (addsi3_unpsec): New pattern.
14673 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14674 (ok_for_max_constant): New function.
14675 (gen_safe_add): New function.
14676 (rx_expand_prologue): Use gen_safe_add.
14677 (rx_expand_epilogue): Likewise.
14678 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14681 2011-01-21 Jeff Law <law@redhat.com>
14683 PR tree-optimization/47053
14684 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14685 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14686 statements are deleted.
14687 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14688 is nonempty, then purge dead edges and cleanup the CFG.
14690 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14693 Temporarily revert:
14694 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14696 * tree-dfa.c (create_var_ann): Mark variable as used.
14698 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14700 PR middle-end/45566
14701 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14702 notes from other section in hot/cold partitioning even if
14703 last_action is -3. Increment call_site_base.
14705 PR rtl-optimization/47366
14706 * fwprop.c (forward_propagate_into): Return bool. If
14707 any changes are made, -fnon-call-exceptions is used and
14708 REG_EH_REGION note is present, call purge_dead_edges
14709 and return true if it purged anything.
14710 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14711 any EH edges were purged.
14713 2011-01-21 Jeff Law <law@redhat.com>
14715 PR rtl-optimization/41619
14716 * caller-save.c (setup_save_areas): Break out code to determine
14717 which hard regs are live across calls by examining the reload chains
14718 so that it is always used.
14719 Eliminate code which checked REG_N_CALLS_CROSSED.
14721 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14723 PR tree-optimization/47355
14724 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14725 NOP has non-debug uses beyond PHIs in new_bb.
14727 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14730 * cfgexpand.c (account_used_vars_for_block): Only account vars
14731 that are annotated as used.
14732 (estimated_stack_frame_size): Don't set TREE_USED.
14733 * tree-dfa.c (create_var_ann): Mark variable as used.
14735 2011-01-21 Richard Guenther <rguenther@suse.de>
14737 PR middle-end/47395
14738 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14740 2011-01-21 Richard Guenther <rguenther@suse.de>
14742 PR tree-optimization/47365
14743 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14744 (vn_reference_lookup_pieces): Adjust.
14745 (vn_reference_lookup): Likewise.
14746 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14747 (vn_reference_lookup_3): Only look through kills if in
14748 VN_WALKREWRITE mode.
14749 (vn_reference_lookup_pieces): Adjust.
14750 (vn_reference_lookup): Likewise.
14751 (visit_reference_op_load): Likewise.
14752 (visit_reference_op_store): Likewise.
14753 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14754 (compute_avail): Likewise.
14755 (eliminate): Likewise.
14757 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14759 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14760 DECL_IGNORED_P non-reg vars if they are used.
14762 PR tree-optimization/47391
14763 * varpool.c (const_value_known_p): Return false if
14766 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14769 * config/i386/i386.c (ix86_local_alignment): Handle
14770 case for va_list_type_node is nil.
14771 (ix86_canonical_va_list_type): Likewise.
14773 2011-01-21 Alan Modra <amodra@gmail.com>
14775 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14776 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14778 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14780 * config/arm/arm.md (define_attr type): Rename f_load
14781 and f_store to f_fpa_load and f_fpa_store. Update.
14782 (write_conflict): Deal with rename fallout.
14783 (*push_fp_multi): Likewise.
14784 * config/arm/fpa.md (f_load): Use f_fpa_load.
14785 (f_store): Use f_fpa_store.
14786 (*movsf_fpa): Likewise.
14787 (*movdf_fpa): Likewise.
14788 (*movxf_fpa): Likewise.
14789 (*thumb2_movsf_fpa): Likewise.
14790 (*thumb2_movdf_fpa): Likewise.
14791 (*thumb2_movxf_fpa): Likewise.
14792 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14793 f_loadd and f_stored.
14794 (*thumb2_movdi_vfp): Likewise.
14795 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14796 (*thumb2_movsi_vfp): Likewise.
14797 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14798 Use f_loads instead of f_load.
14799 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14801 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14803 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14804 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14805 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14806 (xtensa_mode_dependent_address_p): New function.
14807 (constantpool_address_p): Make static. Change return type to bool.
14808 Change argument type to const_rtx. Use CONST_INT_P predicate.
14810 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14813 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14815 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14818 * cfgexpand.c (expand_debug_expr): Instead of generating
14819 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14822 2011-01-20 Richard Guenther <rguenther@suse.de>
14824 PR middle-end/47370
14825 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14826 the pointer operand of MEM_REFs.
14828 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14830 PR tree-optimization/46130
14831 * ipa-split.c (consider_split): If return_bb contains non-virtual
14832 PHIs other than for retval or if split_function would not adjust it,
14835 2011-01-20 Richard Guenther <rguenther@suse.de>
14837 PR tree-optimization/47167
14838 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14839 Revert previous change, only avoid enumeral type changes.
14841 2011-01-19 Mike Stump <mikestump@comcast.net>
14843 * doc/tm.texi.in (BRANCH_COST): Englishify.
14844 * doc/tm.texi (BRANCH_COST): Likewise.
14846 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14849 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14850 (gen_scheduled_generic_parms_dies): New functions.
14851 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14852 generation for the end of CU compilation.
14853 (dwarf2out_finish): Generate template parameters DIEs here.
14855 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14858 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14859 debug bind stmt on merge edges.
14861 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14865 * function.c (instantiate_expr): Instantiate incoming rtl of
14866 implicit arguments, and recurse on VALUE_EXPRs.
14867 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14868 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14870 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14872 * c-parser.c (c_parser_for_statement): Initialize
14873 collection_expression.
14875 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14877 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14879 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14881 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14882 (LINK_SHLIB_SPEC): Don't use %(link_path).
14883 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14885 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14887 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14888 (NO_SHARED_LIB_SUPPORT): Remove.
14889 (LINK_SHLIB_SPEC): Remove one conditional definition.
14891 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14893 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14895 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14896 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14897 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14898 %{call_shared} and conditionals on these options not being passed.
14899 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14902 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14904 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14907 * ipa-split.c: Spelling fixes.
14909 2011-01-19 Richard Henderson <rth@redhat.com>
14911 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14912 (*mulsi3): Likewise.
14914 * longlong.h [__mn10300__] (count_leading_zeros): New.
14915 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14916 [__mn10300__] (add_ssaaaa, subddmmss): New.
14917 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14918 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14920 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14922 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14924 2011-01-19 Richard Henderson <rth@redhat.com>
14926 * config/mn10300/mn10300.md (addsi3_flags): New.
14927 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14928 (subsi3_flags, subc_internal, subdi3): New.
14929 (subdi3_internal, *subdi3_degenerate): New.
14930 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14932 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14933 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14934 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14935 * config/mn10300/mn10300-protos.h: Update.
14936 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14937 (return_ret): Likewise. Rename from return_internal_regs.
14938 (return_internal): Remove.
14940 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14941 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14942 (mn10300_legitimate_constant_p): Likewise.
14943 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14944 (mn10300_frame_size): New.
14945 (mn10300_expand_prologue): Use it.
14946 (mn10300_expand_epilogue): Likewise.
14947 (mn10300_initial_offset): Likewise.
14948 * config/mn10300/mn10300-protos.h: Update.
14949 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14950 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14951 (prologue, epilogue, return_internal): Tidy output code.
14952 (mn10300_store_multiple_operation, return): Likewise.
14953 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14954 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14955 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14956 (load_pic, am33_load_pic): New.
14957 (mn10300_load_pic0, mn10300_load_pic1): New.
14959 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14960 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14961 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14962 (cc_flags_for_mode, cc_flags_for_code): New.
14963 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14964 overflow flag is not valid. Validate that the flags we need
14965 for the comparison are valid.
14966 (mn10300_output_cmp): Remove.
14967 (mn10300_output_add): New.
14968 (mn10300_select_cc_mode): Use cc_flags_for_code.
14969 (mn10300_split_cbranch): New.
14970 (mn10300_match_ccmode): New.
14971 (mn10300_split_and_operand_count): New.
14972 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14974 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14975 (addsi3): ... here. Use mn10300_output_add.
14976 (*addsi3_flags): New.
14977 (*am33_subsi3, *mn10300_subsi3): Merge...
14978 (subsi3): ... here. Use attribute isa.
14979 (*subsi3_flags): New.
14980 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14982 (*am33_andsi3, *mn10300_andsi3): Merge...
14983 (andsi3): ... here.
14984 (*andsi3_flags): New.
14985 (andsi3 splitters): New.
14986 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14987 (iorsi3): ... here.
14988 (*iorsi3_flags): New.
14989 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14990 (xorsi3): ... here.
14991 (*xorsi3_flags): New.
14992 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14993 (one_cmplsi2): ... here.
14994 (*one_cmplsi2_flags): New.
14995 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14996 instead of "dax" in constraints. Use mn10300_split_cbranch.
14997 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14998 use matching constraints to eliminate a self-comparison.
14999 (*integer_conditional_branch): Rename from integer_conditional_branch.
15000 Use int_mode_flags to match CC_REG.
15001 (*cbranchsi4_btst, *btstsi): New.
15002 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15003 mn10300_split_cbranch.
15004 (*am33_cmpsf): Rename from am33_cmpsf.
15005 (*float_conditional_branch): Rename from float_conditional_branch.
15006 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15007 (zero_extendqisi2): ... here.
15008 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15009 (zero_extendhisi2): ... here.
15010 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15011 (extendqisi2): ... here.
15012 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15013 (extendhisi2): ... here.
15014 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15015 (ashlsi3): ... here.
15016 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15017 (lshrsi3): ... here.
15018 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15019 (ashrsi3): ... here.
15020 (consecutive add peephole): Remove.
15021 * config/mn10300/predicates.md (label_ref_operand): New.
15022 (int_mode_flags): New.
15023 (CCZN_comparison_operator): New.
15025 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15026 (throughput_42_latency_43): New reservation.
15027 (mulsidi3, umulsidi3): New expanders.
15028 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15029 the MDR register to allocation; separately allocate the low and
15030 high parts of the DImode result.
15031 (umulsidi3_internal): Similarly.
15032 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15033 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15034 (udivsi3, umodsi3): Remove.
15035 (udivmodsi4, divmodsi4): New expanders.
15036 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15037 (*divmodsi4): Simiarly.
15038 (ext_internal): New.
15040 * config/mn10300/constraints.md ("z"): New constraint.
15041 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15042 (FIXED_REGISTERS): Don't fix MDR.
15043 (CALL_USED_REGSITERS): Reformat nicely.
15044 (REG_ALLOC_ORDER): Add MDR.
15045 (enum regclass): Add MDR_REGS.
15046 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15047 (IRA_COVER_CLASSES): Add MDR_REGS.
15048 (REGNO_REG_CLASS): Handle MDR_REG.
15049 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15050 (mn10300_register_move_cost): Likewise.
15051 * config/mn10300/mn10300.md (MDR_REG): New.
15052 (*movsi_internal): Handle moves to/from MDR_REGS.
15054 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15056 (mn10300_secondary_reload): Tidy combination reload classes.
15057 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15058 addresses for AM33. Allow symbolic offsets for reg+imm.
15059 (mn10300_regno_in_class_p): New.
15060 (mn10300_legitimize_reload_address): New.
15061 * config/mn10300/mn10300.h (enum reg_class): Remove
15062 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15063 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15064 SP_OR_GENERAL_REGS.
15065 (REG_CLASS_NAMES): Update to match.
15066 (REG_CLASS_CONTENTS): Likewise.
15067 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15068 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15069 (REGNO_IN_RANGE_P): Remove.
15070 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15071 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15072 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15073 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15074 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15075 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15076 (REGNO_GENERAL_P): New.
15077 (HAVE_POST_MODIFY_DISP): New.
15078 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15079 (LEGITIMIZE_RELOAD_ADDRESS): New.
15080 * config/mn10300/mn10300-protos.h: Update.
15082 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15083 DATA_REGS for AM33 stack-pointer destination.
15084 (mn10300_preferred_output_reload_class): Likewise.
15085 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15086 into a form appropriate for ...
15087 (TARGET_SECONDARY_RELOAD): New.
15088 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15089 * config/mn10300/mn10300-protos.h: Update.
15090 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15091 reload_insi; use the "A" constraint for the scratch; handle AM33
15092 moves of sp to non-address registers.
15094 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15095 (*movqi_internal): ... here.
15096 (*am33_movhi, *mn10300_movhi): Merge into...
15097 (*movhi_internal): ... here.
15098 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15099 as the source/destination of moves from/to SP.
15100 (movsf): Only allow for AM33-2.
15101 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15102 any integer constant constraint. Only allow for AM33-2. Tidy
15103 all of the alternative outputs.
15104 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15105 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15107 (udivsi3, umodsi3): New patterns for MN103 only.
15109 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15111 * doc/tm.texi.in: Spell out that a lack of register class unions
15113 * doc/tm.texi: Regenerate.
15115 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15117 PR rtl-optimization/47337
15118 * dce.c (check_argument_store): New function.
15119 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15121 PR tree-optimization/47290
15122 * tree-eh.c (infinite_empty_loop_p): New function.
15123 (cleanup_empty_eh): Use it.
15125 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15128 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15129 (a64_expand_widen_sum): Ditto.
15130 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15131 (vec_extract_evenodd_help): Ditto.
15132 (vec_extract_evenv4hi): Ditto.
15133 (vec_extract_oddv4hi): Ditto.
15134 (vec_extract_evenv2si): Ditto.
15135 (vec_extract_oddv2si): Ditto.
15136 (vec_extract_evenv2sf): Ditto.
15137 (vec_extract_oddv2sf): Ditto.
15138 (vec_pack_trunc_v4hi: Ditto.
15139 (vec_pack_trunc_v2si): Ditto.
15140 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15141 (vec_interleave_highv8qi): Ditto.
15143 (vec_extract_oddv8qi): Ditto.
15144 (vec_interleave_lowv4hi): Ditto.
15145 (vec_interleave_highv4hi): Ditto.
15146 (vec_interleave_lowv2si): Ditto.
15147 (vec_interleave_highv2si): Ditto.
15149 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15151 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15152 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15153 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15154 (pa_c_mode_for_suffix): New.
15155 (TARGET_EXPAND_BUILTIN): Define.
15156 (TARGET_C_MODE_FOR_SUFFIX): Define.
15157 (pa_builtins): Define.
15158 (pa_init_builtins): Register __float128 type and init new support
15160 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15161 * config/pa/quadlib.c (_U_Qfcopysign): New.
15163 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15165 PR middle-end/46894
15166 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15167 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15170 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15172 PR tree-optimization/47179
15173 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15174 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15176 2011-01-18 Richard Guenther <rguenther@suse.de>
15178 PR rtl-optimization/47216
15179 * emit-rtl.c: Include tree-flow.h.
15180 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15181 of replicating it with different semantics.
15182 * Makefile.in (emit-rtl.o): Adjust.
15184 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15186 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15187 (cortex_a9_dp): Handle neon types correctly.
15189 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15191 PR rtl-optimization/47299
15192 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15193 subtarget. Use normal multiplication if both operands are constants.
15194 * expmed.c (expand_widening_mult): Don't try to optimize constant
15195 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15198 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15200 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15201 spacing after 'e.g.', typos, comma, hyphenation.
15203 2011-01-17 Richard Henderson <rth@redhat.com>
15205 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15206 (rx_restricted_mem_operand): New.
15207 (rx_shift_operand): Use register_operand.
15208 (rx_source_operand, rx_compare_operand): Likewise.
15209 * config/rx/rx.md (addsi3_flags): New expander.
15210 (adddi3): Rewrite as expander.
15211 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15212 (subsi3_flags): New expander.
15213 (subdi3): Rewrite as expander.
15214 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15216 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15217 (rx_init_builtins): Remove sat builtin.
15218 (rx_expand_builtin): Likewise.
15219 * config/rx/rx.md (ssaddsi3): New.
15220 (*sat): Rename from sat. Represent the CC_REG input.
15222 * config/rx/predicates.md (rshift_operator): New.
15223 * config/rx/rx.c (rx_expand_insv): Remove.
15224 * config/rx/rx-protos.h: Update.
15225 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15226 operand to the canonical position.
15227 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15228 (*bitclr, *bitclr_in_memory): Similarly.
15229 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15230 (insv): Retain the zero_extract in the expansion.
15232 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15233 (bswaphi2, bitinvert, revw): Likewise.
15235 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15236 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15237 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15238 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15239 (bitset, bitset_in_memory): Likewise.
15240 (bitinvert, bitinvert_in_memory): Likewise.
15241 (bitclr, bitclr_in_memory): Likewise.
15242 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15243 (rx_strend, rx_cmpstrn): Likewise.
15244 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15245 (bitop peep2 patterns): Remove.
15247 * config/rx/rx.c (rx_match_ccmode): New.
15248 * config/rx/rx-protos.h: Update.
15249 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15250 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15251 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15252 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15253 (fix_truncsfsi2, floatsisf2): Likewise.
15254 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15255 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15256 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15257 (*subsi3_flags, *xorsi3_flags): New.
15259 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15261 * config/rx/rx.c (rx_print_operand): Remove workaround for
15262 unsplit comparison operations.
15264 * config/rx/rx.md (movsicc): Split after reload.
15265 (*movsicc): Merge *movsieq and *movsine via match_operator.
15266 (*stcc): New pattern.
15268 * config/rx/rx.c (rx_float_compare_mode): Remove.
15269 * config/rx/rx.h (rx_float_compare_mode): Remove.
15270 * config/rx/rx.md (cstoresi4): Split after reload.
15271 (*sccc): New pattern.
15273 * config/rx/predicates.md (label_ref_operand): New.
15274 (rx_z_comparison_operator): New.
15275 (rx_zs_comparison_operator): New.
15276 (rx_fp_comparison_operator): New.
15277 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15278 Validate that the flags are set properly for the comparison.
15279 (rx_gen_cond_branch_template): Remove.
15280 (rx_cc_modes_compatible): Remove.
15281 (mode_from_flags): New.
15282 (flags_from_code): Rename from flags_needed_for_conditional.
15283 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15284 (rx_select_cc_mode): Likewise.
15285 (rx_split_fp_compare): New.
15286 (rx_split_cbranch): New.
15287 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15288 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15289 (*cbranchsf4): Similarly.
15290 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15291 match_operator and rx_split_cbranch.
15292 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15293 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15294 (*cmpsi): Rename from cmpsi.
15295 (*tstsi): Rename from tstsi.
15296 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15297 (*conditional_branch): Rename from conditional_branch.
15298 (*reveresed_conditional_branch): Remove.
15299 (b<code>): Remove expander.
15300 * config/rx/rx-protos.h: Update.
15302 * config/rx/rx.c (rx_compare_redundant): Remove.
15303 * config/rx/rx.md (cmpsi): Don't use it.
15304 * config/rx/rx-protos.h: Update.
15306 * config/rx/rx-modes.def (CC_F): New mode.
15307 * config/rx/rx.c (rx_select_cc_mode): New.
15308 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15309 * config/rx/rx-protos.h: Update.
15311 2011-01-17 Richard Henderson <rth@redhat.com>
15313 * except.c (dump_eh_tree): Fix stray ; after for statement.
15315 2011-01-17 Richard Guenther <rguenther@suse.de>
15317 PR tree-optimization/47313
15318 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15319 handling before copying the body. Properly deal with
15320 by-reference result in SSA form.
15322 2011-01-17 Ian Lance Taylor <iant@google.com>
15325 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15326 (struct_value_alias_set): Don't define.
15327 (sparc_option_override): Don't set sparc_sr_alias_set and
15328 struct_value_alias_set.
15329 (save_or_restore_regs): Use gen_frame_mem rather than calling
15331 (sparc_struct_value_rtx): Likewise.
15333 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15336 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15337 (_mm_maskstore_pd): Likewise.
15338 (_mm_maskload_ps): Likewise.
15339 (_mm_maskstore_ps): Likewise.
15340 (_mm256_maskload_pd): Change mask to __m256i.
15341 (_mm256_maskstore_pd): Likewise.
15342 (_mm256_maskload_ps): Likewise.
15343 (_mm256_maskstore_ps): Likewise.
15345 * config/i386/i386-builtin-types.def: Updated.
15346 (ix86_expand_special_args_builtin): Likewise.
15348 * config/i386/i386.c (bdesc_special_args): Update
15349 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15350 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15351 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15352 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15354 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15355 Use <avxpermvecmode> on mask register.
15356 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15358 2011-01-17 Olivier Hainque <hainque@adacore.com>
15359 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15360 Eric Botcazou <ebotcazou@adacore.com>
15363 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15364 if <= USHRT_MAX in 32-bit mode.
15366 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15368 * doc/install.texi (Configuration, Specific): Wrap long
15369 lines in examples. Allow line wrapping in long options
15370 and URLs where beneficial for PDF output.
15372 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15374 * config/mips/mips.c (mips_classify_symbol): Don't return
15375 SYMBOL_PC_RELATIVE for nonlocal labels.
15377 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15379 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15381 2011-01-15 Jan Hubicka <jh@suse.cz>
15383 PR tree-optimization/47276
15384 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15385 declarations as needed.
15387 2011-01-15 Martin Jambor <mjambor@suse.cz>
15389 * common.opt (fdevirtualize): New flag.
15390 * doc/invoke.texi (Option Summary): Document it.
15391 * opts.c (default_options_table): Add devirtualize flag.
15392 * ipa-prop.c (detect_type_change): Return immediately if
15393 devirtualize flag is not set.
15394 (detect_type_change_ssa): Likewise.
15395 (compute_known_type_jump_func): Likewise.
15396 (ipa_analyze_virtual_call_uses): Likewise.
15398 2011-01-14 Martin Jambor <mjambor@suse.cz>
15400 PR tree-optimization/45934
15401 PR tree-optimization/46302
15402 * ipa-prop.c (type_change_info): New type.
15403 (stmt_may_be_vtbl_ptr_store): New function.
15404 (check_stmt_for_type_change): Likewise.
15405 (detect_type_change): Likewise.
15406 (detect_type_change_ssa): Likewise.
15407 (compute_complex_assign_jump_func): Check for dynamic type change.
15408 (compute_complex_ancestor_jump_func): Likewise.
15409 (compute_known_type_jump_func): Likewise.
15410 (compute_scalar_jump_functions): Likewise.
15411 (ipa_analyze_virtual_call_uses): Likewise.
15412 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15414 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15416 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15417 * config/i386/i386.opt (msse5): New Alias.
15419 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15421 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15422 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15423 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15424 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15426 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15428 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15430 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15431 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15432 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15433 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15435 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15437 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15439 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15441 2011-01-14 Mike Stump <mikestump@comcast.net>
15443 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15444 * config/fr30/fr30.md: Likweise
15445 (movsi_push): Likewise.
15446 (movsi_pop): Likewise.
15447 (enter_func): Likewise.
15448 * config/moxie/moxie.md (movsi_push): Likewise.
15449 (movsi_pop): Likewise.
15451 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15453 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15454 %{no_archive} %{exact_version}.
15455 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15456 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15457 %{no_archive} %{exact_version}.
15458 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15459 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15460 * config/mips/vxworks.h: Likewise.
15462 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15464 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15466 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15468 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15469 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15471 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15473 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15476 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15478 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15480 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15481 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15483 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15484 Don't handle -shlib.
15486 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15488 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15489 (CC1_SPEC): Don't handle -profile.
15491 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15493 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15494 * config/mips/mips.h (CC1_SPEC): Likewise.
15496 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15498 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15499 * config/mips/mips.h (CC1_SPEC): Likewise.
15501 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15503 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15504 * config/m32r/linux.h (LINK_SPEC): Likewise.
15505 * config/mips/linux.h (LINK_SPEC): Likewise.
15506 * config/mips/linux64.h (LINK_SPEC): Likewise.
15507 * config/sparc/linux.h (LINK_SPEC): Likewise.
15508 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15509 LINK_SPEC): Likewise.
15510 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15512 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15514 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15516 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15518 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15520 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15521 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15523 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15525 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15527 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15529 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15530 supports -Bstatic/-Bdynamic.
15531 * configure: Regenerate.
15533 2011-01-14 Jan Hubicka <jh@suse.cz>
15534 Jack Howarth <howarth@bromo.med.uc.edu>
15537 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15538 when checking debug_info_level. Test write_symbols instead of
15539 debug_hooks->var_location when setting flag_var_tracking_uninit.
15541 2011-01-14 Richard Guenther <rguenther@suse.de>
15543 PR tree-optimization/47179
15544 * target.def (ref_may_alias_errno): New target hook.
15545 * targhooks.h (default_ref_may_alias_errno): Declare.
15546 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15547 (default_ref_may_alias_errno): New function.
15548 * target.h (struct ao_ref_s): Declare.
15549 * tree-ssa-alias.c: Include target.h.
15550 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15551 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15552 (targhooks.o): Likewise.
15553 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15554 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15556 2011-01-14 Richard Guenther <rguenther@suse.de>
15558 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15560 2011-01-14 Richard Guenther <rguenther@suse.de>
15562 PR tree-optimization/47280
15563 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15564 return CFG changes.
15565 (tree_ssa_forward_propagate_single_use_vars): Deal with
15566 CFG changes from associate_plusminus.
15568 2011-01-14 Richard Guenther <rguenther@suse.de>
15570 PR middle-end/47281
15572 2011-01-11 Richard Guenther <rguenther@suse.de>
15574 PR tree-optimization/46076
15575 * tree-ssa.c (useless_type_conversion_p): Conversions from
15576 unprototyped to empty argument list function types are useless.
15578 2011-01-14 Richard Guenther <rguenther@suse.de>
15580 PR tree-optimization/47286
15581 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15583 2011-01-14 Martin Jambor <mjambor@suse.cz>
15585 PR middle-end/46823
15586 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15588 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15590 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15591 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15592 * config/xtensa/xtensa.c (xtensa_libcall_value,
15593 xtensa_function_value_regno_p): New functions.
15594 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15596 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15599 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15601 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15602 New function prototype.
15603 * config/i386/winnt.c (i386_pe_assemble_visibility):
15604 Warn only if attribute was specified by user.
15606 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15609 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15611 (floatunsdidf2_fcfidu): Ditto.
15613 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15615 * config/s390/s390.c (print_operand_address): Replace 'error' with
15616 'output_operand_lossage'.
15617 (print_operand): Likewise.
15619 2011-01-13 Jeff Law <law@redhat.com>
15621 PR rtl-optimization/39077
15622 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15623 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15624 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15625 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15626 * gcse.c (prune_insertions_deletions): New function.
15627 (compute_pre_data): Use it.
15629 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15632 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15634 (prune_unused_types_mark): Use it.
15636 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15638 PR rtl-optimization/45352
15639 * sel-sched.c: Update copyright years.
15640 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15641 in the advancing loop when we have issued issue_rate insns.
15643 2011-01-12 Richard Henderson <rth@redhat.com>
15645 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15646 (TARGET_MD_ASM_CLOBBERS): New.
15648 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15649 (TARGET_DELEGITIMIZE_ADDRESS): New.
15651 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15652 (clzsi2, *bsch): New patterns.
15654 * config/mn10300/mn10300.md (INT): New mode iterator.
15655 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15657 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15658 flag_split_wide_types.
15660 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15661 (mn10300_trampoline_init): Rewrite without a template, an immediate
15662 load and a direct branch.
15663 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15665 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15667 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15668 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15669 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15670 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15672 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15675 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15678 2011-01-12 Jan Hubicka <jh@suse.cz>
15681 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15682 (PLUGIN_COND_CLOSE): New macro.
15683 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15685 2011-01-12 Richard Guenther <rguenther@suse.de>
15688 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15689 register variables in a MEM_REF.
15691 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15693 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15694 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15695 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15696 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15697 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15698 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15699 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15700 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15701 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15702 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15703 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15704 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15705 * config/gnu-user.h: New. Copied from linux.h.
15706 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15707 GNU_USER_TARGET_STARTFILE_SPEC.
15708 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15709 GNU_USER_TARGET_ENDFILE_SPEC.
15710 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15711 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15712 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15713 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15714 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15715 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15716 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15717 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15718 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15719 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15720 * config/arm/linux-eabi.h (CC1_SPEC): Use
15721 GNU_USER_TARGET_CC1_SPEC.
15722 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15723 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15724 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15725 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15726 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15727 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15728 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15729 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15731 2011-01-12 Richard Guenther <rguenther@suse.de>
15734 * doc/invoke.texi (ffast-math): Document it is turned on
15737 2011-01-12 Jan Hubicka <jh@suse.cz>
15739 PR tree-optimization/47233
15740 * opts.c (common_handle_option): Disable ipa-reference with profile
15743 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15745 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15748 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15750 * c-parser.c (c_lex_one_token): Updated and reindented some
15751 comments. No changes in code.
15753 2011-01-11 Ian Lance Taylor <iant@google.com>
15755 * godump.c (go_output_var): Don't output the variable if there is
15756 already a type with the same name.
15758 2011-01-11 Ian Lance Taylor <iant@google.com>
15760 * godump.c (go_format_type): Don't generate float80.
15762 2011-01-11 Richard Henderson <rth@redhat.com>
15764 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15765 declaration. Rewrite for both speed and size.
15766 (mn10300_address_cost_1): Remove.
15767 (mn10300_register_move_cost): New.
15768 (mn10300_memory_move_cost): New.
15769 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15770 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15771 extensions, shifts, BSWAP, CLZ.
15772 (mn10300_wide_const_load_uses_clr): Remove.
15773 (TARGET_REGISTER_MOVE_COST): New.
15774 (TARGET_MEMORY_MOVE_COST): New.
15775 * config/mn10300/mn10300-protos.h: Update.
15776 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15778 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15779 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15780 * config/mn10300/mn10300-protos.h: Update.
15781 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15782 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15783 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15784 (*test_int_bitfield, *test_byte_bitfield): Remove.
15785 (*bit_test, *subreg_bit_test): Remove.
15786 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15788 * config/mn10300/constraints.md ("c"): Rename from "A".
15789 ("A", "D"): New constraint letters.
15790 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15791 (fmssf4, fnmasf4, fnmssf4): Likewise.
15793 * config/mn10300/mn10300.md (isa): New attribute.
15794 (enabled): New attribute.
15796 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15797 (abssf2, negsf2): Define only for hardware fp.
15798 (sqrtsf2): Reformat.
15799 (addsf3, subsf3, mulsf3): Merge expander and insn.
15801 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15802 (DEBUGGER_AUTO_OFFSET): Remove.
15803 (DEBUGGER_ARG_OFFSET): Remove.
15805 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15806 Emit register stores with the same offsets as the hardware.
15807 (mn10300_store_multiple_operation): Don't check that the register
15808 save offsets are monotonic.
15809 * config/mn10300/mn10300-protos.h: Update.
15811 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15813 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15814 in terms of the value on the stack, not the MDR register.
15816 2011-01-11 Jan Hubicka <jh@suse.cz>
15820 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15821 (symbol_alias_set_destroy, symbol_alias_set_contains,
15822 propagate_aliases_backward): Declare.
15823 * lto-streamer-out.c (struct sets): New sturcture.
15824 (trivally_defined_alias): New function.
15825 (output_alias_pair_p): Rewrite.
15826 (output_unreferenced_globals): Fix output of alias pairs.
15827 (produce_symtab): Likewise.
15828 * ipa.c (function_and_variable_visibility): Set weak alias destination
15830 * varasm.c (symbol_alias_set_t): Remove.
15831 (symbol_alias_set_destroy): Export.
15832 (propagate_aliases_forward, propagate_aliases_backward): New functions
15834 (compute_visible_aliases): ... this one; remove.
15835 (trivially_visible_alias): New
15836 (trivially_defined_alias): New.
15837 (remove_unreachable_alias_pairs): Rewrite.
15838 (finish_aliases_1): Reorganize code checking if alias is defined.
15839 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15842 2011-01-11 Richard Guenther <rguenther@suse.de>
15844 PR tree-optimization/46076
15845 * tree-ssa.c (useless_type_conversion_p): Conversions from
15846 unprototyped to empty argument list function types are useless.
15848 2011-01-11 Richard Guenther <rguenther@suse.de>
15850 PR middle-end/45235
15851 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15852 volatile MEMs as MEM_READONLY_P.
15854 2011-01-11 Richard Guenther <rguenther@suse.de>
15856 PR tree-optimization/47239
15857 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15859 2011-01-11 Jeff Law <law@redhat.com>
15861 PR tree-optimization/47086
15862 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15863 IVs from statements that might throw.
15865 2011-01-10 Jan Hubicka <jh@suse.cz>
15868 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15870 2011-01-10 Jan Hubicka <jh@suse.cz>
15873 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15874 when correcting profile.
15876 2011-01-10 Jan Hubicka <jh@suse.cz>
15879 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15880 DECL_FINI_PRIORITY.
15881 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15882 Restore DECL_FINI_PRIORITY.
15884 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15886 * doc/gimple.texi: Fix quoting of multi-word return values in
15887 @deftypefn statements. Ensure presence of return value. Wrap
15888 overlong @deftypefn lines.
15889 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15890 descriptions of removed functions.
15891 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15892 of multi-word return value in @deftypefn statement.
15894 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15896 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15897 (Conditional Expressions, Logical Operators)
15898 (Statement and operand traversals): Do not indent smallexample
15899 code. Fix duplicate function argument in example.
15901 2011-01-10 Jeff Law <law@redhat.com>
15903 PR tree-optimization/47141
15904 * ipa-split.c (split_function): Handle case where we are
15905 returning a value and the return block has a virtual operand phi.
15907 2011-01-10 Jan Hubicka <jh@suse.cz>
15909 PR tree-optimization/47234
15910 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15911 (pass_feedback_split_functions): Declare.
15912 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15914 * ipa-split.c (gate_split_functions): Update comments; disable
15915 split-functions for profile_arc_flag and branch_probabilities.
15916 (gate_feedback_split_functions): New function.
15917 (execute_feedback_split_functions): New function.
15918 (pass_feedback_split_functions): New global var.
15920 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15923 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15924 calling gimple_call_set_cannot_inline.
15926 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15928 * config/darwin-sections.def: Remove unused section.
15930 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15933 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15935 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15938 * c-parser.c (c_parser_declaration_or_fndef): Improved
15941 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15943 * config/i386/winnt.c (i386_pe_start_function): Make sure
15944 to switch back to function's section.
15946 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15950 * plugin.c: Move include of dlfcn.h from here...
15951 * system.h: ... to here.
15953 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15955 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15957 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15958 two extra empty pages in PDF output.
15960 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15963 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15964 for error recovery purposes behave as if it was not specified so
15965 that the default type is usd.
15967 2011-01-07 Jan Hubicka <jh@suse.cz>
15969 PR tree-optmization/46469
15970 * ipa.c (function_and_variable_visibility): Clear needed flags on
15971 nodes with external decls; handle weakrefs merging correctly.
15973 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15975 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15978 2011-01-07 Jan Hubicka <jh@suse.cz>
15980 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15981 and no longer claim that gold is required for linker plugin.
15982 * configure: Regenerate.
15983 * gcc.c (PLUGIN_COND): New macro.
15984 (LINK_COMMAND_SPEC): Use it.
15985 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15986 * config.in (HAVE_LTO_PLUGIN): New.
15987 * configure.ac (--with-lto-plugin): New parameter; autodetect
15990 2011-01-07 Jan Hubicka <jh@suse.cz>
15992 PR tree-optimization/46367
15993 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15994 when we can update original.
15995 (cgraph_mark_inline_edge): Sanity check.
15996 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15998 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16000 * config/spu/spu.h (ASM_COMMENT_START): Define.
16002 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16005 * gcc.c (%>S): New.
16006 (SWITCH_KEEP_FOR_GCC): Likewise.
16007 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16008 (do_spec_1): Handle "%>".
16010 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16012 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16015 * config/i386/i386.c (ix86_delegitimize_address): If
16016 simplify_gen_subreg fails, return orig_x.
16019 * value-prof.c (gimple_stringop_fixed_value): Handle
16020 lhs of the call properly.
16022 2011-01-07 Jan Hubicka <jh@suse.cz>
16025 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16027 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16029 * target.def (function_switched_text_sections): New hook.
16030 * doc/tm.texi: Regenerated.
16031 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16032 * final.c (default_function_switched_text_sections): New.
16033 (final_scan_insn): Call function_switched_text_sections when a
16034 mid-function section change occurs.
16035 * output.h (default_function_switched_text_sections): Declare.
16036 * config/darwin-protos.h (darwin_function_switched_text_sections):
16038 * config/darwin.c (darwin_function_switched_text_sections): New.
16039 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16041 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16043 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16044 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16045 the secondary code fragment when outputting for DWARF == 2.
16047 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16049 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16050 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16052 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16053 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16055 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16058 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16059 when it is not empty.
16061 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16064 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16065 (case ${target}): Add btver1.
16066 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16067 -march=native recognize btver1 processors.
16068 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16069 btver1 def_and_undef
16070 * config/i386/i386.c (struct processor_costs btver1_cost): New
16072 (m_BTVER1): New definition.
16073 (m_AMD_MULTIPLE): Includes m_BTVER1.
16074 (initial_ix86_tune_features): Add btver1 tune.
16075 (processor_target_table): Add btver1 entry.
16076 (static const char *const cpu_names): Add btver1 entry.
16077 (software_prefetching_beneficial_p): Add btver1.
16078 (ix86_option_override_internal): Add btver1 instruction sets.
16079 (ix86_issue_rate): Add btver1.
16080 (ix86_adjust_cost): Add btver1.
16081 * config/i386/i386.h (TARGET_BTVER1): New definition.
16082 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16083 (enum processor_type): Add PROCESSOR_BTVER1.
16084 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16086 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16089 * config/i386/i386.c (legitimize_tls_address)
16090 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16091 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16092 (tls_initial_exec_64_sun): New pattern.
16094 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16096 * doc/invoke.texi (Overall Options): Improve wording and markup
16097 of the description of -wrapper.
16099 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16101 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16102 rdynamic, threads): New Driver options.
16104 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16107 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16108 if coming from .tdata.
16109 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16111 2011-01-06 Jan Hubicka <jh@suse.cz>
16114 * collect2.c (main): Do not enable LTOmode when plugin is active.
16116 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16119 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16120 --version output if supported.
16121 * configure: Regenerate.
16123 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16125 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16128 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16131 * c-convert.c (convert): When converting a complex expression
16132 other than COMPLEX_EXPR to a different complex type, ensure
16133 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16134 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16135 when converting COMPLEX_TYPE.
16137 2011-01-06 Ira Rosen <irar@il.ibm.com>
16139 PR tree-optimization/47139
16140 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16141 only the last reduction value is used outside the loop. Update
16144 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16146 * config/rtems.opt: New.
16147 * config.gcc (*-*-rtems*): Use rtems.opt.
16149 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16151 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16152 processors do not support 3DNow instructions.
16154 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16156 * config/spu/spu.c (spu_option_override): Set parameter
16157 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16159 2011-01-05 Jan Hubicka <jh@suse.cz>
16161 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16162 at the command line.
16164 2011-01-05 Martin Jambor <mjambor@suse.cz>
16167 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16168 deltas on streamed outgoing edges.
16169 (output_node_opt_summary): Output info for outgoing edges only when
16170 the node is in new parameter set.
16171 (output_cgraph_opt_summary): New parameter set, passed to the two
16172 aforementioned functions. Update its forward declaration and its
16175 2011-01-05 Tom Tromey <tromey@redhat.com>
16177 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16178 operator to c_finish_omp_atomic.
16179 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16180 (build_unary_op): Update.
16181 (build_modify_expr): Update.
16182 (build_asm_expr): Update.
16184 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16186 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16187 newly inserted insns.
16188 (pad_bb): Likewise.
16189 (spu_emit_branch_hint): Likewise.
16190 (insert_hbrp_for_ilb_runout): Likewise.
16191 (spu_machine_dependent_reorg): Call df_finish_pass after
16192 schedule_insns returns.
16194 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16196 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16198 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16200 PR tree-optimization/47005
16201 * tree-sra.c (struct access): Add 'non_addressable' bit.
16202 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16203 (decide_one_param_reduction): Return 0 if the parameter is passed by
16204 reference and one of the accesses in the group is non_addressable.
16206 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16208 PR tree-optimization/47056
16209 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16210 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16211 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16213 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16215 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16216 initializer. Skip view conversions from aggregate types.
16218 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16221 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16223 2011-01-04 Philipp Thomas <pth@suse.de>
16225 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16228 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16230 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16231 on empty epilogue sequences.
16233 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16235 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16236 non-static): New Driver options.
16238 2011-01-04 Jie Zhang <jie@codesourcery.com>
16241 * gcc.c (default_compilers[]): Set combinable field to 0
16242 for all assembly languages.
16244 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16246 * config/mips/loongson3a.md: New file.
16247 * config/mips/mips.md: Include loongson3a.md.
16248 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16251 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16253 PR middle-end/47017
16254 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16255 instead of convert_memory_address_addr_space on the base expression.
16257 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16259 * config/spu/spu.c (spu_option_override): Update error text
16260 for bad -march= / -mtune= values.
16262 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16264 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16265 if branch-hint optimization will be performed.
16267 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16269 PR tree-optimization/47148
16270 * ipa-split.c (split_function): Convert arguments to
16271 DECL_ARG_TYPE if possible.
16273 PR tree-optimization/47155
16274 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16275 when computing uns.
16277 PR rtl-optimization/47157
16278 * combine.c (try_combine): If undobuf.other_insn becomes
16279 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16280 and set *new_direct_jump_p too.
16282 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16284 PR tree-optimization/47021
16285 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16287 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16289 * gcc.c (process_command): Update copyright notice dates.
16290 * gcov.c (print_version): Likewise.
16291 * gcov-dump.c (print_version): Likewise.
16292 * mips-tfile.c (main): Likewise.
16293 * mips-tdump.c (main): Likewise.
16295 2011-01-03 Martin Jambor <mjambor@suse.cz>
16297 PR tree-optimization/46801
16298 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16299 aggregate fields start at byte boundary instead of the bit-field flag.
16301 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16304 * gcc.c (main): Revert revision 168407.
16306 2011-01-03 Martin Jambor <mjambor@suse.cz>
16308 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16310 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16312 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16313 vector optab to expand vector/scalar shift, update gimple to vector.
16315 2011-01-03 Martin Jambor <mjambor@suse.cz>
16317 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16320 2011-01-03 Martin Jambor <mjambor@suse.cz>
16322 PR tree-optimization/46984
16323 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16325 (cgraph_create_indirect_edge): Fixed line length.
16326 (cgraph_indirect_call_info): Declare.
16327 (cgraph_make_edge_direct) Update declaration.
16328 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16329 (cgraph_create_indirect_edge): Use it.
16330 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16332 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16333 the new thunk_delta representation.
16334 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16336 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16337 (ipa_read_indirect_edge_info): Likewise.
16338 * lto-cgraph.c (output_edge_opt_summary): New function.
16339 (output_node_opt_summary): Call it on all outgoing edges.
16340 (input_edge_opt_summary): New function.
16341 (input_node_opt_summary): Call it on all outgoing edges.
16343 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16346 * gcc.c (main): Don't check have_o when settting combine_inputs.
16348 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16350 * regrename.c: Add general comment describing the pass.
16351 (struct du_head): Remove 'length' field.
16352 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16353 (regrename_optimize): Do not sort chains. Rework comments, add others.
16354 Force renaming to the preferred class (if any) in the first pass and do
16355 not consider registers that belong to it in the second pass.
16356 (create_new_chain): Do not set 'length' field.
16357 (scan_rtx_reg): Likewise.
16359 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16361 PR tree-optimization/47140
16362 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16363 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16364 to bit_value_binop.
16366 PR rtl-optimization/47028
16367 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16368 parm_birth_insn instead of at the beginning of first bb.
16370 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16372 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16373 Remove the word "see" before "@pxref".
16374 * doc/rtl.texi: Remove the word "see" before "@pxref".
16376 2011-01-01 Jan Hubicka <jh@suse.cz>
16378 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16381 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16384 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16387 Copyright (C) 2011 Free Software Foundation, Inc.
16389 Copying and distribution of this file, with or without modification,
16390 are permitted in any medium without royalty provided the copyright
16391 notice and this notice are preserved.