1 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * config/t-slibgcc-darwin: Move to ...
4 * config/t-slibgcc-dummy: .. this.
6 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
7 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
8 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
9 (i[34567]86-*-rtems*): Remove extra_parts.
11 Remove i386/t-crtstuff from tmake_file.
12 (i[34567]86-*-solaris2*): Remove t-svr4,
13 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
15 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
16 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
17 sparc/t-crtfm from tmake_file.
18 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
19 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
21 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
22 * config/i386/t-nwld (SHLIB_LINK): Remove.
23 * config/i386/t-rtems-i386: Rename to ...
24 * config/i386/t-rtems: ... this.
25 ($(T)crti.o, $(T)crtn.o): Remove.
26 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
27 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
28 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
29 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
30 EXTRA_MULTILIB_PARTS): Remove.
31 * config/sparc/t-sol2-64: Likewise.
32 * config/sparc/t-sol2: Remove.
33 * config/sparc/t-crtin: Remove.
34 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
35 * config/i386/gmon-sol2.c: Remove.
36 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
37 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
38 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
39 * config/i386/sol2-gc1.asm: Remove.
40 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
41 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
42 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
43 * config/t-slibgcc-sld: Remove.
45 2011-06-01 Jakub Jelinek <jakub@redhat.com>
47 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
48 base_type_for_mode with op_mode instead of mode.
50 2011-06-01 Paul Brook <paul@cpodesourcery.com>
52 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
54 * config/arm/arm-tune.md: Regenerate.
55 * config/arm/arm-tables.opt: Regenerate.
56 * config/arm/arm.c (FL_DIV): Rename...
57 (FL_THUMB_DIV): ... to this.
59 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
60 (arm_arch_hwdiv): Remove.
61 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
62 (arm_issue_rate): Add cortexr5.
63 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
64 __ARM_ARCH_EXT_IDIV__.
65 (TARGET_IDIV): Define.
66 (arm_arch_hwdiv): Remove.
67 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
68 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
69 (divsi3, udivsi3): New patterns.
70 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
71 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
73 2011-06-01 Martin Jambor <mjambor@suse.cz>
75 * ipa-utils.c (ipa_dfs_info): New field scc_no.
76 * ipa-utils.c (searchc): Set scc_no.
78 2011-06-01 Martin Jambor <mjambor@suse.cz>
80 * ipa-utils.c (searchc_env): New field allow_overwritable.
81 (searchc): do not ignore edges to overwritable nodes if indicated
82 by env->allow_overwritable.
83 (ipa_reduced_postorder): Set env.allow_overwritable.
85 2011-06-01 Richard Guenther <rguenther@suse.de>
87 * tree.c (free_lang_data): Do not reset boolean_type_node nor
89 * lto-streamer.c (lto_record_common_node): Take node pointer,
90 do not register types.
91 (lto_preload_common_nodes): Explicitly skip preloading nodes
92 that differ between frontends.
94 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
96 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
99 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
101 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
102 parameter value for dump. Dump cost on outermost call only.
103 (rs6000_memory_move_cost): Dump cost on outermost call only.
105 2011-05-31 Jakub Jelinek <jakub@redhat.com>
107 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
108 DW_OP_GNU_convert ops.
110 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
111 cselib_preserve_constants.
112 (cselib_lookup_1): If cselib_preserve_constants,
113 a new VALUE is being created for REG and there is a VALUE for the
114 same register in wider mode, add another loc with lowpart SUBREG of
116 (cselib_subst_to_values): Handle ENTRY_VALUE.
117 * var-tracking.c (replace_expr_with_values): Return NULL for
119 * dwarf2out.c (convert_descriptor_to_signed): New function.
120 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
121 instead of two shifts.
122 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
123 the right mode if needed.
124 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
125 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
126 convert_descriptor_to_signed.
127 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
128 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
131 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
133 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
135 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
136 of X87MODEI12 and SWI48x instead of SSEMODEI24.
137 (SWI248x): New mode iterator, rename from X87MODEI.
138 (X87MODEI): Remove mode iterator.
142 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
144 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
145 * doc/invoke.texi: Document max-vartrack-expr-depth.
146 * var-tracking.c (EXPR_DEPTH): New.
147 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
149 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
151 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
152 * config/i386/sse.md: Add n to negated FMA pattern names.
154 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
156 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
158 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
160 * gengtype-state.c (read_state_params_structs): Initialize previous.
162 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
164 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
165 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
167 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
169 * config/i386/i386.md (*movtf_internal): Avoid allocating general
170 registers. Penalize F*r->o alternative to prevent partial memory
171 stalls. Slightly penalize *roF->*r alternative. Generate SSE
172 CONST_DOUBLE immediates when optimizing function for size. Do not move
173 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
174 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
175 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
176 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
178 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
180 (fp_register_operand splitters): Use fp_register_operand
181 constraint. Do not use FP_REG_P in insn condition.
182 (any_fp_register_operand splitters): Use any_fp_register_operand
183 constraint. Do not use ANY_FP_REG_P in insn condition.
185 2011-05-31 Jan Hubicka <jh@suse.cz>
187 * cgraph.h (cgraph_inline_failed_t): Give enum a name
188 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
189 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
190 (lto_output_edge): Use output_enum and var_len_unsigned.
191 (lto_output_varpool_node): Likewise.
192 (input_overwrite_node): Do not take resolution parameter;
193 extract it from a bitpack.
194 (input_node): Do not read resolution; use input_enum and
196 (input_varpool_node): Likewise.
197 (input_edge): Likewise.
198 (input_cgraph_1): Likewise.
200 2011-05-31 Richard Guenther <rguenther@suse.de>
202 * gimple.c (gimple_register_canonical_type): Do not register
203 any types via gimple_register_type.
205 2011-05-31 Jan Hubicka <jh@suse.cz>
207 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
210 2011-05-31 Jakub Jelinek <jakub@redhat.com>
212 PR rtl-optimization/49235
213 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
214 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
216 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
218 PR tree-optimization/49093
219 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
222 2011-05-31 Dodji Seketeli <dodji@redhat.com>
225 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
226 for concrete functions containing the code of cloned functions.
228 2011-05-31 Richard Guenther <rguenther@suse.de>
230 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
232 (forward_propagate_into_comparison_1): ... this.
233 (forward_propagate_comparison): Rename to ...
234 (forward_propagate_into_comparison): ... this. Split out
235 real forward propagation code to ...
236 (forward_propagate_comparison): ... this.
237 (forward_propagate_into_gimple_cond): Remove looping.
238 (forward_propagate_into_cond): Likewise.
239 (simplify_not_neg_expr): Return whether we have done something.
240 (simplify_gimple_switch): Likewise.
241 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
242 (ssa_forward_propagate_and_combine): ... this. Re-structure
243 to do a forward forward-propagation walk on BBs and a backward
244 stmt combining walk on BBs. Consistently re-scan changed statements.
245 (pass_forwprop): Adjust.
247 2011-05-30 Ian Lance Taylor <iant@google.com>
249 * godump.c (go_format_type): Correct length of name added to
250 obstack for anonymous field.
252 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
255 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
256 part of the second operand is 0.
258 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
260 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
261 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
262 to memory for !TARGET_MEMORY_MISMATCH_STALL.
263 (*movdf_internal_rex64): Do not penalize F->r alternative.
264 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
265 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
266 when optimizing function for size. Do not move CONST_DOUBLEs
267 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
268 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
269 SUBREGs. Do not check for MEM_P operands in the insn condition,
270 check for ANY_FP_REGNO_P instead.
271 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
272 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
274 * config/i386/i386.c (ix86_option_override_internal): Do not
275 set TARGET_INTEGER_DFMODE_MOVES here.
277 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
280 * config/i386/i386.md (*movtf_internal): Handle misaligned
283 2011-05-30 Jakub Jelinek <jakub@redhat.com>
285 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
286 DW_TAG_rvalue_reference_type even for
287 -gdwarf-4 -fno-debug-types-section.
289 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
291 PR tree-optimization/46728
292 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
293 (build_and_insert_binop): New.
294 (gimple_expand_builtin_pow): Reorder args for
295 build_and_insert_call; use build_and_insert_binop; add more
296 optimizations for fractional exponents.
298 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
303 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
305 * tree.h (struct tree_identifier): Inherit from tree_typed, not
307 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
308 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
309 TS_BASE instead of TS_COMMON.
310 * varasm.c (assemble_name): Remove assert.
312 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
314 * config.gcc: Keep obselete list sorted.
316 2011-05-30 Jakub Jelinek <jakub@redhat.com>
317 Eric Botcazou <ebotcazou@adacore.com>
319 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
320 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
321 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
322 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
323 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
325 2011-05-30 Richard Guenther <rguenther@suse.de>
327 * gimple.c (gimple_types_compatible_p_1): Compare record
328 and union type members properly.
330 2011-05-30 Richard Guenther <rguenther@suse.de>
332 PR tree-optimization/49210
333 * ipa-split.c (split_function): Care for the case where the call
334 result is not trivially convertible to the result holding variable.
336 2011-05-30 Richard Guenther <rguenther@suse.de>
338 PR tree-optimization/49218
339 * tree-vrp.c (adjust_range_with_scev): Properly check whether
342 2011-05-30 Richard Guenther <rguenther@suse.de>
344 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
345 New function split out from ...
346 (forward_propagate_into_gimple_cond): ... here. Adjust.
347 (forward_propagate_into_cond): Likewise.
348 (forward_propagate_comparison): Also propagate into
349 comparisons on assignment RHS. Change return value to
350 behave similar to forward_propagate_into_cond.
351 (tree_ssa_forward_propagate_single_use_vars): Handle
352 strict-overflow warnings properly for forward_propagate_comparison.
354 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
356 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
358 * configure: Regenerate.
360 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
362 PR tree-optimization/49199
363 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
364 non-reduction operands are either defined in the loop or by induction.
366 2011-05-29 Xinliang David Li <davidxl@google.com>
368 * opts-global.c (handle_common_deferred_options): Handle new options.
369 * passes.c (register_one_dump_file): Call register_pass_name.
370 (execute_one_pass): Check explicit enable/disable flag.
371 (passr_hash): New function.
373 (register_pass_name): Ditto.
374 (get_pass_by_name): Ditto.
377 (enable_pass): Ditto.
378 (disable_pass): Ditto.
379 (is_pass_explicitly_enabled_or_disabled): Ditto.
381 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
383 * config/i386/i386.md (*movoi_internal_avx): Use
384 standard_sse_constant_opcode for alternative 0.
385 (*movti_internal_sse): Ditto.
386 (*movti_internal_rex64): Use standard_sse_constant_opcode for
388 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
390 (*movsi_internal): Ditto.
391 (*movdi_internal): Ditto. Add ssecvt type moves.
393 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
396 * rtlanal.c (simplify_subreg_regno): Adjust comment.
398 2011-05-29 Jakub Jelinek <jakub@redhat.com>
400 PR rtl-optimization/49095
401 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
402 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
404 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
407 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
408 recurse_p argument. Only follow register copies if it is set,
409 and prevent mips_find_pic_call_symbol from recursing.
410 (mips_find_pic_call_symbol): Add a recurse_p argument.
411 Pass it to mips_pic_call_symbol_from_set.
412 (mips_annotate_pic_calls): Update accordingly.
414 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
416 * emit-rtl.c (try_split): Use a loop to search for
417 NOTE_INSN_CALL_ARG_LOCATIONs.
419 2011-05-29 Richard Guenther <rguenther@suse.de>
421 PR tree-optimization/49217
422 * ipa-pure-const.c (propagate_pure_const): Fix typos.
424 2011-05-28 Jan Hubicka <jh@suse.cz>
426 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
428 (string_slot_free): Remove
429 (create_output_block): Initialize obstack.
430 (destroy_output_block): Free obstack.
431 (lto_string_index): Add PERSISTENT parameter; do not duplicate
432 the string unless it needs to be added into the hash.
433 (lto_output_string_with_length): Add persistent attribute;
435 (lto_output_string): Add PERSISTENT parameter.
436 (output_string_cst, output_identifier): Simplify.
437 (lto_output_location_bitpack): Update.
438 (lto_output_builtin_tree): Update.
439 * lto-streamer.h (struct output_block): Add obstack.
440 (lto_output_string, lto_output_string_with_length): Remove
441 declarations; functions are static now.
443 2011-05-28 Jan Hubicka <jh@suse.cz>
445 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
446 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
447 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
448 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
449 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
450 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
451 unpack_ts_decl_with_vis_value_fields,
452 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
453 lto_get_builtin_tree): Use enum and variable length i/o.
454 * basic-block.h (profile_status_d): Add PROFILE_LAST.
455 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
457 (bp_pack_enum, bp_unpack_enum): New macros.
459 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
461 * genrecog.c: Remove redundant forward declarations.
463 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
465 * config.gcc: Deprecate mips*-*-openbsd*.
467 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
470 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
473 2011-05-27 Andrew Pinski <pinskia@gmail.com>
476 * gengtype.c (vec_prefix_type): New function.
477 (note_def_vec): Use vec_prefix_type and change the length
478 attribute to be based on the prefix.
479 * vec.c: Include coretypes.h before vec.h.
480 (struct vec_prefix): Remove.
481 (vec_gc_p_reserve): Change the offsetof to sizeof.
482 (vec_gc_p_reserve_exact): Likewise.
483 (vec_heap_p_reserve): Likewise.
484 (vec_heap_p_reserve_exact): Likewise.
485 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
486 (vec_stack_p_reserve): Change the offsetof to sizeof.
487 (vec_stack_p_reserve_exact): Likewise.
488 * vec.h (struct vec_prefix): New struct definition.
489 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
490 (VEC_T_GTY(T,B)): Likewise.
491 (DEF_VEC_FUNC_P(T)): Use prefix field.
492 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
493 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
495 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
497 PR tree-optimization/46728
498 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
499 (powi_as_mults): Add gimple_set_location.
500 (build_and_insert_call): New.
501 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
502 0.5, 0.25, 0.75, 1./3., or 1./6.
504 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
506 * doc/contrib.texi: Update copyright years.
507 (Contributors): Add Zdenek Sojka.
509 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
511 * c-decl.c (c_push_function_context): Copy the current statement
513 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
514 (finish_struct): Call building_stmt_list_p instead of checking
516 * c-parser.c (c_parser_postfix_expression): Likewise.
517 * c-typeck.c (c_end_compound_stmt): Likewise.
518 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
519 * tree-iterator.c (stmt_list_cache): Change to a VEC.
520 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
521 (free_stmt_list): Likewise.
522 * tree.h (struct tree_statement_list): Include typed_tree instead
524 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
525 as TS_TYPED instead of TS_COMMON.
527 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
528 Uros Bizjak <ubizjak@gmail.com>
530 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
531 (HAVE_AS_IX86_TLSGDPTL): Define.
532 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
533 (HAVE_AS_IX86_TLSLDMPLT): Define.
534 * configure: Regenerate.
535 * config.in: Regenerate.
536 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
537 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
538 TARGET_SUN_TLS, use @tlsgdplt or @plt.
539 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
540 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
542 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
544 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
546 * sched-int.h (struct _haifa_deps_insn_data): New members cond
548 (INSN_COND, INSN_REVERSE_COND): New macros.
549 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
551 (sched_get_condition_with_rev): Cache the results, and look them up
553 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
554 are clobbered by the current insn.
555 * target.def (exposed_pipline): New sched data hook.
556 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
557 * doc/tm.texi: Regenerate.
559 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
561 PR tree-optimization/49170
562 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
565 2011-05-27 Richard Guenther <rguenther@suse.de>
568 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
571 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
573 * haifa-sched.c (sched_scan_info): Remove.
574 (schedule_block): Call sched_extend_luids rather than sched_init_luids
576 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
578 (sched_scan): Remove.
579 (sched_extend_luids): Renamed from luids_extend_insn and no longer
580 static. All callers changed.
581 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
582 static. All callers changed.
583 (sched_init_luids): Remove all arguments except the first. All
584 callers changed. Don't use sched_scan.
585 (haifa_init_h_i_d): Likewise.
586 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
587 manually rather than using sched_init_luids. Likewise with
588 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
589 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
590 rather than sched_init_luids with NULL args.
591 * sel-sched-ir.c (new_insns): Remove variable.
592 (sched_scan): New static function, previously in haifa-sched.c. Remove
593 all arguments but the first two; all callers changed.
594 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
595 rather than sched_init_luids.
596 (sel_init_bbs): Remove second argument. All callers changed.
597 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
599 (create_insn_rtx_from_pattern): Likewise.
600 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
601 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
602 (sched_init_insn_luid, sched_extend_luids): Declare.
603 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
606 2011-05-27 Richard Guenther <rguenther@suse.de>
609 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
610 A CMP B ? (T) true : (T) false for non-integral types T again.
612 2011-05-27 Jan Hubicka <jh@suse.cz>
614 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
615 so 0 means NULL string.
616 (lto_output_string_with_length): ... here.
617 (lto_output_string, output_string_cst, output_identifier): Update
618 handling of NULL strings.
619 (lto_output_location_bitpack): New function.
620 (lto_output_location): Use it.
621 (lto_output_tree_ref): Use output_record_start.
622 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
624 * lto-streamer-in.c (string_for_index): Break out from ...; offset
626 (input_string_internal): ... here;
627 (input_string_cst, input_identifier, lto_input_string): Update handling
629 (lto_input_location_bitpack): New function
630 (lto_input_location): Use it.
631 (unpack_ts_type_common_value_fields): Pack align & alias in var len
633 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
634 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
635 (bp_pack_value): Sanity check the value range.
636 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
638 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
641 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
643 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
644 call_arg_location instructions down the floor.
646 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
648 PR rtl-optimization/49154
649 * ira.c (setup_pressure_classes): Process class without sublcasses
650 as a candidate for pressure classes.
652 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
654 PR rtl-optimization/48575
655 * genrecog.c (position_type): New enum.
656 (position): New structure.
657 (decision): Use position structure instead of a string.
658 (root_pos, peep2_insn_pos_list): New variables.
659 (next_position, compare_positions): New functions.
660 (new_decision): Use position structures instead of strings.
661 (maybe_both_true): Likewise.
662 (change_state): Likewise.
663 (write_tree): Likewise.
664 (make_insn_sequence): Likewise.
666 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
668 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
669 TS_BASE instead of TS_COMMON.
670 (find_decls_types_r): Check for TS_TYPED structure before looking at
672 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
674 (BLOCK_CHAIN): Use new chain field.
676 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
678 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
679 moves expensive on Power7 also.
681 2011-05-26 Richard Guenther <rguenther@suse.de>
683 * fold-const.c (fold_unary_loc): Remove bogus code.
685 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
687 * tree.h (struct tree_identifier): Inherit from tree_typed, not
689 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
690 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
691 TS_BASE instead of TS_COMMON.
692 * varasm.c (assemble_name): Remove assert.
694 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
696 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
698 * libgcc-std.ver: Delete file.
700 2011-05-26 Richard Guenther <rguenther@suse.de>
702 PR tree-optimization/48702
703 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
704 only when we know the base address is within bounds.
705 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
706 assume the base address of TARGET_MEM_REFs is in bounds.
708 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
711 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
712 declaration in TARGET_SOLARIS.
714 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
716 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
717 The instruction is then expanded explicitly.
718 (supported_compare): Callable instruction.
721 2011-05-26 Jakub Jelinek <jakub@redhat.com>
724 * gimplify.c (shortcut_cond_r): Don't special case
725 COND_EXPRs if they have void type on one of their arms.
727 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
729 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
730 to reduce duplication, and to achieve a slightly more logical order
733 2011-05-26 Jakub Jelinek <jakub@redhat.com>
735 PR tree-optimization/49161
736 * tree-vrp.c (struct case_info): New type.
737 (compare_case_labels): Sort case_info structs instead of
738 trees, and not primarily by CASE_LABEL uids but by
739 label_for_block indexes.
740 (find_switch_asserts): Put case labels into struct case_info
741 array instead of TREE_VEC, adjust sorting, compare label_for_block
742 values instead of CASE_LABELs.
744 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
746 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
747 ("orndi3_neon"): Likewise.
748 ("bic<mode>3_neon"): Likewise.
750 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
752 PR tree-optimization/49038
753 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
754 Ensure at least one epilogue iteration if required by data
756 * tree-vectorizer.h (struct _loop_vec_info): Add new field
757 to mark loops that require peeling for gaps.
758 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
759 (vect_get_known_peeling_cost): Take peeling for gaps into
761 (vect_transform_loop): Generate epilogue if required by data
763 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
764 loop as requiring an epilogue if there are gaps in the end of
767 2011-05-25 Ian Lance Taylor <iant@google.com>
769 * godump.c (go_format_type): Output the first field with a usable
772 2011-05-25 Ian Lance Taylor <iant@google.com>
774 * godump.c (go_format_type): Check for invalid type names, pointer
775 target types, and struct field types.
777 2011-05-25 Jason Merrill <jason@redhat.com>
779 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
781 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
783 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
785 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
787 * config/i386/i386.md (*movqi_extv_1)): Put back
788 "register_operand" check in "type" calculation.
789 (*movqi_extzv_2): Likewise.
791 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
793 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
795 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
798 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
799 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
800 __divxc3, __divtc3): Wrap definitions in #ifndef.
802 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
805 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
806 "register_operand" check and replace q_regs_operand with
807 QIreg_operand in "type" calculation.
808 (*movqi_extv_1): Likewise.
809 (*movqi_extzv_2_rex64): Likewise.
810 (*movqi_extzv_2): Likewise.
812 * config/i386/predicates.md (QIreg_operand): New.
814 2011-05-25 Richard Guenther <rguenther@suse.de>
816 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
817 type-based offset disambiguation, streamline MEM_REF and
818 TARGET_MEM_REF handling.
820 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
822 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
823 (bdesc_special_args): Add pause intrinsic.
825 * config/i386/i386.md (UNSPEC_PAUSE): New.
828 * config/i386/ia32intrin.h (__pause): Likewise.
830 * doc/extend.texi (X86 Built-in Functions): Add documentation for
833 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
835 PR tree-optimization/46728
836 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
837 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
839 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
841 * tree.h (struct tree_exp): Inherit from struct tree_typed.
842 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
843 instead of TS_COMMON.
845 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
847 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
848 LIBGCC2_GNU_PREFIX is defined.
850 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
851 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
852 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
853 __clz_tab): Define using __N.
854 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
855 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
856 * target.def (libfunc_gnu_prefix): New hook.
857 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
858 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
859 * doc/tm.texi: Regenerate.
860 * system.h (LIBGCC2_GNU_PREFIX): Poison.
861 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
863 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
864 (init_optabs): Likewise for the bswap libfuncs.
865 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
867 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
868 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
869 * libgcc-std.ver: Remove.
870 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
871 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
873 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
874 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
875 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
876 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
877 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
878 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
879 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
880 * config/fixed-bit.h (FIXED_OP): Define differently depending on
881 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
882 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
884 2011-05-25 Jan Hubicka <jh@suse.cz>
886 * lto-streamer-out.c (output_record_start): Use lto_output_enum
887 (lto_output_tree): Use output_record_start.
888 * lto-streamer-in.c (input_record_start): Use lto_input_enum
889 (lto_get_pickled_tree): Use input_record_start.
890 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
891 (lto_value_range_error): New function.
892 * lto-streamer.h (lto_value_range_error): Declare.
893 (lto_output_int_in_range, lto_input_int_in_range): New functions.
894 (lto_output_enum, lto_input_enum): New macros.
896 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
898 * common.opt (flag_stack_usage_info): New variable.
899 (-Wstack-usage): New option.
900 * doc/invoke.texi (Warning options): Document -Wstack-usage.
901 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
902 <OPT_fstack_usage>: Likewise.
903 * toplev.c (output_stack_usage): Handle -Wstack-usage.
904 * calls.c (expand_call): Test flag_stack_usage_info variable instead
906 (emit_library_call_value_1): Likewise.
907 * explow.c (allocate_dynamic_stack_space): Likewise.
908 * function.c (instantiate_virtual_regs ): Likewise.
909 (prepare_function_start): Likewise.
910 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
911 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
912 * config/arm/arm.c (arm_expand_prologue): Likewise.
913 (thumb1_expand_prologue): Likewise.
914 * config/avr/avr.c (expand_prologue): Likewise.
915 * config/i386/i386.c (ix86_expand_prologue): Likewise.
916 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
917 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
918 * config/mips/mips.c (mips_expand_prologue): Likewise.
919 * config/pa/pa.c (hppa_expand_prologue): Likewise.
920 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
921 * config/s390/s390.c (s390_emit_prologue): Likewise.
922 * config/sh/sh.c (sh_expand_prologue): Likewise.
923 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
924 * config/spu/spu.c (spu_expand_prologue): Likewise.
926 2011-05-25 Richard Guenther <rguenther@suse.de>
928 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
929 (gimple_canonical_types_compatible_p): Likewise.
931 2011-05-25 Jan Hubicka <jh@suse.cz>
934 * ipa.c (function_and_variable_visibility): Only add to same
935 comdat group list if DECL_ONE_ONLY.
937 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
939 PR rtl-optimization/49014
940 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
942 2011-05-25 Jakub Jelinek <jakub@redhat.com>
945 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
947 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
949 PR rtl-optimization/48757
950 * ira-build.c (loop_with_eh_edge_p): Rename to
951 loop_with_complex_edge_p, check edges on complexity, make function
953 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
956 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
958 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
959 force flag_ira_share_save_slots to 0.
961 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
963 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
964 (vt_initialize): Set PROLOGUE_BB unconditionally.
965 Add block comment about CFA_BASE_RTX machinery.
966 Reset FP_CFA_OFFSET to -1 on all invalid paths.
967 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
969 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
972 * c-parser.c (c_parser_objc_class_instance_variables): More robust
973 parsing of syntax error in ObjC instance variable lists. In
974 particular, avoid an infinite loop if there is a stray ']'.
975 Updated error message.
977 2011-05-24 Ian Lance Taylor <iant@google.com>
979 * godump.c (go_define): Don't accept a string immediately after
982 2011-05-24 Ian Lance Taylor <iant@google.com>
984 * godump.c (struct godump_container): Add invalid_hash field.
985 (go_format_type): Return false if type is found in invalid_hash.
986 (go_output_typedef): Add invalid type to invalid_hash.
987 (go_finish): Create and delete invalid_hash.
989 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
991 PR tree-optimization/46728
992 * tree-ssa-math-opts.c (powi_table): New.
993 (powi_lookup_cost): New.
995 (powi_as_mults_1): New.
996 (powi_as_mults): New.
997 (gimple_expand_builtin_powi): New.
998 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
999 (gate_cse_sincos): Remove sincos/cexp restriction.
1001 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1004 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1006 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1007 * mips-tdump.c: Likewise.
1009 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1012 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1013 add -mno-XXX. Handle FMA.
1015 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1017 PR rtl-optimization/48633
1018 * ira-build.c (loop_with_eh_edge_p): New function.
1019 (mark_loops_for_removal): Use it.
1021 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1023 PR rtl-optimization/48971
1024 * ira.c (setup_pressure_classes): Don't check register move cost
1025 for classes with one registers. Don't add pressure class if there
1026 is a pressure class with the same available hard registers.
1027 Check contains_reg_of_mode. Fix a typo in collecting
1028 temp_hard_regset. Ignore hard registers not belonging to a class.
1030 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1033 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1035 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1036 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1038 PR gcov-profile/48845
1039 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1041 2011-05-24 Richard Guenther <rguenther@suse.de>
1043 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1044 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1045 (gimple_types_compatible_p_1): Adjust.
1046 (iterative_hash_canonical_type): Do not bother about complete vs.
1048 (gimple_canonical_types_compatible_p): Likewise.
1050 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1052 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1054 2011-05-24 Richard Guenther <rguenther@suse.de>
1057 * gimple.c (gimple_register_canonical_type): Revert
1059 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1060 does not for a tree for the case where it matters. Cache
1061 pointer-type alias-sets.
1063 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1065 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1066 (OBJS): Remove options.o, opts-common.o and prefix.o.
1067 (OBJS-libcommon-target): New.
1068 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1069 (BACKEND): Include libcommon-target.a.
1070 (MOSTLYCLEANFILES): Include libcommon-target.a.
1071 (libcommon-target.a): New.
1072 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1075 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1077 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1078 parts of output shared with the driver.
1079 * optc-gen.awk: Don't generate parts of output not shared with the
1081 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1082 * doc/options.texi (SourcerInclude): Mention options-save.c.
1083 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1084 (OBJS): Add options-save.o.
1085 (options-save.c, options-save.o): New.
1086 (options.o): Update dependencies.
1087 (gcc-options.o): Remove.
1088 (mostlyclean): Remove options-save.c.
1090 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1093 * dbxout.c: Include cgraph.h.
1094 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1095 and without value expr, return NULL if no varpool node exists for
1096 it or if it is not needed.
1097 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1100 * c-decl.c (start_decl): Convert expr to void_type_node.
1102 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1104 PR rtl-optimization/48826
1105 * emit-rtl.c (try_split): When splitting a call that is followed
1106 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1108 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1110 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1111 parameters passed in memory prefer using DECL_INCOMING_RTL over
1112 the pseudos it will be copied into.
1114 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1117 * config/i386/i386.c (ix86_option_override_internal): Save the
1118 initial options after checking vzeroupper.
1120 2011-05-23 David Li <davidxl@google.com>
1122 PR tree-optimization/48988
1123 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1124 Initialize has_valid_pred for each pred chain.
1126 2011-05-23 Richard Guenther <rguenther@suse.de>
1128 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1129 (iterative_hash_gimple_type): Always hash type names.
1131 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1133 * c-typeck.c (build_function_call_vec): Tweak call to
1134 check_function_arguments.
1136 2011-05-23 Richard Guenther <rguenther@suse.de>
1138 PR tree-optimization/49115
1139 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1140 is not necessarily carried out, do not claim it kills the ref.
1141 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1143 2011-05-23 Richard Guenther <rguenther@suse.de>
1146 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1147 what pointer types we accept for folding.
1149 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1151 * gthr-gnat.c: Remove.
1152 * gthr-gnat.h: Remove.
1153 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1154 * config/t-freebsd (LIB2ADDEH): Likewise.
1155 * config/t-linux (LIB2ADDEH): Likewise.
1156 * config/t-sol2 (LIB2ADDEH): Likewise.
1157 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1158 * configure.ac (target_thread_file): Remove gnat handling.
1159 * configure: Regenerate.
1160 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1162 2011-05-23 Tristan Gingold <gingold@adacore.com>
1163 Eric Botcazou <ebotcazou@adacore.com>
1165 * gcov.c (create_file_names): If no object directory is specified,
1166 keep the directory of the file.
1168 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1170 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1171 * configure: Regenerate.
1173 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1176 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1177 failed and the comparison has a single bit signed type, use
1178 constm1_rtx instead of const1_rtx for true value.
1179 (do_store_flag): If ops->type is single bit signed type, disable
1180 signel bit test optimization and pass -1 instead of 1 as last
1181 parameter to emit_store_flag_force.
1183 2011-05-23 Tom de Vries <tom@codesourcery.com>
1186 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1188 (infer_loop_bounds_from_undefined): Use new function.
1190 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1192 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1193 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1194 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1196 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1198 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1200 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1201 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1204 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1206 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1208 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1210 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1211 UNSPEC_MOVE_PIC pattern.
1213 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1215 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1216 (sparc-*-rtems*): Likewise.
1217 (sparc64-*-elf*): Likewise.
1218 (sparc64-*-rtems*): Likewise.
1219 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1220 * config/sparc/t-crtin: New file.
1221 * config/sparc/t-sol2 (crti.o): Delete rule.
1223 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1224 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1225 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1226 (ENDFILE_SPEC): Add crtn.o.
1228 2011-05-22 Tom de Vries <tom@codesourcery.com>
1231 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1232 CODE_CONTAINS_STRUCT (TS_COMMON).
1234 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1237 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1238 only after deciding which mode to use.
1240 2011-05-22 Tom de Vries <tom@codesourcery.com>
1243 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1244 for call to get_shiftadd_cost.
1246 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1249 * config/i386/cpuid.h (bit_MMXEXT): New define.
1251 2011-05-22 Nick Clifton <nickc@redhat.com>
1253 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1254 initialisation of non-existant args[2] element. Use args[] array
1255 not arg[] array to pass arguments to build_function_type_list.
1257 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1259 PR tree-optimization/49087
1260 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1262 2011-05-21 Jason Merrill <jason@redhat.com>
1265 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1266 static storage duration.
1268 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1270 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1273 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1275 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1276 false if there are call-saved registers here...
1277 (sparc_can_use_return_insn_p): ...but here instead.
1278 (save_or_restore_regs): Fix thinko.
1279 (sparc_expand_prologue): Use current_function_is_leaf.
1280 (sparc_frame_pointer_required): Likewise.
1282 2011-05-21 Nick Clifton <nickc@redhat.com>
1285 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1287 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1289 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1290 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1292 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1294 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1295 * optc-gen.awk: Move common code to opt-read.awk.
1296 * opth-gen.awk: Likewise.
1297 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1299 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1301 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1303 2011-05-20 Tom de Vries <tom@codesourcery.com>
1306 * tree-ssa-loop-ivopts.c: Include expmed.h.
1307 (get_shiftadd_cost): New function.
1308 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1310 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1313 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1314 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1316 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1318 * Makefile.in: Update comment referring to $(OBJS-common).
1320 2011-05-20 Ian Lance Taylor <iant@google.com>
1322 * godump.c (go_output_typedef): Put enum constants in the macro
1323 hash table to avoid duplicate Go const definitions.
1325 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1327 * Makefile.in (LIBDEPS): Add libcommon.a.
1329 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1330 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1331 pretty-print.o and version.o.
1332 (OBJS-libcommon): New.
1333 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1334 (BACKEND): Add libcommon.a.
1335 (MOSTLYCLEANFILES): Likewise.
1337 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1338 (cpp$(exeext)): Likewise.
1339 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1340 pretty-print.o and input.o.
1341 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1342 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1344 (mips-tfile): Don't explicitly use version.o.
1345 (mips-tdump): Likewise.
1346 (gcov.o): Depend on $(DIAGNOSTIC_H).
1347 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1348 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1349 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1350 * gcov-dump.c: Include intl.h and diagnostic.h.
1351 (main): Initialize diagnostics.
1352 * gcov.c: Include diagnostic.h.
1354 (main): Initialize diagnostics.
1355 * lto-wrapper.c: Include diagnostic.h.
1356 (main): Initialize diagnostics.
1358 2011-05-20 Michael Matz <matz@suse.de>
1360 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1362 2011-05-20 Michael Matz <matz@suse.de>
1363 Richard Guenther <rguenther@suse.de>
1365 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1366 use lto_streamer_cache_append directly instead of returning a VEC.
1367 (preload_common_node): Remove.
1368 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1370 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1372 2011-05-20 Richard Guenther <rguenther@suse.de>
1374 PR tree-optimization/49079
1375 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1376 MEM_REFs correctly for the trailing array access detection.
1377 Special case constants the same way as decls for overall size
1380 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1382 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1385 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1387 PR tree-optimization/49073
1388 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1389 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1390 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1392 2011-05-20 Richard Guenther <rguenther@suse.de>
1395 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1396 of pointer types the same way the middle-end does.
1398 2011-05-20 Richard Guenther <rguenther@suse.de>
1400 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1401 or pointer-to chains. Delay all fixup to uniquify_nodes.
1403 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1405 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1406 (fma4_fmaddsub): Likewise
1408 2011-05-19 Jan Hubicka <jh@suse.cz>
1410 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1411 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1412 (type_pair_cache): New static var.
1413 (lookup_type_pair): Use fixed sized custom hash; make inline.
1414 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1415 calls of lookup_type_pair.
1416 (print_gimple_types_stats): Remove cache stats.
1417 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1420 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1422 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1423 when TARGET_RDRND is active.
1424 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1425 Generate dummy SImode target register when target is NULL.
1427 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1429 * config/arm/arm-fpus.def: New.
1430 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1432 * config/arm/arm-tables.opt: Regenerate.
1433 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1434 (arm_option_override): Don't decode FPU name to string here.
1435 * config/arm/arm.opt (mfpu=): Use Enum.
1436 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1437 Update dependencies.
1439 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1441 * collect2.c: Include diagnostic.h.
1442 (fatal_perror, fatal, error, fancy_abort): Remove.
1443 (main): Set progname. Call xmalloc_set_program_name and
1444 diagnostic_initialize.
1445 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1446 scan_libraries, resolve_lib_name): Call fatal_error instead of
1447 fatal and fatal_perror.
1448 * collect2.h (error, fatal, fatal_perror): Don't declare.
1449 * tlink.c: Include diagnostic-core.h.
1450 (recompile_files): Call fatal_error instead of fatal_perror.
1451 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1452 pretty-print.o and input.o.
1453 (collect2.o, tlink.o): Update dependencies.
1455 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1457 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1459 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1462 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1463 COMDAT group syntax, both SPARC and x86 variants.
1464 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1465 * configure: Regenerate.
1466 * config/sol2.h (TARGET_SOLARIS): Define.
1467 (PUSHSECTION_FORMAT): Remove.
1468 (SECTION_NAME_FORMAT): Define.
1469 * config/sol2.c: Include hashtab.h.
1470 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1471 expansion, using SECTION_NAME_FORMAT.
1472 (solaris_comdat_htab): New variable.
1473 (struct comdat_entry): Define.
1474 (comdat_hash): New function.
1475 (comdat_eq): New function.
1476 (solaris_elf_asm_comdat_section): New function.
1477 (solaris_define_comdat_signature): New function.
1478 (solaris_code_end): New function.
1479 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1480 (solaris_code_end): Declare.
1481 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1482 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1484 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1485 Remove ATTRIBUTE_UNUSED.
1486 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1487 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1488 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1489 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1490 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1491 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1492 (PUSHSECTION_FORMAT): Remove.
1493 (SECTION_NAME_FORMAT): Redefine.
1495 2011-05-19 Kai Tietz <ktietz@redhat.com>
1497 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1498 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1499 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1501 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1502 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1504 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1506 2011-05-19 Richard Guenther <rguenther@suse.de>
1509 * tree-object-size.c (addr_object_size): If the pointed-to
1510 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1512 2011-05-19 Richard Guenther <rguenther@suse.de>
1514 * gimple.c (gimple_types_compatible_p_1): Compare names of
1515 the types themselves.
1516 (iterative_hash_gimple_type): And hash them that way.
1517 (gimple_register_type_1): If we register a main variant properly
1518 initialize the leader to ourselves.
1520 2011-05-19 Tom de Vries <tom@codesourcery.com>
1523 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1524 get_loop_invariant_expr_id.
1525 (get_loop_invariant_expr_id): Use get_expr_id.
1526 (parm_decl_cost): New function.
1527 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1528 Improve bound cost estimation. Use different inv_expr_id for elim and
1531 2011-05-19 Tom de Vries <tom@codesourcery.com>
1534 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1535 cost_base.cost == 0.
1537 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1540 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1541 Properly handle load cast.
1543 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1545 PR tree-optimization/49039
1546 * tree-vrp.c (extract_range_from_binary_expr): For
1547 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1548 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1550 2011-05-18 Tom de Vries <tom@codesourcery.com>
1553 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1555 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1557 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1558 (*tls_global_dynamic_64): Ditto.
1559 (*tls_local_dynamic_base_32_gnu): Ditto.
1560 (*tls_local_dynamic_base_64): Ditto.
1561 (tls_initial_exec_64_sun): Ditto.
1563 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1565 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1566 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1568 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1569 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1570 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1571 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1572 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1573 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1574 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1576 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1578 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1579 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1580 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1581 target_thread_pointer, arm_structure_size_boundary, struct
1582 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1583 struct abi_name, arm_all_abis): Remove.
1584 (arm_option_override) Don't process most enumerated option values here.
1585 Don't process target_fpe_name here. Work with integer not string for
1586 structure size boundary; use separate diagnostics for each case.
1587 * config/arm/arm.h (enum float_abi_type, enum
1588 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1590 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1591 arm_structure_size_boundary): Remove.
1592 * config/arm/arm.opt (mabi=): Use Enum and Init.
1593 (arm_abi_type): New Enum and EnumValue entries.
1594 (mfloat-abi=): Use Enum and Init.
1595 (float_abi_type): New Enum and EnumValue entries.
1596 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1597 (mfp16-format=): Use Enum and Init.
1598 (arm_fp16_format_type): New Enum and EnumValue entries.
1599 (mstructure-size-boundary=): Use UInteger and Init.
1600 (mtp=): Use Enum and Init.
1601 (arm_tp_type): New Enum and EnumValue entries.
1603 2011-05-18 Richard Guenther <rguenther@suse.de>
1605 PR tree-optimization/49018
1606 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1607 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1608 gimple_has_side_effects.
1610 2011-05-18 Richard Guenther <rguenther@suse.de>
1612 * gimple.c (gimple_register_type_1): New function, split out from ...
1613 (gimple_register_type): ... here. Avoid infinite recursion.
1615 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1617 PR tree-optimization/41881
1618 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1619 reduction_chains along with a macro for its access.
1620 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1621 (destroy_loop_vec_info): Free reduction chains.
1622 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1623 (vect_is_slp_reduction): New function.
1624 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1625 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1626 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1627 definition types for reduction chains.
1628 (vect_supported_load_permutation_p): Don't allow permutations for
1630 (vect_analyze_slp_instance): Support reduction chains.
1631 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1632 (vect_get_constant_vectors): Handle reduction chains.
1633 (vect_schedule_slp_instance): Mark the first statement of the
1634 reduction chain as reduction.
1636 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1638 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1639 names for group elements access.
1640 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1641 reduction chains as well. Remove data reference and interleaving
1642 related words from the fields names.
1643 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1645 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1646 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1647 vect_update_interleaving_chain, vect_same_range_drs,
1648 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1649 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1650 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1651 vect_analyze_group_access, vect_analyze_data_ref_access,
1652 vect_create_data_ref_ptr, vect_transform_strided_load,
1653 vect_record_strided_load_vectors): Likewise.
1654 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1655 vect_model_load_cost, vectorizable_store, vectorizable_load,
1656 vect_remove_stores, new_stmt_vec_info): Likewise.
1657 * tree-vect-slp.c (vect_build_slp_tree,
1658 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1660 2011-05-18 Richard Guenther <rguenther@suse.de>
1663 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1664 operand verification.
1665 (verify_gimple_assign_binary): Likewise.
1666 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1667 to non-1-precision BOOLEAN_TYPEs.
1669 2011-05-18 Tom de Vries <tom@codesourcery.com>
1672 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1674 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1676 PR tree-optimization/49000
1677 * tree-ssa.c (execute_update_addresses_taken): Call
1678 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1679 be rewritten and decl has been marked for renaming, reset
1682 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1684 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1685 enum_opts_set when testing if attributes have set -mfpmath=.
1687 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1689 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1691 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1693 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1695 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1696 id.transform_lang_insert_block with NULL.
1698 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1700 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1701 (output_fp_compare): Change args 3 and 4 to bool.
1702 (ix86_expand_call): Change arg 6 to bool.
1703 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1704 (ix86_attr_length_vex_default): Change arg 3 to bool.
1705 * config/i386/i386.md: Update all uses.
1706 * config/i386/i386.c: Ditto.
1707 (ix86_flags_dependent): Change return type to bool.
1709 2011-05-17 Richard Guenther <rguenther@suse.de>
1711 * gimple.c (type_hash_pair_compare): Fix comparison.
1713 2011-05-17 Richard Guenther <rguenther@suse.de>
1715 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1716 case some more, fix final hash value of the non-singleton case.
1718 2011-05-17 Richard Guenther <rguenther@suse.de>
1722 2011-05-16 Richard Guenther <rguenther@suse.de>
1724 * gimple.c (gimple_types_compatible_p_1): Use names of the
1725 type itself, not its main variant.
1726 (iterative_hash_gimple_type): Likewise.
1728 2011-05-17 Richard Guenther <rguenther@suse.de>
1730 * gimple.c (gimple_register_canonical_type): Use the main-variant
1731 leader for computing the canonical type.
1733 2011-05-17 Nick Clifton <nickc@redhat.com>
1735 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1738 * config/rx/rx.md: Add peephole to remove redundant extensions
1740 (bitset_in_memory): Use rx_restricted_mem_operand.
1741 (bitinvert_in_memory): Likewise.
1742 (bitclr_in_memory): Likewise.
1744 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1745 Nick Clifton <nickc@redhat.com>
1747 * config/rx/rx.md: Add peepholes to match a register move followed
1748 by a comparison of the moved register. Replace these with an
1749 addition of zero that does both actions in one instruction.
1751 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1754 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1755 predicate to allow CONST_INT.
1756 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1758 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1760 * opts-common.c (opt_enum_arg_to_value): New.
1761 * opts.h (opt_enum_arg_to_value): Declare.
1762 * config/i386/i386.opt (fpmath): Remove.
1763 (mfpmath=): Use Enum, Init and Save.
1764 (fpmath_unit): New Enum and EnumValue entries.
1765 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1766 name for function fpmath state.
1767 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1768 * config/i386/i386.c: Include diagnostic.h.
1769 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1770 (ix86_target_string): Take enum fpmath_unit value instead of string.
1771 (ix86_debug_options): Update call to ix86_target_string.
1772 (ix86_option_override_internal): Don't process fpmath strings here.
1773 (x86_function_specific_save, ix86_function_specific_restore):
1774 Don't handle fpmath state specially.
1775 (ix86_function_specific_print): Pass fpmath state to
1776 ix86_target_string instead of printing in this function.
1777 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1778 Handle enum attributes.
1779 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1780 (ix86_valid_target_attribute_tree): Update option_strings
1781 handling. Handle fpmath as enum option.
1782 (ix86_can_inline_p): Update field names for function fpmath state.
1783 (ix86_expand_builtin): Update call to ix86_target_string.
1784 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1785 (ix86_fpmath): Remove.
1786 * config/i386/t-i386 (i386.o): Update dependencies.
1788 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1790 PR preprocessor/48677
1791 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1792 from decoded_options[0], not from itself.
1794 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1796 * config/i386/constraints.md (z): New constraint.
1797 * config/i386/i386.c (c): New mode attribute.
1798 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1799 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1800 constraint for operand 0.
1801 (*call_vzeroupper): Ditto.
1802 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1803 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1804 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1805 Use "lzm" constraint for operand 0.
1806 (*call_pop_vzeroupper): Ditto.
1807 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1808 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1809 constraint for operand 0.
1810 (*sibcall_vzeroupper): Ditto.
1811 (*sibcall_rex64_ms_sysv): Ditto.
1812 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1813 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1814 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1815 (*sibcall_pop_vzeroupper): Ditto.
1816 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1817 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1818 mode iterator. Use "<c>zm" constraint for operand 1.
1819 (*call_value_vzeroupper): Ditto.
1820 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1822 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1823 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1824 *call_value_pop_1. Use "lzm" constraint for operand 1.
1825 (*call_value_pop_vzeroupper): Ditto.
1826 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1827 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1828 mode iterator. Use "Uz" constraint for operand 1.
1829 (*sibcall_value_vzeroupper): Ditto.
1830 (*sibcall_value_rex64_ms_sysv): Ditto.
1831 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1832 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1833 constraint for operand 1.
1834 (*sibcall_value_pop_vzeroupper): Ditto.
1835 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1836 and "z" constraint for operand 2.
1837 (*tls_global_dynamic_32_gnu): Ditto.
1838 (*tls_local_dynamic_base_32_gnu): Ditto.
1839 (*tls_local_dynamic_base_64): Ditto.
1840 (*tls_local_dynamic_32_once): Ditto.
1841 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1843 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1845 2011-05-16 Richard Guenther <rguenther@suse.de>
1847 * gimple.c (gimple_types_compatible_p_1): Use names of the
1848 type itself, not its main variant.
1849 (iterative_hash_gimple_type): Likewise.
1851 2011-05-16 Richard Guenther <rguenther@suse.de>
1853 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1854 always visit pointer target and function result and argument types.
1856 2011-05-16 Jason Merrill <jason@redhat.com>
1859 * tree-inline.c (copy_statement_list): Put back recursion.
1861 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1865 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1866 * config/avr/avr.md ("*ior<mode>qi.byte0",
1867 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1869 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1872 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1873 register is needed for a function argument.
1875 2011-05-16 Richard Guenther <rguenther@suse.de>
1877 * gimple.c (struct type_hash_pair): New type.
1878 (type_hash_pair_compare): New function.
1879 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1881 2011-05-16 Revital Eres <revital.eres@linaro.org>
1883 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1885 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1887 * config/i386/i386.md (floating point move splitters): Fix
1888 usage of standard_80387_constant_p.
1889 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1891 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1893 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1895 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1897 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1898 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1899 (tree_ssa_lim_finalize): Likewise.
1901 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1903 * config/i386/constraint.md (Yd, Yx): New register constraints.
1904 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1905 Yd conditional register constraint.
1906 (*movtf_internal): Use standard_sse_constant_opcode.
1907 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1908 Yx conditional register constraint.
1909 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1910 Yd conditional register constraint. Use standard_sse_constant_p to
1911 check for valid SSE constants and call standard_sse_constant_opcode to
1913 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1914 constants and call standard_sse_constant_opcode to output SSE insn.
1915 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1916 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1917 optimize_size is set.
1918 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1920 2011-05-14 Tobias Burnus <burnus@net-b.de>
1922 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1924 2011-05-13 Martin Jambor <mjambor@suse.cz>
1926 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1927 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1928 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1929 (evaluate_conditions_for_ipcp_clone): Removed.
1930 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1931 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1932 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1934 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1936 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1937 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1938 lieu of MAY_HAVE_DEBUG_STMTS.
1939 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1940 debug statements if !MAY_HAVE_DEBUG_STMTS.
1942 2011-05-13 Martin Thuresson <martint@google.com>
1944 PR gcov-profile/47793
1945 * libgcov.c (gcov_exit): Support relative profile paths.
1946 * doc/invoke.texi (-fprofile-dir): Update for above change.
1948 2011-05-13 Richard Guenther <rguenther@suse.de>
1950 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1951 type-pair caching, do not compare hashes.
1953 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1956 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1957 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1959 2011-05-13 Kai Tietz <ktietz@redhat.com>
1961 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1962 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1963 compatible type for TRUTH_NOT_EXPR.
1965 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1967 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1968 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1969 can_create_pseudo_p ().
1971 2011-05-13 Richard Guenther <rguenther@suse.de>
1974 * gimple.c (iterative_hash_gimple_type): Revert change in
1975 pointer target and function result and argument hashing.
1977 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1979 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1980 (*movxf_internal_nointeger): Ditto.
1981 (*movdf_internal_rex64): Ditto.
1982 (*movdf_internal): Ditto.
1983 (*movdf_internal_nointeger): Ditto.
1984 (*movsf_internal): Ditto.
1985 (sincos splitters): Use can_create_pseudo ().
1987 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1989 * config/i386/i386-opts.h: New.
1990 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1991 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1992 ix86_section_threshold): Remove.
1993 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1994 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1996 (ix86_option_override_internal): Don't decode strings for options
1997 other than -march=, -mtune= and -mfpmath=. Don't allow for
1998 __attribute__ uses in remaining diagnostics for options with
1999 string arguments. Don't check for integer arguments being negative.
2000 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2001 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2002 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2003 ix86_branch_cost, ix86_section_threshold): Remove.
2004 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2006 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2008 (masm=): Use Enum and Init.
2009 (asm_dialect): New Enum and EnumValue entries.
2010 (mbranch-cost=): Use UInteger.
2011 (mlarge-data-threshold=): Use UInteger and Init.
2012 (mcmodel=): Use Enum and Init.
2013 (cmodel): New Enum and EnumValue entries.
2014 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2015 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2016 mregparm=): Use UInteger.
2017 (mstringop-strategy=): Use Enum and Init.
2018 (stringop_alg): New Enum and EnumValue entries.
2019 (mtls-dialect=): Use Enum and Init.
2020 (tls_dialect): New Enum and EnumValue entries.
2021 (mabi=): Use Enum and Init.
2022 (calling_abi): New Enum and EnumValue entries.
2023 (mveclibabi=): Use Enum and Init.
2024 (ix86_veclibabi): New Enum and EnumValue entries.
2026 2011-05-13 Nick Clifton <nickc@redhat.com>
2028 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2029 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2031 2011-05-13 Kai Tietz <ktietz@redhat.com>
2034 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2035 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2036 (gimple_boolify): Check for cast for boolean_type_node instead for
2039 2011-05-13 Richard Guenther <rguenther@suse.de>
2041 PR tree-optimization/48172
2042 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2043 multiplying by number of iterations for equal step.
2044 (vect_create_cond_for_alias_checks): Likewise.
2046 2011-05-13 Andreas Schwab <schwab@redhat.com>
2048 * configure.ac: Use AS_HELP_STRING throughout.
2049 * configure: Regenerate.
2051 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2053 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2054 (ix86_emit_restore_regs_using_mov): Likewise.
2055 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2057 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2059 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2060 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2061 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2062 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2063 RTX_OK_FOR_OLO10_P): ...here.
2064 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2067 2011-05-12 Kai Tietz <ktietz@redhat.com>
2069 * gimplify.c (gimple_boolify): Re-boolify expression
2070 arguments even if expression type is of kind BOOLEAN_TYPE.
2071 (gimplify_boolean_expr): Removed.
2072 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2073 and XOR. Additional take care that we keep expression's type.
2074 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2075 of TRUTH_AND|OR|XOR_EXPR.
2077 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2079 PR tree-optimization/48975
2080 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2081 on all bbs here and free and clear ifc_bbs at the end.
2083 2011-05-12 Richard Guenther <rguenther@suse.de>
2085 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2086 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2087 until after simple checks.
2088 (gimple_types_compatible_p): Likewise.
2089 (iterative_hash_gimple_type): Always hash pointer targets
2090 and function return and argument types.
2091 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2092 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2093 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2094 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2095 completely in the simple compare section.
2096 (gimple_register_canonical_type): Query the cache again after
2099 2011-05-12 Richard Guenther <rguenther@suse.de>
2101 PR tree-optimization/48172
2102 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2103 the number of iterations from the segment size calculation.
2104 (vect_create_cond_for_alias_checks): Adjust.
2106 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2109 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2110 if validate_subreg fails.
2112 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2114 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2115 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2118 2011-05-12 DJ Delorie <dj@redhat.com>
2120 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2121 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2122 created builtin into rx_builtins array.
2123 (rx_builtin_decl): New function.
2124 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2126 2011-05-12 DJ Delorie <dj@redhat.com>
2127 Nick Clifton <nickc@redhat.com>
2129 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2130 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2131 (rx_is_legitimate_address): Add pre-decrement and post-increment
2132 addressing in HImode and QImode. Fix test for out of range
2134 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2135 (rx_align_for_label): Test label before extracting its usage count.
2136 (rx_adjust_insn_lengths): Fix selection of insn codes.
2137 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2139 2011-05-11 Jason Merrill <jason@redhat.com>
2141 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2143 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2145 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2146 reindent the subsequent block.
2148 2011-05-11 Satoru Takabayashi <satorux@google.com>
2149 Paul Pluzhnikov <ppluzhnikov@google.com>
2151 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2152 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2153 * config.in: Add LINKER_HASH_STYLE.
2154 * configure.ac: Add --with-linker-hash-style.
2155 * configure: Regenerate.
2157 2011-05-11 Richard Guenther <rguenther@suse.de>
2160 * gimple.c (iterative_hash_canonical_type): Fix typo.
2162 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2164 * config/i386/i386.c (legitimize_tls_address)
2165 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2166 expanders directly for TARGET_GNU2_TLS. Determine pic and
2167 __tls_get_addr symbol reference here. Update call to
2168 gen_tls_global_dynamic_{32,64} for added arguments.
2169 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2170 expanders directly for TARGET_GNU2_TLS. Determine
2171 __tls_get_addr symbol reference here. Update call to
2172 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2173 unique UNSPEC REG_EQUIV to libcall block.
2174 (ix86_tls_get_addr): Declare static.
2175 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2176 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2177 Do not determine pic and __tls_get_addr symbol reference here. Do not
2178 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2179 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2180 (tls_global_dynamic_64): Add operand 2. Do not determine
2181 __tls_get_addr symbol reference here. Do not call
2182 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2183 (tls_local_dynamic_base64): Ditto for operand 1.
2185 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2187 * function.c (expand_function_start): Initialize stack_check_probe_note
2188 only if the generic stack checking mechanism is used.
2190 2011-05-11 Richard Guenther <rguenther@suse.de>
2192 PR tree-optimization/15256
2193 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2194 (A & B) | C, combine (A op CST1) op CST2.
2195 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2196 visit assigns that have uses.
2198 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2200 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2201 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2202 (unpack_ts_type_common_value_fields): ...this. Update comment.
2203 (unpack_value_fields): Adjust for renaming.
2204 (lto_input_ts_type_tree_pointers): Split into...
2205 (lto_input_ts_type_common_tree_pointer): ...this and...
2206 (lto_input_ts_type_non_common_tree_pointers): ...this.
2207 (lto_input_tree_pointers): Adjust for above split.
2208 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2209 (pack_ts_type_common_value_fields): ...this. Update comment.
2210 (lto_output_ts_type_tree_pointers): Split into...
2211 (lto_output_ts_type_common_tree_pointers): ...this and...
2212 (lto_output_ts_type_non_common_tree_pointers): ...this.
2213 (lto_output_tree_pointers): Adjust for above split.
2214 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2215 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2216 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2217 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2219 (struct tree_type): Split into...
2220 (struct tree_type_common: ...this and...
2221 (struct tree_type_with_lang_specific): ...this and...
2222 (struct tree_type_non_common): ...this. Adjust accessor macros
2224 (TYPE_VALUES_RAW): Define.
2225 (union tree_node): Update for above changes.
2226 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2228 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2229 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2230 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2231 * treestructu.def (TS_TYPE): Remove.
2232 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2235 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2238 * tree-ssa.c (reset_debug_uses): New function.
2239 * tree-flow.h (reset_debug_uses): New prototype.
2240 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2241 * tree-loop-distribution.c (generate_loops_for_partition): Call
2242 reset_debug_uses on the stmts that will be removed. Keep around
2243 all debug stmts, don't count them as bits in partition bitmap.
2244 (generate_builtin): Don't count debug stmts or labels as bits in
2247 2011-05-11 Richard Guenther <rguenther@suse.de>
2249 * gimple.c (gimple_type_hash_1): Merge with ...
2250 (gimple_type_hash): ... this.
2251 (gtc_visit): Remove mode parameter and simplify accordingly.
2252 (gimple_types_compatible_p_1): Likewise.
2253 (gimple_types_compatible_p): Likewise.
2254 (iterative_hash_gimple_type): Likewise.
2256 (gimple_type_eq): Adjust.
2258 2011-05-11 Revital Eres <revital.eres@linaro.org>
2260 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2261 enters the branch create an anti edge in the opposite direction
2262 to prevent the creation of reg-moves.
2263 * modulo-sched.c: Adjust comment to reflect the fact we are
2264 scheduling closing branch.
2265 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2266 (stage_count): New field in struct partial_schedule.
2267 (calculate_stage_count): New function.
2268 (normalize_sched_times): Rename to reset_sched_times and handle
2269 incrementing the sched time of the nodes by a constant value
2270 passed as parameter.
2271 (duplicate_insns_of_cycles): Skip closing branch.
2272 (sms_schedule_by_order): Schedule closing branch.
2273 (ps_insn_find_column): Handle closing branch.
2274 (sms_schedule): Call reset_sched_times and adjust the code to
2275 support scheduling of the closing branch.
2276 (ps_insert_empty_row): Update calls to normalize_sched_times
2277 and rotate_partial_schedule functions.
2279 2011-05-11 Richard Guenther <rguenther@suse.de>
2282 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2284 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2286 * opts.c (finish_options): Move warning settings from process_options.
2287 * toplev.c (process_options): Move warning settings to finish_options.
2289 2011-05-11 Richard Guenther <rguenther@suse.de>
2291 PR tree-optimization/18041
2292 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2293 (simplify_bitwise_binary): ... this. Handle operand conversions
2294 by applying them to the result instead.
2295 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2297 2011-05-11 Richard Guenther <rguenther@suse.de>
2299 * gimple.c (gimple_canonical_types_compatible_p): Split out
2300 from gimple_types_compatible_p and friends. Do not recurse
2301 to pointed-to types.
2302 (gimple_canonical_type_eq): Use it.
2303 (iterative_hash_canonical_type): Split out from
2304 iterative_hash_gimple_type and friends. Do not recurse
2305 to pointed-to types.
2306 (gimple_canonical_type_hash): Use it, allocate the hash here.
2308 2011-05-11 Revital Eres <revital.eres@linaro.org>
2310 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2313 2011-05-11 Revital Eres <revital.eres@linaro.org>
2315 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2316 instead of PREV_INSN.
2318 2011-05-11 Revital Eres <revital.eres@linaro.org>
2320 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2321 * loop-doloop.c (doloop_condition_get): Likewise.
2322 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2324 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2326 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2328 * tree.def (CASE_LABEL_EXPR): Add an operand.
2329 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2331 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2333 * c-decl.c (c_override_global_bindings_to_false): Remove.
2334 (global_bindings_p): Don't check
2335 c_override_global_bindings_to_false.
2336 * c-tree.h (c_override_global_bindings_to_false): Remove.
2337 * c-typeck.c (composite_type): Don't set
2338 c_override_global_bindings_to_false.
2340 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2342 PR target/48857, 48495
2343 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2345 (VSX_MOVE_MODE): Ditto.
2346 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2347 VSX vector types. Add V2DImode.
2348 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2349 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2350 (MODES_TIEABLE_P): Ditto.
2352 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2353 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2355 (init_cumulative_args): Ditto.
2356 (rs6000_function_arg_boundary): Ditto.
2357 (rs6000_function_arg_advance_1): Ditto.
2358 (rs6000_function_arg): Ditto.
2359 (rs6000_function_ok_for_sibcall): Ditto.
2360 (emit_frame_save): Ditto.
2361 (rs6000_function_value): Ditto.
2362 (rs6000_libcall_value): Ditto.
2364 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2366 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2367 i386/darwin-lib.h to $libgcc_tm_file.
2368 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2370 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2372 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2374 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2376 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2377 * config/rs6000/rs6000-tables.opt: New file (generated).
2378 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2379 rs6000/rs6000-tables.opt to extra_options.
2380 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2381 * config/rs6000/rs6000.c (rs6000_select): Remove.
2382 (processor_target_table): Move contents to rs6000-cpus.def.
2383 (darwin_rs6000_override_options): Check
2384 global_options_set.x_rs6000_cpu_index instead of
2385 rs6000_select[1].string.
2386 (rs6000_option_override_internal): Likewise.
2387 (rs6000_handle_option): Don't assert that global structures are in
2388 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2389 (rs6000_default_cpu): New variable.
2390 (rs6000_file_start): Set it instead of local default_cpu. Check
2391 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2392 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2393 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2394 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2395 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2396 rs6000_select): Remove.
2397 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2399 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2400 * config/rs6000/t-rs6000
2401 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2402 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2403 global_options_set.x_rs6000_cpu_index instead of
2404 rs6000_select[1].string.
2405 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2406 global_options_set.x_rs6000_cpu_index instead of
2407 rs6000_select[1].string.
2409 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2411 * config.gcc (libgcc_tm_file): Define instead of including files
2412 from ../../libgcc/config/ in tm_file.
2413 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2414 * configure: Regenerate.
2415 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2416 libgcc_tm.h, cs-libgcc_tm.h): New.
2417 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2418 (clean): Remove libgcc_tm.h.
2419 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2420 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2421 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2423 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2426 * config/avr/avr.c (avr_ret_register): Return unsigned int
2428 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2429 it to avr_libcall_value.
2430 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2432 (avr_expand_binop_builtin): Ditto.
2433 (avr_expand_unop_builtin): Ditto.
2435 2011-05-10 DJ Delorie <dj@redhat.com>
2437 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2438 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2439 * config/rx/rx.c (rx_align_for_label): Add label and
2440 uses_threshold parameters. Do not align when the label is not
2442 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2444 2011-05-10 Richard Guenther <rguenther@suse.de>
2446 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2447 a series of conversions and apply foldings similar to what
2449 (tree_ssa_forward_propagate_single_use_vars): Call it.
2451 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2453 PR tree-optimization/48611
2454 PR tree-optimization/48794
2455 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2456 referenced from RESX or EH_DISPATCH arguments.
2459 * dfp.c (decimal_to_decnumber): Handle conversion from
2460 dconst{1,2,m1,half}.
2462 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2464 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2465 for !flag_prefer_avx128.
2466 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2468 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2470 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2471 (fold_ternary_loc): Use expr_location_or.
2473 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2476 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2477 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2478 Pmode and mem_mode is not VOIDmode.
2480 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2482 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2483 TYPE_QUAL_RESTRICT): Convert to enum.
2485 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2487 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2488 (const_pow2_1_to_8_operand): Ditto.
2489 (const_pow2_1_to_128_operand): Ditto.
2490 (const_pow2_1_to_32768_operand): Ditto.
2491 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2492 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2493 in insn constraint to check integer value of operand 3.
2494 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2496 (PINSR_MODE): New mode iterator.
2497 (sse2p4_1): New mode attribute.
2498 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2499 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2500 iterator. Use const_int_operand instead of
2501 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2502 exact_log2 in insn constraint to check integer value of operand 3.
2504 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2506 * config/i386/sse.md (blendbits): Remove mode attribute.
2507 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2508 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2509 Check integer value of operand 3 in insn constraint.
2511 2011-05-09 Richard Guenther <rguenther@suse.de>
2513 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2515 (lto_symtab_merge): Likewise. Do not register types here.
2516 (lto_symtab_merge_decls_2): Likewise.
2517 (lto_symtab_merge_decls_1): Likewise.
2518 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2519 * gimple.c (enum gtc_mode): Declare.
2520 (gimple_types_compatible_p): Make static.
2522 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2524 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2525 temporary register to match Pmode.
2527 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2529 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2530 and *vec_concatv4si_1_avx.
2532 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2534 PR rtl-optimization/48927
2535 * ira-conflicts.c (commutative_constraint_p): Use
2536 recog_data.alternative_enabled_p to disable alternatives where
2537 "enabled" attribute is false.
2538 (get_dup_num): Ditto.
2539 * ira-lives.c (single_reg_class): Ditto.
2540 (ira_implicitly_set_insn_hard_regs): Ditto.
2542 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2544 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2545 (dataflow_set_preserve_mem_locs): Likewise.
2547 2011-05-09 Philipp Thomas <pth@suse.de>
2549 * config/mep/mep.c (mep_validate_vliw): Syntax description
2550 should not be translated.
2552 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2554 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2555 * config/mips/mips-tables.opt: New file (generated).
2556 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2557 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2558 MIPS_ARCH_OPTION_NATIVE): Define.
2559 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2561 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2562 mips_parse_cpu): Remove.
2563 (mips_cpu_info_from_opt, mips_default_arch): New.
2564 (mips_handle_option): Don't assert that global structures are in
2565 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2566 (mips_option_override): Use new variables and functions to set
2567 state of these options. Use strcmp to check for individual CPU names.
2568 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2570 * config/mips/mips.opt (march=): Use ToLower and Enum.
2571 (mips): Use ToLower, Enum and Var.
2572 (mtune=): Use ToLower and Enum.
2573 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2575 2011-05-08 Jan Hubicka <jh@suse.cz>
2577 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2578 Arrange type pairs to be UID ordered.
2579 (gimple_lookup_type_leader): Make inline.
2581 2011-05-09 Nick Clifton <nickc@redhat.com>
2584 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2588 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2591 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2593 * combine.c (simplify_comparison): Abstract out parts into...
2594 (simplify_compare_const): ... new function.
2595 (try_combine): Generalize parallel arithmetic/compare combining
2596 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2598 2011-05-08 Jan Hubicka <jh@suse.cz>
2600 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2601 (cgraph_create_virtual_clone): Call hooks once virtual clone
2603 * cgraph.h (cgraph_clone_node): Update prototype.
2604 * ipa-cp.c (ipcp_estimate_growth): Use
2605 estimate_ipcp_clone_size_and_time.
2606 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2607 * lto-cgraph.c (input_node): Update.
2608 * ipa-inline.c (recursive_inlining): Update.
2609 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2610 (evaluate_conditions_for_known_args): Break out from ...
2611 (evaluate_conditions_for_edge): ... here.
2612 (evaluate_conditions_for_ipcp_clone): New function.
2613 (inline_node_duplication_hook): Update clone summary based
2615 (estimate_callee_size_and_time): Rename to ...
2616 (estimate_node_size_and_time): take NODE instead of EDGE;
2617 take POSSIBLE_TRUTHS as argument.
2618 (estimate_callee_size_and_time): Update.
2619 (estimate_ipcp_clone_size_and_time): New function.
2620 (do_estimate_edge_time): Update.
2622 2011-05-08 Richard Guenther <rguenther@suse.de>
2626 * expmed.c (expand_shift_1): Compute adjusted constant shift
2629 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2631 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2633 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2635 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2637 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2639 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2641 2011-05-07 Jan Hubicka <jh@suse.cz>
2643 * ipa-inline-transform.c (inline_call): Account when program size
2645 * ipa-inline.c (relative_time_benefit): New function.
2646 (edge_badness): Reorganize to be power 2 based; fix thinko when
2647 computing badness for negative growth; update comments to match
2648 reality; better dumps.
2650 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2652 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2653 type to bool and adjust comment.
2654 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2655 (fold_mathfn_compare): Remove calls to global_bindings_p.
2656 (fold_inf_compare): Likewise.
2657 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2658 * c-tree.h (global_bindings_p): Adjust prototype.
2659 * c-decl.c (global_bindings_p): Return bool and simplify.
2661 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2663 PR tree-optimization/48837
2664 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2665 when accumulator transformation is performed.
2667 2011-05-06 Jan Hubicka <jh@suse.cz>
2669 * i386.h (ix86_tune_indices): Add
2670 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2671 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2672 * i386.c (initial_ix86_tune_features): Add
2673 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2674 (software_prefetching_beneficial_p): Remove predicate.
2675 (ix86_option_override_internal): Use new macro.
2677 2011-05-06 Jan Hubicka <jh@suse.cz>
2679 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2681 2011-05-06 Jan Hubicka <jh@suse.cz>
2683 * cgraph.c (cgraph_add_thunk): Create real function node instead
2684 of alias node; finalize it and mark needed/reachale; arrange visibility
2685 to be right and add it into the corresponding same comdat group list.
2686 (dump_cgraph_node): Dump thunks.
2687 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2688 cgraph_function_with_gimple_body_p,
2689 cgraph_first_function_with_gimple_body,
2690 cgraph_next_function_with_gimple_body): New functions.
2691 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2693 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2694 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2695 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2696 devirtualization when optimizing.
2697 (verify_cgraph_node): Verify thunks.
2698 (cgraph_analyze_function): Analyze thunks.
2699 (cgraph_mark_functions_to_output): Output thunks only in combination
2700 with function they are assigned to.
2701 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2702 alias into normal node.
2703 (assemble_thunks): New functoin.
2704 (cgraph_expand_function): Use it.
2705 * lto-cgraph.c (lto_output_node): Stream thunks.
2706 (input_overwrite_node): Stream in thunks.
2707 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2708 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2709 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2710 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2711 (inline_analyze_function): Do not care about thunk jump functions.
2712 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2713 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2714 cgraph_function_with_gimple_body_p.
2715 * passes.c (do_per_function_toporder): Use
2716 cgraph_function_with_gimple_body_p.
2717 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2718 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2719 (function_called_by_processed_nodes_p): Likewise.
2721 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2723 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2724 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2726 (mabi=): Replace with separate entries for mabi=altivec,
2727 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2728 mabi=ieeelongdouble and mabi=ibmlongdouble.
2729 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2730 check for -mabi=spe without SPE ABI support here.
2731 (rs6000_handle_option): Replace OPT_mabi_ handling with
2732 OPT_mabi_altivec and OPT_mabi_spe handling.
2734 2011-05-06 Cary Coutant <ccoutant@google.com>
2736 * dwarf2out.c (contains_subprogram_definition): New function.
2737 (should_move_die_to_comdat): Call it.
2739 2011-05-06 Jeff Law <law@redhat.com>
2741 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2742 remove_ctrl_stmt_and_useless_edges.
2743 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2744 (fixup_template_block, thread_single_edge): Likewise.
2745 (mark_threaded_blocks): Use THREAD_TARGET.
2747 2011-05-06 Alan Modra <amodra@gmail.com>
2750 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2751 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2753 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2755 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2756 constraint modifier to "r".
2758 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2760 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2761 fall through for OPT_mcmodel_.
2763 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2765 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2767 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2769 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2772 * config/arm/arm.opt (marm): Document it.
2773 (mthumb): Reject negative variant.
2775 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2778 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2779 Fix typo in "ccvt" variable name.
2781 2011-05-06 Tristan Gingold <gingold@adacore.com>
2784 * config/vms/vms-ar.c (main): Remove cwd variable.
2786 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2789 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2791 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2793 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2794 * gimplify.c (gimplify_switch_expr): Likewise.
2795 * omp-low.c (expand_omp_sections): Likewise.
2796 * tree-eh.c (lower_try_finally_switch): Likewise.
2797 (lower_eh_dispatch): Likewise.
2798 * tree.h (build_case_label): Declare.
2799 * tree.c (build_case_label): Define.
2801 2011-05-05 Jason Merrill <jason@redhat.com>
2804 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2805 (copy_statement_list): Don't recurse.
2806 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2809 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2811 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2812 through from -mfpu= handling.
2813 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2815 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2817 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2820 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2822 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2824 (hppa[12]*-*-hpux11*): Ditto.
2825 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2826 * config/ia64/hpux-unix2003.h: New.
2827 * config/pa/pa-hpux1131.opt: New.
2828 * config/pa/pa-hpux1131.h: New.
2829 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2830 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2831 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2833 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2836 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2837 instead of mode as 3rd argument to recursive call.
2838 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2839 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2841 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2842 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2843 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2844 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2846 2011-05-05 Julian Brown <julian@codesourcery.com>
2848 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2849 parenthesis in D-register case.
2851 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2853 * opt-functions.awk (var_type_struct): Handle Enum options.
2854 * optc-gen.awk: Don't check range of variables of character type.
2855 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2856 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2857 rs6000_sdata_name, rs6000_explicit_options): Remove.
2858 (rs6000_option_override_internal): Check for -malign-power here.
2859 Use global_options_set instead of rs6000_explicit_options.
2860 (rs6000_parse_fpu_option): Remove.
2861 (rs6000_handle_option): Access variables via opts and opts_set
2862 pointers. Use error_at and warning_at. Add fall-through
2863 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2864 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2865 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2866 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2867 here. Don't use rs6000_parse_fpu_option.
2868 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2869 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2870 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2872 (mspe): Use Var and Save.
2873 (mtraceback=): Use Enum and Var.
2874 (rs6000_traceback_type): New Enum and EnumValue entries.
2875 (mfloat-gprs=): Use Enum, Var and Save.
2876 (rs6000_float_gprs): New Enum and EnumValue entries.
2877 (mlong-double-): use Var and Save.
2878 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2879 (malign-): Use Enum and Var.
2880 (rs6000_alignment_flags): New Enum and EnumValue entries.
2882 (fpu_type_t): New Enum and EnumValue entries.
2883 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2884 global_options_set instead of rs6000_explicit_options.
2885 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2886 global_options_set instead of rs6000_explicit_options.
2887 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2888 global_options_set instead of rs6000_explicit_options.
2889 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2890 global_options_set instead of rs6000_explicit_options.
2891 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2892 global_options_set instead of rs6000_explicit_options.
2893 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2894 global_options_set instead of rs6000_explicit_options.
2895 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2897 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2898 global_options_set instead of rs6000_explicit_options.
2899 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2900 (rs6000_cmodel): New Enum and EnumValue entries.
2901 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2902 global_options_set instead of rs6000_explicit_options.
2903 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2904 (mtls-size=): Use Enum and Var.
2905 (rs6000_tls_size): New Enum and EnumValue entries.
2907 2011-05-05 Michael Matz <matz@suse.de>
2909 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2910 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2911 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2912 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2913 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2914 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2915 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2916 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2917 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2918 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2919 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2920 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2921 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2922 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2923 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2924 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2926 2011-05-05 Richard Guenther <rguenther@suse.de>
2928 * expmed.c (expand_variable_shift): Rename to ...
2929 (expand_shift_1): ... this. Take an expanded shift amount.
2930 For rotates recurse directly not building trees for the shift amount.
2931 (expand_variable_shift): Wrap around expand_shift_1.
2932 (expand_shift): Adjust.
2934 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2936 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2938 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2940 * tree.h (get_pending_sizes): Remove prototype.
2941 (put_pending_size): Likewise.
2942 (put_pending_sizes): Likewise.
2943 * stor-layout.c (pending_sizes): Delete.
2944 (get_pending_sizes): Likewise.
2945 (put_pending_size): Likewise.
2946 (put_pending_sizes): Likewise.
2947 (variable_size): Do not call put_pending_size and tidy up.
2948 * function.h (struct function): Remove dont_save_pending_sizes_p.
2949 * lto-streamer-in.c (input_function): Do not stream it.
2950 * lto-streamer-out.c (output_function): Likewise.
2951 * tree-inline.c (initialize_cfun): Do not copy it.
2952 * c-decl.c (store_parm_decls): Do not set it.
2953 * omp-low.c (create_task_copyfn): Likewise.
2954 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2956 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2958 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2960 (*movdf_internal): Ditto.
2961 (*movdf_internal_nointeger): Ditto.
2962 (*movsf_internal): Ditto.
2964 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2966 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2967 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2968 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2969 (c_variable_size): Remove.
2970 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2971 call put_pending_sizes.
2972 (get_parm_info): Add parameter expr. Use it to set
2973 arg_info->pending_sizes.
2974 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2976 * c-parser.c (c_parser_parms_declarator): Update call to
2977 c_parser_parms_list_declarator.
2978 (c_parser_parms_list_declarator): Take parameter expr. Update
2979 call to push_parm_decl. Update recursive call. Don't call
2980 get_pending_sizes. Update calls to get_parm_info.
2981 (c_parser_objc_method_definition): Update calls to
2982 c_parser_objc_method_decl and objc_start_method_definition.
2983 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2984 (c_parser_objc_method_decl): Add parameter expr. Update call to
2986 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2987 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2988 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2990 2011-05-05 Michael Hope <michael.hope@linaro.org>
2993 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2996 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2998 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2999 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3000 (spu_output_mi_thunk): New function.
3002 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3004 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3005 targetm.asm_out.print_operand.
3006 * config/sol2.c: Include target.h.
3008 2011-05-04 Jan Hubicka <jh@suse.cz>
3010 * ipa-inline.c (reset_edge_caches): New function.
3011 (update_caller_keys): Add check_inlinablity_for; do not
3012 reset edge caches; remove now unnecesary loop.
3013 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3014 (update_all_callee_keys): Likewise.
3015 (inline_small_functions): Sanity check cache; update code
3018 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3020 PR rtl-optimization/47612
3021 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3022 as the last insn of the sequence to be moved.
3024 2011-05-04 Tobias Burnus <burnus@net-b.de>
3027 * doc/invoke.texi (Ofast): Document that it
3028 enables Fortran's -fno-protect-parens.
3030 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3032 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3034 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3036 * stor-layout.c (variable_size): Do not issue errors.
3038 2011-05-04 Richard Guenther <rguenther@suse.de>
3040 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3041 for array-ref indices.
3042 (tree_coverage_counter_addr): Likewise.
3043 (build_fn_info_type): Use size_int for index types.
3044 (build_gcov_info): Likewise.
3046 2011-05-04 Richard Guenther <rguenther@suse.de>
3048 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3050 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3051 for constructor indices.
3052 (push_init_level): Likewise.
3054 2011-05-04 Richard Guenther <rguenther@suse.de>
3056 * explow.c (promote_mode): Move variable declarations before code.
3058 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3060 * tree.h (build_function_type_array): Declare.
3061 (build_varargs_function_type_array): Declare.
3062 (build_function_type_vec, build_varargs_function_type_vec): Define.
3063 * tree.c (build_function_type_array_1): New function.
3064 (build_function_type_array): New function.
3065 (build_varargs_function_type_array): New function.
3067 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3069 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3070 before setting STMT_VINFO_TYPE.
3072 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3074 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3075 instead of spu_pass_by_reference.
3077 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3079 * calls.c (emit_library_call_value_1): Invoke
3080 promote_function_mode hook on libcall arguments.
3081 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3082 argument being NULL.
3083 * targhooks.c (default_promote_function_mode): Lisewise.
3084 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3085 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3087 * doc/tm.texi: Document that TYPE argument might be NULL.
3089 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3091 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3093 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3096 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3098 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3100 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3101 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3103 * mips-tfile.c: ... here.
3104 Don't include coretypes.h, tm.h, filenames.h.
3105 (saber_stop): Remove definition and all calls.
3106 [__SABER__]: Remove.
3107 (__LINE__): Remove default.
3108 (Size_t, Ptrdiff_t): Remove definitions.
3109 Replace by size_t, ptrdiff_t.
3110 [!MIPS_DEBUGGING_INFO]: Remove.
3111 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3112 (progname): Add const.
3114 Replace all uses by static.
3115 (ALIGN_SYMTABLE_OFFSET): Remove default.
3116 * mips-tdump.c: Don't include coretypes.h, tm.h.
3117 Remove !MIPS_IS_STAB guard.
3118 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3119 $(TM_H), filenames.h dependencies.
3120 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3122 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3125 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3126 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3128 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3131 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3132 account and save/restore RETS.
3133 (PROFILE_BEFORE_PROLOGUE): Define.
3134 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3135 the push insn to use predecrement.
3137 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3140 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3142 2011-05-04 Nick Clifton <nickc@redhat.com>
3144 * config/mn10300/mn10300.c: Include cfgloop.h.
3146 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3147 Lcc or a FLcc insn into the instruction stream.
3148 (mn10300_block_contains_call): New function. Returns true if the
3149 given basic block contains a CALL insn.
3150 (mn10300_loop_contains_call_insn): New function. Returns true if
3151 the given loop contains a CALL insn.
3152 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3153 to use the SETLB and Lcc or FLcc insns.
3154 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3155 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3156 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3157 disable the SETLB optimization.
3158 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3159 __SETLB__ or __NO_SETLB__.
3160 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3161 (movsf_internal): Handle MDR register.
3162 (cmpsi): Make visible.
3163 (setlb): New pattern.
3165 (FLcc): New pattern.
3167 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3170 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3171 for reg<->xmm moves.
3172 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3173 (vec_concatv2di_rex64_sse): Ditto.
3174 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3175 (*vec_extractv2di_1_rex64): Ditto.
3178 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3180 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3182 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3184 2011-05-04 Richard Guenther <rguenther@suse.de>
3186 * tree.h (int_const_binop): Remove notrunc argument.
3187 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3188 create integer constants that are properly truncated.
3189 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3190 (const_binop): Remove zero notrunc argument to int_const_binop.
3191 (size_binop_loc): Likewise.
3192 (fold_div_compare): Likewise.
3193 (maybe_canonicalize_comparison_1): Likewise.
3194 (fold_comparison): Likewise.
3195 (fold_binary_loc): Likewise.
3196 (multiple_of_p): Likewise.
3197 * expr.c (store_constructor): Likewise.
3198 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3199 (maybe_fold_stmt_addition): Likewise.
3200 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3201 * stor-layout.c (layout_type): Likewise.
3202 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3203 * tree-sra.c (build_ref_for_offset): Likewise.
3204 (build_user_friendly_ref_for_offset): Likewise.
3205 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3206 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3207 * tree-ssa-loop-niter.c (inverse): Likewise.
3208 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3209 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3210 * tree-switch-conversion.c (check_range): Likewise.
3211 (build_constructors): Likewise.
3212 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3213 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3214 (extract_range_from_assert): Likewise.
3215 (vrp_int_const_binop): Likewise.
3216 (extract_range_from_binary_expr): Likewise.
3217 (extract_range_from_unary_expr): Likewise.
3218 (check_array_ref): Likewise.
3219 (find_case_label_range): Likewise.
3220 (simplify_div_or_mod_using_ranges): Likewise.
3221 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3222 comparing case labels for merging.
3224 2011-05-03 Mark Wielaard <mjw@redhat.com>
3226 * dwarf2out.c (debug_str_hash_forced): Removed.
3227 (gen_label_for_indirect_string): Removed.
3228 (get_debug_string_label): Removed.
3229 (AT_string_form): Generate label directly.
3230 (output_indirect_string): Test indirect_string_node for
3231 DW_FORM_strp instead of checking label and refcount.
3232 (prune_indirect_string): Removed.
3233 (prune_unused_types): Don't check debug_str_hash_forced or
3234 call prune_indirect_string.
3236 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3239 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3241 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3245 * combine.c (try_combine): Skip debug insns at m_split tests.
3247 2011-04-26 Mark Wielaard <mjw@redhat.com>
3250 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3251 when info_section_emitted.
3253 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3255 * config/mips/mips-opts.h: New.
3256 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3258 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3259 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3260 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3262 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3264 (mips_abi, mips_code_readable): Don't declare.
3265 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3266 (mabi=): Use Enum and Var.
3267 (mips_abi): New Enum and EnumValue entries.
3268 (mcode-readable=): Use Enum and Var.
3269 (mips_code_readable_setting): New Enum and EnumValue entries.
3270 (mr10k-cache-barrier=): Use Enum and Var.
3271 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3273 2011-05-03 Jan Hubicka <jh@suse.cz>
3275 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3276 replace hash by pointer map.
3277 (cgraph_node_set_element_def, cgraph_node_set_element,
3278 const_cgraph_node_set_element, varpool_node_set_element_def,
3279 varpool_node_set_element, const_varpool_node_set_element): Remove.
3280 (free_cgraph_node_set, free_varpool_node_set): New function.
3281 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3282 * tree-emutls.c: Free varpool node set.
3283 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3284 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3285 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3286 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3287 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3288 Move here from ipa.c; implement using pointer_map
3289 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3290 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3291 debug_cgraph_node_set, varpool_node_set_new,
3292 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3293 dump_varpool_node_set, debug_varpool_node_set):
3294 Move to ipa-uitls.c.
3295 * passes.c (ipa_write_summaries): Update.
3297 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3299 From Mike Frysinger:
3300 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3301 bf542/bf544/bf547/bf548/bf549.
3303 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3305 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3307 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3310 * config/bfin/bfin.md (MOVCC): New mode_macro.
3311 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3312 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3313 comments from generated assembly.
3315 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3318 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3319 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3320 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3321 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3322 * config/bfin/lib1funcs.asm (___muldi3): New function.
3324 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3326 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3327 build_function_type_list instead of build_function_type.
3328 Rearrange initialization of `args' to do so.
3330 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3332 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3333 instead of build_function_type.
3335 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3337 * config/rs6000/rs6000.c (spe_init_builtins): Call
3338 build_function_type_list instead of build_function_type.
3339 (paired_init_builtins, altivec_init_builtins): Likewise.
3340 (builtin_function_type): Likewise.
3342 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3344 * config/sh/sh.c (sh_media_init_builtins): Call
3345 build_function_type_list instead of build_function_type.
3347 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3349 * config/sparc/sparc.c (sparc_file_end): Call
3350 build_function_type_list instead of build_function_type.
3352 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3354 * config/alpha/alpha.c (alpha_init_builtins): Call
3355 build_function_type_list instead of build_function_type.
3357 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3359 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3360 build_function_type_list instead of build_function_type.
3362 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3364 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3365 build_function_type_list instead of build_function_type.
3366 Delete `endlink' variable.
3368 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3370 * config/avr/avr.c (avr_init_builtins): Call
3371 build_function_type_list instead of build_function_type.
3373 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3375 * config/picochip/picochip.c (picochip_init_builtins): Call
3376 build_function_type_list instead of build_function_type.
3377 Delete `endlink' variable.
3379 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3381 * config/bfin/bfin.c (bfin_init_builtins): Call
3382 build_function_type_list instead of build_function_type.
3384 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3387 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3388 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3390 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3393 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3394 libbffastfp overrides libgcc when -mfast-fp.
3396 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3398 Originally from Bernd Schmidt
3399 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3400 * config/bfin/bfin.c (override_options): Test it and error if
3403 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3405 Originally From Bernd Schmidt
3406 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3409 2011-05-03 Jeff Law <law@redhat.com>
3411 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3412 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3413 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3414 than accessing AUX field directly. Free the AUX field before
3416 (thread_block, thread_through_loop_header): Likewise.
3417 (thread_single_edge, mark_threaded_blocks): Likewise.
3418 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3419 (register_jump_thread): Do not attempt to thread to a NULL edge.
3421 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3423 * function.c (init_function_start): Call decide_function_section.
3424 * varasm.c (decide_function_section): New function.
3425 (assemble_start_function): When not using
3426 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3427 or first_function_block_is_cold.
3428 * rtl.h (decide_function_section): Declare.
3430 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3431 Jakub Jelinek <jakub@redhat.com>
3434 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3435 only succeed if req_mode is the same as set_mode.
3437 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3439 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3440 * genemit.c (gen_exp): Handle RETURN.
3441 * emit-rtl.c (verify_rtx_sharing): Likewise.
3442 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3443 * rtl.c (copy_rtx): RETURN is shared.
3444 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3446 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3447 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3448 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3449 * config/cris/cris.c (cris_expand_return): Likewise.
3450 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3451 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3452 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3453 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3454 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3456 * config/v850/v850.c (expand_epilogue): Likewise.
3457 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3458 * config/arm/arm.md (epilogue): Likewise.
3459 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3460 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3461 variable to ret_reg.
3463 2011-05-03 Richard Guenther <rguenther@suse.de>
3466 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3467 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3468 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3470 2011-05-03 Richard Guenther <rguenther@suse.de>
3472 * c-decl.c (grokdeclarator): Instead of looking at
3473 TREE_OVERFLOW check if the constant fits in the index type.
3475 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3477 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3478 (vec_store_lanes<mode><mode>): Likewise.
3480 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3482 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3483 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3484 convert_optab_index values.
3485 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3486 * genopinit.c (optabs): Initialize the new optabs.
3487 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3488 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3489 (expand_STORE_LANES): New functions.
3490 * tree.h (build_array_type_nelts): Declare.
3491 * tree.c (build_array_type_nelts): New function.
3492 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3493 (vect_model_load_cost): Likewise.
3494 (vect_store_lanes_supported, vect_load_lanes_supported)
3495 (vect_record_strided_load_vectors): Declare.
3496 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3497 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3498 (vect_transform_strided_load): Split out statement recording into...
3499 (vect_record_strided_load_vectors): ...this new function.
3500 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3501 (write_vector_array, create_array_ref): New functions.
3502 (vect_model_store_cost): Add store_lanes_p argument.
3503 (vect_model_load_cost): Add load_lanes_p argument.
3504 (vectorizable_store): Try to use store-lanes functions for
3506 (vectorizable_load): Likewise load-lanes and loads.
3507 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3508 to vect_model_store_cost.
3509 (vect_build_slp_tree): Likewise vect_model_load_cost.
3511 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3513 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3514 * hooks.c (hook_bool_mode_uhwi_false): New function.
3515 * target.def (array_mode_supported_p): New hook.
3516 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3517 * doc/tm.texi: Regenerate.
3518 * stor-layout.c (mode_for_array): New function.
3519 (layout_type): Use it.
3520 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3521 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3523 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3526 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3527 for -fstack-check if the size to allocate is negative.
3529 2011-05-02 Lawrence Crowl <crowl@google.com>
3531 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3532 (timevar_cond_start): New for starting a timer only when it is not
3534 (timevar_cond_stop): New for stopping a timer when it was not already
3537 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3538 (timevar_cond_start): New as above.
3539 (timevar_cond_stop): New as above.
3541 * timevar.def: Add start/stop timers for compiler phases,
3542 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3543 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3544 and TV_PHASE_FINALIZE.
3545 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3546 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3547 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3548 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3549 Make unused TV_OVERLOAD into a start/stop timer.
3551 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3552 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3553 to indicate that they are start/stop timers.
3555 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3556 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3557 Move initialization to do_compile.
3558 (do_compile): Add initialization from above.
3559 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3561 * c-decl.c (c_write_global_declarations): Add start/stop of
3562 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3564 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3565 or TV_PARSE_INLINE, as appropriate.
3566 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3567 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3569 2011-05-02 Jason Merrill <jason@redhat.com>
3572 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3574 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3577 * c-decl.c (finish_decl): Only create a composite if the types are
3580 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3582 * config/fr30/fr30-protos.h (Mmode): Don't define.
3583 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3584 definition where used.
3585 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3586 define. Expand definitions where used.
3587 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3588 Expand definitions where used.
3589 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3590 rx_function_arg, rx_function_arg_advance,
3591 rx_function_arg_boundary): Expand definitions of those macros.
3592 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3593 definition where used.
3595 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3597 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3599 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3600 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3601 with *movv2sf_internal_rex64_avx.
3602 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3603 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3604 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3605 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3606 "vex" in "prefix" attribute calculation.
3607 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3609 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3612 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3613 inputs match the output.
3615 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3618 * config/m68k/m68k.c (m68k_expand_prologue): Set
3619 current_function_static_stack_size.
3621 2011-05-02 Jan Hubicka <jh@suse.cz>
3623 * lto-streamer.c (lto_streamer_cache_insert_1,
3624 lto_streamer_cache_lookup, lto_streamer_cache_create,
3625 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3626 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3628 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3630 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3631 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3632 config/m68k/t-opts: New files.
3633 * config/m68k/m68k-tables.opt: New file (generated).
3634 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3635 extra_options and m68k/t-opts to tmake_file.
3636 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3637 (all_isas): Initialize using m68k-isas.def.
3638 (all_microarchs): Initialize using m68k-microarchs.def.
3639 (m68k_find_selection): Remove.
3640 (m68k_handle_option): Don't assert that global structures are in
3641 use. Use error_at. Access variables via opts pointer. Don't
3642 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3643 directly for -m68020-40 and -m68020-60.
3644 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3645 m68k_tune_entry here.
3646 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3648 (m68k_library_id_string): Remove declaration.
3649 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3650 (m68k_library_id_string): New Variable.
3651 (march=, mcpu=, mtune=): Use Enum and Var.
3653 2011-05-02 Richard Guenther <rguenther@suse.de>
3655 * varasm.c (output_constructor_regular_field): Compute zero-based
3656 index with double-ints. Make sure to ICE instead of producing
3658 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3659 in asserts. Properly use a signed type.
3661 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3663 * config/i386/sse.md (V): New mode iterator.
3664 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3666 (V_256): Rename from AVX256MODE.
3667 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3668 condition to all users.
3670 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3671 condition to all users.
3672 (VF_128): Make V4SF mode unconditional.
3673 (VF_256): Rename from AVX256MODEF2P.
3674 (VI4F_128): Rename from SSEMODE4S.
3675 (VI8F_128): Rename from SSEMODE2D.
3676 (VI4F_256): Rename from AVX256MODE8P.
3677 (VI8F_256): Rename from AVX256MODE4P.
3678 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3679 (ssescalarmodesuffix): Remove SF and DF modes.
3680 (SSEMODE124): Remove.
3681 (SSEMODE1248): Ditto.
3682 (SSEMODEF2P): Ditto.
3683 (AVXMODEF2P): Ditto.
3684 (AVXMODEFDP): Ditto.
3685 (AVXMODEFSP): Ditto.
3686 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3688 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3690 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3691 xop_pcmov_<mode>256. Use V mode iterator.
3693 Adjust RTX patterns globally for renamed mode attributes.
3695 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3697 * haifa-sched.c (sched_emit_insn): Emit insn before first
3698 non-scheduled insn. Inform back-end about new insn. Add
3699 new insn to scheduled_insns list.
3701 2011-05-02 Richard Guenther <rguenther@suse.de>
3703 PR tree-optimization/48822
3704 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3705 (process_scc): Indicate which iteration we start.
3707 2011-05-02 Jan Hubicka <jh@suse.cz>
3709 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3710 (lto_section_overrun): New.
3711 * lto-section-out.c (append_block): Rename to ...
3712 (lto_append_block): ... this one; export.
3713 (lto_output_1_stream): Move lto lto-streamer.h
3714 (lto_output_data_stream): Update.
3715 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3716 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3719 2011-05-02 Richard Guenther <rguenther@suse.de>
3721 * tree.c (tree_code_counts): New global array.
3722 (record_node_allocation_statistics): Count individual tree codes.
3723 (dump_tree_statistics): Dump individual code stats.
3725 2011-05-01 Jan Hubicka <jh@suse.cz>
3727 * ipa-inline.c (caller_growth_limits): Fix thinko when
3728 looking for largest stack frame.
3729 * ipa-inline.h (dump_inline_summary): Declare.
3730 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3732 (dump_inline_summary): Export.
3733 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3735 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3737 * reginfo.c (memory_move_cost): Change rclass argument type form
3738 'enum reg_class' to reg_class_t.
3739 * reload.h (memory_move_cost): Update prototype.
3740 * postreload.c reload_cse_simplify_set): Change type dclass var to
3742 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3744 (ira_allocate_and_set_costs): Change aclass argument type form
3745 'enum reg_class' to reg_class_t.
3746 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3747 Change aclass argument type to reg_class_t.
3748 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3750 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3751 memory_move_cost call.
3753 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3754 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3755 Change type tmp var to reg_class_t.
3757 2011-04-30 Jan Hubicka <jh@suse.cz>
3759 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3760 inlining into function with flatten attribute.
3761 (want_inline_small_function_p): Be more realistic about inlining
3762 cold calls where callee size grows.
3764 2011-04-30 Jan Hubicka <jh@suse.cz>
3766 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3769 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3771 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3772 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3773 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3774 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3775 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3776 (print_operand): Rename to...
3777 (sparc_print_operand): ...this. Make static. Adjust
3778 sparc_print_operand function call.
3779 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3782 2011-04-30 Jan Hubicka <jh@suse.cz>
3785 * ipa-inline.c (early_inliner): Disable when doing late
3786 addition of function.
3788 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3790 * dwarf2out.c (get_address_mode): New inline.
3791 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3792 if not dwarf_strict emit
3793 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3794 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3795 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3796 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3797 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3798 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3799 mem_loc_descriptor callers.
3800 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3801 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3802 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3803 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3804 (base_types): New variable.
3805 (get_base_type_offset, calc_base_type_die_sizes,
3806 base_type_for_mode, mark_base_types, base_type_cmp,
3807 move_marked_base_types): New functions.
3808 (calc_die_sizes): Assert that die_offset is 0 or equal to
3810 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3811 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3812 callers. If not dwarf_strict, call mem_loc_descriptor even for
3813 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3814 (gen_subprogram_die): Don't give up on call site parameters
3815 with non-integral or large integral modes. Adjust
3816 mem_loc_descriptor callers.
3817 (prune_unused_types): Call prune_unused_types_mark on base_types
3819 (resolve_addr): Call mark_base_types.
3820 (dwarf2out_finish): Call move_marked_base_types.
3822 PR tree-optimization/48809
3823 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3825 (gen_inbound_check): Don't compute index_expr - range_min in utype
3826 again, instead reuse SSA_NAME initialized in build_arrays.
3827 Remove two useless gsi_for_stmt calls.
3829 2011-04-29 Jeff Law <law@redhat.com>
3831 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3833 2011-04-29 Martin Jambor <mjambor@suse.cz>
3835 * cgraph.h (cgraph_postorder): Remove declaration.
3836 * ipa-utils.h (ipa_free_postorder_info): Declare.
3837 (ipa_reverse_postorder): Likewise.
3838 * cgraphunit.c: Include ipa-utils.h.
3839 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3840 * ipa-inline.c: Include ipa-utils.h.
3841 (ipa_inline): Update call to ipa_reverse_postorder.
3842 * ipa-pure-const.c (propagate_pure_const): Update call to
3843 ipa_reduced_postorder and ipa_print_order. Call
3844 ipa_free_postorder_info to clean up.
3845 (propagate_nothrow): Likewise.
3846 * ipa-reference.c (propagate): Removed a useless call to
3847 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3848 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3849 * ipa.c: Include ipa-utils.h.
3850 (ipa_profile): Update call to ipa_reverse_postorder.
3851 (cgraph_postorder): Moved to...
3852 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3853 (ipa_utils_print_order): Renamed to ipa_print_order.
3854 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3856 (ipa_free_postorder_info): New function.
3857 * passes.c: Include ipa-utils.h.
3858 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3859 (ipa_write_summaries): Likewise.
3860 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3861 (cgraphunit.o): Likewise.
3863 (ipa-inline.o): Likewise.
3865 2011-04-29 Jan Hubicka <jh@suse.cz>
3867 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3868 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3869 * ipa-inline.h (clause_t): Turn into unsigned int.
3870 * ipa-inline-analysis.c (add_clause): Do more simplification.
3871 (and_predicates): Shortcut more cases.
3872 (predicates_equal_p): Move forward; check that clauses are properly
3874 (or_predicates): Shortcut more cases.
3875 (edge_execution_predicate): Rewrite as...
3876 (set_cond_stmt_execution_predicate): ... this function; handle
3877 __builtin_constant_p.
3878 (set_switch_stmt_execution_predicate): New .
3879 (compute_bb_predicates): New.
3880 (will_be_nonconstant_predicate): Update TODO.
3881 (estimate_function_body_sizes): Use compute_bb_predicates
3882 and free them later, always try to estimate if stmt is constant.
3883 (estimate_time_after_inlining, estimate_size_after_inlining):
3884 Gracefully handle optimized out edges.
3885 (read_predicate): Fix off by one error.
3887 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3889 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3891 2011-04-27 Xinliang David Li <davidxl@google.com>
3893 * tree-profile.c (init_ic_make_global_vars): Set
3894 tls attribute on ic vars.
3895 * coverage.c (coverage_end_function): Initialize
3896 function_list with zero.
3898 2011-04-29 Richard Guenther <rguenther@suse.de>
3900 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3901 for the type of the result.
3902 (fold_builtin_isascii): Likewise.
3903 (fold_builtin_toascii): Use integer_type_node where appropriate.
3904 (fold_builtin_logb): Likewise.
3905 (fold_builtin_frexp): Likewise.
3906 (fold_builtin_strstr): Likewise.
3907 (fold_builtin_strpbrk): Likewise.
3908 (fold_builtin_fputs): Likewise.
3909 (fold_builtin_sprintf): Likewise.
3910 (fold_builtin_snprintf): Likewise.
3911 (fold_builtin_printf): Likewise.
3912 (do_mpfr_remquo): Use a proper type for the assigned constant.
3913 (do_mpfr_lgamma_r): Likewise.
3914 * dwarf2out.c (resolve_one_addr): Use size_int.
3915 * except.c (init_eh): Likewise.
3916 (assign_filter_values): Use integer_type_node for filter values.
3917 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3919 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3920 for EH region numbers.
3921 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3922 for the shift amount.
3924 2011-04-29 Richard Guenther <rguenther@suse.de>
3926 * expr.h (expand_shift): Rename to ...
3927 (expand_variable_shift): ... this.
3928 (expand_shift): Take a constant shift amount.
3929 * expmed.c (expand_shift): Rename to ...
3930 (expand_variable_shift): ... this.
3931 (expand_shift): New wrapper around expand_variable_shift.
3932 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3933 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3934 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3935 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3936 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3937 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3938 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3939 emit_store_flag_1, emit_store_flag): Likewise.
3940 * builtins.c (expand_builtin_signbit): Likewise.
3941 * calls.c (load_register_parameters): Likewise.
3942 * function.c (assign_parm_setup_block): Likewise.
3943 * lower-subreg.c (resolve_shift_zext): Likewise.
3944 * optabs.c (widen_bswap, expand_abs_nojump,
3945 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3946 * spu/spu.c (spu_expand_extv): Likewise.
3947 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3949 2011-04-29 Richard Guenther <rguenther@suse.de>
3951 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3952 for the remapped region number.
3953 * predict.c (build_predict_expr): Use integer_type_node for the
3955 * fold-const.c (fold_binary_loc): Use integer_type_node for
3956 the shift amount. Use a proper type for the PLUS_EXPR operand.
3958 2011-04-29 Michael Matz <matz@suse.de>
3960 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3961 other trees that just builtins.
3962 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3964 2011-04-29 Richard Guenther <rguenther@suse.de>
3966 * tree-nested.c (get_trampoline_type): Use size_int.
3967 (get_nl_goto_field): Likewise.
3968 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3970 (lower_eh_constructs_2): Likewise.
3971 (lower_resx): Likewise.
3972 (lower_eh_dispatch): Likewise.
3973 * tree-mudflap.c (mf_build_string): Use size_int.
3974 (mudflap_register_call): Use integer_type_node for the flag.
3975 (mudflap_enqueue_constant): Use size_int.
3976 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3977 instead of rebuilding it.
3979 2011-04-29 Richard Guenther <rguenther@suse.de>
3981 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3982 Handle OBJ_TYPE_REF.
3983 (find_func_aliases_for_call): Use it more consistently.
3985 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3987 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3988 (rank_for_schedule): Use it.
3989 (schedule_block): Set it.
3991 2011-04-28 David Li <davidxl@google.com>
3993 * tree.c (crc32_string): Use crc32_byte.
3994 (crc32_byte): New function.
3995 * tree.h (crc32_byte): New function.
3996 * gcov.c (read_graph_file): Handle new cfg_cksum.
3997 (read_count_file): Ditto.
3998 * profile.c (instrument_values): Ditto.
3999 (get_exec_counts): Ditto.
4000 (read_profile_edge_counts): Ditto.
4001 (compute_branch_probabilities): Ditto.
4002 (compute_value_histograms): Ditto.
4003 (branch_prob): Ditto.
4004 (end_branch_prob): Ditto.
4005 * coverage.c (read_counts_file): Ditto.
4006 (get_coverage_counts): Ditto.
4007 (tree_coverage_counter_addr): Ditto.
4008 (coverage_checksum_string): Ditto.
4009 (coverage_begin_output): Ditto.
4010 (coverage_end_function): Ditto.
4011 (build_fn_info_type): Ditto.
4012 (build_fn_info_value): Ditto.
4013 * libgcov.c (gcov_exit): Ditto.
4014 * gcov-dump.c (tag_function): Ditto.
4015 (compute_checksum): Remove.
4017 2011-04-29 Alan Modra <amodra@gmail.com>
4019 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4020 unspec plus offset. Tidy macho code.
4022 2011-04-29 Martin Jambor <mjambor@suse.cz>
4024 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4025 node instead of a decl. Update all callers.
4026 * cgraph.h: Update declaration.
4028 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4030 PR tree-optimization/48765
4031 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4032 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4033 to indicate if loop aware SLP is being used. Scan the statements
4034 and update the vectorization factor according to the type of
4035 vectorization before statement analysis.
4036 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4037 pass it to vect_analyze_loop_operations.
4038 (vectorizable_reduction): Set number of copies to 1 in case of pure
4040 * tree-vect-stmts.c (vectorizable_conversion,
4041 vectorizable_assignment, vectorizable_shift,
4042 vectorizable_operation, vectorizable_type_demotion,
4043 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4045 (vectorizable_condition): Move the check that it is not SLP
4046 vectorization before the number of copies check.
4047 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4048 to vectorize the loop using SLP.
4050 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4053 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4056 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4058 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4059 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4060 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4061 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4062 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4064 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4065 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4066 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4067 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4068 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4069 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4071 * config/i386/linux.h (REG_NAME): Don't define.
4072 * config/i386/linux64.h (REG_NAME): Don't define.
4073 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4074 Undefine before defining.
4076 2011-04-28 Jan Hubicka <jh@suse.cz>
4078 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4079 nonconstant_names array.
4080 (estimate_function_body_sizes): Build nonconstant_names array; handle
4081 BUILT_IN_CONSTANT_P.
4083 2011-04-28 Richard Guenther <rguenther@suse.de>
4087 2011-04-28 Richard Guenther <rguenther@suse.de>
4089 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4090 as late as possible.
4092 2011-04-28 Richard Guenther <rguenther@suse.de>
4094 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4095 (debug_constraint): Do it here.
4096 (dump_constraints): And here.
4097 (rewrite_constraints): And here.
4098 (dump_constraint_edge): Remove.
4099 (dump_constraint_graph): Rewrite to produce DOT output.
4100 (solve_constraints): Build succ graph as late as possible.
4101 Dump constraint graphs before and after solving.
4103 2011-04-28 Richard Guenther <rguenther@suse.de>
4105 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4106 New function split out from ...
4107 (find_func_aliases): ... here. Call it.
4108 (find_func_aliases_for_call): Likewise.
4110 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4112 * internal-fn.h (internal_fn_name_array): Declare.
4113 (internal_fn_flags_array): Likewise.
4115 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4117 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4118 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4120 (ssemodefsuffix): Remove.
4121 (ssevecmodesuffix): New mode attribute.
4122 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4123 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4124 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4125 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4126 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4127 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4128 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4129 ssemodesuffix mode attribute.
4130 (float splitters): Use ssevecmodesuffix mode attribute.
4131 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4132 (sseinsmode): Rename from avxvecmode.
4133 (avxsizesuffix): Rename from avxmodesuffix.
4134 (sseintvecmode): Rename from avxpermvecmode.
4135 (ssedoublevecmode): Rename from ssedoublesizemode.
4136 (ssehalfvecmode): Rename from avxhalfvecmode.
4137 (ssescalarmode): Rename from avxscalarmode.
4138 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4139 templates for ssemodesuffix mode attribute.
4140 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4143 Adjust RTX patterns globally for renamed mode attributes.
4145 2011-04-27 Jan Hubcika <jh@suse.cz>
4147 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4148 * ipa-inline-analysis.c: Include alloc-pool.h.
4149 (edge_predicate_pool): New.
4150 (trye_predicate_p): New function
4151 (false_predicate_p): New function.
4152 (add_clause): Sanity check that false clauses are "optimized";
4153 never add clauses to predicate that is already known to be false.
4154 (and_predicate): Use flase_predicate_p.
4155 (evaulate_predicate): Rename to ...
4156 (evaluate_predicate): ... this one; update all callers; assert
4157 that false is not listed among possible truths.
4158 (dump_predicate): Use true_predicate_p.
4159 (account_size_time): Use false_predicate_p.
4160 (evaulate_conditions_for_edge): Rename to ...
4161 (evaluate_conditions_for_edge) ... this one.
4162 (edge_set_predicate): New function.
4163 (inline_edge_duplication_hook): Duplicate edge predicates.
4164 (inline_edge_removal_hook): Free edge predicates.
4165 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4166 (dump_inline_summary): Update.
4167 (estimate_function_body_sizes): Set edge predicates.
4168 (estimate_calls_size_and_time): Handle predicates.
4169 (estimate_callee_size_and_time): Update.
4170 (remap_predicate): Add toplev_predicate; update comment.
4171 (remap_edge_predicates): New function.
4172 (inline_merge_summary): Compute toplev predicate; update.
4173 (read_predicate): New function.
4174 (read_inline_edge_summary): Use it.
4175 (inline_read_section): Likewise.
4176 (write_predicate): New function.
4177 (write_inline_edge_summary): Use it.
4178 (inline_write_summary): Likewise.
4179 (inline_free_summary): Free alloc pool and edge summary vec.
4181 2011-04-27 Richard Guenther <rguenther@suse.de>
4183 * tree-ssa-structalias.c (changed_count): Remove.
4184 (changed): Use a bitmap.
4185 (unify_nodes): Adjust.
4186 (do_sd_constraint): Likewise.
4187 (do_ds_constraint): Likewise.
4188 (do_complex_constraint): Likewise.
4189 (solve_graph): Likewise.
4191 2011-04-27 Jan Hubicka <jh@suse.cz>
4193 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4195 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4197 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4198 (avx_vperm2f128_*_operand): Ditto.
4199 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4200 Use avx_vpermilp_parallel in insn condition.
4201 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4202 Use avx_vperm2f128_parallel in insn condition.
4204 2011-04-27 Richard Guenther <rguenther@suse.de>
4206 * Makefile.in (tree-ssa-structalias.o): Remove
4207 gt-tree-ssa-structalias.h dependency.
4208 (GTFILES): Remove tree-ssa-structalias.c.
4209 * tree.c (allocate_decl_uid): New function.
4210 (make_node_stat): Use it.
4211 (copy_node_stat): Likewise.
4212 * tree.h (allocate_decl_uid): Declare.
4213 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4214 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4215 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4216 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4217 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4218 (struct heapvar_map): Likewise.
4219 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4220 heapvar_insert): Likewise.
4221 (make_heapvar_for): Rename to ...
4222 (make_heapvar): ... this. Simplify.
4223 (fake_var_decl_obstack): New global var.
4224 (build_fake_var_decl): New function.
4225 (make_constraint_from_heapvar): Adjust.
4226 (handle_lhs_call): Likewise.
4227 (create_function_info_for): Likewise.
4228 (intra_create_variable_infos): Likewise.
4229 (init_alias_vars): Allocate fake_var_decl_obstack.
4230 (init_alias_heapvars, delete_alias_heapvars): Remove.
4231 (compute_points_to_sets): Do not call init_alias_heapvars.
4232 (ipa_pta_execute): Likewise.
4233 (delete_points_to_sets): Free fake_var_decl_obstack.
4235 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4237 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4238 (si_from_UTItype, si_to_UTItype): New functions.
4239 (__udivmodti4): Use them to implement type-punning.
4240 * config/spu/multi3.c (union qword_TItype): New data type.
4241 (si_from_TItype, si_to_TItype): New functions.
4242 (__multi3): Use them to implement type-punning.
4244 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4246 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4248 2011-04-27 Jan Hubicka <jh@suse.cz>
4250 * ipa-prop.c (function_insertion_hook_holder): New holder.
4251 (ipa_add_new_function): New function.
4252 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4253 Register/deregister holder.
4255 2011-04-27 Richard Guenther <rguenther@suse.de>
4257 PR tree-optimization/48772
4258 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4260 2011-04-27 Richard Guenther <rguenther@suse.de>
4262 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4263 TARGET_MEM_REF handling.
4265 2011-04-27 Nick Clifton <nickc@redhat.com>
4267 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4268 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4269 (REG_CLASS_NAMES): Likewise.
4270 (REG_CLASS_CONTENTS): Likewise.
4271 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4272 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4273 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4274 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4275 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4276 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4277 duplicate register classes.
4278 (frv_class_likely_spilled_p): Likewise.
4279 (frv_register_move_cost): Likewise.
4281 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4282 end of the regno_reg_class array.
4284 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4287 * c-typeck.c (build_binary_op): Don't wrap arguments if
4288 int_operands is true.
4290 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4293 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4294 targetm.calls.must_pass_in_stack for void type.
4296 2011-04-26 Jan Hubicka <jh@suse.cz>
4298 * cgraphbuild.c (build_cgraph_edges): Update call
4299 of cgraph_create_edge and cgraph_create_indirect_edge.
4300 * cgraph.c (cgraph_create_edge_including_clones,
4301 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4302 cgraph_update_edges_for_call_stmt_node): Do not take nest
4303 argument; do not initialize call_stmt_size/time.
4304 (dump_cgraph_node): Do not dump nest.
4305 (cgraph_clone_edge): Do not take loop_nest argument;
4306 do not propagate it; do not clone call_stmt_size/time.
4307 (cgraph_clone_node): Likewise.
4308 (cgraph_create_virtual_clone): Update.
4309 * cgraph.h (struct cgraph_edge): Remove
4310 call_stmt_size/call_stmt_time/loop_nest.
4311 (cgraph_create_edge, cgraph_create_indirect_edge,
4312 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4314 * tree-emutls.c (gen_emutls_addr): Update.
4315 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4316 loop_nest; handle indirect calls, too.
4317 (clone_inlined_nodes): Do not care about updating inline summaries.
4318 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4319 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4320 stream call_stmt_size/call_stmt_time/loop_nest.
4321 * ipa-inline.c (edge_badness): Update.
4322 (ipa_inline): dump summaries after inlining.
4323 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4325 (inline_edge_summary): New function.
4326 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4327 (inline_edge_removal_hook): Handle edge summaries.
4328 (inline_edge_duplication_hook): New hook.
4329 (inline_summary_alloc): Alloc hooks.
4330 (initialize_growth_caches): Do not register removal hooks.
4331 (free_growth_caches); Do not free removal hook.
4332 (dump_inline_edge_summary): New function.
4333 (dump_inline_summary): Use it.
4334 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4335 (inline_update_callee_summaries): New function.
4336 (inline_merge_summary): Use it.
4337 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4338 (read_inline_edge_summary): New function.
4339 (inline_read_section): Use it.
4340 (write_inline_edge_summary): New function.
4341 (inline_write_summary): Use it.
4342 (inline_free_summary): Free edge new holders.
4343 * tree-inline.c (copy_bb): Update.
4345 2011-04-26 Jason Merrill <jason@redhat.com>
4347 * tree-eh.c (lower_try_finally_switch): Create the label along with
4348 the CASE_LABEL_EXPR.
4350 2011-04-26 David S. Miller <davem@davemloft.net>
4351 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4353 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4354 * configure: Regenerate.
4356 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4359 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4361 (VEC_reduc): New code iterator and splitters for vector reduction.
4362 (VEC_reduc_name): Ditto.
4363 (VEC_reduc_rtx): Ditto.
4364 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4365 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4367 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4368 support for extracting SF on VSX.
4370 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4371 generating xscvspdp.
4372 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4373 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4374 double add, minimum, maximum vector reduction.
4375 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4376 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4377 optimize double vector reduction.
4378 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4380 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4382 * config/fr30/fr30.h (inhibit_libc): Don't define.
4383 * config/m32r/m32r-protos.h: Correct comment.
4384 * config/v850/v850.h (GHS_default_section_names,
4385 GHS_current_section_names): Use tree, not union tree_node *.
4387 2011-04-26 Xinliang David Li <davidxl@google.com>
4389 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4390 * c-family/c-opts.c (c_common_handle_option): Set
4391 warn_maybe_uninitialized.
4392 * opts.c (common_handle_option): Ditto.
4393 * common.opt: New option.
4394 * tree-ssa.c (warn_uninit): Add one more parameter.
4395 (warn_uninitialized_var): Pass warning code.
4396 * tree-flow.h: Interface change.
4399 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4401 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4402 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4403 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4405 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4407 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4408 * config/mips/mips.opt (mmips-tfile): Remove.
4410 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4411 mips-tdump reference to ...
4412 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4413 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4414 reference by Tru64 UNIX.
4416 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4419 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4420 is error_mark_node, set value to NULL.
4422 PR tree-optimization/48734
4423 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4424 if return value from maybe_fold_*_comparsions isn't something
4425 the code is prepared to handle.
4427 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4429 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4431 (ext_QIreg_nomode_operands): Remove.
4432 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4436 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4438 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4440 2011-04-26 Richard Guenther <rguenther@suse.de>
4442 * c-typeck.c (build_unary_op): Do not expand array-refs via
4443 pointer arithmetic. Only adjust qualifiers for function types.
4445 2011-04-26 Richard Guenther <rguenther@suse.de>
4448 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4449 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4450 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4451 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4453 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4455 * doc/extend.texi: Document __underlying_type.
4457 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4459 * config/rs6000/titan.md (automata_option "progress"): Remove.
4461 2011-04-25 Jeff Law <law@redhat.com>
4463 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4465 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4467 * system.h (ENUM_BITFIELD): Remove.
4469 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4470 Eric Botcazou <ebotcazou@adacore.com>
4472 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4473 for STORE_FLAG_VALUE==-1 case.
4475 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4478 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4479 LEGITIMATE_PIC_OPERAND_P.
4481 2011-04-24 Jan Hubicka <jh@suse.cz>
4483 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4485 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4486 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4487 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4488 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4489 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4490 Sanity check predicate length.
4491 (remap_predicate): Likewise; sanity check jump functions.
4492 (inline_read_section, inline_write_summary): Sanity check
4495 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4498 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4499 __is_literal_type, and __is_trivial; update throughout about
4500 possibly cv-qualified void types.
4502 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4504 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4505 testsuite and make it version agnostic.
4507 2011-04-22 Jan Hubicka <jh@suse.cz>
4509 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4511 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4514 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4515 to VOID_TYPE even around MODIFY_EXPR.
4517 2011-04-22 Mike Stump <mikestump@comcast.net>
4519 * gensupport.c (read_md_rtx): Fix typo in comment.
4520 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4523 2011-04-22 Jan Hubicka <jh@suse.cz>
4525 * gengtype.c (open_base_files): Add ipa-inline.h include.
4526 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4527 ipa-prop.c; update all uses.
4528 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4529 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4530 merge summary of inlined function into former caller.
4531 * ipa-inline.c (max_benefit): Remove.
4532 (edge_badness): Compensate for removal of benefits.
4533 (update_caller_keys): Use
4534 reset_node_growth_cache/reset_edge_growth_cache.
4535 (update_callee_keys): Likewise.
4536 (update_all_callee_keys): Likewise.
4537 (inline_small_functions): Do not collect max_benefit; do not reset
4538 estimated_growth; call free_growth_caches and initialize_growth_caches.
4539 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4540 struct size_time_entry): New structures.
4541 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4542 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4543 and estimated_growth.
4544 (edge_growth_cache_entry): New structure.
4545 (node_growth_cache, edge_growth_cache): New global vars.
4546 (estimate_growth): Turn into inline.
4547 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4548 initialize_growth_caches, free_growth_caches): Declare.
4549 (estimate_edge_growth): Rewrite.
4550 (estimate_edge_time): Implement as inline cache lookup.
4551 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4553 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4554 (NUM_CONDITIONS): New constant.
4555 (predicate_conditions): New enum.
4556 (IS_NOT_CONSTANT): New constant.
4557 (edge_removal_hook_holder): New var.
4558 (node_growth_cache, edge_growth_cache): New global vars.
4559 (true_predicate, single_cond_predicate, false_predicate,
4560 not_inlined_predicate, add_condition, add_clause, and_predicates,
4561 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4562 dump_clause, dump_predicate, account_size_time,
4563 evaulate_conditions_for_edge): New functions.
4564 (inline_summary_alloc): Move to heap.
4565 (inline_node_removal_hook): Clear condition and entry vectors.
4566 (inline_edge_removal_hook): New function.
4567 (initialize_growth_caches, free_growth_caches): New function.
4568 (dump_inline_summary): Update.
4569 (edge_execution_predicate): New function.
4570 (will_be_nonconstant_predicate): New function.
4571 (estimate_function_body_sizes): Compute BB and constantness predicates.
4572 (compute_inline_parameters): Do not clear estimated_growth.
4573 (estimate_edge_size_and_time): New function.
4574 (estimate_calls_size_and_time): New function.
4575 (estimate_callee_size_and_time): New function.
4576 (remap_predicate): New function.
4577 (inline_merge_summary): New function.
4578 (do_estimate_edge_time): New function based on...
4579 (estimate_edge_time): ... this one.
4580 (do_estimate_edge_growth): New function.
4581 (do_estimate_growth): New function based on....
4582 (estimate_growth): ... this one.
4583 (inline_analyze_function): Analyze after deciding on jump functions.
4584 (inline_read_section): New function.
4585 (inline_read_summary): Use it.
4586 (inline_write_summary): Write all the new data.
4587 * ipa-prop.c (ipa_get_param_decl_index): Export.
4588 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4589 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4591 (ipa_get_lattice): Move here from ipa-cp.c
4592 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4593 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4594 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4595 cgraph_edge_inlinable_p): Remove.
4596 * cgraphunit.c: Include ipainline.h
4597 (cgraph_process_new_functions): Update call of
4598 compute_inline_parameters.
4600 2011-04-22 Richard Guenther <rguenther@suse.de>
4602 * tree.c (build_int_cst): Properly create canonicalized integer
4604 (build_int_cst_type): Remove scary comments.
4606 2011-04-22 Xinliang David Li <davidxl@google.com>
4608 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4609 by default when -Wno-error is not specified.
4610 * opts-global.c (decode_options): Remove call to
4611 control_warning_options.
4613 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4615 PR tree-optimization/48717
4616 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4617 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4619 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4621 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4622 definition where used.
4624 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4627 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4628 TREE_STATIC variables declared inside of some OpenMP construct.
4630 2011-04-22 Martin Jambor <mjambor@suse.cz>
4633 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4635 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4638 * c-typeck.c (pop_init_level): Do not warn about initializing
4641 2011-04-22 Alan Modra <amodra@gmail.com>
4643 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4644 when returning call_cookie.
4645 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4646 pointers, to functions with no more vector args than the current
4647 function, and some non-local calls for ABI_V4.
4648 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4649 sibcall_nonlocal_aix64): Combine to ..
4650 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4651 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4652 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4653 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4654 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4656 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4657 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4658 sibcall_value_symbolic_64): Delete.
4660 2011-04-21 Xinliang David Li <davidxl@google.com>
4662 * cgraph.h: Remove pid.
4663 * cgraph.c: Remove pid.
4664 * value-prof.c (init_node_map): New function.
4665 (del_node_map): New function.
4666 (find_func_by_funcdef_no): New function.
4667 (gimple_ic_transform): Call new function.
4668 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4669 * function.c (get_last_funcdef_no): New function.
4670 * function.h (get_last_funcdef_no): New function.
4671 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4672 to libgcov function.
4673 (tree-profiling): Call node map init and delete function.
4675 2011-04-21 Ian Lance Taylor <iant@google.com>
4677 * godump.c (go_format_type): Use exported Go name for anonymous
4680 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4682 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4683 Call builtin_function_type_list instead of builtin_function_type.
4684 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4686 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4688 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4689 build_function_type_list instead of build_function_type.
4690 Delete variable `endlink'.
4692 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4694 * config/s390/s390.c (s390_init_builtins): Call
4695 build_function_type_list instead of build_function_type.
4697 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4699 * config/ia64/ia64.c (ia64_init_builtins): Call
4700 build_function_type_list instead of builtin_function_type.
4702 2011-04-21 Easwaran Raman <eraman@google.com>
4704 * cfgexpand.c (stack_var): Remove OFFSET...
4705 (add_stack_var): ...and its reference here...
4706 (expand_stack_vars): ...and here.
4707 (stack_var_cmp): Sort by descending order of size.
4708 (partition_stack_vars): Change heuristic.
4709 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4710 (dump_stack_var_partition): Add newline after each partition.
4712 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4713 Jeff Law <law@redhat.com>
4715 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4716 * gengtype.c (matching_file_name_substitute): Likewise.
4718 2011-04-21 Richard Guenther <rguenther@suse.de>
4721 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4723 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4725 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4727 2011-04-21 Richard Guenther <rguenther@suse.de>
4729 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4732 2011-04-21 Richard Guenther <rguenther@suse.de>
4734 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4735 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4736 Use DECL_P, not SSA_VAR_P.
4737 (ptr_derefs_may_alias_p): Likewise.
4738 (ptr_deref_may_alias_ref_p_1): Likewise.
4739 (decl_refs_may_alias_p): Likewise.
4740 (refs_may_alias_p_1): Likewise.
4741 (ref_maybe_used_by_call_p_1): Likewise.
4742 (call_may_clobber_ref_p_1): Likewise.
4743 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4744 are either MEM_REF or TARGET_MEM_REF.
4745 (indirect_refs_may_alias_p): Likewise.
4746 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4747 for MEM_EXPR of indirect calls.
4749 2011-04-21 Tristan Gingold <gingold@adacore.com>
4751 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4752 (dst_file_info_struct): Remove flen field.
4753 (lookup_filename): Remove code that set flen field.
4755 2011-04-21 Tristan Gingold <gingold@adacore.com>
4757 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4759 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4762 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4763 vec_extract and vec_concat for non-SSE4_1 targets.
4765 2011-04-21 Richard Guenther <rguenther@suse.de>
4767 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4770 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4772 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4774 (FILE): Don't undefine.
4776 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4778 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4780 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4782 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4783 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4784 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4786 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4787 definitions where used.
4788 * config/microblaze/microblaze.h (struct microblaze_args): Use
4789 rtx, not struct rtx_def *.
4790 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4792 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4793 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4794 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4795 not struct rtx_def *.
4796 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4798 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4800 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4802 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4804 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4805 operand_equal_p to compare DR_BASE_ADDRESSes.
4806 (vect_check_interleaving): Likewise.
4808 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4811 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4812 for all Neon struct constants.
4814 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4816 * target.def (legitimate_constant_p): New hook.
4817 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4818 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4819 * doc/tm.texi: Regenerate.
4820 * hooks.h (hook_bool_mode_rtx_true): Declare.
4821 * hooks.c (hook_bool_mode_rtx_true): Define.
4822 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4823 * calls.c (precompute_register_parameters): Replace uses of
4824 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4825 (emit_library_call_value_1): Likewise.
4826 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4827 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4828 * ira-costs.c (scan_one_insn): Likewise.
4829 * recog.c (general_operand, immediate_operand): Likewise.
4830 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4831 * reload1.c (init_eliminable_invariants): Likewise.
4833 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4835 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4836 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4838 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4839 * config/alpha/predicates.md (input_operand): Update call to
4840 alpha_legitimate_constant_p.
4842 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4843 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4844 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4845 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4846 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4847 (arm_legitimate_constant_p): New functions.
4848 (arm_cannot_force_const_mem): Make static.
4850 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4852 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4853 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4854 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4855 instead of bfin_legitimate_constant_p.
4856 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4857 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4859 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4861 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4863 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4864 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4865 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4866 (frv_legitimate_constant_p): Make static. Add a mode argument.
4868 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4869 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4870 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4872 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4873 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4874 * config/i386/i386.c (legitimate_constant_p): Rename to...
4875 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4877 (ix86_cannot_force_const_mem): Update accordingly.
4878 (ix86_legitimate_address_p): Likewise.
4879 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4880 * config/i386/i386.md: Update commentary.
4882 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4883 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4884 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4885 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4887 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4889 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4890 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4891 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4892 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4894 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4895 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4896 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4898 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4899 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4900 (m32r_legitimate_constant_p): New function.
4902 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4903 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4904 LEGITIMATE_CONSTANT_P.
4905 (LEGITIMATE_CONSTANT_P): Delete.
4906 * config/m68k/m68k.c (m68k_expand_prologue): Call
4907 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4908 (m68k_legitimate_constant_p): New function.
4909 * config/m68k/m68k.md: Update comments.
4911 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4912 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4913 (mcore_legitimate_constant_p): New function.
4915 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4916 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4917 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4918 Add a mode argument.
4919 (mep_legitimate_address): Update accordingly.
4920 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4922 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4924 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4925 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4926 static. Check OP's mode for VOIDmode.
4927 (microblaze_legitimate_constant_p): New function.
4928 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4930 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4931 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4932 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4933 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4934 * config/mips/predicates.md: Update comments.
4936 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4937 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4938 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4939 (mmix_legitimate_constant_p): Make static, return a bool, and take
4941 (mmix_print_operand_address): Update accordingly.
4943 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4945 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4946 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4947 static. Add a mode argument.
4948 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4950 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4952 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4953 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4954 (pa_legitimate_constant_p): New function.
4956 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4958 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4959 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4960 (pdp11_legitimate_constant_p): New function.
4962 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4963 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4964 (rs6000_legitimate_constant_p): New function.
4966 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4967 (rx_legitimate_constant_p): ...this.
4968 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4969 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4970 (rx_legitimate_constant_p): ...this.
4971 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4972 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4974 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4975 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4976 * config/s390/s390.c (legitimate_constant_p): Rename to...
4977 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4978 and add a mode argument.
4979 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4981 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4983 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4984 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4985 (sh_legitimate_constant_p): New function.
4987 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4988 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4989 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4990 (legitimate_constant_p): Rename to...
4991 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4993 (constant_address_p): Update accordingly.
4995 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4996 argument and return a bool.
4997 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4998 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4999 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5000 (spu_rtx_costs): Update accordingly.
5001 * config/spu/predicates.md (vec_imm_operand): Likewise.
5003 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5005 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5006 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5007 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5009 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5010 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5011 * config/vax/vax.c (legitimate_constant_p): Likewise.
5013 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5014 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5015 (xtensa_legitimate_constant_p): New function.
5017 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5019 * target.def (cannot_force_const_mem): Add a mode argument.
5020 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5021 * doc/tm.texi: Regenerate.
5022 * hooks.h (hook_bool_mode_rtx_false): Declare.
5023 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5024 (hook_bool_mode_const_rtx_true): Likewise.
5025 (hook_bool_mode_rtx_false): New function.
5026 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5027 to be non-VOID. Update call to cannot_force_const_mem.
5028 (find_reloads): Update accordingly.
5029 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5030 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5032 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5033 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5034 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5035 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5036 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5037 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5038 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5039 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5040 (m68k_cannot_force_const_mem): ...this new function.
5041 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5043 (mips_const_insns, mips_legitimize_const_move): Update calls.
5044 (mips_secondary_reload_class): Likewise.
5045 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5046 (pa_cannot_force_const_mem): ...this new function.
5047 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5048 (rs6000_cannot_force_const_mem): ...this new function.
5049 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5051 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5052 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5054 (xtensa_cannot_force_const_mem): ...this new function.
5056 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5058 * config/mips/mips.c (mips16_build_function_stub): Call
5059 build_function_type_list instead of build_function_type.
5060 (mips16_build_call_stub): Likewise.
5062 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5064 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5065 instead of build_function_type.
5067 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5069 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5070 instead of build_function_type.
5072 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5075 * config/i386/i386.md (insv): Change operand 0 constraint to
5076 "register_operand". Change operand 1 and 2 constraint to
5077 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5078 * config/i386/sse.md (sse4_1_pinsrb): Export.
5079 (sse2_pinsrw): Ditto.
5080 (sse4_1_pinsrd): Ditto.
5081 (sse4_1_pinsrq): Ditto.
5082 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5083 * config/i386/i386.c (ix86_expand_pinsr): New.
5085 2011-04-20 Easwaran Raman <eraman@google.com>
5087 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5088 containing union type only with -fstrict-aliasing.
5090 2011-04-20 Jim Meyering <meyering@redhat.com>
5092 Remove useless if-before-free tests.
5093 * calls.c (expand_call, save_area): Likewise.
5094 * cfgcleanup.c (try_forward_edges): Likewise.
5095 * collect2.c (collect_execute): Likewise.
5096 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5097 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5098 * coverage.c (coverage_checksum_string): Likewise.
5099 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5100 * cselib.c (cselib_init): Likewise.
5101 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5102 (df_set_clean_cfg): Likewise.
5103 * function.c (free_after_compilation): Likewise.
5104 * gcc.c (do_spec_1, main): Likewise.
5105 * gcov.c (create_file_names): Likewise.
5106 * gensupport.c (identify_predicable_attribute): Likewise.
5107 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5108 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5109 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5110 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5111 * ipa-pure-const.c (local_pure_const): Likewise.
5112 * ipa-reference.c (propagate): Likewise.
5113 * ira-costs.c (free_ira_costs): Likewise.
5114 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5115 * matrix-reorg.c (mat_free): Likewise.
5116 * prefix.c (get_key_value): Likewise.
5117 * profile.c (compute_value_histograms): Likewise.
5118 * reload1.c (free_reg_equiv): Likewise.
5119 * sched-deps.c (free_deps): Likewise.
5120 * sel-sched-ir.c (fence_clear): Likewise.
5121 * sese.c (set_rename, if_region_set_false_region): Likewise.
5122 * tree-data-ref.c (free_rdg): Likewise.
5123 * tree-eh.c (lower_try_finally): Likewise.
5124 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5125 * tree-ssa-live.c (delete_var_map): Likewise.
5126 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5127 * tree-ssa-pre.c (phi_trans_add): Likewise.
5129 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5131 PR tree-optimization/48611
5132 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5133 beyond ERT_MUST_NOT_THROW region.
5135 2011-04-20 Catherine Moore <clm@codesourcery.com>
5137 * config/mips/mips.opt (mfix-24k): New.
5138 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5139 * config/mips/mips.md (length): Increase by 4 for stores if
5141 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5142 all noreorder if fixing 24K errata.
5143 * doc/invoke.texi: Document mfix-24k.
5145 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5147 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5148 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5150 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5152 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5153 (const_ok_for_op): ... to here.
5155 2011-04-20 Kai Tietz <ktietz@redhat.com>
5157 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5158 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5160 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5162 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5164 2011-04-20 Richard Guenther <rguenther@suse.de>
5166 PR tree-optimization/47892
5167 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5170 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5172 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5174 2011-04-20 Tristan Gingold <gingold@adacore.com>
5176 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5178 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5182 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5183 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5184 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5185 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5186 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5188 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5191 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5192 (avr_asm_named_section, avr_asm_output_aligned_common,
5193 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5194 New functions to update...
5195 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5196 (avr_asm_init_sections): Overwrite section callbacks for
5197 data_section, bss_section.
5198 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5200 (avr_file_end): ...here.
5202 2011-04-20 Richard Guenther <rguenther@suse.de>
5205 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5206 objects and types here. Adjust for their offset before comparing.
5208 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5210 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5213 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5215 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5216 (GIMPLE_H): Include $(INTERNAL_FN_H).
5217 (OBJS-common): Add internal-fn.o.
5218 (internal-fn.o): New rule.
5219 * internal-fn.def: New file.
5220 * internal-fn.h: Likewise.
5221 * internal-fn.c: Likewise.
5222 * gimple.h: Include internal-fn.h.
5223 (GF_CALL_INTERNAL): New gf_mask.
5224 (gimple_statement_call): Put fntype into a union with a new
5226 (gimple_build_call_internal): Declare.
5227 (gimple_build_call_internal_vec): Likewise.
5228 (gimple_call_same_target_p): Likewise.
5229 (gimple_call_internal_p): New function.
5230 (gimple_call_internal_fn): Likewise.
5231 (gimple_call_fntype): Return null for internal calls.
5232 (gimple_call_set_fntype): Assert that the function is not internal.
5233 (gimple_call_set_fn): Likewise.
5234 (gimple_call_set_fndecl): Likewise.
5235 (gimple_call_set_internal_fn): New function.
5236 (gimple_call_addr_fndecl): Handle null functions.
5237 (gimple_call_return_type): Likewise null types.
5238 * gimple.c (gimple_build_call_internal_1): New function.
5239 (gimple_build_call_internal): Likewise.
5240 (gimple_build_call_internal_vec): Likewise.
5241 (gimple_call_same_target_p): Likewise.
5242 (gimple_call_flags): Handle calls to internal functions.
5243 (gimple_call_fnspec): New function.
5244 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5245 (gimple_has_side_effects): Handle null functions.
5246 (gimple_rhs_has_side_effects): Likewise.
5247 (gimple_call_copy_skip_args): Handle calls to internal functions.
5248 * cfgexpand.c (expand_call_stmt): Likewise.
5249 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5250 * gimple-fold.c (gimple_fold_call): Handle null functions.
5251 (gimple_fold_stmt_to_constant_1): Don't fold
5252 calls to internal functions.
5253 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5255 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5256 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5257 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5258 (do_warn_unused_result): Likewise.
5259 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5260 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5261 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5262 the target of a call.
5263 (initialize_hash_element): Update accordingly.
5264 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5265 (iterative_hash_hashable_expr): Handle calls to internal functions.
5266 (print_expr_hash_elt): Likewise.
5267 * tree-ssa-pre.c (can_value_number_call): Likewise.
5268 (eliminate): Handle null functions.
5269 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5270 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5271 (find_func_aliases): Likewise.
5272 * value-prof.c (gimple_ic_transform): Likewise.
5273 (gimple_indirect_call_to_profile): Likewise.
5274 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5275 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5277 2011-04-19 Jan Hubicka <jh@suse.cz>
5279 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5280 * ipa-inline.c (inline_small_functions): Compute summaries first,
5281 populate heap later.
5283 2011-04-19 Jan Hubicka <jh@suse.cz>
5285 * cgraph.h (save_inline_function_body): Remove.
5286 * ipa-inline-transform.c: New file, broke out of...
5287 * ipa-inline.c: ... this one; Update toplevel comment.
5288 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5290 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5291 (cgraph_mark_inline_edge): Rename to inline_call; move to
5292 ipa-inline-transform.c.
5293 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5294 move to ipa-inline-transform.c
5295 (recursive_inlining, inline_small_functions, flatten_function,
5296 ipa_inline, inline_always_inline_functions,
5297 early_inline_small_functions): Update.
5298 (inline_transform): Move to ipa-inline-transform.c.
5299 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5301 * Makefile.in (ipa-inline-transform.o): New file.
5302 * cgraphunit.c (save_inline_function_body): Move to
5303 ipa-inline-transform.c
5305 2011-04-19 DJ Delorie <dj@redhat.com>
5307 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5308 registers if we already know there aren't any.
5309 (m32c_emit_epilogue): Don't emit a barrier here.
5310 (m32c_emit_eh_epilogue): Likewise.
5311 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5312 operands at expand time.
5313 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5315 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5316 duplicates. Provide aliases instead.
5317 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5318 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5321 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5323 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5324 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5325 (general_or_i64_p, sparc_register_move_cost): New function.
5327 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5329 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5330 Add lynx, mipssde. Sort table.
5332 2011-04-19 Xinliang David Li <davidxl@google.com>
5334 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5337 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5340 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5341 is a SUBREG with non-MODE_INT mode inside of it.
5343 2011-04-19 Martin Jambor <mjambor@suse.cz>
5345 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5346 also according to actual contants.
5347 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5348 (gimple_fold_call): Use it.
5349 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5351 2011-04-19 Martin Jambor <mjambor@suse.cz>
5353 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5354 non-pointer assignments.
5356 2011-04-19 Martin Jambor <mjambor@suse.cz>
5358 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5359 account anc_offset and otr_type from the indirect edge info.
5360 * ipa-prop.c (get_ancestor_addr_info): New function.
5361 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5362 get_ancestor_addr_info, call it.
5363 (ipa_note_param_call): Do not initialize information about polymorphic
5364 calls, return the indirect call graph edge. Remove the last
5365 parameter, adjust all callers.
5366 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5367 parameters. Initialize polymorphic information in the indirect edge.
5369 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5372 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5373 the types if they have different enumeration identifiers.
5375 2011-04-19 Jan Hubicka <jh@suse.cz>
5377 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5378 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5379 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5380 (optimize_function_for_size_p) ... here.
5382 2011-04-19 Richard Guenther <rguenther@suse.de>
5385 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5388 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5390 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5391 if DECL_NO_INLINE_WARNING_P is set on the function.
5393 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5396 * reload1.c (inc_for_reload): Return void. All callers changed.
5397 (emit_input_reload_insns): Don't try to delete previous output
5398 reloads to a register, or record spill_reg_store for autoincs.
5400 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5402 * gengtype.h: Updated copyright year.
5403 (struct input_file_st): Add inpisplugin field.
5404 (type_fileloc): New function.
5406 (write_typed_struct_alloc_def): Add gcc_assert.
5407 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5408 (write_typed_alloc_defns): Don't output for plugin files.
5409 (input_file_by_name): Clear inpisplugin field.
5410 (main): Set inpisplugin field for plugin files.
5412 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5414 * gengtype-state.c (string_eq): New.
5415 (read_state): Use string_eq instead of strcmp when creating the
5418 2011-04-19 Wei Guozhi <carrot@google.com>
5421 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5422 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5424 * config/arm/constraints.md (Uu): New constraint.
5425 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5427 2011-04-19 Tristan Gingold <gingold@adacore.com>
5429 * config.gcc (-*-*-*vms): Added.
5430 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5432 * config/vms/vms-ld.c: New file.
5433 * config/vms/vms-ar.c: New file.
5434 * config/vms/t-vmsnative: New file.
5436 2011-04-18 Xinliang David Li <davidxl@google.com>
5438 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5440 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5443 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5444 if TREE_TYPE (v) is non-NULL.
5446 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5447 gimple_get_virt_mehtod_for_binfo.
5448 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5449 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5451 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5453 2011-04-18 Michael Matz <matz@suse.de>
5454 Steve Ellcey <sje@cup.hp.com>
5456 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5457 use its mode as source mode if it isn't VOIDmode.
5459 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5461 * doc/passes.texi: Fill crossref nodes.
5463 2011-04-18 Jim Meyering <meyering@redhat.com>
5465 Fix doubled-word typos in comments and strings
5466 * config/alpha/vms-unwind.h: s/for for/for/
5467 * config/arm/unwind-arm.h: Likewise.
5468 * config/microblaze/microblaze.c: Likewise.
5469 * config/sh/constraints.md: s/in in/in/
5470 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5472 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5474 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5475 (AVX_FLOAT_MODE_P): Ditto.
5476 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5477 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5478 (AVX_VEC_FLOAT_MODE_P): Ditto.
5479 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5480 (UNSPEC_MASKSTORE): Ditto.
5481 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5482 Merge from <sse>_movmsk<ssemodesuffix> and
5483 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5484 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5486 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5487 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5488 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5490 2011-04-18 Jan Hubicka <jh@suse.cz>
5492 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5494 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5495 (want_inline_function_called_once_p): Break out the logic from
5497 (edge_badness): Ensure that profile is not misupdated.
5498 (lookup_recursive_calls): Prioritize by call frequencies.
5499 (inline_small_functions): Move program size estimates here;
5500 actually process whole queue even when unit growth has been
5501 met. (to properly compute inline_failed reasons and for the
5502 case unit size decrease.) Revisit comments on recursive inlining.
5503 (ipa_inline): Remove unit summary code; first inline hot calls
5504 of functions called once, cold calls next.
5505 (order, nnodes): Remove unused variables.
5506 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5507 (GTFILES): Remove ipa-inline.c
5508 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5510 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5512 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5514 2011-04-18 Jie Zhang <jie@codesourcery.com>
5515 Richard Earnshaw <rearnsha@arm.com>
5517 * arm.c (neon_builtin_type_bits): Remove.
5518 (typedef enum neon_builtin_mode): New.
5519 (T_MAX): Don't define.
5520 (typedef enum neon_builtin_datum): Remove bits, codes[],
5521 num_vars and base_fcode. Add mode, code and fcode.
5522 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5523 VAR10): Change accordingly.
5524 (neon_builtin_data[]): Change accordingly
5525 (arm_init_neon_builtins): Change accordingly.
5526 (neon_builtin_compare): Remove.
5527 (locate_neon_builtin_icode): Remove.
5528 (arm_expand_neon_builtin): Change accordingly.
5530 * arm.h (enum arm_builtins): Move to ...
5531 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5533 * arm.c (arm_builtin_decl): Declare.
5534 (TARGET_BUILTIN_DECL): Define.
5535 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5536 (arm_builtin_decls[]): New.
5537 (arm_init_neon_builtins): Store builtin declarations in
5538 arm_builtin_decls[].
5539 (arm_init_tls_builtins): Likewise.
5540 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5541 (arm_builtin_decl): New.
5543 2011-04-18 Richard Guenther <rguenther@suse.de>
5545 * tree.c (upper_bound_in_type): Build properly canonicalized
5547 (lower_bound_in_type): Likewise.
5549 2011-04-18 Richard Guenther <rguenther@suse.de>
5551 * gimple.h (gimple_call_addr_fndecl): New function.
5552 (gimple_call_fndecl): Use it.
5553 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5555 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5556 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5558 2011-04-18 Richard Guenther <rguenther@suse.de>
5561 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5563 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5566 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5567 DECL_IN_CONSTANT_POOL without RTL.
5569 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5570 Ira Rosen <ira.rosen@linaro.org>
5573 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5574 to match neon_vzip/vuzp/vtrn_internal.
5575 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5576 outputs explicitly dependent on both inputs.
5577 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5579 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5581 PR tree-optimization/48616
5582 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5583 whether the shift is by scalar or vector based on whether all SLP
5584 scalar stmts have the same rhs.
5586 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5588 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5591 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5594 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5597 2011-04-17 Jan Hubicka <jh@suse.cz>
5599 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5600 * cgrpahunit.c (cgraph_finalize_function): Do not set
5601 finalized_by_frontend.
5602 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5603 finalized_by_frontend.
5605 2011-04-17 Jan Hubicka <jh@suse.cz>
5607 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5608 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5609 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5610 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5612 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5614 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5616 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5619 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5620 is non-null before accessing it.
5621 (input_cgraph): Remove trailing spaces.
5623 2011-04-17 Revital Eres <revital.eres@linaro.org>
5625 * params.def (sms-min-sc): New param flag.
5626 * modulo-sched.c (sms_schedule): Use it.
5627 * doc/invoke.texi (sms-min-sc): Document it.
5629 2011-04-17 Jan Hubicka <jh@suse.cz>
5631 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5632 present, also set gimple_call_set_cannot_inline.
5633 * ipa-inline.c: Update toplevel comment.
5635 (cgraph_clone_inlined_nodes): Fix linebreaks.
5636 (cgraph_check_inline_limits): Restructure to ...
5637 (caller_growth_limits): ... this one; be more tolerant
5638 on growth in nested inline chains; add explanatory comment;
5639 fix stack accounting thinko introduced by previous patch.
5640 (cgraph_default_inline_p): Remove.
5641 (report_inline_failed_reason): New function.
5642 (can_inline_edge_p): New function.
5643 (can_early_inline_edge_p): New function.
5644 (leaf_node_p): Move upwards in file.
5645 (want_early_inline_function_p): New function.
5646 (want_inline_small_function_p): New function.
5647 (want_inline_self_recursive_call_p): New function.
5648 (cgraph_edge_badness): Rename to ...
5649 (edge_badness) ... this one; fix linebreaks.
5650 (update_edge_key): Update call of edge_baddness; add
5651 detailed dump about queue updates.
5652 (update_caller_keys): Use can_inline_edge_p and
5653 want_inline_small_function_p.
5654 (cgraph_decide_recursive_inlining): Rename to...
5655 (recursive_inlining): Use can_inline_edge_p and
5656 want_inline_self_recursive_call_p; simplify and remove no longer
5658 (cgraph_set_inline_failed): Remove.
5659 (add_new_edges_to_heap): Use can_inline_edge_p and
5660 want_inline_small_function_p.
5661 (cgraph_decide_inlining_of_small_functions): Rename to ...
5662 (inline_small_functions): ... this one; cleanup; use
5663 can/want predicates; cleanup debug ouput; work edges till fibheap
5664 is exhausted and do not stop once unit growth is reached; remove
5665 later loop processing remaining edges.
5666 (cgraph_flatten): Rename to ...
5667 (flatten_function): ... this one; use can_inline_edge_p
5668 and can_early_inline_edge_p predicates.
5669 (cgraph_decide_inlining): Rename to ...
5670 (ipa_inline): ... this one; remove unreachable nodes before
5671 inlining functions called once; simplify the pass.
5672 (cgraph_perform_always_inlining): Rename to ...
5673 (inline_always_inline_functions): ... this one; use
5674 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5675 (cgraph_decide_inlining_incrementally): Rename to ...
5676 (early_inline_small_functions): ... this one; simplify
5677 using new predicates; cleanup; make dumps prettier.
5678 (cgraph_early_inlining): Rename to ...
5679 (early_inliner): newer inline regular functions into always-inlines;
5680 fix updating of call stmt summaries.
5681 (pass_early_inline): Update for new names.
5682 (inline_transform): Fix formating.
5683 (gate_cgraph_decide_inlining): Rename to ...
5684 (pass_ipa_inline): ... this one.
5685 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5686 * ipa-inline-analysis.c (dump_inline_summary): Update.
5687 (compute_inline_parameters): Do not compute disregard_inline_limits;
5688 look for mismatching arguments.
5689 (estimate_growth): Fix handlig of non-trivial self recursion.
5690 (inline_read_summary): Do not read info->disregard_inline_limits.
5691 (inline_write_summary): Do not write info->disregard_inline_limits.
5692 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5693 and move all checks into can_inline_edge_p predicate; re-enable code
5694 comparing optimization levels.
5695 (expand_call_inline): Do not test inline_forbidden_into_p.
5696 * Makefile.in (ipa-inline.o): Update arguments.
5698 2011-04-17 Revital Eres <revital.eres@linaro.org>
5700 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5702 2011-04-17 Revital Eres <revital.eres@linaro.org>
5704 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5706 2011-04-17 Michael Matz <matz@suse.de>
5708 PR tree-optimization/48622
5710 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5711 in same order as they're written.
5713 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5715 * config/pa/predicates.md: Reorganize and simplify predicates.
5716 Eliminate duplicate code checks.
5717 (arith_operand): Rename to arith14_operand
5718 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5719 * config/pa/pa.md: Use renamed operands.
5720 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5721 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5722 arith11_operand, adddi3_operand, indexed_memory_operand,
5723 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5724 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5725 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5726 move_dest_operand, move_src_operand, prefetch_cc_operand,
5727 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5728 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5729 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5730 div_operand, int5_operand, movb_comparison_operator,
5731 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5732 arith_double_operand, ireg_operand, lhs_lshift_operand,
5733 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5734 integer_store_memory_operand): Likewise.
5735 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5736 (integer_store_memory_operand, read_only_operand,
5737 function_label_operand, borx_reg_operand,
5738 non_hard_reg_operand): Likewise.
5739 (eq_neq_comparison_operator): Delete unused operator.
5740 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5741 function_label_operand.
5742 (emit_move_sequence): Likewise.
5744 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5746 * config/i386/sse.md (sseunpackmode): New mode attribute.
5747 (ssepackmode): Ditto.
5748 (vec_pack_trunc_<mode>): Macroize expander from
5749 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5750 (vec_unpacks_lo_<mode>): Macroize expander from
5751 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5752 (vec_unpacks_hi_<mode>): Macroize expander from
5753 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5754 (vec_unpacku_lo_<mode>): Macroize expander from
5755 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5756 (vec_unpacku_hi_<mode>): Macroize expander from
5757 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5758 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5759 ix86_expand_sse4_unpack.
5760 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5762 2011-04-16 Jan Hubicka <jh@suse.cz>
5764 * cgraphbuild.c: Include ipa-inline.h.
5765 (reset_inline_failed): Use initialize_inline_failed.
5766 * cgraph.c: Include ipa-inline.h.
5767 (cgraph_create_node_1): Do not initialize estimated_growth.
5768 (initialize_inline_failed): More to ipa-inline-analysis.c
5769 (dump_cgraph_node): Do not dump inline flags.
5770 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5771 and disregard_inline_limits flags.
5772 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5773 time, size, estimated_growth.
5774 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5776 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5777 DECL_DISREGARD_INLINE_LIMITS.
5778 (cgraph_analyze_function): Do not initialize
5779 node->local.disregard_inline_limits.
5780 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5781 inlinable, versionable and disregard_inline_limits.
5782 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5783 cgraph_check_inline_limits, cgraph_default_inline_p,
5784 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5785 add_new_edges_to_heap): Update.
5786 (cgraph_decide_inlining_of_small_function): Update; set
5787 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5788 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5789 cgraph_decide_inlining_incrementally): Update.
5790 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5791 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5792 time, size and estimated_growth parameters.
5793 (estimate_edge_growth): Update.
5794 (initialize_inline_failed): Declare.
5795 * ipa-split.c: Include ipa-inline.h
5796 (execute_split_functions): Update.
5797 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5798 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5799 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5800 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5801 estimated_growth to INT_MIN.
5802 (inline_node_duplication_hook): Likewise.
5803 (dump_inline_summary): Dump new fields.
5804 (compute_inline_parameters): Update.
5805 (estimate_edge_time, estimate_time_after_inlining,
5806 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5807 inline_write_summary):
5808 (initialize_inline_failed): Move here from cgraph.c.
5809 * tree-sra.c: Include ipa-inline.h.
5810 (ipa_sra_preliminary_function_checks): Update.
5811 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5814 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5816 * config/i386/sse.md (V16): New mode iterator.
5818 (AVXMODEQI, AVXMODEDI): Remove.
5819 (sse2, sse3): New mode attribute.
5820 (mov<mode>): Use V16 mode iterator.
5821 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5822 (push<mode>1): Use V16 mode iterator.
5823 (movmisalign<mode>): Ditto.
5824 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5825 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5826 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5827 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5828 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5829 avx_movdqu<avxmodesuffix>.
5830 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5831 *avx_movdqu<avxmodesuffix>.
5832 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5833 avx_lddqu<avxmodesuffix>.
5834 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5835 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5836 avx_movnt<AVXMODEDI:mode>.
5837 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5838 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5840 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5843 * haifa-sched.c (prune_ready_list, schedule_block): Use
5844 sched_pressure_p rather than flag_sched_pressure.
5846 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5848 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5849 cgraph_get_node instead of cgraph_get_create_node.
5851 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5853 * cfgexpand.c (expand_debug_expr): Use
5854 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5856 2011-04-15 Michael Matz <matz@suse.de>
5858 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5859 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5860 * function.c (gimplify_parameters): Ditto.
5861 * gimplify.c (gimplify_vla_decl): Ditto.
5863 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5864 (gimple_call_set_alloca_for_var): New inline function.
5865 (gimple_call_alloca_for_var_p): Ditto.
5866 * gimple.c (gimple_build_call_from_tree): Remember
5867 CALL_ALLOCA_FOR_VAR_P state.
5868 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5870 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5871 calls if they were for VLA objects.
5873 2011-04-15 Martin Jambor <mjambor@suse.cz>
5875 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5878 2011-04-15 Martin Jambor <mjambor@suse.cz>
5881 * tree-emutls.c (lower_emutls_function_body): Call
5882 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5885 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5887 * c-decl.c (detect_field_duplicates): Call
5888 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5890 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5892 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5893 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5894 * ipa-pure-const.c (check_stmt): Call it.
5895 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5897 2011-04-15 Richard Guenther <rguenther@suse.de>
5899 PR tree-optimization/48290
5900 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5901 Properly decide inhibiting propagation based on the valueized
5902 operand. Do loop-closed SSA form preserving here ...
5903 (init_copy_prop): ... not here.
5905 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5908 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5909 (*ieee_smax<mode>3): Likewise.
5911 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5913 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5914 Replace match_operand with match_dup for the third operand in
5917 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5919 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5920 to track processing of conditionals. Update all callers.
5921 (try_combine, simplify_if_then_else): Update.
5923 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5925 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5928 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5930 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5931 instead of match_operand for operand 3.
5933 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5935 * recog.h (insn_operand_data): Add an "allows_mem" field.
5936 * genoutput.c (output_operand_data): Initialize it.
5937 * optabs.c (maybe_legitimize_operand_same_code): New function.
5938 (maybe_legitimize_operand): Use it when matching the original
5941 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5943 * gimplify.c: Fix issues in comments throughout.
5944 (voidify_wrapper_expr): Fix long line.
5945 (build_stack_save_restore): Likewise.
5946 (gimplify_loop_expr): Likewise.
5947 (gimplify_compound_lval): Likewise.
5948 (gimplify_init_ctor_eval): Likewise.
5949 (gimplify_modify_expr_rhs): Likewise.
5950 (omp_notice_threadprivate_variable): Likewise.
5952 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5954 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5955 original one if this is not a builtin function.
5957 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5960 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5961 offset it as needed based on top 2 bits in operands[3], change
5962 MEM mode to SFmode and mask those 2 bits away from operands[3].
5964 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5966 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5967 change from objc_declare_protocols() to objc_declare_protocol().
5969 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5971 * config/i386/sse.md (sse4_1): New mode attribute.
5972 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5973 avx_blend<ssemodesuffix><avxmodesuffix> and
5974 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5975 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5976 avx_blendv<ssemodesuffix><avxmodesuffix> and
5977 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5978 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5979 avx_dp<ssemodesuffix><avxmodesuffix> and
5980 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5981 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5982 (sse4_1_packusdw): Merge with *avx_packusdw.
5983 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5984 (sse4_1_pblendw): Merge with *avx_pblendw.
5985 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5986 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5987 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5989 (sse4_1_round<ssescalarmodesuffix>): Merge with
5990 *avx_round<ssescalarmodesuffix>.
5991 (aesenc): Merge with *avx_aesenc.
5992 (aesenclast): Merge with *avx_aesenclast.
5993 (aesdec): Merge with *avx_aesdec.
5994 (aesdeclast): Merge with *avx_aesdeclast.
5995 (pclmulqdq): Merge with *pclmulqdq.
5996 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5998 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6000 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6003 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6004 (align_local_variable): This. Update DECL_ALIGN.
6005 (add_stack_var): Updated.
6006 (expand_one_stack_var): Likewise.
6008 2011-04-14 Richard Guenther <rguenther@suse.de>
6010 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6012 (dse_initialize_block_local_data, dse_leave_block,
6013 record_voperand_set, get_stmt_uid): Likewise.
6014 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6015 (dse_optimize_stmt): Remove voperand set handling code.
6016 Simplify and improve to handle any kind of killing stmt.
6017 (dse_record_phi): Remove.
6018 (dse_enter_block): Simplify.
6019 (tree_ssa_dse): Likewise.
6020 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6022 2011-04-14 Jan Hubicka <jh@suse.cz>
6024 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6025 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6026 (cgraph_local_info): Remove inline_summary.
6027 * ipa-cp.c: Include ipa-inline.h.
6028 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6029 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6031 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6032 (input_overwrite_node): Do not set inline summary.
6033 (input_node): Do not stream inline summary.
6034 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6035 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6036 growth; we do not have inline parameters computed for that anyway.
6037 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6038 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6039 (inline_summary_t): New type and VECtor.
6040 (debug_inline_summary, dump_inline_summaries): Declare.
6041 (inline_summary): Use VOCtor.
6042 (estimate_edge_growth): Kill hack computing call stmt size directly.
6043 * lto-section-in.c (lto_section_name): Add inline section.
6044 * ipa-inline-analysis.c: Include lto-streamer.h
6045 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6046 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6047 (inline_summary_vec): Define.
6048 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6049 dump_inline_summaries): New functions.
6050 (estimate_function_body_sizes): Properly compute size/time of outgoing
6052 (compute_inline_parameters): Alloc inline_summary; do not compute
6053 size/time of incomming calls.
6054 (estimate_edge_time): Avoid missing time summary hack.
6055 (inline_read_summary): Read inline summary info.
6056 (inline_write_summary): Write inline summary info.
6057 (inline_free_summary): Free all hooks and inline summary vector.
6058 * lto-streamer.h: Add LTO_section_inline_summary section.
6059 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6060 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6062 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6064 * tree-vectorizer.h (vect_strided_store_supported): Add a
6065 HOST_WIDE_INT argument.
6066 (vect_strided_load_supported): Likewise.
6067 (vect_permute_store_chain): Return void.
6068 (vect_transform_strided_load): Likewise.
6069 (vect_permute_load_chain): Delete.
6070 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6071 count argument. Check that the count is a power of two.
6072 (vect_strided_load_supported): Likewise.
6073 (vect_permute_store_chain): Return void. Update after above changes.
6074 Assert that the access is supported.
6075 (vect_permute_load_chain): Likewise.
6076 (vect_transform_strided_load): Return void.
6077 * tree-vect-stmts.c (vectorizable_store): Update calls after
6078 above interface changes.
6079 (vectorizable_load): Likewise.
6080 (vect_analyze_stmt): Don't check for strided powers of two here.
6082 2011-04-14 Richard Guenther <rguenther@suse.de>
6084 PR tree-optimization/48590
6085 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6086 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6087 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6088 BUILT_IN_STACK_SAVE.
6089 * tree-ssa-dce.c (propagate_necessity): Handle
6090 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6092 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6094 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6097 2011-04-14 Richard Guenther <rguenther@suse.de>
6099 * tree.h (get_object_alignment_1): Declare.
6100 * builtins.c (get_object_alignment_1): Split out worker from ...
6101 (get_object_alignment): ... here.
6102 * fold-const.c (get_pointer_modulus_and_residue): Use
6103 get_object_alignment_1.
6105 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6107 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6109 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6110 parameter. Generalise code to handle arrays as well as vectors.
6111 (vect_setup_realignment): Update accordingly.
6112 * tree-vect-stmts.c (vectorizable_store): Likewise.
6113 (vectorizable_load): Likewise.
6115 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6117 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6118 within the per-copy loop.
6120 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6122 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6125 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6127 * doc/options.texi (Negative): Explicitly mention that the
6128 Negative chain must be circular.
6130 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6132 * function.h (block_chainon): Declare.
6133 * function.c (block_chainon): Define.
6135 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6136 Eric Weddington <eric.weddington@atmel.com>
6137 Georg-Johann Lay <avr@gjlay.de>
6139 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6141 (avr_init_builtins, avr_expand_builtin,
6142 avr_expand_delay_cycles, avr_expand_unop_builtin,
6143 avr_expand_binop_builtin ): New functions.
6144 (avr_builtin_id): New enum
6145 (struct avr_builtin_description): New struct
6146 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6147 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6149 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6150 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6151 UNSPECV_DELAY_CYCLES): new enumeration values
6152 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6153 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6154 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6155 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6156 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6157 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6158 "fmulsu"): New insns
6160 * config/avr/avr-c.c: fix line endings
6161 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6162 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6163 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6164 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6165 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6167 * doc/extend.texi (AVR Built-in Functions): New node
6168 (Target Builtins): Add documentation of AVR
6171 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6174 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6175 alone. Error if non-const data has attribute progmem.
6177 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6179 * tree.h (struct tree_constructor): Include tree_typed instead of
6181 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6182 TS_TYPED instead of TS_COMMON.
6184 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6186 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6187 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6188 (sse2_psadbw): Merge with *avx_psadbw.
6189 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6190 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6191 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6192 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6193 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6194 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6195 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6196 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6197 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6198 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6199 (ssse3_palignrti): Merge with *avx_palignrti.
6201 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6203 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6204 * tree-ssanames.c (fini_ssanames): VEC_free it.
6205 (make_ssa_name_fn): Update for VECness of free_ssanames.
6206 (release_ssa_name, release_dead_ssa_names): Likewise.
6207 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6209 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6210 TS_TYPED instead of TS_COMMON.
6212 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6214 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6215 statistics_counter_event.
6216 * tree-ssa-copyrename.c (stats): Define.
6217 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6218 statistics_counter_event.
6219 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6220 (bswap_stats, widen_mul_stats): Define.
6221 (insert_reciprocals): Increment rdivs_inserted.
6222 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6223 rfuncs_inserted. Add calls to statistics_counter_event.
6224 (execute_cse_sincos_1): Increment inserted.
6225 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6226 statistics_counter_event.
6227 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6228 of bswap_stats. Add calls to statistics_counter_event.
6229 (convert_mult_to_widen): Increment widen_mults_inserted.
6230 (convert_plusminus_to_widen): Increment maccs_inserted.
6231 (convert_mult_to_fma): Increment fmas_inserted.
6232 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6233 calls to statistics_counter_event.
6235 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6237 PR rtl-optimization/48455
6238 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6239 `temp_costs->mem_cost'.
6241 2011-04-13 Jan Hubicka <jh@suse.cz>
6243 * ipa-inline.h: New file.
6244 * ipa-inline-analysis.c: New file. Broken out of ...
6245 * ipa-inline.c: ... this file; update toplevel comment;
6246 include ipa-inline.h
6247 (inline_summary): Move to ipa-inline.h
6248 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6249 ipa-inline-analysis.c.
6250 (cgraph_estimate_time_after_inlining): Rename to
6251 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6252 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6253 to estimate_edge_growth.
6254 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6255 rename to estimate_size_after_inlining.
6256 (cgraph_mark_inline_edge): Update for new naming convention.
6257 (cgraph_check_inline_limits): Likewise.
6258 (cgraph_edge_badness): Likewise.
6259 (cgraph_decide_recursive_inlining): Likewise.
6260 (cgraph_decide_inlining_of_small_functions): Likewise.
6261 (cgraph_decide_inlining_incrementally): Likewise.
6262 (cgraph_estimate_growth): Rename to estimate_growth; move to
6263 ipa-inline-analysis.c.
6264 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6265 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6266 (compute_inline_parameters): Likewise.
6267 (compute_inline_parameters_for_current): Likewise.
6268 (pass_inline_parameters): Likewise.
6269 (inline_indirect_intraprocedural_analysis): Likewise.
6270 (analyze_function): Rename to inline_analyze_function; likewise.
6271 (add_new_function): Move to ipa-inline-analysis.c.
6272 (inline_generate_summary): Likewise.
6273 (inline_read_summary): Likewise.
6274 (inline_write_summary): Likewise.
6275 * Makefile.in (ipa-inline-analysis.c): New file.
6277 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6279 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6280 * configure: Regenerate.
6282 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6284 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6285 instead of tree_common.
6286 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6288 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6289 TS_TYPED rather than TS_COMMON.
6290 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6292 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6295 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6296 r20 around calls of __tablejump_elpm__
6298 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6301 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6303 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6305 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6307 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6308 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6309 (cfi_vec): New typedef.
6310 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6311 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6312 (cie_cfi_vec): New static variable.
6313 (cie_cfi_head): Delete.
6314 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6315 declaration changed. Use vector rather than list operations.
6316 (new_cfi): Don't initialize the dw_cfi_next field.
6317 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6318 rather than list operations.
6319 (lookup_cfa): Use vector rather than list operations.
6320 (output_cfis): New argument upto. Accept a cfi_vec rather than
6321 a dw_cfi_ref list head as argument. All callers changed.
6322 Iterate over the vector using upto as a maximum index.
6323 (output_all_cfis): New static function.
6324 (output_fde): Use vector rather than list operations. Use the
6325 new upto argument for output_cfis rather than manipulating a
6327 (dwarf2out_begin_prologue): Change initializations to match
6329 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6330 from the vector length rather than searching for the end of a list.
6331 Use output_all_cfis.
6332 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6334 2011-04-13 Nick Clifton <nickc@redhat.com>
6336 * config/rx/rx.md (movmemsi): Do not use this pattern when
6337 volatile pointers are involved.
6339 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6341 * config/i386/sse.md (pinsrbits): Remove.
6342 (sse2_packsswb): Merge with *avx_packsswb.
6343 (sse2_packssdw): Merge with *avx_packssdw.
6344 (sse2_packuswb): Merge with *avx_packuswb.
6345 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6346 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6347 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6348 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6349 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6350 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6351 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6352 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6353 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6354 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6355 (sse2_loadld): Merge with *avx_loadld.
6356 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6357 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6358 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6359 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6360 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6362 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6364 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6366 * print-tree.c (print_node): Likewise.
6367 * tree-inline.c (copy_tree_r): Likewise.
6368 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6369 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6370 instead of TS_COMMON.
6371 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6372 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6373 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6374 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6375 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6377 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6379 (TREE_CHAIN): Check for a TS_COMMON structure.
6380 (TREE_TYPE): Check for a TS_TYPED structure.
6382 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6384 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6385 cgraph_get_create_node instead of cgraph_node.
6387 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6389 * c-parser.c (c_parser_initelt): Updated call to
6390 objc_build_message_expr.
6391 (c_parser_postfix_expression): Likewise.
6393 2011-04-12 Kai Tietz <ktietz@redhat.com>
6395 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6396 MASK_MS_BITFIELD_LAYOUT bit.
6398 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6400 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6401 assert it is always true.
6402 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6405 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6407 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6408 compiling Objective-C to be more efficient.
6410 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6412 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6415 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6417 * recog.h, genoutput.c, optabs.c: Revert last patch.
6419 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6422 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6424 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6426 * recog.h (insn_operand_data): Add an "allows_mem" field.
6427 * genoutput.c (output_operand_data): Initialize it.
6428 * optabs.c (maybe_legitimize_operand_same_code): New function.
6429 (maybe_legitimize_operand): Use it when matching the original
6432 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6434 * genpreds.c (process_define_predicate): Move most processing
6435 to gensupport.c. Continue to validate the expression.
6436 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6437 (process_define_predicate): Move processing to gensupport.c.
6438 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6439 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6440 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6442 (valid_predicate_name_p): New function, split out from old
6443 genpreds.c:process_define_predicate.
6444 (process_define_predicate): New function, combining code from
6445 old genpreds.c and genrecog.c functions.
6446 (process_rtx): Call it for DEFINE_PREDICATE and
6447 DEFINE_SPECIAL_PREDICATE.
6449 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6451 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6452 size of a '%A' memory reference.
6453 (T_DREG, T_QREG): New neon_builtin_type_bits.
6454 (arm_init_neon_builtins): Assert that the load and store operands
6455 are neon_struct_operands.
6456 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6457 (NEON_ARG_MEMORY): New builtin_arg.
6458 (neon_dereference_pointer): New function.
6459 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6460 Handle NEON_ARG_MEMORY.
6461 (arm_expand_neon_builtin): Update after above interface changes.
6462 Use NEON_ARG_MEMORY for loads and stores.
6463 * config/arm/predicates.md (neon_struct_operand): New predicate.
6464 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6465 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6466 (V_four_elem): Tweak formatting.
6467 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6468 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6469 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6470 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6471 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6472 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6473 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6474 Use %A in the output template.
6475 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6476 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6477 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6478 the width of the memory access. Remove post-increment.
6479 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6481 2011-04-12 Nick Clifton <nickc@redhat.com>
6483 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6484 instruction for interrupt handlers if the target is the basic V850
6486 (expand_epilogue): Likewise.
6488 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6490 PR rtl-optimization/48549
6491 * combine.c (propagate_for_debug): Also stop after BB_END of
6492 this_basic_block. Process LAST and just stop processing after it.
6493 (combine_instructions): If last_combined_insn has been deleted,
6494 set last_combined_insn to its PREV_INSN.
6496 2011-04-12 Richard Guenther <rguenther@suse.de>
6498 PR tree-optimization/46076
6499 * gimple.h (struct gimple_statement_call): Add fntype field.
6500 (gimple_call_fntype): Adjust.
6501 (gimple_call_set_fntype): New function.
6502 * gimple.c (gimple_build_call_1): Set the call function type.
6503 * gimplify.c (gimplify_call_expr): Preserve the function
6504 type the frontend used for the call.
6505 (gimplify_modify_expr): Likewise.
6506 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6508 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6510 * tree-ssa.c (useless_type_conversion_p): Function pointer
6511 conversions are useless.
6513 2011-04-12 Martin Jambor <mjambor@suse.cz>
6515 * cgraph.h (cgraph_node): Remove function declaration.
6516 (cgraph_create_node): Declare.
6517 (cgraph_get_create_node): Likewise.
6518 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6519 Updated all callers.
6520 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6521 the decl does not already exist. Call cgraph_get_create_node instead
6523 (cgraph_get_create_node): New function.
6524 (cgraph_same_body_alias): Update comment.
6525 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6526 assert it does not return NULL.
6527 (cgraph_update_edges_for_call_stmt): Likewise.
6528 (cgraph_clone_edge): Likewise.
6529 (cgraph_create_virtual_clone): Likewise.
6530 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6531 instead of cgraph_node.
6532 (cgraph_add_new_function): Call cgraph_create_node or
6533 cgraph_get_create_node instead of cgraph_node.
6534 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6535 instead of cgraph_node.
6536 (record_eh_tables): Likewise.
6537 (mark_address): Likewise.
6538 (mark_load): Likewise.
6539 (build_cgraph_edges): Call cgraph_get_create_node instead
6541 (rebuild_cgraph_edges): Likewise.
6542 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6543 instead of cgraph_node.
6544 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6546 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6547 cgraph_create_node instead of cgraph_node.
6548 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6550 * lto-cgraph.c (input_node): Likewise.
6551 * lto-streamer-in.c (input_function): Likewise.
6552 * varasm.c (mark_decl_referenced): Likewise.
6553 (assemble_alias): Likewise.
6555 2011-04-12 Martin Jambor <mjambor@suse.cz>
6557 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6558 instead of cgraph_node and assert it does not return NULL.
6559 * lto-streamer-in.c (lto_read_body): Likewise.
6560 * omp-low.c (new_omp_context): Likewise.
6561 (create_task_copyfn): Likewise.
6562 * tree-emutls.c (lower_emutls_function_body): Likewise.
6563 * matrix-reorg.c (transform_allocation_sites): Likewise.
6565 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6568 * c-typeck.c (build_asm_expr): Error out on attempts to use
6569 void type outputs or inputs for constraints that allow reg or
6572 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6573 Richard Earnshaw <rearnsha@arm.com>
6576 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6577 to use sign-magnitude offsets. Reject unsupported unaligned
6578 cases. Add detailed description in comments.
6579 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6580 condition from TARGET_32BIT to TARGET_ARM.
6582 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6584 * tree.h (struct typed_tree): New.
6585 (struct tree_common): Include it instead of tree_base.
6586 (TREE_TYPE): Update for new location of type field.
6587 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6588 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6589 (union tree_node): Add typed field.
6590 * treestruct.def (TS_TYPED): New.
6591 * lto-streamer.c (check_handled_ts_structures): Handle it.
6592 * tree.c (MARK_TS_TYPED): New macro.
6593 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6595 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6597 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6598 (force_nonfallthru): Do not alter the loop nest if no basic block
6601 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6603 * config/i386/sse.md (VI): New mode iterator.
6605 (AVX256MODEI): Ditto.
6606 (AVXMODEF4P): Ditto.
6607 (avxvecpsmode): Ditto.
6608 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6609 (sse2_andnot<mode>3): New expander.
6610 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6611 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6612 (<any_logic:code><mode>3): Use VI mode iterator.
6613 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6614 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6615 (*andnottf3): Handle AVX three-operand constraints.
6616 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6618 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6619 Robert Millan <rmh@gnu.org>
6621 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6622 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6623 GNU_USER_DYNAMIC_LINKER64): Define.
6624 (REG_NAME): Don't undefine.
6625 (MD_UNWIND_SUPPORT): Undefine.
6626 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6627 (REG_NAME): Don't undefine.
6628 (MD_UNWIND_SUPPORT): Undefine.
6629 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6631 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6633 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6634 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6636 2011-04-11 Xinliang David Li <davidxl@google.com>
6638 * value-profile.c (check_ic_target): New function.
6639 (gimple_ic_transform): Sanity check indirect call target.
6640 * gimple-low.c (gimple_check_call_args): Interface change.
6641 (gimple_check_call_matching_types): New function.
6642 * tree-inline.c (tree_can_inline_p): Call new function.
6644 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6646 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6647 tree-pretty-print.h & realmpfr.h.
6649 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6652 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6653 (setup_allocno_and_important_classes): Ditto.
6655 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6657 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6658 GNU_USER_DYNAMIC_LINKER.
6659 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6660 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6661 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6662 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6663 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6664 GNU_USER_TARGET_OS_CPP_BUILTINS.
6665 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6666 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6667 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6668 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6669 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6670 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6671 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6672 GNU_USER_TARGET_OS_CPP_BUILTINS.
6673 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6674 GNU_USER_DYNAMIC_LINKER.
6675 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6676 GNU_USER_TARGET_OS_CPP_BUILTINS.
6677 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6678 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6679 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6680 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6681 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6682 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6683 GNU_USER_DYNAMIC_LINKER64): Remove.
6684 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6685 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6686 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6687 GNU_USER_DYNAMIC_LINKER.
6688 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6689 GNU_USER_TARGET_OS_CPP_BUILTINS.
6690 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6691 GNU_USER_TARGET_OS_CPP_BUILTINS.
6692 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6693 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6694 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6695 GNU_USER_TARGET_OS_CPP_BUILTINS.
6696 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6697 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6698 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6699 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6700 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6701 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6702 GNU_USER_DYNAMIC_LINKER.
6703 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6704 GNU_USER_TARGET_OS_CPP_BUILTINS.
6705 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6706 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6707 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6708 GNU_USER_DYNAMIC_LINKER.
6709 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6710 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6711 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6712 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6713 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6714 GNU_USER_DYNAMIC_LINKER.
6715 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6716 GNU_USER_DYNAMIC_LINKERN32.
6717 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6718 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6719 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6720 GNU_USER_DYNAMIC_LINKER32.
6721 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6722 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6723 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6724 GNU_USER_DYNAMIC_LINKER.
6725 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6726 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6727 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6728 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6729 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6730 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6731 GNU_USER_DYNAMIC_LINKER32.
6732 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6733 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6734 GNU_USER_DYNAMIC_LINKER.
6735 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6736 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6737 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6738 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6739 GNU_USER_DYNAMIC_LINKER64.
6740 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6741 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6742 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6743 GNU_USER_DYNAMIC_LINKER.
6744 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6745 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6746 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6747 GNU_USER_DYNAMIC_LINKER.
6748 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6749 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6750 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6751 GNU_USER_DYNAMIC_LINKER32.
6752 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6753 GNU_USER_DYNAMIC_LINKER64.
6754 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6755 GNU_USER_DYNAMIC_LINKER64.
6756 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6757 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6758 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6759 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6760 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6762 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6764 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6765 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6766 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6767 GNU_USER_DYNAMIC_LINKER.
6768 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6769 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6770 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6771 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6772 GNU_USER_DYNAMIC_LINKER64.
6773 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6774 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6775 GNU_USER_LINK_EMULATION.
6776 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6777 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6778 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6779 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6780 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6781 CPP_SPEC, CC1_SPEC): Remove.
6782 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6783 (GNU_USER_DYNAMIC_LINKER): Define.
6784 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6785 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6786 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6787 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6788 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6789 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6790 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6791 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6792 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6793 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6794 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6795 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6796 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6797 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6798 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6799 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6800 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6801 GNU_USER_DYNAMIC_LINKER.
6802 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6803 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6804 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6805 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6806 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6807 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6808 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6809 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6810 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6811 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6813 2011-04-11 Kai Tietz <ktietz@redhat.com>
6817 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6818 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6820 (ix86_is_msabi_thiscall): Removed.
6821 (ix86_is_type_thiscall): Likewise.
6822 (ix86_get_callcvt): New function.
6823 (ix86_comp_type_attributes): Simplify check.
6824 (ix86_function_regparm): Use ix86_get_callcvt for calling
6825 convention attribute checks.
6826 (ix86_return_pops_args): Likewise.
6827 (ix86_static_chain): Likewise.
6828 (x86_this_parameter): Likewise.
6829 (x86_output_mi_thunk): Likewise.
6830 (ix86_function_type_abi): Optimize check for types without attributes.
6831 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6832 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6833 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6835 (IX86_BASE_CALLCVT): Helper macro.
6836 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6837 Use ix86_get_callcvt for calling convention attribute checks and avoid
6838 symbol-decoration for stdcall in TARGET_RTD case.
6839 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6841 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6844 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6846 * config/i386/sse.md (VI_128): New mode iterator.
6847 (VI12_128): Rename from SSEMODE12.
6848 (VI14_128): Rename from SSEMODE14.
6849 (VI124_128): New mode iterator.
6850 (VI24_128): Rename from SSEMODE248.
6851 (VI248_128): Rename from SSEMODE248.
6852 (SSEMODE124C8): Remove.
6853 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6854 (*sse2_<plusminus_insn><mode>3): Merge with
6855 *avx_<plusminus_insn><mode>3.
6856 (*mulv8hi3): Merge with *avx_mulv8hi3.
6857 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6858 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6859 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6860 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6861 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6862 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6863 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6864 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6865 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6866 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6867 (*<smaxmin:code>v8hi3): Ditto.
6868 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6869 (*<smaxmin:code>v16qi3): Ditto.
6870 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6871 (*sse2_eq<mode>3): Ditto.
6872 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6873 (*sse2_gt<mode>3): Ditto.
6874 (vcondv2di): Split out of vcond<mode>.
6875 (vconduv2di): Split out of vcondu<mode>.
6877 2011-04-11 Richard Guenther <rguenther@suse.de>
6879 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6880 before calling tree_low_cst.
6882 2011-04-11 Richard Guenther <rguenther@suse.de>
6884 * stor-layout.c (layout_type): Compute all array index size operations
6885 in the original type.
6886 (initialize_sizetypes): Add comment.
6887 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6889 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6891 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6893 2011-04-11 Martin Jambor <mjambor@suse.cz>
6895 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6896 of cgraph_node, handle NULL return value.
6897 (cgraph_global_info): Likewise.
6898 (cgraph_rtl_info): Likewise.
6899 * tree-inline.c (estimate_num_insns): Likewise.
6900 * gimplify.c (unshare_body): Likewise.
6901 (unvisit_body): Likewise.
6902 (gimplify_body): Likewise.
6903 * predict.c (optimize_function_for_size_p): Likewise.
6904 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6905 (call_may_clobber_ref_p_1): Likewise.
6906 * varasm.c (function_section_1): Likewise.
6907 (assemble_start_function): Likewise.
6909 2011-04-11 Martin Jambor <mjambor@suse.cz>
6911 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6913 * final.c (rest_of_clean_state): Likewise.
6914 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6915 * passes.c (pass_init_dump_file): Likewise.
6916 (execute_all_ipa_transforms): Likewise.
6917 (function_called_by_processed_nodes_p): Likewise.
6918 * predict.c (maybe_hot_frequency_p): Likewise.
6919 (probably_never_executed_bb_p): Likewise.
6920 (compute_function_frequency): Likewise.
6921 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6922 (unnest_nesting_tree_1): Likewise.
6923 (lower_nested_functions): Likewise.
6924 * tree-optimize.c (execute_fixup_cfg): Likewise.
6925 (tree_rest_of_compilation): Likewise.
6926 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6927 * tree-sra.c (ipa_early_sra): Likewise.
6928 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6929 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6930 * ipa.c (record_cdtor_fn): Likewise.
6931 * ipa-inline.c (cgraph_early_inlining): Likewise.
6932 (compute_inline_parameters_for_current): Likewise.
6933 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6934 * ipa-pure-const.c (local_pure_const): Likewise.
6935 * ipa-split.c (split_function): Likewise.
6936 (execute_split_functions): Likewise.
6937 * cgraphbuild.c (build_cgraph_edges): Likewise.
6938 (rebuild_cgraph_edges): Likewise.
6939 (cgraph_rebuild_references): Likewise.
6940 (remove_cgraph_callee_edges): Likewise.
6941 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6942 (verify_cgraph_node): Likewise.
6943 (cgraph_analyze_functions): Likewise.
6944 (cgraph_preserve_function_body_p): Likewise.
6945 (save_inline_function_body): Likewise.
6946 (save_inline_function_body): Likewise.
6947 * tree-inline.c (copy_bb): Likewise.
6948 (optimize_inline_calls): Likewise.
6950 2011-04-11 Martin Jambor <mjambor@suse.cz>
6952 PR tree-optimization/48195
6953 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6954 ipa_check_create_edge_args.
6955 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6956 ipa_check_create_edge_args.
6957 * ipa-inline.c (inline_generate_summary): Do not call
6958 ipa_check_create_node_params and ipa_check_create_edge_args.
6959 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6960 ipa_check_create_edge_args.
6962 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6964 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6966 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6967 * function.c (record_hard_reg_sets): Likewise.
6968 * ira.c (compute_regs_asm_clobbered): Likewise.
6969 * sched-deps.c (sched_analyze_1): Likewise.
6970 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6972 2011-04-09 Xinliang David Li <davidxl@google.com>
6974 PR tree-optimization/PR48484
6975 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6976 has_valid_pred lazily
6978 2011-04-09 Duncan Sands <baldrick@free.fr>
6980 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6982 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6984 * combine.c (combine_validate_cost): Adjust comments. Set registered
6985 cost of I0 to zero at the end, if any.
6987 2011-04-08 Xinliang David Li <davidxl@google.com>
6989 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6990 to insane profile data.
6992 2011-04-08 Xinliang David Li <davidxl@google.com>
6994 * ipa-cp.c (ipcp_update_profiling): Correct
6995 negative scale factor due to insane profile data.
6997 2011-04-08 Xinliang David Li <davidxl@google.com>
6999 * final.c (dump_basic_block_info): New function.
7000 (final): Dump basic block.
7001 (final_scan_insn): Remove old dump.
7003 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7006 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7009 2011-04-08 Michael Matz <matz@suse.de>
7012 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7014 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7015 * rtl.h (rebuild_jump_labels_chain): Declare.
7016 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7017 insns inserted on edges.
7019 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7021 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7022 * config/arm/arm-arches.def: New.
7023 * config/arm/arm-opts.h: New.
7024 * config/arm/genopt.sh: New.
7025 * config/arm/arm-tables.opt: New (generated).
7026 * config/arm/arm.c (arm_handle_option, arm_target_help,
7027 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7028 (all_architectures): Get most table contents from arm-arches.def.
7029 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7030 arm_selected_tune here.
7031 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7032 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7033 (march=, mcpu=, mtune=): Use Enum and Var.
7034 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7035 (arm.o): Update dependencies.
7037 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7039 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7041 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7042 (write_typed_alloc_defns): Likewise.
7043 (main): Calls write_typed_alloc_defns with output_header.
7045 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7048 * ira-color.c (setup_profitable_hard_regs): Add comments.
7049 Don't take prohibited hard regs into account.
7050 (setup_conflict_profitable_regs): Rename to
7051 get_conflict_profitable_regs.
7052 (check_hard_reg_p): Check prohibited hard regs.
7054 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7056 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7057 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7058 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7060 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7063 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7064 move from floating point to shift amount register.
7065 (emit_move_sequence): Remove secondary reload support for floating
7066 point to shift amount amount register copies.
7067 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7068 amount register copies.
7069 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7070 register, return false if mode isn't a scalar integer mode.
7071 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7073 2011-04-08 Richard Guenther <rguenther@suse.de>
7075 * gimple.c (gimple_call_flags): Remove kludge.
7077 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7079 * sel-sched.c (sel_region_init): Move call to
7080 sel_setup_region_sched_flags after setup_current_loop_nest.
7082 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7084 PR rtl-optimization/48272
7085 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7086 init_insn_reg_pressure_info. Adjust a caller.
7087 * sched-int.h (init_insn_reg_pressure_info): Declare.
7088 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7089 when sched-pressure is enabled.
7091 2011-04-08 Richard Guenther <rguenther@suse.de>
7093 * gimple.c (gimple_set_modified): Do not queue calls to
7094 MODIFIED_NORETURN_CALLS here ...
7095 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7097 2011-04-08 Richard Guenther <rguenther@suse.de>
7100 * toplev.c (lang_dependent_init): Do not open asm_out_file
7101 in WPA mode, nor perform debug machinery initialization.
7102 (finalize): Do not unlink asm_out_file in WPA mode.
7104 2011-04-08 Richard Guenther <rguenther@suse.de>
7106 * gimple.h (gimple_call_fntype): New function.
7107 (gimple_call_return_type): Use it.
7108 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7109 * gimple-low.c (gimple_check_call_args): Likewise.
7110 * gimple.c (gimple_call_flags): Likewise.
7111 (gimple_call_arg_flags): Likewise.
7112 (gimple_call_return_flags): Likewise.
7113 * tree-cfg.c (verify_gimple_call): Likewise.
7114 (do_warn_unused_result): Likewise.
7115 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7116 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7118 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7120 PR rtl-optimization/48235
7121 * sel-sched.c (code_motion_process_successors): Recompute the last
7122 insn in basic block if control flow changed.
7123 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7124 Update condition for ilist_remove.
7126 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7128 PR rtl-optimization/48302
7129 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7130 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7131 it to record added preheader blocks.
7132 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7133 on to sel_add_loop_preheaders.
7134 (sel_region_init): Move call to setup_current_loop_nest after
7137 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7140 * cfgloop.h (loop_has_exit_edges): New helper.
7141 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7143 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7144 that have no exit edges.
7146 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7148 PR rtl-optimization/48442
7149 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7150 all callers. Adjust assert.
7152 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7154 PR tree-optimization/48377
7155 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7156 is_packed to true even for types with smaller TYPE_ALIGN than
7159 2011-04-08 Richard Guenther <rguenther@suse.de>
7162 * doc/tm.texi: Re-generate.
7164 2011-04-08 Wei Guozhi <carrot@google.com>
7167 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7168 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7169 * config/arm/arm.md (*push_multi): Change the length computation to
7172 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7174 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7175 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7176 * doc/tm.texi: Regenerate.
7177 * system.h (ASM_OUTPUT_BSS): Poison.
7178 * varasm.c (asm_output_bss): Remove function.
7179 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7181 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7182 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7183 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7184 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7186 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7188 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7190 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7192 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7194 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7197 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7199 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7200 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7201 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7203 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7204 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7205 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7206 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7207 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7208 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7209 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7210 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7211 options. Don't map other m68k options manually. Don't handle
7212 old-style options as canonical.
7213 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7214 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7216 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7218 * basic-block.h (force_nonfallthru): Move to...
7219 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7220 (force_nonfallthru): ...here.
7221 * cfghooks.c (force_nonfallthru): New function.
7222 * cfgrtl.c (force_nonfallthru): Rename into...
7223 (rtl_force_nonfallthru): ...this.
7224 (commit_one_edge_insertion): Do not set AUX field.
7225 (commit_edge_insertions): Do not discover new basic blocks.
7226 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7227 (cfg_layout_rtl_cfg_hooks): Likewise.
7228 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7229 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7230 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7232 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7234 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7237 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7239 * config/i386/sse.md: Update copyright year.
7240 (avxcvtvecmode): Remove.
7241 (sse_movhlps): Merge with *avx_movhlps.
7242 (sse_movlhps): Merge with *avx_movlhps.
7243 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7244 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7245 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7246 (sse_loadhps): Merge with *avx_loadhps.
7247 (sse_storelps): Merge with *avx_storelps.
7248 (sse_loadlps): Merge with *avx_loadlps.
7249 (sse_movss): Merge with *avx_movss.
7250 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7251 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7252 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7253 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7254 (vec_set<mode>_0): Ditto.
7255 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7256 (sse4_1_insertps): Merge with *avx_insertps.
7257 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7258 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7259 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7260 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7261 (sse2_storehpd): Merge with *avx_storehpd.
7262 (sse2_loadhpd): Merge with *avx_loadhpd.
7263 (sse2_loadlpd): Merge with *avx_loadlpd.
7264 (sse2_movsd): Merge with *avx_movsd.
7265 (*vec_concatv2df): Merge with *vec_concatv2df.
7267 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7270 * combine.c (combine_instructions): Add last_combined_insn,
7271 update it if insn is after it, pass it to all try_combine calls.
7272 (try_combine): Add last_combined_insn parameter, pass it instead of
7273 i3 to propagate_for_debug.
7275 2011-04-07 Nick Clifton <nickc@redhat.com>
7277 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7278 to handle MDR <-> data register transfers.
7279 (movhi_internal): Likewise.
7281 2011-04-07 Alan Modra <amodra@gmail.com>
7283 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7284 previous stack info.
7286 2011-04-07 Tom de Vries <tom@codesourcery.com>
7289 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7290 flow_find_cross_jump. Swap variables to implement backward replacement.
7291 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7293 2011-04-07 Tom de Vries <tom@codesourcery.com>
7296 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7297 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7299 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7300 src1 or src2. Redirect edges to the last basic block. Update
7301 frequency and count on multiple basic blocks in case of fallthru.
7303 2011-04-07 Tom de Vries <tom@codesourcery.com>
7306 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7308 (old_insns_match_p): Change return type. Replace return false/true
7309 with return dir_none/dir_both. Use can_replace_by.
7310 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7311 direction from dir_p. Register replacement direction in dir, last_dir
7312 and afterlast_dir. Handle new return type of old_insns_match_p using
7313 merge_dir. Return replacement direction in dir_p.
7314 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7315 return type of old_insns_match_p.
7316 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7317 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7318 flow_find_cross_jump.
7319 * basic-block.h (enum replace_direction): New type.
7320 (flow_find_cross_jump): Add parameter to declaration.
7322 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7324 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7325 (AVXMODEDCVTPS2DQ): Ditto.
7326 (VEC_FLOAT_MODE): Ditto.
7327 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7328 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7329 (<any_logic:code><mode>3): Use VF mode iterator.
7330 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7331 Use VF mode iterator.
7332 (copysign<mode>3): Use VF mode iterator.
7333 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7334 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7335 (*<any_logic:code><MODEF:mode>3): Merge with
7336 *avx_<any_logic:code><MODEF:mode>3.
7337 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7338 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7339 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7340 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7341 (sse2_cvtdq2ps): Use %v modifier.
7342 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7343 (avx_cvtps2dq<avxmodesuffix>): Remove.
7344 (sse2_cvtps2dq): Use %v modifier.
7345 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7346 (avx_cvttps2dq<avxmodesuffix>): Remove.
7347 (sse2_cvttps2dq): Use %v modifier.
7348 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7349 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7350 (sse2_cvtsd2siq): Fix insn template.
7351 (sse2_cvtsd2siq_2): Ditto.
7352 (sse2_cvttsd2siq): Ditto.
7353 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7354 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7356 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7358 * gcov-io.c: Use GCC Runtime Library Exception.
7360 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7363 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7364 as base_reg whatever register reg has been eliminated to, instead
7365 of hardcoding STACK_POINTER_REGNUM.
7367 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7369 * doc/tm.texi.in: Document C target hooks as separate from general
7371 * doc/tm.texi: Regenerate.
7372 * genhooks.c (struct hook_desc): Add docname field.
7373 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7375 (hook_array): Include c-target.def.
7376 (emit_documentation): Use docname field in output.
7377 (emit_init_macros): Take docname argument. Only emit definitions
7378 for hooks matching docname.
7379 (main): Expect additional arguments in all cases. Pass argument
7380 to emit_init_macros.
7381 * target.def: Move initial macro definitions and comments to
7382 target-hooks-macros.h.
7383 (gcc_targetcm): Move to c-family/c-target.def.
7384 * target.h (targetcm): Move declaration to c-family/c-target.h.
7385 * targhooks.c (default_handle_c_option): Move to
7387 * targhooks.h (default_handle_c_option): Move declaration to
7388 c-family/c-common.h.
7389 * target-hooks-macros.h: New file.
7390 * config.gcc (target_has_targetcm): Define and use to add to
7391 c_target_objs and cxx_target_objs.
7392 * config/default-c.c: New file.
7393 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7394 of target.h and target-def.h.
7395 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7396 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7397 darwin_check_cfstring_format_arg): Make static.
7398 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7399 TARGET_STRING_OBJECT_REF_TYPE_P,
7400 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7401 * config/darwin-protos.h (darwin_objc_construct_string,
7402 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7404 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7405 TARGET_STRING_OBJECT_REF_TYPE_P,
7406 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7407 * config/t-darwin (darwin-c.o): Update dependencies.
7408 * system.h (TARGET_HAS_TARGETCM): Poison.
7409 * Makefile.in (TARGET_H): Update.
7410 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7411 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7412 (default-c.o): New target.
7413 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7414 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7415 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7417 (build/genhooks.o): Update dependencies.
7419 2011-04-06 Richard Guenther <rguenther@suse.de>
7421 * ipa-inline.c (enum inlining_mode): Remove.
7422 (cgraph_flatten): Use some other token.
7423 (cgraph_edge_early_inlinable_p): New function, split out from ...
7424 (cgraph_perform_always_inlining): New function, split out from ...
7425 (cgraph_decide_inlining_incrementally): ... here.
7426 (cgraph_mark_inline_edge): Adjust.
7427 (cgraph_early_inlining): Re-structure.
7428 (pass_early_inline): Require SSA form.
7430 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7431 Julian Brown <julian@codesourcery.com>
7432 Mark Shinwell <shinwell@codesourcery.com>
7434 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7435 LO_REGS only for Thumb-1.
7436 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7437 be used in short instructions when optimising for size on Thumb-2.
7439 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7441 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7442 associated with user returns to be preserved.
7444 2011-04-06 Tristan Gingold <gingold@adacore.com>
7446 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7447 symbol_queue_size, DBXOUT_DECR_NESTING,
7448 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7449 if XCOFF_DEBUGGING_INFO.
7451 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7453 * config/i386/i386.md (attribute isa): New.
7454 (attribute enabled): New.
7455 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7456 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7457 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7458 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7459 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7460 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7461 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7462 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7464 * config/i386/sse.md (VF): New mode iterator.
7468 (SSEMODEF4): Remove.
7469 (attribute sse): Handle V8SF and V4DF modes.
7470 (<absneg:code><mode>2): Use VF mode iterator.
7471 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7473 (<plusminus_insn><mode>3): Use VF mode iterator.
7474 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7475 Use VF mode iterator.
7476 (<sse>_vm<plusminus_insn><mode>3): Merge with
7477 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7478 (mul<mode>3): Use VF mode iterator.
7479 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7480 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7482 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7483 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7484 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7485 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7487 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7488 Use VF1 mode iterator.
7489 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7490 (sqrt<VF2:mode>2): New expander.
7491 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7492 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7493 and sqrtv2df2. Use VF mode iterator.
7494 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7496 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7497 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7498 Use VF1 mode iterator.
7499 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7500 (<smaxmin:code><mode>3): Use VF mode iterator.
7501 (*<smaxmin:code><mode>3_finite): Merge with
7502 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7503 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7504 (<sse>_vm<smaxmin:code><mode>2): Merge with
7505 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7506 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7508 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7510 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7511 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7512 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7513 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7514 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7516 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7517 Use VF_128 mode iterator.
7518 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7520 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7521 VF_128 mode iterator.
7522 (vcond<mode>): Use VF mode iterator.
7523 * config/i386/predicates.md (sse_comparison_operator): Merge with
7524 avx_comparison_float_operator. Do not declare as special_predicate.
7525 * config/i386/i386.c (struct builtin_description): Update for renamed
7527 (ix86_expand_args_builtin): Ditto.
7528 (ix86_expand_sse_compare_mask): Ditto.
7530 2011-04-06 Richard Guenther <rguenther@suse.de>
7532 * tree-inline.c (estimate_num_insns): For calls simply account
7533 for all passed arguments and a used return value.
7535 2011-04-06 Richard Guenther <rguenther@suse.de>
7537 PR tree-optimization/47663
7538 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7539 call_stmt_time fields.
7540 (cgraph_edge_inlinable_p): Declare.
7541 (cgraph_edge_recursive_p): New inline function.
7542 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7543 (cgraph_clone_edge): Copy it.
7544 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7545 Account for call stmt time.
7546 (cgraph_estimate_time_after_inlining): Take edge argument.
7547 (cgraph_estimate_edge_growth): Account call stmt size.
7548 (cgraph_estimate_size_after_inlining): Take edge argument.
7549 (cgraph_mark_inline_edge): Adjust.
7550 (cgraph_check_inline_limits): Likewise.
7551 (cgraph_recursive_inlining_p): Remove.
7552 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7553 (cgraph_decide_recursive_inlining): Take edge argument and
7555 (cgraph_decide_inlining_of_small_functions): Do not avoid
7556 diags for recursive inlining here.
7557 (cgraph_flatten): Adjust.
7558 (cgraph_decide_inlining_incrementally): Likewise.
7559 (estimate_function_body_sizes): Remove call cost handling.
7560 (compute_inline_parameters): Initialize caller edge call costs.
7561 (cgraph_estimate_edge_growth): New function.
7562 (cgraph_estimate_growth): Use it.
7563 (cgraph_edge_badness): Likewise.
7564 (cgraph_check_inline_limits): Take an edge argument.
7565 (cgraph_decide_inlining_of_small_functions): Adjust.
7566 (cgraph_decide_inlining): Likewise.
7567 * tree-inline.c (estimate_num_insns): Only account for call
7568 return value if it is used.
7569 (expand_call_inline): Avoid diagnostics on recursive inline
7571 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7572 (input_edge): Input edge call costs.
7574 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7576 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7578 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7580 * doc/invoke.texi (Spec Files): Fix typo.
7582 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7584 * profile.c (branch_prob): Move declaration of local variable. Remove
7585 obsolete ??? comment. Expand the location explicitly instead of using
7586 the LOCATION_FILE and LOCATION_LINE macros.
7588 2011-04-06 Wei Guozhi <carrot@google.com>
7591 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7592 (arm_cond_branch): Likewise.
7593 (arm_cond_branch_reversed): Likewise.
7594 (arm_jump): Likewise.
7595 (push_multi): Likewise.
7596 * config/arm/constraints.md (Py): New constraint.
7598 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7601 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7603 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7604 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7605 #ifdef DBX_DEBUGGING_INFO.
7607 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7610 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7611 if old and new states differ.
7613 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7615 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7616 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7617 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7618 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7619 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7621 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7622 ColdFire options to -mcpu= options.
7624 2011-04-05 Jeff Law <law@redhat.com>
7626 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7627 check if BB is a successor of LOOP->header and return
7628 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7630 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7632 * cprop.c (struct reg_use): Remove.
7633 (reg_use_table): Make an array of RTX.
7634 (find_used_regs, constprop_register, local_cprop_pass,
7635 bypass_block): Simplify users of reg_use_table.
7636 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7637 on one of the uses found by find_used_regs.
7639 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7642 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7645 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7647 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7649 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7651 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7654 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7656 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7658 * combine.c: Include obstack.h.
7659 (struct insn_link): Define.
7660 (uid_log_links): Adjust type.
7661 (FOR_EACH_LOG_LINK): New macro.
7662 (insn_link_obstack): Declare.
7663 (alloc_insn_link): Define.
7664 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7665 type of link variables.
7666 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7667 (try_combine, record_promoted_values, distribute_notes): Likewise.
7668 (distribute_links): Likewise. Tweak prototype.
7669 (clear_log_links): Delete.
7670 (adjust_for_new_dest): Call alloc_insn_link.
7671 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7673 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7675 * gcse.c (modify_mem_list): Convert to an array of VECs.
7676 (canon_modify_mem_list, compute_transp): Tweak formatting.
7677 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7678 (load_killed_in_block_p): Likewise.
7679 (record_last_mem_set_info): Likewise.
7680 (clear_modify_mem_tables): Likewise.
7682 2011-04-05 Tom de Vries <tom@codesourcery.com>
7685 * function.c (emit_use_return_register_into_block): Only define if
7688 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7690 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7692 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7694 * config/rx/rx-opts.h: New.
7695 * config/rx/rx.c (rx_cpu_type): Remove.
7696 (rx_handle_option): Don't assert that global structures are in
7697 use. Access variables via opts pointer. Defer most handling of
7698 OPT_mint_register_. Use error_at.
7699 (rx_option_override): Handle deferred OPT_mint_register_ here.
7700 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7701 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7702 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7703 (rx_cpu_types): New Enum and EnumValue entries.
7704 (mint-register=): Use Defer and use Var accordingly.
7706 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7708 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7709 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7710 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7712 (debug_free_queue, debug_nesting, symbol_queue_index):
7714 * dbxout.c: ...to here. Make static.
7716 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7718 * gcse.c (modify_pair): Define. Define a VEC of it.
7719 (canon_modify_mem_list): Convert to an array of VECs.
7720 (free_insn_expr_list_list): Delete.
7721 (clear_modify_mem_tables): Call VEC_free instead.
7722 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7723 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7724 (canon_list_insert, compute_transp): Likewise.
7726 2011-04-05 Tom de Vries <tom@codesourcery.com>
7729 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7732 2011-04-05 Tom de Vries <tom@codesourcery.com>
7735 * function.c (emit_use_return_register_into_block): New function.
7736 (thread_prologue_and_epilogue_insns): Use
7737 emit_use_return_register_into_block.
7739 2011-04-05 Tom de Vries <tom@codesourcery.com>
7742 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7745 2011-04-05 Tom de Vries <tom@codesourcery.com>
7747 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7749 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7751 * config/arm/arm.md (define_constants for unspec): Replace with
7753 (define_constants for unspecv): Replace with define_c_enum.
7754 * config/arm/neon.md (define_constants for unspec): Replace with
7757 2011-04-04 Richard Henderson <rth@redhat.com>
7760 * dwarf2out.c (output_line_info): Always emit line info from
7761 at least one section.
7762 (dwarf2out_init): Create text_section_line_info here ...
7763 (set_cur_line_info_table): ... not here.
7765 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7768 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7771 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7773 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7775 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7776 (expr_equiv_p): Remove.
7777 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7778 (hash_scan_set): Update call to insert_set_in_table.
7779 (dump_hash_table): Dump <dest, src> pair.
7780 (lookup_set): Simplify. Lookup <dest, src> pair.
7781 (compute_transp): Remove, fold heavily simplified code into...
7782 (compute_local_properties): ...here. Expect COMP and TRANSP
7784 (find_avail_set): Take set directly from struct expr.
7785 (find_bypass-set): Likewise.
7786 (bypass_block): Likewise.
7787 (cprop_insn): Likewise. Remove redundant INSN_P test.
7789 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7790 checks on form of COND from find_implicit_sets to here.
7791 (find_implicit_sets): Cleanup control flow. Split critical edges
7792 if it exposes implicit sets. Allocate/resize implicit_sets as
7794 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7795 changed something. Run df_analyze after find_implicit_sets if any
7796 edges were split. Do not allocate implicit_sets here.
7798 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7799 (gcse_obstack): Renamed to cprop_obstack.
7800 (GNEW, GNEWVEC, GNEWVAR): Remove.
7802 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7803 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7804 (gcse_alloc): Likewise, and rename to cprop_alloc.
7805 (alloc_gcse_men, free_gcse_mem): Remove.
7806 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7807 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7808 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7810 * cprop.c (oprs_not_set_p): Remove.
7811 (mark_set, mark_clobber): Remove.
7812 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7813 (reg_not_set_p): New function.
7814 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7815 (cprop_insn): Likewise.
7816 (cprop_jump): Use FOR_EACH_EDGE.
7818 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7821 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7822 (rank_for_schedule): Use scheduled_insns vector instead of
7823 last_scheduled_insn.
7824 (ok_for_early_queue_removal): Likewise.
7825 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7827 (choose_ready): Likewise.
7828 (commit_schedule): Use VEC_iterate.
7829 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7830 a dbg_cnt, use it and ensure the first insn is in the ready list.
7831 (haifa_sched_init): Allocate scheduled_insns.
7832 (sched_extend_ready_list): Don't allocate it; reserve space.
7833 (haifa_sched_finish): Free it.
7835 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7837 * optc-gen.awk: Always remove type from Variable entry before
7838 recording in var_seen.
7840 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7842 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7843 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7844 call to tidy_fallthru_edges.
7846 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7848 * doc/options.texi (ToLower): Document.
7849 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7850 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7851 * opts.h (cl_option): Add cl_tolower field.
7852 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7853 arguments with lowercase strings.
7854 * config/rx/rx.opt (mcpu=): Add ToLower.
7855 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7858 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7860 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7862 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7864 * config/vax/vax.c: Include reload.h.
7866 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7868 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7869 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7870 (sparc_preferred_reload_class): New function.
7872 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7875 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7876 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7878 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7880 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7881 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7883 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7885 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7886 (ASM_OUTPUT_ALIGNED_BSS): Define.
7888 2011-04-03 Michael Matz <matz@suse.de>
7890 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7891 and next_slot members.
7892 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7893 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7894 (lto_streamer_cache_append): Declare.
7895 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7896 unsigned index, remove offset parameter, ensure that we append
7897 or update existing entries.
7898 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7899 parameter, update next_slot for append.
7900 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7902 (lto_streamer_cache_insert_at): Likewise.
7903 (lto_streamer_cache_append): New function.
7904 (lto_streamer_cache_lookup): Use unsigned index.
7905 (lto_streamer_cache_get): Likewise.
7906 (lto_record_common_node): Don't test tree_node_can_be_shared.
7907 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7908 (lto_streamer_cache_delete): Don't free offsets member.
7909 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7910 (lto_output_string_with_length): Use lto_output_data_stream.
7911 (lto_output_tree_header): Remove ix parameter, don't write it.
7912 (lto_output_builtin_tree): Likewise.
7913 (lto_write_tree): Adjust callers to above, don't track and write
7914 offset, write unsigned index.
7915 (output_unreferenced_globals): Don't emit all global vars.
7916 (write_global_references): Use unsigned indices.
7917 (lto_output_decl_state_refs): Likewise.
7918 (write_symbol): Likewise.
7919 * lto-streamer-in.c (lto_input_chain): Move earlier.
7920 (input_function): Use unsigned index.
7921 (input_alias_pairs): Don't read and then ignore all global vars.
7922 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7923 don't pass it back, use lto_streamer_cache_append.
7924 (lto_register_var_decl_in_symtab): Use unsigned index.
7925 (lto_register_function_decl_in_symtab): Likewise.
7926 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7928 (lto_get_builtin_tree): Don't read index, use
7929 lto_streamer_cache_append.
7930 (lto_read_tree): Adjust call to lto_materialize_tree.
7932 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7933 don't use function calls in arguments to MIN.
7935 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7938 * gimple.c (gimple_type_leader_entry): Mark deletable.
7940 2011-04-03 Alan Modra <amodra@gmail.com>
7942 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7944 2011-04-03 Michael Matz <matz@suse.de>
7946 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7948 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7950 2011-04-03 Michael Matz <matz@suse.de>
7952 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7953 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7954 without function context.
7955 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7956 current_function_decl and cfun.
7958 2011-04-03 Michael Matz <matz@suse.de>
7960 * tree.c (decl_init_priority_insert): Don't create entry for
7962 (decl_fini_priority_insert): Ditto.
7963 (fields_compatible_p, find_compatible_field): Remove.
7964 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7965 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7967 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7969 * combine.c (try_combine): Remove useless local variable.
7971 2011-04-03 Richard Guenther <rguenther@suse.de>
7972 Ira Rosen <ira.rosen@linaro.org>
7974 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7975 non-variable offsets and compare the remaining bases of the two
7976 accesses instead of looking for exact same data-ref.
7978 2011-04-02 Kai Tietz <ktietz@redhat.com>
7981 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7983 * i386.c (ix86_is_msabi_thiscall): New helper function.
7984 (ix86_is_type_thiscall): New helper function.
7985 (ix86_comp_type_attributes): Handle thiscall for method-functions
7987 (init_cumulative_args): Likewise.
7988 (find_drap_reg): Likewise.
7989 (ix86_static_chain): Likewise.
7990 (x86_this_parameter): Likewise.
7991 (x86_output_mi_thunk): Likewise.
7993 2011-04-01 Olivier Hainque <hainque@adacore.com>
7994 Nicolas Setton <setton@adacore.com>
7995 Eric Botcazou <ebotcazou@adacore.com>
7997 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7998 (add_gnat_descriptive_type_attribute): New function.
7999 (gen_array_type_die): Call it.
8000 (gen_enumeration_type_die): Likewise.
8001 (gen_struct_or_union_type_die): Likewise.
8002 (modified_type_die): Likewise.
8003 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8004 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8005 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8007 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8010 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8011 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8014 2011-03-17 Richard Guenther <rguenther@suse.de>
8017 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8018 origin for decls in other ltrans units.
8019 (input_varpool_node): Likewise.
8021 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8024 * expr.c (expand_assignment): Handle all possibilities
8025 if TO_RTX is CONCAT.
8026 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8027 (store_split_bit_field): If SUBREG_REG (op0) or
8028 op0 itself has smaller mode than word, return it
8029 for offset 0 and const0_rtx for out-of-bounds stores.
8030 If word is const0_rtx, skip it.
8032 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8034 * config/h8300/h8300.c (print_operand_address): Rename to...
8035 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8036 Call h8300_print_operand and h8300_print_operand_address instead of
8037 print_operand and print_operand_address. Declare.
8038 (print_operand): Renake to...
8039 (h8300_print_operand): ...this. Make static. Adjust comments.
8040 Call h8300_print_operand instead of print_operand. Declare.
8041 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8042 (h8300_register_move_cost): Likewise.
8043 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8044 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8045 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8046 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8047 * config/h8300/h8300-protos.h (print_operand): Delete.
8048 (print_operand_address): Delete.
8050 2011-04-01 Richard Henderson <rth@redhat.com>
8053 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8054 in strict mode before dwarf4. Re-order tests to early out
8055 before switching sections.
8057 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8059 * config/h8300/constraints.md: New file.
8060 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8061 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8062 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8063 * config/h8300/predicates.md (bit_operand): Likewise.
8064 (incdec_operand): Use satisfies_constraint_M and
8065 satisfies_constraint_O. Don't use C code block.
8066 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8067 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8068 (compute_mov_length): Use satisfies_constraint_G.
8069 (fix_bit_operand): Use satisfies_constraint_U.
8070 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8071 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8072 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8073 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8074 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8075 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8076 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8077 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8078 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8079 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8080 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8081 (EXTRA_MEMORY_CONSTRAINT): Delete.
8083 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8084 Michael Meissner <meissner@linux.vnet.ibm.com>
8087 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8088 operands, as per the specifications.
8090 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8091 (vec_extract_evenv4sf): Ditto.
8092 (vec_extract_evenv8hi): Ditto.
8093 (vec_extract_evenv16qi): Ditto.
8094 (vec_extract_oddv4si): Ditto.
8096 2011-03-31 Mark Wielaard <mjw@redhat.com>
8098 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8099 high_pc attribute if the CU has no associated code. Only output
8100 DW_AT_entry_pc for CU if not generating strict dwarf and
8103 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8105 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8106 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8108 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8109 * final.c (final_start_function): Call the new function rather
8110 than using a NULL argument for dwarf2out_frame_debug.
8112 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8113 that contains the prologue.
8115 * haifa-sched.c (queue_insn): New arg REASON. All callers
8116 changed. Print it in debugging output.
8118 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8120 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8121 Split most of the code into...
8122 (begin_move_insn): ... here. New function.
8123 (ebb_sched_info): Add a pointer to it.
8124 * haifa-sched.c (scheduled_insns): New static variable.
8125 (sched_extend_ready_list): Allocate it.
8126 (schedule_block): Use it to record the order of scheduled insns.
8127 Perform RTL changes to move insns only after all scheduling
8128 decisions have been made.
8129 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8130 begin_move_insn field.
8131 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8132 * sched-int.h (struct haifa_sched_info): Remove second argument
8133 from begin_schedule_ready hook. Add new member begin_move_insn.
8134 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8135 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8137 * haifa-sched.c (prune_ready_list): New function, broken out of
8139 (schedule_block): Use it.
8141 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8143 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8145 2011-04-01 Kai Tietz <ktietz@redhat.com>
8147 * config.gcc (*-*-mingw*): Allow as option the
8148 posix threading model.
8149 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8150 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8152 (CPP_SPEC): Add pthread/no-pthread handling.
8153 (LIB_SPEC): Likewise.
8154 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8155 (LIB_SPEC): Likewise.
8156 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8157 flag to pass -pthread option for shared libgcc build.
8158 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8159 for shared libgcc build.
8160 * config/i386/t-mingw-pthread: New file.
8161 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8162 New define to enable use of library pthread by default.
8163 * config/i386/mingw.opt (pthread): New driver option.
8164 (no-pthread): New driver option.
8165 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8166 * config/i386/mingw-w64.opt: Likewise.
8168 2011-04-01 Gary Funck <gary@intrepid.com>
8170 * c-decl.c (grokdeclarator): Fix formatting.
8172 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8174 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8175 instead of n_operands.
8176 (set_storage_via_setmem): Likewise.
8177 * optabs.c (maybe_gen_insn): Likewise.
8178 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8179 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8180 (mips_expand_builtin_direct): Likewise.
8181 * config/spu/spu.c (expand_builtin_args): Likewise.
8183 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8185 * recog.h (insn_data_d): Add n_generator_args.
8186 * genoutput.c (data): Likewise.
8187 (output_insn_data): Print it.
8188 (max_opno, num_dups): Delete.
8189 (scan_operands): Just fill in "d->operand[...]".
8190 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8192 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8194 * gensupport.h (pattern_stats): New structure.
8195 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8196 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8197 (max_operand_1, max_operand_vec): Delete.
8198 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8200 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8202 * emit-rtl.c (emit_pattern_after_setloc): New function.
8203 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8204 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8205 (emit_pattern_after): New function.
8206 (emit_insn_after, emit_jump_insn_after): Call it.
8207 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8208 (emit_pattern_before_setloc): New function.
8209 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8210 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8212 (emit_pattern_before): New function.
8213 (emit_insn_before, emit_jump_insn_before): Call it.
8214 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8216 2011-03-31 Richard Henderson <rth@redhat.com>
8218 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8219 (dw_separate_line_info_entry): Remove.
8220 (enum dw_line_info_opcode): New.
8221 (dw_line_info_entry): Use it.
8222 (dw_line_info_table, dw_line_info_table_p): New.
8223 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8224 (line_info_table, line_info_label_num): Remove.
8225 (line_info_table_in_use): Remove.
8226 (separate_line_info_table): Remove.
8227 (separate_line_info_table_allocated): Remove.
8228 (separate_line_info_table_in_use): Remove.
8229 (LINE_INFO_TABLE_INCREMENT): Remove.
8230 (line_info_label_num): New.
8231 (cur_line_info_table): New.
8232 (text_section_line_info, cold_text_section_line_info): New.
8233 (separate_line_info): New.
8234 (SEPARATE_LINE_CODE_LABEL): Remove.
8235 (print_dwarf_line_table): Remove.
8236 (debug_dwarf): Don't dump it.
8237 (output_one_line_info_table): New.
8238 (output_line_info): Use it.
8239 (new_line_info_table): New.
8240 (set_cur_line_info_table): New.
8241 (dwarf2out_switch_text_section): Use it.
8242 (dwarf2out_begin_function): Likewise.
8243 (push_dw_line_info_entry): New.
8244 (dwarf2out_source_line): Rewrite for new line info tables.
8245 (dwarf2out_init): Remove dead initailizations.
8247 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8249 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8251 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8252 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8253 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8254 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8255 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8256 * opt-functions.awk (flag_init, switch_bit_fields): New.
8257 (switch_flags): Don't handle flags moved to bit-fields. Don't
8258 generate CL_MISSING_OK or CL_SAVE.
8259 * optc-gen.awk: Update to generate bit-field output as well as
8261 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8262 bit-field instead of CL_REJECT_DRIVER flag.
8263 * opts-common.c (generate_canonical_option,
8264 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8265 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8266 instead of CL_REJECT_NEGATIVE flag.
8267 * toplev.c (print_switch_values): Use cl_report bit-field instead
8270 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8272 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8273 a zero minimum index only if it is redundant.
8275 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8277 PR rtl-optimization/48381
8278 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8279 instead of ira_class_hard_reg_index for calculating conflicting
8282 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8284 * cprop.c: Clean up hash table building.
8285 (reg_avail_info): Remove.
8286 (oprs_available_p): Remove.
8287 (record_last_reg_set_info): Remove.
8288 (record_last_set_info): Remove.
8289 (reg_available_p): New function.
8290 (gcse_constant_p): Do not treat unfolded conditions as constants.
8291 (make_set_regs_unavailable): New function.
8292 (hash_scan_set): Simplify with new reg_available_p.
8293 (compute_hash_table_work): Traverse insns stream only once.
8294 Do not compute reg_avail_info. Traverse insns in reverse order.
8295 Record implicit sets after recording explicit sets from the block.
8297 2011-03-31 Michael Matz <matz@suse.de>
8299 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8301 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8303 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8304 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8305 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8306 (h8300_mode_dependent_address_p): New function.
8307 (h8300_get_index): Make static.
8309 2011-03-31 Jeff Law <law@redhat.com>
8311 * reload1.c (elimination_effects): Fix typo in recent change.
8313 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8314 typo potentially leading to null pointer dereference.
8316 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8317 (setup_save_areas): Corresponding changes to avoid useless
8320 * jump.c (reversed_comparison_code_parts): Avoid successive return
8321 statements when REVERSE_CONDITION is defined.
8323 * expr.c (expand_assignment): Avoid useless assignments.
8324 (expand_expr_real_1): Likewise.
8325 (expand_expr_real_2): Avoid useless statements.
8327 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8329 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8331 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8334 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8336 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8339 * doc/tm.texi.in (TARGET_VERSION): Remove.
8340 * doc/tm.texi: Regenerate.
8341 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8342 * collect2.c (main): Don't use TARGET_VERSION.
8343 * mips-tdump.c (main): Don't use TARGET_VERSION.
8344 * mips-tfile.c (main): Don't use TARGET_VERSION.
8345 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8346 * config/rs6000/vxworksae.h: Remove.
8347 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8348 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8349 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8350 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8351 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8352 * config/arm/arm.h (TARGET_VERSION): Remove.
8353 * config/arm/coff.h (TARGET_VERSION): Remove.
8354 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8355 * config/arm/elf.h (TARGET_VERSION): Remove.
8356 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8357 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8358 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8359 * config/arm/pe.h (TARGET_VERSION): Remove.
8360 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8361 * config/arm/semi.h (TARGET_VERSION): Remove.
8362 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8363 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8364 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8365 * config/avr/avr.h (TARGET_VERSION): Remove.
8366 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8367 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8368 * config/frv/frv.h (TARGET_VERSION): Remove.
8369 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8370 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8371 * config/i386/darwin.h (TARGET_VERSION): Remove.
8372 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8373 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8374 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8375 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8376 * config/i386/gnu.h (TARGET_VERSION): Remove.
8377 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8378 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8379 * config/i386/linux.h (TARGET_VERSION): Remove.
8380 * config/i386/linux64.h (TARGET_VERSION): Remove.
8381 * config/i386/lynx.h (TARGET_VERSION): Remove.
8382 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8383 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8384 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8385 * config/i386/netware.h (TARGET_VERSION): Remove.
8386 * config/i386/nto.h (TARGET_VERSION): Remove.
8387 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8388 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8389 * config/ia64/elf.h (TARGET_VERSION): Remove.
8390 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8391 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8392 * config/ia64/linux.h (TARGET_VERSION): Remove.
8393 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8394 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8395 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8396 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8397 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8398 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8399 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8400 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8401 * config/m68k/linux.h (TARGET_VERSION): Remove.
8402 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8403 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8404 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8405 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8406 * config/mep/mep.h (TARGET_VERSION): Remove.
8407 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8408 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8409 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8410 * config/mips/linux.h (TARGET_VERSION): Remove.
8411 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8412 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8413 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8414 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8415 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8416 * config/pa/pa.h (TARGET_VERSION): Remove.
8417 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8418 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8419 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8420 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8421 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8422 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8423 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8424 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8425 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8426 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8427 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8428 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8429 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8430 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8431 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8432 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8433 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8434 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8435 * config/s390/linux.h (TARGET_VERSION): Remove.
8436 * config/s390/s390.h (TARGET_VERSION): Remove.
8437 * config/s390/tpf.h (TARGET_VERSION): Remove.
8438 * config/score/score.h (TARGET_VERSION): Remove.
8439 * config/sh/linux.h (TARGET_VERSION): Remove.
8440 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8441 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8442 * config/sh/sh.h (TARGET_VERSION): Remove.
8443 * config/sh/sh64.h (TARGET_VERSION): Remove.
8444 * config/sh/superh.h (TARGET_VERSION): Remove.
8445 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8446 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8447 * config/sparc/linux.h (TARGET_VERSION): Remove.
8448 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8449 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8450 TARGET_NAME32, TARGET_NAME): Remove.
8451 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8452 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8453 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8454 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8455 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8456 * config/spu/spu.h (TARGET_VERSION): Remove.
8457 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8458 * config/v850/v850.h (TARGET_VERSION): Remove.
8459 * config/vax/linux.h (TARGET_VERSION): Remove.
8460 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8461 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8462 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8464 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8467 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8468 frame-related from frame-unrelated adjustments to the stack pointer.
8470 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8472 * common.opt (fdebug-types-section): Move earlier.
8473 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8475 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8477 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8480 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8482 * tree.h (CASE_CHAIN): Define.
8483 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8484 (gimple_redirect_edge_and_branch): Likewise.
8486 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8489 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8492 2011-03-30 Jeff Law <law@redhat.com>
8494 * PR bootstrap/48371
8495 * reload1.c (reload): Fix botch in last change.
8497 * reload.h (struct reload): Fix typo introduced in last change.
8499 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8501 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8502 Undocumented. Remove help text.
8503 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8506 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8508 * doc/options.texi (NegativeAlias): Document.
8509 (Alias): Mention NegativeAlias.
8510 * opt-functions.awk: Handle NegativeAlias.
8511 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8512 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8513 * opts.h (CL_NEGATIVE_ALIAS): Define.
8514 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8515 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8517 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8519 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8520 mno-spe and mno-isel instead of mspe=no and -misel=no.
8522 2011-03-29 Mark Wielaard <mjw@redhat.com>
8524 * common.opt (fdebug-types-section): New flag.
8525 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8526 * dwarf2out.c (use_debug_types): New define.
8527 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8528 (print_die): Guard output of type unit signatures using
8530 (build_abbrev_table): Replace assert of dwarf_version >= 4
8531 with assert on use_debug_types.
8532 (size_of_die): Likewise.
8533 (unmark_dies): Likewise.
8534 (value_format): Decide AT_ref_external form on use_debug_types.
8535 (output_die): Replace dwarf_version version check guard with
8536 use_debug_types where appropriate.
8537 (modified_type_die): Likewise.
8538 (gen_reference_type_die): Likewise.
8539 (dwarf2out_start_source_file): Likewise.
8540 (dwarf2out_end_source_file): Likewise.
8541 (prune_unused_types_walk_attribs): Likewise.
8542 (dwarf2out_finish): Likewise.
8544 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8546 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8548 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8550 PR rtl-optimization/48332
8551 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8552 mode of input operand N and modeN to its actual mode.
8554 2011-03-30 Jeff Law <law@redhat.com>
8556 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8557 define accessor macro.
8558 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8559 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8560 (reg_equiv_init): Likewise.
8561 (reg_equivs_size): New variable.
8562 (reg_equiv_init_size): Remove.
8563 (allocate_initial_values): Move prototype to here from....
8564 * integrate.h (allocate_initial_values): Remove prototype.
8565 * integrate.c: Include reload.h.
8566 (allocate_initial_values): Corresponding changes.
8567 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8568 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8569 (update_equiv_regs): Corresponding changes.
8570 (ira): Corresponding changes.
8571 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8572 (push_secondary_reload): Corresponding changes.
8573 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8574 (make_memloc, find_reloads_address): Corresponding changes.
8575 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8576 (find_reloads_address_1): Corresponding changes.
8577 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8578 (refers_to_regno_for_reload_p): Corresponding changes.
8579 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8580 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8581 * reload1.c: Include ggc.h.
8582 (grow_reg_equivs): New function.
8583 (replace_pseudos_in, reload): Corresponding changes.
8584 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8585 (eliminate_regs_1, elimination_effects): Corresponding changes.
8586 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8587 (delete_output_reload): Likewise.
8588 * caller-save.c (mark_referenced_regs): Corresponding changes.
8589 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8590 * frv/predicates.md (frv_load_operand): Corresponding changes.
8591 * microblaze/microblaze.c (double_memory_operand): Corresponding
8593 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8594 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8595 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8596 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8597 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8599 * pa/pa.c (emit_move_sequence): Corresponding changes.
8600 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8602 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8605 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8606 structure modes. Don't check neon_vector_mem_operand for
8607 vector or structure modes.
8609 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8610 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8613 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8614 operand 1 and reshuffle the operands to match.
8615 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8617 2011-03-30 Christian Schüler <cschueler@gmx.de>
8620 * config/c.opt (F): Added 'Driver' to -F option.
8623 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8625 * config/darwin.opt: Added '-arch' option.
8627 2011-03-30 Nick Clifton <nickc@redhat.com>
8629 * config/rx/rx.md: Add peepholes and patterns to combine
8630 extending loads and simple arithmetic instructions.
8631 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8632 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8633 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8634 modes to use pre-decrement and post-increment addressing.
8635 (rx_is_restricted_memory_address): Add range checking of REG+INT
8637 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8638 (rx_memory_move_cost): Adjust cost of stores.
8639 (rx_adjust_insn_length): New function.
8641 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8644 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8645 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8646 matching arg00/arg01 types.
8648 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8650 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8651 last_location to UNKNOWN_LOCATION.
8653 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8656 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8659 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8660 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8663 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8665 (sparc_cpu): Likewise.
8666 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8669 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8673 PR rtl-optimization/48345
8674 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8675 hard regs for given mode from profitable regs when doing secondary
8678 2011-03-29 Jeff Law <law@redhat.com>
8681 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8682 do_not_duplicate field.
8683 (lookup_redirection_data): Corresponding changes.
8684 (create_duplicates): Always create a template block.
8685 (redirect_edges): Remove code which reused the original block
8686 when it was going to become unreachable code.
8687 (thread_block): Don't set do_not_duplicate field.
8689 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8691 * lto-opts.c (register_user_option_p, lto_register_user_option):
8692 Make type argument unsigned.
8693 * lto-streamer.h (lto_register_user_option): Make type argument
8695 * opth-gen.awk: Make CL_* macros unsigned.
8696 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8697 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8698 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8699 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8700 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8701 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8702 (find_opt): Make lang_mask argument unsigned.
8704 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8706 PR rtl-optimization/48331
8707 PR rtl-optimization/48334
8708 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8709 for any used algorithm.
8711 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8713 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8716 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8718 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8719 (alpha_option_override): Don't set alpha_sr_alias_set.
8720 (emit_frame_store_1): Use gen_frame_mem rather than calling
8722 (alpha_expand_epilogue): Ditto.
8724 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8726 PR tree-optimization/48290
8727 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8728 vectorization, check that relevant phis in the basic block after
8729 the inner loop are really inner loop's exit phis.
8731 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8734 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8735 (cached_dw_loc_list_def): New structure.
8736 (cached_dw_loc_list): New typedef.
8737 (cached_dw_loc_list_table): New variable.
8738 (cached_dw_loc_list_table_hash): New function.
8739 (cached_dw_loc_list_table_eq): Likewise.
8740 (add_location_or_const_value_attribute): Take a bool cache_p.
8741 Cache the list when the parameter is true.
8742 (gen_formal_parameter_die): Update caller.
8743 (gen_variable_die): Likewise.
8744 (dwarf2out_finish): Likewise.
8745 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8746 while generating debug info for the decl.
8747 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8748 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8749 (resolve_addr): Cache the result of resolving a chain of
8752 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8754 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8755 conflict object hard regset nodes have intersecting hard reg sets.
8757 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8758 after regstat_init_n_sets_and_refs.
8760 * ira.c: Add more comments at the top.
8761 (setup_stack_reg_pressure_class, setup_pressure_classes):
8762 Add comments how we compute the register pressure classes.
8763 (setup_allocno_and_important_classes): Add more comments.
8764 (setup_class_translate_array, reorder_important_classes)
8765 (setup_reg_class_relations): Add comments.
8767 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8770 * ira-color.c: Add 2011 to the Copyright line.
8771 (assign_hard_reg): Add more comments.
8772 (improve_allocation): Ditto.
8774 * ira-costs.c: Add 2011 to the Copyright line.
8775 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8777 (setup_regno_cost_classes_by_mode): Ditto.
8779 Initial patches from ira-improv branch:
8781 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8783 * ira-build.c (ira_create_object): Remove initialization of
8784 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8785 (ira_create_allocno): Remove initialization of
8786 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8787 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8788 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8789 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8790 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8791 Initialize ALLOCNO_ADD_DATA.
8792 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8793 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8795 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8796 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8798 * ira.c (ira_reallocate): Remove.
8799 (setup_pressure_classes): Call
8800 ira_init_register_move_cost_if_necessary. Use
8801 ira_register_move_cost instead of ira_get_register_move_cost.
8802 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8803 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8805 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8806 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8807 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8808 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8809 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8810 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8812 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8813 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8814 (struct allocno_color_data): New.
8815 (allocno_color_data_t): New typedef.
8816 (allocno_color_data): New definition.
8817 (ALLOCNO_COLOR_DATA): New macro.
8818 (struct object_color_data): New.
8819 (object_color_data_t): New typedef.
8820 (object_color_data): New definition.
8821 (OBJECT_COLOR_DATA): New macro.
8822 (update_copy_costs, calculate_allocno_spill_cost): Call
8823 ira_init_register_move_cost_if_necessary. Use
8824 ira_register_move_cost instead of ira_get_register_move_cost.
8825 (move_spill_restore, update_curr_costs): Ditto.
8826 (allocno_spill_priority): Make it inline.
8827 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8828 (struct coalesce_data, coalesce_data_t): New.
8829 (allocno_coalesce_data): New definition.
8830 (ALLOCNO_COALESCE_DATA): New macro.
8831 (merge_allocnos, coalesced_allocno_conflict_p): Use
8832 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8833 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8834 (coalesce_allocnos): Ditto.
8835 (setup_coalesced_allocno_costs_and_nums): Ditto.
8836 (collect_spilled_coalesced_allocnos): Ditto.
8837 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8838 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8839 (coalesce_spill_slots): Ditto.
8840 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8841 free allocno_coalesce_data.
8843 * ira-conflicts.c: Fix formatting.
8844 (process_regs_for_copy): Call
8845 ira_init_register_move_cost_if_necessary. Use
8846 ira_register_move_cost instead of ira_get_register_move_cost.
8847 (build_object_conflicts): Optimize.
8849 * ira-costs.c (record_reg_classes): Optimize. Call
8850 ira_init_register_move_cost_if_necessary. Use
8851 ira_register_move_cost, ira_may_move_in_cost, and
8852 ira_may_move_out_cost instead of ira_get_register_move_cost and
8853 ira_get_may_move_cost.
8854 (record_address_regs): Ditto.
8855 (scan_one_insn): Optimize.
8856 (find_costs_and_classes): Optimize.
8857 (process_bb_node_for_hard_reg_moves): Call
8858 ira_init_register_move_cost_if_necessary. Use
8859 ira_register_move_cost instead of ira_get_register_move_cost.
8861 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8862 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8863 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8864 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8866 (ira_initiate_emit_data, ira_finish_emit_data)
8867 (create_new_allocno): New functions.
8868 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8869 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8870 Use ira_register_move_cost instead of ira_get_register_move_cost.
8872 * ira-int.h: Fix some comments.
8873 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8874 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8875 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8876 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8878 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8879 bitfield after mode. Make hard_regno a short int. Make
8880 hard_regno short. Remove first_coalesced_allocno and
8881 next_coalesced_allocno. Move mem_optimized_dest_p,
8882 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8883 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8884 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8885 temp, colorable_p. Add new member add_data.
8886 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8887 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8888 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8889 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8890 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8891 (ALLOCNO_ADD_DATA): New macro.
8892 (ira_emit_data_t): New typedef.
8893 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8894 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8895 from struct ira_allocno.
8896 (ALLOCNO_EMIT_DATA): New macro.
8897 (ira_allocno_emit_data, allocno_emit_reg): New.
8898 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8899 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8900 (OBJECT_ADD_DATA): New macro.
8901 (ira_reallocate): Remove.
8902 (ira_initiate_emit_data, ira_finish_emit_data): New.
8903 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8904 (ira_init_register_move_cost_if_necessary): New.
8905 (ira_object_conflict_iter_next): Merge into
8906 ira_object_conflict_iter_cond.
8907 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8909 * ira-live.c (process_single_reg_class_operands): Call
8910 ira_init_register_move_cost_if_necessary. Use
8911 ira_register_move_cost instead of ira_get_register_move_cost.
8913 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8915 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8917 * ira-costs.c: Fix formatting.
8918 (cost_classes, cost_classes_num): Remove.
8919 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8920 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8921 (cost_classes_del, cost_classes_htab): New.
8922 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8923 (initiate_regno_cost_classes, setup_cost_classes): New.
8924 (setup_regno_cost_classes_by_aclass): New.
8925 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8926 (record_reg_classes): Use regno_cost_classes instead of
8927 cost_classes. Move checking opposite operand up.
8928 (record_address_regs): Use regno_cost_classes
8929 instead of cost_classes.
8930 (scan_one_insn): Ditto. Use always general register.
8931 (print_allocno_costs): Use regno_cost_classes instead of
8933 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8934 (find_costs_and_classes): Set up cost classes for each registers.
8935 Use also their mode for this. Use regno_cost_classes instead of
8937 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8939 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8940 (ira_costs, ira_set_pseudo_classes): Call
8941 initiate_regno_cost_classes and finish_regno_cost_classes.
8943 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8945 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8947 * target.def (ira_cover_classes): Remove.
8949 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8951 * doc/tm.texi.in: Ditto.
8953 * ira-conflicts.c: Remove mentioning cover classes from the file.
8954 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8955 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8957 * targhooks.c (default_ira_cover_classes): Remove.
8959 * targhooks.h (default_ira_cover_classes): Ditto.
8961 * haifa-sched.c: Remove mentioning cover classes from the file.
8962 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8963 ira_pressure_classes and ira_pressure_classes_num instead of
8964 ira_reg_class_cover_size and ira_reg_class_cover. Use
8965 sched_regno_pressure_class instead of sched_regno_cover_class.
8966 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8967 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8969 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8970 classes from the file.
8971 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8972 (struct object_hard_regs, struct object_hard_regs_node): New.
8973 (struct ira_object): New members profitable_hard_regs,
8974 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8975 (struct ira_allocno): Rename cover_class to aclass. Rename
8976 cover_class_cost and updated_cover_class_cost to class_cost and
8977 updated_class_cost. Remove splay_removed_p and
8978 left_conflict_size. Add new members colorable_p.
8979 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8980 (ALLOCNO_COLORABLE_P): New macro.
8981 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8982 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8983 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8984 (OBJECT_...): Rename parameter C to O.
8985 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8986 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8987 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8988 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8989 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8990 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8991 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8992 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8993 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8994 x_ira_reg_class_subunion.
8995 (ira_max_memory_move_cost, ira_max_register_move_cost)
8996 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8997 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8998 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8999 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9000 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9001 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9002 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9003 (ira_tune_allocno_costs_and_cover_classes): Rename to
9004 ira_tune_allocno_costs.
9005 (ira_debug_hard_regs_forest): New.
9006 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9007 (ira_object_conflict_iter_next): Fix comments.
9008 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9009 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9010 cover_class to aclass.
9011 (ira_allocate_and_accumulate_costs): Ditto.
9012 (ira_allocate_and_set_or_copy_costs): Ditto.
9014 * opts.c (decode_options): Remove ira_cover_class check.
9016 * ira-color.c: Remove mentioning cover classes from the file. Use
9017 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9018 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9019 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9020 (splay-tree.h): Remove include.
9021 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9022 before copy_freq_compare_func.
9023 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9024 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9026 (hard_regs_roots, hard_regs_node_vec): Ditto.
9027 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9028 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9029 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9030 (create_new_object_hard_regs_node): Ditto.
9031 (add_new_object_hard_regs_node_to_forest): Ditto.
9032 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9033 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9035 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9036 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9037 (remove_unused_object_hard_regs_nodes): Ditto.
9038 (enumerate_object_hard_regs_nodes): Ditto.
9039 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9040 (object_hard_regs_subnode_t): Ditto.
9041 (struct object_hard_regs_subnode): Ditto.
9042 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9043 (setup_object_hard_regs_subnode_index): Ditto.
9044 (get_object_hard_regs_subnodes_num): Ditto.
9045 (form_object_hard_regs_nodes_forest): Ditto.
9046 (finish_object_hard_regs_nodes_tree): Ditto.
9047 (finish_object_hard_regs_nodes_forest): Ditto.
9048 (allocnos_have_intersected_live_ranges_p): Rename to
9049 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9050 (pseudos_have_intersected_live_ranges_p): Rename to
9051 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9052 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9053 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9054 (update_copy_costs): Remove assert. Skip cost update if the hard
9055 reg does not belong the class.
9056 (assign_hard_reg): Process only profitable hard regs.
9057 (uncolorable_allocnos_num): Make it scalar.
9058 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9059 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9060 and ira_reg_class_max_nregs.
9061 (bucket_allocno_compare_func): Check frequency first.
9062 (sort_bucket): Add compare function as a parameter.
9063 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9064 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9065 (push_allocno_to_stack): Rewrite for checking new allocno
9067 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9068 (push_only_colorable): Pass new parameter to sort_bucket.
9069 (push_allocno_to_spill): Remove.
9070 (allocno_spill_priority_compare): Make it inline and rewrite.
9071 (splay_tree_allocate, splay_tree_free): Remove.
9072 (allocno_spill_sort_compare): New function.
9073 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9074 build and use splay tree. Choose first allocno in uncolorable
9075 allocno bucket to spill. Remove setting spill cost.
9076 (all_conflicting_hard_regs): Remove.
9077 (setup_allocno_available_regs_num): Check only profitable hard
9078 regs. Print info about hard regs nodes.
9079 (setup_allocno_left_conflicts_size): Remove.
9080 (put_allocno_into_bucket): Don't call
9081 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9082 (improve_allocation): New.
9083 (color_allocnos): Call setup_profitable_hard_regs,
9084 form_object_hard_regs_nodes_forest, improve_allocation,
9085 finish_object_hard_regs_nodes_forest. Setup spill cost.
9086 (print_loop_title): Use pressure classes.
9087 (color_allocnso): Ditto.
9088 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9089 and allocnos_for_spilling.
9090 (ira_sort_regnos_for_alter_reg): Don't setup members
9091 {first,next}_coalesced_allocno.
9092 (color): Remove allocating and freeing removed_splay_allocno_vec.
9093 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9094 prohibited_class_mode_regs.
9096 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9098 (update_allocno_pressure_excess_length): Use pressure classes.
9099 (inc_register_pressure, dec_register_pressure): Check for pressure
9101 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9102 pressure class. Use ira_reg_class_nregs instead of
9103 ira_reg_class_max_nregs.
9104 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9105 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9106 (single_reg_class): Use ira_reg_class_nregs instead of
9107 ira_reg_class_max_nregs.
9108 (process_bb_node_lives): Use pressure classes.
9110 * ira-emit.c: Remove mentioning cover classes from the file. Use
9111 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9112 (change_loop): Use pressure classes.
9113 (modify_move_list): Call ira_set_allocno_class instead of
9114 ira_set_allocno_cover_class.
9116 * ira-build.c: Remove mentioning cover classes from the file. Use
9117 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9118 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9119 ALLOCNO_UPDATED_CLASS_COST instead of
9120 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9121 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9122 (ira_create_allocno): Remove initialization of
9123 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9124 ALLOCNO_COLORABLE_P.
9125 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9126 Update conflict regs for the objects.
9127 (create_cap_allocno): Remove assert. Don't propagate
9128 ALLOCNO_AVAILABLE_REGS_NUM.
9129 (ira_free_allocno_costs): New function.
9130 (finish_allocno): Change a part of code into call of
9131 ira_free_allocno_costs.
9132 (low_pressure_loop_node_p): Use pressure classes.
9133 (object_range_compare_func): Don't compare classes.
9134 (setup_min_max_conflict_allocno_ids): Ditto.
9136 * loop-invariant.c: Remove mentioning cover classes from the file.
9137 Use ira_pressure_classes and ira_pressure_classes_num instead of
9138 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9139 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9140 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9141 Use reg_allocno_class instead of reg_cover_class.
9142 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9143 STACK_REG_COVER_CLASS.
9144 (get_regno_cover_class): Rename to get_regno_pressure_class.
9145 (move_loop_invariants): Initialize and finalize regstat.
9147 * ira.c: Remove mentioning cover classes from the file. Add
9148 comments about coloring without cover classes. Use ALLOCNO_CLASS
9149 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9150 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9151 setup_class_subset_and_memory_move_costs.
9152 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9153 (setup_cover_and_important_classes): Rename to
9154 setup_allocno_and_important_classes.
9155 (setup_class_translate_array): New.
9156 (setup_class_translate): Call it for allocno and pressure classes.
9157 (cover_class_order): Rename to allocno_class_order.
9158 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9159 of ira_class_translate.
9160 (reorder_important_classes): Set up ira_important_class_nums.
9161 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9162 (print_class_cover): Rename to print_classes. Add parameter.
9163 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9164 Print pressure classes too.
9165 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9166 setup_reg_subclasses.
9167 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9168 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9169 (setup_prohibited_class_mode_regs): Use
9170 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9171 (clarify_prohibited_class_mode_regs): New function.
9172 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9173 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9174 (ira_init_once): Initialize them.
9175 (free_register_move_costs): Process them.
9176 (ira_init): Move calls of find_reg_classes and
9177 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9178 Call clarify_prohibited_class_mode_regs.
9179 (ira_no_alloc_reg): Remove.
9180 (too_high_register_pressure_p): Use pressure classes.
9182 * sched-deps.c: Remove mentioning cover classes from the file.
9183 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9184 ira_pressure_classes and ira_pressure_classes_num instead of
9185 ira_reg_class_cover_size and ira_reg_class_cover.
9186 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9187 sched_regno_pressure_class instead of sched_regno_cover_class.
9188 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9189 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9191 * ira.h: Add 2010 to Copyright.
9192 (ira_no_alloc_reg): Remove external.
9193 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9194 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9195 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9196 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9197 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9198 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9199 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9200 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9201 x_ira_no_alloc_regs.
9202 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9203 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9204 ira_allocno_classes_num and ira_allocno_classes.
9205 (ira_class_translate): Rename to ira_allocno_class_translate.
9206 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9207 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9208 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9209 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9210 (ira_no_alloc_regs): New.
9212 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9213 classes from the file. Use ALLOCNO_CLASS instead of
9214 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9215 ALLOCNO_COVER_CLASS_COST.
9216 (regno_cover_class): Rename to regno_aclass.
9217 (record_reg_classes): Use ira_reg_class_subunion instead of
9218 ira_reg_class_union.
9219 (record_address_regs): Check overflow.
9220 (scan_one_insn): Ditto.
9221 (print_allocno_costs): Print total mem cost fore regional allocation.
9222 (print_pseudo_costs): Use REG_N_REFS.
9223 (find_costs_and_classes): Use classes intersected with them on the
9224 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9225 ira_reg_class_union. Use ira_allocno_class_translate and
9226 regno_aclass instead of ira_class_translate and regno_cover_class.
9227 Modify code for finding regno_aclass. Setup preferred classes for
9229 (setup_allocno_cover_class_and_costs): Rename to
9230 setup_allocno_class_and_costs. Use regno_aclass instead of
9231 regno_cover_class. Use ira_set_allocno_class instead of
9232 ira_set_allocno_cover_class.
9233 (init_costs, finish_costs): Use regno_aclass instead of
9235 (ira_costs): Use setup_allocno_class_and_costs instead of
9236 setup_allocno_cover_class_and_costs.
9237 (ira_tune_allocno_costs_and_cover_classes): Rename to
9238 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9239 by processing objects. Use ira_reg_class_max_nregs instead of
9240 ira_reg_class_nregs.
9242 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9244 * sched-int.h: Remove mentioning cover classes from the file.
9245 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9247 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9248 classes from the file.
9249 (struct reg_pref): Rename coverclass into allocnoclass.
9250 (reg_cover_class): Rename to reg_allocno_class.
9252 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9254 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9256 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9258 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9260 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9262 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9264 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9266 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9268 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9270 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9272 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9273 (i386_ira_cover_classes): Ditto.
9275 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9277 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9279 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9281 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9283 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9285 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9287 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9288 (mips_ira_cover_classes): Ditto.
9290 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9292 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9294 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9296 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9298 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9300 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9301 (IRA_COVER_CLASSES_VSX): Ditto.
9303 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9304 (rs6000_ira_cover_classes): Ditto.
9306 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9308 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9310 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9312 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9314 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9316 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9318 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9320 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9322 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9324 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9326 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9329 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9330 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9331 dw_fde_unlikely_section_end_label, cold_in_std_section,
9332 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9333 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9335 (output_fde): Use dw_fde_second_{begin,end} if second is
9336 true, otherwise dw_fde_{begin,end}.
9337 (output_call_frame_info): Test dw_fde_second_begin != NULL
9338 instead of dw_fde_switched_sections.
9339 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9340 fields, initialize new fields. Initialize in_std_section
9341 unconditionally from the first partition.
9342 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9343 dw_fde_second_begin is non-NULL.
9344 (dwarf2out_switch_text_section): Stop initializing removed
9345 dw_fde_struct fields, initialize new fields, initialize
9346 also dw_fde_end here. Set dw_fde_switch_cfi even when
9347 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9348 (struct var_loc_list_def): Add last_before_switch field.
9349 (arange_table, arange_table_allocated, arange_table_in_use,
9350 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9351 (size_of_aranges): Count !in_std_section and !second_in_std_section
9352 hunks in fdes, instead of looking at arange_table_in_use.
9353 (output_aranges): Add aranges_length argument, don't call
9354 size_of_aranges here. Instead of using aranges_table*
9355 emit ranges for fdes when !in_std_section resp.
9356 !second_in_std_section.
9357 (dw_loc_list): Break ranges crossing section switch.
9358 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9359 use dw_fde_second_end instead of dw_fde_end as end of last range.
9360 (gen_subprogram_die): Don't call add_arange. Use
9361 dw_fde_{begin,end} for first partition and if switched
9362 section dw_fde_second_{begin,end} for the second.
9363 (var_location_switch_text_section_1,
9364 var_location_switch_text_section): New functions.
9365 (dwarf2out_begin_function): Initialize cold_text_section even
9366 when function_section () isn't text_section.
9367 (prune_unused_types): Don't walk arange_table.
9368 (dwarf2out_finish): Don't needlessly test
9369 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9370 If info_section_emitted, call size_of_aranges and if it indicates
9371 non-empty .debug_aranges, call output_aranges with the computed
9372 size. Stop using removed dw_fde_struct fields, use
9373 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9377 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9378 create ENTRY_VALUE if incoming or address of incoming's MEM
9380 * dwarf2out.c (mem_loc_descriptor): Don't emit
9381 DW_OP_GNU_entry_value of DW_OP_fbreg.
9382 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9383 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9384 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9385 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9387 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9388 is a REG_P or MEM_P with REG_P address, compute hash directly
9389 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9390 (preserve_only_constants): Don't clear VALUES forwaring
9391 ENTRY_VALUE to some other VALUE.
9393 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9395 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9398 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9400 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9401 block before expanding the statement.
9402 (expand_gimple_stmt_1): Likewise. Set them here...
9403 (expand_gimple_stmt): ...and not here. Tidy.
9404 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9407 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9409 * Makefile.in: New rule for cprop.o.
9410 * gcse.c: Move constant/copy propagation to cprop.c.
9411 (compute_local_properties): Only handle expression tables.
9412 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9413 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9414 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9415 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9416 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9417 compute_cprop_data, find_used_regs, try_replace_reg,
9418 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9419 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9420 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9421 find_bypass_set, reg_killed_on_edge, bypass_block,
9422 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9423 execute_rtl_cprop, pass_rtl_cprop): Move to...
9424 * cprop.c: ...here. New file, constant/copy propagation for RTL
9425 moved from gcse.c to here with minor cleanups in duplicated code.
9427 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9429 * config/i386/i386.c (flag_opts): Fix a typo in
9430 -mavx256-split-unaligned-store.
9432 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9434 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9435 LIBCALL_VALUE): Remove macros.
9436 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9437 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9438 (h8300_function_value, h8300_libcall_value,
9439 h8300_function_value_regno_p): New functions.
9441 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9443 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9445 2011-03-28 Jeff Law <law@redhat.com>
9447 * tree-ssa-threadupdate.c (redirect_edges): Call
9448 create_edge_and_update_destination_phis as needed.
9449 (create_edge_and_update_destination_phis): Accept new BB argument.
9450 All callers updated.
9451 (thread_block): Do not update the profile when threading around
9452 intermediate blocks.
9453 (thread_single_edge): Likewise.
9454 (determine_bb_domination_status): If BB is not a successor of the
9455 loop header, return NONDOMINATING.
9456 (register_jump_thread): Note when we register a jump thread around
9457 an intermediate block.
9458 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9459 (thread_across_edge): Use it.
9461 2011-03-28 Tristan Gingold <gingold@adacore.com>
9463 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9464 when for_return is 2.
9466 2011-03-28 Jeff Law <law@redhat.com>
9468 * var-tracking.c (canonicalize_values_mark): Delete unused
9470 (canonicalize_values_star, set_variable_part): Likewise.
9471 (clobber_variable_part, delete_variable_part): Likewise.
9473 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9475 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9477 2011-03-28 Martin Jambor <mjambor@suse.cz>
9479 * tree-inline.c (expand_call_inline): Do not check that destination
9481 (optimize_inline_calls): Assert that destination node is analyzed.
9482 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9483 not call tree_lowering_passes.
9484 * cgraph.h (cgraph_analyze_function): Declare.
9485 * cgraphunit.c (cgraph_analyze_function): Make public.
9487 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9489 * config/sparc/sparc-opts.h: New.
9490 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9491 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9492 (sparc_option_override): Store processor_type enumeration rather
9493 than string in cpu_default. Remove name and enumeration from
9494 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9495 without using sparc_select. Use target_flags_explicit instead of
9497 * config/sparc/sparc.h (enum processor_type): Move to
9499 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9500 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9501 HeaderInclude entry.
9502 (mcpu=, mtune=): Use Var and Enum.
9503 (sparc_processor_type): New Enum and EnumValue entries.
9505 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9506 Iain Sandoe <iains@gcc.gnu.org>
9509 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9511 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9513 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9514 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9515 Insert new statements at it in lieu of STMT.
9516 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9517 * tree-vect-stmts.c (vectorizable_store): Likewise.
9518 (vectorizable_load): Likewise.
9520 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9522 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9527 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9529 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9530 unaligned 256bit load/store.
9531 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9532 (*avx_movdqu<avxmodesuffix>): Likewise.
9534 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9537 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9538 * config/pa/pa.md (iordi3): Use new predicate in expander.
9541 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9543 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9544 FUNCTION_VALUE_REGNO_P): Remove macros.
9545 * config/mips/mips-protos.h (mips_function_value): Remove.
9546 * config/mips/mips.c (mips_function_value): Rename to...
9547 (mips_function_value_1): ... this. Make static. Handle receiving
9548 the function type in 'fn_decl_or_type' argument.
9549 (mips_function_value, mips_libcall_value,
9550 mips_function_value_regno_p): New function.
9551 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9552 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9554 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9556 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9557 and -mavx256-split-unaligned-store.
9558 (ix86_option_override_internal): Split 32-byte AVX unaligned
9559 load/store by default.
9560 (ix86_avx256_split_vector_move_misalign): New.
9561 (ix86_expand_vector_move_misalign): Use it.
9563 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9564 -mavx256-split-unaligned-store.
9566 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9567 256bit load/store. Generate unaligned store on misaligned memory
9569 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9571 (*avx_movdqu<avxmodesuffix>): Likewise.
9573 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9574 -mavx256-split-unaligned-store.
9576 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9579 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9582 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9584 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9585 opno arguments with an expand_operand. Use create_input_operand.
9586 (mips_prepare_builtin_target): Delete.
9587 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9589 (mips_expand_builtin_direct): Use create_output_operand and
9590 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9591 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9592 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9594 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9596 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9598 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9600 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9602 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9603 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9604 basic blocks and call commit_edge_insertions directly.
9605 (fixup_abnormal_edges): Move from here to...
9606 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9607 on the edges and return whether some have actually been inserted.
9608 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9611 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9613 PR rtl-optimization/48144
9614 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9615 (merge_expr_data): ... here.
9616 (av_set_intersect): Rename to av_set_code_motion_filter.
9617 Update all callers. Call merge_history_vect when an expression
9618 is found in both sets.
9619 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9621 2011-03-26 Alan Modra <amodra@gmail.com>
9623 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9624 cmodel medium addresses.
9625 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9626 64-bit gpr loads and stores.
9627 (rs6000_secondary_reload_ppc64): New function.
9628 * config/rs6000/rs6000-protos.h: Declare it.
9629 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9631 2011-03-26 Alan Modra <amodra@gmail.com>
9634 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9635 GNU Go in traceback table.
9637 2011-03-25 Richard Henderson <rth@redhat.com>
9639 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9640 if there are exactly 6 operands.
9641 (set_storage_via_setmem): Similarly.
9643 2011-03-25 Kai Tietz <ktietz@redhat.com>
9645 * collect2.c (write_c_file_stat): Handle backslash
9646 as right-hand directory separator.
9647 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9648 checking just for slash.
9649 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9650 instead of checking for trailing slash.
9651 * gcc.c (record_temp_file): Use filename_cmp instead
9653 (do_spec_1): Likewise.
9654 (replace_outfile_spec_function): Likewise.
9655 (is_directory): Use filename_ncmp instead of strncmp.
9656 (print_multilib_info): Likewise.
9657 * gcov.c (find_source): Use filename_cmp instead
9659 (make_gcov_file_name): Fix order of slash/backslash
9661 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9662 (add_standard_paths): Likewise.
9663 * mips-tfile.c (saber_stop): Handle backslash.
9664 * prefix.c (update_path): Use filename_ncmp instead of
9666 * profile.c (output_location): Use filename_cmp instead
9668 * read-md.c (handle_toplevel_file): Handle backslash.
9669 * tlink.c (frob_extension): Likewise.
9670 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9672 * tree-dump.c (dequeue_and_dump): Handle backslash.
9673 * tree.c (get_file_function_name): Likewise.
9674 * gengtype.c (read_input_list): Likewise.
9675 (get_file_realbasename): Likewise.
9676 (get_output_file_with_visibility): Use filename_cmp
9679 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9681 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9684 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9686 * fold-const.c (expr_location_or): New function.
9687 (fold_truth_not_expr): Call it.
9689 2011-03-25 Jeff Law <law@redhat.com>
9691 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9693 * c-family/c-common.c (def_fn_type): Likewise.
9694 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9695 * emit-rtl.c (gen_rtvec): Likewise.
9696 * lto/lto-lang.c (def_fn_type): Likewise.
9698 2011-03-25 Richard Guenther <rguenther@suse.de>
9700 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9701 also generate copies.
9702 (fini_copy_prop): Handle constant values properly.
9704 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9706 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9707 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9708 (hash_loc_operands, compare_loc_operands): Handle
9709 DW_OP_GNU_entry_value.
9711 2011-03-25 Kai Tietz <ktietz@redhat.com>
9713 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9714 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9715 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9716 comment and use macro TARGET_64BIT_MS_ABI instead.
9717 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9718 and change default behavior for 32-bit MS_ABI.
9719 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9720 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9722 (ix86_cfun_abi): Likewise.
9723 (ix86_maybe_switch_abi): Adjust comment.
9724 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9725 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9726 instead of checking for SYSV_ABI.
9727 (ix86_nsaved_sseregs): Likewise.
9728 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9730 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9731 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9732 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9733 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9734 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9736 2011-03-25 Richard Guenther <rguenther@suse.de>
9738 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9739 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9740 (verify_gimple): Remove.
9741 * tree-cfg.c (verify_gimple_call): Merge verification
9743 (verify_gimple_phi): Merge verification from verify_stmts.
9744 (verify_gimple_label): New function.
9745 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9746 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9747 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9748 (verify_stmts): Rename to verify_gimple_in_cfg.
9749 (verify_gimple_in_cfg): New function.
9750 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9751 * tree-ssa.c (verify_ssa): Likewise.
9752 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9754 2011-03-25 Richard Guenther <rguenther@suse.de>
9756 * passes.c (init_optimization_passes): Add FRE pass after
9759 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9760 Andrew Stubbs <ams@codesourcery.com>
9762 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9764 (arm_movdi_vfp_cortexa8): New pattern.
9765 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9766 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9767 instructions when tuning for Cortex-A8. Set attribute "arch".
9768 * config/arm/arm.md: Move include arm-tune.md up a bit.
9769 (define_attr "arch"): Add "onlya8" and "nota8" values.
9770 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9772 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9776 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9778 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9779 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9780 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9781 * passes.c (init_optimization_passes): Move
9782 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9784 2011-03-25 Kai Tietz <ktietz@redhat.com>
9786 * c-typeck.c (comptypes_internal): Replace target
9787 hook call of comp_type_attributes by version in tree.c file.
9788 * gimple.c (gimple_types_compatible_p_1): Likewise.
9789 * tree-ssa.c (useless_type_conversion_p): Likewise.
9790 * tree.c (build_type_attribute_qual_variant): Likewise.
9791 (attribute_value_equal): New static helper function.
9792 (comp_type_attributes): New function.
9793 (merge_attributes): Use attribute_value_equal for comparison.
9794 (attribute_list_contained): Likewise.
9795 * tree.h (comp_type_attributes): New prototype.
9797 2011-03-25 Richard Guenther <rguenther@suse.de>
9799 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9800 of complex types at -O0.
9801 (verify_gimple_assign_binary): Likewise.
9802 (verify_gimple_assign_ternary): Likewise.
9804 2011-03-24 Mark Wielaard <mjw@redhat.com>
9806 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9807 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9809 2011-03-24 Mark Wielaard <mjw@redhat.com>
9812 * dwarf2out.c (output_abbrev_section): Only write table when
9813 abbrev_die_table_in_use > 1.
9815 2011-02-24 Richard Henderson <rth@redhat.com>
9817 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9818 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9819 (alpha_expand_unaligned_load_words): Use extql.
9820 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9821 (emit_insxl): Handle all modes for consistency.
9823 2011-02-24 Richard Henderson <rth@redhat.com>
9825 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9826 (alpha_expand_unaligned_load): Likewise.
9827 (alpha_expand_unaligned_store): Likewise.
9828 (alpha_expand_unaligned_load_words): Likewise.
9829 (alpha_expand_unaligned_store_words): Likewise.
9830 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9831 (alpha_split_lock_test_and_set_12): Likewise.
9832 (print_operand, alpha_fold_builtin_extxx): Likewise.
9833 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9834 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9835 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9836 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9837 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9838 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9839 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9840 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9841 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9842 (extwl, extll, extql): Similarly.
9843 (inswh, inslh, insqh): Similarly.
9844 (mskbl, mskwl, mskll, mskql): Similarly.
9845 (mskwh, msklh, mskqh): Similarly.
9847 2011-02-24 Richard Henderson <rth@redhat.com>
9849 * config/alpha/alpha.md (attribute isa): Add er, ner.
9850 (attribute enabled): Handle them.
9851 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9853 2011-02-24 Richard Henderson <rth@redhat.com>
9855 * config/alpha/alpha.md (attribute isa): Add vms.
9856 (attribute enabled): Handle it.
9857 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9858 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9859 (*movtf): Rename from *movtf_internal for consistency.
9860 (*movsi): Merge with *movsi_nt_vms.
9861 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9862 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9863 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9864 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9866 2011-02-24 Richard Henderson <rth@redhat.com>
9868 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9869 (extendqisi2, extendhisi2): Likewise.
9870 (extendqidi2): Simplify BWX/non-BWX expansions.
9871 (extendhidi2): Similarly.
9873 2011-02-24 Richard Henderson <rth@redhat.com>
9875 * config/alpha/alpha.md (attribute isa): New.
9876 (attribute enabled): New.
9877 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9878 (zero_extendqisi2, zero_extendqidi2): Similarly.
9879 (zero_extendhisi2, zero_extendhidi2): Similarly.
9880 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9882 2011-02-24 Richard Henderson <rth@redhat.com>
9884 * config/alpha/predicates.md (input_operand): Revert last change;
9885 update comment to mention 32-bit VMS rather than Windows.
9887 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9889 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9890 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9891 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9892 * passes.c (init_optimization_passes): Move
9893 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9895 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9897 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9899 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9901 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9904 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9907 * simplify-rtx.c (simplify_const_unary_operation): Call
9908 real_convert when changing mode class with FLOAT_EXTEND.
9910 2011-03-24 Nick Clifton <nickc@redhat.com>
9912 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9913 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9914 * config/rx/rx.c (rx_option_override): Set align_jumps,
9915 align_loops and align_labels if not set by the user.
9916 (rx_align_for_label): New function.
9917 (rx_max_skip_for_label): New function.
9918 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9919 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9920 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9921 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9922 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9924 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9926 PR rtl-optimization/48263
9927 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9928 and original commutative_p handling. Use maybe_gen_insn.
9930 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9932 * reload.c (find_reloads_subreg_address): Add address_reloaded
9933 parameter and return true there if the full address has been
9935 (find_reloads_toplev): Pass address_reloaded flag.
9936 (find_reloads_address_1): Don't use address_reloaded parameter.
9938 2011-03-24 Jeff Law <law@redhat.com>
9940 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9941 unused variable "ann".
9942 (remove_unused_locals): Likewise.
9944 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9947 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9950 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9952 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9953 for invalid symbolic addresses.
9954 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9957 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9959 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9960 the argument in calls to fold_truth_not_expr.
9962 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9964 * tree.c (record_node_allocation_statistics): New function.
9965 (make_node_stat, copy_node_stat, build_string): Call it.
9966 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9967 (build1_stat, build_omp_clause): Likewise.
9969 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9971 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9974 2011-03-24 Richard Guenther <rguenther@suse.de>
9976 PR tree-optimization/48271
9977 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9978 blocks that still exist.
9980 2011-03-24 Richard Guenther <rguenther@suse.de>
9982 PR tree-optimization/48270
9983 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9984 not free datarefs before ddrs.
9986 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9988 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9989 from the address built for a reference with variable offset.
9991 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9994 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9995 alternatives that can be handled with movq or movabsq insn.
9996 (*movdf_internal): Disable for !TARGET_64BIT.
9997 (*movdf_internal_nointeger): Ditto.
9998 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10000 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10002 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10003 (FUNCTION_ARG_ADVANCE): Likewise.
10004 * tm.texi.in: Change references to them to hook references.
10005 * tm.texi: Regenerate.
10006 * targhooks.c (default_function_arg): Eliminate check for target macro.
10007 (default_function_incoming_arg): Likewise.
10008 (default_function_arg_advance): Likewise.
10009 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10010 (function_arg_advance): Likewise.
10011 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10013 2011-03-24 Richard Guenther <rguenther@suse.de>
10015 PR middle-end/48269
10016 * tree-object-size.c (addr_object_size): Do not double-account
10017 for MEM_REF offsets.
10019 2011-03-24 Diego Novillo <dnovillo@google.com>
10021 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10022 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10023 (lto_input_data_block): Move from lto-opts.c. Make extern.
10025 (lto_input_string): Rename from input_string. Make extern.
10027 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10028 output_string_with_length.
10029 Output 0 to indicate a non-NULL string. Update all callers to
10031 (lto_output_string): Rename from output_string. Make extern.
10033 (lto_output_decl_state_streams): Make extern.
10034 (lto_output_decl_state_refs): Make extern.
10035 * lto-streamer.h (lto_input_string): Declare.
10036 (lto_input_data_block): Declare.
10037 (lto_output_string): Declare.
10038 (lto_output_string_with_length): Declare.
10039 (lto_output_decl_state_streams): Declare.
10040 (lto_output_decl_state_refs): Declare.
10042 2011-03-24 Richard Guenther <rguenther@suse.de>
10044 PR tree-optimization/46562
10045 * tree.c (build_invariant_address): New function.
10046 * tree.h (build_invariant_address): Declare.
10047 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10048 a renamed function moved ...
10049 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10050 Take valueization callback parameter.
10051 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10052 * gimple-fold.h: New file.
10053 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10054 (ccp_fold, fold_const_aggregate_ref,
10055 fold_ctor_reference, fold_nonarray_ctor_reference,
10056 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10057 get_base_constructor): Move ...
10058 * gimple-fold.c: ... here.
10059 (gimple_fold_stmt_to_constant_1): New function
10060 split out from ccp_fold. Take a valueization callback parameter.
10061 Valueize all operands.
10062 (gimple_fold_stmt_to_constant): New wrapper function.
10063 (fold_const_aggregate_ref_1): New function split out from
10064 fold_const_aggregate_ref. Take a valueization callback parameter.
10065 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10066 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10067 invariant POINTER_PLUS_EXPRs to invariant form.
10068 (vn_valueize): New function.
10069 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10070 * tree-vrp.c (vrp_valueize): New function.
10071 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10072 to fold statements to constants.
10073 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10074 function declarations.
10075 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10076 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10078 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10080 * config/h8300/predicates.md (jump_address_operand): Fix register
10083 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10085 * doc/invoke.texi (max-stores-to-sink): Document.
10086 * params.h (MAX_STORES_TO_SINK): Define.
10087 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10088 if either vectorization or if-conversion is disabled.
10089 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10090 tree-vect-data-refs.c vect_equal_offsets.
10091 (dr_equal_offsets_p): New function.
10092 (find_data_references_in_bb): Remove static.
10093 * tree-data-ref.h (find_data_references_in_bb): Declare.
10094 (dr_equal_offsets_p): Likewise.
10095 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10096 (vect_drs_dependent_in_basic_block): Update calls to
10097 vect_equal_offsets.
10098 (vect_check_interleaving): Likewise.
10099 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10100 (cond_if_else_store_replacement): Rename to...
10101 (cond_if_else_store_replacement_1): ... this. Change arguments and
10103 (cond_if_else_store_replacement): New function.
10104 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10105 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10107 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10110 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10111 to subtract lower bound instead of GEN_INT().
10113 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10118 * doc/extend.texi (Alignment): Move section to match order in TOC.
10119 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10120 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10122 2011-03-23 Jeff Law <law@redhat.com>
10124 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10125 before removing the edge.
10127 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10128 it may have been freed by redirect_branch_edge or
10129 redirect_edge_succ_nodup.
10131 2011-03-23 Richard Guenther <rguenther@suse.de>
10133 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10134 (check_va_list_escapes): Likewise.
10135 (check_all_va_list_escapes): Likewise.
10137 2011-03-23 Richard Guenther <rguenther@suse.de>
10139 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10140 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10141 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10142 (alias.o): Likewise.
10143 (ipa-type-escape.o): Remove.
10144 (ipa-struct-reorg.o): Likewise.
10145 (GTFILES): Remove ipa-struct-reorg.c.
10146 * alias.c: Do not include ipa-type-escape.h.
10147 * tree-ssa-alias.c: Likewise.
10148 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10149 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10150 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10151 and ipa-type-escape passes.
10152 * tree-pass.h (pass_ipa_type_escape): Remove.
10153 (pass_ipa_struct_reorg): Likewise.
10154 * ipa-struct-reorg.h: Remove.
10155 * ipa-struct-reorg.c: Likewise.
10156 * ipa-type-escape.h: Likewise.
10157 * ipa-type-escape.c: Likewise.
10158 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10159 (--param struct-reorg-cold-struct-ratio): Likewise.
10160 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10161 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10162 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10164 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10166 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10167 cpu attribute value.
10168 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10169 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10170 * config/s390/s390.c (processor_flags_table): New constant array.
10171 (s390_handle_arch_option): Remove.
10172 (s390_handle_option): Remove s390_handle_arch_option invocations
10173 and OPT_mwarn_framesize_ handling.
10174 (s390_option_override): Remove s390_handle_arch_option invocation.
10175 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10177 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10178 * config/s390/s390.opt (s390_tune, s390_arch)
10179 (march=): Replace s390_arch_option enum and values with
10180 processor_type. Set variable name to s390_arch. Set
10181 initialization value.
10182 (mtune=): Replace s390_arch_option with processor_type. Set
10183 variable name to s390_tune. Set initialization value.
10185 2011-03-23 Julian Brown <julian@codesourcery.com>
10187 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10188 accesses which are not naturally aligned.
10190 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10193 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10195 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10197 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10198 parameter from "int" to "enum insn_code".
10199 (expand_operand_type): New enum.
10200 (expand_operand): New structure.
10201 (create_expand_operand): New function.
10202 (create_fixed_operand, create_output_operand): Likewise
10203 (create_input_operand, create_convert_operand_to): Likewise.
10204 (create_convert_operand_from, create_address_operand): Likewise.
10205 (create_integer_operand): Likewise.
10206 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10207 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10208 (expand_insn, expand_jump_insn): Likewise.
10209 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10210 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10211 (expand_movstr, expand_builtin___clear_cache): Likewise.
10212 (expand_builtin_lock_release): Likewise.
10213 * explow.c (allocate_dynamic_stack_space): Likewise.
10214 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10215 and use the default handling in that case.
10216 * expmed.c (check_predicate_volatile_ok): Delete.
10217 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10218 (emit_cstore): Likewise.
10219 * expr.c (emit_block_move_via_movmem): Likewise.
10220 (set_storage_via_setmem, expand_assignment): Likewise.
10221 (emit_storent_insn, try_casesi): Likewise.
10222 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10223 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10224 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10225 (expand_twoval_unop, expand_twoval_binop): Likewise.
10226 (expand_unop_direct, emit_indirect_jump): Likewise.
10227 (emit_conditional_move, vector_compare_rtx): Likewise.
10228 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10229 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10230 (expand_sync_lock_test_and_set): Likewise.
10231 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10232 (emit_unop_insn): Likewise.
10233 (expand_copysign_absneg): Change icode to an insn_code.
10234 (create_convert_operand_from_type): New function.
10235 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10236 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10237 (expand_insn, expand_jump_insn): Likewise.
10238 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10239 than const_int_operand for operand 2.
10241 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10243 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10246 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10248 * emit-rtl.c (emit_pattern_before_noloc): New function.
10249 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10250 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10251 (emit_pattern_after_noloc): New function.
10252 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10253 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10255 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10257 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10258 (__ffsDI2): Likewise.
10260 2011-03-22 Richard Henderson <rth@redhat.com>
10262 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10263 of !TARGET_ABI_OPEN_VMS.
10264 (alpha_trampoline_init, alpha_start_function): Likewise.
10265 (alpha_expand_epilogue, alpha_file_start): Likewise.
10266 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10267 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10268 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10269 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10270 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10272 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10274 * config/s390/s390-opts.h: New.
10275 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10276 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10277 s390_stack_guard): Remove.
10278 (s390_handle_arch_option): Return void. Take enum
10279 s390_arch_option value instead of string and searching array.
10280 (s390_handle_option): Don't assert that global structures are in
10281 use. Access variables via opts pointer. Use error_at. Don't use
10282 sscanf for -mstack-guard= or -mstack-size=. Update call to
10283 s390_handle_arch_option.
10284 (s390_option_override): Update call to s390_handle_arch_option.
10285 (s390_emit_prologue): Use %d format for s390_stack_size in
10286 diagnostic. Use %wd for HOST_WIDE_INT.
10287 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10288 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10289 * config/s390/s390.opt (config/s390/s390-opts.h): New
10290 HeaderInclude entry.
10291 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10292 s390_arch_flags, s390_warn_framesize): New Variable entries.
10293 (s390_arch_option): New Enum and EnumValue entries.
10294 (march=): Use Enum instead of Var.
10295 (mstack-guard=, mstack-size=): Use UInteger and Var.
10296 (mtune=): Use Enum.
10298 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10300 * config/score/score.c (score_handle_option): Don't assert that
10301 global structures are in use. Access target_flags via opts
10302 pointer. Use value of -march= option to determine target_flags
10304 * config/score/score.opt (march=): Use Enum.
10305 (score_arch): New Enum and EnumValue entries.
10307 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10309 * config/mep/mep.c (option_mtiny_specified): Remove.
10310 (mep_option_override): Move register handling for -mivc2 from
10311 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10312 instead of option_mtiny_specified.
10313 (mep_handle_option): Access target_flags via opts pointer. Don't
10314 assert that global structures are in use. Defer part of -mivc2
10315 handling and move it to mep_option_override.
10316 * config/mep/mep.opt (IVC2): New Mask entry.
10317 (mivc2): Use Var and Defer instead of Mask.
10319 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10321 * config/v850/v850-opts.h: New.
10322 * config/v850/v850.c (small_memory): Replace with
10323 small_memory_physical_max array. Make that array static const.
10324 (v850_handle_memory_option): Take integer value of argument. Take
10325 gcc_options pointer, option text and location. Return void.
10326 Update for changes to small memory structures.
10327 (v850_handle_option): Access target_flags via opts pointer. Don't
10328 assert that global structures are in use. Update calls to
10329 v850_handle_memory_option.
10330 (v850_encode_data_area): Update references to small memory settings.
10331 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10332 (enum small_memory_type): Move to v850-opts.h.
10333 * config/v850/v850.opt (config/v850/v850-opts.h): New
10334 HeaderInclude entry.
10335 (small_memory_max): New Variable entry.
10336 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10337 (mtda, mzda): Likewise.
10339 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10341 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10342 pointer. Don't assert that global structures are in use.
10344 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10346 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10347 via opts pointer. Don't assert that global structures are in use.
10349 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10351 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10352 (munix=93): Use Var.
10353 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10354 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10355 * config/pa/pa-opts.h: New.
10356 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10357 (pa_handle_option): Don't assert that global structures are in
10358 use. Access target_flags via opts pointer. Don't handle
10359 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10361 (pa_option_override): Handle deferred OPT_mfixed_range_.
10363 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10365 * config/mn10300/mn10300-opts.h: New.
10366 * config/mn10300/mn10300.c (mn10300_processor,
10367 mn10300_tune_string): Remove.
10368 (mn10300_handle_option): Don't assert that global structures are
10369 in use. Access mn10300_processor via opts pointer. Don't handle
10371 * config/mn10300/mn10300.h (enum processor_type): Move to
10373 (mn10300_processor): Remove.
10374 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10375 HeaderInclude entry.
10376 (mn10300_processor): New Variable entry.
10379 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10381 * config/microblaze/microblaze.c: Don't include opts.h.
10382 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10383 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10384 (mno-clearbss): Use Var and Warn.
10386 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10388 * config/m32r/m32r-opts.h: New.
10389 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10390 (m32r_handle_option): Don't assert that global structures are in
10391 use. Access target_flags and m32r_cache_flush_func via opts
10392 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10393 OPT_mno_flush_trap here.
10394 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10395 include of m32r-opts.h.
10396 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10397 HeaderInclude entry.
10398 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10399 (mmodel=): Use Enum and Var.
10400 (m32r_model): New Enum and EnumValue entries.
10401 (mno-flush-trap): Use Var.
10402 (msdata=): Use Enum and Var.
10403 (m32r_sdata): New Enum and EnumValue entries.
10405 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10407 * config/m32c/m32c.c: Don't include opts.h.
10408 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10409 m32c_handle_option): Remove.
10410 (m32c_option_override): Check global_options_set.x_target_memregs
10411 instead of target_memregs_set.
10412 * config/m32c/m32c.h (target_memregs): Remove.
10413 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10416 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10418 * config/iq2000/iq2000-opts.h: New.
10419 * config/iq2000/iq2000.c: Don't include opts.h.
10420 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10421 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10422 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10423 HeaderInclude entry.
10424 (iq2000_tune): New Variable entry.
10425 (march=): Add comment. Use Enum.
10426 (iq2000_arch): New Enum and EnumValue entries.
10427 (mcpu=): Use Enum and Var.
10428 (iq2000_tune): New Enum and EnumValue entries.
10430 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10432 * config/ia64/ia64-opts.h: New.
10433 * config/ia64/ia64.c (ia64_tune): Remove.
10434 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10435 here. Use error_at.
10436 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10437 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10438 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10439 HeaderInclude entry.
10440 (ia64_tune): New Variable entry.
10441 (mfixed-range=): Use Defer and Var.
10442 (mtune=): Use Enum and Var.
10443 (ia64_tune): New Enum and EnumValue entries.
10445 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10447 * config/frv/frv-opts.h: New.
10448 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10450 (frv_cpu_type): Remove.
10451 * config/frv/frv.c: Don't include opts.h.
10452 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10453 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10454 (frv_cpu_type): New Variable entry.
10455 (frv_cpu): New Enum and EnumValue entries.
10457 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10459 * config/cris/cris.c (cris_handle_option): Access target_flags via
10460 opts pointer. Don't assert that global structures are in use.
10461 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10462 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10464 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10466 * config/bfin/bfin-opts.h: New.
10467 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10468 bfin_si_revision, bfin_workarounds): Remove.
10469 (bfin_cpus): Make static const.
10470 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10471 not bfin_lib_id_given.
10472 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10473 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10474 pointer. Use error_at. Don't assert that global structures are in use.
10475 * config/bfin/bfin.h: Include bfin-opts.h.
10476 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10477 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10478 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10479 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10482 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10484 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10485 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10486 or -msoft-float here.
10487 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10488 -msoft-float and -mhard-float.
10489 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10490 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10492 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10494 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10495 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10497 (LIBGCC_SPEC): Don't handle -msoft-float.
10498 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10500 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10502 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10503 -mfloat-abi=*, not -msoft-float and -mhard-float.
10504 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10506 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10507 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10508 mhard-float and msoft-float.
10509 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10510 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10511 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10512 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10514 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10515 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10517 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10519 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10522 2011-03-22 Richard Henderson <rth@redhat.com>
10524 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10525 TARGET_ABI_WINDOWS_NT.
10526 (alpha_output_function_end_prologue): Likewise.
10527 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10528 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10529 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10530 (trap, *movsi_nt_vms): Likewise.
10531 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10532 (*tablejump_osf_nt_internal): Remove.
10533 * config/alpha/predicates.md (input_operand): Only test Pmode.
10535 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10537 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10538 via opts pointer. Use error_at. Don't assert that global
10539 structures are in use.
10541 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10543 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10544 (ix86_handle_option): Access ix86_isa_flags and
10545 ix86_isa_flags_explicit via opts pointer. Don't assert that
10546 global structures are in use.
10547 (ix86_function_specific_save, ix86_function_specific_restore):
10548 Update ix86_isa_flags_explicit field name.
10549 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10550 (ix86_isa_flags_explicit): Rename TargetSave entry to
10551 x_ix86_isa_flags_explicit.
10553 2011-03-22 Richard Henderson <rth@redhat.com>
10555 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10556 (alpha_option_override, direct_return): Likewise.
10557 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10558 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10559 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10560 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10561 (alpha_expand_epilogue, alpha_end_function): Likewise.
10562 (alpha_init_libfuncs): Likewise.
10563 (struct machine_function): Remove unicosmk members.
10564 (print_operand) ['t']: Remove.
10565 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10566 unicosmk_output_module_name, unicosmk_output_common,
10567 current_section_align, unicosmk_output_text_section_asm_op,
10568 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10569 unicosmk_section_type_flags, unicosmk_unique_section,
10570 unicosmk_asm_named_section, unicosmk_insert_attributes,
10571 unicosmk_output_align, unicosmk_defer_case_vector,
10572 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10573 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10574 unicosmk_output_ssib, unicosmk_add_call_info_word,
10575 unicosmk_extern_head, unicosmk_output_default_externs,
10576 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10577 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10578 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10579 * config/alpha/alpha-protos.h: Update.
10580 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10581 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10582 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10583 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10584 (*mulsi_se, mulvsi3): Likewise.
10585 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10586 (*divmodsi_internal, call, call_value, realign): Likewise.
10587 (moddi3, umoddi3): Likewise; remove duplicate expander.
10588 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10589 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10590 (*movdi_nofix): Remove r/U alternative.
10591 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10592 * config/alpha/constraints.md ("U"): Remove.
10593 * config/alpha/predicates.md (call_operand"): Don't test
10594 TARGET_ABI_UNICOSMK.
10596 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10598 * target.def (handle_option): Take gcc_options and
10599 cl_decoded_option pointers and location_t.
10600 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10601 * doc/tm.texi: Regenerate.
10602 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10603 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10604 * lto-opts.c (lto_reissue_options): Generate option structure for
10605 targetm.handle_option call.
10606 * opts.c (target_handle_option): Update call to
10607 targetm.handle_option. Remove assertions about values now passed
10609 * targhooks.c (default_target_handle_option): New.
10610 * targhooks.h (default_target_handle_option): Declare.
10611 * config/alpha/alpha.c: Include opts.h.
10612 (alpha_handle_option): Update to new hook interface.
10613 * config/arm/arm.c: Include opts.h.
10614 (arm_handle_option): Update to new hook interface.
10615 * config/arm/t-arm (arm.o): Update dependencies.
10616 * config/bfin/bfin.c: Include opts.h.
10617 (bfin_handle_option): Update to new hook interface.
10618 * config/cris/cris.c: Include opts.h.
10619 (cris_handle_option): Update to new hook interface.
10620 * config/frv/frv.c: Include opts.h.
10621 (frv_handle_option): Update to new hook interface.
10622 * config/i386/i386.c: Include opts.h.
10623 (ix86_handle_option): Update to new hook interface.
10624 (ix86_valid_target_attribute_inner_p): Generate option structure
10625 for call to ix86_handle_option.
10626 * config/i386/t-i386 (i386.o): Update dependencies.
10627 * config/ia64/ia64.c: Include opts.h.
10628 (ia64_handle_option): Update to new hook interface.
10629 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10630 * config/iq2000/iq2000.c: Include opts.h.
10631 (iq2000_handle_option): Update to new hook interface.
10632 * config/m32c/m32c.c: Include opts.h.
10633 (m32c_handle_option): Update to new hook interface.
10634 * config/m32r/m32r.c: Include opts.h.
10635 (m32r_handle_option): Update to new hook interface.
10636 * config/m68k/m68k.c: Include opts.h.
10637 (m68k_handle_option): Update to new hook interface.
10638 * config/mep/mep.c: Include opts.h.
10639 (mep_handle_option): Update to new hook interface.
10640 * config/microblaze/microblaze.c: Include opts.h.
10641 (microblaze_handle_option): Update to new hook interface.
10642 * config/mips/mips.c: Include opts.h.
10643 (mips_handle_option): Update to new hook interface.
10644 * config/mn10300/mn10300.c: Include opts.h.
10645 (mn10300_handle_option): Update to new hook interface.
10646 * config/pa/pa.c: Include opts.h.
10647 (pa_handle_option): Update to new hook interface.
10648 * config/pdp11/pdp11.c: Include opts.h.
10649 (pdp11_handle_option): Update to new hook interface.
10650 * config/rs6000/rs6000.c: Include opts.h.
10651 (rs6000_handle_option): Update to new hook interface.
10652 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10653 * config/rx/rx.c: Include opts.h.
10654 (rx_handle_option): Update to new hook interface.
10655 * config/s390/s390.c: Include opts.h.
10656 (s390_handle_option): Update to new hook interface.
10657 * config/score/score.c: Include opts.h.
10658 (score_handle_option): Update to new hook interface.
10659 * config/sh/sh.c: Include opts.h.
10660 (sh_handle_option): Update to new hook interface.
10661 * config/sparc/sparc.c: Include opts.h.
10662 (sparc_handle_option): Update to new hook interface.
10663 * config/v850/v850.c: Include opts.h.
10664 (v850_handle_option): Update to new hook interface.
10666 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10668 * gcc.c (driver_unknown_option_callback): Only permit and save
10669 unknown -Wno- options.
10670 (driver_wrong_lang_callback): Save options directly instead of via
10671 driver_unknown_option_callback.
10673 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10675 * combine.c (simplify_set): Try harder to find the best CC mode when
10676 simplifying a nested COMPARE on the RHS.
10678 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10680 * config/alpha/gnu.h: Remove.
10681 * config/arc: Remove directory.
10682 * config/arm/netbsd.h: Remove.
10683 * config/arm/t-pe: Remove.
10684 * config/crx: Remove directory.
10685 * config/i386/netbsd.h: Remove.
10686 * config/m68hc11: Remove directory.
10687 * config/m68k/uclinux-oldabi.h: Remove.
10688 * config/mcore/mcore-pe.h: Remove.
10689 * config/mcore/t-mcore-pe: Remove.
10690 * config/netbsd-aout.h: Remove.
10691 * config/rs6000/gnu.h: Remove.
10692 * config/sh/sh-symbian.h: Remove.
10693 * config/sh/symbian-base.c: Remove.
10694 * config/sh/symbian-c.c: Remove.
10695 * config/sh/symbian-cxx.c: Remove.
10696 * config/sh/symbian-post.h: Remove.
10697 * config/sh/symbian-pre.h: Remove.
10698 * config/sh/t-symbian: Remove.
10699 * config/svr3.h: Remove.
10700 * config/vax/netbsd.h: Remove.
10701 * config.build: Don't handle i[34567]86-*-pe.
10702 * config.gcc: Remove handling of deprecations for most deprecated
10704 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10705 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10706 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10707 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10708 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10709 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10711 * config.host: Don't handle i[34567]86-*-pe.
10712 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10713 (ASM_SPEC32): Don't handle -mcall-gnu.
10714 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10716 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10717 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10718 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10719 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10720 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10721 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10722 conditional on SYMBIAN.
10723 * configure.ac: Don't handle powerpc*-*-gnu*.
10724 * configure: Regenerate.
10725 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10726 * doc/install-old.texi (m6811, m6812): Don't mention.
10727 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10728 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10729 (m68k-uclinuxoldabi): Don't mention.
10730 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10732 (-mcall-gnu): Remove.
10733 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10734 families): Remove constraint documentation.
10736 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10738 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10739 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10740 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10742 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10745 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10746 vector when peeking at the next token for vector, don't expand the
10749 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10751 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10752 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10753 * config/avr/avr.c (init_cumulative_args)
10754 (avr_function_arg_advance): Use it.
10755 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10757 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10758 (avr_function_ok_for_sibcall): ...this new function.
10759 (avr_lookup_function_attribute1): New static Function.
10760 (avr_naked_function_p, interrupt_function_p)
10761 (signal_function_p, avr_OS_task_function_p)
10762 (avr_OS_main_function_p): Use it.
10763 * config/avr/avr.md ("sibcall", "sibcall_value")
10764 ("sibcall_epilogue"): New expander.
10765 ("*call_insn", "*call_value_insn"): New insn.
10766 ("call_insn", "call_value_insn"): Remove
10767 ("call", "call_value", "epilogue"): Change expander to handle
10770 2011-03-21 Nick Clifton <nickc@redhat.com>
10772 * doc/invoke.texi (Overall Options): Move closing brace to end of
10774 (Optimization Options): Add missing @gol.
10775 (Directory Options): Likewise.
10776 (i386 and x86-64 Options): Likewise.
10777 (RS6000 and PowerPC Options): Likewise.
10778 (i386 and x86-64 Windows Options): Likewise.
10779 (V850 Options): Add text missing from descriptions.
10781 2011-03-22 Richard Henderson <rth@redhat.com>
10783 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10784 (avr_incoming_return_addr_rtx): New.
10785 (emit_push_byte): New.
10786 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10787 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10788 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10789 (emit_pop_byte): New.
10790 (expand_epilogue): Use it. Pop frame pointer by bytes.
10791 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10792 (INCOMING_RETURN_ADDR_RTX): New.
10793 (INCOMING_FRAME_SP_OFFSET): New.
10794 (ARG_POINTER_CFA_OFFSET): New.
10795 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10796 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10799 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10801 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10803 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10804 (FUNCTION_ARG_ADVANCE): Likewise.
10805 * tm.texi.in: Change references to them to hook references.
10806 * tm.texi: Regenerate.
10807 * targhooks.c (default_function_arg): Eliminate check for target
10809 (default_function_incoming_arg): Likewise.
10810 (default_function_arg_advance): Likewise.
10811 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10812 (function_arg_advance): Likewise.
10813 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10815 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10817 * tree.c (build_call_1): New function.
10818 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10820 2011-03-22 Richard Guenther <rguenther@suse.de>
10822 PR tree-optimization/48228
10823 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10824 for single-arg PHIs.
10826 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10828 PR rtl-optimization/48143
10829 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10830 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10831 sse2_cvtps2pd): Likewise.
10833 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10835 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10837 2011-03-22 Richard Guenther <rguenther@suse.de>
10839 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10840 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10841 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10842 and REALIGN_LOAD_EXPR.
10843 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10844 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10845 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10846 DOT_PROD_EXPR case ...
10847 (expand_expr_real_2): ... here.
10848 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10849 and REALIGN_LOAD_EXPR.
10850 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10851 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10852 (vect_create_epilog_for_reduction): Likewise.
10853 (vectorizable_reduction): Likewise.
10854 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10855 * tree-vect-stmts.c (vectorizable_load): Likewise.
10857 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10859 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10861 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10863 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10864 handling for PLTOFF/GOTOFF.
10866 2011-03-22 Nick Clifton <nickc@redhat.com>
10868 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10869 trailing backslash from the end of the macro definition.
10871 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10873 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10876 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10878 * expr.h (prepare_operand): Move to...
10879 * optabs.h (prepare_operand): ...here and change the insn code
10880 parameter from "int" to "enum insn_code".
10881 (insn_operand_matches): Declare.
10882 * expr.c (init_expr_target): Use insn_operand_matches.
10883 (compress_float_constant): Likewise.
10884 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10885 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10886 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10887 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10889 (gen_cond_trap): Likewise.
10890 (prepare_operand): Likewise. Change icode to an insn_code.
10891 (insn_operand_matches): New function.
10892 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10893 * reload1.c (gen_reload): Likewise.
10894 * targhooks.c (default_secondary_reload): Likewise.
10896 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10898 * config/alpha/alpha.md (unspec): New define_c_enum.
10901 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10904 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10905 between a call and its CALL_ARG_LOCATION note.
10907 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10909 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10911 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10915 * c-common.c (shorten_compare): If primopN is first sign-extended
10916 to opN and then zero-extended to result type, set primopN to opN.
10918 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10920 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10921 for barrier handlers.
10923 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10925 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10926 UNSPEC constants to be in the unspec enumeration, and redefine
10927 all UNSPECV constants to be in the unspecv enumeration, so that
10928 dumps print which unspec/unspec_volatile this is.
10929 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10930 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10931 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10932 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10933 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10935 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10936 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10937 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10938 * config/rs6000/sync.md (isync, lwsync): Ditto.
10940 2011-03-21 Richard Guenther <rguenther@suse.de>
10942 * params.def (lto-min-partition): Fix typo.
10944 2011-03-21 Richard Guenther <rguenther@suse.de>
10947 * c-decl.c (grokdeclarator): Drop to the main variant only
10948 for array types. Drop flag_gen_aux_info check.
10950 2011-03-21 Richard Guenther <rguenther@suse.de>
10952 PR translation/47911
10953 * params.def (lto-partitions): Fix typo.
10954 (lto-min-partition): Fix wording.
10956 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10958 * config/rs6000/t-freebsd: Remove duplication from file.
10960 2011-03-21 Richard Guenther <rguenther@suse.de>
10962 PR middle-end/47661
10963 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10965 2011-03-21 Richard Guenther <rguenther@suse.de>
10968 * params.def (lto-partitions): Require at least 1 partition.
10970 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10972 * gthr-solaris.h: Remove.
10973 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10974 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10975 (LIB_SPEC): Likewise.
10976 * config/sol2.opt (threads): Remove.
10977 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10978 (sparc*-*-solaris2*): Likewise.
10979 * configure.ac (enable_threads): Enable solaris support.
10980 * configure: Regenerate.
10981 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10982 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10985 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10987 * config.gcc: Obsolete *-*-solaris2.8*.
10988 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10990 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10993 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10994 reference. Solaris 8 perl works.
10996 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10999 * doc/install.texi (Prerequisites): Move jar etc. up.
11000 Explain support library version requirements.
11002 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11005 * doc/install.texi (Prerequisites): Move Perl to build
11006 requirements. Always necessary on Solaris 2 with Sun ld.
11008 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11010 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11012 (Specific, i?86-*-solaris2.[89]): Likewise.
11013 (Specific, i?86-*-solaris2.10): Likewise.
11014 (Specific, mips-sgi-irix6): Likewise.
11015 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11016 Update for binutils 2.21.
11018 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11020 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11021 Allow -fuse-linker-plugin for non-default plugin linker.
11022 * configure: Regenerate.
11024 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11027 * gengtype.c (files_rules): Added rule for cp/parser.h.
11029 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11032 * config/s390/s390.c (s390_delegitimize_address): Don't call
11033 lowpart_subreg if orig_x has BLKmode.
11035 2011-03-21 Kai Tietz <ktietz@redhat.com>
11038 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11039 * tree.h (attribute_spec): Add new member affects_type_identity.
11040 * attribs.c (empty_attribute_table): Adjust attribute_spec
11042 * config/alpha/alpha.c: Likewise.
11043 * config/arc/arc.c: Likewise.
11044 * config/arm/arm.c: Likewise.
11045 * config/avr/avr.c: Likewise.
11046 * config/bfin/bfin.c: Likewise.
11047 * config/crx/crx.c: Likewise.
11048 * config/darwin.h: Likewise.
11049 * config/h8300/h8300.c: Likewise.
11050 * config/i386/cygming.h: Likewise.
11051 * config/i386/i386.c: Likewise.
11052 * config/ia64/ia64.c: Likewise.
11053 * config/m32c/m32c.c: Likewise.
11054 * config/m32r/m32r.c: Likewise.
11055 * config/m68hc11/m68hc11.c: Likewise.
11056 * config/m68k/m68k.c: Likewise.
11057 * config/mcore/mcore.c: Likewise.
11058 * config/mep/mep.c: Likewise.
11059 * config/microblaze/microblaze.c: Likewise.
11060 * config/mips/mips.c: Likewise.
11061 * config/rs6000/rs6000.c: Likewise.
11062 * config/rx/rx.c: Likewise.
11063 * config/sh/sh.c: Likewise.
11064 * config/sol2.h: Likewise.
11065 * config/sparc/sparc.c: Likewise.
11066 * config/spu/spu.c: Likewise.
11067 * config/stormy16/stormy16.c: Likewise.
11068 * config/v850/v850.c: Likewise.
11070 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11072 * simplify-rtx.c (simplify_binary_operation_1): Handle
11073 (xor (and A B) C) case when B and C are both constants.
11075 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11077 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11079 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11082 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11084 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11086 PR rtl-optimization/48156
11087 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11088 assume df and df_lr are not NULL.
11090 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11093 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11094 between a call and its CALL_ARG_LOCATION note.
11096 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11099 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11100 between a call and its corresponding CALL_ARG_LOCATION note.
11102 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11104 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11105 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11106 * haifa-sched.c (setup_ref_regs): Ditto.
11107 * caller-save.c (add_used_regs_1): Ditto.
11108 * dse.c (look_for_hardregs): Ditto.
11109 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11110 * sched-rgn.c (check_live_1): Ditto.
11112 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11114 * c-decl.c (diagnose_mismatched_decls): Give an error for
11115 redefining a typedef with variably modified type.
11117 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11119 * c-decl.c (grokfield): Don't allow typedefs for structures or
11120 unions with no tag by default.
11121 * doc/extend.texi (Unnamed Fields): Update.
11123 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11125 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11126 Rewrite using indirect functions.
11127 (lwp_slwpcb): Ditto.
11128 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11129 (avx_vinsertf128<mode>): Ditto.
11131 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11133 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11136 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11138 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11139 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11141 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11143 PR rtl-optimization/48170
11144 * gcse.c (hoist_code): Remove bogus asserts.
11146 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11148 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11149 computation for prologue/epilogue.
11151 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11153 * Makefile.in (check-consistency): Remove.
11155 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11158 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11159 arange_table_in_use is 0, but either text_section_used or
11160 cold_text_section_used is true. Don't call it if
11161 !info_section_emitted.
11163 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11165 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11166 FUNCTION_VALUE_REGNO_P): Remove.
11167 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11169 * config/avr/avr.c (avr_ret_register): Make static inline.
11170 (avr_function_value_regno_p): New function.
11171 (avr_libcall_value): Make static. Add 'func' argument.
11172 (avr_function_value): Make static. Rename 'func' argument to
11173 'fn_decl_or_type', forward it to avr_libcall_value. Call
11174 avr_ret_register function instead of RET_REGISTER macro.
11175 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11177 2011-03-18 Jason Merrill <jason@redhat.com>
11180 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11182 2011-03-18 Richard Guenther <rguenther@suse.de>
11184 * doc/install.texi (--enable-gold): Remove.
11185 (--with-plugin-ld): Document.
11186 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11188 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11190 PR middle-end/47790
11191 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11192 again after expansion changes.
11194 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11196 * combine.c (try_combine): Do simplification only call of
11197 subst() on i2 even when i1 is present. Update comments.
11199 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11201 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11202 and UNSPEC_PCREL_SYMOFF.
11204 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11206 * config/s390/s390.md: Use define_c_enum for the unspec constant
11209 2011-03-18 Richard Henderson <rth@redhat.com>
11210 Jakub Jelinek <jakub@redhat.com>
11213 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11214 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11216 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11218 PR middle-end/47725
11219 * combine.c (cant_combine_insn_p): Don't check zero/sign
11220 extended hard registers.
11222 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11224 PR middle-end/47725
11225 * combine.c (cant_combine_insn_p): Check zero/sign extended
11228 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11230 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11231 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11232 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11233 Change return type to bool.
11234 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11236 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11239 * var-tracking.c (prepare_call_arguments): If CALL target
11240 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11241 pc instead of looking it up using cselib_lookup and use
11242 Pmode for it if x has VOIDmode.
11243 * dwarf2out.c (gen_subprogram_die): If also both first and
11244 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11247 * function.c (assign_parms): For data.passed_pointer parms
11248 use MEM of data.entry_parm instead of data.entry_parm itself
11249 as DECL_INCOMING_RTL.
11250 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11251 also when passed and declared mode is the same, DECL_RTL
11252 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11255 2011-03-16 Jeff Law <law@redhat.com>
11257 PR rtl-optimization/37273
11258 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11259 handle them like argument loads from stack slots. Do not double
11260 count memory for memory constants and argument loads from stack slots.
11262 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11265 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11267 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11270 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11272 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11275 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11277 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11278 Clear call_arg_locations and call_arg_loc_last always.
11280 PR middle-end/48152
11281 * var-tracking.c (prepare_call_arguments): If argument needs to be
11282 passed by reference, adjust argtype and mode.
11284 2011-03-17 Richard Guenther <rguenther@suse.de>
11286 PR middle-end/48134
11287 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11288 a value make sure to fold the statement.
11290 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11293 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11294 return condition with !cfun->calls_alloca.
11296 2011-03-17 Richard Guenther <rguenther@suse.de>
11299 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11300 origin for decls in other ltrans units.
11301 (input_varpool_node): Likewise.
11303 2011-03-17 Richard Guenther <rguenther@suse.de>
11305 PR middle-end/48165
11306 * tree-object-size.c (compute_object_offset): Properly return
11307 the offset operand of MEM_REFs as sizetype.
11309 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11311 PR rtl-optimization/48141
11312 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11313 * dse.c: Include params.h.
11314 (active_local_stores_len): New variable.
11315 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11317 (record_store, check_mem_read_rtx): Decrease it when removing
11319 (scan_insn): Likewise. Increase it when adding to chain, if it
11320 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11321 set active_local_stores to NULL before the addition.
11322 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11324 PR rtl-optimization/48141
11325 * dse.c (record_store): If no positions are needed in an insn
11326 that cannot be deleted, at least unchain it from active_local_stores.
11328 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11331 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11332 (lookup_type_die_strip_naming_typedef): ... here.
11333 (get_context_die): Use it.
11334 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11335 the anonymous struct named by the naming typedef.
11337 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11340 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11341 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11343 2011-03-16 Jeff Law <law@redhat.com>
11345 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11346 check for operands of conditional. Allow type to be a pointer.
11348 2011-03-16 Richard Guenther <rguenther@suse.de>
11350 PR tree-optimization/48149
11351 * fold-const.c (fold_binary_loc): Fold
11352 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11354 2011-03-16 Richard Guenther <rguenther@suse.de>
11356 PR tree-optimization/26134
11357 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11358 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11359 (non_rewritable_mem_ref_base): Handle complex type component
11360 accesses, constrain offsets for vector and complex extracts
11363 2011-03-16 Richard Guenther <rguenther@suse.de>
11365 PR tree-optimization/48146
11366 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11367 operands avoiding the need for renaming.
11369 2011-03-16 Richard Guenther <rguenther@suse.de>
11371 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11372 constant folding. Move MEM_REF canonicalization first.
11373 Rely on fold_const_aggregate_ref for initializer folding.
11374 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11376 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11378 PR middle-end/48136
11379 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11380 arg0/arg1 or their arguments are always fold converted to matching
11383 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11386 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11389 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11390 Handle in-tree gold.
11391 (ld_vers): Extract binutils version for gold.
11392 (gcc_cv_ld_hidden): Handle gold here.
11393 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11394 * configure: Regenerate.
11395 * config.in: Regenerate.
11396 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11397 -fuse-linker-plugin otherwise.
11398 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11399 (LINK_COMMAND_SPEC): Use it.
11400 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11402 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11404 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11405 * calls.c: Remove debug.h include.
11406 (emit_call_1): Don't call virtual_call_token debug hook.
11407 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11408 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11409 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11410 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11411 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11412 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11413 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11414 dwarf2out_virtual_call): Remove.
11415 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11416 copy_call_info and virtual_call hooks.
11417 (dwarf2out_init): Don't initialize vcall_insn_table,
11418 debug_dcall_section and debug_vcall_section.
11419 (prune_unused_types): Don't mark nodes from dcall_table.
11420 (dwarf2out_finish): Don't output dcall or vcall tables.
11421 * final.c (final_scan_insn): Don't call direct_call or
11422 virtual_call debug hooks.
11423 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11424 virtual_call_token, copy_call_info and virtual_call hooks.
11425 (debug_nothing_uid): Remove prototype.
11426 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11427 copy_call_info and virtual_call hooks.
11428 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11429 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11430 * debug.c (do_nothing_debug_hooks): Likewise.
11431 (debug_nothing_uid): Remove.
11432 * doc/invoke.texi (-fenable-icf-debug): Remove.
11433 * common.opt (-fenable-icf-debug): Likewise.
11435 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11436 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11437 call's MEM. Handle functions returning aggregate through a hidden
11438 first pointer. For virtual calls add clobbered pc to call arguments
11440 * dwarf2out.c (gen_subprogram_die): Emit
11441 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11445 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11446 * rtl.h (ENTRY_VALUE_EXP): Define.
11447 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11448 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11449 * print-rtl.c (print_rtx): Likewise.
11450 * gengtype.c (adjust_field_rtx_def): Likewise.
11451 * var-tracking.c (vt_add_function_parameter): Adjust
11452 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11453 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11454 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11455 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11456 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11458 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11459 Call var_location debug hook even on CALL_INSNs.
11460 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11461 * rtl.def (ENTRY_VALUE): New.
11462 * dwarf2out.c: Include cfglayout.h.
11463 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11464 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11465 (struct call_arg_loc_node): New type.
11466 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11467 tail_call_site_count): New variables.
11468 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11469 DW_TAG_GNU_call_site_parameter.
11470 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11471 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11472 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11473 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11474 and DW_AT_GNU_all_source_call_sites.
11475 (mem_loc_descriptor): Handle ENTRY_VALUE.
11476 (add_src_coords_attributes): Don't add enything if
11477 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11478 (dwarf2out_abstract_function): Save and clear call_arg_location,
11479 call_site_count and tail_call_site_count around dwarf2out_decl call.
11480 (gen_call_site_die): New function.
11481 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11482 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11483 (dwarf2out_function_decl): Clear call_arg_locations,
11484 call_arg_loc_last, set call_site_count and tail_call_site_count
11485 to -1 and free block_map.
11486 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11487 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11488 followed by any real instructions.
11489 (dwarf2out_begin_function): Set call_site_count and
11490 tail_call_site_count to 0.
11491 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11492 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11493 attempt to force a DIE for it and worst case remove the attribute.
11494 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11495 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11497 * var-tracking.c: Include tm_p.h.
11498 (vt_stack_adjustments): For calls call note_register_arguments.
11499 (argument_reg_set): New variable.
11500 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11501 ensure the VALUE is resolved.
11502 (call_arguments): New variable.
11503 (prepare_call_arguments): New function.
11504 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11505 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11506 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11507 always use the best expression.
11508 (vt_expand_loc): Add ignore_cur_loc argument.
11509 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11510 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11511 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11512 note for all calls.
11513 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11514 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11515 argument. Don't call cselib_preserve_only_values and
11516 cselib_reset_table.
11517 (note_register_arguments): New function.
11518 (vt_initialize): Compute argument_reg_set. Call
11519 vt_add_function_parameters before processing basic blocks instead of
11520 afterwards. For calls call prepare_call_arguments before calling
11521 cselib_process_insn.
11522 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11523 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11524 (var-tracking.o): Depend on $(TM_P_H).
11525 * cfglayout.h (insn_scope): New prototype.
11526 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11527 * cfglayout.c (insn_scope): No longer static.
11528 * insn-notes.def (CALL_ARG_LOCATION): New.
11529 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11530 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11531 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11532 nothing for DECL_EXTERNAL BLOCK_VARS.
11534 2011-03-16 Alan Modra <amodra@gmail.com>
11537 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11538 create invalid offset address for vsx splat insn.
11539 * config/rs6000/predicates.md (splat_input_operand): New.
11540 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11542 2011-03-15 Xinliang David Li <davidxl@google.com>
11545 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11546 (normalize_preds): New function.
11547 (is_use_properly_guarded): Normalize def predicates.
11549 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11552 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11553 in the output template.
11555 2011-03-15 Richard Guenther <rguenther@suse.de>
11557 PR middle-end/47650
11558 * tree-pretty-print.c (dump_function_declaration): Properly
11559 dump unprototyped and varargs function types.
11561 2011-03-15 Richard Guenther <rguenther@suse.de>
11563 PR tree-optimization/13954
11564 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11567 2011-03-15 Richard Guenther <rguenther@suse.de>
11569 PR tree-optimization/48037
11570 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11571 selects into BIT_FIELD_REFs.
11572 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11575 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11577 PR tree-optimization/48129
11578 * builtins.c (fold_builtin_snprintf): Convert to type of
11579 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11580 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11582 2011-03-15 Richard Guenther <rguenther@suse.de>
11584 PR tree-optimization/41490
11585 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11586 value but with VUSE.
11587 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11589 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11590 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11591 * tree-tailcall.c (find_tail_calls): Ignore returns.
11593 2011-03-15 Richard Guenther <rguenther@suse.de>
11595 PR middle-end/48031
11596 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11597 or variable-indexed array accesses when in gimple form.
11599 2011-03-15 Richard Guenther <rguenther@suse.de>
11601 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11603 2011-03-15 Alan Modra <amodra@gmail.com>
11606 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11607 presume symbol_refs without a symbol_ref_decl are suitably
11608 aligned, nor other trees we may see here. Handle anchor symbols.
11609 (legitimate_constant_pool_address_p): Comment. Add mode param.
11610 Check cmodel=medium addresses. Adjust all calls.
11611 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11612 creating cmodel=medium optimized access to locals.
11613 * config/rs6000/constraints.md (R): Pass QImode to
11614 legitimate_constant_pool_address_p.
11615 * config/rs6000/predicates.md (input_operand): Pass mode to
11616 legitimate_constant_pool_address_p.
11617 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11620 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11623 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11624 64-bit constants being loaded into registers other than GPRs such
11625 as loading 0 into a VSX register.
11627 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11629 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11631 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11633 PR middle-end/47917
11634 * builtins.c (fold_builtin_snprintf): New function.
11635 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11636 (fold_builtin_4): Likewise.
11638 PR middle-end/38878
11639 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11640 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11641 and C - X == X also strip nops from +/-/p+ operand.
11642 When optimizing -X == C, fold C to arg0's type.
11645 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11646 emit it as add_AT_int instead of add_AT_unsigned.
11648 2011-03-14 Tom Tromey <tromey@redhat.com>
11650 * unwind-dw2.c: Include sys/sdt.h if it exists.
11651 (_Unwind_DebugHook): Use STAP_PROBE2.
11652 * config.in, configure: Rebuild.
11653 * configure.ac: Check for sys/sdt.h.
11655 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11657 * config/i386/i386.md (ROUND_FLOOR): New constant.
11658 (ROUND_CEIL): Ditto.
11659 (ROUND_TRUNC): Ditto.
11660 (ROUND_MXCSR): Ditto.
11661 (ROUND_NO_EXC): Ditto.
11662 (rint<mode>2): Use new defines instead of numerical constants.
11663 (floor<mode>2): Ditto.
11664 (ceil<mode>2): Ditto.
11665 (btrunc<mode>2): Ditto.
11666 * config/i386/i386-builtin-types.def: Define ROUND function type
11668 * config/i386/i386.c (enum ix86_builtins): Add
11669 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11670 (struct builtin_description): Add
11671 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11672 (ix86_expand_sse_round): New static function.
11673 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11675 (ix86_builtin_vectorized_function): Handle
11676 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11678 2011-03-14 Tom Tromey <tromey@redhat.com>
11680 * c-parser.c (c_parser_asm_string_literal): Clear
11681 warn_overlength_strings.
11683 2011-03-14 Tom Tromey <tromey@redhat.com>
11685 * c-parser.c (disable_extension_diagnostics): Save
11686 warn_overlength_strings.
11687 (restore_extension_diagnostics): Restore warn_overlength_strings.
11689 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11691 * BASE-VER: Change to 4.7.0.
11693 2011-03-14 Richard Guenther <rguenther@suse.de>
11695 PR middle-end/48098
11696 * tree.c (build_vector_from_val): Adjust assert to requirements
11699 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11702 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11704 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11706 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11707 terms of target_flags_explicit. Adjust copyright year.
11709 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11710 * config/rs6000/t-freebsd: New file. Add override for
11713 2011-03-13 Chris Demetriou <cgd@google.com>
11715 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11716 (-fno-diagnostics-show-option): this, to reflect current default.
11717 (-Werror=): Update text about -fno-diagnostics-show-option.
11719 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11722 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11723 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11724 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11725 mode is not V2DImode or V2DFmode.
11726 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11727 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11728 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11730 (movdi_internal64): Likewise.
11732 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11734 PR tree-optimization/47127
11735 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11737 (set_cloog_options): Same.
11738 (scop_to_clast): Same.
11739 (print_clast_stmt): Do not call cloog_state_malloc and
11741 (print_generated_program): Same.
11743 * graphite-clast-to-gimple.h (cloog_state): Declared.
11744 (scop_to_clast): Adjust declaration.
11745 * graphite.c (cloog_state): Defined here.
11746 (graphite_initialize): Call cloog_state_malloc.
11747 (graphite_finalize): Call cloog_state_free.
11749 2011-03-11 Jason Merrill <jason@redhat.com>
11751 * attribs.c (lookup_attribute_spec): Take const_tree.
11754 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11756 * config/sparc/sparc.c (sparc_option_override): Use
11757 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11759 2011-03-11 Richard Guenther <rguenther@suse.de>
11761 PR tree-optimization/48067
11762 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11763 multiplication result will be only used once on the target
11766 2011-03-11 Richard Guenther <rguenther@suse.de>
11768 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11770 2011-03-11 Richard Guenther <rguenther@suse.de>
11773 * tree.c (find_decls_types_r): Do not walk types only reachable
11774 from IDENTIFIER_NODEs.
11776 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11778 PR middle-end/48044
11779 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11780 all vnode->force_output nodes as needed.
11782 2011-03-11 Jason Merrill <jason@redhat.com>
11785 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11786 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11788 2011-03-11 Martin Jambor <mjambor@suse.cz>
11790 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11793 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11795 PR tree-optimization/48063
11796 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11797 inline functions called once if !tree_can_inline_p (node->callers).
11799 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11801 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11803 * config/score/score3.c: Delete.
11804 * config/score/score3.h: Delete.
11805 * config/score/mul-div.S: Delete.
11806 * config/score/sfp-machine.h: Add new file.
11807 * config/score/constraints.md: Add new file.
11808 * config/score/t-score-softfp: Add new file.
11809 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11810 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11811 (score7_extra_constraint): Delete.
11812 (score7_option_override): Remove unused code.
11813 * config/score/score.c: Remove score3 and score5 define and code.
11814 * config/score/score.h: Remove score3 and score5 define and code.
11815 * config/score/score.md: Remove score3 template and unusual insn.
11816 * config/score/score.opt: Remove score3 and score5 options.
11818 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11820 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11821 when _HPUX_SOURCE is defined.
11822 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11824 2011-03-10 Jason Merrill <jason@redhat.com>
11827 * stor-layout.c (layout_type): Don't set structural equality
11828 on arrays of incomplete type.
11829 * tree.c (type_hash_eq): Handle comparing them properly.
11831 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11834 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11835 result mode matches original rtl mode.
11837 2011-03-10 Nick Clifton <nickc@redhat.com>
11839 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11840 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11842 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11844 PR rtl-optimization/47866
11845 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11846 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11847 if target wasn't scalar.
11848 * function.c (assign_stack_temp_for_type): Assert that neither
11849 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11850 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11852 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11854 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11856 * config/s390/s390-protos.h (s390_label_align): New prototype.
11857 * config/s390/s390.c (s390_label_align): New function.
11858 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11860 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11863 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11864 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11865 (output_vec_const_move): Ditto.
11867 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11869 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11870 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11871 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11872 Change 'rclass' argument and result type to reg_class_t.
11873 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11875 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11877 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11878 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11879 (TARGET_MEMORY_MOVE_COST): Define.
11880 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11882 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11885 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11888 PR tree-optimization/48022
11889 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11892 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11895 * var-tracking.c (find_use_val): Return NULL for
11896 cui->sets && cui->store_p BLKmode MEMs.
11898 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11900 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11902 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11903 xstormy16_print_operand_address): Remove.
11904 * config/stormy16/stormy16.c (xstormy16_print_operand,
11905 xstormy16_print_operand_address): Make static.
11906 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11908 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11911 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11912 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11915 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11918 * cfgloopmanip.c (fix_bb_placements): Return immediately
11919 if FROM is BASE_LOOP's header.
11921 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11923 * gimplify.c (gimplify_function_tree): Fix building calls
11924 to __builtin_return_address.
11926 2011-03-07 Alan Modra <amodra@gmail.com>
11928 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11929 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11930 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11931 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11933 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11934 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11935 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11936 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11937 * config/rs6000/rs6000.c
11938 (rs6000_elf_end_indicate_exec_stack): Rename to..
11939 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11940 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11941 (rs6000_file_start): ..here.
11942 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11943 file scope variables.
11944 (call_ABI_of_interest): New function.
11945 (init_cumulative_args): Set above vars when function return value
11946 is a float, vector, or small struct.
11947 (rs6000_function_arg_advance_1): Likewise for function args.
11948 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11949 references float args.
11951 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11953 * doc/cfg.texi: Remove "See" before @ref.
11954 * doc/invoke.texi: Likewise.
11956 2011-03-05 Jason Merrill <jason@redhat.com>
11958 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11960 2011-03-05 Anthony Green <green@moxielogic.com>
11962 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11964 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11966 PR rtl-optimization/47899
11967 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11968 to flow_loop_nested_p when moving the loop upward.
11970 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11973 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11975 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11977 PR tree-optimization/47967
11978 * ipa-cp.c (build_const_val): Return NULL instead of creating
11979 VIEW_CONVERT_EXPR for mismatching sizes.
11980 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11981 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11982 give up on versioning.
11984 2011-03-05 Alan Modra <amodra@gmail.com>
11987 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11988 full cmodel medium/large lo_sum + high addresses.
11990 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11992 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11993 pool references in UNSPEC_LTREL_OFFSET.
11995 2011-03-04 Jan Hubicka <jh@suse.cz>
11998 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11999 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12000 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12002 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12003 cgraph_add_thunk): Add node pointers.
12004 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12005 associated to right node.
12006 (input_node): Update use of cgraph_same_body_alias
12007 and cgraph_add_thunk.
12009 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12011 * config/i386/i386.opt (mprefer-avx128): New flag.
12012 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12013 modes when the flag -mprefer-avx128 is on.
12015 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12017 * dwarf2out.c (compare_loc_operands): Fix address handling.
12019 2011-03-04 Alan Modra <amodra@gmail.com>
12021 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12023 2011-03-04 Richard Guenther <rguenther@suse.de>
12025 PR middle-end/47968
12026 * expmed.c (extract_bit_field_1): Prefer vector modes that
12027 vec_extract patterns can handle.
12029 2011-03-04 Richard Guenther <rguenther@suse.de>
12031 PR middle-end/47975
12032 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12034 2011-03-04 Richard Henderson <rth@redhat.com>
12036 * explow.c (emit_stack_save): Remove 'after' parameter.
12037 (emit_stack_restore): Likewise.
12038 * expr.h: Update to match.
12039 * builtins.c, calls.c, stmt.c: Likewise.
12040 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12041 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12042 * function.c (expand_function_end): Insert the emit_stack_save
12043 sequence before parm_birth_insn instead of after.
12045 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12047 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12048 (ssse3_pmaddubsw128): Ditto.
12049 (ssse3_pmaddubsw): Ditto.
12051 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12053 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12055 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12058 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12059 on TYPE_SIZE_UNIT if it is a DECL.
12062 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12063 first operand is not is_gimple_mem_ref_addr, try to fold it.
12064 If the operand still isn't is_gimple_mem_ref_addr, clear
12067 2011-03-03 Richard Guenther <rguenther@suse.de>
12069 PR middle-end/47283
12070 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12072 (refs_may_alias_p_1): For release branches return true if
12073 we are confused by our input.
12075 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12077 * config/s390/s390.c (s390_function_value): Rename to ...
12078 (s390_function_and_libcall_value): ... this.
12079 (s390_function_value): New function.
12080 (s390_libcall_value): New function.
12081 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12082 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12083 target macro definitions.
12084 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12086 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12088 * config/i386/freebsd64.h (CC1_SPEC): Define.
12089 * config/i386/linux64.h (CC1_SPEC): Define.
12090 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12092 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12094 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12096 * config/stormy16/stormy16.c: Include reload.h.
12097 (xstormy16_memory_move_cost): New function.
12098 (TARGET_MEMORY_MOVE_COST): Define.
12100 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12102 PR rtl-optimization/47925
12103 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12104 with side effects. Remove the more-specific check for volatile asms.
12106 2011-03-02 Alan Modra <amodra@gmail.com>
12109 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12110 toc relative addresses for valid offsets.
12112 2011-03-01 Richard Guenther <rguenther@suse.de>
12114 PR tree-optimization/47890
12115 * tree-vect-loop.c (get_initial_def_for_induction): Set
12116 related stmt properly.
12118 2011-03-01 Richard Guenther <rguenther@suse.de>
12121 * lto-streamer.c (lto_record_common_node): Also register
12122 the canonical type.
12124 2011-03-01 Richard Guenther <rguenther@suse.de>
12127 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12128 Do not stream DECL_ABSTRACT_ORIGIN.
12129 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12130 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12131 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12132 Do not stream DECL_ABSTRACT_ORIGIN.
12133 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12134 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12136 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12138 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12139 FUNCTION_VALUE_REGNO_P): Remove.
12140 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12141 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12142 Add 'outgoing' argument.
12143 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12145 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12146 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12148 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12151 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12152 (lookup_filename): Likewise.
12153 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12155 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12156 Jakub Jelinek <jakub@redhat.com>
12158 PR middle-end/47893
12159 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12160 (assign_stack_local_1): Change last argument type to int.
12161 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12162 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12163 don't record padding space into frame_space_list nor use those areas.
12164 (assign_stack_local): Adjust caller.
12165 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12166 of assign_stack_local, pass 0 as last argument.
12167 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12170 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12173 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12174 Use target address_mode and pointer_mode hooks instead of hardcoded
12175 Pmode and ptr_mode. Handle some simple cases of extending if
12176 POINTERS_EXTEND_UNSIGNED < 0.
12177 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12178 Call convert_debug_memory_address.
12179 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12180 convert_debug_memory_address.
12182 PR middle-end/46790
12183 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12184 * configure: Regenerated.
12185 * config.in: Regenerated.
12186 * varasm.c (default_function_section): Return NULL
12187 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12189 2011-02-28 Martin Jambor <mjambor@suse.cz>
12191 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12192 the description to match the printed values.
12194 2011-02-28 Richard Guenther <rguenther@suse.de>
12196 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12197 of the copied scope tree.
12199 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12201 * doc/extend.texi (Function Attributes): Avoid deeply (and
12202 wrongly) nested tables.
12204 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12206 PR middle-end/47903
12207 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12208 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12209 r isn't op0 nor op1.
12211 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12213 * config/avr/avr.md: Remove magic comment for emacs.
12215 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12218 * config/avr/avr.c (avr_option_override): Use error on bad options.
12219 (avr_help): New function.
12220 (TARGET_HELP): Define.
12222 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12225 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12226 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12228 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12230 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12231 (ARM Options): Ditto.
12232 (i386 and x86-64 Options): Ditto.
12233 (RX Options): Ditto.
12234 (SPARC Options): Ditto.
12236 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12238 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12239 FreeBSD 6 and later. Generally use cpu generic.
12241 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12243 * doc/cpp.texi: Update copyright years.
12245 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12248 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12250 2011-02-25 Jon Beniston <jon@beniston.com>
12253 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12254 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12255 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12256 (lm32_block_move_inline): Add type cast to remove warning.
12257 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12258 (gen_int_relational): Move declarations to start of function.
12260 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12262 PR tree-optimization/45470
12263 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12264 can throw internally only.
12265 * tree-vect-stmts.c (vectorizable_call): Likewise.
12267 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12269 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12270 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12271 * config/stormy16/stormy16-protos.h
12272 (xstormy16_preferred_reload_class): Remove.
12273 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12274 static. Change 'rclass' argument and return type to reg_class_t.
12275 (TARGET_PREFERRED_RELOAD_CLASS,
12276 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12278 2011-02-24 Richard Guenther <rguenther@suse.de>
12280 * lto-streamer-in.c (input_bb): Do not find referenced vars
12281 in debug statements.
12283 2011-02-23 Jason Merrill <jason@redhat.com>
12285 * common.opt (fabi-version): Document v5 and v6.
12287 2011-02-23 Richard Guenther <rguenther@suse.de>
12289 PR tree-optimization/47849
12290 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12292 2011-02-23 Jie Zhang <jie@codesourcery.com>
12294 * opts-common.c (decode_cmdline_option): Print empty string
12295 argument as "" in decoded->orig_option_with_args_text.
12296 * gcc.c (execute): Print empty string argument as ""
12297 in the verbose output.
12298 (do_spec_1): Keep empty string argument.
12300 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12302 * config.gcc: Declare score-* and crx-* obsolete.
12304 2011-02-23 Jie Zhang <jie@codesourcery.com>
12306 PR rtl-optimization/47763
12307 * web.c (web_main): Ignore naked clobber when replacing register.
12309 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12311 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12314 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12317 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12319 2011-02-22 Mike Stump <mikestump@comcast.net>
12321 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12323 * configure: Regenerate.
12325 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12327 PR rtl-optimization/46002
12328 * ira-color.c (update_copy_costs): Change class intersection
12329 test to reg_class_contents[] test of 'hard_regno'.
12331 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12333 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12334 than Driver option.
12335 * config/hpux11.opt (mt): Likewise.
12336 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12337 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12338 * config/vax/elf.opt (mno-asm-pic): Likewise.
12339 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12341 2011-02-21 Mike Stump <mikestump@comcast.net>
12344 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12345 tree so we can get save the type.
12346 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12347 for CFString instead of trying to use past the end of the builtins.
12348 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12349 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12350 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12351 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12352 Rename to darwin_builtin_cfstring.
12353 (darwin_init_cfstring_builtins): Return the built type.
12355 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12358 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12359 (_mm256_insert_epi64): Use _mm_insert_epi64.
12361 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12363 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12364 * config/stormy16/stormy16-protos.h
12365 (xstormy16_mode_dependent_address_p): Remove.
12366 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12367 Make static. Change return type to bool. Change argument type to
12368 const_rtx. Remove dead code.
12369 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12371 2011-02-21 Richard Guenther <rguenther@suse.de>
12374 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12375 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12376 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12378 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12379 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12381 2011-02-20 Richard Guenther <rguenther@suse.de>
12384 * tree.c (free_lang_data_in_decl): Clean builtins from
12385 the TU decl BLOCK_VARS.
12387 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12391 * haifa-sched.c (fix_tick_ready): Skip tick computation
12394 2011-02-19 Richard Guenther <rguenther@suse.de>
12397 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12398 Remove lazy BLOCK_VARS streaming.
12399 (lto_input_ts_block_tree_pointers): Likewise.
12400 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12402 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12404 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12406 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12408 * config/i386/biarch32.h, config/i386/mach.h,
12409 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12411 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12414 * config/i386/i386.md (peephole2 for shift and plus): Use
12415 operands[1] original mode in the first insn.
12417 2011-02-18 Mike Stump <mikestump@comcast.net>
12419 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12421 2011-02-18 Jan Hubicka <jh@suse.cz>
12423 PR middle-end/47788
12424 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12425 to zero when the function is not inlinable at all.
12427 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12429 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12430 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12431 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12432 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12433 * config/pa/t-pa64: Likewise.
12434 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12436 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12439 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12441 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12444 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12446 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12448 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12449 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12450 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12451 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12452 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12453 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12454 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12455 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12456 m32r_legitimate_address_p): New functions.
12457 * config/m32r/constraints.md (constraint "S"): Don't use
12458 STORE_PREINC_PREDEC_P.
12459 (constraint "U"): Don't use LOAD_POSTINC_P.
12461 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12463 PR rtl-optimization/46178
12464 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12465 compute ira_hard_regno_cover_class[].
12467 2011-02-18 Richard Guenther <rguenther@suse.de>
12470 * lto-streamer.h (lto_global_var_decls): Declare.
12471 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12472 statics for global var processing.
12474 2011-02-18 Richard Guenther <rguenther@suse.de>
12476 PR tree-optimization/47737
12477 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12478 edge dominance check.
12480 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12483 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12484 avoid invalid rtx sharing.
12486 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12488 * doc/cpp.texi (Obsolete Features): Add background on the
12489 origin of assertions.
12491 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12493 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12495 * config/darwin.c (output_objc_section_asm_op): Added support for
12497 (is_objc_metadata): New.
12498 (darwin_objc2_section): New.
12499 (darwin_objc1_section): New.
12500 (machopic_select_section): Added support for ABI v1 and v2.
12501 (darwin_emit_objc_zeroed): New.
12502 (darwin_output_aligned_bss): Detect objc metadata and treat it
12504 (darwin_asm_output_aligned_decl_common): Same.
12505 (darwin_asm_output_aligned_decl_local): Same.
12506 * config/darwin-sections.def: Updated for ABI v1 and v2.
12507 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12508 compiling Objective-C code for the NeXT runtime, default to using
12509 ABI version 0 for 32-bit, and version 2 for 64-bit.
12511 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12513 * common.opt (optimize_fast): New Variable.
12514 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12515 instead of local variable ofast.
12517 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12519 * doc/invoke.texi (fobjc-abi-version): Documented.
12520 (fobjc-nilcheck): Documented.
12521 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12524 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12527 * common.opt (export-dynamic): New Driver option.
12528 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12530 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12532 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12534 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12535 Jan Hubicka <jh@suse.cz>
12539 * cfgexpand.c (account_used_vars_for_block): Remove.
12540 (estimated_stack_frame_size): Use referenced vars.
12541 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12542 that were referenced in the original function. Test src_fn
12543 rather than cfun. Drop redundant get_var_ann.
12544 (setup_one_parameter): Drop redundant get_var_ann.
12545 (declare_return_variable): Likewise.
12546 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12547 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12548 * ipa-inline.c (compute_inline_parameters): Do not compute
12549 disregard_inline_limits here.
12550 (compute_inlinable_for_current, pass_inlinable): New.
12551 (pass_inline_parameters): Require PROP_referenced_vars.
12552 * cgraphunit.c (cgraph_process_new_functions): Don't run
12553 compute_inline_parameters explicitly unless function is in SSA form.
12554 (cgraph_analyze_function): Set .disregard_inline_limits.
12555 * tree-sra.c (convert_callers): Compute inliner parameters
12556 only for functions already in SSA form.
12558 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12560 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12561 -mlittle-endian-data.
12563 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12565 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12566 -mno-fpu, not -fpu and -no-fpu.
12567 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12568 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12570 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12573 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12574 input reload with PLUS RTX.
12576 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12578 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12579 of InverseVar(MDMX).
12581 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12583 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12586 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12588 * config/mn10300/mn10300.opt (mno-crt0): New.
12590 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12592 * config/m68k/uclinux.opt (static-libc): New Driver option.
12594 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12596 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12598 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12600 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12601 %{muser-extend-enabled}.
12603 2011-02-16 Richard Guenther <rguenther@suse.de>
12605 PR tree-optimization/47738
12606 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12607 the TODO from tree_predictive_commoning.
12609 2011-02-15 Jeff Law <law@redhat.com>
12612 2011-01-25 Jeff Law <law@redhat.com>
12614 PR rtl-optimization/37273
12615 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12616 handle them like argument loads from stack slots. Do not double
12617 count memory for memory constants and argument loads from stack slots.
12619 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12621 PR middle-end/47725
12622 * combine.c (cant_combine_insn_p): Revert the last change.
12624 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12627 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12628 mode for vector constants. Remove code that checks for TImode.
12630 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12634 * cgraph.h (compute_inline_parameters): Return void.
12635 * ipa-inline.c (compute_inline_parameters): Adjust.
12637 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12641 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12643 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12644 * ipa-inline.c (compute_inline_parameters): Adjust.
12646 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12650 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12651 Adjust all users. Pass FN to...
12652 * tree-flow-inline.h (first_referenced_var): ... this. Add
12654 * ipa-struct-reorg.c: Adjust.
12655 * tree-dfa.c: Adjust.
12656 * tree-into-ssa.c: Adjust.
12657 * tree-sra.c: Adjust.
12658 * tree-ssa-alias.c: Adjust.
12659 * tree-ssa-live.c: Adjust.
12660 * tree-ssa.c: Adjust.
12661 * tree-ssanames.c: Adjust.
12662 * tree-tailcall.c: Adjust.
12664 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12668 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12669 Adjust all callers.
12670 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12671 * tree-flow-inline.h: Adjust.
12672 * gimple-pretty-print.c: Adjust.
12673 * tree-into-ssa.c: Adjust.
12674 * tree-ssa.c: Adjust.
12675 * cfgexpand.c: Adjust.
12677 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12679 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12680 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12681 (EXTRA_CONSTRAINT): Delete.
12682 * config/iq2000/constraints.md: New file.
12683 * config/iq2000/iq2000.md: Include it.
12684 (define_insn ""): Delete.
12685 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12686 unsupported constraint letters from patterns.
12687 (call_value, call_value_internal1): Likewise.
12688 (call_value_multiple_internal1): Likewise.
12690 2011-02-15 Nick Clifton <nickc@redhat.com>
12692 * config/mn10300/mn10300.c: Include tm-constrs.h.
12693 (struct liw_data): New data structure describing an LIW candidate
12695 (extract_bundle): Use struct liw_data. Allow small integer
12696 operands for some instructions.
12697 (check_liw_constraints): Use struct liw_data. Remove swapped
12698 parameter. Add comments describing the checks. Fix bug when
12699 assigning the source of liw1 to the source of liw2.
12700 (liw_candidate): Delete. Code moved into extract_bundle.
12701 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12703 * config/mn10300/predicates.md (liw_operand): New predicate.
12704 Allows registers and small integer constants.
12705 * config/mn10300/constraints.md (O): New constraint. Accetps
12706 integers in the range -8 to +7 inclusive.
12707 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12708 for moving a small integer into a register. Give this alternative
12710 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12711 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12712 using the J,K,L and M constraints,
12713 (liw): Remove SI mode on second operands to allow for HI and QI
12715 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12718 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12720 PR middle-end/47725
12721 * combine.c (cant_combine_insn_p): Check zero/sign extended
12724 2011-02-15 Richard Guenther <rguenther@suse.de>
12726 PR tree-optimization/47743
12727 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12728 for a non-type-compatible VN lookup bail out.
12730 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12732 * config/fr30/constraints.md: New file.
12733 * config/fr30/fr30.md: Include it.
12734 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12735 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12736 (EXTRA_CONSTRAINT): Delete.
12738 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12740 * config/frv/constraints.md: New file.
12741 * config/frv/predicates.md: Include it.
12742 * config/frv/frv.c (reg_class_from_letter): Delete.
12743 (frv_option_override): Don't initialize it.
12744 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12745 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12746 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12747 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12748 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12749 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12750 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12751 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12752 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12753 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12754 (REG_CLASS_FROM_CONSTRAINT): Delete.
12756 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12758 PR middle-end/47581
12759 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12760 if frame size is 0 in a leaf function.
12762 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12765 * config/alpha/host-osf.c: New file.
12766 * config/alpha/x-osf: New file.
12767 * config.host (alpha*-dec-osf*): Use it.
12769 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12771 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12772 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12773 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12774 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12776 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12778 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12780 * config/stormy16/constraints.md: New file.
12781 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12782 Use satisfies_constraint_Q and satisfies_constraint_R.
12783 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12785 (xstormy16_legitiamte_address_p): Declare.
12786 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12787 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12788 (EXTRA_CONSTRAINT): Delete.
12789 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12791 (xstormy16_extra_constraint_p): Delete.
12793 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12795 PR tree-optimization/46494
12796 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12797 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12798 (pass_rtl_loop_done): Add TODO_verify_flow.
12799 * fwprop.c (pass_rtl_fwprop): Likewise.
12800 * modulo-sched.c (pass_sms): Likewise.
12801 * tree-ssa-dom.c (pass_dominator): Likewise.
12802 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12803 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12804 (pass_tree_loop_done): Likewise.
12805 * tree-ssa-pre.c (execute_pre): Likewise.
12806 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12807 * tree-ssa-sink.c (pass_sink_code): Likewise.
12808 * tree-vrp.c (pass_vrp): Likewise.
12810 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12812 * config/v850/constraints.md: New file.
12813 * config/v850/v850.md: Include it.
12814 * config/v850/predicates.md (reg_or_0_operand): Use
12815 satisfies_constraint_G.
12816 (special_symbolref_operand): Use satisfies_constraint_K.
12817 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12818 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12819 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12820 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12821 (EXTRA_CONSTRAINT): Delete.
12822 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12823 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12824 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12826 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12829 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12832 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12834 * config/mcore/constraints.md: New file.
12835 * config/mcore/mcore.md: Include it.
12836 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12837 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12838 (REG_CLASS_FROM_LETTER): Delete.
12839 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12840 insn_const_int_ok_for_constraint.
12841 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12842 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12843 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12844 (EXTRA_CONSTRAINT): Delete.
12846 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12849 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12850 (IS_SIGHANDLER): Define.
12851 (sparc64_is_sighandler): New function, split off from
12852 sparc64_fallback_frame_state.
12853 (sparc_is_sighandler): New function, split off from
12854 sparc_fallback_frame_state.
12855 (sparc64_fallback_frame_state): Merge with ...
12856 (sparc_fallback_frame_state): ... this into ...
12857 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12858 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12859 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12860 stack instead of hardcoded offsets.
12862 2011-02-14 Andriy Gapon <avg@freebsd.org>
12865 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12867 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12869 * configure: Regenerate.
12871 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12874 * gcc.c (asm_options): Correct spec matching --target-help.
12876 2011-02-12 Martin Jambor <mjambor@suse.cz>
12878 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12879 to gimple call error.
12881 2011-02-12 Mike Stump <mikestump@comcast.net>
12883 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12884 comments in backslash regions.
12886 2011-02-12 Mike Stump <mikestump@comcast.net>
12887 Jakub Jelinek <jakub@redhat.com>
12888 Iain Sandoe <iains@gcc.gnu.org>
12891 * dwarf2out.c (output_cfa_loc): When required, apply the
12892 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12893 (output_loc_sequence): Likewise.
12894 (output_loc_operands_raw): Likewise.
12895 (output_loc_sequence_raw): Likewise.
12896 (output_cfa_loc): Likewise.
12897 (output_loc_list): Suppress register number adjustment when
12898 calling output_loc_sequence()
12899 (output_die): Likewise.
12901 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12903 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12905 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12906 xtensa_memory_move_cost): New functions.
12907 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12909 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12912 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12913 in the current directory.
12914 * configure: Rebuilt.
12916 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12918 * config/darwin.c (darwin_override_options): Add a hunk missed
12919 from the commit of r168571. Trim comment line lengths and
12920 correct indents of the preceding block.
12922 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12924 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12927 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12929 * common.opt (nostartfiles): New Driver option.
12931 2011-02-11 Xinliang David Li <davidxl@google.com>
12933 PR tree-optimization/47707
12934 * tree-chrec.c (convert_affine_scev): Keep type precision.
12936 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12938 PR tree-optimization/47420
12939 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12941 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12943 PR rtl-optimization/47614
12944 * rtl.h (check_for_inc_dec): Declare.
12945 * dse.c (check_for_inc_dec): Externalize...
12946 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12947 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12949 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12952 * gcc.c (main): Do not compile inputs if there were errors in
12954 * opts-common.c (read_cmdline_option): Check for wrong language
12955 after other error checks.
12957 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12959 * cgraph.c: Fix comment typos.
12960 * cgraph.h: Likewise.
12961 * cgraphunit.c: Likewise.
12962 * ipa-cp.c: Likewise.
12963 * ipa-inline.c: Likewise.
12964 * ipa-prop.c: Likewise.
12965 * ipa-pure-const.c: Likewise.
12966 * ipa-ref.c: Likewise.
12967 * ipa-reference.c: Likewise.
12969 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12972 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12974 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12977 * doc/sourcebuild.texi (Require Support): Document
12978 dg-require-ascii-locale.
12980 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12982 * doc/lto.texi (Write summary): Fix missing parentheses.
12984 2011-02-10 DJ Delorie <dj@redhat.com>
12986 * config/m32c/m32c.c (m32c_option_override): Disable
12987 -fcombine-stack-adjustments until flag value tracking and compare
12988 optimization can be rewritten.
12990 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12992 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12994 (PROCESSOR_DEFAULT64): Likewise.
12996 2011-02-10 Richard Henderson <rth@redhat.com>
12998 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12999 change from 2011-02-03.
13000 * config/rx/rx.c (flags_from_code): Likewise.
13001 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13002 is valid, n/pz otherwise.
13003 (rx_select_cc_mode): Return CCmode if Y is not zero.
13005 2011-02-10 Richard Guenther <rguenther@suse.de>
13007 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13009 2011-02-10 Richard Guenther <rguenther@suse.de>
13011 PR tree-optimization/47677
13012 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13014 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13017 * combine.c (make_compound_operation): Only change shifts into
13018 multiplication for SCALAR_INT_MODE_P.
13020 2011-02-10 Jie Zhang <jie@codesourcery.com>
13024 2011-02-05 Jie Zhang <jie@codesourcery.com>
13026 * web.c (entry_register): Don't clobber the number of the
13027 first uninitialized reference in used[].
13029 2011-02-09 Richard Guenther <rguenther@suse.de>
13031 PR tree-optimization/47664
13032 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13035 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13039 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13041 (PROCESSOR_DEFAULT64): Same.
13042 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13044 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13046 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13048 2011-02-09 Martin Jambor <mjambor@suse.cz>
13050 PR middle-end/45505
13051 * tree-sra.c (struct access): New flags grp_scalar_read and
13052 grp_scalar_write. Changed description of assignment read and write
13054 (dump_access): Dump new flags, reorder all of them.
13055 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13056 to detect multiple scalar reads.
13057 (analyze_access_subtree): Use the new scalar read write flags instead
13058 of the old flags. Adjusted comments.
13060 2011-02-08 DJ Delorie <dj@redhat.com>
13063 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13066 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13068 * config/m68k/uclinux.opt: New.
13069 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13071 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13073 * config/cris/elf.opt (sim): New Driver option.
13075 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13077 * config/xtensa/elf.opt: New.
13078 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13080 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13082 * config/vax/elf.opt: New.
13083 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13085 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13087 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13089 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13091 * config/gnu-user.opt: New.
13092 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13093 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13094 *-*-uclinux*): Use gnu-user.opt.
13096 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13098 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13099 * config/i386/gnu.h (CPP_SPEC): Likewise.
13101 2011-02-08 Ian Lance Taylor <iant@google.com>
13103 * common.opt (fcx-limited-range): Add SetByCombined flag.
13104 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13105 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13106 (fassociative-math, freciprocal-math): Likewise.
13107 (funsafe-math-optimizations): Likewise.
13108 * opth-gen.awk: Handle SetByCombined.
13109 * optc-gen.awk: Likewise.
13110 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13111 (set_unsafe_math_optimizations_flags): Likewise.
13112 * doc/options.texi (Option properties): Document SetByCombined.
13114 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13116 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13117 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13118 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13119 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13120 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13122 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13124 PR tree-optimization/46834
13125 PR tree-optimization/46994
13126 PR tree-optimization/46995
13127 * graphite-sese-to-poly.c (used_outside_reduction): New.
13128 (detect_commutative_reduction): Call used_outside_reduction.
13129 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13130 translate_scalar_reduction_to_array only when at least one
13131 loop-phi/close-phi tuple has been detected.
13133 2011-02-08 Richard Guenther <rguenther@suse.de>
13135 PR middle-end/47639
13136 * tree-vect-generic.c (expand_vector_operations_1): Update
13138 (expand_vector_operations): ... not here. Cleanup EH info
13139 and the CFG if required.
13141 2011-02-08 Richard Guenther <rguenther@suse.de>
13143 PR tree-optimization/47641
13144 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13145 require type compatibility.
13147 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13149 * gimple-low.c (lower_function_body): Don't remove the location of
13150 the return statement here.
13151 (lower_gimple_return): Do it here instead but only if the return
13152 statement is actually used twice.
13154 2011-02-08 Richard Guenther <rguenther@suse.de>
13156 PR tree-optimization/47632
13157 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13158 unused up_to_stmt parameter, return whether cfg-cleanup is
13159 necessary, remove EH info properly.
13160 (forward_propagate_into_gimple_cond): Adjust caller.
13161 (forward_propagate_into_cond): Likewise.
13162 (forward_propagate_comparison): Likewise.
13163 (tree_ssa_forward_propagate_single_use_vars): Make
13164 forward_propagate_comparison case similar to the two others.
13166 2011-02-08 Nick Clifton <nickc@redhat.com>
13168 * config/mn10300/mn10300.opt (mliw): New command line option.
13169 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13170 (liw_bundling): New automaton.
13171 (liw): New attribute.
13172 (liw_op): New attribute.
13173 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13174 (movsi_internal): Add LIW attributes.
13175 (andsi3): Likewise.
13176 (iorsi3): Likewise.
13177 (xorsi3): Likewise.
13178 (addsi3): Separate register and immediate alternatives.
13179 Add LIW attributes.
13180 (subsi3): Likewise.
13182 (aslsi3): Likewise.
13183 (lshrsi3): Likewise.
13184 (ashrsi3): Likewise.
13185 (liw): New pattern.
13186 * config/mn10300/mn10300.c (liw_op_names): New
13187 (mn10300_print_operand): Handle 'W' operand descriptor.
13188 (extract_bundle): New function.
13189 (check_liw_constraints): New function.
13190 (liw_candidate): New function.
13191 (mn10300_bundle_liw): New function.
13192 (mn10300_reorg): New function.
13193 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13194 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13195 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13196 __LIW__ or __NO_LIW__.
13197 * doc/invoke.texi: Describe the -mliw command line option.
13199 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13201 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13202 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13203 pthread_mutex_unlock): Remove.
13204 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13205 * config/pa/t-pa64: Likewise.
13206 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13207 shared libc if not linking against libpthread.
13208 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13210 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13213 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13214 on 10.6 and later to ensure that we always use the unwinder from
13215 the system. Only add -no_compact_unwind when tarteting darwin
13218 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13221 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13222 (vec_interleave_lowv2sf): Ditto.
13223 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13224 (vec_extract_oddv2sf): Ditto.
13226 2011-02-07 Mike Stump <mikestump@comcast.net>
13229 Add __ieee_divdc3 entry point.
13230 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13232 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13233 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13234 * config/darwin.c (darwin_rename_builtins): Add.
13235 * config/darwin-protos.h (darwin_rename_builtins): Add.
13237 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13240 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13243 2011-02-07 Mike Stump <mikestump@comcast.net>
13245 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13247 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13250 * config/avr/libgcc.S (exit): Move .endfunc
13252 2011-02-07 Richard Guenther <rguenther@suse.de>
13254 PR tree-optimization/47615
13255 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13256 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13257 (run_scc_vn): Initialize it.
13258 (visit_reference_op_load): Use it.
13259 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13261 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13263 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13264 DImode trapping arithmetic libfuncs.
13266 2011-02-07 Richard Guenther <rguenther@suse.de>
13268 PR tree-optimization/47621
13269 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13271 (execute_update_addresses_taken): ... here. Make it more
13272 conservative in what we accept.
13274 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13276 * config/sparc/freebsd.h (ASM_SPEC): Define.
13277 * config/sparc/vxworks.h (ASM_SPEC): Define.
13279 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13281 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13283 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13285 * doc/invoke.texi: Remove reference to compiler internals from
13286 user documentation.
13288 * reg-notes.def: Remove REG_VALUE_PROFILE.
13289 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13291 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13293 PR middle-end/47610
13294 * varasm.c (default_section_type_flags): If decl is NULL,
13295 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13297 2011-02-05 Jie Zhang <jie@codesourcery.com>
13300 * web.c (entry_register): Don't clobber the number of the
13301 first uninitialized reference in used[].
13303 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13305 PR tree-optimization/46194
13306 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13307 (build_classic_dist_vector_1): Do not represent classic distance
13308 vectors when the access functions are variating in different loops.
13310 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13312 * config/mips/iris6.opt: New.
13313 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13315 2011-02-04 Richard Henderson <rth@redhat.com>
13316 Steve Ellcey <sje@cup.hp.com>
13319 * config/ia64/predicates.md (mux1_brcst_element): New.
13320 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13321 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13322 (ia64_unpack_sign): New.
13323 (ia64_expand_unpack): Rewrite using new routines.
13324 (ia64_expand_widen_sum): Ditto.
13325 (ia64_expand_dot_prod_v8qi): Ditto.
13326 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13327 routines, add endian check.
13328 (pmpy2_even): Rename from pmpy2_r, add endian check.
13329 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13330 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13331 (vec_widen_smult_hi_v4hi): Ditto.
13332 (vec_widen_umult_lo_v4hi): Ditto.
13333 (vec_widen_umult_hi_v4hi): Ditto.
13334 (mulv2si3): Change endian checks.
13335 (sdot_prodv4hi): Rewrite with new calls.
13336 (udot_prodv4hi): New.
13337 (vec_pack_ssat_v4hi): Add endian check.
13338 (vec_pack_usat_v4hi): Ditto.
13339 (vec_pack_ssat_v2si): Ditto.
13340 (max1_even): Rename from max1_r, add endian check.
13341 (max1_odd): Rename from max1_l, add endian check.
13342 (*mux1_rev): Format change.
13343 (*mux1_mix): Ditto.
13344 (*mux1_shuf): Ditto.
13345 (*mux1_alt): Ditto.
13346 (*mux1_brcst_v8qi): Use new predicate.
13347 (vec_extract_evenv8qi): Remove endian check.
13348 (vec_extract_oddv8qi): Ditto.
13349 (vec_interleave_lowv4hi): Format change.
13350 (vec_interleave_highv4hi): Ditto.
13351 (mix2_even): Rename from mix2_r, add endian check.
13352 (mix2_odd): Rename from mux2_l, add endian check.
13353 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13354 (vec_extract_evenodd_helper): Format change.
13355 (vec_extract_evenv4hi): Remove endian check.
13356 (vec_extract_oddv4hi): Remove endian check.
13357 (vec_interleave_lowv2si): Format change.
13358 (vec_interleave_highv2si): Format change.
13359 (vec_initv2si): Remove endian check.
13360 (vecinit_v2si): Add endian check.
13361 (reduc_splus_v2sf): Add endian check.
13362 (reduc_smax_v2sf): Ditto.
13363 (reduc_smin_v2sf): Ditto.
13364 (vec_initv2sf): Remove endian check.
13365 (fpack): Add endian check.
13366 (fswap): Add endian check.
13367 (vec_interleave_highv2sf): Add endian check.
13368 (vec_interleave_lowv2sf): Add endian check.
13369 (fmix_lr): Add endian check.
13370 (vec_setv2sf): Format change.
13371 (*vec_extractv2sf_0_be): Use shift to extract operand.
13372 (*vec_extractv2sf_1_be): New.
13373 (vec_pack_trunc_v4hi): Add endian check.
13374 (vec_pack_trunc_v2si): Format change.
13376 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13378 PR inline-asm/23200
13379 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13380 do bb, locus and block comparison and disallow loads if it is not set.
13381 (stmt_is_replaceable_p): New function.
13382 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13384 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13385 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13387 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13389 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13391 * config/rs6000/xilinx.opt: New.
13392 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13394 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13396 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13398 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13400 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13401 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13402 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13403 secondary_reload_info, xtensa_secondary_reload): Remove.
13404 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13405 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13406 (xtensa_preferred_reload_class): Make static. Change return and
13407 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13408 Use CONST_DOUBLE_P predicate.
13409 (xtensa_preferred_output_reload_class): New function.
13410 (xtensa_secondary_reload): Make static.
13412 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13414 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13415 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13416 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13418 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13420 PR middle-end/31490
13421 * output.h (SECTION_RELRO): Define.
13422 (SECTION_MACH_DEP): Adjust.
13423 (get_variable_section): New prototype.
13424 * varpool.c (varpool_finalize_named_section_flags): New function.
13425 (varpool_assemble_pending_decls): Call it.
13426 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13427 * cgraphunit.c (cgraph_output_in_order): Call
13428 varpool_finalize_named_section_flags.
13429 * varasm.c (get_section): Allow section flags conflicts between
13430 relro and read-only sections if the section hasn't been declared yet.
13431 Set SECTION_OVERRIDE after diagnosing section type conflict.
13432 (get_variable_section): No longer static.
13433 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13434 readonly sections that need relocations.
13435 (decl_readonly_section_1): New function.
13436 (decl_readonly_section): Use it.
13439 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13440 Steve Ellcey <sje@cup.hp.com>
13442 PR middle-end/31490
13443 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13444 if section attribute used.
13446 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13448 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13449 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13450 (darwin_init_sections): Remove assertion.
13452 2011-02-03 Nick Clifton <nickc@redhat.com>
13454 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13456 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13457 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13458 instead of "n" and "pz".
13459 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13462 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13465 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13466 fma, expand FMA_EXPR as fma{,f,l} call.
13469 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13470 copy them into a unsigned char variable and pass address of it to
13471 lto_output_data_stream.
13474 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13475 around backend_init_target and lang_dependent_init_target calls.
13476 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13477 (verify_cgraph_node): Don't call set_cfun here. Use
13478 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13479 Set error_found for incorrectly represented calls to thunks.
13481 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13484 PR rtl-optimization/43494
13485 * rtl.h (for_each_inc_dec_fn): New type.
13486 (for_each_inc_dec): Declare.
13487 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13488 (for_each_inc_dec_find_inc_dec): New fn.
13489 (for_each_inc_dec_find_mem): New fn.
13490 (for_each_inc_dec): New fn.
13491 * dse.c (struct insn_size): Remove.
13492 (replace_inc_dec, replace_inc_dec_mem): Remove.
13493 (emit_inc_dec_insn_before): New fn.
13494 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13495 (canon_address): Pass mem modes to cselib_lookup.
13496 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13497 (cselib_lookup_from_insn): Likewise.
13498 (cselib_subst_to_values): Likewise.
13499 * cselib.c (find_slot_memmode): New var.
13500 (cselib_find_slot): New fn. Use it instead of
13501 htab_find_slot_with_hash everywhere.
13502 (entry_and_rtx_equal_p): Use find_slot_memmode.
13503 (autoinc_split): New fn.
13504 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13505 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13506 Deal with autoinc. Special-case recursion into MEMs.
13507 (cselib_hash_rtx): Likewise.
13508 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13509 address and MEM modes.
13510 (cselib_subst_to_values): Add memmode, pass it on.
13512 (cselib_lookup): Add memmode argument, pass it on.
13513 (cselib_lookup_from_insn): Add memmode.
13514 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13515 (struct cselib_record_autoinc_data): New.
13516 (cselib_record_autoinc_cb): New fn.
13517 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13518 mode to cselib_lookup. Reset autoinced REGs here instead of...
13519 (cselib_process_insn): ... here.
13520 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13522 (add_uses): Likewise, also to cselib_subst_to_values.
13523 (add_stores): Likewise.
13524 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13525 cselib_subst_to_values.
13526 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13527 * gcse.c (do_local_cprop): Adjusted.
13528 * postreload.c (reload_cse_simplify_set): Adjusted.
13529 (reload_cse_simplify_operands): Adjusted.
13530 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13532 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13534 PR tree-optimization/45122
13535 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13536 unsafe assumptions when there's more than one loop exit.
13538 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13541 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13542 Document using vector double with the load/store builtins, and
13543 that the load/store builtins always use Altivec instructions.
13545 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13546 to use altivec memory instructions, even on VSX.
13547 (vector_altivec_store_<mode>): Ditto.
13549 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13552 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13553 V2DF, V2DI support to load/store overloaded builtins.
13555 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13556 altivec load/store builtins for V2DF/V2DI types.
13558 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13559 set avoid indexed addresses on power6 if -maltivec.
13560 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13561 vector_altivec_load/vector_altivec_store builtins.
13562 (altivec_expand_st_builtin): Ditto.
13563 (altivec_expand_builtin): Add VSX memory builtins.
13564 (rs6000_init_builtins): Add V2DI types to internal types.
13565 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13566 load/store builtins.
13567 (rs6000_address_for_altivec): Insure memory address is appropriate
13570 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13571 vec_vsx_ld and vec_vsx_st.
13572 (vsx_store_<mode>): Ditto.
13574 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13575 variables to hold long long types for VSX vector memory builtins.
13576 (RS6000_BTI_unsigned_long_long): Ditto.
13577 (long_long_integer_type_internal_node): Ditti.
13578 (long_long_unsigned_type_internal_node): Ditti.
13580 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13581 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13582 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13584 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13586 (vec_vsx_st): Ditto.
13588 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13590 * config/pa/pa-hpux10.opt: New.
13591 * config/hpux11.opt (pthread): New Driver option.
13592 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13593 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13595 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13597 * config/ia64/vms.opt: New.
13598 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13600 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13603 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13604 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13605 generator functions.
13606 (vsx_floatuns<VSi><mode>2): Ditto.
13607 (vsx_fix_trunc<mode><VSi>2): Ditto.
13608 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13610 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13612 * config/i386/djgpp.opt (posix): New Driver option.
13614 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13616 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13617 Move to the unsupported targets list.
13619 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13621 PR rtl-optimization/47525
13622 * df-scan.c: Update copyright years.
13623 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13624 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13626 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13628 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13629 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13630 (ASM_OUTPUT_ASCII): Remove.
13631 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13633 2011-02-02 Jeff Law <law@redhat.com>
13635 PR middle-end/47543
13636 * reload.c (find_reloads_address): Handle reg+d address where both
13637 components are invalid by reloading the entire address.
13639 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13640 Richard Guenther <rguenther@suse.de>
13642 PR tree-optimization/40979
13644 * passes.c (init_optimization_passes): After LIM call copy_prop
13645 and DCE to clean up.
13646 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13648 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13650 PR tree-optimization/47576
13651 PR tree-optimization/47555
13652 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13653 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13654 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13655 * tree-scalar-evolution.c (follow_ssa_edge): Use
13656 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13658 2011-02-02 Richard Guenther <rguenther@suse.de>
13660 PR tree-optimization/47566
13661 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13663 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13667 * tree-inline.c (declare_return_variable): Remove unused caller
13672 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13673 * cfgexpand.c (account_used_vars_for_block): Use them.
13674 * tree-nrv.c (tree_nrv): Likewise.
13675 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13676 (dump_scope_block): Likewise.
13677 (remove_unused_locals): Likewise.
13681 * tree-inline.c (declare_return_variable): Add result decl to
13682 local decls only once.
13683 * gimple-low.c (record_vars_into): Mark newly-created variables
13686 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13692 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13694 (no_real_insns_p, schedule_block, set_priorities): Drop special
13695 treatment of boundary debug insns.
13696 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13697 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13698 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13699 (BOUNDARY_DEBUG_INSN_P): Likewise.
13700 (SCHEDULE_DEBUG_INSN_P): Likewise.
13701 * sched-rgn.c (init_ready_list): Drop special treatment of
13702 boundary debug insns.
13703 * final.c (rest_of_clean_state): Clear notes' BB.
13705 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13707 * config/openbsd.opt (assert=): New Driver option.
13709 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13711 * config/i386/nto.opt: New.
13712 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13714 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13716 * config/i386/netware.opt: New.
13717 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13719 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13721 * config/interix.opt (posix): New Driver option.
13723 2011-02-01 DJ Delorie <dj@redhat.com>
13725 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13727 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13730 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13732 PR tree-optimization/47561
13733 * toplev.c (process_options): Print the Graphite flags. Add
13734 flag_loop_flatten to the list of options requiring Graphite.
13736 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13738 * config/i386/cygming.opt (posix): New Driver option.
13740 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13742 * config/arm/vxworks.opt: New.
13743 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13745 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13747 * config/alpha/elf.opt: New.
13748 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13749 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13751 2011-02-01 Richard Guenther <rguenther@suse.de>
13753 PR tree-optimization/47559
13754 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13755 store-motion on references that can throw.
13757 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13759 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13760 * tree-pass.h (TDF_CSELIB): New macro.
13761 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13762 cselib_lookup): Check for it rather than for TDF_DETAILS.
13764 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13767 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13768 is HOST_BIT_BUCKET.
13770 * opts.c (finish_options): Don't add x_aux_base_name if it is
13773 2011-02-01 Richard Guenther <rguenther@suse.de>
13775 PR tree-optimization/47555
13777 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13779 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13781 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13784 * config/lm32/t-lm32: Add multilib for all CPU options.
13786 2011-02-01 Richard Guenther <rguenther@suse.de>
13788 PR tree-optimization/47541
13789 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13790 sure to have a field at offset zero.
13792 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13794 * config/arc/arc.opt (EB, EL): New Driver options.
13796 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13798 * config/alpha/osf5.opt: New.
13799 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13801 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13803 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13805 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13807 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13808 -floop-interchange.
13809 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13810 is an alias of -floop-interchange and that it requires the
13811 Graphite infrastructure.
13812 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13813 flag_loop_interchange based on the value of flag_tree_loop_linear.
13815 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13816 Richard Guenther <rguenther@suse.de>
13818 PR tree-optimization/47538
13819 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13820 type instead of r1type, except for comparisons. For right
13821 shifts and comparisons punt if there are mismatches in
13822 sizetype vs. non-sizetype types.
13824 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13826 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13829 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13831 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13833 * configure: Regenerate.
13835 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13837 * configure.ac (gcc_cv_ld_static_option): Define.
13838 (gcc_cv_ld_dynamic_option): Define.
13839 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13841 (HAVE_LD_STATIC_DYNAMIC): Update message.
13842 (LD_STATIC_OPTION): Define.
13843 (LD_DYNAMIC_OPTION): Define.
13844 * configure: Regenerate.
13845 * config.in: Regenerate.
13846 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13847 HAVE_LD_STATIC_DYNAMIC]: Use them.
13849 2011-01-31 Nick Clifton <nickc@redhat.com>
13851 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13852 registers inside interrupt handlers if the handler is not a leaf
13855 2011-01-31 Nick Clifton <nickc@redhat.com>
13857 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13858 reg_renumber returning an INVALID_REGNUM.
13860 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13863 * doc/install.texi: Document host options discarded when cross
13864 configuring target libraries.
13866 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13869 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13872 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13874 (no_real_insns_p, schedule_block, set_priorities): Drop special
13875 treatment of boundary debug insns.
13876 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13877 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13878 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13879 (BOUNDARY_DEBUG_INSN_P): Likewise.
13880 (SCHEDULE_DEBUG_INSN_P): Likewise.
13881 * sched-rgn.c (init_ready_list): Drop special treatment of
13882 boundary debug insns.
13883 * final.c (rest_of_clean-state): Clear notes' BB.
13885 2011-01-31 Alan Modra <amodra@gmail.com>
13887 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13888 toc relative expressions as we do in print_operand_address.
13890 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13892 * doc/extend.texi: Follow spelling conventions.
13893 * doc/invoke.texi: Fix a typo.
13895 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13897 * config/hpux11.opt: New.
13898 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13899 ia64*-*-hpux*): Use hpux11.opt.
13901 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13903 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13906 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13908 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13911 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13913 * doc/install.texi (Binaries): Remove outdated reference for
13914 Motorola 68HC11/68HC12 downloads.
13916 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13918 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13921 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13924 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13927 2011-01-28 Ahmad Sharif <asharif@google.com>
13929 * value-prof.c (check_counter): Corrected error message.
13931 2011-01-29 Jie Zhang <jie@codesourcery.com>
13933 * config/arm/arm.c (arm_legitimize_reload_address): New.
13934 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13935 arm_legitimize_reload_address.
13936 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13938 2011-01-28 Ian Lance Taylor <iant@google.com>
13940 * godump.c (go_define): Ignore macros whose definitions include
13941 two adjacent operands.
13943 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13946 * varasm.c (force_const_mem): Store copy of x in desc->constant
13947 instead of x itself.
13948 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13949 itself into REG_EQUAL note.
13951 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13953 * config/freebsd.opt (posix, rdynamic): New Driver options.
13955 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13957 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13958 -Bstatic/-Bdynamic.
13959 * configure: Regenerate.
13961 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13963 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13964 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13966 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13968 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13969 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13970 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13971 (s390_preferred_reload_class): Make static. Change return and
13972 'rclass' argument type to reg_class_t.
13974 2011-01-27 Jan Hubicka <jh@suse.cz>
13976 PR middle-end/46949
13977 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13978 (process_function_and_variable_attributes): Check defined weakrefs.
13980 2011-01-27 Martin Jambor <mjambor@suse.cz>
13982 PR tree-optimization/47228
13983 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13984 build_ref_for_offset.
13986 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13988 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13990 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13992 PR rtl-optimization/46856
13993 * postreload.c (reload_combine_recognize_const_pattern): Do not
13994 separate cc0 setter and user on cc0 targets.
13996 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13999 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14000 passed a VOID_TYPE expression, immediately emit an error and
14001 return error_mark_node.
14003 2011-01-26 Jeff Law <law@redhat.com>
14005 PR rtl-optimization/47464
14006 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14007 rather than may_trap_p as needed.
14009 2011-01-26 DJ Delorie <dj@redhat.com>
14011 PR rtl-optimization/46878
14012 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14013 setter/user dependency as well.
14015 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14017 PR rtl-optimization/44469
14018 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14019 after removing trivially dead basic blocks.
14021 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14023 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14024 * config/frv/frv.h (LINK_SPEC): Likewise.
14025 * config/i386/netware.h (LINK_SPEC): Likewise.
14026 * config/m68k/linux.h (ASM_SPEC): Likewise.
14027 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14028 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14029 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14030 * config/sparc/linux.h (ASM_SPEC): Likewise.
14031 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14032 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14034 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14036 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14037 * config/frv/frv.h (ASM_SPEC): Likewise.
14038 * config/m68k/linux.h (ASM_SPEC): Likewise.
14039 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14040 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14041 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14042 * config/sparc/linux.h (ASM_SPEC): Likewise.
14043 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14044 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14046 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14048 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14049 * config/frv/frv.h (LINK_SPEC): Likewise.
14050 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14052 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14054 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14055 * config/frv/frv.h (ASM_SPEC): Likewise.
14056 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14057 * config/m68k/linux.h (ASM_SPEC): Likewise.
14058 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14059 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14060 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14061 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14062 * config/sparc/linux.h (ASM_SPEC): Likewise.
14063 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14064 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14065 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14067 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14070 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14072 (vec_extract_evenodd_help): Ditto.
14073 (vec_extract_evenv4hi): Ditto.
14074 (vec_extract_oddv4hi): Ditto.
14075 (vec_interleave_lowv2si): Ditto.
14076 (vec_interleave_highv2si): Ditto.
14077 (vec_extract_evenv2si): Ditto.
14078 (vec_extract_oddv2si: Ditto.
14079 (vec_pack_trunc_v2si): Ditto.
14081 2011-01-22 Jan Hubicka <jh@suse.cz>
14084 * cgraph.h (cgraph_local_info): New field can_change_signature.
14085 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14086 signature can change.
14087 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14089 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14090 (cgraph_function_versioning): We can not change signature of functions
14091 that don't allow that.
14092 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14093 (lto_input_node): Likewise.
14094 * ipa-inline.c (compute_inline_parameters): Compute
14095 local.can_change_signature.
14096 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14097 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14098 functions that can not change signature.
14099 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14100 init_cumulative_args): Do not use local calling conventions
14101 for functions that can not change signature.
14103 2011-01-22 Jan Hubicka <jh@suse.cz>
14105 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14107 2011-01-26 Richard Guenther <rguenther@suse.de>
14109 PR tree-optimization/47190
14110 * cgraphunit.c (process_common_attributes): New function.
14111 (process_function_and_variable_attributes): Use it.
14113 2011-01-26 Richard Guenther <rguenther@suse.de>
14116 * cgraphbuild.c (record_eh_tables): Record reference to personality
14119 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14122 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14123 non-debug insns from moving up.
14125 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14128 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14129 t-dlldir{,-x} fragment for build and add it to tmake_file.
14130 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14131 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14132 * config/i386/t-dlldir: New file.
14133 (SHLIB_DLLDIR): Define.
14134 * config/i386/t-dlldir-x: New file.
14135 (SHLIB_DLLDIR): Define.
14136 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14137 (SHLIB_INSTALL): Use it.
14139 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14142 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14143 lower bound of the allowed Thumb-2 coprocessor load/store
14144 index range to -256. Add explaining comment.
14146 2011-01-25 Ian Lance Taylor <iant@google.com>
14148 * godump.c (go_define): Improve lexing of macro expansion to only
14149 accept expressions which match Go spec.
14151 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14154 * tree.c (handle_dll_attribute): Handle it.
14155 * doc/extend.texi (@item dllexport): Mention it.
14156 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14158 2011-01-25 Ian Lance Taylor <iant@google.com>
14160 PR tree-optimization/26854
14161 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14162 (decl_jump_unsafe): Move higher in file, with no other change.
14163 (bind): Set has_jump_unsafe_decl if appropriate.
14164 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14165 (check_earlier_gotos): Likewise.
14166 (c_check_switch_jump_warnings): Likewise.
14168 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14170 * doc/invoke.texi (Warning Options): Add missing hyphen.
14171 (-fprofile-dir): Minor grammatical fixes.
14172 (-fbranch-probabilities): Likewise.
14174 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14178 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14180 (no_real_insns_p, schedule_block, set_priorities): Drop special
14181 treatment of boundary debug insns.
14182 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14183 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14184 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14185 (BOUNDARY_DEBUG_INSN_P): Likewise.
14186 (SCHEDULE_DEBUG_INSN_P): Likewise.
14187 * sched-rgn.c (init_ready_list): Drop special treatment of
14188 boundary debug insns.
14189 * final.c (rest_of_clean-state): Clear notes' BB.
14191 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14193 * Makefile.in (LAMBDA_H): Removed.
14194 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14195 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14196 lambda-trans.o, and tree-loop-linear.o.
14197 (lto-symtab.o): Remove dependence on LAMBDA_H.
14198 (tree-loop-linear.o): Remove rule.
14199 (lambda-mat.o): Same.
14200 (lambda-trans.o): Same.
14201 (lambda-code.o): Same.
14202 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14203 (tree-vect-slp.o): Same.
14204 * hwint.h (gcd): Moved here.
14205 (least_common_multiple): Same.
14206 * lambda-code.c: Removed.
14207 * lambda-mat.c: Removed.
14208 * lambda-trans.c: Removed.
14209 * lambda.h: Removed.
14210 * tree-loop-linear.c: Removed.
14211 * lto-symtab.c: Do not include lambda.h.
14212 * omega.c (gcd): Removed.
14213 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14214 * tree-data-ref.c (print_lambda_vector): Moved here.
14215 (lambda_vector_copy): Same.
14216 (lambda_matrix_copy): Same.
14217 (lambda_matrix_id): Same.
14218 (lambda_vector_first_nz): Same.
14219 (lambda_matrix_row_add): Same.
14220 (lambda_matrix_row_exchange): Same.
14221 (lambda_vector_mult_const): Same.
14222 (lambda_vector_negate): Same.
14223 (lambda_matrix_row_negate): Same.
14224 (lambda_vector_equal): Same.
14225 (lambda_matrix_right_hermite): Same.
14226 * tree-data-ref.h: Do not include lambda.h.
14227 (lambda_vector): Moved here.
14228 (lambda_matrix): Same.
14229 (dependence_level): Same.
14230 (lambda_transform_legal_p): Removed declaration.
14231 (lambda_collect_parameters): Same.
14232 (lambda_compute_access_matrices): Same.
14233 (lambda_vector_gcd): Same.
14234 (lambda_vector_new): Same.
14235 (lambda_vector_clear): Same.
14236 (lambda_vector_lexico_pos): Same.
14237 (lambda_vector_zerop): Same.
14238 (lambda_matrix_new): Same.
14239 * tree-flow.h (least_common_multiple): Removed declaration.
14240 * tree-parloops.c (lambda_trans_matrix): Moved here.
14241 (LTM_MATRIX): Same.
14242 (LTM_ROWSIZE): Same.
14243 (LTM_COLSIZE): Same.
14244 (LTM_DENOMINATOR): Same.
14245 (lambda_trans_matrix_new): Same.
14246 (lambda_matrix_vector_mult): Same.
14247 (lambda_transform_legal_p): Same.
14248 * tree-pass.h (pass_linear_transform): Removed declaration.
14249 * tree-ssa-loop.c (tree_linear_transform): Removed.
14250 (gate_tree_linear_transform): Removed.
14251 (pass_linear_transform): Removed.
14252 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14253 flag_loop_interchange.
14255 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14257 PR tree-optimization/47265
14258 PR tree-optimization/47443
14259 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14260 if name still has some uses.
14262 2011-01-25 Martin Jambor <mjambor@suse.cz>
14264 PR tree-optimization/47382
14265 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14266 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14268 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14270 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14271 sjlj_except_unwind_info.
14273 2011-01-25 Richard Guenther <rguenther@suse.de>
14275 PR tree-optimization/47426
14276 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14277 visible functions results escape.
14279 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14282 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14283 (arm_get_frame_offsets): Use it.
14285 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14286 Jakub Jelinek <jakub@redhat.com>
14288 PR tree-optimization/47271
14289 * tree-if-conv.c (bb_postdominates_preds): New.
14290 (if_convertible_bb_p): Call bb_postdominates_preds.
14291 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14292 (predicate_scalar_phi): Call bb_postdominates_preds.
14294 2011-01-25 Nick Clifton <nickc@redhat.com>
14296 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14297 * config/rx/rx.c (rx_function_value): Likewise.
14298 (rx_promote_function_mode): Likewise.
14299 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14300 in order to make it legitimate.
14301 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14302 make sure that the first operand is the same as the result register.
14303 (addsi3_unspec): Delete.
14304 (subdi3): Do not accept immediate operands.
14305 (subdi3_internal): Likewise.
14307 2011-01-25 Jeff Law <law@redhat.com>
14309 PR rtl-optimization/37273
14310 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14311 handle them like argument loads from stack slots. Do not double
14312 count memory for memory constants and argument loads from stack slots.
14314 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14316 PR tree-optimization/47427
14317 PR tree-optimization/47428
14318 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14319 coalesce if the new root var would be TREE_READONLY.
14321 2011-01-25 Richard Guenther <rguenther@suse.de>
14323 PR middle-end/47414
14324 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14325 correct type for TBAA.
14327 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14329 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14330 (close_phi_written_to_memory): Call for_each_index with
14331 dr_indices_valid_in_loop.
14333 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14335 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14336 when it is initialized.
14338 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14340 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14341 call to graphite_find_data_references_in_stmt.
14342 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14343 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14344 call to graphite_find_data_references_in_stmt.
14345 (analyze_drs_in_stmts): Same.
14346 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14347 in which the scalar analysis of indices is performed.
14348 (create_data_ref): Same. Update call to dr_analyze_indices.
14349 (find_data_references_in_stmt): Update call to create_data_ref.
14350 (graphite_find_data_references_in_stmt): Same.
14351 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14353 (create_data_ref): Same.
14354 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14355 call to create_data_ref.
14357 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14359 * graphite-sese-to-poly.c (build_poly_scop): Move
14360 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14362 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14364 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14365 VAR_DECL, PARM_DECL, and RESULT_DECL.
14367 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14369 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14370 in a reduction PBB.
14371 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14372 that have already been marked as PBB_IS_REDUCTION.
14374 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14376 * graphite-scop-detection.c (same_close_phi_node): New.
14377 (remove_duplicate_close_phi): New.
14378 (make_close_phi_nodes_unique): New.
14379 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14381 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14383 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14384 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14385 of both data references to be the same.
14387 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14389 * graphite-dependences.c (build_lexicographical_constraint): Remove
14390 the gdim parameter.
14391 (build_lexicographical_constraint): Adjust call to
14392 ppl_powerset_is_empty.
14393 (dependence_polyhedron): Same.
14394 (graphite_legal_transform_dr): Same.
14395 (graphite_carried_dependence_level_k): Same.
14396 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14398 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14400 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14402 * graphite-sese-to-poly.c
14403 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14404 (close_phi_written_to_memory): New.
14405 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14408 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14410 * doc/install.texi: Update the expected version number of PPL to 0.11.
14411 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14412 #if PPL_VERSION_MINOR < 11.
14414 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14416 * graphite-dependences.c: Include graphite-cloog-util.h.
14417 (new_poly_ddr): Inlined into dependence_polyhedron.
14418 (free_poly_ddr): Moved close by new_poly_ddr.
14419 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14420 Early return NULL when ppl_powerset_is_empty returns true.
14421 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14422 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14423 (graphite_legal_transform_dr): Call new_poly_ddr.
14424 (graphite_carried_dependence_level_k): Same.
14425 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14426 (dot_transformed_deps_stmt_1): Removed.
14427 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14428 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14429 (dot_deps_1): Call dot_deps_2.
14430 * Makefile.in (graphite-dependences.o): Add missing dependence on
14431 graphite-cloog-util.h.
14433 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14435 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14436 (build_lexicographical_constraint): Same.
14437 (dependence_polyhedron_1): Same.
14438 (graphite_legal_transform_dr): Same.
14439 (graphite_carried_dependence_level_k): Same.
14440 * graphite-ppl.c (ppl_powerset_is_empty): New.
14441 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14442 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14444 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14446 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14447 the "a followed by b" relation and document it.
14449 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14451 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14452 iteration when the bag of constraints is empty.
14454 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14456 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14458 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14460 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14461 nest and two loop depths as parameters.
14462 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14463 lst_perfect_nestify.
14465 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14467 * graphite-dependences.c (print_pddr): Call
14468 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14470 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14472 * graphite-ppl.c (debug_gmp_value): New.
14473 * graphite-ppl.h (debug_gmp_value): Declared.
14475 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14477 * doc/install.texi: Document availability of cloog-0.16.
14479 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14481 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14482 invalid postdominance info.
14484 2011-01-24 Jan Hubicka <jh@suse.cz>
14487 * doc/extend.texi (weak pragma): Drop claim that it must
14488 appear before definition.
14489 * varasm.c (merge_weak, declare_weak): Only sanity check
14490 that DECL is not output at a time it is declared weak.
14492 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14494 * machmode.def: Fixed comments.
14496 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14498 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14500 2011-01-24 Paul Koning <ni1d@arrl.net>
14502 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14505 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14508 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14509 (block_info): Add scanned and prev.
14510 (move_or_delete_vzeroupper_2): Return if the basic block
14511 has been scanned and the upper 128bit state is unchanged
14512 from the last scan.
14513 (move_or_delete_vzeroupper_1): Return true if the exit
14515 (move_or_delete_vzeroupper): Visit basic blocks using the
14516 work-list based algorithm based on vt_find_locations in
14519 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14521 2011-01-24 Nick Clifton <nickc@redhat.com>
14523 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14524 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14525 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14526 then define __v850e1__.
14527 * doc/invoke.texi: Document -mv850es.
14529 2011-01-24 Richard Henderson <rth@redhat.com>
14531 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14532 compound unordered comparisons.
14533 * config/rx/rx.c (rx_split_fp_compare): Remove.
14534 * config/rx/rx-protos.h: Update.
14535 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14536 (cbranchsf4): Don't call rx_split_fp_compare.
14537 (*cbranchsf4): Use rx_split_cbranch.
14538 (*cmpsf): Don't accept "i" constraint.
14539 (*conditional_branch): Only valid after reload.
14540 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14542 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14545 * config/rs6000/altivec.md (vector constant splitters): Add
14546 support for creating vector single precision constants if -mvsx is
14547 used and we would create the constant using Altivec primitives.
14549 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14550 Richard Sandiford <rdsandiford@googlemail.com>
14552 PR rtl-optimization/47166
14553 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14554 mechanism for PRE_MODIFY and POST_MODIFY.
14555 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14558 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14560 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14562 2011-01-22 Jan Hubicka <jh@suse.cz>
14565 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14567 2011-01-22 Jan Hubicka <jh@suse.cz>
14569 PR tree-optimization/43884
14571 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14572 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14574 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14576 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14577 * config/s390/s390.c (s390_register_move_cost,
14578 s390_memory_move_cost): New.
14579 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14581 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14583 PR middle-end/47401
14584 * except.c (sjlj_assign_call_site_values): Move setting the
14585 crtl->uses_eh_lsda flag to ...
14586 (sjlj_mark_call_sites): ... here.
14587 (sjlj_emit_function_enter): Support NULL dispatch label.
14588 (sjlj_build_landing_pads): In a function with no landing pads
14589 that still has must-not-throw regions, generate code to register
14590 a personality function with empty LSDA.
14592 2011-01-21 Richard Henderson <rth@redhat.com>
14594 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14596 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14598 * compare-elim.c: New file.
14599 * Makefile.in (OBJS-common): Add it.
14600 (compare-elim.o): New.
14601 * common.opt (fcompare-elim): New.
14602 * opts.c (default_options_table): Add OPT_fcompare_elim.
14603 * tree-pass.h (pass_compare_elim_after_reload): New.
14604 * passes.c (init_optimization_passes): Add it.
14605 * recog.h: Protect against re-inclusion.
14606 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14607 * doc/invoke.texi (-fcompare-elim): Document it.
14608 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14609 * doc/tm.texi: Rebuild.
14611 2011-01-22 Nick Clifton <nickc@redhat.com>
14613 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14614 rx_split_fp_compare.
14616 2011-01-22 Nick Clifton <nickc@redhat.com>
14618 * config/rx/rx.md (UNSPEC_CONST): New.
14619 (deallocate_and_return): Wrap the amount popped off the stack in
14620 an UNSPEC_CONST in order to stop it being rejected by
14621 -mmax-constant-size.
14622 (pop_and_return): Add a "(return)" rtx.
14623 (call): Drop the immediate operand.
14624 (call_internal): Likewise.
14625 (call_value): Likewise.
14626 (call_value_internal): Likewise.
14627 (sibcall_internal): Likewise.
14628 (sibcall_value_internal): Likewise.
14629 (sibcall): Likewise. Generate an explicit call using
14631 (sibcall_value): Likewise.
14632 (mov<>): FAIL if a constant operand is not legitimate.
14633 (addsi3_unpsec): New pattern.
14635 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14636 (ok_for_max_constant): New function.
14637 (gen_safe_add): New function.
14638 (rx_expand_prologue): Use gen_safe_add.
14639 (rx_expand_epilogue): Likewise.
14640 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14643 2011-01-21 Jeff Law <law@redhat.com>
14645 PR tree-optimization/47053
14646 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14647 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14648 statements are deleted.
14649 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14650 is nonempty, then purge dead edges and cleanup the CFG.
14652 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14655 Temporarily revert:
14656 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14658 * tree-dfa.c (create_var_ann): Mark variable as used.
14660 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14662 PR middle-end/45566
14663 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14664 notes from other section in hot/cold partitioning even if
14665 last_action is -3. Increment call_site_base.
14667 PR rtl-optimization/47366
14668 * fwprop.c (forward_propagate_into): Return bool. If
14669 any changes are made, -fnon-call-exceptions is used and
14670 REG_EH_REGION note is present, call purge_dead_edges
14671 and return true if it purged anything.
14672 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14673 any EH edges were purged.
14675 2011-01-21 Jeff Law <law@redhat.com>
14677 PR rtl-optimization/41619
14678 * caller-save.c (setup_save_areas): Break out code to determine
14679 which hard regs are live across calls by examining the reload chains
14680 so that it is always used.
14681 Eliminate code which checked REG_N_CALLS_CROSSED.
14683 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14685 PR tree-optimization/47355
14686 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14687 NOP has non-debug uses beyond PHIs in new_bb.
14689 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14692 * cfgexpand.c (account_used_vars_for_block): Only account vars
14693 that are annotated as used.
14694 (estimated_stack_frame_size): Don't set TREE_USED.
14695 * tree-dfa.c (create_var_ann): Mark variable as used.
14697 2011-01-21 Richard Guenther <rguenther@suse.de>
14699 PR middle-end/47395
14700 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14702 2011-01-21 Richard Guenther <rguenther@suse.de>
14704 PR tree-optimization/47365
14705 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14706 (vn_reference_lookup_pieces): Adjust.
14707 (vn_reference_lookup): Likewise.
14708 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14709 (vn_reference_lookup_3): Only look through kills if in
14710 VN_WALKREWRITE mode.
14711 (vn_reference_lookup_pieces): Adjust.
14712 (vn_reference_lookup): Likewise.
14713 (visit_reference_op_load): Likewise.
14714 (visit_reference_op_store): Likewise.
14715 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14716 (compute_avail): Likewise.
14717 (eliminate): Likewise.
14719 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14721 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14722 DECL_IGNORED_P non-reg vars if they are used.
14724 PR tree-optimization/47391
14725 * varpool.c (const_value_known_p): Return false if
14728 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14731 * config/i386/i386.c (ix86_local_alignment): Handle
14732 case for va_list_type_node is nil.
14733 (ix86_canonical_va_list_type): Likewise.
14735 2011-01-21 Alan Modra <amodra@gmail.com>
14737 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14738 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14740 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14742 * config/arm/arm.md (define_attr type): Rename f_load
14743 and f_store to f_fpa_load and f_fpa_store. Update.
14744 (write_conflict): Deal with rename fallout.
14745 (*push_fp_multi): Likewise.
14746 * config/arm/fpa.md (f_load): Use f_fpa_load.
14747 (f_store): Use f_fpa_store.
14748 (*movsf_fpa): Likewise.
14749 (*movdf_fpa): Likewise.
14750 (*movxf_fpa): Likewise.
14751 (*thumb2_movsf_fpa): Likewise.
14752 (*thumb2_movdf_fpa): Likewise.
14753 (*thumb2_movxf_fpa): Likewise.
14754 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14755 f_loadd and f_stored.
14756 (*thumb2_movdi_vfp): Likewise.
14757 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14758 (*thumb2_movsi_vfp): Likewise.
14759 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14760 Use f_loads instead of f_load.
14761 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14763 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14765 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14766 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14767 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14768 (xtensa_mode_dependent_address_p): New function.
14769 (constantpool_address_p): Make static. Change return type to bool.
14770 Change argument type to const_rtx. Use CONST_INT_P predicate.
14772 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14775 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14777 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14780 * cfgexpand.c (expand_debug_expr): Instead of generating
14781 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14784 2011-01-20 Richard Guenther <rguenther@suse.de>
14786 PR middle-end/47370
14787 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14788 the pointer operand of MEM_REFs.
14790 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14792 PR tree-optimization/46130
14793 * ipa-split.c (consider_split): If return_bb contains non-virtual
14794 PHIs other than for retval or if split_function would not adjust it,
14797 2011-01-20 Richard Guenther <rguenther@suse.de>
14799 PR tree-optimization/47167
14800 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14801 Revert previous change, only avoid enumeral type changes.
14803 2011-01-19 Mike Stump <mikestump@comcast.net>
14805 * doc/tm.texi.in (BRANCH_COST): Englishify.
14806 * doc/tm.texi (BRANCH_COST): Likewise.
14808 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14811 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14812 (gen_scheduled_generic_parms_dies): New functions.
14813 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14814 generation for the end of CU compilation.
14815 (dwarf2out_finish): Generate template parameters DIEs here.
14817 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14820 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14821 debug bind stmt on merge edges.
14823 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14827 * function.c (instantiate_expr): Instantiate incoming rtl of
14828 implicit arguments, and recurse on VALUE_EXPRs.
14829 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14830 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14832 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14834 * c-parser.c (c_parser_for_statement): Initialize
14835 collection_expression.
14837 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14839 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14841 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14843 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14844 (LINK_SHLIB_SPEC): Don't use %(link_path).
14845 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14847 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14849 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14850 (NO_SHARED_LIB_SUPPORT): Remove.
14851 (LINK_SHLIB_SPEC): Remove one conditional definition.
14853 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14855 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14857 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14858 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14859 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14860 %{call_shared} and conditionals on these options not being passed.
14861 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14864 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14866 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14869 * ipa-split.c: Spelling fixes.
14871 2011-01-19 Richard Henderson <rth@redhat.com>
14873 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14874 (*mulsi3): Likewise.
14876 * longlong.h [__mn10300__] (count_leading_zeros): New.
14877 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14878 [__mn10300__] (add_ssaaaa, subddmmss): New.
14879 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14880 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14882 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14884 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14886 2011-01-19 Richard Henderson <rth@redhat.com>
14888 * config/mn10300/mn10300.md (addsi3_flags): New.
14889 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14890 (subsi3_flags, subc_internal, subdi3): New.
14891 (subdi3_internal, *subdi3_degenerate): New.
14892 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14894 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14895 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14896 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14897 * config/mn10300/mn10300-protos.h: Update.
14898 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14899 (return_ret): Likewise. Rename from return_internal_regs.
14900 (return_internal): Remove.
14902 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14903 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14904 (mn10300_legitimate_constant_p): Likewise.
14905 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14906 (mn10300_frame_size): New.
14907 (mn10300_expand_prologue): Use it.
14908 (mn10300_expand_epilogue): Likewise.
14909 (mn10300_initial_offset): Likewise.
14910 * config/mn10300/mn10300-protos.h: Update.
14911 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14912 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14913 (prologue, epilogue, return_internal): Tidy output code.
14914 (mn10300_store_multiple_operation, return): Likewise.
14915 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14916 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14917 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14918 (load_pic, am33_load_pic): New.
14919 (mn10300_load_pic0, mn10300_load_pic1): New.
14921 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14922 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14923 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14924 (cc_flags_for_mode, cc_flags_for_code): New.
14925 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14926 overflow flag is not valid. Validate that the flags we need
14927 for the comparison are valid.
14928 (mn10300_output_cmp): Remove.
14929 (mn10300_output_add): New.
14930 (mn10300_select_cc_mode): Use cc_flags_for_code.
14931 (mn10300_split_cbranch): New.
14932 (mn10300_match_ccmode): New.
14933 (mn10300_split_and_operand_count): New.
14934 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14936 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14937 (addsi3): ... here. Use mn10300_output_add.
14938 (*addsi3_flags): New.
14939 (*am33_subsi3, *mn10300_subsi3): Merge...
14940 (subsi3): ... here. Use attribute isa.
14941 (*subsi3_flags): New.
14942 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14944 (*am33_andsi3, *mn10300_andsi3): Merge...
14945 (andsi3): ... here.
14946 (*andsi3_flags): New.
14947 (andsi3 splitters): New.
14948 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14949 (iorsi3): ... here.
14950 (*iorsi3_flags): New.
14951 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14952 (xorsi3): ... here.
14953 (*xorsi3_flags): New.
14954 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14955 (one_cmplsi2): ... here.
14956 (*one_cmplsi2_flags): New.
14957 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14958 instead of "dax" in constraints. Use mn10300_split_cbranch.
14959 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14960 use matching constraints to eliminate a self-comparison.
14961 (*integer_conditional_branch): Rename from integer_conditional_branch.
14962 Use int_mode_flags to match CC_REG.
14963 (*cbranchsi4_btst, *btstsi): New.
14964 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14965 mn10300_split_cbranch.
14966 (*am33_cmpsf): Rename from am33_cmpsf.
14967 (*float_conditional_branch): Rename from float_conditional_branch.
14968 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14969 (zero_extendqisi2): ... here.
14970 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14971 (zero_extendhisi2): ... here.
14972 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14973 (extendqisi2): ... here.
14974 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14975 (extendhisi2): ... here.
14976 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14977 (ashlsi3): ... here.
14978 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14979 (lshrsi3): ... here.
14980 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14981 (ashrsi3): ... here.
14982 (consecutive add peephole): Remove.
14983 * config/mn10300/predicates.md (label_ref_operand): New.
14984 (int_mode_flags): New.
14985 (CCZN_comparison_operator): New.
14987 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14988 (throughput_42_latency_43): New reservation.
14989 (mulsidi3, umulsidi3): New expanders.
14990 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14991 the MDR register to allocation; separately allocate the low and
14992 high parts of the DImode result.
14993 (umulsidi3_internal): Similarly.
14994 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14995 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14996 (udivsi3, umodsi3): Remove.
14997 (udivmodsi4, divmodsi4): New expanders.
14998 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14999 (*divmodsi4): Simiarly.
15000 (ext_internal): New.
15002 * config/mn10300/constraints.md ("z"): New constraint.
15003 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15004 (FIXED_REGISTERS): Don't fix MDR.
15005 (CALL_USED_REGSITERS): Reformat nicely.
15006 (REG_ALLOC_ORDER): Add MDR.
15007 (enum regclass): Add MDR_REGS.
15008 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15009 (IRA_COVER_CLASSES): Add MDR_REGS.
15010 (REGNO_REG_CLASS): Handle MDR_REG.
15011 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15012 (mn10300_register_move_cost): Likewise.
15013 * config/mn10300/mn10300.md (MDR_REG): New.
15014 (*movsi_internal): Handle moves to/from MDR_REGS.
15016 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15018 (mn10300_secondary_reload): Tidy combination reload classes.
15019 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15020 addresses for AM33. Allow symbolic offsets for reg+imm.
15021 (mn10300_regno_in_class_p): New.
15022 (mn10300_legitimize_reload_address): New.
15023 * config/mn10300/mn10300.h (enum reg_class): Remove
15024 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15025 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15026 SP_OR_GENERAL_REGS.
15027 (REG_CLASS_NAMES): Update to match.
15028 (REG_CLASS_CONTENTS): Likewise.
15029 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15030 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15031 (REGNO_IN_RANGE_P): Remove.
15032 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15033 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15034 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15035 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15036 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15037 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15038 (REGNO_GENERAL_P): New.
15039 (HAVE_POST_MODIFY_DISP): New.
15040 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15041 (LEGITIMIZE_RELOAD_ADDRESS): New.
15042 * config/mn10300/mn10300-protos.h: Update.
15044 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15045 DATA_REGS for AM33 stack-pointer destination.
15046 (mn10300_preferred_output_reload_class): Likewise.
15047 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15048 into a form appropriate for ...
15049 (TARGET_SECONDARY_RELOAD): New.
15050 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15051 * config/mn10300/mn10300-protos.h: Update.
15052 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15053 reload_insi; use the "A" constraint for the scratch; handle AM33
15054 moves of sp to non-address registers.
15056 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15057 (*movqi_internal): ... here.
15058 (*am33_movhi, *mn10300_movhi): Merge into...
15059 (*movhi_internal): ... here.
15060 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15061 as the source/destination of moves from/to SP.
15062 (movsf): Only allow for AM33-2.
15063 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15064 any integer constant constraint. Only allow for AM33-2. Tidy
15065 all of the alternative outputs.
15066 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15067 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15069 (udivsi3, umodsi3): New patterns for MN103 only.
15071 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15073 * doc/tm.texi.in: Spell out that a lack of register class unions
15075 * doc/tm.texi: Regenerate.
15077 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15079 PR rtl-optimization/47337
15080 * dce.c (check_argument_store): New function.
15081 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15083 PR tree-optimization/47290
15084 * tree-eh.c (infinite_empty_loop_p): New function.
15085 (cleanup_empty_eh): Use it.
15087 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15090 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15091 (a64_expand_widen_sum): Ditto.
15092 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15093 (vec_extract_evenodd_help): Ditto.
15094 (vec_extract_evenv4hi): Ditto.
15095 (vec_extract_oddv4hi): Ditto.
15096 (vec_extract_evenv2si): Ditto.
15097 (vec_extract_oddv2si): Ditto.
15098 (vec_extract_evenv2sf): Ditto.
15099 (vec_extract_oddv2sf): Ditto.
15100 (vec_pack_trunc_v4hi: Ditto.
15101 (vec_pack_trunc_v2si): Ditto.
15102 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15103 (vec_interleave_highv8qi): Ditto.
15105 (vec_extract_oddv8qi): Ditto.
15106 (vec_interleave_lowv4hi): Ditto.
15107 (vec_interleave_highv4hi): Ditto.
15108 (vec_interleave_lowv2si): Ditto.
15109 (vec_interleave_highv2si): Ditto.
15111 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15113 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15114 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15115 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15116 (pa_c_mode_for_suffix): New.
15117 (TARGET_EXPAND_BUILTIN): Define.
15118 (TARGET_C_MODE_FOR_SUFFIX): Define.
15119 (pa_builtins): Define.
15120 (pa_init_builtins): Register __float128 type and init new support
15122 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15123 * config/pa/quadlib.c (_U_Qfcopysign): New.
15125 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15127 PR middle-end/46894
15128 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15129 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15132 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15134 PR tree-optimization/47179
15135 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15136 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15138 2011-01-18 Richard Guenther <rguenther@suse.de>
15140 PR rtl-optimization/47216
15141 * emit-rtl.c: Include tree-flow.h.
15142 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15143 of replicating it with different semantics.
15144 * Makefile.in (emit-rtl.o): Adjust.
15146 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15148 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15149 (cortex_a9_dp): Handle neon types correctly.
15151 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15153 PR rtl-optimization/47299
15154 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15155 subtarget. Use normal multiplication if both operands are constants.
15156 * expmed.c (expand_widening_mult): Don't try to optimize constant
15157 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15160 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15162 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15163 spacing after 'e.g.', typos, comma, hyphenation.
15165 2011-01-17 Richard Henderson <rth@redhat.com>
15167 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15168 (rx_restricted_mem_operand): New.
15169 (rx_shift_operand): Use register_operand.
15170 (rx_source_operand, rx_compare_operand): Likewise.
15171 * config/rx/rx.md (addsi3_flags): New expander.
15172 (adddi3): Rewrite as expander.
15173 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15174 (subsi3_flags): New expander.
15175 (subdi3): Rewrite as expander.
15176 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15178 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15179 (rx_init_builtins): Remove sat builtin.
15180 (rx_expand_builtin): Likewise.
15181 * config/rx/rx.md (ssaddsi3): New.
15182 (*sat): Rename from sat. Represent the CC_REG input.
15184 * config/rx/predicates.md (rshift_operator): New.
15185 * config/rx/rx.c (rx_expand_insv): Remove.
15186 * config/rx/rx-protos.h: Update.
15187 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15188 operand to the canonical position.
15189 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15190 (*bitclr, *bitclr_in_memory): Similarly.
15191 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15192 (insv): Retain the zero_extract in the expansion.
15194 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15195 (bswaphi2, bitinvert, revw): Likewise.
15197 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15198 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15199 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15200 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15201 (bitset, bitset_in_memory): Likewise.
15202 (bitinvert, bitinvert_in_memory): Likewise.
15203 (bitclr, bitclr_in_memory): Likewise.
15204 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15205 (rx_strend, rx_cmpstrn): Likewise.
15206 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15207 (bitop peep2 patterns): Remove.
15209 * config/rx/rx.c (rx_match_ccmode): New.
15210 * config/rx/rx-protos.h: Update.
15211 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15212 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15213 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15214 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15215 (fix_truncsfsi2, floatsisf2): Likewise.
15216 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15217 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15218 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15219 (*subsi3_flags, *xorsi3_flags): New.
15221 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15223 * config/rx/rx.c (rx_print_operand): Remove workaround for
15224 unsplit comparison operations.
15226 * config/rx/rx.md (movsicc): Split after reload.
15227 (*movsicc): Merge *movsieq and *movsine via match_operator.
15228 (*stcc): New pattern.
15230 * config/rx/rx.c (rx_float_compare_mode): Remove.
15231 * config/rx/rx.h (rx_float_compare_mode): Remove.
15232 * config/rx/rx.md (cstoresi4): Split after reload.
15233 (*sccc): New pattern.
15235 * config/rx/predicates.md (label_ref_operand): New.
15236 (rx_z_comparison_operator): New.
15237 (rx_zs_comparison_operator): New.
15238 (rx_fp_comparison_operator): New.
15239 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15240 Validate that the flags are set properly for the comparison.
15241 (rx_gen_cond_branch_template): Remove.
15242 (rx_cc_modes_compatible): Remove.
15243 (mode_from_flags): New.
15244 (flags_from_code): Rename from flags_needed_for_conditional.
15245 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15246 (rx_select_cc_mode): Likewise.
15247 (rx_split_fp_compare): New.
15248 (rx_split_cbranch): New.
15249 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15250 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15251 (*cbranchsf4): Similarly.
15252 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15253 match_operator and rx_split_cbranch.
15254 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15255 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15256 (*cmpsi): Rename from cmpsi.
15257 (*tstsi): Rename from tstsi.
15258 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15259 (*conditional_branch): Rename from conditional_branch.
15260 (*reveresed_conditional_branch): Remove.
15261 (b<code>): Remove expander.
15262 * config/rx/rx-protos.h: Update.
15264 * config/rx/rx.c (rx_compare_redundant): Remove.
15265 * config/rx/rx.md (cmpsi): Don't use it.
15266 * config/rx/rx-protos.h: Update.
15268 * config/rx/rx-modes.def (CC_F): New mode.
15269 * config/rx/rx.c (rx_select_cc_mode): New.
15270 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15271 * config/rx/rx-protos.h: Update.
15273 2011-01-17 Richard Henderson <rth@redhat.com>
15275 * except.c (dump_eh_tree): Fix stray ; after for statement.
15277 2011-01-17 Richard Guenther <rguenther@suse.de>
15279 PR tree-optimization/47313
15280 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15281 handling before copying the body. Properly deal with
15282 by-reference result in SSA form.
15284 2011-01-17 Ian Lance Taylor <iant@google.com>
15287 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15288 (struct_value_alias_set): Don't define.
15289 (sparc_option_override): Don't set sparc_sr_alias_set and
15290 struct_value_alias_set.
15291 (save_or_restore_regs): Use gen_frame_mem rather than calling
15293 (sparc_struct_value_rtx): Likewise.
15295 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15298 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15299 (_mm_maskstore_pd): Likewise.
15300 (_mm_maskload_ps): Likewise.
15301 (_mm_maskstore_ps): Likewise.
15302 (_mm256_maskload_pd): Change mask to __m256i.
15303 (_mm256_maskstore_pd): Likewise.
15304 (_mm256_maskload_ps): Likewise.
15305 (_mm256_maskstore_ps): Likewise.
15307 * config/i386/i386-builtin-types.def: Updated.
15308 (ix86_expand_special_args_builtin): Likewise.
15310 * config/i386/i386.c (bdesc_special_args): Update
15311 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15312 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15313 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15314 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15316 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15317 Use <avxpermvecmode> on mask register.
15318 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15320 2011-01-17 Olivier Hainque <hainque@adacore.com>
15321 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15322 Eric Botcazou <ebotcazou@adacore.com>
15325 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15326 if <= USHRT_MAX in 32-bit mode.
15328 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15330 * doc/install.texi (Configuration, Specific): Wrap long
15331 lines in examples. Allow line wrapping in long options
15332 and URLs where beneficial for PDF output.
15334 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15336 * config/mips/mips.c (mips_classify_symbol): Don't return
15337 SYMBOL_PC_RELATIVE for nonlocal labels.
15339 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15341 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15343 2011-01-15 Jan Hubicka <jh@suse.cz>
15345 PR tree-optimization/47276
15346 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15347 declarations as needed.
15349 2011-01-15 Martin Jambor <mjambor@suse.cz>
15351 * common.opt (fdevirtualize): New flag.
15352 * doc/invoke.texi (Option Summary): Document it.
15353 * opts.c (default_options_table): Add devirtualize flag.
15354 * ipa-prop.c (detect_type_change): Return immediately if
15355 devirtualize flag is not set.
15356 (detect_type_change_ssa): Likewise.
15357 (compute_known_type_jump_func): Likewise.
15358 (ipa_analyze_virtual_call_uses): Likewise.
15360 2011-01-14 Martin Jambor <mjambor@suse.cz>
15362 PR tree-optimization/45934
15363 PR tree-optimization/46302
15364 * ipa-prop.c (type_change_info): New type.
15365 (stmt_may_be_vtbl_ptr_store): New function.
15366 (check_stmt_for_type_change): Likewise.
15367 (detect_type_change): Likewise.
15368 (detect_type_change_ssa): Likewise.
15369 (compute_complex_assign_jump_func): Check for dynamic type change.
15370 (compute_complex_ancestor_jump_func): Likewise.
15371 (compute_known_type_jump_func): Likewise.
15372 (compute_scalar_jump_functions): Likewise.
15373 (ipa_analyze_virtual_call_uses): Likewise.
15374 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15376 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15378 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15379 * config/i386/i386.opt (msse5): New Alias.
15381 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15383 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15384 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15385 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15386 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15388 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15390 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15392 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15393 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15394 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15395 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15397 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15399 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15401 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15403 2011-01-14 Mike Stump <mikestump@comcast.net>
15405 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15406 * config/fr30/fr30.md: Likweise
15407 (movsi_push): Likewise.
15408 (movsi_pop): Likewise.
15409 (enter_func): Likewise.
15410 * config/moxie/moxie.md (movsi_push): Likewise.
15411 (movsi_pop): Likewise.
15413 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15415 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15416 %{no_archive} %{exact_version}.
15417 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15418 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15419 %{no_archive} %{exact_version}.
15420 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15421 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15422 * config/mips/vxworks.h: Likewise.
15424 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15426 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15428 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15430 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15431 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15433 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15435 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15438 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15440 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15442 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15443 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15445 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15446 Don't handle -shlib.
15448 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15450 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15451 (CC1_SPEC): Don't handle -profile.
15453 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15455 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15456 * config/mips/mips.h (CC1_SPEC): Likewise.
15458 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15460 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15461 * config/mips/mips.h (CC1_SPEC): Likewise.
15463 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15465 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15466 * config/m32r/linux.h (LINK_SPEC): Likewise.
15467 * config/mips/linux.h (LINK_SPEC): Likewise.
15468 * config/mips/linux64.h (LINK_SPEC): Likewise.
15469 * config/sparc/linux.h (LINK_SPEC): Likewise.
15470 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15471 LINK_SPEC): Likewise.
15472 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15474 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15476 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15478 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15480 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15482 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15483 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15485 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15487 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15489 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15491 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15492 supports -Bstatic/-Bdynamic.
15493 * configure: Regenerate.
15495 2011-01-14 Jan Hubicka <jh@suse.cz>
15496 Jack Howarth <howarth@bromo.med.uc.edu>
15499 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15500 when checking debug_info_level. Test write_symbols instead of
15501 debug_hooks->var_location when setting flag_var_tracking_uninit.
15503 2011-01-14 Richard Guenther <rguenther@suse.de>
15505 PR tree-optimization/47179
15506 * target.def (ref_may_alias_errno): New target hook.
15507 * targhooks.h (default_ref_may_alias_errno): Declare.
15508 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15509 (default_ref_may_alias_errno): New function.
15510 * target.h (struct ao_ref_s): Declare.
15511 * tree-ssa-alias.c: Include target.h.
15512 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15513 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15514 (targhooks.o): Likewise.
15515 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15516 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15518 2011-01-14 Richard Guenther <rguenther@suse.de>
15520 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15522 2011-01-14 Richard Guenther <rguenther@suse.de>
15524 PR tree-optimization/47280
15525 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15526 return CFG changes.
15527 (tree_ssa_forward_propagate_single_use_vars): Deal with
15528 CFG changes from associate_plusminus.
15530 2011-01-14 Richard Guenther <rguenther@suse.de>
15532 PR middle-end/47281
15534 2011-01-11 Richard Guenther <rguenther@suse.de>
15536 PR tree-optimization/46076
15537 * tree-ssa.c (useless_type_conversion_p): Conversions from
15538 unprototyped to empty argument list function types are useless.
15540 2011-01-14 Richard Guenther <rguenther@suse.de>
15542 PR tree-optimization/47286
15543 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15545 2011-01-14 Martin Jambor <mjambor@suse.cz>
15547 PR middle-end/46823
15548 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15550 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15552 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15553 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15554 * config/xtensa/xtensa.c (xtensa_libcall_value,
15555 xtensa_function_value_regno_p): New functions.
15556 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15558 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15561 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15563 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15564 New function prototype.
15565 * config/i386/winnt.c (i386_pe_assemble_visibility):
15566 Warn only if attribute was specified by user.
15568 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15571 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15573 (floatunsdidf2_fcfidu): Ditto.
15575 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15577 * config/s390/s390.c (print_operand_address): Replace 'error' with
15578 'output_operand_lossage'.
15579 (print_operand): Likewise.
15581 2011-01-13 Jeff Law <law@redhat.com>
15583 PR rtl-optimization/39077
15584 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15585 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15586 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15587 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15588 * gcse.c (prune_insertions_deletions): New function.
15589 (compute_pre_data): Use it.
15591 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15594 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15596 (prune_unused_types_mark): Use it.
15598 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15600 PR rtl-optimization/45352
15601 * sel-sched.c: Update copyright years.
15602 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15603 in the advancing loop when we have issued issue_rate insns.
15605 2011-01-12 Richard Henderson <rth@redhat.com>
15607 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15608 (TARGET_MD_ASM_CLOBBERS): New.
15610 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15611 (TARGET_DELEGITIMIZE_ADDRESS): New.
15613 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15614 (clzsi2, *bsch): New patterns.
15616 * config/mn10300/mn10300.md (INT): New mode iterator.
15617 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15619 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15620 flag_split_wide_types.
15622 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15623 (mn10300_trampoline_init): Rewrite without a template, an immediate
15624 load and a direct branch.
15625 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15627 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15629 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15630 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15631 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15632 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15634 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15637 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15640 2011-01-12 Jan Hubicka <jh@suse.cz>
15643 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15644 (PLUGIN_COND_CLOSE): New macro.
15645 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15647 2011-01-12 Richard Guenther <rguenther@suse.de>
15650 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15651 register variables in a MEM_REF.
15653 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15655 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15656 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15657 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15658 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15659 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15660 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15661 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15662 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15663 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15664 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15665 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15666 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15667 * config/gnu-user.h: New. Copied from linux.h.
15668 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15669 GNU_USER_TARGET_STARTFILE_SPEC.
15670 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15671 GNU_USER_TARGET_ENDFILE_SPEC.
15672 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15673 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15674 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15675 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15676 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15677 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15678 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15679 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15680 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15681 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15682 * config/arm/linux-eabi.h (CC1_SPEC): Use
15683 GNU_USER_TARGET_CC1_SPEC.
15684 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15685 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15686 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15687 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15688 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15689 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15690 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15691 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15693 2011-01-12 Richard Guenther <rguenther@suse.de>
15696 * doc/invoke.texi (ffast-math): Document it is turned on
15699 2011-01-12 Jan Hubicka <jh@suse.cz>
15701 PR tree-optimization/47233
15702 * opts.c (common_handle_option): Disable ipa-reference with profile
15705 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15707 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15710 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15712 * c-parser.c (c_lex_one_token): Updated and reindented some
15713 comments. No changes in code.
15715 2011-01-11 Ian Lance Taylor <iant@google.com>
15717 * godump.c (go_output_var): Don't output the variable if there is
15718 already a type with the same name.
15720 2011-01-11 Ian Lance Taylor <iant@google.com>
15722 * godump.c (go_format_type): Don't generate float80.
15724 2011-01-11 Richard Henderson <rth@redhat.com>
15726 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15727 declaration. Rewrite for both speed and size.
15728 (mn10300_address_cost_1): Remove.
15729 (mn10300_register_move_cost): New.
15730 (mn10300_memory_move_cost): New.
15731 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15732 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15733 extensions, shifts, BSWAP, CLZ.
15734 (mn10300_wide_const_load_uses_clr): Remove.
15735 (TARGET_REGISTER_MOVE_COST): New.
15736 (TARGET_MEMORY_MOVE_COST): New.
15737 * config/mn10300/mn10300-protos.h: Update.
15738 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15740 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15741 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15742 * config/mn10300/mn10300-protos.h: Update.
15743 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15744 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15745 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15746 (*test_int_bitfield, *test_byte_bitfield): Remove.
15747 (*bit_test, *subreg_bit_test): Remove.
15748 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15750 * config/mn10300/constraints.md ("c"): Rename from "A".
15751 ("A", "D"): New constraint letters.
15752 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15753 (fmssf4, fnmasf4, fnmssf4): Likewise.
15755 * config/mn10300/mn10300.md (isa): New attribute.
15756 (enabled): New attribute.
15758 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15759 (abssf2, negsf2): Define only for hardware fp.
15760 (sqrtsf2): Reformat.
15761 (addsf3, subsf3, mulsf3): Merge expander and insn.
15763 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15764 (DEBUGGER_AUTO_OFFSET): Remove.
15765 (DEBUGGER_ARG_OFFSET): Remove.
15767 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15768 Emit register stores with the same offsets as the hardware.
15769 (mn10300_store_multiple_operation): Don't check that the register
15770 save offsets are monotonic.
15771 * config/mn10300/mn10300-protos.h: Update.
15773 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15775 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15776 in terms of the value on the stack, not the MDR register.
15778 2011-01-11 Jan Hubicka <jh@suse.cz>
15782 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15783 (symbol_alias_set_destroy, symbol_alias_set_contains,
15784 propagate_aliases_backward): Declare.
15785 * lto-streamer-out.c (struct sets): New sturcture.
15786 (trivally_defined_alias): New function.
15787 (output_alias_pair_p): Rewrite.
15788 (output_unreferenced_globals): Fix output of alias pairs.
15789 (produce_symtab): Likewise.
15790 * ipa.c (function_and_variable_visibility): Set weak alias destination
15792 * varasm.c (symbol_alias_set_t): Remove.
15793 (symbol_alias_set_destroy): Export.
15794 (propagate_aliases_forward, propagate_aliases_backward): New functions
15796 (compute_visible_aliases): ... this one; remove.
15797 (trivially_visible_alias): New
15798 (trivially_defined_alias): New.
15799 (remove_unreachable_alias_pairs): Rewrite.
15800 (finish_aliases_1): Reorganize code checking if alias is defined.
15801 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15804 2011-01-11 Richard Guenther <rguenther@suse.de>
15806 PR tree-optimization/46076
15807 * tree-ssa.c (useless_type_conversion_p): Conversions from
15808 unprototyped to empty argument list function types are useless.
15810 2011-01-11 Richard Guenther <rguenther@suse.de>
15812 PR middle-end/45235
15813 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15814 volatile MEMs as MEM_READONLY_P.
15816 2011-01-11 Richard Guenther <rguenther@suse.de>
15818 PR tree-optimization/47239
15819 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15821 2011-01-11 Jeff Law <law@redhat.com>
15823 PR tree-optimization/47086
15824 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15825 IVs from statements that might throw.
15827 2011-01-10 Jan Hubicka <jh@suse.cz>
15830 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15832 2011-01-10 Jan Hubicka <jh@suse.cz>
15835 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15836 when correcting profile.
15838 2011-01-10 Jan Hubicka <jh@suse.cz>
15841 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15842 DECL_FINI_PRIORITY.
15843 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15844 Restore DECL_FINI_PRIORITY.
15846 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15848 * doc/gimple.texi: Fix quoting of multi-word return values in
15849 @deftypefn statements. Ensure presence of return value. Wrap
15850 overlong @deftypefn lines.
15851 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15852 descriptions of removed functions.
15853 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15854 of multi-word return value in @deftypefn statement.
15856 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15858 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15859 (Conditional Expressions, Logical Operators)
15860 (Statement and operand traversals): Do not indent smallexample
15861 code. Fix duplicate function argument in example.
15863 2011-01-10 Jeff Law <law@redhat.com>
15865 PR tree-optimization/47141
15866 * ipa-split.c (split_function): Handle case where we are
15867 returning a value and the return block has a virtual operand phi.
15869 2011-01-10 Jan Hubicka <jh@suse.cz>
15871 PR tree-optimization/47234
15872 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15873 (pass_feedback_split_functions): Declare.
15874 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15876 * ipa-split.c (gate_split_functions): Update comments; disable
15877 split-functions for profile_arc_flag and branch_probabilities.
15878 (gate_feedback_split_functions): New function.
15879 (execute_feedback_split_functions): New function.
15880 (pass_feedback_split_functions): New global var.
15882 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15885 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15886 calling gimple_call_set_cannot_inline.
15888 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15890 * config/darwin-sections.def: Remove unused section.
15892 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15895 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15897 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15900 * c-parser.c (c_parser_declaration_or_fndef): Improved
15903 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15905 * config/i386/winnt.c (i386_pe_start_function): Make sure
15906 to switch back to function's section.
15908 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15912 * plugin.c: Move include of dlfcn.h from here...
15913 * system.h: ... to here.
15915 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15917 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15919 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15920 two extra empty pages in PDF output.
15922 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15925 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15926 for error recovery purposes behave as if it was not specified so
15927 that the default type is usd.
15929 2011-01-07 Jan Hubicka <jh@suse.cz>
15931 PR tree-optmization/46469
15932 * ipa.c (function_and_variable_visibility): Clear needed flags on
15933 nodes with external decls; handle weakrefs merging correctly.
15935 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15937 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15940 2011-01-07 Jan Hubicka <jh@suse.cz>
15942 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15943 and no longer claim that gold is required for linker plugin.
15944 * configure: Regenerate.
15945 * gcc.c (PLUGIN_COND): New macro.
15946 (LINK_COMMAND_SPEC): Use it.
15947 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15948 * config.in (HAVE_LTO_PLUGIN): New.
15949 * configure.ac (--with-lto-plugin): New parameter; autodetect
15952 2011-01-07 Jan Hubicka <jh@suse.cz>
15954 PR tree-optimization/46367
15955 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15956 when we can update original.
15957 (cgraph_mark_inline_edge): Sanity check.
15958 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15960 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15962 * config/spu/spu.h (ASM_COMMENT_START): Define.
15964 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15967 * gcc.c (%>S): New.
15968 (SWITCH_KEEP_FOR_GCC): Likewise.
15969 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15970 (do_spec_1): Handle "%>".
15972 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15974 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15977 * config/i386/i386.c (ix86_delegitimize_address): If
15978 simplify_gen_subreg fails, return orig_x.
15981 * value-prof.c (gimple_stringop_fixed_value): Handle
15982 lhs of the call properly.
15984 2011-01-07 Jan Hubicka <jh@suse.cz>
15987 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15989 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15991 * target.def (function_switched_text_sections): New hook.
15992 * doc/tm.texi: Regenerated.
15993 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15994 * final.c (default_function_switched_text_sections): New.
15995 (final_scan_insn): Call function_switched_text_sections when a
15996 mid-function section change occurs.
15997 * output.h (default_function_switched_text_sections): Declare.
15998 * config/darwin-protos.h (darwin_function_switched_text_sections):
16000 * config/darwin.c (darwin_function_switched_text_sections): New.
16001 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16003 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16005 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16006 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16007 the secondary code fragment when outputting for DWARF == 2.
16009 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16011 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16012 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16014 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16015 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16017 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16020 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16021 when it is not empty.
16023 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16026 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16027 (case ${target}): Add btver1.
16028 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16029 -march=native recognize btver1 processors.
16030 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16031 btver1 def_and_undef
16032 * config/i386/i386.c (struct processor_costs btver1_cost): New
16034 (m_BTVER1): New definition.
16035 (m_AMD_MULTIPLE): Includes m_BTVER1.
16036 (initial_ix86_tune_features): Add btver1 tune.
16037 (processor_target_table): Add btver1 entry.
16038 (static const char *const cpu_names): Add btver1 entry.
16039 (software_prefetching_beneficial_p): Add btver1.
16040 (ix86_option_override_internal): Add btver1 instruction sets.
16041 (ix86_issue_rate): Add btver1.
16042 (ix86_adjust_cost): Add btver1.
16043 * config/i386/i386.h (TARGET_BTVER1): New definition.
16044 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16045 (enum processor_type): Add PROCESSOR_BTVER1.
16046 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16048 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16051 * config/i386/i386.c (legitimize_tls_address)
16052 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16053 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16054 (tls_initial_exec_64_sun): New pattern.
16056 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16058 * doc/invoke.texi (Overall Options): Improve wording and markup
16059 of the description of -wrapper.
16061 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16063 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16064 rdynamic, threads): New Driver options.
16066 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16069 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16070 if coming from .tdata.
16071 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16073 2011-01-06 Jan Hubicka <jh@suse.cz>
16076 * collect2.c (main): Do not enable LTOmode when plugin is active.
16078 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16081 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16082 --version output if supported.
16083 * configure: Regenerate.
16085 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16087 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16090 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16093 * c-convert.c (convert): When converting a complex expression
16094 other than COMPLEX_EXPR to a different complex type, ensure
16095 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16096 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16097 when converting COMPLEX_TYPE.
16099 2011-01-06 Ira Rosen <irar@il.ibm.com>
16101 PR tree-optimization/47139
16102 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16103 only the last reduction value is used outside the loop. Update
16106 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16108 * config/rtems.opt: New.
16109 * config.gcc (*-*-rtems*): Use rtems.opt.
16111 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16113 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16114 processors do not support 3DNow instructions.
16116 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16118 * config/spu/spu.c (spu_option_override): Set parameter
16119 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16121 2011-01-05 Jan Hubicka <jh@suse.cz>
16123 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16124 at the command line.
16126 2011-01-05 Martin Jambor <mjambor@suse.cz>
16129 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16130 deltas on streamed outgoing edges.
16131 (output_node_opt_summary): Output info for outgoing edges only when
16132 the node is in new parameter set.
16133 (output_cgraph_opt_summary): New parameter set, passed to the two
16134 aforementioned functions. Update its forward declaration and its
16137 2011-01-05 Tom Tromey <tromey@redhat.com>
16139 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16140 operator to c_finish_omp_atomic.
16141 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16142 (build_unary_op): Update.
16143 (build_modify_expr): Update.
16144 (build_asm_expr): Update.
16146 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16148 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16149 newly inserted insns.
16150 (pad_bb): Likewise.
16151 (spu_emit_branch_hint): Likewise.
16152 (insert_hbrp_for_ilb_runout): Likewise.
16153 (spu_machine_dependent_reorg): Call df_finish_pass after
16154 schedule_insns returns.
16156 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16158 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16160 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16162 PR tree-optimization/47005
16163 * tree-sra.c (struct access): Add 'non_addressable' bit.
16164 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16165 (decide_one_param_reduction): Return 0 if the parameter is passed by
16166 reference and one of the accesses in the group is non_addressable.
16168 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16170 PR tree-optimization/47056
16171 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16172 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16173 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16175 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16177 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16178 initializer. Skip view conversions from aggregate types.
16180 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16183 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16185 2011-01-04 Philipp Thomas <pth@suse.de>
16187 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16190 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16192 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16193 on empty epilogue sequences.
16195 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16197 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16198 non-static): New Driver options.
16200 2011-01-04 Jie Zhang <jie@codesourcery.com>
16203 * gcc.c (default_compilers[]): Set combinable field to 0
16204 for all assembly languages.
16206 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16208 * config/mips/loongson3a.md: New file.
16209 * config/mips/mips.md: Include loongson3a.md.
16210 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16213 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16215 PR middle-end/47017
16216 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16217 instead of convert_memory_address_addr_space on the base expression.
16219 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16221 * config/spu/spu.c (spu_option_override): Update error text
16222 for bad -march= / -mtune= values.
16224 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16226 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16227 if branch-hint optimization will be performed.
16229 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16231 PR tree-optimization/47148
16232 * ipa-split.c (split_function): Convert arguments to
16233 DECL_ARG_TYPE if possible.
16235 PR tree-optimization/47155
16236 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16237 when computing uns.
16239 PR rtl-optimization/47157
16240 * combine.c (try_combine): If undobuf.other_insn becomes
16241 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16242 and set *new_direct_jump_p too.
16244 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16246 PR tree-optimization/47021
16247 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16249 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16251 * gcc.c (process_command): Update copyright notice dates.
16252 * gcov.c (print_version): Likewise.
16253 * gcov-dump.c (print_version): Likewise.
16254 * mips-tfile.c (main): Likewise.
16255 * mips-tdump.c (main): Likewise.
16257 2011-01-03 Martin Jambor <mjambor@suse.cz>
16259 PR tree-optimization/46801
16260 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16261 aggregate fields start at byte boundary instead of the bit-field flag.
16263 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16266 * gcc.c (main): Revert revision 168407.
16268 2011-01-03 Martin Jambor <mjambor@suse.cz>
16270 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16272 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16274 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16275 vector optab to expand vector/scalar shift, update gimple to vector.
16277 2011-01-03 Martin Jambor <mjambor@suse.cz>
16279 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16282 2011-01-03 Martin Jambor <mjambor@suse.cz>
16284 PR tree-optimization/46984
16285 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16287 (cgraph_create_indirect_edge): Fixed line length.
16288 (cgraph_indirect_call_info): Declare.
16289 (cgraph_make_edge_direct) Update declaration.
16290 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16291 (cgraph_create_indirect_edge): Use it.
16292 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16294 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16295 the new thunk_delta representation.
16296 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16298 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16299 (ipa_read_indirect_edge_info): Likewise.
16300 * lto-cgraph.c (output_edge_opt_summary): New function.
16301 (output_node_opt_summary): Call it on all outgoing edges.
16302 (input_edge_opt_summary): New function.
16303 (input_node_opt_summary): Call it on all outgoing edges.
16305 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16308 * gcc.c (main): Don't check have_o when settting combine_inputs.
16310 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16312 * regrename.c: Add general comment describing the pass.
16313 (struct du_head): Remove 'length' field.
16314 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16315 (regrename_optimize): Do not sort chains. Rework comments, add others.
16316 Force renaming to the preferred class (if any) in the first pass and do
16317 not consider registers that belong to it in the second pass.
16318 (create_new_chain): Do not set 'length' field.
16319 (scan_rtx_reg): Likewise.
16321 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16323 PR tree-optimization/47140
16324 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16325 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16326 to bit_value_binop.
16328 PR rtl-optimization/47028
16329 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16330 parm_birth_insn instead of at the beginning of first bb.
16332 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16334 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16335 Remove the word "see" before "@pxref".
16336 * doc/rtl.texi: Remove the word "see" before "@pxref".
16338 2011-01-01 Jan Hubicka <jh@suse.cz>
16340 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16343 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16346 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16349 Copyright (C) 2011 Free Software Foundation, Inc.
16351 Copying and distribution of this file, with or without modification,
16352 are permitted in any medium without royalty provided the copyright
16353 notice and this notice are preserved.