1 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
4 base_type_for_mode with op_mode instead of mode.
6 2011-06-01 Paul Brook <paul@cpodesourcery.com>
8 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
10 * config/arm/arm-tune.md: Regenerate.
11 * config/arm/arm-tables.opt: Regenerate.
12 * config/arm/arm.c (FL_DIV): Rename...
13 (FL_THUMB_DIV): ... to this.
15 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
16 (arm_arch_hwdiv): Remove.
17 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
18 (arm_issue_rate): Add cortexr5.
19 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
20 __ARM_ARCH_EXT_IDIV__.
21 (TARGET_IDIV): Define.
22 (arm_arch_hwdiv): Remove.
23 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
24 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
25 (divsi3, udivsi3): New patterns.
26 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
27 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
29 2011-06-01 Martin Jambor <mjambor@suse.cz>
31 * ipa-utils.c (ipa_dfs_info): New field scc_no.
32 * ipa-utils.c (searchc): Set scc_no.
34 2011-06-01 Martin Jambor <mjambor@suse.cz>
36 * ipa-utils.c (searchc_env): New field allow_overwritable.
37 (searchc): do not ignore edges to overwritable nodes if indicated
38 by env->allow_overwritable.
39 (ipa_reduced_postorder): Set env.allow_overwritable.
41 2011-06-01 Richard Guenther <rguenther@suse.de>
43 * tree.c (free_lang_data): Do not reset boolean_type_node nor
45 * lto-streamer.c (lto_record_common_node): Take node pointer,
46 do not register types.
47 (lto_preload_common_nodes): Explicitly skip preloading nodes
48 that differ between frontends.
50 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
52 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
55 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
57 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
58 parameter value for dump. Dump cost on outermost call only.
59 (rs6000_memory_move_cost): Dump cost on outermost call only.
61 2011-05-31 Jakub Jelinek <jakub@redhat.com>
63 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
64 DW_OP_GNU_convert ops.
66 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
67 cselib_preserve_constants.
68 (cselib_lookup_1): If cselib_preserve_constants,
69 a new VALUE is being created for REG and there is a VALUE for the
70 same register in wider mode, add another loc with lowpart SUBREG of
72 (cselib_subst_to_values): Handle ENTRY_VALUE.
73 * var-tracking.c (replace_expr_with_values): Return NULL for
75 * dwarf2out.c (convert_descriptor_to_signed): New function.
76 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
77 instead of two shifts.
78 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
79 the right mode if needed.
80 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
81 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
82 convert_descriptor_to_signed.
83 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
84 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
87 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
89 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
91 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
92 of X87MODEI12 and SWI48x instead of SSEMODEI24.
93 (SWI248x): New mode iterator, rename from X87MODEI.
94 (X87MODEI): Remove mode iterator.
98 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
100 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
101 * doc/invoke.texi: Document max-vartrack-expr-depth.
102 * var-tracking.c (EXPR_DEPTH): New.
103 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
105 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
107 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
108 * config/i386/sse.md: Add n to negated FMA pattern names.
110 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
112 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
114 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
116 * gengtype-state.c (read_state_params_structs): Initialize previous.
118 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
120 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
121 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
123 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
125 * config/i386/i386.md (*movtf_internal): Avoid allocating general
126 registers. Penalize F*r->o alternative to prevent partial memory
127 stalls. Slightly penalize *roF->*r alternative. Generate SSE
128 CONST_DOUBLE immediates when optimizing function for size. Do not move
129 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
130 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
131 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
132 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
134 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
136 (fp_register_operand splitters): Use fp_register_operand
137 constraint. Do not use FP_REG_P in insn condition.
138 (any_fp_register_operand splitters): Use any_fp_register_operand
139 constraint. Do not use ANY_FP_REG_P in insn condition.
141 2011-05-31 Jan Hubicka <jh@suse.cz>
143 * cgraph.h (cgraph_inline_failed_t): Give enum a name
144 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
145 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
146 (lto_output_edge): Use output_enum and var_len_unsigned.
147 (lto_output_varpool_node): Likewise.
148 (input_overwrite_node): Do not take resolution parameter;
149 extract it from a bitpack.
150 (input_node): Do not read resolution; use input_enum and
152 (input_varpool_node): Likewise.
153 (input_edge): Likewise.
154 (input_cgraph_1): Likewise.
156 2011-05-31 Richard Guenther <rguenther@suse.de>
158 * gimple.c (gimple_register_canonical_type): Do not register
159 any types via gimple_register_type.
161 2011-05-31 Jan Hubicka <jh@suse.cz>
163 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
166 2011-05-31 Jakub Jelinek <jakub@redhat.com>
168 PR rtl-optimization/49235
169 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
170 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
172 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
174 PR tree-optimization/49093
175 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
178 2011-05-31 Dodji Seketeli <dodji@redhat.com>
181 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
182 for concrete functions containing the code of cloned functions.
184 2011-05-31 Richard Guenther <rguenther@suse.de>
186 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
188 (forward_propagate_into_comparison_1): ... this.
189 (forward_propagate_comparison): Rename to ...
190 (forward_propagate_into_comparison): ... this. Split out
191 real forward propagation code to ...
192 (forward_propagate_comparison): ... this.
193 (forward_propagate_into_gimple_cond): Remove looping.
194 (forward_propagate_into_cond): Likewise.
195 (simplify_not_neg_expr): Return whether we have done something.
196 (simplify_gimple_switch): Likewise.
197 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
198 (ssa_forward_propagate_and_combine): ... this. Re-structure
199 to do a forward forward-propagation walk on BBs and a backward
200 stmt combining walk on BBs. Consistently re-scan changed statements.
201 (pass_forwprop): Adjust.
203 2011-05-30 Ian Lance Taylor <iant@google.com>
205 * godump.c (go_format_type): Correct length of name added to
206 obstack for anonymous field.
208 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
211 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
212 part of the second operand is 0.
214 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
216 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
217 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
218 to memory for !TARGET_MEMORY_MISMATCH_STALL.
219 (*movdf_internal_rex64): Do not penalize F->r alternative.
220 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
221 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
222 when optimizing function for size. Do not move CONST_DOUBLEs
223 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
224 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
225 SUBREGs. Do not check for MEM_P operands in the insn condition,
226 check for ANY_FP_REGNO_P instead.
227 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
228 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
230 * config/i386/i386.c (ix86_option_override_internal): Do not
231 set TARGET_INTEGER_DFMODE_MOVES here.
233 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
236 * config/i386/i386.md (*movtf_internal): Handle misaligned
239 2011-05-30 Jakub Jelinek <jakub@redhat.com>
241 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
242 DW_TAG_rvalue_reference_type even for
243 -gdwarf-4 -fno-debug-types-section.
245 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
247 PR tree-optimization/46728
248 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
249 (build_and_insert_binop): New.
250 (gimple_expand_builtin_pow): Reorder args for
251 build_and_insert_call; use build_and_insert_binop; add more
252 optimizations for fractional exponents.
254 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
259 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
261 * tree.h (struct tree_identifier): Inherit from tree_typed, not
263 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
264 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
265 TS_BASE instead of TS_COMMON.
266 * varasm.c (assemble_name): Remove assert.
268 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
270 * config.gcc: Keep obselete list sorted.
272 2011-05-30 Jakub Jelinek <jakub@redhat.com>
273 Eric Botcazou <ebotcazou@adacore.com>
275 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
276 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
277 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
278 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
279 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
281 2011-05-30 Richard Guenther <rguenther@suse.de>
283 * gimple.c (gimple_types_compatible_p_1): Compare record
284 and union type members properly.
286 2011-05-30 Richard Guenther <rguenther@suse.de>
288 PR tree-optimization/49210
289 * ipa-split.c (split_function): Care for the case where the call
290 result is not trivially convertible to the result holding variable.
292 2011-05-30 Richard Guenther <rguenther@suse.de>
294 PR tree-optimization/49218
295 * tree-vrp.c (adjust_range_with_scev): Properly check whether
298 2011-05-30 Richard Guenther <rguenther@suse.de>
300 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
301 New function split out from ...
302 (forward_propagate_into_gimple_cond): ... here. Adjust.
303 (forward_propagate_into_cond): Likewise.
304 (forward_propagate_comparison): Also propagate into
305 comparisons on assignment RHS. Change return value to
306 behave similar to forward_propagate_into_cond.
307 (tree_ssa_forward_propagate_single_use_vars): Handle
308 strict-overflow warnings properly for forward_propagate_comparison.
310 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
312 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
314 * configure: Regenerate.
316 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
318 PR tree-optimization/49199
319 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
320 non-reduction operands are either defined in the loop or by induction.
322 2011-05-29 Xinliang David Li <davidxl@google.com>
324 * opts-global.c (handle_common_deferred_options): Handle new options.
325 * passes.c (register_one_dump_file): Call register_pass_name.
326 (execute_one_pass): Check explicit enable/disable flag.
327 (passr_hash): New function.
329 (register_pass_name): Ditto.
330 (get_pass_by_name): Ditto.
333 (enable_pass): Ditto.
334 (disable_pass): Ditto.
335 (is_pass_explicitly_enabled_or_disabled): Ditto.
337 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
339 * config/i386/i386.md (*movoi_internal_avx): Use
340 standard_sse_constant_opcode for alternative 0.
341 (*movti_internal_sse): Ditto.
342 (*movti_internal_rex64): Use standard_sse_constant_opcode for
344 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
346 (*movsi_internal): Ditto.
347 (*movdi_internal): Ditto. Add ssecvt type moves.
349 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
352 * rtlanal.c (simplify_subreg_regno): Adjust comment.
354 2011-05-29 Jakub Jelinek <jakub@redhat.com>
356 PR rtl-optimization/49095
357 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
358 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
360 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
363 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
364 recurse_p argument. Only follow register copies if it is set,
365 and prevent mips_find_pic_call_symbol from recursing.
366 (mips_find_pic_call_symbol): Add a recurse_p argument.
367 Pass it to mips_pic_call_symbol_from_set.
368 (mips_annotate_pic_calls): Update accordingly.
370 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
372 * emit-rtl.c (try_split): Use a loop to search for
373 NOTE_INSN_CALL_ARG_LOCATIONs.
375 2011-05-29 Richard Guenther <rguenther@suse.de>
377 PR tree-optimization/49217
378 * ipa-pure-const.c (propagate_pure_const): Fix typos.
380 2011-05-28 Jan Hubicka <jh@suse.cz>
382 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
384 (string_slot_free): Remove
385 (create_output_block): Initialize obstack.
386 (destroy_output_block): Free obstack.
387 (lto_string_index): Add PERSISTENT parameter; do not duplicate
388 the string unless it needs to be added into the hash.
389 (lto_output_string_with_length): Add persistent attribute;
391 (lto_output_string): Add PERSISTENT parameter.
392 (output_string_cst, output_identifier): Simplify.
393 (lto_output_location_bitpack): Update.
394 (lto_output_builtin_tree): Update.
395 * lto-streamer.h (struct output_block): Add obstack.
396 (lto_output_string, lto_output_string_with_length): Remove
397 declarations; functions are static now.
399 2011-05-28 Jan Hubicka <jh@suse.cz>
401 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
402 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
403 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
404 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
405 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
406 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
407 unpack_ts_decl_with_vis_value_fields,
408 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
409 lto_get_builtin_tree): Use enum and variable length i/o.
410 * basic-block.h (profile_status_d): Add PROFILE_LAST.
411 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
413 (bp_pack_enum, bp_unpack_enum): New macros.
415 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
417 * genrecog.c: Remove redundant forward declarations.
419 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
421 * config.gcc: Deprecate mips*-*-openbsd*.
423 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
426 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
429 2011-05-27 Andrew Pinski <pinskia@gmail.com>
432 * gengtype.c (vec_prefix_type): New function.
433 (note_def_vec): Use vec_prefix_type and change the length
434 attribute to be based on the prefix.
435 * vec.c: Include coretypes.h before vec.h.
436 (struct vec_prefix): Remove.
437 (vec_gc_p_reserve): Change the offsetof to sizeof.
438 (vec_gc_p_reserve_exact): Likewise.
439 (vec_heap_p_reserve): Likewise.
440 (vec_heap_p_reserve_exact): Likewise.
441 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
442 (vec_stack_p_reserve): Change the offsetof to sizeof.
443 (vec_stack_p_reserve_exact): Likewise.
444 * vec.h (struct vec_prefix): New struct definition.
445 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
446 (VEC_T_GTY(T,B)): Likewise.
447 (DEF_VEC_FUNC_P(T)): Use prefix field.
448 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
449 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
451 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
453 PR tree-optimization/46728
454 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
455 (powi_as_mults): Add gimple_set_location.
456 (build_and_insert_call): New.
457 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
458 0.5, 0.25, 0.75, 1./3., or 1./6.
460 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
462 * doc/contrib.texi: Update copyright years.
463 (Contributors): Add Zdenek Sojka.
465 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
467 * c-decl.c (c_push_function_context): Copy the current statement
469 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
470 (finish_struct): Call building_stmt_list_p instead of checking
472 * c-parser.c (c_parser_postfix_expression): Likewise.
473 * c-typeck.c (c_end_compound_stmt): Likewise.
474 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
475 * tree-iterator.c (stmt_list_cache): Change to a VEC.
476 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
477 (free_stmt_list): Likewise.
478 * tree.h (struct tree_statement_list): Include typed_tree instead
480 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
481 as TS_TYPED instead of TS_COMMON.
483 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
484 Uros Bizjak <ubizjak@gmail.com>
486 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
487 (HAVE_AS_IX86_TLSGDPTL): Define.
488 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
489 (HAVE_AS_IX86_TLSLDMPLT): Define.
490 * configure: Regenerate.
491 * config.in: Regenerate.
492 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
493 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
494 TARGET_SUN_TLS, use @tlsgdplt or @plt.
495 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
496 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
498 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
500 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
502 * sched-int.h (struct _haifa_deps_insn_data): New members cond
504 (INSN_COND, INSN_REVERSE_COND): New macros.
505 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
507 (sched_get_condition_with_rev): Cache the results, and look them up
509 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
510 are clobbered by the current insn.
511 * target.def (exposed_pipline): New sched data hook.
512 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
513 * doc/tm.texi: Regenerate.
515 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
517 PR tree-optimization/49170
518 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
521 2011-05-27 Richard Guenther <rguenther@suse.de>
524 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
527 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
529 * haifa-sched.c (sched_scan_info): Remove.
530 (schedule_block): Call sched_extend_luids rather than sched_init_luids
532 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
534 (sched_scan): Remove.
535 (sched_extend_luids): Renamed from luids_extend_insn and no longer
536 static. All callers changed.
537 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
538 static. All callers changed.
539 (sched_init_luids): Remove all arguments except the first. All
540 callers changed. Don't use sched_scan.
541 (haifa_init_h_i_d): Likewise.
542 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
543 manually rather than using sched_init_luids. Likewise with
544 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
545 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
546 rather than sched_init_luids with NULL args.
547 * sel-sched-ir.c (new_insns): Remove variable.
548 (sched_scan): New static function, previously in haifa-sched.c. Remove
549 all arguments but the first two; all callers changed.
550 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
551 rather than sched_init_luids.
552 (sel_init_bbs): Remove second argument. All callers changed.
553 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
555 (create_insn_rtx_from_pattern): Likewise.
556 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
557 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
558 (sched_init_insn_luid, sched_extend_luids): Declare.
559 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
562 2011-05-27 Richard Guenther <rguenther@suse.de>
565 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
566 A CMP B ? (T) true : (T) false for non-integral types T again.
568 2011-05-27 Jan Hubicka <jh@suse.cz>
570 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
571 so 0 means NULL string.
572 (lto_output_string_with_length): ... here.
573 (lto_output_string, output_string_cst, output_identifier): Update
574 handling of NULL strings.
575 (lto_output_location_bitpack): New function.
576 (lto_output_location): Use it.
577 (lto_output_tree_ref): Use output_record_start.
578 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
580 * lto-streamer-in.c (string_for_index): Break out from ...; offset
582 (input_string_internal): ... here;
583 (input_string_cst, input_identifier, lto_input_string): Update handling
585 (lto_input_location_bitpack): New function
586 (lto_input_location): Use it.
587 (unpack_ts_type_common_value_fields): Pack align & alias in var len
589 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
590 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
591 (bp_pack_value): Sanity check the value range.
592 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
594 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
597 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
599 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
600 call_arg_location instructions down the floor.
602 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
604 PR rtl-optimization/49154
605 * ira.c (setup_pressure_classes): Process class without sublcasses
606 as a candidate for pressure classes.
608 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
610 PR rtl-optimization/48575
611 * genrecog.c (position_type): New enum.
612 (position): New structure.
613 (decision): Use position structure instead of a string.
614 (root_pos, peep2_insn_pos_list): New variables.
615 (next_position, compare_positions): New functions.
616 (new_decision): Use position structures instead of strings.
617 (maybe_both_true): Likewise.
618 (change_state): Likewise.
619 (write_tree): Likewise.
620 (make_insn_sequence): Likewise.
622 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
624 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
625 TS_BASE instead of TS_COMMON.
626 (find_decls_types_r): Check for TS_TYPED structure before looking at
628 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
630 (BLOCK_CHAIN): Use new chain field.
632 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
634 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
635 moves expensive on Power7 also.
637 2011-05-26 Richard Guenther <rguenther@suse.de>
639 * fold-const.c (fold_unary_loc): Remove bogus code.
641 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
643 * tree.h (struct tree_identifier): Inherit from tree_typed, not
645 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
646 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
647 TS_BASE instead of TS_COMMON.
648 * varasm.c (assemble_name): Remove assert.
650 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
652 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
654 * libgcc-std.ver: Delete file.
656 2011-05-26 Richard Guenther <rguenther@suse.de>
658 PR tree-optimization/48702
659 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
660 only when we know the base address is within bounds.
661 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
662 assume the base address of TARGET_MEM_REFs is in bounds.
664 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
667 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
668 declaration in TARGET_SOLARIS.
670 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
672 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
673 The instruction is then expanded explicitly.
674 (supported_compare): Callable instruction.
677 2011-05-26 Jakub Jelinek <jakub@redhat.com>
680 * gimplify.c (shortcut_cond_r): Don't special case
681 COND_EXPRs if they have void type on one of their arms.
683 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
685 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
686 to reduce duplication, and to achieve a slightly more logical order
689 2011-05-26 Jakub Jelinek <jakub@redhat.com>
691 PR tree-optimization/49161
692 * tree-vrp.c (struct case_info): New type.
693 (compare_case_labels): Sort case_info structs instead of
694 trees, and not primarily by CASE_LABEL uids but by
695 label_for_block indexes.
696 (find_switch_asserts): Put case labels into struct case_info
697 array instead of TREE_VEC, adjust sorting, compare label_for_block
698 values instead of CASE_LABELs.
700 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
702 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
703 ("orndi3_neon"): Likewise.
704 ("bic<mode>3_neon"): Likewise.
706 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
708 PR tree-optimization/49038
709 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
710 Ensure at least one epilogue iteration if required by data
712 * tree-vectorizer.h (struct _loop_vec_info): Add new field
713 to mark loops that require peeling for gaps.
714 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
715 (vect_get_known_peeling_cost): Take peeling for gaps into
717 (vect_transform_loop): Generate epilogue if required by data
719 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
720 loop as requiring an epilogue if there are gaps in the end of
723 2011-05-25 Ian Lance Taylor <iant@google.com>
725 * godump.c (go_format_type): Output the first field with a usable
728 2011-05-25 Ian Lance Taylor <iant@google.com>
730 * godump.c (go_format_type): Check for invalid type names, pointer
731 target types, and struct field types.
733 2011-05-25 Jason Merrill <jason@redhat.com>
735 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
737 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
739 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
741 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
743 * config/i386/i386.md (*movqi_extv_1)): Put back
744 "register_operand" check in "type" calculation.
745 (*movqi_extzv_2): Likewise.
747 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
749 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
751 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
754 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
755 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
756 __divxc3, __divtc3): Wrap definitions in #ifndef.
758 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
761 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
762 "register_operand" check and replace q_regs_operand with
763 QIreg_operand in "type" calculation.
764 (*movqi_extv_1): Likewise.
765 (*movqi_extzv_2_rex64): Likewise.
766 (*movqi_extzv_2): Likewise.
768 * config/i386/predicates.md (QIreg_operand): New.
770 2011-05-25 Richard Guenther <rguenther@suse.de>
772 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
773 type-based offset disambiguation, streamline MEM_REF and
774 TARGET_MEM_REF handling.
776 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
778 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
779 (bdesc_special_args): Add pause intrinsic.
781 * config/i386/i386.md (UNSPEC_PAUSE): New.
784 * config/i386/ia32intrin.h (__pause): Likewise.
786 * doc/extend.texi (X86 Built-in Functions): Add documentation for
789 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
791 PR tree-optimization/46728
792 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
793 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
795 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
797 * tree.h (struct tree_exp): Inherit from struct tree_typed.
798 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
799 instead of TS_COMMON.
801 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
803 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
804 LIBGCC2_GNU_PREFIX is defined.
806 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
807 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
808 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
809 __clz_tab): Define using __N.
810 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
811 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
812 * target.def (libfunc_gnu_prefix): New hook.
813 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
814 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
815 * doc/tm.texi: Regenerate.
816 * system.h (LIBGCC2_GNU_PREFIX): Poison.
817 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
819 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
820 (init_optabs): Likewise for the bswap libfuncs.
821 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
823 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
824 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
825 * libgcc-std.ver: Remove.
826 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
827 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
829 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
830 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
831 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
832 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
833 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
834 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
835 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
836 * config/fixed-bit.h (FIXED_OP): Define differently depending on
837 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
838 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
840 2011-05-25 Jan Hubicka <jh@suse.cz>
842 * lto-streamer-out.c (output_record_start): Use lto_output_enum
843 (lto_output_tree): Use output_record_start.
844 * lto-streamer-in.c (input_record_start): Use lto_input_enum
845 (lto_get_pickled_tree): Use input_record_start.
846 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
847 (lto_value_range_error): New function.
848 * lto-streamer.h (lto_value_range_error): Declare.
849 (lto_output_int_in_range, lto_input_int_in_range): New functions.
850 (lto_output_enum, lto_input_enum): New macros.
852 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
854 * common.opt (flag_stack_usage_info): New variable.
855 (-Wstack-usage): New option.
856 * doc/invoke.texi (Warning options): Document -Wstack-usage.
857 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
858 <OPT_fstack_usage>: Likewise.
859 * toplev.c (output_stack_usage): Handle -Wstack-usage.
860 * calls.c (expand_call): Test flag_stack_usage_info variable instead
862 (emit_library_call_value_1): Likewise.
863 * explow.c (allocate_dynamic_stack_space): Likewise.
864 * function.c (instantiate_virtual_regs ): Likewise.
865 (prepare_function_start): Likewise.
866 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
867 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
868 * config/arm/arm.c (arm_expand_prologue): Likewise.
869 (thumb1_expand_prologue): Likewise.
870 * config/avr/avr.c (expand_prologue): Likewise.
871 * config/i386/i386.c (ix86_expand_prologue): Likewise.
872 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
873 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
874 * config/mips/mips.c (mips_expand_prologue): Likewise.
875 * config/pa/pa.c (hppa_expand_prologue): Likewise.
876 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
877 * config/s390/s390.c (s390_emit_prologue): Likewise.
878 * config/sh/sh.c (sh_expand_prologue): Likewise.
879 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
880 * config/spu/spu.c (spu_expand_prologue): Likewise.
882 2011-05-25 Richard Guenther <rguenther@suse.de>
884 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
885 (gimple_canonical_types_compatible_p): Likewise.
887 2011-05-25 Jan Hubicka <jh@suse.cz>
890 * ipa.c (function_and_variable_visibility): Only add to same
891 comdat group list if DECL_ONE_ONLY.
893 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
895 PR rtl-optimization/49014
896 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
898 2011-05-25 Jakub Jelinek <jakub@redhat.com>
901 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
903 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
905 PR rtl-optimization/48757
906 * ira-build.c (loop_with_eh_edge_p): Rename to
907 loop_with_complex_edge_p, check edges on complexity, make function
909 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
912 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
914 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
915 force flag_ira_share_save_slots to 0.
917 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
919 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
920 (vt_initialize): Set PROLOGUE_BB unconditionally.
921 Add block comment about CFA_BASE_RTX machinery.
922 Reset FP_CFA_OFFSET to -1 on all invalid paths.
923 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
925 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
928 * c-parser.c (c_parser_objc_class_instance_variables): More robust
929 parsing of syntax error in ObjC instance variable lists. In
930 particular, avoid an infinite loop if there is a stray ']'.
931 Updated error message.
933 2011-05-24 Ian Lance Taylor <iant@google.com>
935 * godump.c (go_define): Don't accept a string immediately after
938 2011-05-24 Ian Lance Taylor <iant@google.com>
940 * godump.c (struct godump_container): Add invalid_hash field.
941 (go_format_type): Return false if type is found in invalid_hash.
942 (go_output_typedef): Add invalid type to invalid_hash.
943 (go_finish): Create and delete invalid_hash.
945 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
947 PR tree-optimization/46728
948 * tree-ssa-math-opts.c (powi_table): New.
949 (powi_lookup_cost): New.
951 (powi_as_mults_1): New.
952 (powi_as_mults): New.
953 (gimple_expand_builtin_powi): New.
954 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
955 (gate_cse_sincos): Remove sincos/cexp restriction.
957 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
960 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
962 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
963 * mips-tdump.c: Likewise.
965 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
968 * config/i386/driver-i386.c (host_detect_local_cpu): Always
969 add -mno-XXX. Handle FMA.
971 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
973 PR rtl-optimization/48633
974 * ira-build.c (loop_with_eh_edge_p): New function.
975 (mark_loops_for_removal): Use it.
977 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
979 PR rtl-optimization/48971
980 * ira.c (setup_pressure_classes): Don't check register move cost
981 for classes with one registers. Don't add pressure class if there
982 is a pressure class with the same available hard registers.
983 Check contains_reg_of_mode. Fix a typo in collecting
984 temp_hard_regset. Ignore hard registers not belonging to a class.
986 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
989 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
991 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
992 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
994 PR gcov-profile/48845
995 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
997 2011-05-24 Richard Guenther <rguenther@suse.de>
999 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1000 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1001 (gimple_types_compatible_p_1): Adjust.
1002 (iterative_hash_canonical_type): Do not bother about complete vs.
1004 (gimple_canonical_types_compatible_p): Likewise.
1006 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1008 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1010 2011-05-24 Richard Guenther <rguenther@suse.de>
1013 * gimple.c (gimple_register_canonical_type): Revert
1015 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1016 does not for a tree for the case where it matters. Cache
1017 pointer-type alias-sets.
1019 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1021 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1022 (OBJS): Remove options.o, opts-common.o and prefix.o.
1023 (OBJS-libcommon-target): New.
1024 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1025 (BACKEND): Include libcommon-target.a.
1026 (MOSTLYCLEANFILES): Include libcommon-target.a.
1027 (libcommon-target.a): New.
1028 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1031 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1033 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1034 parts of output shared with the driver.
1035 * optc-gen.awk: Don't generate parts of output not shared with the
1037 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1038 * doc/options.texi (SourcerInclude): Mention options-save.c.
1039 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1040 (OBJS): Add options-save.o.
1041 (options-save.c, options-save.o): New.
1042 (options.o): Update dependencies.
1043 (gcc-options.o): Remove.
1044 (mostlyclean): Remove options-save.c.
1046 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1049 * dbxout.c: Include cgraph.h.
1050 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1051 and without value expr, return NULL if no varpool node exists for
1052 it or if it is not needed.
1053 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1056 * c-decl.c (start_decl): Convert expr to void_type_node.
1058 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1060 PR rtl-optimization/48826
1061 * emit-rtl.c (try_split): When splitting a call that is followed
1062 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1064 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1066 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1067 parameters passed in memory prefer using DECL_INCOMING_RTL over
1068 the pseudos it will be copied into.
1070 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1073 * config/i386/i386.c (ix86_option_override_internal): Save the
1074 initial options after checking vzeroupper.
1076 2011-05-23 David Li <davidxl@google.com>
1078 PR tree-optimization/48988
1079 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1080 Initialize has_valid_pred for each pred chain.
1082 2011-05-23 Richard Guenther <rguenther@suse.de>
1084 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1085 (iterative_hash_gimple_type): Always hash type names.
1087 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1089 * c-typeck.c (build_function_call_vec): Tweak call to
1090 check_function_arguments.
1092 2011-05-23 Richard Guenther <rguenther@suse.de>
1094 PR tree-optimization/49115
1095 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1096 is not necessarily carried out, do not claim it kills the ref.
1097 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1099 2011-05-23 Richard Guenther <rguenther@suse.de>
1102 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1103 what pointer types we accept for folding.
1105 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1107 * gthr-gnat.c: Remove.
1108 * gthr-gnat.h: Remove.
1109 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1110 * config/t-freebsd (LIB2ADDEH): Likewise.
1111 * config/t-linux (LIB2ADDEH): Likewise.
1112 * config/t-sol2 (LIB2ADDEH): Likewise.
1113 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1114 * configure.ac (target_thread_file): Remove gnat handling.
1115 * configure: Regenerate.
1116 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1118 2011-05-23 Tristan Gingold <gingold@adacore.com>
1119 Eric Botcazou <ebotcazou@adacore.com>
1121 * gcov.c (create_file_names): If no object directory is specified,
1122 keep the directory of the file.
1124 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1126 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1127 * configure: Regenerate.
1129 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1132 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1133 failed and the comparison has a single bit signed type, use
1134 constm1_rtx instead of const1_rtx for true value.
1135 (do_store_flag): If ops->type is single bit signed type, disable
1136 signel bit test optimization and pass -1 instead of 1 as last
1137 parameter to emit_store_flag_force.
1139 2011-05-23 Tom de Vries <tom@codesourcery.com>
1142 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1144 (infer_loop_bounds_from_undefined): Use new function.
1146 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1148 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1149 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1150 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1152 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1154 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1156 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1157 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1160 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1162 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1164 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1166 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1167 UNSPEC_MOVE_PIC pattern.
1169 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1171 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1172 (sparc-*-rtems*): Likewise.
1173 (sparc64-*-elf*): Likewise.
1174 (sparc64-*-rtems*): Likewise.
1175 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1176 * config/sparc/t-crtin: New file.
1177 * config/sparc/t-sol2 (crti.o): Delete rule.
1179 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1180 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1181 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1182 (ENDFILE_SPEC): Add crtn.o.
1184 2011-05-22 Tom de Vries <tom@codesourcery.com>
1187 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1188 CODE_CONTAINS_STRUCT (TS_COMMON).
1190 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1193 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1194 only after deciding which mode to use.
1196 2011-05-22 Tom de Vries <tom@codesourcery.com>
1199 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1200 for call to get_shiftadd_cost.
1202 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1205 * config/i386/cpuid.h (bit_MMXEXT): New define.
1207 2011-05-22 Nick Clifton <nickc@redhat.com>
1209 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1210 initialisation of non-existant args[2] element. Use args[] array
1211 not arg[] array to pass arguments to build_function_type_list.
1213 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1215 PR tree-optimization/49087
1216 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1218 2011-05-21 Jason Merrill <jason@redhat.com>
1221 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1222 static storage duration.
1224 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1226 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1229 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1231 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1232 false if there are call-saved registers here...
1233 (sparc_can_use_return_insn_p): ...but here instead.
1234 (save_or_restore_regs): Fix thinko.
1235 (sparc_expand_prologue): Use current_function_is_leaf.
1236 (sparc_frame_pointer_required): Likewise.
1238 2011-05-21 Nick Clifton <nickc@redhat.com>
1241 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1243 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1245 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1246 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1248 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1250 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1251 * optc-gen.awk: Move common code to opt-read.awk.
1252 * opth-gen.awk: Likewise.
1253 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1255 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1257 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1259 2011-05-20 Tom de Vries <tom@codesourcery.com>
1262 * tree-ssa-loop-ivopts.c: Include expmed.h.
1263 (get_shiftadd_cost): New function.
1264 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1266 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1269 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1270 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1272 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1274 * Makefile.in: Update comment referring to $(OBJS-common).
1276 2011-05-20 Ian Lance Taylor <iant@google.com>
1278 * godump.c (go_output_typedef): Put enum constants in the macro
1279 hash table to avoid duplicate Go const definitions.
1281 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1283 * Makefile.in (LIBDEPS): Add libcommon.a.
1285 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1286 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1287 pretty-print.o and version.o.
1288 (OBJS-libcommon): New.
1289 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1290 (BACKEND): Add libcommon.a.
1291 (MOSTLYCLEANFILES): Likewise.
1293 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1294 (cpp$(exeext)): Likewise.
1295 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1296 pretty-print.o and input.o.
1297 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1298 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1300 (mips-tfile): Don't explicitly use version.o.
1301 (mips-tdump): Likewise.
1302 (gcov.o): Depend on $(DIAGNOSTIC_H).
1303 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1304 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1305 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1306 * gcov-dump.c: Include intl.h and diagnostic.h.
1307 (main): Initialize diagnostics.
1308 * gcov.c: Include diagnostic.h.
1310 (main): Initialize diagnostics.
1311 * lto-wrapper.c: Include diagnostic.h.
1312 (main): Initialize diagnostics.
1314 2011-05-20 Michael Matz <matz@suse.de>
1316 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1318 2011-05-20 Michael Matz <matz@suse.de>
1319 Richard Guenther <rguenther@suse.de>
1321 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1322 use lto_streamer_cache_append directly instead of returning a VEC.
1323 (preload_common_node): Remove.
1324 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1326 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1328 2011-05-20 Richard Guenther <rguenther@suse.de>
1330 PR tree-optimization/49079
1331 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1332 MEM_REFs correctly for the trailing array access detection.
1333 Special case constants the same way as decls for overall size
1336 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1338 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1341 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1343 PR tree-optimization/49073
1344 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1345 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1346 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1348 2011-05-20 Richard Guenther <rguenther@suse.de>
1351 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1352 of pointer types the same way the middle-end does.
1354 2011-05-20 Richard Guenther <rguenther@suse.de>
1356 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1357 or pointer-to chains. Delay all fixup to uniquify_nodes.
1359 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1361 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1362 (fma4_fmaddsub): Likewise
1364 2011-05-19 Jan Hubicka <jh@suse.cz>
1366 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1367 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1368 (type_pair_cache): New static var.
1369 (lookup_type_pair): Use fixed sized custom hash; make inline.
1370 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1371 calls of lookup_type_pair.
1372 (print_gimple_types_stats): Remove cache stats.
1373 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1376 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1378 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1379 when TARGET_RDRND is active.
1380 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1381 Generate dummy SImode target register when target is NULL.
1383 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1385 * config/arm/arm-fpus.def: New.
1386 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1388 * config/arm/arm-tables.opt: Regenerate.
1389 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1390 (arm_option_override): Don't decode FPU name to string here.
1391 * config/arm/arm.opt (mfpu=): Use Enum.
1392 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1393 Update dependencies.
1395 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1397 * collect2.c: Include diagnostic.h.
1398 (fatal_perror, fatal, error, fancy_abort): Remove.
1399 (main): Set progname. Call xmalloc_set_program_name and
1400 diagnostic_initialize.
1401 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1402 scan_libraries, resolve_lib_name): Call fatal_error instead of
1403 fatal and fatal_perror.
1404 * collect2.h (error, fatal, fatal_perror): Don't declare.
1405 * tlink.c: Include diagnostic-core.h.
1406 (recompile_files): Call fatal_error instead of fatal_perror.
1407 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1408 pretty-print.o and input.o.
1409 (collect2.o, tlink.o): Update dependencies.
1411 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1413 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1415 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1418 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1419 COMDAT group syntax, both SPARC and x86 variants.
1420 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1421 * configure: Regenerate.
1422 * config/sol2.h (TARGET_SOLARIS): Define.
1423 (PUSHSECTION_FORMAT): Remove.
1424 (SECTION_NAME_FORMAT): Define.
1425 * config/sol2.c: Include hashtab.h.
1426 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1427 expansion, using SECTION_NAME_FORMAT.
1428 (solaris_comdat_htab): New variable.
1429 (struct comdat_entry): Define.
1430 (comdat_hash): New function.
1431 (comdat_eq): New function.
1432 (solaris_elf_asm_comdat_section): New function.
1433 (solaris_define_comdat_signature): New function.
1434 (solaris_code_end): New function.
1435 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1436 (solaris_code_end): Declare.
1437 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1438 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1440 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1441 Remove ATTRIBUTE_UNUSED.
1442 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1443 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1444 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1445 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1446 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1447 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1448 (PUSHSECTION_FORMAT): Remove.
1449 (SECTION_NAME_FORMAT): Redefine.
1451 2011-05-19 Kai Tietz <ktietz@redhat.com>
1453 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1454 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1455 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1457 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1458 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1460 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1462 2011-05-19 Richard Guenther <rguenther@suse.de>
1465 * tree-object-size.c (addr_object_size): If the pointed-to
1466 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1468 2011-05-19 Richard Guenther <rguenther@suse.de>
1470 * gimple.c (gimple_types_compatible_p_1): Compare names of
1471 the types themselves.
1472 (iterative_hash_gimple_type): And hash them that way.
1473 (gimple_register_type_1): If we register a main variant properly
1474 initialize the leader to ourselves.
1476 2011-05-19 Tom de Vries <tom@codesourcery.com>
1479 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1480 get_loop_invariant_expr_id.
1481 (get_loop_invariant_expr_id): Use get_expr_id.
1482 (parm_decl_cost): New function.
1483 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1484 Improve bound cost estimation. Use different inv_expr_id for elim and
1487 2011-05-19 Tom de Vries <tom@codesourcery.com>
1490 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1491 cost_base.cost == 0.
1493 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1496 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1497 Properly handle load cast.
1499 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1501 PR tree-optimization/49039
1502 * tree-vrp.c (extract_range_from_binary_expr): For
1503 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1504 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1506 2011-05-18 Tom de Vries <tom@codesourcery.com>
1509 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1511 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1513 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1514 (*tls_global_dynamic_64): Ditto.
1515 (*tls_local_dynamic_base_32_gnu): Ditto.
1516 (*tls_local_dynamic_base_64): Ditto.
1517 (tls_initial_exec_64_sun): Ditto.
1519 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1521 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1522 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1524 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1525 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1526 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1527 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1528 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1529 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1530 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1532 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1534 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1535 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1536 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1537 target_thread_pointer, arm_structure_size_boundary, struct
1538 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1539 struct abi_name, arm_all_abis): Remove.
1540 (arm_option_override) Don't process most enumerated option values here.
1541 Don't process target_fpe_name here. Work with integer not string for
1542 structure size boundary; use separate diagnostics for each case.
1543 * config/arm/arm.h (enum float_abi_type, enum
1544 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1546 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1547 arm_structure_size_boundary): Remove.
1548 * config/arm/arm.opt (mabi=): Use Enum and Init.
1549 (arm_abi_type): New Enum and EnumValue entries.
1550 (mfloat-abi=): Use Enum and Init.
1551 (float_abi_type): New Enum and EnumValue entries.
1552 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1553 (mfp16-format=): Use Enum and Init.
1554 (arm_fp16_format_type): New Enum and EnumValue entries.
1555 (mstructure-size-boundary=): Use UInteger and Init.
1556 (mtp=): Use Enum and Init.
1557 (arm_tp_type): New Enum and EnumValue entries.
1559 2011-05-18 Richard Guenther <rguenther@suse.de>
1561 PR tree-optimization/49018
1562 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1563 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1564 gimple_has_side_effects.
1566 2011-05-18 Richard Guenther <rguenther@suse.de>
1568 * gimple.c (gimple_register_type_1): New function, split out from ...
1569 (gimple_register_type): ... here. Avoid infinite recursion.
1571 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1573 PR tree-optimization/41881
1574 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1575 reduction_chains along with a macro for its access.
1576 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1577 (destroy_loop_vec_info): Free reduction chains.
1578 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1579 (vect_is_slp_reduction): New function.
1580 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1581 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1582 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1583 definition types for reduction chains.
1584 (vect_supported_load_permutation_p): Don't allow permutations for
1586 (vect_analyze_slp_instance): Support reduction chains.
1587 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1588 (vect_get_constant_vectors): Handle reduction chains.
1589 (vect_schedule_slp_instance): Mark the first statement of the
1590 reduction chain as reduction.
1592 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1594 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1595 names for group elements access.
1596 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1597 reduction chains as well. Remove data reference and interleaving
1598 related words from the fields names.
1599 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1601 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1602 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1603 vect_update_interleaving_chain, vect_same_range_drs,
1604 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1605 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1606 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1607 vect_analyze_group_access, vect_analyze_data_ref_access,
1608 vect_create_data_ref_ptr, vect_transform_strided_load,
1609 vect_record_strided_load_vectors): Likewise.
1610 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1611 vect_model_load_cost, vectorizable_store, vectorizable_load,
1612 vect_remove_stores, new_stmt_vec_info): Likewise.
1613 * tree-vect-slp.c (vect_build_slp_tree,
1614 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1616 2011-05-18 Richard Guenther <rguenther@suse.de>
1619 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1620 operand verification.
1621 (verify_gimple_assign_binary): Likewise.
1622 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1623 to non-1-precision BOOLEAN_TYPEs.
1625 2011-05-18 Tom de Vries <tom@codesourcery.com>
1628 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1630 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1632 PR tree-optimization/49000
1633 * tree-ssa.c (execute_update_addresses_taken): Call
1634 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1635 be rewritten and decl has been marked for renaming, reset
1638 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1640 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1641 enum_opts_set when testing if attributes have set -mfpmath=.
1643 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1645 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1647 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1649 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1651 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1652 id.transform_lang_insert_block with NULL.
1654 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1656 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1657 (output_fp_compare): Change args 3 and 4 to bool.
1658 (ix86_expand_call): Change arg 6 to bool.
1659 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1660 (ix86_attr_length_vex_default): Change arg 3 to bool.
1661 * config/i386/i386.md: Update all uses.
1662 * config/i386/i386.c: Ditto.
1663 (ix86_flags_dependent): Change return type to bool.
1665 2011-05-17 Richard Guenther <rguenther@suse.de>
1667 * gimple.c (type_hash_pair_compare): Fix comparison.
1669 2011-05-17 Richard Guenther <rguenther@suse.de>
1671 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1672 case some more, fix final hash value of the non-singleton case.
1674 2011-05-17 Richard Guenther <rguenther@suse.de>
1678 2011-05-16 Richard Guenther <rguenther@suse.de>
1680 * gimple.c (gimple_types_compatible_p_1): Use names of the
1681 type itself, not its main variant.
1682 (iterative_hash_gimple_type): Likewise.
1684 2011-05-17 Richard Guenther <rguenther@suse.de>
1686 * gimple.c (gimple_register_canonical_type): Use the main-variant
1687 leader for computing the canonical type.
1689 2011-05-17 Nick Clifton <nickc@redhat.com>
1691 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1694 * config/rx/rx.md: Add peephole to remove redundant extensions
1696 (bitset_in_memory): Use rx_restricted_mem_operand.
1697 (bitinvert_in_memory): Likewise.
1698 (bitclr_in_memory): Likewise.
1700 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1701 Nick Clifton <nickc@redhat.com>
1703 * config/rx/rx.md: Add peepholes to match a register move followed
1704 by a comparison of the moved register. Replace these with an
1705 addition of zero that does both actions in one instruction.
1707 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1710 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1711 predicate to allow CONST_INT.
1712 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1714 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1716 * opts-common.c (opt_enum_arg_to_value): New.
1717 * opts.h (opt_enum_arg_to_value): Declare.
1718 * config/i386/i386.opt (fpmath): Remove.
1719 (mfpmath=): Use Enum, Init and Save.
1720 (fpmath_unit): New Enum and EnumValue entries.
1721 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1722 name for function fpmath state.
1723 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1724 * config/i386/i386.c: Include diagnostic.h.
1725 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1726 (ix86_target_string): Take enum fpmath_unit value instead of string.
1727 (ix86_debug_options): Update call to ix86_target_string.
1728 (ix86_option_override_internal): Don't process fpmath strings here.
1729 (x86_function_specific_save, ix86_function_specific_restore):
1730 Don't handle fpmath state specially.
1731 (ix86_function_specific_print): Pass fpmath state to
1732 ix86_target_string instead of printing in this function.
1733 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1734 Handle enum attributes.
1735 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1736 (ix86_valid_target_attribute_tree): Update option_strings
1737 handling. Handle fpmath as enum option.
1738 (ix86_can_inline_p): Update field names for function fpmath state.
1739 (ix86_expand_builtin): Update call to ix86_target_string.
1740 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1741 (ix86_fpmath): Remove.
1742 * config/i386/t-i386 (i386.o): Update dependencies.
1744 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1746 PR preprocessor/48677
1747 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1748 from decoded_options[0], not from itself.
1750 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1752 * config/i386/constraints.md (z): New constraint.
1753 * config/i386/i386.c (c): New mode attribute.
1754 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1755 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1756 constraint for operand 0.
1757 (*call_vzeroupper): Ditto.
1758 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1759 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1760 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1761 Use "lzm" constraint for operand 0.
1762 (*call_pop_vzeroupper): Ditto.
1763 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1764 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1765 constraint for operand 0.
1766 (*sibcall_vzeroupper): Ditto.
1767 (*sibcall_rex64_ms_sysv): Ditto.
1768 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1769 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1770 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1771 (*sibcall_pop_vzeroupper): Ditto.
1772 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1773 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1774 mode iterator. Use "<c>zm" constraint for operand 1.
1775 (*call_value_vzeroupper): Ditto.
1776 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1778 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1779 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1780 *call_value_pop_1. Use "lzm" constraint for operand 1.
1781 (*call_value_pop_vzeroupper): Ditto.
1782 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1783 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1784 mode iterator. Use "Uz" constraint for operand 1.
1785 (*sibcall_value_vzeroupper): Ditto.
1786 (*sibcall_value_rex64_ms_sysv): Ditto.
1787 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1788 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1789 constraint for operand 1.
1790 (*sibcall_value_pop_vzeroupper): Ditto.
1791 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1792 and "z" constraint for operand 2.
1793 (*tls_global_dynamic_32_gnu): Ditto.
1794 (*tls_local_dynamic_base_32_gnu): Ditto.
1795 (*tls_local_dynamic_base_64): Ditto.
1796 (*tls_local_dynamic_32_once): Ditto.
1797 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1799 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1801 2011-05-16 Richard Guenther <rguenther@suse.de>
1803 * gimple.c (gimple_types_compatible_p_1): Use names of the
1804 type itself, not its main variant.
1805 (iterative_hash_gimple_type): Likewise.
1807 2011-05-16 Richard Guenther <rguenther@suse.de>
1809 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1810 always visit pointer target and function result and argument types.
1812 2011-05-16 Jason Merrill <jason@redhat.com>
1815 * tree-inline.c (copy_statement_list): Put back recursion.
1817 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1821 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1822 * config/avr/avr.md ("*ior<mode>qi.byte0",
1823 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1825 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1828 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1829 register is needed for a function argument.
1831 2011-05-16 Richard Guenther <rguenther@suse.de>
1833 * gimple.c (struct type_hash_pair): New type.
1834 (type_hash_pair_compare): New function.
1835 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1837 2011-05-16 Revital Eres <revital.eres@linaro.org>
1839 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1841 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1843 * config/i386/i386.md (floating point move splitters): Fix
1844 usage of standard_80387_constant_p.
1845 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1847 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1849 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1851 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1853 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1854 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1855 (tree_ssa_lim_finalize): Likewise.
1857 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1859 * config/i386/constraint.md (Yd, Yx): New register constraints.
1860 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1861 Yd conditional register constraint.
1862 (*movtf_internal): Use standard_sse_constant_opcode.
1863 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1864 Yx conditional register constraint.
1865 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1866 Yd conditional register constraint. Use standard_sse_constant_p to
1867 check for valid SSE constants and call standard_sse_constant_opcode to
1869 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1870 constants and call standard_sse_constant_opcode to output SSE insn.
1871 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1872 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1873 optimize_size is set.
1874 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1876 2011-05-14 Tobias Burnus <burnus@net-b.de>
1878 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1880 2011-05-13 Martin Jambor <mjambor@suse.cz>
1882 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1883 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1884 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1885 (evaluate_conditions_for_ipcp_clone): Removed.
1886 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1887 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1888 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1890 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1892 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1893 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1894 lieu of MAY_HAVE_DEBUG_STMTS.
1895 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1896 debug statements if !MAY_HAVE_DEBUG_STMTS.
1898 2011-05-13 Martin Thuresson <martint@google.com>
1900 PR gcov-profile/47793
1901 * libgcov.c (gcov_exit): Support relative profile paths.
1902 * doc/invoke.texi (-fprofile-dir): Update for above change.
1904 2011-05-13 Richard Guenther <rguenther@suse.de>
1906 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1907 type-pair caching, do not compare hashes.
1909 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1912 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1913 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1915 2011-05-13 Kai Tietz <ktietz@redhat.com>
1917 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1918 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1919 compatible type for TRUTH_NOT_EXPR.
1921 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1923 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1924 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1925 can_create_pseudo_p ().
1927 2011-05-13 Richard Guenther <rguenther@suse.de>
1930 * gimple.c (iterative_hash_gimple_type): Revert change in
1931 pointer target and function result and argument hashing.
1933 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1935 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1936 (*movxf_internal_nointeger): Ditto.
1937 (*movdf_internal_rex64): Ditto.
1938 (*movdf_internal): Ditto.
1939 (*movdf_internal_nointeger): Ditto.
1940 (*movsf_internal): Ditto.
1941 (sincos splitters): Use can_create_pseudo ().
1943 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1945 * config/i386/i386-opts.h: New.
1946 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1947 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1948 ix86_section_threshold): Remove.
1949 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1950 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1952 (ix86_option_override_internal): Don't decode strings for options
1953 other than -march=, -mtune= and -mfpmath=. Don't allow for
1954 __attribute__ uses in remaining diagnostics for options with
1955 string arguments. Don't check for integer arguments being negative.
1956 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1957 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1958 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1959 ix86_branch_cost, ix86_section_threshold): Remove.
1960 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1962 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1964 (masm=): Use Enum and Init.
1965 (asm_dialect): New Enum and EnumValue entries.
1966 (mbranch-cost=): Use UInteger.
1967 (mlarge-data-threshold=): Use UInteger and Init.
1968 (mcmodel=): Use Enum and Init.
1969 (cmodel): New Enum and EnumValue entries.
1970 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1971 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1972 mregparm=): Use UInteger.
1973 (mstringop-strategy=): Use Enum and Init.
1974 (stringop_alg): New Enum and EnumValue entries.
1975 (mtls-dialect=): Use Enum and Init.
1976 (tls_dialect): New Enum and EnumValue entries.
1977 (mabi=): Use Enum and Init.
1978 (calling_abi): New Enum and EnumValue entries.
1979 (mveclibabi=): Use Enum and Init.
1980 (ix86_veclibabi): New Enum and EnumValue entries.
1982 2011-05-13 Nick Clifton <nickc@redhat.com>
1984 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1985 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1987 2011-05-13 Kai Tietz <ktietz@redhat.com>
1990 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1991 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1992 (gimple_boolify): Check for cast for boolean_type_node instead for
1995 2011-05-13 Richard Guenther <rguenther@suse.de>
1997 PR tree-optimization/48172
1998 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1999 multiplying by number of iterations for equal step.
2000 (vect_create_cond_for_alias_checks): Likewise.
2002 2011-05-13 Andreas Schwab <schwab@redhat.com>
2004 * configure.ac: Use AS_HELP_STRING throughout.
2005 * configure: Regenerate.
2007 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2009 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2010 (ix86_emit_restore_regs_using_mov): Likewise.
2011 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2013 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2015 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2016 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2017 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2018 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2019 RTX_OK_FOR_OLO10_P): ...here.
2020 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2023 2011-05-12 Kai Tietz <ktietz@redhat.com>
2025 * gimplify.c (gimple_boolify): Re-boolify expression
2026 arguments even if expression type is of kind BOOLEAN_TYPE.
2027 (gimplify_boolean_expr): Removed.
2028 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2029 and XOR. Additional take care that we keep expression's type.
2030 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2031 of TRUTH_AND|OR|XOR_EXPR.
2033 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2035 PR tree-optimization/48975
2036 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2037 on all bbs here and free and clear ifc_bbs at the end.
2039 2011-05-12 Richard Guenther <rguenther@suse.de>
2041 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2042 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2043 until after simple checks.
2044 (gimple_types_compatible_p): Likewise.
2045 (iterative_hash_gimple_type): Always hash pointer targets
2046 and function return and argument types.
2047 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2048 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2049 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2050 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2051 completely in the simple compare section.
2052 (gimple_register_canonical_type): Query the cache again after
2055 2011-05-12 Richard Guenther <rguenther@suse.de>
2057 PR tree-optimization/48172
2058 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2059 the number of iterations from the segment size calculation.
2060 (vect_create_cond_for_alias_checks): Adjust.
2062 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2065 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2066 if validate_subreg fails.
2068 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2070 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2071 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2074 2011-05-12 DJ Delorie <dj@redhat.com>
2076 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2077 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2078 created builtin into rx_builtins array.
2079 (rx_builtin_decl): New function.
2080 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2082 2011-05-12 DJ Delorie <dj@redhat.com>
2083 Nick Clifton <nickc@redhat.com>
2085 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2086 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2087 (rx_is_legitimate_address): Add pre-decrement and post-increment
2088 addressing in HImode and QImode. Fix test for out of range
2090 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2091 (rx_align_for_label): Test label before extracting its usage count.
2092 (rx_adjust_insn_lengths): Fix selection of insn codes.
2093 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2095 2011-05-11 Jason Merrill <jason@redhat.com>
2097 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2099 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2101 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2102 reindent the subsequent block.
2104 2011-05-11 Satoru Takabayashi <satorux@google.com>
2105 Paul Pluzhnikov <ppluzhnikov@google.com>
2107 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2108 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2109 * config.in: Add LINKER_HASH_STYLE.
2110 * configure.ac: Add --with-linker-hash-style.
2111 * configure: Regenerate.
2113 2011-05-11 Richard Guenther <rguenther@suse.de>
2116 * gimple.c (iterative_hash_canonical_type): Fix typo.
2118 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2120 * config/i386/i386.c (legitimize_tls_address)
2121 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2122 expanders directly for TARGET_GNU2_TLS. Determine pic and
2123 __tls_get_addr symbol reference here. Update call to
2124 gen_tls_global_dynamic_{32,64} for added arguments.
2125 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2126 expanders directly for TARGET_GNU2_TLS. Determine
2127 __tls_get_addr symbol reference here. Update call to
2128 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2129 unique UNSPEC REG_EQUIV to libcall block.
2130 (ix86_tls_get_addr): Declare static.
2131 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2132 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2133 Do not determine pic and __tls_get_addr symbol reference here. Do not
2134 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2135 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2136 (tls_global_dynamic_64): Add operand 2. Do not determine
2137 __tls_get_addr symbol reference here. Do not call
2138 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2139 (tls_local_dynamic_base64): Ditto for operand 1.
2141 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2143 * function.c (expand_function_start): Initialize stack_check_probe_note
2144 only if the generic stack checking mechanism is used.
2146 2011-05-11 Richard Guenther <rguenther@suse.de>
2148 PR tree-optimization/15256
2149 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2150 (A & B) | C, combine (A op CST1) op CST2.
2151 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2152 visit assigns that have uses.
2154 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2156 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2157 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2158 (unpack_ts_type_common_value_fields): ...this. Update comment.
2159 (unpack_value_fields): Adjust for renaming.
2160 (lto_input_ts_type_tree_pointers): Split into...
2161 (lto_input_ts_type_common_tree_pointer): ...this and...
2162 (lto_input_ts_type_non_common_tree_pointers): ...this.
2163 (lto_input_tree_pointers): Adjust for above split.
2164 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2165 (pack_ts_type_common_value_fields): ...this. Update comment.
2166 (lto_output_ts_type_tree_pointers): Split into...
2167 (lto_output_ts_type_common_tree_pointers): ...this and...
2168 (lto_output_ts_type_non_common_tree_pointers): ...this.
2169 (lto_output_tree_pointers): Adjust for above split.
2170 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2171 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2172 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2173 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2175 (struct tree_type): Split into...
2176 (struct tree_type_common: ...this and...
2177 (struct tree_type_with_lang_specific): ...this and...
2178 (struct tree_type_non_common): ...this. Adjust accessor macros
2180 (TYPE_VALUES_RAW): Define.
2181 (union tree_node): Update for above changes.
2182 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2184 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2185 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2186 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2187 * treestructu.def (TS_TYPE): Remove.
2188 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2191 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2194 * tree-ssa.c (reset_debug_uses): New function.
2195 * tree-flow.h (reset_debug_uses): New prototype.
2196 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2197 * tree-loop-distribution.c (generate_loops_for_partition): Call
2198 reset_debug_uses on the stmts that will be removed. Keep around
2199 all debug stmts, don't count them as bits in partition bitmap.
2200 (generate_builtin): Don't count debug stmts or labels as bits in
2203 2011-05-11 Richard Guenther <rguenther@suse.de>
2205 * gimple.c (gimple_type_hash_1): Merge with ...
2206 (gimple_type_hash): ... this.
2207 (gtc_visit): Remove mode parameter and simplify accordingly.
2208 (gimple_types_compatible_p_1): Likewise.
2209 (gimple_types_compatible_p): Likewise.
2210 (iterative_hash_gimple_type): Likewise.
2212 (gimple_type_eq): Adjust.
2214 2011-05-11 Revital Eres <revital.eres@linaro.org>
2216 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2217 enters the branch create an anti edge in the opposite direction
2218 to prevent the creation of reg-moves.
2219 * modulo-sched.c: Adjust comment to reflect the fact we are
2220 scheduling closing branch.
2221 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2222 (stage_count): New field in struct partial_schedule.
2223 (calculate_stage_count): New function.
2224 (normalize_sched_times): Rename to reset_sched_times and handle
2225 incrementing the sched time of the nodes by a constant value
2226 passed as parameter.
2227 (duplicate_insns_of_cycles): Skip closing branch.
2228 (sms_schedule_by_order): Schedule closing branch.
2229 (ps_insn_find_column): Handle closing branch.
2230 (sms_schedule): Call reset_sched_times and adjust the code to
2231 support scheduling of the closing branch.
2232 (ps_insert_empty_row): Update calls to normalize_sched_times
2233 and rotate_partial_schedule functions.
2235 2011-05-11 Richard Guenther <rguenther@suse.de>
2238 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2240 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2242 * opts.c (finish_options): Move warning settings from process_options.
2243 * toplev.c (process_options): Move warning settings to finish_options.
2245 2011-05-11 Richard Guenther <rguenther@suse.de>
2247 PR tree-optimization/18041
2248 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2249 (simplify_bitwise_binary): ... this. Handle operand conversions
2250 by applying them to the result instead.
2251 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2253 2011-05-11 Richard Guenther <rguenther@suse.de>
2255 * gimple.c (gimple_canonical_types_compatible_p): Split out
2256 from gimple_types_compatible_p and friends. Do not recurse
2257 to pointed-to types.
2258 (gimple_canonical_type_eq): Use it.
2259 (iterative_hash_canonical_type): Split out from
2260 iterative_hash_gimple_type and friends. Do not recurse
2261 to pointed-to types.
2262 (gimple_canonical_type_hash): Use it, allocate the hash here.
2264 2011-05-11 Revital Eres <revital.eres@linaro.org>
2266 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2269 2011-05-11 Revital Eres <revital.eres@linaro.org>
2271 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2272 instead of PREV_INSN.
2274 2011-05-11 Revital Eres <revital.eres@linaro.org>
2276 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2277 * loop-doloop.c (doloop_condition_get): Likewise.
2278 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2280 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2282 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2284 * tree.def (CASE_LABEL_EXPR): Add an operand.
2285 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2287 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2289 * c-decl.c (c_override_global_bindings_to_false): Remove.
2290 (global_bindings_p): Don't check
2291 c_override_global_bindings_to_false.
2292 * c-tree.h (c_override_global_bindings_to_false): Remove.
2293 * c-typeck.c (composite_type): Don't set
2294 c_override_global_bindings_to_false.
2296 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2298 PR target/48857, 48495
2299 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2301 (VSX_MOVE_MODE): Ditto.
2302 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2303 VSX vector types. Add V2DImode.
2304 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2305 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2306 (MODES_TIEABLE_P): Ditto.
2308 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2309 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2311 (init_cumulative_args): Ditto.
2312 (rs6000_function_arg_boundary): Ditto.
2313 (rs6000_function_arg_advance_1): Ditto.
2314 (rs6000_function_arg): Ditto.
2315 (rs6000_function_ok_for_sibcall): Ditto.
2316 (emit_frame_save): Ditto.
2317 (rs6000_function_value): Ditto.
2318 (rs6000_libcall_value): Ditto.
2320 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2322 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2323 i386/darwin-lib.h to $libgcc_tm_file.
2324 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2326 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2328 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2330 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2332 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2333 * config/rs6000/rs6000-tables.opt: New file (generated).
2334 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2335 rs6000/rs6000-tables.opt to extra_options.
2336 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2337 * config/rs6000/rs6000.c (rs6000_select): Remove.
2338 (processor_target_table): Move contents to rs6000-cpus.def.
2339 (darwin_rs6000_override_options): Check
2340 global_options_set.x_rs6000_cpu_index instead of
2341 rs6000_select[1].string.
2342 (rs6000_option_override_internal): Likewise.
2343 (rs6000_handle_option): Don't assert that global structures are in
2344 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2345 (rs6000_default_cpu): New variable.
2346 (rs6000_file_start): Set it instead of local default_cpu. Check
2347 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2348 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2349 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2350 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2351 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2352 rs6000_select): Remove.
2353 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2355 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2356 * config/rs6000/t-rs6000
2357 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2358 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2359 global_options_set.x_rs6000_cpu_index instead of
2360 rs6000_select[1].string.
2361 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2362 global_options_set.x_rs6000_cpu_index instead of
2363 rs6000_select[1].string.
2365 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2367 * config.gcc (libgcc_tm_file): Define instead of including files
2368 from ../../libgcc/config/ in tm_file.
2369 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2370 * configure: Regenerate.
2371 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2372 libgcc_tm.h, cs-libgcc_tm.h): New.
2373 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2374 (clean): Remove libgcc_tm.h.
2375 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2376 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2377 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2379 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2382 * config/avr/avr.c (avr_ret_register): Return unsigned int
2384 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2385 it to avr_libcall_value.
2386 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2388 (avr_expand_binop_builtin): Ditto.
2389 (avr_expand_unop_builtin): Ditto.
2391 2011-05-10 DJ Delorie <dj@redhat.com>
2393 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2394 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2395 * config/rx/rx.c (rx_align_for_label): Add label and
2396 uses_threshold parameters. Do not align when the label is not
2398 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2400 2011-05-10 Richard Guenther <rguenther@suse.de>
2402 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2403 a series of conversions and apply foldings similar to what
2405 (tree_ssa_forward_propagate_single_use_vars): Call it.
2407 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2409 PR tree-optimization/48611
2410 PR tree-optimization/48794
2411 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2412 referenced from RESX or EH_DISPATCH arguments.
2415 * dfp.c (decimal_to_decnumber): Handle conversion from
2416 dconst{1,2,m1,half}.
2418 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2420 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2421 for !flag_prefer_avx128.
2422 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2424 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2426 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2427 (fold_ternary_loc): Use expr_location_or.
2429 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2432 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2433 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2434 Pmode and mem_mode is not VOIDmode.
2436 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2438 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2439 TYPE_QUAL_RESTRICT): Convert to enum.
2441 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2443 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2444 (const_pow2_1_to_8_operand): Ditto.
2445 (const_pow2_1_to_128_operand): Ditto.
2446 (const_pow2_1_to_32768_operand): Ditto.
2447 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2448 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2449 in insn constraint to check integer value of operand 3.
2450 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2452 (PINSR_MODE): New mode iterator.
2453 (sse2p4_1): New mode attribute.
2454 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2455 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2456 iterator. Use const_int_operand instead of
2457 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2458 exact_log2 in insn constraint to check integer value of operand 3.
2460 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2462 * config/i386/sse.md (blendbits): Remove mode attribute.
2463 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2464 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2465 Check integer value of operand 3 in insn constraint.
2467 2011-05-09 Richard Guenther <rguenther@suse.de>
2469 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2471 (lto_symtab_merge): Likewise. Do not register types here.
2472 (lto_symtab_merge_decls_2): Likewise.
2473 (lto_symtab_merge_decls_1): Likewise.
2474 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2475 * gimple.c (enum gtc_mode): Declare.
2476 (gimple_types_compatible_p): Make static.
2478 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2480 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2481 temporary register to match Pmode.
2483 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2485 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2486 and *vec_concatv4si_1_avx.
2488 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2490 PR rtl-optimization/48927
2491 * ira-conflicts.c (commutative_constraint_p): Use
2492 recog_data.alternative_enabled_p to disable alternatives where
2493 "enabled" attribute is false.
2494 (get_dup_num): Ditto.
2495 * ira-lives.c (single_reg_class): Ditto.
2496 (ira_implicitly_set_insn_hard_regs): Ditto.
2498 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2500 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2501 (dataflow_set_preserve_mem_locs): Likewise.
2503 2011-05-09 Philipp Thomas <pth@suse.de>
2505 * config/mep/mep.c (mep_validate_vliw): Syntax description
2506 should not be translated.
2508 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2510 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2511 * config/mips/mips-tables.opt: New file (generated).
2512 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2513 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2514 MIPS_ARCH_OPTION_NATIVE): Define.
2515 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2517 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2518 mips_parse_cpu): Remove.
2519 (mips_cpu_info_from_opt, mips_default_arch): New.
2520 (mips_handle_option): Don't assert that global structures are in
2521 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2522 (mips_option_override): Use new variables and functions to set
2523 state of these options. Use strcmp to check for individual CPU names.
2524 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2526 * config/mips/mips.opt (march=): Use ToLower and Enum.
2527 (mips): Use ToLower, Enum and Var.
2528 (mtune=): Use ToLower and Enum.
2529 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2531 2011-05-08 Jan Hubicka <jh@suse.cz>
2533 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2534 Arrange type pairs to be UID ordered.
2535 (gimple_lookup_type_leader): Make inline.
2537 2011-05-09 Nick Clifton <nickc@redhat.com>
2540 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2544 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2547 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2549 * combine.c (simplify_comparison): Abstract out parts into...
2550 (simplify_compare_const): ... new function.
2551 (try_combine): Generalize parallel arithmetic/compare combining
2552 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2554 2011-05-08 Jan Hubicka <jh@suse.cz>
2556 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2557 (cgraph_create_virtual_clone): Call hooks once virtual clone
2559 * cgraph.h (cgraph_clone_node): Update prototype.
2560 * ipa-cp.c (ipcp_estimate_growth): Use
2561 estimate_ipcp_clone_size_and_time.
2562 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2563 * lto-cgraph.c (input_node): Update.
2564 * ipa-inline.c (recursive_inlining): Update.
2565 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2566 (evaluate_conditions_for_known_args): Break out from ...
2567 (evaluate_conditions_for_edge): ... here.
2568 (evaluate_conditions_for_ipcp_clone): New function.
2569 (inline_node_duplication_hook): Update clone summary based
2571 (estimate_callee_size_and_time): Rename to ...
2572 (estimate_node_size_and_time): take NODE instead of EDGE;
2573 take POSSIBLE_TRUTHS as argument.
2574 (estimate_callee_size_and_time): Update.
2575 (estimate_ipcp_clone_size_and_time): New function.
2576 (do_estimate_edge_time): Update.
2578 2011-05-08 Richard Guenther <rguenther@suse.de>
2582 * expmed.c (expand_shift_1): Compute adjusted constant shift
2585 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2587 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2589 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2591 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2593 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2595 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2597 2011-05-07 Jan Hubicka <jh@suse.cz>
2599 * ipa-inline-transform.c (inline_call): Account when program size
2601 * ipa-inline.c (relative_time_benefit): New function.
2602 (edge_badness): Reorganize to be power 2 based; fix thinko when
2603 computing badness for negative growth; update comments to match
2604 reality; better dumps.
2606 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2608 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2609 type to bool and adjust comment.
2610 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2611 (fold_mathfn_compare): Remove calls to global_bindings_p.
2612 (fold_inf_compare): Likewise.
2613 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2614 * c-tree.h (global_bindings_p): Adjust prototype.
2615 * c-decl.c (global_bindings_p): Return bool and simplify.
2617 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2619 PR tree-optimization/48837
2620 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2621 when accumulator transformation is performed.
2623 2011-05-06 Jan Hubicka <jh@suse.cz>
2625 * i386.h (ix86_tune_indices): Add
2626 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2627 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2628 * i386.c (initial_ix86_tune_features): Add
2629 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2630 (software_prefetching_beneficial_p): Remove predicate.
2631 (ix86_option_override_internal): Use new macro.
2633 2011-05-06 Jan Hubicka <jh@suse.cz>
2635 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2637 2011-05-06 Jan Hubicka <jh@suse.cz>
2639 * cgraph.c (cgraph_add_thunk): Create real function node instead
2640 of alias node; finalize it and mark needed/reachale; arrange visibility
2641 to be right and add it into the corresponding same comdat group list.
2642 (dump_cgraph_node): Dump thunks.
2643 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2644 cgraph_function_with_gimple_body_p,
2645 cgraph_first_function_with_gimple_body,
2646 cgraph_next_function_with_gimple_body): New functions.
2647 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2649 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2650 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2651 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2652 devirtualization when optimizing.
2653 (verify_cgraph_node): Verify thunks.
2654 (cgraph_analyze_function): Analyze thunks.
2655 (cgraph_mark_functions_to_output): Output thunks only in combination
2656 with function they are assigned to.
2657 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2658 alias into normal node.
2659 (assemble_thunks): New functoin.
2660 (cgraph_expand_function): Use it.
2661 * lto-cgraph.c (lto_output_node): Stream thunks.
2662 (input_overwrite_node): Stream in thunks.
2663 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2664 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2665 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2666 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2667 (inline_analyze_function): Do not care about thunk jump functions.
2668 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2669 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2670 cgraph_function_with_gimple_body_p.
2671 * passes.c (do_per_function_toporder): Use
2672 cgraph_function_with_gimple_body_p.
2673 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2674 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2675 (function_called_by_processed_nodes_p): Likewise.
2677 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2679 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2680 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2682 (mabi=): Replace with separate entries for mabi=altivec,
2683 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2684 mabi=ieeelongdouble and mabi=ibmlongdouble.
2685 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2686 check for -mabi=spe without SPE ABI support here.
2687 (rs6000_handle_option): Replace OPT_mabi_ handling with
2688 OPT_mabi_altivec and OPT_mabi_spe handling.
2690 2011-05-06 Cary Coutant <ccoutant@google.com>
2692 * dwarf2out.c (contains_subprogram_definition): New function.
2693 (should_move_die_to_comdat): Call it.
2695 2011-05-06 Jeff Law <law@redhat.com>
2697 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2698 remove_ctrl_stmt_and_useless_edges.
2699 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2700 (fixup_template_block, thread_single_edge): Likewise.
2701 (mark_threaded_blocks): Use THREAD_TARGET.
2703 2011-05-06 Alan Modra <amodra@gmail.com>
2706 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2707 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2709 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2711 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2712 constraint modifier to "r".
2714 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2716 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2717 fall through for OPT_mcmodel_.
2719 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2721 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2723 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2725 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2728 * config/arm/arm.opt (marm): Document it.
2729 (mthumb): Reject negative variant.
2731 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2734 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2735 Fix typo in "ccvt" variable name.
2737 2011-05-06 Tristan Gingold <gingold@adacore.com>
2740 * config/vms/vms-ar.c (main): Remove cwd variable.
2742 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2745 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2747 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2749 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2750 * gimplify.c (gimplify_switch_expr): Likewise.
2751 * omp-low.c (expand_omp_sections): Likewise.
2752 * tree-eh.c (lower_try_finally_switch): Likewise.
2753 (lower_eh_dispatch): Likewise.
2754 * tree.h (build_case_label): Declare.
2755 * tree.c (build_case_label): Define.
2757 2011-05-05 Jason Merrill <jason@redhat.com>
2760 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2761 (copy_statement_list): Don't recurse.
2762 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2765 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2767 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2768 through from -mfpu= handling.
2769 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2771 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2773 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2776 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2778 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2780 (hppa[12]*-*-hpux11*): Ditto.
2781 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2782 * config/ia64/hpux-unix2003.h: New.
2783 * config/pa/pa-hpux1131.opt: New.
2784 * config/pa/pa-hpux1131.h: New.
2785 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2786 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2787 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2789 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2792 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2793 instead of mode as 3rd argument to recursive call.
2794 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2795 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2797 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2798 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2799 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2800 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2802 2011-05-05 Julian Brown <julian@codesourcery.com>
2804 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2805 parenthesis in D-register case.
2807 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2809 * opt-functions.awk (var_type_struct): Handle Enum options.
2810 * optc-gen.awk: Don't check range of variables of character type.
2811 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2812 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2813 rs6000_sdata_name, rs6000_explicit_options): Remove.
2814 (rs6000_option_override_internal): Check for -malign-power here.
2815 Use global_options_set instead of rs6000_explicit_options.
2816 (rs6000_parse_fpu_option): Remove.
2817 (rs6000_handle_option): Access variables via opts and opts_set
2818 pointers. Use error_at and warning_at. Add fall-through
2819 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2820 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2821 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2822 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2823 here. Don't use rs6000_parse_fpu_option.
2824 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2825 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2826 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2828 (mspe): Use Var and Save.
2829 (mtraceback=): Use Enum and Var.
2830 (rs6000_traceback_type): New Enum and EnumValue entries.
2831 (mfloat-gprs=): Use Enum, Var and Save.
2832 (rs6000_float_gprs): New Enum and EnumValue entries.
2833 (mlong-double-): use Var and Save.
2834 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2835 (malign-): Use Enum and Var.
2836 (rs6000_alignment_flags): New Enum and EnumValue entries.
2838 (fpu_type_t): New Enum and EnumValue entries.
2839 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2840 global_options_set instead of rs6000_explicit_options.
2841 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2842 global_options_set instead of rs6000_explicit_options.
2843 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2844 global_options_set instead of rs6000_explicit_options.
2845 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2846 global_options_set instead of rs6000_explicit_options.
2847 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2848 global_options_set instead of rs6000_explicit_options.
2849 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2850 global_options_set instead of rs6000_explicit_options.
2851 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2853 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2854 global_options_set instead of rs6000_explicit_options.
2855 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2856 (rs6000_cmodel): New Enum and EnumValue entries.
2857 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2858 global_options_set instead of rs6000_explicit_options.
2859 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2860 (mtls-size=): Use Enum and Var.
2861 (rs6000_tls_size): New Enum and EnumValue entries.
2863 2011-05-05 Michael Matz <matz@suse.de>
2865 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2866 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2867 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2868 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2869 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2870 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2871 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2872 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2873 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2874 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2875 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2876 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2877 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2878 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2879 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2880 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2882 2011-05-05 Richard Guenther <rguenther@suse.de>
2884 * expmed.c (expand_variable_shift): Rename to ...
2885 (expand_shift_1): ... this. Take an expanded shift amount.
2886 For rotates recurse directly not building trees for the shift amount.
2887 (expand_variable_shift): Wrap around expand_shift_1.
2888 (expand_shift): Adjust.
2890 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2892 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2894 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2896 * tree.h (get_pending_sizes): Remove prototype.
2897 (put_pending_size): Likewise.
2898 (put_pending_sizes): Likewise.
2899 * stor-layout.c (pending_sizes): Delete.
2900 (get_pending_sizes): Likewise.
2901 (put_pending_size): Likewise.
2902 (put_pending_sizes): Likewise.
2903 (variable_size): Do not call put_pending_size and tidy up.
2904 * function.h (struct function): Remove dont_save_pending_sizes_p.
2905 * lto-streamer-in.c (input_function): Do not stream it.
2906 * lto-streamer-out.c (output_function): Likewise.
2907 * tree-inline.c (initialize_cfun): Do not copy it.
2908 * c-decl.c (store_parm_decls): Do not set it.
2909 * omp-low.c (create_task_copyfn): Likewise.
2910 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2912 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2914 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2916 (*movdf_internal): Ditto.
2917 (*movdf_internal_nointeger): Ditto.
2918 (*movsf_internal): Ditto.
2920 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2922 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2923 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2924 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2925 (c_variable_size): Remove.
2926 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2927 call put_pending_sizes.
2928 (get_parm_info): Add parameter expr. Use it to set
2929 arg_info->pending_sizes.
2930 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2932 * c-parser.c (c_parser_parms_declarator): Update call to
2933 c_parser_parms_list_declarator.
2934 (c_parser_parms_list_declarator): Take parameter expr. Update
2935 call to push_parm_decl. Update recursive call. Don't call
2936 get_pending_sizes. Update calls to get_parm_info.
2937 (c_parser_objc_method_definition): Update calls to
2938 c_parser_objc_method_decl and objc_start_method_definition.
2939 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2940 (c_parser_objc_method_decl): Add parameter expr. Update call to
2942 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2943 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2944 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2946 2011-05-05 Michael Hope <michael.hope@linaro.org>
2949 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2952 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2954 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2955 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2956 (spu_output_mi_thunk): New function.
2958 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2960 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2961 targetm.asm_out.print_operand.
2962 * config/sol2.c: Include target.h.
2964 2011-05-04 Jan Hubicka <jh@suse.cz>
2966 * ipa-inline.c (reset_edge_caches): New function.
2967 (update_caller_keys): Add check_inlinablity_for; do not
2968 reset edge caches; remove now unnecesary loop.
2969 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2970 (update_all_callee_keys): Likewise.
2971 (inline_small_functions): Sanity check cache; update code
2974 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2976 PR rtl-optimization/47612
2977 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2978 as the last insn of the sequence to be moved.
2980 2011-05-04 Tobias Burnus <burnus@net-b.de>
2983 * doc/invoke.texi (Ofast): Document that it
2984 enables Fortran's -fno-protect-parens.
2986 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2988 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2990 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2992 * stor-layout.c (variable_size): Do not issue errors.
2994 2011-05-04 Richard Guenther <rguenther@suse.de>
2996 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2997 for array-ref indices.
2998 (tree_coverage_counter_addr): Likewise.
2999 (build_fn_info_type): Use size_int for index types.
3000 (build_gcov_info): Likewise.
3002 2011-05-04 Richard Guenther <rguenther@suse.de>
3004 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3006 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3007 for constructor indices.
3008 (push_init_level): Likewise.
3010 2011-05-04 Richard Guenther <rguenther@suse.de>
3012 * explow.c (promote_mode): Move variable declarations before code.
3014 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3016 * tree.h (build_function_type_array): Declare.
3017 (build_varargs_function_type_array): Declare.
3018 (build_function_type_vec, build_varargs_function_type_vec): Define.
3019 * tree.c (build_function_type_array_1): New function.
3020 (build_function_type_array): New function.
3021 (build_varargs_function_type_array): New function.
3023 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3025 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3026 before setting STMT_VINFO_TYPE.
3028 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3030 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3031 instead of spu_pass_by_reference.
3033 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3035 * calls.c (emit_library_call_value_1): Invoke
3036 promote_function_mode hook on libcall arguments.
3037 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3038 argument being NULL.
3039 * targhooks.c (default_promote_function_mode): Lisewise.
3040 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3041 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3043 * doc/tm.texi: Document that TYPE argument might be NULL.
3045 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3047 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3049 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3052 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3054 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3056 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3057 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3059 * mips-tfile.c: ... here.
3060 Don't include coretypes.h, tm.h, filenames.h.
3061 (saber_stop): Remove definition and all calls.
3062 [__SABER__]: Remove.
3063 (__LINE__): Remove default.
3064 (Size_t, Ptrdiff_t): Remove definitions.
3065 Replace by size_t, ptrdiff_t.
3066 [!MIPS_DEBUGGING_INFO]: Remove.
3067 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3068 (progname): Add const.
3070 Replace all uses by static.
3071 (ALIGN_SYMTABLE_OFFSET): Remove default.
3072 * mips-tdump.c: Don't include coretypes.h, tm.h.
3073 Remove !MIPS_IS_STAB guard.
3074 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3075 $(TM_H), filenames.h dependencies.
3076 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3078 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3081 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3082 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3084 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3087 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3088 account and save/restore RETS.
3089 (PROFILE_BEFORE_PROLOGUE): Define.
3090 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3091 the push insn to use predecrement.
3093 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3096 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3098 2011-05-04 Nick Clifton <nickc@redhat.com>
3100 * config/mn10300/mn10300.c: Include cfgloop.h.
3102 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3103 Lcc or a FLcc insn into the instruction stream.
3104 (mn10300_block_contains_call): New function. Returns true if the
3105 given basic block contains a CALL insn.
3106 (mn10300_loop_contains_call_insn): New function. Returns true if
3107 the given loop contains a CALL insn.
3108 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3109 to use the SETLB and Lcc or FLcc insns.
3110 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3111 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3112 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3113 disable the SETLB optimization.
3114 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3115 __SETLB__ or __NO_SETLB__.
3116 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3117 (movsf_internal): Handle MDR register.
3118 (cmpsi): Make visible.
3119 (setlb): New pattern.
3121 (FLcc): New pattern.
3123 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3126 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3127 for reg<->xmm moves.
3128 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3129 (vec_concatv2di_rex64_sse): Ditto.
3130 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3131 (*vec_extractv2di_1_rex64): Ditto.
3134 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3136 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3138 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3140 2011-05-04 Richard Guenther <rguenther@suse.de>
3142 * tree.h (int_const_binop): Remove notrunc argument.
3143 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3144 create integer constants that are properly truncated.
3145 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3146 (const_binop): Remove zero notrunc argument to int_const_binop.
3147 (size_binop_loc): Likewise.
3148 (fold_div_compare): Likewise.
3149 (maybe_canonicalize_comparison_1): Likewise.
3150 (fold_comparison): Likewise.
3151 (fold_binary_loc): Likewise.
3152 (multiple_of_p): Likewise.
3153 * expr.c (store_constructor): Likewise.
3154 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3155 (maybe_fold_stmt_addition): Likewise.
3156 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3157 * stor-layout.c (layout_type): Likewise.
3158 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3159 * tree-sra.c (build_ref_for_offset): Likewise.
3160 (build_user_friendly_ref_for_offset): Likewise.
3161 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3162 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3163 * tree-ssa-loop-niter.c (inverse): Likewise.
3164 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3165 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3166 * tree-switch-conversion.c (check_range): Likewise.
3167 (build_constructors): Likewise.
3168 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3169 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3170 (extract_range_from_assert): Likewise.
3171 (vrp_int_const_binop): Likewise.
3172 (extract_range_from_binary_expr): Likewise.
3173 (extract_range_from_unary_expr): Likewise.
3174 (check_array_ref): Likewise.
3175 (find_case_label_range): Likewise.
3176 (simplify_div_or_mod_using_ranges): Likewise.
3177 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3178 comparing case labels for merging.
3180 2011-05-03 Mark Wielaard <mjw@redhat.com>
3182 * dwarf2out.c (debug_str_hash_forced): Removed.
3183 (gen_label_for_indirect_string): Removed.
3184 (get_debug_string_label): Removed.
3185 (AT_string_form): Generate label directly.
3186 (output_indirect_string): Test indirect_string_node for
3187 DW_FORM_strp instead of checking label and refcount.
3188 (prune_indirect_string): Removed.
3189 (prune_unused_types): Don't check debug_str_hash_forced or
3190 call prune_indirect_string.
3192 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3195 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3197 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3201 * combine.c (try_combine): Skip debug insns at m_split tests.
3203 2011-04-26 Mark Wielaard <mjw@redhat.com>
3206 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3207 when info_section_emitted.
3209 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3211 * config/mips/mips-opts.h: New.
3212 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3214 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3215 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3216 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3218 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3220 (mips_abi, mips_code_readable): Don't declare.
3221 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3222 (mabi=): Use Enum and Var.
3223 (mips_abi): New Enum and EnumValue entries.
3224 (mcode-readable=): Use Enum and Var.
3225 (mips_code_readable_setting): New Enum and EnumValue entries.
3226 (mr10k-cache-barrier=): Use Enum and Var.
3227 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3229 2011-05-03 Jan Hubicka <jh@suse.cz>
3231 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3232 replace hash by pointer map.
3233 (cgraph_node_set_element_def, cgraph_node_set_element,
3234 const_cgraph_node_set_element, varpool_node_set_element_def,
3235 varpool_node_set_element, const_varpool_node_set_element): Remove.
3236 (free_cgraph_node_set, free_varpool_node_set): New function.
3237 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3238 * tree-emutls.c: Free varpool node set.
3239 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3240 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3241 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3242 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3243 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3244 Move here from ipa.c; implement using pointer_map
3245 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3246 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3247 debug_cgraph_node_set, varpool_node_set_new,
3248 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3249 dump_varpool_node_set, debug_varpool_node_set):
3250 Move to ipa-uitls.c.
3251 * passes.c (ipa_write_summaries): Update.
3253 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3255 From Mike Frysinger:
3256 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3257 bf542/bf544/bf547/bf548/bf549.
3259 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3261 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3263 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3266 * config/bfin/bfin.md (MOVCC): New mode_macro.
3267 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3268 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3269 comments from generated assembly.
3271 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3274 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3275 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3276 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3277 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3278 * config/bfin/lib1funcs.asm (___muldi3): New function.
3280 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3282 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3283 build_function_type_list instead of build_function_type.
3284 Rearrange initialization of `args' to do so.
3286 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3288 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3289 instead of build_function_type.
3291 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3293 * config/rs6000/rs6000.c (spe_init_builtins): Call
3294 build_function_type_list instead of build_function_type.
3295 (paired_init_builtins, altivec_init_builtins): Likewise.
3296 (builtin_function_type): Likewise.
3298 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3300 * config/sh/sh.c (sh_media_init_builtins): Call
3301 build_function_type_list instead of build_function_type.
3303 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3305 * config/sparc/sparc.c (sparc_file_end): Call
3306 build_function_type_list instead of build_function_type.
3308 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3310 * config/alpha/alpha.c (alpha_init_builtins): Call
3311 build_function_type_list instead of build_function_type.
3313 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3315 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3316 build_function_type_list instead of build_function_type.
3318 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3320 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3321 build_function_type_list instead of build_function_type.
3322 Delete `endlink' variable.
3324 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3326 * config/avr/avr.c (avr_init_builtins): Call
3327 build_function_type_list instead of build_function_type.
3329 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3331 * config/picochip/picochip.c (picochip_init_builtins): Call
3332 build_function_type_list instead of build_function_type.
3333 Delete `endlink' variable.
3335 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3337 * config/bfin/bfin.c (bfin_init_builtins): Call
3338 build_function_type_list instead of build_function_type.
3340 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3343 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3344 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3346 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3349 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3350 libbffastfp overrides libgcc when -mfast-fp.
3352 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3354 Originally from Bernd Schmidt
3355 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3356 * config/bfin/bfin.c (override_options): Test it and error if
3359 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3361 Originally From Bernd Schmidt
3362 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3365 2011-05-03 Jeff Law <law@redhat.com>
3367 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3368 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3369 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3370 than accessing AUX field directly. Free the AUX field before
3372 (thread_block, thread_through_loop_header): Likewise.
3373 (thread_single_edge, mark_threaded_blocks): Likewise.
3374 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3375 (register_jump_thread): Do not attempt to thread to a NULL edge.
3377 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3379 * function.c (init_function_start): Call decide_function_section.
3380 * varasm.c (decide_function_section): New function.
3381 (assemble_start_function): When not using
3382 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3383 or first_function_block_is_cold.
3384 * rtl.h (decide_function_section): Declare.
3386 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3387 Jakub Jelinek <jakub@redhat.com>
3390 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3391 only succeed if req_mode is the same as set_mode.
3393 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3395 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3396 * genemit.c (gen_exp): Handle RETURN.
3397 * emit-rtl.c (verify_rtx_sharing): Likewise.
3398 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3399 * rtl.c (copy_rtx): RETURN is shared.
3400 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3402 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3403 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3404 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3405 * config/cris/cris.c (cris_expand_return): Likewise.
3406 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3407 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3408 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3409 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3410 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3412 * config/v850/v850.c (expand_epilogue): Likewise.
3413 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3414 * config/arm/arm.md (epilogue): Likewise.
3415 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3416 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3417 variable to ret_reg.
3419 2011-05-03 Richard Guenther <rguenther@suse.de>
3422 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3423 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3424 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3426 2011-05-03 Richard Guenther <rguenther@suse.de>
3428 * c-decl.c (grokdeclarator): Instead of looking at
3429 TREE_OVERFLOW check if the constant fits in the index type.
3431 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3433 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3434 (vec_store_lanes<mode><mode>): Likewise.
3436 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3438 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3439 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3440 convert_optab_index values.
3441 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3442 * genopinit.c (optabs): Initialize the new optabs.
3443 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3444 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3445 (expand_STORE_LANES): New functions.
3446 * tree.h (build_array_type_nelts): Declare.
3447 * tree.c (build_array_type_nelts): New function.
3448 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3449 (vect_model_load_cost): Likewise.
3450 (vect_store_lanes_supported, vect_load_lanes_supported)
3451 (vect_record_strided_load_vectors): Declare.
3452 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3453 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3454 (vect_transform_strided_load): Split out statement recording into...
3455 (vect_record_strided_load_vectors): ...this new function.
3456 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3457 (write_vector_array, create_array_ref): New functions.
3458 (vect_model_store_cost): Add store_lanes_p argument.
3459 (vect_model_load_cost): Add load_lanes_p argument.
3460 (vectorizable_store): Try to use store-lanes functions for
3462 (vectorizable_load): Likewise load-lanes and loads.
3463 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3464 to vect_model_store_cost.
3465 (vect_build_slp_tree): Likewise vect_model_load_cost.
3467 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3469 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3470 * hooks.c (hook_bool_mode_uhwi_false): New function.
3471 * target.def (array_mode_supported_p): New hook.
3472 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3473 * doc/tm.texi: Regenerate.
3474 * stor-layout.c (mode_for_array): New function.
3475 (layout_type): Use it.
3476 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3477 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3479 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3482 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3483 for -fstack-check if the size to allocate is negative.
3485 2011-05-02 Lawrence Crowl <crowl@google.com>
3487 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3488 (timevar_cond_start): New for starting a timer only when it is not
3490 (timevar_cond_stop): New for stopping a timer when it was not already
3493 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3494 (timevar_cond_start): New as above.
3495 (timevar_cond_stop): New as above.
3497 * timevar.def: Add start/stop timers for compiler phases,
3498 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3499 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3500 and TV_PHASE_FINALIZE.
3501 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3502 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3503 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3504 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3505 Make unused TV_OVERLOAD into a start/stop timer.
3507 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3508 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3509 to indicate that they are start/stop timers.
3511 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3512 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3513 Move initialization to do_compile.
3514 (do_compile): Add initialization from above.
3515 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3517 * c-decl.c (c_write_global_declarations): Add start/stop of
3518 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3520 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3521 or TV_PARSE_INLINE, as appropriate.
3522 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3523 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3525 2011-05-02 Jason Merrill <jason@redhat.com>
3528 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3530 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3533 * c-decl.c (finish_decl): Only create a composite if the types are
3536 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3538 * config/fr30/fr30-protos.h (Mmode): Don't define.
3539 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3540 definition where used.
3541 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3542 define. Expand definitions where used.
3543 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3544 Expand definitions where used.
3545 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3546 rx_function_arg, rx_function_arg_advance,
3547 rx_function_arg_boundary): Expand definitions of those macros.
3548 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3549 definition where used.
3551 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3553 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3555 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3556 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3557 with *movv2sf_internal_rex64_avx.
3558 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3559 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3560 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3561 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3562 "vex" in "prefix" attribute calculation.
3563 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3565 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3568 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3569 inputs match the output.
3571 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3574 * config/m68k/m68k.c (m68k_expand_prologue): Set
3575 current_function_static_stack_size.
3577 2011-05-02 Jan Hubicka <jh@suse.cz>
3579 * lto-streamer.c (lto_streamer_cache_insert_1,
3580 lto_streamer_cache_lookup, lto_streamer_cache_create,
3581 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3582 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3584 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3586 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3587 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3588 config/m68k/t-opts: New files.
3589 * config/m68k/m68k-tables.opt: New file (generated).
3590 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3591 extra_options and m68k/t-opts to tmake_file.
3592 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3593 (all_isas): Initialize using m68k-isas.def.
3594 (all_microarchs): Initialize using m68k-microarchs.def.
3595 (m68k_find_selection): Remove.
3596 (m68k_handle_option): Don't assert that global structures are in
3597 use. Use error_at. Access variables via opts pointer. Don't
3598 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3599 directly for -m68020-40 and -m68020-60.
3600 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3601 m68k_tune_entry here.
3602 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3604 (m68k_library_id_string): Remove declaration.
3605 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3606 (m68k_library_id_string): New Variable.
3607 (march=, mcpu=, mtune=): Use Enum and Var.
3609 2011-05-02 Richard Guenther <rguenther@suse.de>
3611 * varasm.c (output_constructor_regular_field): Compute zero-based
3612 index with double-ints. Make sure to ICE instead of producing
3614 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3615 in asserts. Properly use a signed type.
3617 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3619 * config/i386/sse.md (V): New mode iterator.
3620 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3622 (V_256): Rename from AVX256MODE.
3623 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3624 condition to all users.
3626 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3627 condition to all users.
3628 (VF_128): Make V4SF mode unconditional.
3629 (VF_256): Rename from AVX256MODEF2P.
3630 (VI4F_128): Rename from SSEMODE4S.
3631 (VI8F_128): Rename from SSEMODE2D.
3632 (VI4F_256): Rename from AVX256MODE8P.
3633 (VI8F_256): Rename from AVX256MODE4P.
3634 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3635 (ssescalarmodesuffix): Remove SF and DF modes.
3636 (SSEMODE124): Remove.
3637 (SSEMODE1248): Ditto.
3638 (SSEMODEF2P): Ditto.
3639 (AVXMODEF2P): Ditto.
3640 (AVXMODEFDP): Ditto.
3641 (AVXMODEFSP): Ditto.
3642 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3644 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3646 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3647 xop_pcmov_<mode>256. Use V mode iterator.
3649 Adjust RTX patterns globally for renamed mode attributes.
3651 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3653 * haifa-sched.c (sched_emit_insn): Emit insn before first
3654 non-scheduled insn. Inform back-end about new insn. Add
3655 new insn to scheduled_insns list.
3657 2011-05-02 Richard Guenther <rguenther@suse.de>
3659 PR tree-optimization/48822
3660 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3661 (process_scc): Indicate which iteration we start.
3663 2011-05-02 Jan Hubicka <jh@suse.cz>
3665 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3666 (lto_section_overrun): New.
3667 * lto-section-out.c (append_block): Rename to ...
3668 (lto_append_block): ... this one; export.
3669 (lto_output_1_stream): Move lto lto-streamer.h
3670 (lto_output_data_stream): Update.
3671 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3672 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3675 2011-05-02 Richard Guenther <rguenther@suse.de>
3677 * tree.c (tree_code_counts): New global array.
3678 (record_node_allocation_statistics): Count individual tree codes.
3679 (dump_tree_statistics): Dump individual code stats.
3681 2011-05-01 Jan Hubicka <jh@suse.cz>
3683 * ipa-inline.c (caller_growth_limits): Fix thinko when
3684 looking for largest stack frame.
3685 * ipa-inline.h (dump_inline_summary): Declare.
3686 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3688 (dump_inline_summary): Export.
3689 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3691 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3693 * reginfo.c (memory_move_cost): Change rclass argument type form
3694 'enum reg_class' to reg_class_t.
3695 * reload.h (memory_move_cost): Update prototype.
3696 * postreload.c reload_cse_simplify_set): Change type dclass var to
3698 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3700 (ira_allocate_and_set_costs): Change aclass argument type form
3701 'enum reg_class' to reg_class_t.
3702 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3703 Change aclass argument type to reg_class_t.
3704 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3706 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3707 memory_move_cost call.
3709 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3710 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3711 Change type tmp var to reg_class_t.
3713 2011-04-30 Jan Hubicka <jh@suse.cz>
3715 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3716 inlining into function with flatten attribute.
3717 (want_inline_small_function_p): Be more realistic about inlining
3718 cold calls where callee size grows.
3720 2011-04-30 Jan Hubicka <jh@suse.cz>
3722 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3725 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3727 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3728 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3729 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3730 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3731 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3732 (print_operand): Rename to...
3733 (sparc_print_operand): ...this. Make static. Adjust
3734 sparc_print_operand function call.
3735 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3738 2011-04-30 Jan Hubicka <jh@suse.cz>
3741 * ipa-inline.c (early_inliner): Disable when doing late
3742 addition of function.
3744 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3746 * dwarf2out.c (get_address_mode): New inline.
3747 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3748 if not dwarf_strict emit
3749 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3750 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3751 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3752 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3753 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3754 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3755 mem_loc_descriptor callers.
3756 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3757 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3758 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3759 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3760 (base_types): New variable.
3761 (get_base_type_offset, calc_base_type_die_sizes,
3762 base_type_for_mode, mark_base_types, base_type_cmp,
3763 move_marked_base_types): New functions.
3764 (calc_die_sizes): Assert that die_offset is 0 or equal to
3766 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3767 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3768 callers. If not dwarf_strict, call mem_loc_descriptor even for
3769 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3770 (gen_subprogram_die): Don't give up on call site parameters
3771 with non-integral or large integral modes. Adjust
3772 mem_loc_descriptor callers.
3773 (prune_unused_types): Call prune_unused_types_mark on base_types
3775 (resolve_addr): Call mark_base_types.
3776 (dwarf2out_finish): Call move_marked_base_types.
3778 PR tree-optimization/48809
3779 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3781 (gen_inbound_check): Don't compute index_expr - range_min in utype
3782 again, instead reuse SSA_NAME initialized in build_arrays.
3783 Remove two useless gsi_for_stmt calls.
3785 2011-04-29 Jeff Law <law@redhat.com>
3787 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3789 2011-04-29 Martin Jambor <mjambor@suse.cz>
3791 * cgraph.h (cgraph_postorder): Remove declaration.
3792 * ipa-utils.h (ipa_free_postorder_info): Declare.
3793 (ipa_reverse_postorder): Likewise.
3794 * cgraphunit.c: Include ipa-utils.h.
3795 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3796 * ipa-inline.c: Include ipa-utils.h.
3797 (ipa_inline): Update call to ipa_reverse_postorder.
3798 * ipa-pure-const.c (propagate_pure_const): Update call to
3799 ipa_reduced_postorder and ipa_print_order. Call
3800 ipa_free_postorder_info to clean up.
3801 (propagate_nothrow): Likewise.
3802 * ipa-reference.c (propagate): Removed a useless call to
3803 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3804 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3805 * ipa.c: Include ipa-utils.h.
3806 (ipa_profile): Update call to ipa_reverse_postorder.
3807 (cgraph_postorder): Moved to...
3808 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3809 (ipa_utils_print_order): Renamed to ipa_print_order.
3810 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3812 (ipa_free_postorder_info): New function.
3813 * passes.c: Include ipa-utils.h.
3814 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3815 (ipa_write_summaries): Likewise.
3816 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3817 (cgraphunit.o): Likewise.
3819 (ipa-inline.o): Likewise.
3821 2011-04-29 Jan Hubicka <jh@suse.cz>
3823 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3824 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3825 * ipa-inline.h (clause_t): Turn into unsigned int.
3826 * ipa-inline-analysis.c (add_clause): Do more simplification.
3827 (and_predicates): Shortcut more cases.
3828 (predicates_equal_p): Move forward; check that clauses are properly
3830 (or_predicates): Shortcut more cases.
3831 (edge_execution_predicate): Rewrite as...
3832 (set_cond_stmt_execution_predicate): ... this function; handle
3833 __builtin_constant_p.
3834 (set_switch_stmt_execution_predicate): New .
3835 (compute_bb_predicates): New.
3836 (will_be_nonconstant_predicate): Update TODO.
3837 (estimate_function_body_sizes): Use compute_bb_predicates
3838 and free them later, always try to estimate if stmt is constant.
3839 (estimate_time_after_inlining, estimate_size_after_inlining):
3840 Gracefully handle optimized out edges.
3841 (read_predicate): Fix off by one error.
3843 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3845 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3847 2011-04-27 Xinliang David Li <davidxl@google.com>
3849 * tree-profile.c (init_ic_make_global_vars): Set
3850 tls attribute on ic vars.
3851 * coverage.c (coverage_end_function): Initialize
3852 function_list with zero.
3854 2011-04-29 Richard Guenther <rguenther@suse.de>
3856 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3857 for the type of the result.
3858 (fold_builtin_isascii): Likewise.
3859 (fold_builtin_toascii): Use integer_type_node where appropriate.
3860 (fold_builtin_logb): Likewise.
3861 (fold_builtin_frexp): Likewise.
3862 (fold_builtin_strstr): Likewise.
3863 (fold_builtin_strpbrk): Likewise.
3864 (fold_builtin_fputs): Likewise.
3865 (fold_builtin_sprintf): Likewise.
3866 (fold_builtin_snprintf): Likewise.
3867 (fold_builtin_printf): Likewise.
3868 (do_mpfr_remquo): Use a proper type for the assigned constant.
3869 (do_mpfr_lgamma_r): Likewise.
3870 * dwarf2out.c (resolve_one_addr): Use size_int.
3871 * except.c (init_eh): Likewise.
3872 (assign_filter_values): Use integer_type_node for filter values.
3873 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3875 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3876 for EH region numbers.
3877 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3878 for the shift amount.
3880 2011-04-29 Richard Guenther <rguenther@suse.de>
3882 * expr.h (expand_shift): Rename to ...
3883 (expand_variable_shift): ... this.
3884 (expand_shift): Take a constant shift amount.
3885 * expmed.c (expand_shift): Rename to ...
3886 (expand_variable_shift): ... this.
3887 (expand_shift): New wrapper around expand_variable_shift.
3888 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3889 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3890 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3891 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3892 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3893 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3894 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3895 emit_store_flag_1, emit_store_flag): Likewise.
3896 * builtins.c (expand_builtin_signbit): Likewise.
3897 * calls.c (load_register_parameters): Likewise.
3898 * function.c (assign_parm_setup_block): Likewise.
3899 * lower-subreg.c (resolve_shift_zext): Likewise.
3900 * optabs.c (widen_bswap, expand_abs_nojump,
3901 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3902 * spu/spu.c (spu_expand_extv): Likewise.
3903 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3905 2011-04-29 Richard Guenther <rguenther@suse.de>
3907 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3908 for the remapped region number.
3909 * predict.c (build_predict_expr): Use integer_type_node for the
3911 * fold-const.c (fold_binary_loc): Use integer_type_node for
3912 the shift amount. Use a proper type for the PLUS_EXPR operand.
3914 2011-04-29 Michael Matz <matz@suse.de>
3916 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3917 other trees that just builtins.
3918 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3920 2011-04-29 Richard Guenther <rguenther@suse.de>
3922 * tree-nested.c (get_trampoline_type): Use size_int.
3923 (get_nl_goto_field): Likewise.
3924 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3926 (lower_eh_constructs_2): Likewise.
3927 (lower_resx): Likewise.
3928 (lower_eh_dispatch): Likewise.
3929 * tree-mudflap.c (mf_build_string): Use size_int.
3930 (mudflap_register_call): Use integer_type_node for the flag.
3931 (mudflap_enqueue_constant): Use size_int.
3932 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3933 instead of rebuilding it.
3935 2011-04-29 Richard Guenther <rguenther@suse.de>
3937 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3938 Handle OBJ_TYPE_REF.
3939 (find_func_aliases_for_call): Use it more consistently.
3941 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3943 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3944 (rank_for_schedule): Use it.
3945 (schedule_block): Set it.
3947 2011-04-28 David Li <davidxl@google.com>
3949 * tree.c (crc32_string): Use crc32_byte.
3950 (crc32_byte): New function.
3951 * tree.h (crc32_byte): New function.
3952 * gcov.c (read_graph_file): Handle new cfg_cksum.
3953 (read_count_file): Ditto.
3954 * profile.c (instrument_values): Ditto.
3955 (get_exec_counts): Ditto.
3956 (read_profile_edge_counts): Ditto.
3957 (compute_branch_probabilities): Ditto.
3958 (compute_value_histograms): Ditto.
3959 (branch_prob): Ditto.
3960 (end_branch_prob): Ditto.
3961 * coverage.c (read_counts_file): Ditto.
3962 (get_coverage_counts): Ditto.
3963 (tree_coverage_counter_addr): Ditto.
3964 (coverage_checksum_string): Ditto.
3965 (coverage_begin_output): Ditto.
3966 (coverage_end_function): Ditto.
3967 (build_fn_info_type): Ditto.
3968 (build_fn_info_value): Ditto.
3969 * libgcov.c (gcov_exit): Ditto.
3970 * gcov-dump.c (tag_function): Ditto.
3971 (compute_checksum): Remove.
3973 2011-04-29 Alan Modra <amodra@gmail.com>
3975 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3976 unspec plus offset. Tidy macho code.
3978 2011-04-29 Martin Jambor <mjambor@suse.cz>
3980 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3981 node instead of a decl. Update all callers.
3982 * cgraph.h: Update declaration.
3984 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3986 PR tree-optimization/48765
3987 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3988 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3989 to indicate if loop aware SLP is being used. Scan the statements
3990 and update the vectorization factor according to the type of
3991 vectorization before statement analysis.
3992 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3993 pass it to vect_analyze_loop_operations.
3994 (vectorizable_reduction): Set number of copies to 1 in case of pure
3996 * tree-vect-stmts.c (vectorizable_conversion,
3997 vectorizable_assignment, vectorizable_shift,
3998 vectorizable_operation, vectorizable_type_demotion,
3999 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4001 (vectorizable_condition): Move the check that it is not SLP
4002 vectorization before the number of copies check.
4003 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4004 to vectorize the loop using SLP.
4006 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4009 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4012 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4014 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4015 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4016 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4017 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4018 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4020 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4021 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4022 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4023 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4024 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4025 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4027 * config/i386/linux.h (REG_NAME): Don't define.
4028 * config/i386/linux64.h (REG_NAME): Don't define.
4029 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4030 Undefine before defining.
4032 2011-04-28 Jan Hubicka <jh@suse.cz>
4034 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4035 nonconstant_names array.
4036 (estimate_function_body_sizes): Build nonconstant_names array; handle
4037 BUILT_IN_CONSTANT_P.
4039 2011-04-28 Richard Guenther <rguenther@suse.de>
4043 2011-04-28 Richard Guenther <rguenther@suse.de>
4045 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4046 as late as possible.
4048 2011-04-28 Richard Guenther <rguenther@suse.de>
4050 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4051 (debug_constraint): Do it here.
4052 (dump_constraints): And here.
4053 (rewrite_constraints): And here.
4054 (dump_constraint_edge): Remove.
4055 (dump_constraint_graph): Rewrite to produce DOT output.
4056 (solve_constraints): Build succ graph as late as possible.
4057 Dump constraint graphs before and after solving.
4059 2011-04-28 Richard Guenther <rguenther@suse.de>
4061 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4062 New function split out from ...
4063 (find_func_aliases): ... here. Call it.
4064 (find_func_aliases_for_call): Likewise.
4066 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4068 * internal-fn.h (internal_fn_name_array): Declare.
4069 (internal_fn_flags_array): Likewise.
4071 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4073 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4074 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4076 (ssemodefsuffix): Remove.
4077 (ssevecmodesuffix): New mode attribute.
4078 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4079 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4080 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4081 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4082 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4083 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4084 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4085 ssemodesuffix mode attribute.
4086 (float splitters): Use ssevecmodesuffix mode attribute.
4087 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4088 (sseinsmode): Rename from avxvecmode.
4089 (avxsizesuffix): Rename from avxmodesuffix.
4090 (sseintvecmode): Rename from avxpermvecmode.
4091 (ssedoublevecmode): Rename from ssedoublesizemode.
4092 (ssehalfvecmode): Rename from avxhalfvecmode.
4093 (ssescalarmode): Rename from avxscalarmode.
4094 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4095 templates for ssemodesuffix mode attribute.
4096 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4099 Adjust RTX patterns globally for renamed mode attributes.
4101 2011-04-27 Jan Hubcika <jh@suse.cz>
4103 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4104 * ipa-inline-analysis.c: Include alloc-pool.h.
4105 (edge_predicate_pool): New.
4106 (trye_predicate_p): New function
4107 (false_predicate_p): New function.
4108 (add_clause): Sanity check that false clauses are "optimized";
4109 never add clauses to predicate that is already known to be false.
4110 (and_predicate): Use flase_predicate_p.
4111 (evaulate_predicate): Rename to ...
4112 (evaluate_predicate): ... this one; update all callers; assert
4113 that false is not listed among possible truths.
4114 (dump_predicate): Use true_predicate_p.
4115 (account_size_time): Use false_predicate_p.
4116 (evaulate_conditions_for_edge): Rename to ...
4117 (evaluate_conditions_for_edge) ... this one.
4118 (edge_set_predicate): New function.
4119 (inline_edge_duplication_hook): Duplicate edge predicates.
4120 (inline_edge_removal_hook): Free edge predicates.
4121 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4122 (dump_inline_summary): Update.
4123 (estimate_function_body_sizes): Set edge predicates.
4124 (estimate_calls_size_and_time): Handle predicates.
4125 (estimate_callee_size_and_time): Update.
4126 (remap_predicate): Add toplev_predicate; update comment.
4127 (remap_edge_predicates): New function.
4128 (inline_merge_summary): Compute toplev predicate; update.
4129 (read_predicate): New function.
4130 (read_inline_edge_summary): Use it.
4131 (inline_read_section): Likewise.
4132 (write_predicate): New function.
4133 (write_inline_edge_summary): Use it.
4134 (inline_write_summary): Likewise.
4135 (inline_free_summary): Free alloc pool and edge summary vec.
4137 2011-04-27 Richard Guenther <rguenther@suse.de>
4139 * tree-ssa-structalias.c (changed_count): Remove.
4140 (changed): Use a bitmap.
4141 (unify_nodes): Adjust.
4142 (do_sd_constraint): Likewise.
4143 (do_ds_constraint): Likewise.
4144 (do_complex_constraint): Likewise.
4145 (solve_graph): Likewise.
4147 2011-04-27 Jan Hubicka <jh@suse.cz>
4149 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4151 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4153 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4154 (avx_vperm2f128_*_operand): Ditto.
4155 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4156 Use avx_vpermilp_parallel in insn condition.
4157 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4158 Use avx_vperm2f128_parallel in insn condition.
4160 2011-04-27 Richard Guenther <rguenther@suse.de>
4162 * Makefile.in (tree-ssa-structalias.o): Remove
4163 gt-tree-ssa-structalias.h dependency.
4164 (GTFILES): Remove tree-ssa-structalias.c.
4165 * tree.c (allocate_decl_uid): New function.
4166 (make_node_stat): Use it.
4167 (copy_node_stat): Likewise.
4168 * tree.h (allocate_decl_uid): Declare.
4169 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4170 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4171 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4172 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4173 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4174 (struct heapvar_map): Likewise.
4175 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4176 heapvar_insert): Likewise.
4177 (make_heapvar_for): Rename to ...
4178 (make_heapvar): ... this. Simplify.
4179 (fake_var_decl_obstack): New global var.
4180 (build_fake_var_decl): New function.
4181 (make_constraint_from_heapvar): Adjust.
4182 (handle_lhs_call): Likewise.
4183 (create_function_info_for): Likewise.
4184 (intra_create_variable_infos): Likewise.
4185 (init_alias_vars): Allocate fake_var_decl_obstack.
4186 (init_alias_heapvars, delete_alias_heapvars): Remove.
4187 (compute_points_to_sets): Do not call init_alias_heapvars.
4188 (ipa_pta_execute): Likewise.
4189 (delete_points_to_sets): Free fake_var_decl_obstack.
4191 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4193 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4194 (si_from_UTItype, si_to_UTItype): New functions.
4195 (__udivmodti4): Use them to implement type-punning.
4196 * config/spu/multi3.c (union qword_TItype): New data type.
4197 (si_from_TItype, si_to_TItype): New functions.
4198 (__multi3): Use them to implement type-punning.
4200 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4202 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4204 2011-04-27 Jan Hubicka <jh@suse.cz>
4206 * ipa-prop.c (function_insertion_hook_holder): New holder.
4207 (ipa_add_new_function): New function.
4208 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4209 Register/deregister holder.
4211 2011-04-27 Richard Guenther <rguenther@suse.de>
4213 PR tree-optimization/48772
4214 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4216 2011-04-27 Richard Guenther <rguenther@suse.de>
4218 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4219 TARGET_MEM_REF handling.
4221 2011-04-27 Nick Clifton <nickc@redhat.com>
4223 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4224 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4225 (REG_CLASS_NAMES): Likewise.
4226 (REG_CLASS_CONTENTS): Likewise.
4227 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4228 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4229 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4230 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4231 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4232 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4233 duplicate register classes.
4234 (frv_class_likely_spilled_p): Likewise.
4235 (frv_register_move_cost): Likewise.
4237 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4238 end of the regno_reg_class array.
4240 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4243 * c-typeck.c (build_binary_op): Don't wrap arguments if
4244 int_operands is true.
4246 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4249 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4250 targetm.calls.must_pass_in_stack for void type.
4252 2011-04-26 Jan Hubicka <jh@suse.cz>
4254 * cgraphbuild.c (build_cgraph_edges): Update call
4255 of cgraph_create_edge and cgraph_create_indirect_edge.
4256 * cgraph.c (cgraph_create_edge_including_clones,
4257 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4258 cgraph_update_edges_for_call_stmt_node): Do not take nest
4259 argument; do not initialize call_stmt_size/time.
4260 (dump_cgraph_node): Do not dump nest.
4261 (cgraph_clone_edge): Do not take loop_nest argument;
4262 do not propagate it; do not clone call_stmt_size/time.
4263 (cgraph_clone_node): Likewise.
4264 (cgraph_create_virtual_clone): Update.
4265 * cgraph.h (struct cgraph_edge): Remove
4266 call_stmt_size/call_stmt_time/loop_nest.
4267 (cgraph_create_edge, cgraph_create_indirect_edge,
4268 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4270 * tree-emutls.c (gen_emutls_addr): Update.
4271 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4272 loop_nest; handle indirect calls, too.
4273 (clone_inlined_nodes): Do not care about updating inline summaries.
4274 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4275 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4276 stream call_stmt_size/call_stmt_time/loop_nest.
4277 * ipa-inline.c (edge_badness): Update.
4278 (ipa_inline): dump summaries after inlining.
4279 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4281 (inline_edge_summary): New function.
4282 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4283 (inline_edge_removal_hook): Handle edge summaries.
4284 (inline_edge_duplication_hook): New hook.
4285 (inline_summary_alloc): Alloc hooks.
4286 (initialize_growth_caches): Do not register removal hooks.
4287 (free_growth_caches); Do not free removal hook.
4288 (dump_inline_edge_summary): New function.
4289 (dump_inline_summary): Use it.
4290 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4291 (inline_update_callee_summaries): New function.
4292 (inline_merge_summary): Use it.
4293 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4294 (read_inline_edge_summary): New function.
4295 (inline_read_section): Use it.
4296 (write_inline_edge_summary): New function.
4297 (inline_write_summary): Use it.
4298 (inline_free_summary): Free edge new holders.
4299 * tree-inline.c (copy_bb): Update.
4301 2011-04-26 Jason Merrill <jason@redhat.com>
4303 * tree-eh.c (lower_try_finally_switch): Create the label along with
4304 the CASE_LABEL_EXPR.
4306 2011-04-26 David S. Miller <davem@davemloft.net>
4307 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4309 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4310 * configure: Regenerate.
4312 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4315 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4317 (VEC_reduc): New code iterator and splitters for vector reduction.
4318 (VEC_reduc_name): Ditto.
4319 (VEC_reduc_rtx): Ditto.
4320 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4321 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4323 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4324 support for extracting SF on VSX.
4326 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4327 generating xscvspdp.
4328 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4329 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4330 double add, minimum, maximum vector reduction.
4331 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4332 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4333 optimize double vector reduction.
4334 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4336 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4338 * config/fr30/fr30.h (inhibit_libc): Don't define.
4339 * config/m32r/m32r-protos.h: Correct comment.
4340 * config/v850/v850.h (GHS_default_section_names,
4341 GHS_current_section_names): Use tree, not union tree_node *.
4343 2011-04-26 Xinliang David Li <davidxl@google.com>
4345 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4346 * c-family/c-opts.c (c_common_handle_option): Set
4347 warn_maybe_uninitialized.
4348 * opts.c (common_handle_option): Ditto.
4349 * common.opt: New option.
4350 * tree-ssa.c (warn_uninit): Add one more parameter.
4351 (warn_uninitialized_var): Pass warning code.
4352 * tree-flow.h: Interface change.
4355 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4357 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4358 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4359 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4361 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4363 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4364 * config/mips/mips.opt (mmips-tfile): Remove.
4366 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4367 mips-tdump reference to ...
4368 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4369 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4370 reference by Tru64 UNIX.
4372 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4375 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4376 is error_mark_node, set value to NULL.
4378 PR tree-optimization/48734
4379 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4380 if return value from maybe_fold_*_comparsions isn't something
4381 the code is prepared to handle.
4383 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4385 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4387 (ext_QIreg_nomode_operands): Remove.
4388 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4392 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4394 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4396 2011-04-26 Richard Guenther <rguenther@suse.de>
4398 * c-typeck.c (build_unary_op): Do not expand array-refs via
4399 pointer arithmetic. Only adjust qualifiers for function types.
4401 2011-04-26 Richard Guenther <rguenther@suse.de>
4404 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4405 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4406 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4407 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4409 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4411 * doc/extend.texi: Document __underlying_type.
4413 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4415 * config/rs6000/titan.md (automata_option "progress"): Remove.
4417 2011-04-25 Jeff Law <law@redhat.com>
4419 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4421 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4423 * system.h (ENUM_BITFIELD): Remove.
4425 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4426 Eric Botcazou <ebotcazou@adacore.com>
4428 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4429 for STORE_FLAG_VALUE==-1 case.
4431 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4434 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4435 LEGITIMATE_PIC_OPERAND_P.
4437 2011-04-24 Jan Hubicka <jh@suse.cz>
4439 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4441 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4442 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4443 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4444 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4445 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4446 Sanity check predicate length.
4447 (remap_predicate): Likewise; sanity check jump functions.
4448 (inline_read_section, inline_write_summary): Sanity check
4451 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4454 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4455 __is_literal_type, and __is_trivial; update throughout about
4456 possibly cv-qualified void types.
4458 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4460 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4461 testsuite and make it version agnostic.
4463 2011-04-22 Jan Hubicka <jh@suse.cz>
4465 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4467 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4470 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4471 to VOID_TYPE even around MODIFY_EXPR.
4473 2011-04-22 Mike Stump <mikestump@comcast.net>
4475 * gensupport.c (read_md_rtx): Fix typo in comment.
4476 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4479 2011-04-22 Jan Hubicka <jh@suse.cz>
4481 * gengtype.c (open_base_files): Add ipa-inline.h include.
4482 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4483 ipa-prop.c; update all uses.
4484 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4485 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4486 merge summary of inlined function into former caller.
4487 * ipa-inline.c (max_benefit): Remove.
4488 (edge_badness): Compensate for removal of benefits.
4489 (update_caller_keys): Use
4490 reset_node_growth_cache/reset_edge_growth_cache.
4491 (update_callee_keys): Likewise.
4492 (update_all_callee_keys): Likewise.
4493 (inline_small_functions): Do not collect max_benefit; do not reset
4494 estimated_growth; call free_growth_caches and initialize_growth_caches.
4495 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4496 struct size_time_entry): New structures.
4497 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4498 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4499 and estimated_growth.
4500 (edge_growth_cache_entry): New structure.
4501 (node_growth_cache, edge_growth_cache): New global vars.
4502 (estimate_growth): Turn into inline.
4503 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4504 initialize_growth_caches, free_growth_caches): Declare.
4505 (estimate_edge_growth): Rewrite.
4506 (estimate_edge_time): Implement as inline cache lookup.
4507 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4509 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4510 (NUM_CONDITIONS): New constant.
4511 (predicate_conditions): New enum.
4512 (IS_NOT_CONSTANT): New constant.
4513 (edge_removal_hook_holder): New var.
4514 (node_growth_cache, edge_growth_cache): New global vars.
4515 (true_predicate, single_cond_predicate, false_predicate,
4516 not_inlined_predicate, add_condition, add_clause, and_predicates,
4517 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4518 dump_clause, dump_predicate, account_size_time,
4519 evaulate_conditions_for_edge): New functions.
4520 (inline_summary_alloc): Move to heap.
4521 (inline_node_removal_hook): Clear condition and entry vectors.
4522 (inline_edge_removal_hook): New function.
4523 (initialize_growth_caches, free_growth_caches): New function.
4524 (dump_inline_summary): Update.
4525 (edge_execution_predicate): New function.
4526 (will_be_nonconstant_predicate): New function.
4527 (estimate_function_body_sizes): Compute BB and constantness predicates.
4528 (compute_inline_parameters): Do not clear estimated_growth.
4529 (estimate_edge_size_and_time): New function.
4530 (estimate_calls_size_and_time): New function.
4531 (estimate_callee_size_and_time): New function.
4532 (remap_predicate): New function.
4533 (inline_merge_summary): New function.
4534 (do_estimate_edge_time): New function based on...
4535 (estimate_edge_time): ... this one.
4536 (do_estimate_edge_growth): New function.
4537 (do_estimate_growth): New function based on....
4538 (estimate_growth): ... this one.
4539 (inline_analyze_function): Analyze after deciding on jump functions.
4540 (inline_read_section): New function.
4541 (inline_read_summary): Use it.
4542 (inline_write_summary): Write all the new data.
4543 * ipa-prop.c (ipa_get_param_decl_index): Export.
4544 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4545 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4547 (ipa_get_lattice): Move here from ipa-cp.c
4548 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4549 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4550 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4551 cgraph_edge_inlinable_p): Remove.
4552 * cgraphunit.c: Include ipainline.h
4553 (cgraph_process_new_functions): Update call of
4554 compute_inline_parameters.
4556 2011-04-22 Richard Guenther <rguenther@suse.de>
4558 * tree.c (build_int_cst): Properly create canonicalized integer
4560 (build_int_cst_type): Remove scary comments.
4562 2011-04-22 Xinliang David Li <davidxl@google.com>
4564 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4565 by default when -Wno-error is not specified.
4566 * opts-global.c (decode_options): Remove call to
4567 control_warning_options.
4569 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4571 PR tree-optimization/48717
4572 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4573 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4575 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4577 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4578 definition where used.
4580 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4583 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4584 TREE_STATIC variables declared inside of some OpenMP construct.
4586 2011-04-22 Martin Jambor <mjambor@suse.cz>
4589 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4591 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4594 * c-typeck.c (pop_init_level): Do not warn about initializing
4597 2011-04-22 Alan Modra <amodra@gmail.com>
4599 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4600 when returning call_cookie.
4601 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4602 pointers, to functions with no more vector args than the current
4603 function, and some non-local calls for ABI_V4.
4604 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4605 sibcall_nonlocal_aix64): Combine to ..
4606 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4607 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4608 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4609 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4610 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4612 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4613 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4614 sibcall_value_symbolic_64): Delete.
4616 2011-04-21 Xinliang David Li <davidxl@google.com>
4618 * cgraph.h: Remove pid.
4619 * cgraph.c: Remove pid.
4620 * value-prof.c (init_node_map): New function.
4621 (del_node_map): New function.
4622 (find_func_by_funcdef_no): New function.
4623 (gimple_ic_transform): Call new function.
4624 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4625 * function.c (get_last_funcdef_no): New function.
4626 * function.h (get_last_funcdef_no): New function.
4627 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4628 to libgcov function.
4629 (tree-profiling): Call node map init and delete function.
4631 2011-04-21 Ian Lance Taylor <iant@google.com>
4633 * godump.c (go_format_type): Use exported Go name for anonymous
4636 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4638 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4639 Call builtin_function_type_list instead of builtin_function_type.
4640 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4642 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4644 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4645 build_function_type_list instead of build_function_type.
4646 Delete variable `endlink'.
4648 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4650 * config/s390/s390.c (s390_init_builtins): Call
4651 build_function_type_list instead of build_function_type.
4653 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4655 * config/ia64/ia64.c (ia64_init_builtins): Call
4656 build_function_type_list instead of builtin_function_type.
4658 2011-04-21 Easwaran Raman <eraman@google.com>
4660 * cfgexpand.c (stack_var): Remove OFFSET...
4661 (add_stack_var): ...and its reference here...
4662 (expand_stack_vars): ...and here.
4663 (stack_var_cmp): Sort by descending order of size.
4664 (partition_stack_vars): Change heuristic.
4665 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4666 (dump_stack_var_partition): Add newline after each partition.
4668 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4669 Jeff Law <law@redhat.com>
4671 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4672 * gengtype.c (matching_file_name_substitute): Likewise.
4674 2011-04-21 Richard Guenther <rguenther@suse.de>
4677 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4679 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4681 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4683 2011-04-21 Richard Guenther <rguenther@suse.de>
4685 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4688 2011-04-21 Richard Guenther <rguenther@suse.de>
4690 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4691 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4692 Use DECL_P, not SSA_VAR_P.
4693 (ptr_derefs_may_alias_p): Likewise.
4694 (ptr_deref_may_alias_ref_p_1): Likewise.
4695 (decl_refs_may_alias_p): Likewise.
4696 (refs_may_alias_p_1): Likewise.
4697 (ref_maybe_used_by_call_p_1): Likewise.
4698 (call_may_clobber_ref_p_1): Likewise.
4699 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4700 are either MEM_REF or TARGET_MEM_REF.
4701 (indirect_refs_may_alias_p): Likewise.
4702 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4703 for MEM_EXPR of indirect calls.
4705 2011-04-21 Tristan Gingold <gingold@adacore.com>
4707 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4708 (dst_file_info_struct): Remove flen field.
4709 (lookup_filename): Remove code that set flen field.
4711 2011-04-21 Tristan Gingold <gingold@adacore.com>
4713 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4715 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4718 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4719 vec_extract and vec_concat for non-SSE4_1 targets.
4721 2011-04-21 Richard Guenther <rguenther@suse.de>
4723 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4726 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4728 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4730 (FILE): Don't undefine.
4732 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4734 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4736 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4738 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4739 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4740 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4742 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4743 definitions where used.
4744 * config/microblaze/microblaze.h (struct microblaze_args): Use
4745 rtx, not struct rtx_def *.
4746 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4748 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4749 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4750 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4751 not struct rtx_def *.
4752 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4754 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4756 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4758 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4760 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4761 operand_equal_p to compare DR_BASE_ADDRESSes.
4762 (vect_check_interleaving): Likewise.
4764 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4767 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4768 for all Neon struct constants.
4770 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4772 * target.def (legitimate_constant_p): New hook.
4773 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4774 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4775 * doc/tm.texi: Regenerate.
4776 * hooks.h (hook_bool_mode_rtx_true): Declare.
4777 * hooks.c (hook_bool_mode_rtx_true): Define.
4778 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4779 * calls.c (precompute_register_parameters): Replace uses of
4780 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4781 (emit_library_call_value_1): Likewise.
4782 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4783 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4784 * ira-costs.c (scan_one_insn): Likewise.
4785 * recog.c (general_operand, immediate_operand): Likewise.
4786 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4787 * reload1.c (init_eliminable_invariants): Likewise.
4789 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4791 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4792 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4794 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4795 * config/alpha/predicates.md (input_operand): Update call to
4796 alpha_legitimate_constant_p.
4798 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4799 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4800 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4801 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4802 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4803 (arm_legitimate_constant_p): New functions.
4804 (arm_cannot_force_const_mem): Make static.
4806 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4808 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4809 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4810 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4811 instead of bfin_legitimate_constant_p.
4812 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4813 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4815 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4817 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4819 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4820 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4821 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4822 (frv_legitimate_constant_p): Make static. Add a mode argument.
4824 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4825 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4826 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4828 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4829 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4830 * config/i386/i386.c (legitimate_constant_p): Rename to...
4831 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4833 (ix86_cannot_force_const_mem): Update accordingly.
4834 (ix86_legitimate_address_p): Likewise.
4835 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4836 * config/i386/i386.md: Update commentary.
4838 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4839 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4840 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4841 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4843 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4845 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4846 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4847 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4848 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4850 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4851 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4852 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4854 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4855 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4856 (m32r_legitimate_constant_p): New function.
4858 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4859 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4860 LEGITIMATE_CONSTANT_P.
4861 (LEGITIMATE_CONSTANT_P): Delete.
4862 * config/m68k/m68k.c (m68k_expand_prologue): Call
4863 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4864 (m68k_legitimate_constant_p): New function.
4865 * config/m68k/m68k.md: Update comments.
4867 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4868 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4869 (mcore_legitimate_constant_p): New function.
4871 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4872 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4873 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4874 Add a mode argument.
4875 (mep_legitimate_address): Update accordingly.
4876 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4878 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4880 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4881 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4882 static. Check OP's mode for VOIDmode.
4883 (microblaze_legitimate_constant_p): New function.
4884 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4886 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4887 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4888 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4889 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4890 * config/mips/predicates.md: Update comments.
4892 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4893 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4894 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4895 (mmix_legitimate_constant_p): Make static, return a bool, and take
4897 (mmix_print_operand_address): Update accordingly.
4899 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4901 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4902 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4903 static. Add a mode argument.
4904 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4906 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4908 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4909 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4910 (pa_legitimate_constant_p): New function.
4912 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4914 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4915 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4916 (pdp11_legitimate_constant_p): New function.
4918 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4919 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4920 (rs6000_legitimate_constant_p): New function.
4922 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4923 (rx_legitimate_constant_p): ...this.
4924 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4925 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4926 (rx_legitimate_constant_p): ...this.
4927 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4928 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4930 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4931 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4932 * config/s390/s390.c (legitimate_constant_p): Rename to...
4933 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4934 and add a mode argument.
4935 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4937 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4939 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4940 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4941 (sh_legitimate_constant_p): New function.
4943 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4944 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4945 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4946 (legitimate_constant_p): Rename to...
4947 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4949 (constant_address_p): Update accordingly.
4951 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4952 argument and return a bool.
4953 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4954 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4955 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4956 (spu_rtx_costs): Update accordingly.
4957 * config/spu/predicates.md (vec_imm_operand): Likewise.
4959 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4961 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4962 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4963 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4965 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4966 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4967 * config/vax/vax.c (legitimate_constant_p): Likewise.
4969 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4970 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4971 (xtensa_legitimate_constant_p): New function.
4973 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4975 * target.def (cannot_force_const_mem): Add a mode argument.
4976 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4977 * doc/tm.texi: Regenerate.
4978 * hooks.h (hook_bool_mode_rtx_false): Declare.
4979 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4980 (hook_bool_mode_const_rtx_true): Likewise.
4981 (hook_bool_mode_rtx_false): New function.
4982 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4983 to be non-VOID. Update call to cannot_force_const_mem.
4984 (find_reloads): Update accordingly.
4985 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4986 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4988 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4989 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4990 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4991 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4992 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4993 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4994 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4995 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4996 (m68k_cannot_force_const_mem): ...this new function.
4997 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4999 (mips_const_insns, mips_legitimize_const_move): Update calls.
5000 (mips_secondary_reload_class): Likewise.
5001 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5002 (pa_cannot_force_const_mem): ...this new function.
5003 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5004 (rs6000_cannot_force_const_mem): ...this new function.
5005 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5007 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5008 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5010 (xtensa_cannot_force_const_mem): ...this new function.
5012 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5014 * config/mips/mips.c (mips16_build_function_stub): Call
5015 build_function_type_list instead of build_function_type.
5016 (mips16_build_call_stub): Likewise.
5018 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5020 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5021 instead of build_function_type.
5023 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5025 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5026 instead of build_function_type.
5028 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5031 * config/i386/i386.md (insv): Change operand 0 constraint to
5032 "register_operand". Change operand 1 and 2 constraint to
5033 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5034 * config/i386/sse.md (sse4_1_pinsrb): Export.
5035 (sse2_pinsrw): Ditto.
5036 (sse4_1_pinsrd): Ditto.
5037 (sse4_1_pinsrq): Ditto.
5038 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5039 * config/i386/i386.c (ix86_expand_pinsr): New.
5041 2011-04-20 Easwaran Raman <eraman@google.com>
5043 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5044 containing union type only with -fstrict-aliasing.
5046 2011-04-20 Jim Meyering <meyering@redhat.com>
5048 Remove useless if-before-free tests.
5049 * calls.c (expand_call, save_area): Likewise.
5050 * cfgcleanup.c (try_forward_edges): Likewise.
5051 * collect2.c (collect_execute): Likewise.
5052 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5053 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5054 * coverage.c (coverage_checksum_string): Likewise.
5055 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5056 * cselib.c (cselib_init): Likewise.
5057 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5058 (df_set_clean_cfg): Likewise.
5059 * function.c (free_after_compilation): Likewise.
5060 * gcc.c (do_spec_1, main): Likewise.
5061 * gcov.c (create_file_names): Likewise.
5062 * gensupport.c (identify_predicable_attribute): Likewise.
5063 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5064 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5065 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5066 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5067 * ipa-pure-const.c (local_pure_const): Likewise.
5068 * ipa-reference.c (propagate): Likewise.
5069 * ira-costs.c (free_ira_costs): Likewise.
5070 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5071 * matrix-reorg.c (mat_free): Likewise.
5072 * prefix.c (get_key_value): Likewise.
5073 * profile.c (compute_value_histograms): Likewise.
5074 * reload1.c (free_reg_equiv): Likewise.
5075 * sched-deps.c (free_deps): Likewise.
5076 * sel-sched-ir.c (fence_clear): Likewise.
5077 * sese.c (set_rename, if_region_set_false_region): Likewise.
5078 * tree-data-ref.c (free_rdg): Likewise.
5079 * tree-eh.c (lower_try_finally): Likewise.
5080 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5081 * tree-ssa-live.c (delete_var_map): Likewise.
5082 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5083 * tree-ssa-pre.c (phi_trans_add): Likewise.
5085 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5087 PR tree-optimization/48611
5088 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5089 beyond ERT_MUST_NOT_THROW region.
5091 2011-04-20 Catherine Moore <clm@codesourcery.com>
5093 * config/mips/mips.opt (mfix-24k): New.
5094 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5095 * config/mips/mips.md (length): Increase by 4 for stores if
5097 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5098 all noreorder if fixing 24K errata.
5099 * doc/invoke.texi: Document mfix-24k.
5101 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5103 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5104 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5106 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5108 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5109 (const_ok_for_op): ... to here.
5111 2011-04-20 Kai Tietz <ktietz@redhat.com>
5113 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5114 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5116 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5118 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5120 2011-04-20 Richard Guenther <rguenther@suse.de>
5122 PR tree-optimization/47892
5123 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5126 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5128 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5130 2011-04-20 Tristan Gingold <gingold@adacore.com>
5132 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5134 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5138 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5139 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5140 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5141 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5142 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5144 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5147 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5148 (avr_asm_named_section, avr_asm_output_aligned_common,
5149 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5150 New functions to update...
5151 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5152 (avr_asm_init_sections): Overwrite section callbacks for
5153 data_section, bss_section.
5154 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5156 (avr_file_end): ...here.
5158 2011-04-20 Richard Guenther <rguenther@suse.de>
5161 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5162 objects and types here. Adjust for their offset before comparing.
5164 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5166 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5169 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5171 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5172 (GIMPLE_H): Include $(INTERNAL_FN_H).
5173 (OBJS-common): Add internal-fn.o.
5174 (internal-fn.o): New rule.
5175 * internal-fn.def: New file.
5176 * internal-fn.h: Likewise.
5177 * internal-fn.c: Likewise.
5178 * gimple.h: Include internal-fn.h.
5179 (GF_CALL_INTERNAL): New gf_mask.
5180 (gimple_statement_call): Put fntype into a union with a new
5182 (gimple_build_call_internal): Declare.
5183 (gimple_build_call_internal_vec): Likewise.
5184 (gimple_call_same_target_p): Likewise.
5185 (gimple_call_internal_p): New function.
5186 (gimple_call_internal_fn): Likewise.
5187 (gimple_call_fntype): Return null for internal calls.
5188 (gimple_call_set_fntype): Assert that the function is not internal.
5189 (gimple_call_set_fn): Likewise.
5190 (gimple_call_set_fndecl): Likewise.
5191 (gimple_call_set_internal_fn): New function.
5192 (gimple_call_addr_fndecl): Handle null functions.
5193 (gimple_call_return_type): Likewise null types.
5194 * gimple.c (gimple_build_call_internal_1): New function.
5195 (gimple_build_call_internal): Likewise.
5196 (gimple_build_call_internal_vec): Likewise.
5197 (gimple_call_same_target_p): Likewise.
5198 (gimple_call_flags): Handle calls to internal functions.
5199 (gimple_call_fnspec): New function.
5200 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5201 (gimple_has_side_effects): Handle null functions.
5202 (gimple_rhs_has_side_effects): Likewise.
5203 (gimple_call_copy_skip_args): Handle calls to internal functions.
5204 * cfgexpand.c (expand_call_stmt): Likewise.
5205 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5206 * gimple-fold.c (gimple_fold_call): Handle null functions.
5207 (gimple_fold_stmt_to_constant_1): Don't fold
5208 calls to internal functions.
5209 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5211 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5212 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5213 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5214 (do_warn_unused_result): Likewise.
5215 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5216 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5217 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5218 the target of a call.
5219 (initialize_hash_element): Update accordingly.
5220 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5221 (iterative_hash_hashable_expr): Handle calls to internal functions.
5222 (print_expr_hash_elt): Likewise.
5223 * tree-ssa-pre.c (can_value_number_call): Likewise.
5224 (eliminate): Handle null functions.
5225 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5226 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5227 (find_func_aliases): Likewise.
5228 * value-prof.c (gimple_ic_transform): Likewise.
5229 (gimple_indirect_call_to_profile): Likewise.
5230 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5231 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5233 2011-04-19 Jan Hubicka <jh@suse.cz>
5235 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5236 * ipa-inline.c (inline_small_functions): Compute summaries first,
5237 populate heap later.
5239 2011-04-19 Jan Hubicka <jh@suse.cz>
5241 * cgraph.h (save_inline_function_body): Remove.
5242 * ipa-inline-transform.c: New file, broke out of...
5243 * ipa-inline.c: ... this one; Update toplevel comment.
5244 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5246 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5247 (cgraph_mark_inline_edge): Rename to inline_call; move to
5248 ipa-inline-transform.c.
5249 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5250 move to ipa-inline-transform.c
5251 (recursive_inlining, inline_small_functions, flatten_function,
5252 ipa_inline, inline_always_inline_functions,
5253 early_inline_small_functions): Update.
5254 (inline_transform): Move to ipa-inline-transform.c.
5255 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5257 * Makefile.in (ipa-inline-transform.o): New file.
5258 * cgraphunit.c (save_inline_function_body): Move to
5259 ipa-inline-transform.c
5261 2011-04-19 DJ Delorie <dj@redhat.com>
5263 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5264 registers if we already know there aren't any.
5265 (m32c_emit_epilogue): Don't emit a barrier here.
5266 (m32c_emit_eh_epilogue): Likewise.
5267 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5268 operands at expand time.
5269 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5271 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5272 duplicates. Provide aliases instead.
5273 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5274 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5277 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5279 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5280 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5281 (general_or_i64_p, sparc_register_move_cost): New function.
5283 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5285 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5286 Add lynx, mipssde. Sort table.
5288 2011-04-19 Xinliang David Li <davidxl@google.com>
5290 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5293 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5296 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5297 is a SUBREG with non-MODE_INT mode inside of it.
5299 2011-04-19 Martin Jambor <mjambor@suse.cz>
5301 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5302 also according to actual contants.
5303 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5304 (gimple_fold_call): Use it.
5305 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5307 2011-04-19 Martin Jambor <mjambor@suse.cz>
5309 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5310 non-pointer assignments.
5312 2011-04-19 Martin Jambor <mjambor@suse.cz>
5314 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5315 account anc_offset and otr_type from the indirect edge info.
5316 * ipa-prop.c (get_ancestor_addr_info): New function.
5317 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5318 get_ancestor_addr_info, call it.
5319 (ipa_note_param_call): Do not initialize information about polymorphic
5320 calls, return the indirect call graph edge. Remove the last
5321 parameter, adjust all callers.
5322 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5323 parameters. Initialize polymorphic information in the indirect edge.
5325 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5328 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5329 the types if they have different enumeration identifiers.
5331 2011-04-19 Jan Hubicka <jh@suse.cz>
5333 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5334 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5335 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5336 (optimize_function_for_size_p) ... here.
5338 2011-04-19 Richard Guenther <rguenther@suse.de>
5341 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5344 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5346 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5347 if DECL_NO_INLINE_WARNING_P is set on the function.
5349 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5352 * reload1.c (inc_for_reload): Return void. All callers changed.
5353 (emit_input_reload_insns): Don't try to delete previous output
5354 reloads to a register, or record spill_reg_store for autoincs.
5356 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5358 * gengtype.h: Updated copyright year.
5359 (struct input_file_st): Add inpisplugin field.
5360 (type_fileloc): New function.
5362 (write_typed_struct_alloc_def): Add gcc_assert.
5363 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5364 (write_typed_alloc_defns): Don't output for plugin files.
5365 (input_file_by_name): Clear inpisplugin field.
5366 (main): Set inpisplugin field for plugin files.
5368 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5370 * gengtype-state.c (string_eq): New.
5371 (read_state): Use string_eq instead of strcmp when creating the
5374 2011-04-19 Wei Guozhi <carrot@google.com>
5377 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5378 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5380 * config/arm/constraints.md (Uu): New constraint.
5381 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5383 2011-04-19 Tristan Gingold <gingold@adacore.com>
5385 * config.gcc (-*-*-*vms): Added.
5386 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5388 * config/vms/vms-ld.c: New file.
5389 * config/vms/vms-ar.c: New file.
5390 * config/vms/t-vmsnative: New file.
5392 2011-04-18 Xinliang David Li <davidxl@google.com>
5394 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5396 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5399 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5400 if TREE_TYPE (v) is non-NULL.
5402 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5403 gimple_get_virt_mehtod_for_binfo.
5404 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5405 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5407 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5409 2011-04-18 Michael Matz <matz@suse.de>
5410 Steve Ellcey <sje@cup.hp.com>
5412 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5413 use its mode as source mode if it isn't VOIDmode.
5415 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5417 * doc/passes.texi: Fill crossref nodes.
5419 2011-04-18 Jim Meyering <meyering@redhat.com>
5421 Fix doubled-word typos in comments and strings
5422 * config/alpha/vms-unwind.h: s/for for/for/
5423 * config/arm/unwind-arm.h: Likewise.
5424 * config/microblaze/microblaze.c: Likewise.
5425 * config/sh/constraints.md: s/in in/in/
5426 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5428 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5430 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5431 (AVX_FLOAT_MODE_P): Ditto.
5432 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5433 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5434 (AVX_VEC_FLOAT_MODE_P): Ditto.
5435 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5436 (UNSPEC_MASKSTORE): Ditto.
5437 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5438 Merge from <sse>_movmsk<ssemodesuffix> and
5439 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5440 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5442 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5443 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5444 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5446 2011-04-18 Jan Hubicka <jh@suse.cz>
5448 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5450 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5451 (want_inline_function_called_once_p): Break out the logic from
5453 (edge_badness): Ensure that profile is not misupdated.
5454 (lookup_recursive_calls): Prioritize by call frequencies.
5455 (inline_small_functions): Move program size estimates here;
5456 actually process whole queue even when unit growth has been
5457 met. (to properly compute inline_failed reasons and for the
5458 case unit size decrease.) Revisit comments on recursive inlining.
5459 (ipa_inline): Remove unit summary code; first inline hot calls
5460 of functions called once, cold calls next.
5461 (order, nnodes): Remove unused variables.
5462 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5463 (GTFILES): Remove ipa-inline.c
5464 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5466 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5468 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5470 2011-04-18 Jie Zhang <jie@codesourcery.com>
5471 Richard Earnshaw <rearnsha@arm.com>
5473 * arm.c (neon_builtin_type_bits): Remove.
5474 (typedef enum neon_builtin_mode): New.
5475 (T_MAX): Don't define.
5476 (typedef enum neon_builtin_datum): Remove bits, codes[],
5477 num_vars and base_fcode. Add mode, code and fcode.
5478 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5479 VAR10): Change accordingly.
5480 (neon_builtin_data[]): Change accordingly
5481 (arm_init_neon_builtins): Change accordingly.
5482 (neon_builtin_compare): Remove.
5483 (locate_neon_builtin_icode): Remove.
5484 (arm_expand_neon_builtin): Change accordingly.
5486 * arm.h (enum arm_builtins): Move to ...
5487 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5489 * arm.c (arm_builtin_decl): Declare.
5490 (TARGET_BUILTIN_DECL): Define.
5491 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5492 (arm_builtin_decls[]): New.
5493 (arm_init_neon_builtins): Store builtin declarations in
5494 arm_builtin_decls[].
5495 (arm_init_tls_builtins): Likewise.
5496 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5497 (arm_builtin_decl): New.
5499 2011-04-18 Richard Guenther <rguenther@suse.de>
5501 * tree.c (upper_bound_in_type): Build properly canonicalized
5503 (lower_bound_in_type): Likewise.
5505 2011-04-18 Richard Guenther <rguenther@suse.de>
5507 * gimple.h (gimple_call_addr_fndecl): New function.
5508 (gimple_call_fndecl): Use it.
5509 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5511 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5512 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5514 2011-04-18 Richard Guenther <rguenther@suse.de>
5517 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5519 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5522 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5523 DECL_IN_CONSTANT_POOL without RTL.
5525 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5526 Ira Rosen <ira.rosen@linaro.org>
5529 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5530 to match neon_vzip/vuzp/vtrn_internal.
5531 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5532 outputs explicitly dependent on both inputs.
5533 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5535 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5537 PR tree-optimization/48616
5538 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5539 whether the shift is by scalar or vector based on whether all SLP
5540 scalar stmts have the same rhs.
5542 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5544 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5547 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5550 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5553 2011-04-17 Jan Hubicka <jh@suse.cz>
5555 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5556 * cgrpahunit.c (cgraph_finalize_function): Do not set
5557 finalized_by_frontend.
5558 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5559 finalized_by_frontend.
5561 2011-04-17 Jan Hubicka <jh@suse.cz>
5563 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5564 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5565 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5566 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5568 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5570 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5572 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5575 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5576 is non-null before accessing it.
5577 (input_cgraph): Remove trailing spaces.
5579 2011-04-17 Revital Eres <revital.eres@linaro.org>
5581 * params.def (sms-min-sc): New param flag.
5582 * modulo-sched.c (sms_schedule): Use it.
5583 * doc/invoke.texi (sms-min-sc): Document it.
5585 2011-04-17 Jan Hubicka <jh@suse.cz>
5587 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5588 present, also set gimple_call_set_cannot_inline.
5589 * ipa-inline.c: Update toplevel comment.
5591 (cgraph_clone_inlined_nodes): Fix linebreaks.
5592 (cgraph_check_inline_limits): Restructure to ...
5593 (caller_growth_limits): ... this one; be more tolerant
5594 on growth in nested inline chains; add explanatory comment;
5595 fix stack accounting thinko introduced by previous patch.
5596 (cgraph_default_inline_p): Remove.
5597 (report_inline_failed_reason): New function.
5598 (can_inline_edge_p): New function.
5599 (can_early_inline_edge_p): New function.
5600 (leaf_node_p): Move upwards in file.
5601 (want_early_inline_function_p): New function.
5602 (want_inline_small_function_p): New function.
5603 (want_inline_self_recursive_call_p): New function.
5604 (cgraph_edge_badness): Rename to ...
5605 (edge_badness) ... this one; fix linebreaks.
5606 (update_edge_key): Update call of edge_baddness; add
5607 detailed dump about queue updates.
5608 (update_caller_keys): Use can_inline_edge_p and
5609 want_inline_small_function_p.
5610 (cgraph_decide_recursive_inlining): Rename to...
5611 (recursive_inlining): Use can_inline_edge_p and
5612 want_inline_self_recursive_call_p; simplify and remove no longer
5614 (cgraph_set_inline_failed): Remove.
5615 (add_new_edges_to_heap): Use can_inline_edge_p and
5616 want_inline_small_function_p.
5617 (cgraph_decide_inlining_of_small_functions): Rename to ...
5618 (inline_small_functions): ... this one; cleanup; use
5619 can/want predicates; cleanup debug ouput; work edges till fibheap
5620 is exhausted and do not stop once unit growth is reached; remove
5621 later loop processing remaining edges.
5622 (cgraph_flatten): Rename to ...
5623 (flatten_function): ... this one; use can_inline_edge_p
5624 and can_early_inline_edge_p predicates.
5625 (cgraph_decide_inlining): Rename to ...
5626 (ipa_inline): ... this one; remove unreachable nodes before
5627 inlining functions called once; simplify the pass.
5628 (cgraph_perform_always_inlining): Rename to ...
5629 (inline_always_inline_functions): ... this one; use
5630 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5631 (cgraph_decide_inlining_incrementally): Rename to ...
5632 (early_inline_small_functions): ... this one; simplify
5633 using new predicates; cleanup; make dumps prettier.
5634 (cgraph_early_inlining): Rename to ...
5635 (early_inliner): newer inline regular functions into always-inlines;
5636 fix updating of call stmt summaries.
5637 (pass_early_inline): Update for new names.
5638 (inline_transform): Fix formating.
5639 (gate_cgraph_decide_inlining): Rename to ...
5640 (pass_ipa_inline): ... this one.
5641 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5642 * ipa-inline-analysis.c (dump_inline_summary): Update.
5643 (compute_inline_parameters): Do not compute disregard_inline_limits;
5644 look for mismatching arguments.
5645 (estimate_growth): Fix handlig of non-trivial self recursion.
5646 (inline_read_summary): Do not read info->disregard_inline_limits.
5647 (inline_write_summary): Do not write info->disregard_inline_limits.
5648 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5649 and move all checks into can_inline_edge_p predicate; re-enable code
5650 comparing optimization levels.
5651 (expand_call_inline): Do not test inline_forbidden_into_p.
5652 * Makefile.in (ipa-inline.o): Update arguments.
5654 2011-04-17 Revital Eres <revital.eres@linaro.org>
5656 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5658 2011-04-17 Revital Eres <revital.eres@linaro.org>
5660 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5662 2011-04-17 Michael Matz <matz@suse.de>
5664 PR tree-optimization/48622
5666 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5667 in same order as they're written.
5669 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5671 * config/pa/predicates.md: Reorganize and simplify predicates.
5672 Eliminate duplicate code checks.
5673 (arith_operand): Rename to arith14_operand
5674 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5675 * config/pa/pa.md: Use renamed operands.
5676 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5677 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5678 arith11_operand, adddi3_operand, indexed_memory_operand,
5679 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5680 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5681 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5682 move_dest_operand, move_src_operand, prefetch_cc_operand,
5683 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5684 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5685 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5686 div_operand, int5_operand, movb_comparison_operator,
5687 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5688 arith_double_operand, ireg_operand, lhs_lshift_operand,
5689 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5690 integer_store_memory_operand): Likewise.
5691 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5692 (integer_store_memory_operand, read_only_operand,
5693 function_label_operand, borx_reg_operand,
5694 non_hard_reg_operand): Likewise.
5695 (eq_neq_comparison_operator): Delete unused operator.
5696 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5697 function_label_operand.
5698 (emit_move_sequence): Likewise.
5700 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5702 * config/i386/sse.md (sseunpackmode): New mode attribute.
5703 (ssepackmode): Ditto.
5704 (vec_pack_trunc_<mode>): Macroize expander from
5705 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5706 (vec_unpacks_lo_<mode>): Macroize expander from
5707 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5708 (vec_unpacks_hi_<mode>): Macroize expander from
5709 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5710 (vec_unpacku_lo_<mode>): Macroize expander from
5711 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5712 (vec_unpacku_hi_<mode>): Macroize expander from
5713 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5714 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5715 ix86_expand_sse4_unpack.
5716 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5718 2011-04-16 Jan Hubicka <jh@suse.cz>
5720 * cgraphbuild.c: Include ipa-inline.h.
5721 (reset_inline_failed): Use initialize_inline_failed.
5722 * cgraph.c: Include ipa-inline.h.
5723 (cgraph_create_node_1): Do not initialize estimated_growth.
5724 (initialize_inline_failed): More to ipa-inline-analysis.c
5725 (dump_cgraph_node): Do not dump inline flags.
5726 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5727 and disregard_inline_limits flags.
5728 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5729 time, size, estimated_growth.
5730 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5732 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5733 DECL_DISREGARD_INLINE_LIMITS.
5734 (cgraph_analyze_function): Do not initialize
5735 node->local.disregard_inline_limits.
5736 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5737 inlinable, versionable and disregard_inline_limits.
5738 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5739 cgraph_check_inline_limits, cgraph_default_inline_p,
5740 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5741 add_new_edges_to_heap): Update.
5742 (cgraph_decide_inlining_of_small_function): Update; set
5743 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5744 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5745 cgraph_decide_inlining_incrementally): Update.
5746 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5747 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5748 time, size and estimated_growth parameters.
5749 (estimate_edge_growth): Update.
5750 (initialize_inline_failed): Declare.
5751 * ipa-split.c: Include ipa-inline.h
5752 (execute_split_functions): Update.
5753 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5754 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5755 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5756 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5757 estimated_growth to INT_MIN.
5758 (inline_node_duplication_hook): Likewise.
5759 (dump_inline_summary): Dump new fields.
5760 (compute_inline_parameters): Update.
5761 (estimate_edge_time, estimate_time_after_inlining,
5762 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5763 inline_write_summary):
5764 (initialize_inline_failed): Move here from cgraph.c.
5765 * tree-sra.c: Include ipa-inline.h.
5766 (ipa_sra_preliminary_function_checks): Update.
5767 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5770 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5772 * config/i386/sse.md (V16): New mode iterator.
5774 (AVXMODEQI, AVXMODEDI): Remove.
5775 (sse2, sse3): New mode attribute.
5776 (mov<mode>): Use V16 mode iterator.
5777 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5778 (push<mode>1): Use V16 mode iterator.
5779 (movmisalign<mode>): Ditto.
5780 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5781 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5782 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5783 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5784 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5785 avx_movdqu<avxmodesuffix>.
5786 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5787 *avx_movdqu<avxmodesuffix>.
5788 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5789 avx_lddqu<avxmodesuffix>.
5790 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5791 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5792 avx_movnt<AVXMODEDI:mode>.
5793 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5794 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5796 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5799 * haifa-sched.c (prune_ready_list, schedule_block): Use
5800 sched_pressure_p rather than flag_sched_pressure.
5802 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5804 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5805 cgraph_get_node instead of cgraph_get_create_node.
5807 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5809 * cfgexpand.c (expand_debug_expr): Use
5810 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5812 2011-04-15 Michael Matz <matz@suse.de>
5814 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5815 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5816 * function.c (gimplify_parameters): Ditto.
5817 * gimplify.c (gimplify_vla_decl): Ditto.
5819 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5820 (gimple_call_set_alloca_for_var): New inline function.
5821 (gimple_call_alloca_for_var_p): Ditto.
5822 * gimple.c (gimple_build_call_from_tree): Remember
5823 CALL_ALLOCA_FOR_VAR_P state.
5824 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5826 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5827 calls if they were for VLA objects.
5829 2011-04-15 Martin Jambor <mjambor@suse.cz>
5831 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5834 2011-04-15 Martin Jambor <mjambor@suse.cz>
5837 * tree-emutls.c (lower_emutls_function_body): Call
5838 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5841 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5843 * c-decl.c (detect_field_duplicates): Call
5844 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5846 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5848 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5849 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5850 * ipa-pure-const.c (check_stmt): Call it.
5851 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5853 2011-04-15 Richard Guenther <rguenther@suse.de>
5855 PR tree-optimization/48290
5856 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5857 Properly decide inhibiting propagation based on the valueized
5858 operand. Do loop-closed SSA form preserving here ...
5859 (init_copy_prop): ... not here.
5861 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5864 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5865 (*ieee_smax<mode>3): Likewise.
5867 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5869 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5870 Replace match_operand with match_dup for the third operand in
5873 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5875 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5876 to track processing of conditionals. Update all callers.
5877 (try_combine, simplify_if_then_else): Update.
5879 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5881 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5884 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5886 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5887 instead of match_operand for operand 3.
5889 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5891 * recog.h (insn_operand_data): Add an "allows_mem" field.
5892 * genoutput.c (output_operand_data): Initialize it.
5893 * optabs.c (maybe_legitimize_operand_same_code): New function.
5894 (maybe_legitimize_operand): Use it when matching the original
5897 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5899 * gimplify.c: Fix issues in comments throughout.
5900 (voidify_wrapper_expr): Fix long line.
5901 (build_stack_save_restore): Likewise.
5902 (gimplify_loop_expr): Likewise.
5903 (gimplify_compound_lval): Likewise.
5904 (gimplify_init_ctor_eval): Likewise.
5905 (gimplify_modify_expr_rhs): Likewise.
5906 (omp_notice_threadprivate_variable): Likewise.
5908 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5910 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5911 original one if this is not a builtin function.
5913 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5916 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5917 offset it as needed based on top 2 bits in operands[3], change
5918 MEM mode to SFmode and mask those 2 bits away from operands[3].
5920 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5922 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5923 change from objc_declare_protocols() to objc_declare_protocol().
5925 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5927 * config/i386/sse.md (sse4_1): New mode attribute.
5928 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5929 avx_blend<ssemodesuffix><avxmodesuffix> and
5930 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5931 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5932 avx_blendv<ssemodesuffix><avxmodesuffix> and
5933 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5934 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5935 avx_dp<ssemodesuffix><avxmodesuffix> and
5936 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5937 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5938 (sse4_1_packusdw): Merge with *avx_packusdw.
5939 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5940 (sse4_1_pblendw): Merge with *avx_pblendw.
5941 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5942 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5943 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5945 (sse4_1_round<ssescalarmodesuffix>): Merge with
5946 *avx_round<ssescalarmodesuffix>.
5947 (aesenc): Merge with *avx_aesenc.
5948 (aesenclast): Merge with *avx_aesenclast.
5949 (aesdec): Merge with *avx_aesdec.
5950 (aesdeclast): Merge with *avx_aesdeclast.
5951 (pclmulqdq): Merge with *pclmulqdq.
5952 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5954 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5956 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5959 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5960 (align_local_variable): This. Update DECL_ALIGN.
5961 (add_stack_var): Updated.
5962 (expand_one_stack_var): Likewise.
5964 2011-04-14 Richard Guenther <rguenther@suse.de>
5966 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5968 (dse_initialize_block_local_data, dse_leave_block,
5969 record_voperand_set, get_stmt_uid): Likewise.
5970 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5971 (dse_optimize_stmt): Remove voperand set handling code.
5972 Simplify and improve to handle any kind of killing stmt.
5973 (dse_record_phi): Remove.
5974 (dse_enter_block): Simplify.
5975 (tree_ssa_dse): Likewise.
5976 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5978 2011-04-14 Jan Hubicka <jh@suse.cz>
5980 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5981 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5982 (cgraph_local_info): Remove inline_summary.
5983 * ipa-cp.c: Include ipa-inline.h.
5984 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5985 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5987 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5988 (input_overwrite_node): Do not set inline summary.
5989 (input_node): Do not stream inline summary.
5990 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5991 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5992 growth; we do not have inline parameters computed for that anyway.
5993 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5994 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5995 (inline_summary_t): New type and VECtor.
5996 (debug_inline_summary, dump_inline_summaries): Declare.
5997 (inline_summary): Use VOCtor.
5998 (estimate_edge_growth): Kill hack computing call stmt size directly.
5999 * lto-section-in.c (lto_section_name): Add inline section.
6000 * ipa-inline-analysis.c: Include lto-streamer.h
6001 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6002 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6003 (inline_summary_vec): Define.
6004 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6005 dump_inline_summaries): New functions.
6006 (estimate_function_body_sizes): Properly compute size/time of outgoing
6008 (compute_inline_parameters): Alloc inline_summary; do not compute
6009 size/time of incomming calls.
6010 (estimate_edge_time): Avoid missing time summary hack.
6011 (inline_read_summary): Read inline summary info.
6012 (inline_write_summary): Write inline summary info.
6013 (inline_free_summary): Free all hooks and inline summary vector.
6014 * lto-streamer.h: Add LTO_section_inline_summary section.
6015 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6016 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6018 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6020 * tree-vectorizer.h (vect_strided_store_supported): Add a
6021 HOST_WIDE_INT argument.
6022 (vect_strided_load_supported): Likewise.
6023 (vect_permute_store_chain): Return void.
6024 (vect_transform_strided_load): Likewise.
6025 (vect_permute_load_chain): Delete.
6026 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6027 count argument. Check that the count is a power of two.
6028 (vect_strided_load_supported): Likewise.
6029 (vect_permute_store_chain): Return void. Update after above changes.
6030 Assert that the access is supported.
6031 (vect_permute_load_chain): Likewise.
6032 (vect_transform_strided_load): Return void.
6033 * tree-vect-stmts.c (vectorizable_store): Update calls after
6034 above interface changes.
6035 (vectorizable_load): Likewise.
6036 (vect_analyze_stmt): Don't check for strided powers of two here.
6038 2011-04-14 Richard Guenther <rguenther@suse.de>
6040 PR tree-optimization/48590
6041 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6042 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6043 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6044 BUILT_IN_STACK_SAVE.
6045 * tree-ssa-dce.c (propagate_necessity): Handle
6046 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6048 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6050 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6053 2011-04-14 Richard Guenther <rguenther@suse.de>
6055 * tree.h (get_object_alignment_1): Declare.
6056 * builtins.c (get_object_alignment_1): Split out worker from ...
6057 (get_object_alignment): ... here.
6058 * fold-const.c (get_pointer_modulus_and_residue): Use
6059 get_object_alignment_1.
6061 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6063 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6065 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6066 parameter. Generalise code to handle arrays as well as vectors.
6067 (vect_setup_realignment): Update accordingly.
6068 * tree-vect-stmts.c (vectorizable_store): Likewise.
6069 (vectorizable_load): Likewise.
6071 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6073 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6074 within the per-copy loop.
6076 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6078 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6081 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6083 * doc/options.texi (Negative): Explicitly mention that the
6084 Negative chain must be circular.
6086 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6088 * function.h (block_chainon): Declare.
6089 * function.c (block_chainon): Define.
6091 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6092 Eric Weddington <eric.weddington@atmel.com>
6093 Georg-Johann Lay <avr@gjlay.de>
6095 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6097 (avr_init_builtins, avr_expand_builtin,
6098 avr_expand_delay_cycles, avr_expand_unop_builtin,
6099 avr_expand_binop_builtin ): New functions.
6100 (avr_builtin_id): New enum
6101 (struct avr_builtin_description): New struct
6102 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6103 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6105 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6106 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6107 UNSPECV_DELAY_CYCLES): new enumeration values
6108 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6109 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6110 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6111 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6112 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6113 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6114 "fmulsu"): New insns
6116 * config/avr/avr-c.c: fix line endings
6117 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6118 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6119 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6120 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6121 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6123 * doc/extend.texi (AVR Built-in Functions): New node
6124 (Target Builtins): Add documentation of AVR
6127 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6130 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6131 alone. Error if non-const data has attribute progmem.
6133 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6135 * tree.h (struct tree_constructor): Include tree_typed instead of
6137 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6138 TS_TYPED instead of TS_COMMON.
6140 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6142 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6143 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6144 (sse2_psadbw): Merge with *avx_psadbw.
6145 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6146 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6147 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6148 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6149 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6150 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6151 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6152 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6153 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6154 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6155 (ssse3_palignrti): Merge with *avx_palignrti.
6157 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6159 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6160 * tree-ssanames.c (fini_ssanames): VEC_free it.
6161 (make_ssa_name_fn): Update for VECness of free_ssanames.
6162 (release_ssa_name, release_dead_ssa_names): Likewise.
6163 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6165 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6166 TS_TYPED instead of TS_COMMON.
6168 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6170 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6171 statistics_counter_event.
6172 * tree-ssa-copyrename.c (stats): Define.
6173 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6174 statistics_counter_event.
6175 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6176 (bswap_stats, widen_mul_stats): Define.
6177 (insert_reciprocals): Increment rdivs_inserted.
6178 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6179 rfuncs_inserted. Add calls to statistics_counter_event.
6180 (execute_cse_sincos_1): Increment inserted.
6181 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6182 statistics_counter_event.
6183 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6184 of bswap_stats. Add calls to statistics_counter_event.
6185 (convert_mult_to_widen): Increment widen_mults_inserted.
6186 (convert_plusminus_to_widen): Increment maccs_inserted.
6187 (convert_mult_to_fma): Increment fmas_inserted.
6188 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6189 calls to statistics_counter_event.
6191 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6193 PR rtl-optimization/48455
6194 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6195 `temp_costs->mem_cost'.
6197 2011-04-13 Jan Hubicka <jh@suse.cz>
6199 * ipa-inline.h: New file.
6200 * ipa-inline-analysis.c: New file. Broken out of ...
6201 * ipa-inline.c: ... this file; update toplevel comment;
6202 include ipa-inline.h
6203 (inline_summary): Move to ipa-inline.h
6204 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6205 ipa-inline-analysis.c.
6206 (cgraph_estimate_time_after_inlining): Rename to
6207 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6208 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6209 to estimate_edge_growth.
6210 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6211 rename to estimate_size_after_inlining.
6212 (cgraph_mark_inline_edge): Update for new naming convention.
6213 (cgraph_check_inline_limits): Likewise.
6214 (cgraph_edge_badness): Likewise.
6215 (cgraph_decide_recursive_inlining): Likewise.
6216 (cgraph_decide_inlining_of_small_functions): Likewise.
6217 (cgraph_decide_inlining_incrementally): Likewise.
6218 (cgraph_estimate_growth): Rename to estimate_growth; move to
6219 ipa-inline-analysis.c.
6220 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6221 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6222 (compute_inline_parameters): Likewise.
6223 (compute_inline_parameters_for_current): Likewise.
6224 (pass_inline_parameters): Likewise.
6225 (inline_indirect_intraprocedural_analysis): Likewise.
6226 (analyze_function): Rename to inline_analyze_function; likewise.
6227 (add_new_function): Move to ipa-inline-analysis.c.
6228 (inline_generate_summary): Likewise.
6229 (inline_read_summary): Likewise.
6230 (inline_write_summary): Likewise.
6231 * Makefile.in (ipa-inline-analysis.c): New file.
6233 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6235 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6236 * configure: Regenerate.
6238 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6240 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6241 instead of tree_common.
6242 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6244 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6245 TS_TYPED rather than TS_COMMON.
6246 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6248 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6251 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6252 r20 around calls of __tablejump_elpm__
6254 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6257 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6259 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6261 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6263 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6264 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6265 (cfi_vec): New typedef.
6266 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6267 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6268 (cie_cfi_vec): New static variable.
6269 (cie_cfi_head): Delete.
6270 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6271 declaration changed. Use vector rather than list operations.
6272 (new_cfi): Don't initialize the dw_cfi_next field.
6273 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6274 rather than list operations.
6275 (lookup_cfa): Use vector rather than list operations.
6276 (output_cfis): New argument upto. Accept a cfi_vec rather than
6277 a dw_cfi_ref list head as argument. All callers changed.
6278 Iterate over the vector using upto as a maximum index.
6279 (output_all_cfis): New static function.
6280 (output_fde): Use vector rather than list operations. Use the
6281 new upto argument for output_cfis rather than manipulating a
6283 (dwarf2out_begin_prologue): Change initializations to match
6285 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6286 from the vector length rather than searching for the end of a list.
6287 Use output_all_cfis.
6288 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6290 2011-04-13 Nick Clifton <nickc@redhat.com>
6292 * config/rx/rx.md (movmemsi): Do not use this pattern when
6293 volatile pointers are involved.
6295 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6297 * config/i386/sse.md (pinsrbits): Remove.
6298 (sse2_packsswb): Merge with *avx_packsswb.
6299 (sse2_packssdw): Merge with *avx_packssdw.
6300 (sse2_packuswb): Merge with *avx_packuswb.
6301 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6302 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6303 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6304 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6305 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6306 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6307 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6308 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6309 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6310 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6311 (sse2_loadld): Merge with *avx_loadld.
6312 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6313 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6314 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6315 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6316 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6318 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6320 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6322 * print-tree.c (print_node): Likewise.
6323 * tree-inline.c (copy_tree_r): Likewise.
6324 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6325 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6326 instead of TS_COMMON.
6327 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6328 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6329 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6330 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6331 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6333 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6335 (TREE_CHAIN): Check for a TS_COMMON structure.
6336 (TREE_TYPE): Check for a TS_TYPED structure.
6338 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6340 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6341 cgraph_get_create_node instead of cgraph_node.
6343 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6345 * c-parser.c (c_parser_initelt): Updated call to
6346 objc_build_message_expr.
6347 (c_parser_postfix_expression): Likewise.
6349 2011-04-12 Kai Tietz <ktietz@redhat.com>
6351 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6352 MASK_MS_BITFIELD_LAYOUT bit.
6354 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6356 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6357 assert it is always true.
6358 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6361 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6363 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6364 compiling Objective-C to be more efficient.
6366 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6368 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6371 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6373 * recog.h, genoutput.c, optabs.c: Revert last patch.
6375 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6378 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6380 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6382 * recog.h (insn_operand_data): Add an "allows_mem" field.
6383 * genoutput.c (output_operand_data): Initialize it.
6384 * optabs.c (maybe_legitimize_operand_same_code): New function.
6385 (maybe_legitimize_operand): Use it when matching the original
6388 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6390 * genpreds.c (process_define_predicate): Move most processing
6391 to gensupport.c. Continue to validate the expression.
6392 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6393 (process_define_predicate): Move processing to gensupport.c.
6394 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6395 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6396 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6398 (valid_predicate_name_p): New function, split out from old
6399 genpreds.c:process_define_predicate.
6400 (process_define_predicate): New function, combining code from
6401 old genpreds.c and genrecog.c functions.
6402 (process_rtx): Call it for DEFINE_PREDICATE and
6403 DEFINE_SPECIAL_PREDICATE.
6405 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6407 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6408 size of a '%A' memory reference.
6409 (T_DREG, T_QREG): New neon_builtin_type_bits.
6410 (arm_init_neon_builtins): Assert that the load and store operands
6411 are neon_struct_operands.
6412 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6413 (NEON_ARG_MEMORY): New builtin_arg.
6414 (neon_dereference_pointer): New function.
6415 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6416 Handle NEON_ARG_MEMORY.
6417 (arm_expand_neon_builtin): Update after above interface changes.
6418 Use NEON_ARG_MEMORY for loads and stores.
6419 * config/arm/predicates.md (neon_struct_operand): New predicate.
6420 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6421 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6422 (V_four_elem): Tweak formatting.
6423 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6424 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6425 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6426 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6427 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6428 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6429 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6430 Use %A in the output template.
6431 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6432 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6433 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6434 the width of the memory access. Remove post-increment.
6435 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6437 2011-04-12 Nick Clifton <nickc@redhat.com>
6439 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6440 instruction for interrupt handlers if the target is the basic V850
6442 (expand_epilogue): Likewise.
6444 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6446 PR rtl-optimization/48549
6447 * combine.c (propagate_for_debug): Also stop after BB_END of
6448 this_basic_block. Process LAST and just stop processing after it.
6449 (combine_instructions): If last_combined_insn has been deleted,
6450 set last_combined_insn to its PREV_INSN.
6452 2011-04-12 Richard Guenther <rguenther@suse.de>
6454 PR tree-optimization/46076
6455 * gimple.h (struct gimple_statement_call): Add fntype field.
6456 (gimple_call_fntype): Adjust.
6457 (gimple_call_set_fntype): New function.
6458 * gimple.c (gimple_build_call_1): Set the call function type.
6459 * gimplify.c (gimplify_call_expr): Preserve the function
6460 type the frontend used for the call.
6461 (gimplify_modify_expr): Likewise.
6462 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6464 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6466 * tree-ssa.c (useless_type_conversion_p): Function pointer
6467 conversions are useless.
6469 2011-04-12 Martin Jambor <mjambor@suse.cz>
6471 * cgraph.h (cgraph_node): Remove function declaration.
6472 (cgraph_create_node): Declare.
6473 (cgraph_get_create_node): Likewise.
6474 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6475 Updated all callers.
6476 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6477 the decl does not already exist. Call cgraph_get_create_node instead
6479 (cgraph_get_create_node): New function.
6480 (cgraph_same_body_alias): Update comment.
6481 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6482 assert it does not return NULL.
6483 (cgraph_update_edges_for_call_stmt): Likewise.
6484 (cgraph_clone_edge): Likewise.
6485 (cgraph_create_virtual_clone): Likewise.
6486 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6487 instead of cgraph_node.
6488 (cgraph_add_new_function): Call cgraph_create_node or
6489 cgraph_get_create_node instead of cgraph_node.
6490 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6491 instead of cgraph_node.
6492 (record_eh_tables): Likewise.
6493 (mark_address): Likewise.
6494 (mark_load): Likewise.
6495 (build_cgraph_edges): Call cgraph_get_create_node instead
6497 (rebuild_cgraph_edges): Likewise.
6498 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6499 instead of cgraph_node.
6500 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6502 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6503 cgraph_create_node instead of cgraph_node.
6504 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6506 * lto-cgraph.c (input_node): Likewise.
6507 * lto-streamer-in.c (input_function): Likewise.
6508 * varasm.c (mark_decl_referenced): Likewise.
6509 (assemble_alias): Likewise.
6511 2011-04-12 Martin Jambor <mjambor@suse.cz>
6513 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6514 instead of cgraph_node and assert it does not return NULL.
6515 * lto-streamer-in.c (lto_read_body): Likewise.
6516 * omp-low.c (new_omp_context): Likewise.
6517 (create_task_copyfn): Likewise.
6518 * tree-emutls.c (lower_emutls_function_body): Likewise.
6519 * matrix-reorg.c (transform_allocation_sites): Likewise.
6521 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6524 * c-typeck.c (build_asm_expr): Error out on attempts to use
6525 void type outputs or inputs for constraints that allow reg or
6528 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6529 Richard Earnshaw <rearnsha@arm.com>
6532 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6533 to use sign-magnitude offsets. Reject unsupported unaligned
6534 cases. Add detailed description in comments.
6535 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6536 condition from TARGET_32BIT to TARGET_ARM.
6538 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6540 * tree.h (struct typed_tree): New.
6541 (struct tree_common): Include it instead of tree_base.
6542 (TREE_TYPE): Update for new location of type field.
6543 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6544 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6545 (union tree_node): Add typed field.
6546 * treestruct.def (TS_TYPED): New.
6547 * lto-streamer.c (check_handled_ts_structures): Handle it.
6548 * tree.c (MARK_TS_TYPED): New macro.
6549 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6551 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6553 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6554 (force_nonfallthru): Do not alter the loop nest if no basic block
6557 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6559 * config/i386/sse.md (VI): New mode iterator.
6561 (AVX256MODEI): Ditto.
6562 (AVXMODEF4P): Ditto.
6563 (avxvecpsmode): Ditto.
6564 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6565 (sse2_andnot<mode>3): New expander.
6566 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6567 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6568 (<any_logic:code><mode>3): Use VI mode iterator.
6569 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6570 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6571 (*andnottf3): Handle AVX three-operand constraints.
6572 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6574 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6575 Robert Millan <rmh@gnu.org>
6577 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6578 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6579 GNU_USER_DYNAMIC_LINKER64): Define.
6580 (REG_NAME): Don't undefine.
6581 (MD_UNWIND_SUPPORT): Undefine.
6582 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6583 (REG_NAME): Don't undefine.
6584 (MD_UNWIND_SUPPORT): Undefine.
6585 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6587 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6589 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6590 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6592 2011-04-11 Xinliang David Li <davidxl@google.com>
6594 * value-profile.c (check_ic_target): New function.
6595 (gimple_ic_transform): Sanity check indirect call target.
6596 * gimple-low.c (gimple_check_call_args): Interface change.
6597 (gimple_check_call_matching_types): New function.
6598 * tree-inline.c (tree_can_inline_p): Call new function.
6600 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6602 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6603 tree-pretty-print.h & realmpfr.h.
6605 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6608 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6609 (setup_allocno_and_important_classes): Ditto.
6611 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6613 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6614 GNU_USER_DYNAMIC_LINKER.
6615 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6616 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6617 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6618 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6619 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6620 GNU_USER_TARGET_OS_CPP_BUILTINS.
6621 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6622 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6623 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6624 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6625 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6626 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6627 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6628 GNU_USER_TARGET_OS_CPP_BUILTINS.
6629 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6630 GNU_USER_DYNAMIC_LINKER.
6631 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6632 GNU_USER_TARGET_OS_CPP_BUILTINS.
6633 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6634 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6635 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6636 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6637 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6638 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6639 GNU_USER_DYNAMIC_LINKER64): Remove.
6640 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6641 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6642 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6643 GNU_USER_DYNAMIC_LINKER.
6644 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6645 GNU_USER_TARGET_OS_CPP_BUILTINS.
6646 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6647 GNU_USER_TARGET_OS_CPP_BUILTINS.
6648 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6649 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6650 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6651 GNU_USER_TARGET_OS_CPP_BUILTINS.
6652 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6653 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6654 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6655 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6656 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6657 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6658 GNU_USER_DYNAMIC_LINKER.
6659 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6660 GNU_USER_TARGET_OS_CPP_BUILTINS.
6661 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6662 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6663 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6664 GNU_USER_DYNAMIC_LINKER.
6665 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6666 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6667 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6668 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6669 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6670 GNU_USER_DYNAMIC_LINKER.
6671 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6672 GNU_USER_DYNAMIC_LINKERN32.
6673 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6674 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6675 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6676 GNU_USER_DYNAMIC_LINKER32.
6677 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6678 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6679 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6680 GNU_USER_DYNAMIC_LINKER.
6681 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6682 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6683 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6684 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6685 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6686 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6687 GNU_USER_DYNAMIC_LINKER32.
6688 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6689 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6690 GNU_USER_DYNAMIC_LINKER.
6691 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6692 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6693 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6694 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6695 GNU_USER_DYNAMIC_LINKER64.
6696 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6697 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6698 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6699 GNU_USER_DYNAMIC_LINKER.
6700 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6701 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6702 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6703 GNU_USER_DYNAMIC_LINKER.
6704 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6705 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6706 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6707 GNU_USER_DYNAMIC_LINKER32.
6708 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6709 GNU_USER_DYNAMIC_LINKER64.
6710 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6711 GNU_USER_DYNAMIC_LINKER64.
6712 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6713 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6714 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6715 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6716 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6718 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6720 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6721 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6722 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6723 GNU_USER_DYNAMIC_LINKER.
6724 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6725 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6726 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6727 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6728 GNU_USER_DYNAMIC_LINKER64.
6729 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6730 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6731 GNU_USER_LINK_EMULATION.
6732 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6733 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6734 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6735 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6736 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6737 CPP_SPEC, CC1_SPEC): Remove.
6738 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6739 (GNU_USER_DYNAMIC_LINKER): Define.
6740 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6741 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6742 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6743 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6744 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6745 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6746 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6747 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6748 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6749 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6750 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6751 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6752 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6753 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6754 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6755 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6756 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6757 GNU_USER_DYNAMIC_LINKER.
6758 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6759 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6760 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6761 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6762 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6763 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6764 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6765 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6766 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6767 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6769 2011-04-11 Kai Tietz <ktietz@redhat.com>
6773 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6774 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6776 (ix86_is_msabi_thiscall): Removed.
6777 (ix86_is_type_thiscall): Likewise.
6778 (ix86_get_callcvt): New function.
6779 (ix86_comp_type_attributes): Simplify check.
6780 (ix86_function_regparm): Use ix86_get_callcvt for calling
6781 convention attribute checks.
6782 (ix86_return_pops_args): Likewise.
6783 (ix86_static_chain): Likewise.
6784 (x86_this_parameter): Likewise.
6785 (x86_output_mi_thunk): Likewise.
6786 (ix86_function_type_abi): Optimize check for types without attributes.
6787 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6788 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6789 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6791 (IX86_BASE_CALLCVT): Helper macro.
6792 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6793 Use ix86_get_callcvt for calling convention attribute checks and avoid
6794 symbol-decoration for stdcall in TARGET_RTD case.
6795 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6797 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6800 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6802 * config/i386/sse.md (VI_128): New mode iterator.
6803 (VI12_128): Rename from SSEMODE12.
6804 (VI14_128): Rename from SSEMODE14.
6805 (VI124_128): New mode iterator.
6806 (VI24_128): Rename from SSEMODE248.
6807 (VI248_128): Rename from SSEMODE248.
6808 (SSEMODE124C8): Remove.
6809 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6810 (*sse2_<plusminus_insn><mode>3): Merge with
6811 *avx_<plusminus_insn><mode>3.
6812 (*mulv8hi3): Merge with *avx_mulv8hi3.
6813 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6814 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6815 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6816 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6817 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6818 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6819 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6820 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6821 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6822 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6823 (*<smaxmin:code>v8hi3): Ditto.
6824 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6825 (*<smaxmin:code>v16qi3): Ditto.
6826 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6827 (*sse2_eq<mode>3): Ditto.
6828 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6829 (*sse2_gt<mode>3): Ditto.
6830 (vcondv2di): Split out of vcond<mode>.
6831 (vconduv2di): Split out of vcondu<mode>.
6833 2011-04-11 Richard Guenther <rguenther@suse.de>
6835 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6836 before calling tree_low_cst.
6838 2011-04-11 Richard Guenther <rguenther@suse.de>
6840 * stor-layout.c (layout_type): Compute all array index size operations
6841 in the original type.
6842 (initialize_sizetypes): Add comment.
6843 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6845 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6847 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6849 2011-04-11 Martin Jambor <mjambor@suse.cz>
6851 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6852 of cgraph_node, handle NULL return value.
6853 (cgraph_global_info): Likewise.
6854 (cgraph_rtl_info): Likewise.
6855 * tree-inline.c (estimate_num_insns): Likewise.
6856 * gimplify.c (unshare_body): Likewise.
6857 (unvisit_body): Likewise.
6858 (gimplify_body): Likewise.
6859 * predict.c (optimize_function_for_size_p): Likewise.
6860 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6861 (call_may_clobber_ref_p_1): Likewise.
6862 * varasm.c (function_section_1): Likewise.
6863 (assemble_start_function): Likewise.
6865 2011-04-11 Martin Jambor <mjambor@suse.cz>
6867 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6869 * final.c (rest_of_clean_state): Likewise.
6870 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6871 * passes.c (pass_init_dump_file): Likewise.
6872 (execute_all_ipa_transforms): Likewise.
6873 (function_called_by_processed_nodes_p): Likewise.
6874 * predict.c (maybe_hot_frequency_p): Likewise.
6875 (probably_never_executed_bb_p): Likewise.
6876 (compute_function_frequency): Likewise.
6877 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6878 (unnest_nesting_tree_1): Likewise.
6879 (lower_nested_functions): Likewise.
6880 * tree-optimize.c (execute_fixup_cfg): Likewise.
6881 (tree_rest_of_compilation): Likewise.
6882 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6883 * tree-sra.c (ipa_early_sra): Likewise.
6884 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6885 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6886 * ipa.c (record_cdtor_fn): Likewise.
6887 * ipa-inline.c (cgraph_early_inlining): Likewise.
6888 (compute_inline_parameters_for_current): Likewise.
6889 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6890 * ipa-pure-const.c (local_pure_const): Likewise.
6891 * ipa-split.c (split_function): Likewise.
6892 (execute_split_functions): Likewise.
6893 * cgraphbuild.c (build_cgraph_edges): Likewise.
6894 (rebuild_cgraph_edges): Likewise.
6895 (cgraph_rebuild_references): Likewise.
6896 (remove_cgraph_callee_edges): Likewise.
6897 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6898 (verify_cgraph_node): Likewise.
6899 (cgraph_analyze_functions): Likewise.
6900 (cgraph_preserve_function_body_p): Likewise.
6901 (save_inline_function_body): Likewise.
6902 (save_inline_function_body): Likewise.
6903 * tree-inline.c (copy_bb): Likewise.
6904 (optimize_inline_calls): Likewise.
6906 2011-04-11 Martin Jambor <mjambor@suse.cz>
6908 PR tree-optimization/48195
6909 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6910 ipa_check_create_edge_args.
6911 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6912 ipa_check_create_edge_args.
6913 * ipa-inline.c (inline_generate_summary): Do not call
6914 ipa_check_create_node_params and ipa_check_create_edge_args.
6915 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6916 ipa_check_create_edge_args.
6918 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6920 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6922 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6923 * function.c (record_hard_reg_sets): Likewise.
6924 * ira.c (compute_regs_asm_clobbered): Likewise.
6925 * sched-deps.c (sched_analyze_1): Likewise.
6926 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6928 2011-04-09 Xinliang David Li <davidxl@google.com>
6930 PR tree-optimization/PR48484
6931 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6932 has_valid_pred lazily
6934 2011-04-09 Duncan Sands <baldrick@free.fr>
6936 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6938 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6940 * combine.c (combine_validate_cost): Adjust comments. Set registered
6941 cost of I0 to zero at the end, if any.
6943 2011-04-08 Xinliang David Li <davidxl@google.com>
6945 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6946 to insane profile data.
6948 2011-04-08 Xinliang David Li <davidxl@google.com>
6950 * ipa-cp.c (ipcp_update_profiling): Correct
6951 negative scale factor due to insane profile data.
6953 2011-04-08 Xinliang David Li <davidxl@google.com>
6955 * final.c (dump_basic_block_info): New function.
6956 (final): Dump basic block.
6957 (final_scan_insn): Remove old dump.
6959 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6962 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6965 2011-04-08 Michael Matz <matz@suse.de>
6968 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6970 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6971 * rtl.h (rebuild_jump_labels_chain): Declare.
6972 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6973 insns inserted on edges.
6975 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6977 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6978 * config/arm/arm-arches.def: New.
6979 * config/arm/arm-opts.h: New.
6980 * config/arm/genopt.sh: New.
6981 * config/arm/arm-tables.opt: New (generated).
6982 * config/arm/arm.c (arm_handle_option, arm_target_help,
6983 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6984 (all_architectures): Get most table contents from arm-arches.def.
6985 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6986 arm_selected_tune here.
6987 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6988 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6989 (march=, mcpu=, mtune=): Use Enum and Var.
6990 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6991 (arm.o): Update dependencies.
6993 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6995 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6997 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6998 (write_typed_alloc_defns): Likewise.
6999 (main): Calls write_typed_alloc_defns with output_header.
7001 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7004 * ira-color.c (setup_profitable_hard_regs): Add comments.
7005 Don't take prohibited hard regs into account.
7006 (setup_conflict_profitable_regs): Rename to
7007 get_conflict_profitable_regs.
7008 (check_hard_reg_p): Check prohibited hard regs.
7010 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7012 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7013 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7014 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7016 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7019 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7020 move from floating point to shift amount register.
7021 (emit_move_sequence): Remove secondary reload support for floating
7022 point to shift amount amount register copies.
7023 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7024 amount register copies.
7025 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7026 register, return false if mode isn't a scalar integer mode.
7027 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7029 2011-04-08 Richard Guenther <rguenther@suse.de>
7031 * gimple.c (gimple_call_flags): Remove kludge.
7033 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7035 * sel-sched.c (sel_region_init): Move call to
7036 sel_setup_region_sched_flags after setup_current_loop_nest.
7038 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7040 PR rtl-optimization/48272
7041 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7042 init_insn_reg_pressure_info. Adjust a caller.
7043 * sched-int.h (init_insn_reg_pressure_info): Declare.
7044 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7045 when sched-pressure is enabled.
7047 2011-04-08 Richard Guenther <rguenther@suse.de>
7049 * gimple.c (gimple_set_modified): Do not queue calls to
7050 MODIFIED_NORETURN_CALLS here ...
7051 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7053 2011-04-08 Richard Guenther <rguenther@suse.de>
7056 * toplev.c (lang_dependent_init): Do not open asm_out_file
7057 in WPA mode, nor perform debug machinery initialization.
7058 (finalize): Do not unlink asm_out_file in WPA mode.
7060 2011-04-08 Richard Guenther <rguenther@suse.de>
7062 * gimple.h (gimple_call_fntype): New function.
7063 (gimple_call_return_type): Use it.
7064 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7065 * gimple-low.c (gimple_check_call_args): Likewise.
7066 * gimple.c (gimple_call_flags): Likewise.
7067 (gimple_call_arg_flags): Likewise.
7068 (gimple_call_return_flags): Likewise.
7069 * tree-cfg.c (verify_gimple_call): Likewise.
7070 (do_warn_unused_result): Likewise.
7071 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7072 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7074 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7076 PR rtl-optimization/48235
7077 * sel-sched.c (code_motion_process_successors): Recompute the last
7078 insn in basic block if control flow changed.
7079 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7080 Update condition for ilist_remove.
7082 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7084 PR rtl-optimization/48302
7085 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7086 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7087 it to record added preheader blocks.
7088 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7089 on to sel_add_loop_preheaders.
7090 (sel_region_init): Move call to setup_current_loop_nest after
7093 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7096 * cfgloop.h (loop_has_exit_edges): New helper.
7097 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7099 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7100 that have no exit edges.
7102 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7104 PR rtl-optimization/48442
7105 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7106 all callers. Adjust assert.
7108 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7110 PR tree-optimization/48377
7111 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7112 is_packed to true even for types with smaller TYPE_ALIGN than
7115 2011-04-08 Richard Guenther <rguenther@suse.de>
7118 * doc/tm.texi: Re-generate.
7120 2011-04-08 Wei Guozhi <carrot@google.com>
7123 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7124 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7125 * config/arm/arm.md (*push_multi): Change the length computation to
7128 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7130 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7131 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7132 * doc/tm.texi: Regenerate.
7133 * system.h (ASM_OUTPUT_BSS): Poison.
7134 * varasm.c (asm_output_bss): Remove function.
7135 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7137 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7138 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7139 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7140 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7142 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7144 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7146 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7148 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7150 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7153 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7155 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7156 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7157 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7159 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7160 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7161 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7162 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7163 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7164 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7165 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7166 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7167 options. Don't map other m68k options manually. Don't handle
7168 old-style options as canonical.
7169 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7170 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7172 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7174 * basic-block.h (force_nonfallthru): Move to...
7175 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7176 (force_nonfallthru): ...here.
7177 * cfghooks.c (force_nonfallthru): New function.
7178 * cfgrtl.c (force_nonfallthru): Rename into...
7179 (rtl_force_nonfallthru): ...this.
7180 (commit_one_edge_insertion): Do not set AUX field.
7181 (commit_edge_insertions): Do not discover new basic blocks.
7182 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7183 (cfg_layout_rtl_cfg_hooks): Likewise.
7184 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7185 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7186 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7188 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7190 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7193 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7195 * config/i386/sse.md: Update copyright year.
7196 (avxcvtvecmode): Remove.
7197 (sse_movhlps): Merge with *avx_movhlps.
7198 (sse_movlhps): Merge with *avx_movlhps.
7199 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7200 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7201 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7202 (sse_loadhps): Merge with *avx_loadhps.
7203 (sse_storelps): Merge with *avx_storelps.
7204 (sse_loadlps): Merge with *avx_loadlps.
7205 (sse_movss): Merge with *avx_movss.
7206 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7207 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7208 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7209 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7210 (vec_set<mode>_0): Ditto.
7211 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7212 (sse4_1_insertps): Merge with *avx_insertps.
7213 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7214 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7215 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7216 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7217 (sse2_storehpd): Merge with *avx_storehpd.
7218 (sse2_loadhpd): Merge with *avx_loadhpd.
7219 (sse2_loadlpd): Merge with *avx_loadlpd.
7220 (sse2_movsd): Merge with *avx_movsd.
7221 (*vec_concatv2df): Merge with *vec_concatv2df.
7223 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7226 * combine.c (combine_instructions): Add last_combined_insn,
7227 update it if insn is after it, pass it to all try_combine calls.
7228 (try_combine): Add last_combined_insn parameter, pass it instead of
7229 i3 to propagate_for_debug.
7231 2011-04-07 Nick Clifton <nickc@redhat.com>
7233 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7234 to handle MDR <-> data register transfers.
7235 (movhi_internal): Likewise.
7237 2011-04-07 Alan Modra <amodra@gmail.com>
7239 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7240 previous stack info.
7242 2011-04-07 Tom de Vries <tom@codesourcery.com>
7245 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7246 flow_find_cross_jump. Swap variables to implement backward replacement.
7247 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7249 2011-04-07 Tom de Vries <tom@codesourcery.com>
7252 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7253 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7255 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7256 src1 or src2. Redirect edges to the last basic block. Update
7257 frequency and count on multiple basic blocks in case of fallthru.
7259 2011-04-07 Tom de Vries <tom@codesourcery.com>
7262 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7264 (old_insns_match_p): Change return type. Replace return false/true
7265 with return dir_none/dir_both. Use can_replace_by.
7266 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7267 direction from dir_p. Register replacement direction in dir, last_dir
7268 and afterlast_dir. Handle new return type of old_insns_match_p using
7269 merge_dir. Return replacement direction in dir_p.
7270 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7271 return type of old_insns_match_p.
7272 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7273 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7274 flow_find_cross_jump.
7275 * basic-block.h (enum replace_direction): New type.
7276 (flow_find_cross_jump): Add parameter to declaration.
7278 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7280 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7281 (AVXMODEDCVTPS2DQ): Ditto.
7282 (VEC_FLOAT_MODE): Ditto.
7283 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7284 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7285 (<any_logic:code><mode>3): Use VF mode iterator.
7286 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7287 Use VF mode iterator.
7288 (copysign<mode>3): Use VF mode iterator.
7289 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7290 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7291 (*<any_logic:code><MODEF:mode>3): Merge with
7292 *avx_<any_logic:code><MODEF:mode>3.
7293 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7294 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7295 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7296 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7297 (sse2_cvtdq2ps): Use %v modifier.
7298 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7299 (avx_cvtps2dq<avxmodesuffix>): Remove.
7300 (sse2_cvtps2dq): Use %v modifier.
7301 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7302 (avx_cvttps2dq<avxmodesuffix>): Remove.
7303 (sse2_cvttps2dq): Use %v modifier.
7304 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7305 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7306 (sse2_cvtsd2siq): Fix insn template.
7307 (sse2_cvtsd2siq_2): Ditto.
7308 (sse2_cvttsd2siq): Ditto.
7309 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7310 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7312 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7314 * gcov-io.c: Use GCC Runtime Library Exception.
7316 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7319 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7320 as base_reg whatever register reg has been eliminated to, instead
7321 of hardcoding STACK_POINTER_REGNUM.
7323 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7325 * doc/tm.texi.in: Document C target hooks as separate from general
7327 * doc/tm.texi: Regenerate.
7328 * genhooks.c (struct hook_desc): Add docname field.
7329 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7331 (hook_array): Include c-target.def.
7332 (emit_documentation): Use docname field in output.
7333 (emit_init_macros): Take docname argument. Only emit definitions
7334 for hooks matching docname.
7335 (main): Expect additional arguments in all cases. Pass argument
7336 to emit_init_macros.
7337 * target.def: Move initial macro definitions and comments to
7338 target-hooks-macros.h.
7339 (gcc_targetcm): Move to c-family/c-target.def.
7340 * target.h (targetcm): Move declaration to c-family/c-target.h.
7341 * targhooks.c (default_handle_c_option): Move to
7343 * targhooks.h (default_handle_c_option): Move declaration to
7344 c-family/c-common.h.
7345 * target-hooks-macros.h: New file.
7346 * config.gcc (target_has_targetcm): Define and use to add to
7347 c_target_objs and cxx_target_objs.
7348 * config/default-c.c: New file.
7349 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7350 of target.h and target-def.h.
7351 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7352 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7353 darwin_check_cfstring_format_arg): Make static.
7354 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7355 TARGET_STRING_OBJECT_REF_TYPE_P,
7356 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7357 * config/darwin-protos.h (darwin_objc_construct_string,
7358 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7360 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7361 TARGET_STRING_OBJECT_REF_TYPE_P,
7362 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7363 * config/t-darwin (darwin-c.o): Update dependencies.
7364 * system.h (TARGET_HAS_TARGETCM): Poison.
7365 * Makefile.in (TARGET_H): Update.
7366 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7367 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7368 (default-c.o): New target.
7369 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7370 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7371 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7373 (build/genhooks.o): Update dependencies.
7375 2011-04-06 Richard Guenther <rguenther@suse.de>
7377 * ipa-inline.c (enum inlining_mode): Remove.
7378 (cgraph_flatten): Use some other token.
7379 (cgraph_edge_early_inlinable_p): New function, split out from ...
7380 (cgraph_perform_always_inlining): New function, split out from ...
7381 (cgraph_decide_inlining_incrementally): ... here.
7382 (cgraph_mark_inline_edge): Adjust.
7383 (cgraph_early_inlining): Re-structure.
7384 (pass_early_inline): Require SSA form.
7386 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7387 Julian Brown <julian@codesourcery.com>
7388 Mark Shinwell <shinwell@codesourcery.com>
7390 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7391 LO_REGS only for Thumb-1.
7392 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7393 be used in short instructions when optimising for size on Thumb-2.
7395 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7397 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7398 associated with user returns to be preserved.
7400 2011-04-06 Tristan Gingold <gingold@adacore.com>
7402 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7403 symbol_queue_size, DBXOUT_DECR_NESTING,
7404 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7405 if XCOFF_DEBUGGING_INFO.
7407 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7409 * config/i386/i386.md (attribute isa): New.
7410 (attribute enabled): New.
7411 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7412 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7413 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7414 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7415 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7416 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7417 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7418 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7420 * config/i386/sse.md (VF): New mode iterator.
7424 (SSEMODEF4): Remove.
7425 (attribute sse): Handle V8SF and V4DF modes.
7426 (<absneg:code><mode>2): Use VF mode iterator.
7427 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7429 (<plusminus_insn><mode>3): Use VF mode iterator.
7430 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7431 Use VF mode iterator.
7432 (<sse>_vm<plusminus_insn><mode>3): Merge with
7433 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7434 (mul<mode>3): Use VF mode iterator.
7435 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7436 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7438 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7439 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7440 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7441 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7443 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7444 Use VF1 mode iterator.
7445 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7446 (sqrt<VF2:mode>2): New expander.
7447 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7448 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7449 and sqrtv2df2. Use VF mode iterator.
7450 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7452 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7453 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7454 Use VF1 mode iterator.
7455 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7456 (<smaxmin:code><mode>3): Use VF mode iterator.
7457 (*<smaxmin:code><mode>3_finite): Merge with
7458 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7459 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7460 (<sse>_vm<smaxmin:code><mode>2): Merge with
7461 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7462 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7464 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7466 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7467 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7468 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7469 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7470 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7472 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7473 Use VF_128 mode iterator.
7474 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7476 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7477 VF_128 mode iterator.
7478 (vcond<mode>): Use VF mode iterator.
7479 * config/i386/predicates.md (sse_comparison_operator): Merge with
7480 avx_comparison_float_operator. Do not declare as special_predicate.
7481 * config/i386/i386.c (struct builtin_description): Update for renamed
7483 (ix86_expand_args_builtin): Ditto.
7484 (ix86_expand_sse_compare_mask): Ditto.
7486 2011-04-06 Richard Guenther <rguenther@suse.de>
7488 * tree-inline.c (estimate_num_insns): For calls simply account
7489 for all passed arguments and a used return value.
7491 2011-04-06 Richard Guenther <rguenther@suse.de>
7493 PR tree-optimization/47663
7494 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7495 call_stmt_time fields.
7496 (cgraph_edge_inlinable_p): Declare.
7497 (cgraph_edge_recursive_p): New inline function.
7498 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7499 (cgraph_clone_edge): Copy it.
7500 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7501 Account for call stmt time.
7502 (cgraph_estimate_time_after_inlining): Take edge argument.
7503 (cgraph_estimate_edge_growth): Account call stmt size.
7504 (cgraph_estimate_size_after_inlining): Take edge argument.
7505 (cgraph_mark_inline_edge): Adjust.
7506 (cgraph_check_inline_limits): Likewise.
7507 (cgraph_recursive_inlining_p): Remove.
7508 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7509 (cgraph_decide_recursive_inlining): Take edge argument and
7511 (cgraph_decide_inlining_of_small_functions): Do not avoid
7512 diags for recursive inlining here.
7513 (cgraph_flatten): Adjust.
7514 (cgraph_decide_inlining_incrementally): Likewise.
7515 (estimate_function_body_sizes): Remove call cost handling.
7516 (compute_inline_parameters): Initialize caller edge call costs.
7517 (cgraph_estimate_edge_growth): New function.
7518 (cgraph_estimate_growth): Use it.
7519 (cgraph_edge_badness): Likewise.
7520 (cgraph_check_inline_limits): Take an edge argument.
7521 (cgraph_decide_inlining_of_small_functions): Adjust.
7522 (cgraph_decide_inlining): Likewise.
7523 * tree-inline.c (estimate_num_insns): Only account for call
7524 return value if it is used.
7525 (expand_call_inline): Avoid diagnostics on recursive inline
7527 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7528 (input_edge): Input edge call costs.
7530 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7532 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7534 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7536 * doc/invoke.texi (Spec Files): Fix typo.
7538 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7540 * profile.c (branch_prob): Move declaration of local variable. Remove
7541 obsolete ??? comment. Expand the location explicitly instead of using
7542 the LOCATION_FILE and LOCATION_LINE macros.
7544 2011-04-06 Wei Guozhi <carrot@google.com>
7547 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7548 (arm_cond_branch): Likewise.
7549 (arm_cond_branch_reversed): Likewise.
7550 (arm_jump): Likewise.
7551 (push_multi): Likewise.
7552 * config/arm/constraints.md (Py): New constraint.
7554 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7557 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7559 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7560 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7561 #ifdef DBX_DEBUGGING_INFO.
7563 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7566 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7567 if old and new states differ.
7569 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7571 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7572 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7573 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7574 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7575 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7577 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7578 ColdFire options to -mcpu= options.
7580 2011-04-05 Jeff Law <law@redhat.com>
7582 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7583 check if BB is a successor of LOOP->header and return
7584 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7586 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7588 * cprop.c (struct reg_use): Remove.
7589 (reg_use_table): Make an array of RTX.
7590 (find_used_regs, constprop_register, local_cprop_pass,
7591 bypass_block): Simplify users of reg_use_table.
7592 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7593 on one of the uses found by find_used_regs.
7595 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7598 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7601 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7603 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7605 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7607 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7610 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7612 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7614 * combine.c: Include obstack.h.
7615 (struct insn_link): Define.
7616 (uid_log_links): Adjust type.
7617 (FOR_EACH_LOG_LINK): New macro.
7618 (insn_link_obstack): Declare.
7619 (alloc_insn_link): Define.
7620 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7621 type of link variables.
7622 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7623 (try_combine, record_promoted_values, distribute_notes): Likewise.
7624 (distribute_links): Likewise. Tweak prototype.
7625 (clear_log_links): Delete.
7626 (adjust_for_new_dest): Call alloc_insn_link.
7627 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7629 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7631 * gcse.c (modify_mem_list): Convert to an array of VECs.
7632 (canon_modify_mem_list, compute_transp): Tweak formatting.
7633 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7634 (load_killed_in_block_p): Likewise.
7635 (record_last_mem_set_info): Likewise.
7636 (clear_modify_mem_tables): Likewise.
7638 2011-04-05 Tom de Vries <tom@codesourcery.com>
7641 * function.c (emit_use_return_register_into_block): Only define if
7644 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7646 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7648 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7650 * config/rx/rx-opts.h: New.
7651 * config/rx/rx.c (rx_cpu_type): Remove.
7652 (rx_handle_option): Don't assert that global structures are in
7653 use. Access variables via opts pointer. Defer most handling of
7654 OPT_mint_register_. Use error_at.
7655 (rx_option_override): Handle deferred OPT_mint_register_ here.
7656 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7657 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7658 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7659 (rx_cpu_types): New Enum and EnumValue entries.
7660 (mint-register=): Use Defer and use Var accordingly.
7662 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7664 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7665 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7666 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7668 (debug_free_queue, debug_nesting, symbol_queue_index):
7670 * dbxout.c: ...to here. Make static.
7672 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7674 * gcse.c (modify_pair): Define. Define a VEC of it.
7675 (canon_modify_mem_list): Convert to an array of VECs.
7676 (free_insn_expr_list_list): Delete.
7677 (clear_modify_mem_tables): Call VEC_free instead.
7678 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7679 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7680 (canon_list_insert, compute_transp): Likewise.
7682 2011-04-05 Tom de Vries <tom@codesourcery.com>
7685 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7688 2011-04-05 Tom de Vries <tom@codesourcery.com>
7691 * function.c (emit_use_return_register_into_block): New function.
7692 (thread_prologue_and_epilogue_insns): Use
7693 emit_use_return_register_into_block.
7695 2011-04-05 Tom de Vries <tom@codesourcery.com>
7698 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7701 2011-04-05 Tom de Vries <tom@codesourcery.com>
7703 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7705 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7707 * config/arm/arm.md (define_constants for unspec): Replace with
7709 (define_constants for unspecv): Replace with define_c_enum.
7710 * config/arm/neon.md (define_constants for unspec): Replace with
7713 2011-04-04 Richard Henderson <rth@redhat.com>
7716 * dwarf2out.c (output_line_info): Always emit line info from
7717 at least one section.
7718 (dwarf2out_init): Create text_section_line_info here ...
7719 (set_cur_line_info_table): ... not here.
7721 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7724 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7727 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7729 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7731 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7732 (expr_equiv_p): Remove.
7733 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7734 (hash_scan_set): Update call to insert_set_in_table.
7735 (dump_hash_table): Dump <dest, src> pair.
7736 (lookup_set): Simplify. Lookup <dest, src> pair.
7737 (compute_transp): Remove, fold heavily simplified code into...
7738 (compute_local_properties): ...here. Expect COMP and TRANSP
7740 (find_avail_set): Take set directly from struct expr.
7741 (find_bypass-set): Likewise.
7742 (bypass_block): Likewise.
7743 (cprop_insn): Likewise. Remove redundant INSN_P test.
7745 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7746 checks on form of COND from find_implicit_sets to here.
7747 (find_implicit_sets): Cleanup control flow. Split critical edges
7748 if it exposes implicit sets. Allocate/resize implicit_sets as
7750 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7751 changed something. Run df_analyze after find_implicit_sets if any
7752 edges were split. Do not allocate implicit_sets here.
7754 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7755 (gcse_obstack): Renamed to cprop_obstack.
7756 (GNEW, GNEWVEC, GNEWVAR): Remove.
7758 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7759 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7760 (gcse_alloc): Likewise, and rename to cprop_alloc.
7761 (alloc_gcse_men, free_gcse_mem): Remove.
7762 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7763 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7764 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7766 * cprop.c (oprs_not_set_p): Remove.
7767 (mark_set, mark_clobber): Remove.
7768 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7769 (reg_not_set_p): New function.
7770 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7771 (cprop_insn): Likewise.
7772 (cprop_jump): Use FOR_EACH_EDGE.
7774 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7777 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7778 (rank_for_schedule): Use scheduled_insns vector instead of
7779 last_scheduled_insn.
7780 (ok_for_early_queue_removal): Likewise.
7781 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7783 (choose_ready): Likewise.
7784 (commit_schedule): Use VEC_iterate.
7785 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7786 a dbg_cnt, use it and ensure the first insn is in the ready list.
7787 (haifa_sched_init): Allocate scheduled_insns.
7788 (sched_extend_ready_list): Don't allocate it; reserve space.
7789 (haifa_sched_finish): Free it.
7791 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7793 * optc-gen.awk: Always remove type from Variable entry before
7794 recording in var_seen.
7796 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7798 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7799 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7800 call to tidy_fallthru_edges.
7802 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7804 * doc/options.texi (ToLower): Document.
7805 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7806 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7807 * opts.h (cl_option): Add cl_tolower field.
7808 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7809 arguments with lowercase strings.
7810 * config/rx/rx.opt (mcpu=): Add ToLower.
7811 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7814 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7816 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7818 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7820 * config/vax/vax.c: Include reload.h.
7822 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7824 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7825 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7826 (sparc_preferred_reload_class): New function.
7828 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7831 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7832 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7834 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7836 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7837 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7839 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7841 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7842 (ASM_OUTPUT_ALIGNED_BSS): Define.
7844 2011-04-03 Michael Matz <matz@suse.de>
7846 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7847 and next_slot members.
7848 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7849 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7850 (lto_streamer_cache_append): Declare.
7851 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7852 unsigned index, remove offset parameter, ensure that we append
7853 or update existing entries.
7854 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7855 parameter, update next_slot for append.
7856 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7858 (lto_streamer_cache_insert_at): Likewise.
7859 (lto_streamer_cache_append): New function.
7860 (lto_streamer_cache_lookup): Use unsigned index.
7861 (lto_streamer_cache_get): Likewise.
7862 (lto_record_common_node): Don't test tree_node_can_be_shared.
7863 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7864 (lto_streamer_cache_delete): Don't free offsets member.
7865 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7866 (lto_output_string_with_length): Use lto_output_data_stream.
7867 (lto_output_tree_header): Remove ix parameter, don't write it.
7868 (lto_output_builtin_tree): Likewise.
7869 (lto_write_tree): Adjust callers to above, don't track and write
7870 offset, write unsigned index.
7871 (output_unreferenced_globals): Don't emit all global vars.
7872 (write_global_references): Use unsigned indices.
7873 (lto_output_decl_state_refs): Likewise.
7874 (write_symbol): Likewise.
7875 * lto-streamer-in.c (lto_input_chain): Move earlier.
7876 (input_function): Use unsigned index.
7877 (input_alias_pairs): Don't read and then ignore all global vars.
7878 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7879 don't pass it back, use lto_streamer_cache_append.
7880 (lto_register_var_decl_in_symtab): Use unsigned index.
7881 (lto_register_function_decl_in_symtab): Likewise.
7882 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7884 (lto_get_builtin_tree): Don't read index, use
7885 lto_streamer_cache_append.
7886 (lto_read_tree): Adjust call to lto_materialize_tree.
7888 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7889 don't use function calls in arguments to MIN.
7891 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7894 * gimple.c (gimple_type_leader_entry): Mark deletable.
7896 2011-04-03 Alan Modra <amodra@gmail.com>
7898 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7900 2011-04-03 Michael Matz <matz@suse.de>
7902 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7904 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7906 2011-04-03 Michael Matz <matz@suse.de>
7908 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7909 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7910 without function context.
7911 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7912 current_function_decl and cfun.
7914 2011-04-03 Michael Matz <matz@suse.de>
7916 * tree.c (decl_init_priority_insert): Don't create entry for
7918 (decl_fini_priority_insert): Ditto.
7919 (fields_compatible_p, find_compatible_field): Remove.
7920 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7921 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7923 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7925 * combine.c (try_combine): Remove useless local variable.
7927 2011-04-03 Richard Guenther <rguenther@suse.de>
7928 Ira Rosen <ira.rosen@linaro.org>
7930 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7931 non-variable offsets and compare the remaining bases of the two
7932 accesses instead of looking for exact same data-ref.
7934 2011-04-02 Kai Tietz <ktietz@redhat.com>
7937 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7939 * i386.c (ix86_is_msabi_thiscall): New helper function.
7940 (ix86_is_type_thiscall): New helper function.
7941 (ix86_comp_type_attributes): Handle thiscall for method-functions
7943 (init_cumulative_args): Likewise.
7944 (find_drap_reg): Likewise.
7945 (ix86_static_chain): Likewise.
7946 (x86_this_parameter): Likewise.
7947 (x86_output_mi_thunk): Likewise.
7949 2011-04-01 Olivier Hainque <hainque@adacore.com>
7950 Nicolas Setton <setton@adacore.com>
7951 Eric Botcazou <ebotcazou@adacore.com>
7953 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7954 (add_gnat_descriptive_type_attribute): New function.
7955 (gen_array_type_die): Call it.
7956 (gen_enumeration_type_die): Likewise.
7957 (gen_struct_or_union_type_die): Likewise.
7958 (modified_type_die): Likewise.
7959 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7960 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7961 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7963 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7966 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7967 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7970 2011-03-17 Richard Guenther <rguenther@suse.de>
7973 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7974 origin for decls in other ltrans units.
7975 (input_varpool_node): Likewise.
7977 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7980 * expr.c (expand_assignment): Handle all possibilities
7981 if TO_RTX is CONCAT.
7982 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7983 (store_split_bit_field): If SUBREG_REG (op0) or
7984 op0 itself has smaller mode than word, return it
7985 for offset 0 and const0_rtx for out-of-bounds stores.
7986 If word is const0_rtx, skip it.
7988 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7990 * config/h8300/h8300.c (print_operand_address): Rename to...
7991 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7992 Call h8300_print_operand and h8300_print_operand_address instead of
7993 print_operand and print_operand_address. Declare.
7994 (print_operand): Renake to...
7995 (h8300_print_operand): ...this. Make static. Adjust comments.
7996 Call h8300_print_operand instead of print_operand. Declare.
7997 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7998 (h8300_register_move_cost): Likewise.
7999 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8000 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8001 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8002 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8003 * config/h8300/h8300-protos.h (print_operand): Delete.
8004 (print_operand_address): Delete.
8006 2011-04-01 Richard Henderson <rth@redhat.com>
8009 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8010 in strict mode before dwarf4. Re-order tests to early out
8011 before switching sections.
8013 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8015 * config/h8300/constraints.md: New file.
8016 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8017 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8018 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8019 * config/h8300/predicates.md (bit_operand): Likewise.
8020 (incdec_operand): Use satisfies_constraint_M and
8021 satisfies_constraint_O. Don't use C code block.
8022 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8023 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8024 (compute_mov_length): Use satisfies_constraint_G.
8025 (fix_bit_operand): Use satisfies_constraint_U.
8026 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8027 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8028 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8029 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8030 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8031 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8032 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8033 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8034 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8035 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8036 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8037 (EXTRA_MEMORY_CONSTRAINT): Delete.
8039 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8040 Michael Meissner <meissner@linux.vnet.ibm.com>
8043 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8044 operands, as per the specifications.
8046 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8047 (vec_extract_evenv4sf): Ditto.
8048 (vec_extract_evenv8hi): Ditto.
8049 (vec_extract_evenv16qi): Ditto.
8050 (vec_extract_oddv4si): Ditto.
8052 2011-03-31 Mark Wielaard <mjw@redhat.com>
8054 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8055 high_pc attribute if the CU has no associated code. Only output
8056 DW_AT_entry_pc for CU if not generating strict dwarf and
8059 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8061 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8062 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8064 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8065 * final.c (final_start_function): Call the new function rather
8066 than using a NULL argument for dwarf2out_frame_debug.
8068 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8069 that contains the prologue.
8071 * haifa-sched.c (queue_insn): New arg REASON. All callers
8072 changed. Print it in debugging output.
8074 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8076 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8077 Split most of the code into...
8078 (begin_move_insn): ... here. New function.
8079 (ebb_sched_info): Add a pointer to it.
8080 * haifa-sched.c (scheduled_insns): New static variable.
8081 (sched_extend_ready_list): Allocate it.
8082 (schedule_block): Use it to record the order of scheduled insns.
8083 Perform RTL changes to move insns only after all scheduling
8084 decisions have been made.
8085 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8086 begin_move_insn field.
8087 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8088 * sched-int.h (struct haifa_sched_info): Remove second argument
8089 from begin_schedule_ready hook. Add new member begin_move_insn.
8090 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8091 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8093 * haifa-sched.c (prune_ready_list): New function, broken out of
8095 (schedule_block): Use it.
8097 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8099 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8101 2011-04-01 Kai Tietz <ktietz@redhat.com>
8103 * config.gcc (*-*-mingw*): Allow as option the
8104 posix threading model.
8105 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8106 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8108 (CPP_SPEC): Add pthread/no-pthread handling.
8109 (LIB_SPEC): Likewise.
8110 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8111 (LIB_SPEC): Likewise.
8112 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8113 flag to pass -pthread option for shared libgcc build.
8114 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8115 for shared libgcc build.
8116 * config/i386/t-mingw-pthread: New file.
8117 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8118 New define to enable use of library pthread by default.
8119 * config/i386/mingw.opt (pthread): New driver option.
8120 (no-pthread): New driver option.
8121 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8122 * config/i386/mingw-w64.opt: Likewise.
8124 2011-04-01 Gary Funck <gary@intrepid.com>
8126 * c-decl.c (grokdeclarator): Fix formatting.
8128 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8130 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8131 instead of n_operands.
8132 (set_storage_via_setmem): Likewise.
8133 * optabs.c (maybe_gen_insn): Likewise.
8134 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8135 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8136 (mips_expand_builtin_direct): Likewise.
8137 * config/spu/spu.c (expand_builtin_args): Likewise.
8139 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8141 * recog.h (insn_data_d): Add n_generator_args.
8142 * genoutput.c (data): Likewise.
8143 (output_insn_data): Print it.
8144 (max_opno, num_dups): Delete.
8145 (scan_operands): Just fill in "d->operand[...]".
8146 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8148 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8150 * gensupport.h (pattern_stats): New structure.
8151 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8152 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8153 (max_operand_1, max_operand_vec): Delete.
8154 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8156 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8158 * emit-rtl.c (emit_pattern_after_setloc): New function.
8159 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8160 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8161 (emit_pattern_after): New function.
8162 (emit_insn_after, emit_jump_insn_after): Call it.
8163 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8164 (emit_pattern_before_setloc): New function.
8165 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8166 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8168 (emit_pattern_before): New function.
8169 (emit_insn_before, emit_jump_insn_before): Call it.
8170 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8172 2011-03-31 Richard Henderson <rth@redhat.com>
8174 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8175 (dw_separate_line_info_entry): Remove.
8176 (enum dw_line_info_opcode): New.
8177 (dw_line_info_entry): Use it.
8178 (dw_line_info_table, dw_line_info_table_p): New.
8179 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8180 (line_info_table, line_info_label_num): Remove.
8181 (line_info_table_in_use): Remove.
8182 (separate_line_info_table): Remove.
8183 (separate_line_info_table_allocated): Remove.
8184 (separate_line_info_table_in_use): Remove.
8185 (LINE_INFO_TABLE_INCREMENT): Remove.
8186 (line_info_label_num): New.
8187 (cur_line_info_table): New.
8188 (text_section_line_info, cold_text_section_line_info): New.
8189 (separate_line_info): New.
8190 (SEPARATE_LINE_CODE_LABEL): Remove.
8191 (print_dwarf_line_table): Remove.
8192 (debug_dwarf): Don't dump it.
8193 (output_one_line_info_table): New.
8194 (output_line_info): Use it.
8195 (new_line_info_table): New.
8196 (set_cur_line_info_table): New.
8197 (dwarf2out_switch_text_section): Use it.
8198 (dwarf2out_begin_function): Likewise.
8199 (push_dw_line_info_entry): New.
8200 (dwarf2out_source_line): Rewrite for new line info tables.
8201 (dwarf2out_init): Remove dead initailizations.
8203 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8205 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8207 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8208 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8209 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8210 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8211 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8212 * opt-functions.awk (flag_init, switch_bit_fields): New.
8213 (switch_flags): Don't handle flags moved to bit-fields. Don't
8214 generate CL_MISSING_OK or CL_SAVE.
8215 * optc-gen.awk: Update to generate bit-field output as well as
8217 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8218 bit-field instead of CL_REJECT_DRIVER flag.
8219 * opts-common.c (generate_canonical_option,
8220 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8221 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8222 instead of CL_REJECT_NEGATIVE flag.
8223 * toplev.c (print_switch_values): Use cl_report bit-field instead
8226 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8228 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8229 a zero minimum index only if it is redundant.
8231 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8233 PR rtl-optimization/48381
8234 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8235 instead of ira_class_hard_reg_index for calculating conflicting
8238 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8240 * cprop.c: Clean up hash table building.
8241 (reg_avail_info): Remove.
8242 (oprs_available_p): Remove.
8243 (record_last_reg_set_info): Remove.
8244 (record_last_set_info): Remove.
8245 (reg_available_p): New function.
8246 (gcse_constant_p): Do not treat unfolded conditions as constants.
8247 (make_set_regs_unavailable): New function.
8248 (hash_scan_set): Simplify with new reg_available_p.
8249 (compute_hash_table_work): Traverse insns stream only once.
8250 Do not compute reg_avail_info. Traverse insns in reverse order.
8251 Record implicit sets after recording explicit sets from the block.
8253 2011-03-31 Michael Matz <matz@suse.de>
8255 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8257 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8259 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8260 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8261 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8262 (h8300_mode_dependent_address_p): New function.
8263 (h8300_get_index): Make static.
8265 2011-03-31 Jeff Law <law@redhat.com>
8267 * reload1.c (elimination_effects): Fix typo in recent change.
8269 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8270 typo potentially leading to null pointer dereference.
8272 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8273 (setup_save_areas): Corresponding changes to avoid useless
8276 * jump.c (reversed_comparison_code_parts): Avoid successive return
8277 statements when REVERSE_CONDITION is defined.
8279 * expr.c (expand_assignment): Avoid useless assignments.
8280 (expand_expr_real_1): Likewise.
8281 (expand_expr_real_2): Avoid useless statements.
8283 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8285 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8287 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8290 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8292 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8295 * doc/tm.texi.in (TARGET_VERSION): Remove.
8296 * doc/tm.texi: Regenerate.
8297 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8298 * collect2.c (main): Don't use TARGET_VERSION.
8299 * mips-tdump.c (main): Don't use TARGET_VERSION.
8300 * mips-tfile.c (main): Don't use TARGET_VERSION.
8301 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8302 * config/rs6000/vxworksae.h: Remove.
8303 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8304 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8305 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8306 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8307 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8308 * config/arm/arm.h (TARGET_VERSION): Remove.
8309 * config/arm/coff.h (TARGET_VERSION): Remove.
8310 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8311 * config/arm/elf.h (TARGET_VERSION): Remove.
8312 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8313 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8314 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8315 * config/arm/pe.h (TARGET_VERSION): Remove.
8316 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8317 * config/arm/semi.h (TARGET_VERSION): Remove.
8318 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8319 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8320 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8321 * config/avr/avr.h (TARGET_VERSION): Remove.
8322 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8323 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8324 * config/frv/frv.h (TARGET_VERSION): Remove.
8325 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8326 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8327 * config/i386/darwin.h (TARGET_VERSION): Remove.
8328 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8329 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8330 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8331 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8332 * config/i386/gnu.h (TARGET_VERSION): Remove.
8333 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8334 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8335 * config/i386/linux.h (TARGET_VERSION): Remove.
8336 * config/i386/linux64.h (TARGET_VERSION): Remove.
8337 * config/i386/lynx.h (TARGET_VERSION): Remove.
8338 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8339 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8340 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8341 * config/i386/netware.h (TARGET_VERSION): Remove.
8342 * config/i386/nto.h (TARGET_VERSION): Remove.
8343 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8344 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8345 * config/ia64/elf.h (TARGET_VERSION): Remove.
8346 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8347 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8348 * config/ia64/linux.h (TARGET_VERSION): Remove.
8349 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8350 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8351 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8352 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8353 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8354 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8355 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8356 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8357 * config/m68k/linux.h (TARGET_VERSION): Remove.
8358 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8359 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8360 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8361 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8362 * config/mep/mep.h (TARGET_VERSION): Remove.
8363 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8364 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8365 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8366 * config/mips/linux.h (TARGET_VERSION): Remove.
8367 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8368 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8369 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8370 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8371 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8372 * config/pa/pa.h (TARGET_VERSION): Remove.
8373 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8374 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8375 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8376 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8377 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8378 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8379 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8380 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8381 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8382 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8383 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8384 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8385 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8386 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8387 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8388 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8389 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8390 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8391 * config/s390/linux.h (TARGET_VERSION): Remove.
8392 * config/s390/s390.h (TARGET_VERSION): Remove.
8393 * config/s390/tpf.h (TARGET_VERSION): Remove.
8394 * config/score/score.h (TARGET_VERSION): Remove.
8395 * config/sh/linux.h (TARGET_VERSION): Remove.
8396 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8397 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8398 * config/sh/sh.h (TARGET_VERSION): Remove.
8399 * config/sh/sh64.h (TARGET_VERSION): Remove.
8400 * config/sh/superh.h (TARGET_VERSION): Remove.
8401 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8402 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8403 * config/sparc/linux.h (TARGET_VERSION): Remove.
8404 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8405 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8406 TARGET_NAME32, TARGET_NAME): Remove.
8407 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8408 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8409 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8410 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8411 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8412 * config/spu/spu.h (TARGET_VERSION): Remove.
8413 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8414 * config/v850/v850.h (TARGET_VERSION): Remove.
8415 * config/vax/linux.h (TARGET_VERSION): Remove.
8416 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8417 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8418 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8420 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8423 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8424 frame-related from frame-unrelated adjustments to the stack pointer.
8426 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8428 * common.opt (fdebug-types-section): Move earlier.
8429 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8431 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8433 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8436 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8438 * tree.h (CASE_CHAIN): Define.
8439 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8440 (gimple_redirect_edge_and_branch): Likewise.
8442 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8445 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8448 2011-03-30 Jeff Law <law@redhat.com>
8450 * PR bootstrap/48371
8451 * reload1.c (reload): Fix botch in last change.
8453 * reload.h (struct reload): Fix typo introduced in last change.
8455 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8457 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8458 Undocumented. Remove help text.
8459 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8462 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8464 * doc/options.texi (NegativeAlias): Document.
8465 (Alias): Mention NegativeAlias.
8466 * opt-functions.awk: Handle NegativeAlias.
8467 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8468 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8469 * opts.h (CL_NEGATIVE_ALIAS): Define.
8470 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8471 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8473 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8475 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8476 mno-spe and mno-isel instead of mspe=no and -misel=no.
8478 2011-03-29 Mark Wielaard <mjw@redhat.com>
8480 * common.opt (fdebug-types-section): New flag.
8481 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8482 * dwarf2out.c (use_debug_types): New define.
8483 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8484 (print_die): Guard output of type unit signatures using
8486 (build_abbrev_table): Replace assert of dwarf_version >= 4
8487 with assert on use_debug_types.
8488 (size_of_die): Likewise.
8489 (unmark_dies): Likewise.
8490 (value_format): Decide AT_ref_external form on use_debug_types.
8491 (output_die): Replace dwarf_version version check guard with
8492 use_debug_types where appropriate.
8493 (modified_type_die): Likewise.
8494 (gen_reference_type_die): Likewise.
8495 (dwarf2out_start_source_file): Likewise.
8496 (dwarf2out_end_source_file): Likewise.
8497 (prune_unused_types_walk_attribs): Likewise.
8498 (dwarf2out_finish): Likewise.
8500 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8502 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8504 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8506 PR rtl-optimization/48332
8507 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8508 mode of input operand N and modeN to its actual mode.
8510 2011-03-30 Jeff Law <law@redhat.com>
8512 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8513 define accessor macro.
8514 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8515 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8516 (reg_equiv_init): Likewise.
8517 (reg_equivs_size): New variable.
8518 (reg_equiv_init_size): Remove.
8519 (allocate_initial_values): Move prototype to here from....
8520 * integrate.h (allocate_initial_values): Remove prototype.
8521 * integrate.c: Include reload.h.
8522 (allocate_initial_values): Corresponding changes.
8523 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8524 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8525 (update_equiv_regs): Corresponding changes.
8526 (ira): Corresponding changes.
8527 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8528 (push_secondary_reload): Corresponding changes.
8529 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8530 (make_memloc, find_reloads_address): Corresponding changes.
8531 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8532 (find_reloads_address_1): Corresponding changes.
8533 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8534 (refers_to_regno_for_reload_p): Corresponding changes.
8535 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8536 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8537 * reload1.c: Include ggc.h.
8538 (grow_reg_equivs): New function.
8539 (replace_pseudos_in, reload): Corresponding changes.
8540 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8541 (eliminate_regs_1, elimination_effects): Corresponding changes.
8542 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8543 (delete_output_reload): Likewise.
8544 * caller-save.c (mark_referenced_regs): Corresponding changes.
8545 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8546 * frv/predicates.md (frv_load_operand): Corresponding changes.
8547 * microblaze/microblaze.c (double_memory_operand): Corresponding
8549 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8550 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8551 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8552 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8553 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8555 * pa/pa.c (emit_move_sequence): Corresponding changes.
8556 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8558 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8561 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8562 structure modes. Don't check neon_vector_mem_operand for
8563 vector or structure modes.
8565 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8566 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8569 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8570 operand 1 and reshuffle the operands to match.
8571 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8573 2011-03-30 Christian Schüler <cschueler@gmx.de>
8576 * config/c.opt (F): Added 'Driver' to -F option.
8579 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8581 * config/darwin.opt: Added '-arch' option.
8583 2011-03-30 Nick Clifton <nickc@redhat.com>
8585 * config/rx/rx.md: Add peepholes and patterns to combine
8586 extending loads and simple arithmetic instructions.
8587 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8588 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8589 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8590 modes to use pre-decrement and post-increment addressing.
8591 (rx_is_restricted_memory_address): Add range checking of REG+INT
8593 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8594 (rx_memory_move_cost): Adjust cost of stores.
8595 (rx_adjust_insn_length): New function.
8597 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8600 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8601 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8602 matching arg00/arg01 types.
8604 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8606 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8607 last_location to UNKNOWN_LOCATION.
8609 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8612 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8615 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8616 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8619 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8621 (sparc_cpu): Likewise.
8622 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8625 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8629 PR rtl-optimization/48345
8630 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8631 hard regs for given mode from profitable regs when doing secondary
8634 2011-03-29 Jeff Law <law@redhat.com>
8637 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8638 do_not_duplicate field.
8639 (lookup_redirection_data): Corresponding changes.
8640 (create_duplicates): Always create a template block.
8641 (redirect_edges): Remove code which reused the original block
8642 when it was going to become unreachable code.
8643 (thread_block): Don't set do_not_duplicate field.
8645 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8647 * lto-opts.c (register_user_option_p, lto_register_user_option):
8648 Make type argument unsigned.
8649 * lto-streamer.h (lto_register_user_option): Make type argument
8651 * opth-gen.awk: Make CL_* macros unsigned.
8652 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8653 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8654 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8655 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8656 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8657 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8658 (find_opt): Make lang_mask argument unsigned.
8660 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8662 PR rtl-optimization/48331
8663 PR rtl-optimization/48334
8664 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8665 for any used algorithm.
8667 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8669 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8672 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8674 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8675 (alpha_option_override): Don't set alpha_sr_alias_set.
8676 (emit_frame_store_1): Use gen_frame_mem rather than calling
8678 (alpha_expand_epilogue): Ditto.
8680 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8682 PR tree-optimization/48290
8683 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8684 vectorization, check that relevant phis in the basic block after
8685 the inner loop are really inner loop's exit phis.
8687 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8690 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8691 (cached_dw_loc_list_def): New structure.
8692 (cached_dw_loc_list): New typedef.
8693 (cached_dw_loc_list_table): New variable.
8694 (cached_dw_loc_list_table_hash): New function.
8695 (cached_dw_loc_list_table_eq): Likewise.
8696 (add_location_or_const_value_attribute): Take a bool cache_p.
8697 Cache the list when the parameter is true.
8698 (gen_formal_parameter_die): Update caller.
8699 (gen_variable_die): Likewise.
8700 (dwarf2out_finish): Likewise.
8701 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8702 while generating debug info for the decl.
8703 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8704 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8705 (resolve_addr): Cache the result of resolving a chain of
8708 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8710 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8711 conflict object hard regset nodes have intersecting hard reg sets.
8713 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8714 after regstat_init_n_sets_and_refs.
8716 * ira.c: Add more comments at the top.
8717 (setup_stack_reg_pressure_class, setup_pressure_classes):
8718 Add comments how we compute the register pressure classes.
8719 (setup_allocno_and_important_classes): Add more comments.
8720 (setup_class_translate_array, reorder_important_classes)
8721 (setup_reg_class_relations): Add comments.
8723 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8726 * ira-color.c: Add 2011 to the Copyright line.
8727 (assign_hard_reg): Add more comments.
8728 (improve_allocation): Ditto.
8730 * ira-costs.c: Add 2011 to the Copyright line.
8731 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8733 (setup_regno_cost_classes_by_mode): Ditto.
8735 Initial patches from ira-improv branch:
8737 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8739 * ira-build.c (ira_create_object): Remove initialization of
8740 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8741 (ira_create_allocno): Remove initialization of
8742 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8743 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8744 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8745 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8746 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8747 Initialize ALLOCNO_ADD_DATA.
8748 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8749 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8751 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8752 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8754 * ira.c (ira_reallocate): Remove.
8755 (setup_pressure_classes): Call
8756 ira_init_register_move_cost_if_necessary. Use
8757 ira_register_move_cost instead of ira_get_register_move_cost.
8758 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8759 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8761 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8762 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8763 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8764 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8765 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8766 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8768 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8769 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8770 (struct allocno_color_data): New.
8771 (allocno_color_data_t): New typedef.
8772 (allocno_color_data): New definition.
8773 (ALLOCNO_COLOR_DATA): New macro.
8774 (struct object_color_data): New.
8775 (object_color_data_t): New typedef.
8776 (object_color_data): New definition.
8777 (OBJECT_COLOR_DATA): New macro.
8778 (update_copy_costs, calculate_allocno_spill_cost): Call
8779 ira_init_register_move_cost_if_necessary. Use
8780 ira_register_move_cost instead of ira_get_register_move_cost.
8781 (move_spill_restore, update_curr_costs): Ditto.
8782 (allocno_spill_priority): Make it inline.
8783 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8784 (struct coalesce_data, coalesce_data_t): New.
8785 (allocno_coalesce_data): New definition.
8786 (ALLOCNO_COALESCE_DATA): New macro.
8787 (merge_allocnos, coalesced_allocno_conflict_p): Use
8788 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8789 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8790 (coalesce_allocnos): Ditto.
8791 (setup_coalesced_allocno_costs_and_nums): Ditto.
8792 (collect_spilled_coalesced_allocnos): Ditto.
8793 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8794 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8795 (coalesce_spill_slots): Ditto.
8796 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8797 free allocno_coalesce_data.
8799 * ira-conflicts.c: Fix formatting.
8800 (process_regs_for_copy): Call
8801 ira_init_register_move_cost_if_necessary. Use
8802 ira_register_move_cost instead of ira_get_register_move_cost.
8803 (build_object_conflicts): Optimize.
8805 * ira-costs.c (record_reg_classes): Optimize. Call
8806 ira_init_register_move_cost_if_necessary. Use
8807 ira_register_move_cost, ira_may_move_in_cost, and
8808 ira_may_move_out_cost instead of ira_get_register_move_cost and
8809 ira_get_may_move_cost.
8810 (record_address_regs): Ditto.
8811 (scan_one_insn): Optimize.
8812 (find_costs_and_classes): Optimize.
8813 (process_bb_node_for_hard_reg_moves): Call
8814 ira_init_register_move_cost_if_necessary. Use
8815 ira_register_move_cost instead of ira_get_register_move_cost.
8817 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8818 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8819 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8820 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8822 (ira_initiate_emit_data, ira_finish_emit_data)
8823 (create_new_allocno): New functions.
8824 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8825 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8826 Use ira_register_move_cost instead of ira_get_register_move_cost.
8828 * ira-int.h: Fix some comments.
8829 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8830 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8831 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8832 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8834 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8835 bitfield after mode. Make hard_regno a short int. Make
8836 hard_regno short. Remove first_coalesced_allocno and
8837 next_coalesced_allocno. Move mem_optimized_dest_p,
8838 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8839 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8840 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8841 temp, colorable_p. Add new member add_data.
8842 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8843 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8844 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8845 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8846 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8847 (ALLOCNO_ADD_DATA): New macro.
8848 (ira_emit_data_t): New typedef.
8849 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8850 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8851 from struct ira_allocno.
8852 (ALLOCNO_EMIT_DATA): New macro.
8853 (ira_allocno_emit_data, allocno_emit_reg): New.
8854 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8855 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8856 (OBJECT_ADD_DATA): New macro.
8857 (ira_reallocate): Remove.
8858 (ira_initiate_emit_data, ira_finish_emit_data): New.
8859 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8860 (ira_init_register_move_cost_if_necessary): New.
8861 (ira_object_conflict_iter_next): Merge into
8862 ira_object_conflict_iter_cond.
8863 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8865 * ira-live.c (process_single_reg_class_operands): Call
8866 ira_init_register_move_cost_if_necessary. Use
8867 ira_register_move_cost instead of ira_get_register_move_cost.
8869 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8871 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8873 * ira-costs.c: Fix formatting.
8874 (cost_classes, cost_classes_num): Remove.
8875 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8876 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8877 (cost_classes_del, cost_classes_htab): New.
8878 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8879 (initiate_regno_cost_classes, setup_cost_classes): New.
8880 (setup_regno_cost_classes_by_aclass): New.
8881 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8882 (record_reg_classes): Use regno_cost_classes instead of
8883 cost_classes. Move checking opposite operand up.
8884 (record_address_regs): Use regno_cost_classes
8885 instead of cost_classes.
8886 (scan_one_insn): Ditto. Use always general register.
8887 (print_allocno_costs): Use regno_cost_classes instead of
8889 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8890 (find_costs_and_classes): Set up cost classes for each registers.
8891 Use also their mode for this. Use regno_cost_classes instead of
8893 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8895 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8896 (ira_costs, ira_set_pseudo_classes): Call
8897 initiate_regno_cost_classes and finish_regno_cost_classes.
8899 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8901 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8903 * target.def (ira_cover_classes): Remove.
8905 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8907 * doc/tm.texi.in: Ditto.
8909 * ira-conflicts.c: Remove mentioning cover classes from the file.
8910 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8911 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8913 * targhooks.c (default_ira_cover_classes): Remove.
8915 * targhooks.h (default_ira_cover_classes): Ditto.
8917 * haifa-sched.c: Remove mentioning cover classes from the file.
8918 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8919 ira_pressure_classes and ira_pressure_classes_num instead of
8920 ira_reg_class_cover_size and ira_reg_class_cover. Use
8921 sched_regno_pressure_class instead of sched_regno_cover_class.
8922 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8923 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8925 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8926 classes from the file.
8927 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8928 (struct object_hard_regs, struct object_hard_regs_node): New.
8929 (struct ira_object): New members profitable_hard_regs,
8930 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8931 (struct ira_allocno): Rename cover_class to aclass. Rename
8932 cover_class_cost and updated_cover_class_cost to class_cost and
8933 updated_class_cost. Remove splay_removed_p and
8934 left_conflict_size. Add new members colorable_p.
8935 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8936 (ALLOCNO_COLORABLE_P): New macro.
8937 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8938 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8939 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8940 (OBJECT_...): Rename parameter C to O.
8941 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8942 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8943 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8944 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8945 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8946 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8947 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8948 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8949 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8950 x_ira_reg_class_subunion.
8951 (ira_max_memory_move_cost, ira_max_register_move_cost)
8952 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8953 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8954 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8955 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8956 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8957 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8958 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8959 (ira_tune_allocno_costs_and_cover_classes): Rename to
8960 ira_tune_allocno_costs.
8961 (ira_debug_hard_regs_forest): New.
8962 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8963 (ira_object_conflict_iter_next): Fix comments.
8964 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8965 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8966 cover_class to aclass.
8967 (ira_allocate_and_accumulate_costs): Ditto.
8968 (ira_allocate_and_set_or_copy_costs): Ditto.
8970 * opts.c (decode_options): Remove ira_cover_class check.
8972 * ira-color.c: Remove mentioning cover classes from the file. Use
8973 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8974 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8975 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8976 (splay-tree.h): Remove include.
8977 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8978 before copy_freq_compare_func.
8979 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8980 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8982 (hard_regs_roots, hard_regs_node_vec): Ditto.
8983 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8984 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8985 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8986 (create_new_object_hard_regs_node): Ditto.
8987 (add_new_object_hard_regs_node_to_forest): Ditto.
8988 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8989 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8991 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8992 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8993 (remove_unused_object_hard_regs_nodes): Ditto.
8994 (enumerate_object_hard_regs_nodes): Ditto.
8995 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8996 (object_hard_regs_subnode_t): Ditto.
8997 (struct object_hard_regs_subnode): Ditto.
8998 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8999 (setup_object_hard_regs_subnode_index): Ditto.
9000 (get_object_hard_regs_subnodes_num): Ditto.
9001 (form_object_hard_regs_nodes_forest): Ditto.
9002 (finish_object_hard_regs_nodes_tree): Ditto.
9003 (finish_object_hard_regs_nodes_forest): Ditto.
9004 (allocnos_have_intersected_live_ranges_p): Rename to
9005 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9006 (pseudos_have_intersected_live_ranges_p): Rename to
9007 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9008 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9009 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9010 (update_copy_costs): Remove assert. Skip cost update if the hard
9011 reg does not belong the class.
9012 (assign_hard_reg): Process only profitable hard regs.
9013 (uncolorable_allocnos_num): Make it scalar.
9014 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9015 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9016 and ira_reg_class_max_nregs.
9017 (bucket_allocno_compare_func): Check frequency first.
9018 (sort_bucket): Add compare function as a parameter.
9019 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9020 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9021 (push_allocno_to_stack): Rewrite for checking new allocno
9023 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9024 (push_only_colorable): Pass new parameter to sort_bucket.
9025 (push_allocno_to_spill): Remove.
9026 (allocno_spill_priority_compare): Make it inline and rewrite.
9027 (splay_tree_allocate, splay_tree_free): Remove.
9028 (allocno_spill_sort_compare): New function.
9029 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9030 build and use splay tree. Choose first allocno in uncolorable
9031 allocno bucket to spill. Remove setting spill cost.
9032 (all_conflicting_hard_regs): Remove.
9033 (setup_allocno_available_regs_num): Check only profitable hard
9034 regs. Print info about hard regs nodes.
9035 (setup_allocno_left_conflicts_size): Remove.
9036 (put_allocno_into_bucket): Don't call
9037 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9038 (improve_allocation): New.
9039 (color_allocnos): Call setup_profitable_hard_regs,
9040 form_object_hard_regs_nodes_forest, improve_allocation,
9041 finish_object_hard_regs_nodes_forest. Setup spill cost.
9042 (print_loop_title): Use pressure classes.
9043 (color_allocnso): Ditto.
9044 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9045 and allocnos_for_spilling.
9046 (ira_sort_regnos_for_alter_reg): Don't setup members
9047 {first,next}_coalesced_allocno.
9048 (color): Remove allocating and freeing removed_splay_allocno_vec.
9049 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9050 prohibited_class_mode_regs.
9052 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9054 (update_allocno_pressure_excess_length): Use pressure classes.
9055 (inc_register_pressure, dec_register_pressure): Check for pressure
9057 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9058 pressure class. Use ira_reg_class_nregs instead of
9059 ira_reg_class_max_nregs.
9060 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9061 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9062 (single_reg_class): Use ira_reg_class_nregs instead of
9063 ira_reg_class_max_nregs.
9064 (process_bb_node_lives): Use pressure classes.
9066 * ira-emit.c: Remove mentioning cover classes from the file. Use
9067 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9068 (change_loop): Use pressure classes.
9069 (modify_move_list): Call ira_set_allocno_class instead of
9070 ira_set_allocno_cover_class.
9072 * ira-build.c: Remove mentioning cover classes from the file. Use
9073 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9074 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9075 ALLOCNO_UPDATED_CLASS_COST instead of
9076 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9077 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9078 (ira_create_allocno): Remove initialization of
9079 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9080 ALLOCNO_COLORABLE_P.
9081 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9082 Update conflict regs for the objects.
9083 (create_cap_allocno): Remove assert. Don't propagate
9084 ALLOCNO_AVAILABLE_REGS_NUM.
9085 (ira_free_allocno_costs): New function.
9086 (finish_allocno): Change a part of code into call of
9087 ira_free_allocno_costs.
9088 (low_pressure_loop_node_p): Use pressure classes.
9089 (object_range_compare_func): Don't compare classes.
9090 (setup_min_max_conflict_allocno_ids): Ditto.
9092 * loop-invariant.c: Remove mentioning cover classes from the file.
9093 Use ira_pressure_classes and ira_pressure_classes_num instead of
9094 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9095 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9096 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9097 Use reg_allocno_class instead of reg_cover_class.
9098 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9099 STACK_REG_COVER_CLASS.
9100 (get_regno_cover_class): Rename to get_regno_pressure_class.
9101 (move_loop_invariants): Initialize and finalize regstat.
9103 * ira.c: Remove mentioning cover classes from the file. Add
9104 comments about coloring without cover classes. Use ALLOCNO_CLASS
9105 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9106 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9107 setup_class_subset_and_memory_move_costs.
9108 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9109 (setup_cover_and_important_classes): Rename to
9110 setup_allocno_and_important_classes.
9111 (setup_class_translate_array): New.
9112 (setup_class_translate): Call it for allocno and pressure classes.
9113 (cover_class_order): Rename to allocno_class_order.
9114 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9115 of ira_class_translate.
9116 (reorder_important_classes): Set up ira_important_class_nums.
9117 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9118 (print_class_cover): Rename to print_classes. Add parameter.
9119 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9120 Print pressure classes too.
9121 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9122 setup_reg_subclasses.
9123 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9124 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9125 (setup_prohibited_class_mode_regs): Use
9126 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9127 (clarify_prohibited_class_mode_regs): New function.
9128 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9129 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9130 (ira_init_once): Initialize them.
9131 (free_register_move_costs): Process them.
9132 (ira_init): Move calls of find_reg_classes and
9133 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9134 Call clarify_prohibited_class_mode_regs.
9135 (ira_no_alloc_reg): Remove.
9136 (too_high_register_pressure_p): Use pressure classes.
9138 * sched-deps.c: Remove mentioning cover classes from the file.
9139 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9140 ira_pressure_classes and ira_pressure_classes_num instead of
9141 ira_reg_class_cover_size and ira_reg_class_cover.
9142 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9143 sched_regno_pressure_class instead of sched_regno_cover_class.
9144 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9145 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9147 * ira.h: Add 2010 to Copyright.
9148 (ira_no_alloc_reg): Remove external.
9149 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9150 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9151 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9152 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9153 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9154 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9155 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9156 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9157 x_ira_no_alloc_regs.
9158 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9159 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9160 ira_allocno_classes_num and ira_allocno_classes.
9161 (ira_class_translate): Rename to ira_allocno_class_translate.
9162 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9163 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9164 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9165 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9166 (ira_no_alloc_regs): New.
9168 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9169 classes from the file. Use ALLOCNO_CLASS instead of
9170 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9171 ALLOCNO_COVER_CLASS_COST.
9172 (regno_cover_class): Rename to regno_aclass.
9173 (record_reg_classes): Use ira_reg_class_subunion instead of
9174 ira_reg_class_union.
9175 (record_address_regs): Check overflow.
9176 (scan_one_insn): Ditto.
9177 (print_allocno_costs): Print total mem cost fore regional allocation.
9178 (print_pseudo_costs): Use REG_N_REFS.
9179 (find_costs_and_classes): Use classes intersected with them on the
9180 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9181 ira_reg_class_union. Use ira_allocno_class_translate and
9182 regno_aclass instead of ira_class_translate and regno_cover_class.
9183 Modify code for finding regno_aclass. Setup preferred classes for
9185 (setup_allocno_cover_class_and_costs): Rename to
9186 setup_allocno_class_and_costs. Use regno_aclass instead of
9187 regno_cover_class. Use ira_set_allocno_class instead of
9188 ira_set_allocno_cover_class.
9189 (init_costs, finish_costs): Use regno_aclass instead of
9191 (ira_costs): Use setup_allocno_class_and_costs instead of
9192 setup_allocno_cover_class_and_costs.
9193 (ira_tune_allocno_costs_and_cover_classes): Rename to
9194 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9195 by processing objects. Use ira_reg_class_max_nregs instead of
9196 ira_reg_class_nregs.
9198 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9200 * sched-int.h: Remove mentioning cover classes from the file.
9201 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9203 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9204 classes from the file.
9205 (struct reg_pref): Rename coverclass into allocnoclass.
9206 (reg_cover_class): Rename to reg_allocno_class.
9208 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9210 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9212 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9214 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9216 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9218 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9220 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9222 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9224 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9226 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9228 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9229 (i386_ira_cover_classes): Ditto.
9231 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9233 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9235 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9237 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9239 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9241 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9243 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9244 (mips_ira_cover_classes): Ditto.
9246 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9248 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9250 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9252 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9254 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9256 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9257 (IRA_COVER_CLASSES_VSX): Ditto.
9259 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9260 (rs6000_ira_cover_classes): Ditto.
9262 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9264 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9266 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9268 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9270 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9272 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9274 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9276 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9278 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9280 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9282 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9285 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9286 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9287 dw_fde_unlikely_section_end_label, cold_in_std_section,
9288 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9289 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9291 (output_fde): Use dw_fde_second_{begin,end} if second is
9292 true, otherwise dw_fde_{begin,end}.
9293 (output_call_frame_info): Test dw_fde_second_begin != NULL
9294 instead of dw_fde_switched_sections.
9295 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9296 fields, initialize new fields. Initialize in_std_section
9297 unconditionally from the first partition.
9298 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9299 dw_fde_second_begin is non-NULL.
9300 (dwarf2out_switch_text_section): Stop initializing removed
9301 dw_fde_struct fields, initialize new fields, initialize
9302 also dw_fde_end here. Set dw_fde_switch_cfi even when
9303 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9304 (struct var_loc_list_def): Add last_before_switch field.
9305 (arange_table, arange_table_allocated, arange_table_in_use,
9306 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9307 (size_of_aranges): Count !in_std_section and !second_in_std_section
9308 hunks in fdes, instead of looking at arange_table_in_use.
9309 (output_aranges): Add aranges_length argument, don't call
9310 size_of_aranges here. Instead of using aranges_table*
9311 emit ranges for fdes when !in_std_section resp.
9312 !second_in_std_section.
9313 (dw_loc_list): Break ranges crossing section switch.
9314 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9315 use dw_fde_second_end instead of dw_fde_end as end of last range.
9316 (gen_subprogram_die): Don't call add_arange. Use
9317 dw_fde_{begin,end} for first partition and if switched
9318 section dw_fde_second_{begin,end} for the second.
9319 (var_location_switch_text_section_1,
9320 var_location_switch_text_section): New functions.
9321 (dwarf2out_begin_function): Initialize cold_text_section even
9322 when function_section () isn't text_section.
9323 (prune_unused_types): Don't walk arange_table.
9324 (dwarf2out_finish): Don't needlessly test
9325 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9326 If info_section_emitted, call size_of_aranges and if it indicates
9327 non-empty .debug_aranges, call output_aranges with the computed
9328 size. Stop using removed dw_fde_struct fields, use
9329 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9333 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9334 create ENTRY_VALUE if incoming or address of incoming's MEM
9336 * dwarf2out.c (mem_loc_descriptor): Don't emit
9337 DW_OP_GNU_entry_value of DW_OP_fbreg.
9338 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9339 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9340 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9341 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9343 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9344 is a REG_P or MEM_P with REG_P address, compute hash directly
9345 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9346 (preserve_only_constants): Don't clear VALUES forwaring
9347 ENTRY_VALUE to some other VALUE.
9349 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9351 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9354 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9356 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9357 block before expanding the statement.
9358 (expand_gimple_stmt_1): Likewise. Set them here...
9359 (expand_gimple_stmt): ...and not here. Tidy.
9360 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9363 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9365 * Makefile.in: New rule for cprop.o.
9366 * gcse.c: Move constant/copy propagation to cprop.c.
9367 (compute_local_properties): Only handle expression tables.
9368 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9369 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9370 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9371 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9372 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9373 compute_cprop_data, find_used_regs, try_replace_reg,
9374 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9375 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9376 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9377 find_bypass_set, reg_killed_on_edge, bypass_block,
9378 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9379 execute_rtl_cprop, pass_rtl_cprop): Move to...
9380 * cprop.c: ...here. New file, constant/copy propagation for RTL
9381 moved from gcse.c to here with minor cleanups in duplicated code.
9383 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9385 * config/i386/i386.c (flag_opts): Fix a typo in
9386 -mavx256-split-unaligned-store.
9388 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9390 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9391 LIBCALL_VALUE): Remove macros.
9392 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9393 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9394 (h8300_function_value, h8300_libcall_value,
9395 h8300_function_value_regno_p): New functions.
9397 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9399 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9401 2011-03-28 Jeff Law <law@redhat.com>
9403 * tree-ssa-threadupdate.c (redirect_edges): Call
9404 create_edge_and_update_destination_phis as needed.
9405 (create_edge_and_update_destination_phis): Accept new BB argument.
9406 All callers updated.
9407 (thread_block): Do not update the profile when threading around
9408 intermediate blocks.
9409 (thread_single_edge): Likewise.
9410 (determine_bb_domination_status): If BB is not a successor of the
9411 loop header, return NONDOMINATING.
9412 (register_jump_thread): Note when we register a jump thread around
9413 an intermediate block.
9414 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9415 (thread_across_edge): Use it.
9417 2011-03-28 Tristan Gingold <gingold@adacore.com>
9419 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9420 when for_return is 2.
9422 2011-03-28 Jeff Law <law@redhat.com>
9424 * var-tracking.c (canonicalize_values_mark): Delete unused
9426 (canonicalize_values_star, set_variable_part): Likewise.
9427 (clobber_variable_part, delete_variable_part): Likewise.
9429 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9431 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9433 2011-03-28 Martin Jambor <mjambor@suse.cz>
9435 * tree-inline.c (expand_call_inline): Do not check that destination
9437 (optimize_inline_calls): Assert that destination node is analyzed.
9438 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9439 not call tree_lowering_passes.
9440 * cgraph.h (cgraph_analyze_function): Declare.
9441 * cgraphunit.c (cgraph_analyze_function): Make public.
9443 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9445 * config/sparc/sparc-opts.h: New.
9446 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9447 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9448 (sparc_option_override): Store processor_type enumeration rather
9449 than string in cpu_default. Remove name and enumeration from
9450 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9451 without using sparc_select. Use target_flags_explicit instead of
9453 * config/sparc/sparc.h (enum processor_type): Move to
9455 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9456 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9457 HeaderInclude entry.
9458 (mcpu=, mtune=): Use Var and Enum.
9459 (sparc_processor_type): New Enum and EnumValue entries.
9461 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9462 Iain Sandoe <iains@gcc.gnu.org>
9465 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9467 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9469 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9470 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9471 Insert new statements at it in lieu of STMT.
9472 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9473 * tree-vect-stmts.c (vectorizable_store): Likewise.
9474 (vectorizable_load): Likewise.
9476 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9478 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9483 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9485 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9486 unaligned 256bit load/store.
9487 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9488 (*avx_movdqu<avxmodesuffix>): Likewise.
9490 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9493 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9494 * config/pa/pa.md (iordi3): Use new predicate in expander.
9497 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9499 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9500 FUNCTION_VALUE_REGNO_P): Remove macros.
9501 * config/mips/mips-protos.h (mips_function_value): Remove.
9502 * config/mips/mips.c (mips_function_value): Rename to...
9503 (mips_function_value_1): ... this. Make static. Handle receiving
9504 the function type in 'fn_decl_or_type' argument.
9505 (mips_function_value, mips_libcall_value,
9506 mips_function_value_regno_p): New function.
9507 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9508 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9510 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9512 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9513 and -mavx256-split-unaligned-store.
9514 (ix86_option_override_internal): Split 32-byte AVX unaligned
9515 load/store by default.
9516 (ix86_avx256_split_vector_move_misalign): New.
9517 (ix86_expand_vector_move_misalign): Use it.
9519 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9520 -mavx256-split-unaligned-store.
9522 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9523 256bit load/store. Generate unaligned store on misaligned memory
9525 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9527 (*avx_movdqu<avxmodesuffix>): Likewise.
9529 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9530 -mavx256-split-unaligned-store.
9532 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9535 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9538 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9540 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9541 opno arguments with an expand_operand. Use create_input_operand.
9542 (mips_prepare_builtin_target): Delete.
9543 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9545 (mips_expand_builtin_direct): Use create_output_operand and
9546 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9547 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9548 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9550 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9552 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9554 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9556 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9558 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9559 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9560 basic blocks and call commit_edge_insertions directly.
9561 (fixup_abnormal_edges): Move from here to...
9562 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9563 on the edges and return whether some have actually been inserted.
9564 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9567 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9569 PR rtl-optimization/48144
9570 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9571 (merge_expr_data): ... here.
9572 (av_set_intersect): Rename to av_set_code_motion_filter.
9573 Update all callers. Call merge_history_vect when an expression
9574 is found in both sets.
9575 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9577 2011-03-26 Alan Modra <amodra@gmail.com>
9579 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9580 cmodel medium addresses.
9581 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9582 64-bit gpr loads and stores.
9583 (rs6000_secondary_reload_ppc64): New function.
9584 * config/rs6000/rs6000-protos.h: Declare it.
9585 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9587 2011-03-26 Alan Modra <amodra@gmail.com>
9590 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9591 GNU Go in traceback table.
9593 2011-03-25 Richard Henderson <rth@redhat.com>
9595 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9596 if there are exactly 6 operands.
9597 (set_storage_via_setmem): Similarly.
9599 2011-03-25 Kai Tietz <ktietz@redhat.com>
9601 * collect2.c (write_c_file_stat): Handle backslash
9602 as right-hand directory separator.
9603 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9604 checking just for slash.
9605 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9606 instead of checking for trailing slash.
9607 * gcc.c (record_temp_file): Use filename_cmp instead
9609 (do_spec_1): Likewise.
9610 (replace_outfile_spec_function): Likewise.
9611 (is_directory): Use filename_ncmp instead of strncmp.
9612 (print_multilib_info): Likewise.
9613 * gcov.c (find_source): Use filename_cmp instead
9615 (make_gcov_file_name): Fix order of slash/backslash
9617 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9618 (add_standard_paths): Likewise.
9619 * mips-tfile.c (saber_stop): Handle backslash.
9620 * prefix.c (update_path): Use filename_ncmp instead of
9622 * profile.c (output_location): Use filename_cmp instead
9624 * read-md.c (handle_toplevel_file): Handle backslash.
9625 * tlink.c (frob_extension): Likewise.
9626 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9628 * tree-dump.c (dequeue_and_dump): Handle backslash.
9629 * tree.c (get_file_function_name): Likewise.
9630 * gengtype.c (read_input_list): Likewise.
9631 (get_file_realbasename): Likewise.
9632 (get_output_file_with_visibility): Use filename_cmp
9635 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9637 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9640 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9642 * fold-const.c (expr_location_or): New function.
9643 (fold_truth_not_expr): Call it.
9645 2011-03-25 Jeff Law <law@redhat.com>
9647 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9649 * c-family/c-common.c (def_fn_type): Likewise.
9650 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9651 * emit-rtl.c (gen_rtvec): Likewise.
9652 * lto/lto-lang.c (def_fn_type): Likewise.
9654 2011-03-25 Richard Guenther <rguenther@suse.de>
9656 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9657 also generate copies.
9658 (fini_copy_prop): Handle constant values properly.
9660 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9662 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9663 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9664 (hash_loc_operands, compare_loc_operands): Handle
9665 DW_OP_GNU_entry_value.
9667 2011-03-25 Kai Tietz <ktietz@redhat.com>
9669 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9670 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9671 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9672 comment and use macro TARGET_64BIT_MS_ABI instead.
9673 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9674 and change default behavior for 32-bit MS_ABI.
9675 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9676 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9678 (ix86_cfun_abi): Likewise.
9679 (ix86_maybe_switch_abi): Adjust comment.
9680 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9681 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9682 instead of checking for SYSV_ABI.
9683 (ix86_nsaved_sseregs): Likewise.
9684 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9686 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9687 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9688 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9689 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9690 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9692 2011-03-25 Richard Guenther <rguenther@suse.de>
9694 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9695 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9696 (verify_gimple): Remove.
9697 * tree-cfg.c (verify_gimple_call): Merge verification
9699 (verify_gimple_phi): Merge verification from verify_stmts.
9700 (verify_gimple_label): New function.
9701 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9702 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9703 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9704 (verify_stmts): Rename to verify_gimple_in_cfg.
9705 (verify_gimple_in_cfg): New function.
9706 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9707 * tree-ssa.c (verify_ssa): Likewise.
9708 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9710 2011-03-25 Richard Guenther <rguenther@suse.de>
9712 * passes.c (init_optimization_passes): Add FRE pass after
9715 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9716 Andrew Stubbs <ams@codesourcery.com>
9718 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9720 (arm_movdi_vfp_cortexa8): New pattern.
9721 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9722 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9723 instructions when tuning for Cortex-A8. Set attribute "arch".
9724 * config/arm/arm.md: Move include arm-tune.md up a bit.
9725 (define_attr "arch"): Add "onlya8" and "nota8" values.
9726 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9728 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9732 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9734 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9735 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9736 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9737 * passes.c (init_optimization_passes): Move
9738 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9740 2011-03-25 Kai Tietz <ktietz@redhat.com>
9742 * c-typeck.c (comptypes_internal): Replace target
9743 hook call of comp_type_attributes by version in tree.c file.
9744 * gimple.c (gimple_types_compatible_p_1): Likewise.
9745 * tree-ssa.c (useless_type_conversion_p): Likewise.
9746 * tree.c (build_type_attribute_qual_variant): Likewise.
9747 (attribute_value_equal): New static helper function.
9748 (comp_type_attributes): New function.
9749 (merge_attributes): Use attribute_value_equal for comparison.
9750 (attribute_list_contained): Likewise.
9751 * tree.h (comp_type_attributes): New prototype.
9753 2011-03-25 Richard Guenther <rguenther@suse.de>
9755 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9756 of complex types at -O0.
9757 (verify_gimple_assign_binary): Likewise.
9758 (verify_gimple_assign_ternary): Likewise.
9760 2011-03-24 Mark Wielaard <mjw@redhat.com>
9762 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9763 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9765 2011-03-24 Mark Wielaard <mjw@redhat.com>
9768 * dwarf2out.c (output_abbrev_section): Only write table when
9769 abbrev_die_table_in_use > 1.
9771 2011-02-24 Richard Henderson <rth@redhat.com>
9773 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9774 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9775 (alpha_expand_unaligned_load_words): Use extql.
9776 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9777 (emit_insxl): Handle all modes for consistency.
9779 2011-02-24 Richard Henderson <rth@redhat.com>
9781 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9782 (alpha_expand_unaligned_load): Likewise.
9783 (alpha_expand_unaligned_store): Likewise.
9784 (alpha_expand_unaligned_load_words): Likewise.
9785 (alpha_expand_unaligned_store_words): Likewise.
9786 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9787 (alpha_split_lock_test_and_set_12): Likewise.
9788 (print_operand, alpha_fold_builtin_extxx): Likewise.
9789 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9790 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9791 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9792 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9793 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9794 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9795 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9796 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9797 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9798 (extwl, extll, extql): Similarly.
9799 (inswh, inslh, insqh): Similarly.
9800 (mskbl, mskwl, mskll, mskql): Similarly.
9801 (mskwh, msklh, mskqh): Similarly.
9803 2011-02-24 Richard Henderson <rth@redhat.com>
9805 * config/alpha/alpha.md (attribute isa): Add er, ner.
9806 (attribute enabled): Handle them.
9807 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9809 2011-02-24 Richard Henderson <rth@redhat.com>
9811 * config/alpha/alpha.md (attribute isa): Add vms.
9812 (attribute enabled): Handle it.
9813 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9814 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9815 (*movtf): Rename from *movtf_internal for consistency.
9816 (*movsi): Merge with *movsi_nt_vms.
9817 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9818 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9819 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9820 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9822 2011-02-24 Richard Henderson <rth@redhat.com>
9824 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9825 (extendqisi2, extendhisi2): Likewise.
9826 (extendqidi2): Simplify BWX/non-BWX expansions.
9827 (extendhidi2): Similarly.
9829 2011-02-24 Richard Henderson <rth@redhat.com>
9831 * config/alpha/alpha.md (attribute isa): New.
9832 (attribute enabled): New.
9833 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9834 (zero_extendqisi2, zero_extendqidi2): Similarly.
9835 (zero_extendhisi2, zero_extendhidi2): Similarly.
9836 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9838 2011-02-24 Richard Henderson <rth@redhat.com>
9840 * config/alpha/predicates.md (input_operand): Revert last change;
9841 update comment to mention 32-bit VMS rather than Windows.
9843 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9845 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9846 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9847 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9848 * passes.c (init_optimization_passes): Move
9849 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9851 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9853 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9855 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9857 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9860 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9863 * simplify-rtx.c (simplify_const_unary_operation): Call
9864 real_convert when changing mode class with FLOAT_EXTEND.
9866 2011-03-24 Nick Clifton <nickc@redhat.com>
9868 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9869 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9870 * config/rx/rx.c (rx_option_override): Set align_jumps,
9871 align_loops and align_labels if not set by the user.
9872 (rx_align_for_label): New function.
9873 (rx_max_skip_for_label): New function.
9874 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9875 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9876 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9877 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9878 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9880 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9882 PR rtl-optimization/48263
9883 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9884 and original commutative_p handling. Use maybe_gen_insn.
9886 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9888 * reload.c (find_reloads_subreg_address): Add address_reloaded
9889 parameter and return true there if the full address has been
9891 (find_reloads_toplev): Pass address_reloaded flag.
9892 (find_reloads_address_1): Don't use address_reloaded parameter.
9894 2011-03-24 Jeff Law <law@redhat.com>
9896 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9897 unused variable "ann".
9898 (remove_unused_locals): Likewise.
9900 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9903 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9906 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9908 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9909 for invalid symbolic addresses.
9910 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9913 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9915 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9916 the argument in calls to fold_truth_not_expr.
9918 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9920 * tree.c (record_node_allocation_statistics): New function.
9921 (make_node_stat, copy_node_stat, build_string): Call it.
9922 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9923 (build1_stat, build_omp_clause): Likewise.
9925 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9927 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9930 2011-03-24 Richard Guenther <rguenther@suse.de>
9932 PR tree-optimization/48271
9933 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9934 blocks that still exist.
9936 2011-03-24 Richard Guenther <rguenther@suse.de>
9938 PR tree-optimization/48270
9939 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9940 not free datarefs before ddrs.
9942 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9944 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9945 from the address built for a reference with variable offset.
9947 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9950 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9951 alternatives that can be handled with movq or movabsq insn.
9952 (*movdf_internal): Disable for !TARGET_64BIT.
9953 (*movdf_internal_nointeger): Ditto.
9954 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9956 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9958 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9959 (FUNCTION_ARG_ADVANCE): Likewise.
9960 * tm.texi.in: Change references to them to hook references.
9961 * tm.texi: Regenerate.
9962 * targhooks.c (default_function_arg): Eliminate check for target macro.
9963 (default_function_incoming_arg): Likewise.
9964 (default_function_arg_advance): Likewise.
9965 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9966 (function_arg_advance): Likewise.
9967 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9969 2011-03-24 Richard Guenther <rguenther@suse.de>
9972 * tree-object-size.c (addr_object_size): Do not double-account
9973 for MEM_REF offsets.
9975 2011-03-24 Diego Novillo <dnovillo@google.com>
9977 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9978 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9979 (lto_input_data_block): Move from lto-opts.c. Make extern.
9981 (lto_input_string): Rename from input_string. Make extern.
9983 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9984 output_string_with_length.
9985 Output 0 to indicate a non-NULL string. Update all callers to
9987 (lto_output_string): Rename from output_string. Make extern.
9989 (lto_output_decl_state_streams): Make extern.
9990 (lto_output_decl_state_refs): Make extern.
9991 * lto-streamer.h (lto_input_string): Declare.
9992 (lto_input_data_block): Declare.
9993 (lto_output_string): Declare.
9994 (lto_output_string_with_length): Declare.
9995 (lto_output_decl_state_streams): Declare.
9996 (lto_output_decl_state_refs): Declare.
9998 2011-03-24 Richard Guenther <rguenther@suse.de>
10000 PR tree-optimization/46562
10001 * tree.c (build_invariant_address): New function.
10002 * tree.h (build_invariant_address): Declare.
10003 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10004 a renamed function moved ...
10005 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10006 Take valueization callback parameter.
10007 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10008 * gimple-fold.h: New file.
10009 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10010 (ccp_fold, fold_const_aggregate_ref,
10011 fold_ctor_reference, fold_nonarray_ctor_reference,
10012 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10013 get_base_constructor): Move ...
10014 * gimple-fold.c: ... here.
10015 (gimple_fold_stmt_to_constant_1): New function
10016 split out from ccp_fold. Take a valueization callback parameter.
10017 Valueize all operands.
10018 (gimple_fold_stmt_to_constant): New wrapper function.
10019 (fold_const_aggregate_ref_1): New function split out from
10020 fold_const_aggregate_ref. Take a valueization callback parameter.
10021 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10022 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10023 invariant POINTER_PLUS_EXPRs to invariant form.
10024 (vn_valueize): New function.
10025 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10026 * tree-vrp.c (vrp_valueize): New function.
10027 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10028 to fold statements to constants.
10029 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10030 function declarations.
10031 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10032 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10034 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10036 * config/h8300/predicates.md (jump_address_operand): Fix register
10039 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10041 * doc/invoke.texi (max-stores-to-sink): Document.
10042 * params.h (MAX_STORES_TO_SINK): Define.
10043 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10044 if either vectorization or if-conversion is disabled.
10045 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10046 tree-vect-data-refs.c vect_equal_offsets.
10047 (dr_equal_offsets_p): New function.
10048 (find_data_references_in_bb): Remove static.
10049 * tree-data-ref.h (find_data_references_in_bb): Declare.
10050 (dr_equal_offsets_p): Likewise.
10051 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10052 (vect_drs_dependent_in_basic_block): Update calls to
10053 vect_equal_offsets.
10054 (vect_check_interleaving): Likewise.
10055 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10056 (cond_if_else_store_replacement): Rename to...
10057 (cond_if_else_store_replacement_1): ... this. Change arguments and
10059 (cond_if_else_store_replacement): New function.
10060 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10061 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10063 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10066 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10067 to subtract lower bound instead of GEN_INT().
10069 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10074 * doc/extend.texi (Alignment): Move section to match order in TOC.
10075 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10076 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10078 2011-03-23 Jeff Law <law@redhat.com>
10080 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10081 before removing the edge.
10083 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10084 it may have been freed by redirect_branch_edge or
10085 redirect_edge_succ_nodup.
10087 2011-03-23 Richard Guenther <rguenther@suse.de>
10089 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10090 (check_va_list_escapes): Likewise.
10091 (check_all_va_list_escapes): Likewise.
10093 2011-03-23 Richard Guenther <rguenther@suse.de>
10095 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10096 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10097 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10098 (alias.o): Likewise.
10099 (ipa-type-escape.o): Remove.
10100 (ipa-struct-reorg.o): Likewise.
10101 (GTFILES): Remove ipa-struct-reorg.c.
10102 * alias.c: Do not include ipa-type-escape.h.
10103 * tree-ssa-alias.c: Likewise.
10104 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10105 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10106 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10107 and ipa-type-escape passes.
10108 * tree-pass.h (pass_ipa_type_escape): Remove.
10109 (pass_ipa_struct_reorg): Likewise.
10110 * ipa-struct-reorg.h: Remove.
10111 * ipa-struct-reorg.c: Likewise.
10112 * ipa-type-escape.h: Likewise.
10113 * ipa-type-escape.c: Likewise.
10114 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10115 (--param struct-reorg-cold-struct-ratio): Likewise.
10116 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10117 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10118 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10120 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10122 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10123 cpu attribute value.
10124 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10125 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10126 * config/s390/s390.c (processor_flags_table): New constant array.
10127 (s390_handle_arch_option): Remove.
10128 (s390_handle_option): Remove s390_handle_arch_option invocations
10129 and OPT_mwarn_framesize_ handling.
10130 (s390_option_override): Remove s390_handle_arch_option invocation.
10131 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10133 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10134 * config/s390/s390.opt (s390_tune, s390_arch)
10135 (march=): Replace s390_arch_option enum and values with
10136 processor_type. Set variable name to s390_arch. Set
10137 initialization value.
10138 (mtune=): Replace s390_arch_option with processor_type. Set
10139 variable name to s390_tune. Set initialization value.
10141 2011-03-23 Julian Brown <julian@codesourcery.com>
10143 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10144 accesses which are not naturally aligned.
10146 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10149 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10151 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10153 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10154 parameter from "int" to "enum insn_code".
10155 (expand_operand_type): New enum.
10156 (expand_operand): New structure.
10157 (create_expand_operand): New function.
10158 (create_fixed_operand, create_output_operand): Likewise
10159 (create_input_operand, create_convert_operand_to): Likewise.
10160 (create_convert_operand_from, create_address_operand): Likewise.
10161 (create_integer_operand): Likewise.
10162 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10163 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10164 (expand_insn, expand_jump_insn): Likewise.
10165 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10166 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10167 (expand_movstr, expand_builtin___clear_cache): Likewise.
10168 (expand_builtin_lock_release): Likewise.
10169 * explow.c (allocate_dynamic_stack_space): Likewise.
10170 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10171 and use the default handling in that case.
10172 * expmed.c (check_predicate_volatile_ok): Delete.
10173 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10174 (emit_cstore): Likewise.
10175 * expr.c (emit_block_move_via_movmem): Likewise.
10176 (set_storage_via_setmem, expand_assignment): Likewise.
10177 (emit_storent_insn, try_casesi): Likewise.
10178 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10179 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10180 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10181 (expand_twoval_unop, expand_twoval_binop): Likewise.
10182 (expand_unop_direct, emit_indirect_jump): Likewise.
10183 (emit_conditional_move, vector_compare_rtx): Likewise.
10184 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10185 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10186 (expand_sync_lock_test_and_set): Likewise.
10187 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10188 (emit_unop_insn): Likewise.
10189 (expand_copysign_absneg): Change icode to an insn_code.
10190 (create_convert_operand_from_type): New function.
10191 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10192 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10193 (expand_insn, expand_jump_insn): Likewise.
10194 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10195 than const_int_operand for operand 2.
10197 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10199 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10202 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10204 * emit-rtl.c (emit_pattern_before_noloc): New function.
10205 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10206 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10207 (emit_pattern_after_noloc): New function.
10208 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10209 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10211 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10213 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10214 (__ffsDI2): Likewise.
10216 2011-03-22 Richard Henderson <rth@redhat.com>
10218 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10219 of !TARGET_ABI_OPEN_VMS.
10220 (alpha_trampoline_init, alpha_start_function): Likewise.
10221 (alpha_expand_epilogue, alpha_file_start): Likewise.
10222 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10223 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10224 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10225 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10226 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10228 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10230 * config/s390/s390-opts.h: New.
10231 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10232 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10233 s390_stack_guard): Remove.
10234 (s390_handle_arch_option): Return void. Take enum
10235 s390_arch_option value instead of string and searching array.
10236 (s390_handle_option): Don't assert that global structures are in
10237 use. Access variables via opts pointer. Use error_at. Don't use
10238 sscanf for -mstack-guard= or -mstack-size=. Update call to
10239 s390_handle_arch_option.
10240 (s390_option_override): Update call to s390_handle_arch_option.
10241 (s390_emit_prologue): Use %d format for s390_stack_size in
10242 diagnostic. Use %wd for HOST_WIDE_INT.
10243 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10244 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10245 * config/s390/s390.opt (config/s390/s390-opts.h): New
10246 HeaderInclude entry.
10247 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10248 s390_arch_flags, s390_warn_framesize): New Variable entries.
10249 (s390_arch_option): New Enum and EnumValue entries.
10250 (march=): Use Enum instead of Var.
10251 (mstack-guard=, mstack-size=): Use UInteger and Var.
10252 (mtune=): Use Enum.
10254 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10256 * config/score/score.c (score_handle_option): Don't assert that
10257 global structures are in use. Access target_flags via opts
10258 pointer. Use value of -march= option to determine target_flags
10260 * config/score/score.opt (march=): Use Enum.
10261 (score_arch): New Enum and EnumValue entries.
10263 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10265 * config/mep/mep.c (option_mtiny_specified): Remove.
10266 (mep_option_override): Move register handling for -mivc2 from
10267 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10268 instead of option_mtiny_specified.
10269 (mep_handle_option): Access target_flags via opts pointer. Don't
10270 assert that global structures are in use. Defer part of -mivc2
10271 handling and move it to mep_option_override.
10272 * config/mep/mep.opt (IVC2): New Mask entry.
10273 (mivc2): Use Var and Defer instead of Mask.
10275 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10277 * config/v850/v850-opts.h: New.
10278 * config/v850/v850.c (small_memory): Replace with
10279 small_memory_physical_max array. Make that array static const.
10280 (v850_handle_memory_option): Take integer value of argument. Take
10281 gcc_options pointer, option text and location. Return void.
10282 Update for changes to small memory structures.
10283 (v850_handle_option): Access target_flags via opts pointer. Don't
10284 assert that global structures are in use. Update calls to
10285 v850_handle_memory_option.
10286 (v850_encode_data_area): Update references to small memory settings.
10287 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10288 (enum small_memory_type): Move to v850-opts.h.
10289 * config/v850/v850.opt (config/v850/v850-opts.h): New
10290 HeaderInclude entry.
10291 (small_memory_max): New Variable entry.
10292 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10293 (mtda, mzda): Likewise.
10295 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10297 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10298 pointer. Don't assert that global structures are in use.
10300 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10302 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10303 via opts pointer. Don't assert that global structures are in use.
10305 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10307 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10308 (munix=93): Use Var.
10309 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10310 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10311 * config/pa/pa-opts.h: New.
10312 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10313 (pa_handle_option): Don't assert that global structures are in
10314 use. Access target_flags via opts pointer. Don't handle
10315 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10317 (pa_option_override): Handle deferred OPT_mfixed_range_.
10319 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10321 * config/mn10300/mn10300-opts.h: New.
10322 * config/mn10300/mn10300.c (mn10300_processor,
10323 mn10300_tune_string): Remove.
10324 (mn10300_handle_option): Don't assert that global structures are
10325 in use. Access mn10300_processor via opts pointer. Don't handle
10327 * config/mn10300/mn10300.h (enum processor_type): Move to
10329 (mn10300_processor): Remove.
10330 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10331 HeaderInclude entry.
10332 (mn10300_processor): New Variable entry.
10335 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10337 * config/microblaze/microblaze.c: Don't include opts.h.
10338 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10339 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10340 (mno-clearbss): Use Var and Warn.
10342 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10344 * config/m32r/m32r-opts.h: New.
10345 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10346 (m32r_handle_option): Don't assert that global structures are in
10347 use. Access target_flags and m32r_cache_flush_func via opts
10348 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10349 OPT_mno_flush_trap here.
10350 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10351 include of m32r-opts.h.
10352 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10353 HeaderInclude entry.
10354 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10355 (mmodel=): Use Enum and Var.
10356 (m32r_model): New Enum and EnumValue entries.
10357 (mno-flush-trap): Use Var.
10358 (msdata=): Use Enum and Var.
10359 (m32r_sdata): New Enum and EnumValue entries.
10361 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10363 * config/m32c/m32c.c: Don't include opts.h.
10364 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10365 m32c_handle_option): Remove.
10366 (m32c_option_override): Check global_options_set.x_target_memregs
10367 instead of target_memregs_set.
10368 * config/m32c/m32c.h (target_memregs): Remove.
10369 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10372 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10374 * config/iq2000/iq2000-opts.h: New.
10375 * config/iq2000/iq2000.c: Don't include opts.h.
10376 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10377 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10378 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10379 HeaderInclude entry.
10380 (iq2000_tune): New Variable entry.
10381 (march=): Add comment. Use Enum.
10382 (iq2000_arch): New Enum and EnumValue entries.
10383 (mcpu=): Use Enum and Var.
10384 (iq2000_tune): New Enum and EnumValue entries.
10386 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10388 * config/ia64/ia64-opts.h: New.
10389 * config/ia64/ia64.c (ia64_tune): Remove.
10390 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10391 here. Use error_at.
10392 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10393 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10394 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10395 HeaderInclude entry.
10396 (ia64_tune): New Variable entry.
10397 (mfixed-range=): Use Defer and Var.
10398 (mtune=): Use Enum and Var.
10399 (ia64_tune): New Enum and EnumValue entries.
10401 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10403 * config/frv/frv-opts.h: New.
10404 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10406 (frv_cpu_type): Remove.
10407 * config/frv/frv.c: Don't include opts.h.
10408 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10409 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10410 (frv_cpu_type): New Variable entry.
10411 (frv_cpu): New Enum and EnumValue entries.
10413 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10415 * config/cris/cris.c (cris_handle_option): Access target_flags via
10416 opts pointer. Don't assert that global structures are in use.
10417 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10418 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10420 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10422 * config/bfin/bfin-opts.h: New.
10423 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10424 bfin_si_revision, bfin_workarounds): Remove.
10425 (bfin_cpus): Make static const.
10426 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10427 not bfin_lib_id_given.
10428 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10429 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10430 pointer. Use error_at. Don't assert that global structures are in use.
10431 * config/bfin/bfin.h: Include bfin-opts.h.
10432 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10433 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10434 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10435 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10438 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10440 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10441 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10442 or -msoft-float here.
10443 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10444 -msoft-float and -mhard-float.
10445 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10446 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10448 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10450 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10451 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10453 (LIBGCC_SPEC): Don't handle -msoft-float.
10454 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10456 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10458 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10459 -mfloat-abi=*, not -msoft-float and -mhard-float.
10460 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10462 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10463 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10464 mhard-float and msoft-float.
10465 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10466 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10467 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10468 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10470 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10471 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10473 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10475 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10478 2011-03-22 Richard Henderson <rth@redhat.com>
10480 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10481 TARGET_ABI_WINDOWS_NT.
10482 (alpha_output_function_end_prologue): Likewise.
10483 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10484 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10485 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10486 (trap, *movsi_nt_vms): Likewise.
10487 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10488 (*tablejump_osf_nt_internal): Remove.
10489 * config/alpha/predicates.md (input_operand): Only test Pmode.
10491 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10493 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10494 via opts pointer. Use error_at. Don't assert that global
10495 structures are in use.
10497 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10499 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10500 (ix86_handle_option): Access ix86_isa_flags and
10501 ix86_isa_flags_explicit via opts pointer. Don't assert that
10502 global structures are in use.
10503 (ix86_function_specific_save, ix86_function_specific_restore):
10504 Update ix86_isa_flags_explicit field name.
10505 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10506 (ix86_isa_flags_explicit): Rename TargetSave entry to
10507 x_ix86_isa_flags_explicit.
10509 2011-03-22 Richard Henderson <rth@redhat.com>
10511 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10512 (alpha_option_override, direct_return): Likewise.
10513 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10514 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10515 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10516 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10517 (alpha_expand_epilogue, alpha_end_function): Likewise.
10518 (alpha_init_libfuncs): Likewise.
10519 (struct machine_function): Remove unicosmk members.
10520 (print_operand) ['t']: Remove.
10521 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10522 unicosmk_output_module_name, unicosmk_output_common,
10523 current_section_align, unicosmk_output_text_section_asm_op,
10524 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10525 unicosmk_section_type_flags, unicosmk_unique_section,
10526 unicosmk_asm_named_section, unicosmk_insert_attributes,
10527 unicosmk_output_align, unicosmk_defer_case_vector,
10528 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10529 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10530 unicosmk_output_ssib, unicosmk_add_call_info_word,
10531 unicosmk_extern_head, unicosmk_output_default_externs,
10532 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10533 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10534 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10535 * config/alpha/alpha-protos.h: Update.
10536 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10537 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10538 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10539 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10540 (*mulsi_se, mulvsi3): Likewise.
10541 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10542 (*divmodsi_internal, call, call_value, realign): Likewise.
10543 (moddi3, umoddi3): Likewise; remove duplicate expander.
10544 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10545 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10546 (*movdi_nofix): Remove r/U alternative.
10547 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10548 * config/alpha/constraints.md ("U"): Remove.
10549 * config/alpha/predicates.md (call_operand"): Don't test
10550 TARGET_ABI_UNICOSMK.
10552 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10554 * target.def (handle_option): Take gcc_options and
10555 cl_decoded_option pointers and location_t.
10556 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10557 * doc/tm.texi: Regenerate.
10558 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10559 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10560 * lto-opts.c (lto_reissue_options): Generate option structure for
10561 targetm.handle_option call.
10562 * opts.c (target_handle_option): Update call to
10563 targetm.handle_option. Remove assertions about values now passed
10565 * targhooks.c (default_target_handle_option): New.
10566 * targhooks.h (default_target_handle_option): Declare.
10567 * config/alpha/alpha.c: Include opts.h.
10568 (alpha_handle_option): Update to new hook interface.
10569 * config/arm/arm.c: Include opts.h.
10570 (arm_handle_option): Update to new hook interface.
10571 * config/arm/t-arm (arm.o): Update dependencies.
10572 * config/bfin/bfin.c: Include opts.h.
10573 (bfin_handle_option): Update to new hook interface.
10574 * config/cris/cris.c: Include opts.h.
10575 (cris_handle_option): Update to new hook interface.
10576 * config/frv/frv.c: Include opts.h.
10577 (frv_handle_option): Update to new hook interface.
10578 * config/i386/i386.c: Include opts.h.
10579 (ix86_handle_option): Update to new hook interface.
10580 (ix86_valid_target_attribute_inner_p): Generate option structure
10581 for call to ix86_handle_option.
10582 * config/i386/t-i386 (i386.o): Update dependencies.
10583 * config/ia64/ia64.c: Include opts.h.
10584 (ia64_handle_option): Update to new hook interface.
10585 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10586 * config/iq2000/iq2000.c: Include opts.h.
10587 (iq2000_handle_option): Update to new hook interface.
10588 * config/m32c/m32c.c: Include opts.h.
10589 (m32c_handle_option): Update to new hook interface.
10590 * config/m32r/m32r.c: Include opts.h.
10591 (m32r_handle_option): Update to new hook interface.
10592 * config/m68k/m68k.c: Include opts.h.
10593 (m68k_handle_option): Update to new hook interface.
10594 * config/mep/mep.c: Include opts.h.
10595 (mep_handle_option): Update to new hook interface.
10596 * config/microblaze/microblaze.c: Include opts.h.
10597 (microblaze_handle_option): Update to new hook interface.
10598 * config/mips/mips.c: Include opts.h.
10599 (mips_handle_option): Update to new hook interface.
10600 * config/mn10300/mn10300.c: Include opts.h.
10601 (mn10300_handle_option): Update to new hook interface.
10602 * config/pa/pa.c: Include opts.h.
10603 (pa_handle_option): Update to new hook interface.
10604 * config/pdp11/pdp11.c: Include opts.h.
10605 (pdp11_handle_option): Update to new hook interface.
10606 * config/rs6000/rs6000.c: Include opts.h.
10607 (rs6000_handle_option): Update to new hook interface.
10608 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10609 * config/rx/rx.c: Include opts.h.
10610 (rx_handle_option): Update to new hook interface.
10611 * config/s390/s390.c: Include opts.h.
10612 (s390_handle_option): Update to new hook interface.
10613 * config/score/score.c: Include opts.h.
10614 (score_handle_option): Update to new hook interface.
10615 * config/sh/sh.c: Include opts.h.
10616 (sh_handle_option): Update to new hook interface.
10617 * config/sparc/sparc.c: Include opts.h.
10618 (sparc_handle_option): Update to new hook interface.
10619 * config/v850/v850.c: Include opts.h.
10620 (v850_handle_option): Update to new hook interface.
10622 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10624 * gcc.c (driver_unknown_option_callback): Only permit and save
10625 unknown -Wno- options.
10626 (driver_wrong_lang_callback): Save options directly instead of via
10627 driver_unknown_option_callback.
10629 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10631 * combine.c (simplify_set): Try harder to find the best CC mode when
10632 simplifying a nested COMPARE on the RHS.
10634 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10636 * config/alpha/gnu.h: Remove.
10637 * config/arc: Remove directory.
10638 * config/arm/netbsd.h: Remove.
10639 * config/arm/t-pe: Remove.
10640 * config/crx: Remove directory.
10641 * config/i386/netbsd.h: Remove.
10642 * config/m68hc11: Remove directory.
10643 * config/m68k/uclinux-oldabi.h: Remove.
10644 * config/mcore/mcore-pe.h: Remove.
10645 * config/mcore/t-mcore-pe: Remove.
10646 * config/netbsd-aout.h: Remove.
10647 * config/rs6000/gnu.h: Remove.
10648 * config/sh/sh-symbian.h: Remove.
10649 * config/sh/symbian-base.c: Remove.
10650 * config/sh/symbian-c.c: Remove.
10651 * config/sh/symbian-cxx.c: Remove.
10652 * config/sh/symbian-post.h: Remove.
10653 * config/sh/symbian-pre.h: Remove.
10654 * config/sh/t-symbian: Remove.
10655 * config/svr3.h: Remove.
10656 * config/vax/netbsd.h: Remove.
10657 * config.build: Don't handle i[34567]86-*-pe.
10658 * config.gcc: Remove handling of deprecations for most deprecated
10660 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10661 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10662 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10663 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10664 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10665 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10667 * config.host: Don't handle i[34567]86-*-pe.
10668 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10669 (ASM_SPEC32): Don't handle -mcall-gnu.
10670 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10672 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10673 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10674 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10675 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10676 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10677 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10678 conditional on SYMBIAN.
10679 * configure.ac: Don't handle powerpc*-*-gnu*.
10680 * configure: Regenerate.
10681 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10682 * doc/install-old.texi (m6811, m6812): Don't mention.
10683 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10684 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10685 (m68k-uclinuxoldabi): Don't mention.
10686 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10688 (-mcall-gnu): Remove.
10689 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10690 families): Remove constraint documentation.
10692 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10694 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10695 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10696 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10698 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10701 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10702 vector when peeking at the next token for vector, don't expand the
10705 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10707 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10708 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10709 * config/avr/avr.c (init_cumulative_args)
10710 (avr_function_arg_advance): Use it.
10711 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10713 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10714 (avr_function_ok_for_sibcall): ...this new function.
10715 (avr_lookup_function_attribute1): New static Function.
10716 (avr_naked_function_p, interrupt_function_p)
10717 (signal_function_p, avr_OS_task_function_p)
10718 (avr_OS_main_function_p): Use it.
10719 * config/avr/avr.md ("sibcall", "sibcall_value")
10720 ("sibcall_epilogue"): New expander.
10721 ("*call_insn", "*call_value_insn"): New insn.
10722 ("call_insn", "call_value_insn"): Remove
10723 ("call", "call_value", "epilogue"): Change expander to handle
10726 2011-03-21 Nick Clifton <nickc@redhat.com>
10728 * doc/invoke.texi (Overall Options): Move closing brace to end of
10730 (Optimization Options): Add missing @gol.
10731 (Directory Options): Likewise.
10732 (i386 and x86-64 Options): Likewise.
10733 (RS6000 and PowerPC Options): Likewise.
10734 (i386 and x86-64 Windows Options): Likewise.
10735 (V850 Options): Add text missing from descriptions.
10737 2011-03-22 Richard Henderson <rth@redhat.com>
10739 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10740 (avr_incoming_return_addr_rtx): New.
10741 (emit_push_byte): New.
10742 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10743 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10744 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10745 (emit_pop_byte): New.
10746 (expand_epilogue): Use it. Pop frame pointer by bytes.
10747 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10748 (INCOMING_RETURN_ADDR_RTX): New.
10749 (INCOMING_FRAME_SP_OFFSET): New.
10750 (ARG_POINTER_CFA_OFFSET): New.
10751 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10752 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10755 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10757 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10759 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10760 (FUNCTION_ARG_ADVANCE): Likewise.
10761 * tm.texi.in: Change references to them to hook references.
10762 * tm.texi: Regenerate.
10763 * targhooks.c (default_function_arg): Eliminate check for target
10765 (default_function_incoming_arg): Likewise.
10766 (default_function_arg_advance): Likewise.
10767 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10768 (function_arg_advance): Likewise.
10769 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10771 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10773 * tree.c (build_call_1): New function.
10774 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10776 2011-03-22 Richard Guenther <rguenther@suse.de>
10778 PR tree-optimization/48228
10779 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10780 for single-arg PHIs.
10782 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10784 PR rtl-optimization/48143
10785 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10786 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10787 sse2_cvtps2pd): Likewise.
10789 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10791 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10793 2011-03-22 Richard Guenther <rguenther@suse.de>
10795 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10796 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10797 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10798 and REALIGN_LOAD_EXPR.
10799 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10800 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10801 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10802 DOT_PROD_EXPR case ...
10803 (expand_expr_real_2): ... here.
10804 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10805 and REALIGN_LOAD_EXPR.
10806 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10807 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10808 (vect_create_epilog_for_reduction): Likewise.
10809 (vectorizable_reduction): Likewise.
10810 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10811 * tree-vect-stmts.c (vectorizable_load): Likewise.
10813 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10815 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10817 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10819 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10820 handling for PLTOFF/GOTOFF.
10822 2011-03-22 Nick Clifton <nickc@redhat.com>
10824 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10825 trailing backslash from the end of the macro definition.
10827 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10829 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10832 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10834 * expr.h (prepare_operand): Move to...
10835 * optabs.h (prepare_operand): ...here and change the insn code
10836 parameter from "int" to "enum insn_code".
10837 (insn_operand_matches): Declare.
10838 * expr.c (init_expr_target): Use insn_operand_matches.
10839 (compress_float_constant): Likewise.
10840 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10841 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10842 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10843 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10845 (gen_cond_trap): Likewise.
10846 (prepare_operand): Likewise. Change icode to an insn_code.
10847 (insn_operand_matches): New function.
10848 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10849 * reload1.c (gen_reload): Likewise.
10850 * targhooks.c (default_secondary_reload): Likewise.
10852 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10854 * config/alpha/alpha.md (unspec): New define_c_enum.
10857 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10860 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10861 between a call and its CALL_ARG_LOCATION note.
10863 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10865 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10867 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10871 * c-common.c (shorten_compare): If primopN is first sign-extended
10872 to opN and then zero-extended to result type, set primopN to opN.
10874 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10876 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10877 for barrier handlers.
10879 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10881 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10882 UNSPEC constants to be in the unspec enumeration, and redefine
10883 all UNSPECV constants to be in the unspecv enumeration, so that
10884 dumps print which unspec/unspec_volatile this is.
10885 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10886 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10887 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10888 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10889 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10891 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10892 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10893 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10894 * config/rs6000/sync.md (isync, lwsync): Ditto.
10896 2011-03-21 Richard Guenther <rguenther@suse.de>
10898 * params.def (lto-min-partition): Fix typo.
10900 2011-03-21 Richard Guenther <rguenther@suse.de>
10903 * c-decl.c (grokdeclarator): Drop to the main variant only
10904 for array types. Drop flag_gen_aux_info check.
10906 2011-03-21 Richard Guenther <rguenther@suse.de>
10908 PR translation/47911
10909 * params.def (lto-partitions): Fix typo.
10910 (lto-min-partition): Fix wording.
10912 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10914 * config/rs6000/t-freebsd: Remove duplication from file.
10916 2011-03-21 Richard Guenther <rguenther@suse.de>
10918 PR middle-end/47661
10919 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10921 2011-03-21 Richard Guenther <rguenther@suse.de>
10924 * params.def (lto-partitions): Require at least 1 partition.
10926 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10928 * gthr-solaris.h: Remove.
10929 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10930 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10931 (LIB_SPEC): Likewise.
10932 * config/sol2.opt (threads): Remove.
10933 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10934 (sparc*-*-solaris2*): Likewise.
10935 * configure.ac (enable_threads): Enable solaris support.
10936 * configure: Regenerate.
10937 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10938 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10941 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10943 * config.gcc: Obsolete *-*-solaris2.8*.
10944 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10946 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10949 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10950 reference. Solaris 8 perl works.
10952 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10955 * doc/install.texi (Prerequisites): Move jar etc. up.
10956 Explain support library version requirements.
10958 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10961 * doc/install.texi (Prerequisites): Move Perl to build
10962 requirements. Always necessary on Solaris 2 with Sun ld.
10964 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10966 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10968 (Specific, i?86-*-solaris2.[89]): Likewise.
10969 (Specific, i?86-*-solaris2.10): Likewise.
10970 (Specific, mips-sgi-irix6): Likewise.
10971 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10972 Update for binutils 2.21.
10974 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10976 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10977 Allow -fuse-linker-plugin for non-default plugin linker.
10978 * configure: Regenerate.
10980 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10983 * gengtype.c (files_rules): Added rule for cp/parser.h.
10985 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10988 * config/s390/s390.c (s390_delegitimize_address): Don't call
10989 lowpart_subreg if orig_x has BLKmode.
10991 2011-03-21 Kai Tietz <ktietz@redhat.com>
10994 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10995 * tree.h (attribute_spec): Add new member affects_type_identity.
10996 * attribs.c (empty_attribute_table): Adjust attribute_spec
10998 * config/alpha/alpha.c: Likewise.
10999 * config/arc/arc.c: Likewise.
11000 * config/arm/arm.c: Likewise.
11001 * config/avr/avr.c: Likewise.
11002 * config/bfin/bfin.c: Likewise.
11003 * config/crx/crx.c: Likewise.
11004 * config/darwin.h: Likewise.
11005 * config/h8300/h8300.c: Likewise.
11006 * config/i386/cygming.h: Likewise.
11007 * config/i386/i386.c: Likewise.
11008 * config/ia64/ia64.c: Likewise.
11009 * config/m32c/m32c.c: Likewise.
11010 * config/m32r/m32r.c: Likewise.
11011 * config/m68hc11/m68hc11.c: Likewise.
11012 * config/m68k/m68k.c: Likewise.
11013 * config/mcore/mcore.c: Likewise.
11014 * config/mep/mep.c: Likewise.
11015 * config/microblaze/microblaze.c: Likewise.
11016 * config/mips/mips.c: Likewise.
11017 * config/rs6000/rs6000.c: Likewise.
11018 * config/rx/rx.c: Likewise.
11019 * config/sh/sh.c: Likewise.
11020 * config/sol2.h: Likewise.
11021 * config/sparc/sparc.c: Likewise.
11022 * config/spu/spu.c: Likewise.
11023 * config/stormy16/stormy16.c: Likewise.
11024 * config/v850/v850.c: Likewise.
11026 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11028 * simplify-rtx.c (simplify_binary_operation_1): Handle
11029 (xor (and A B) C) case when B and C are both constants.
11031 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11033 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11035 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11038 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11040 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11042 PR rtl-optimization/48156
11043 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11044 assume df and df_lr are not NULL.
11046 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11049 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11050 between a call and its CALL_ARG_LOCATION note.
11052 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11055 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11056 between a call and its corresponding CALL_ARG_LOCATION note.
11058 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11060 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11061 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11062 * haifa-sched.c (setup_ref_regs): Ditto.
11063 * caller-save.c (add_used_regs_1): Ditto.
11064 * dse.c (look_for_hardregs): Ditto.
11065 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11066 * sched-rgn.c (check_live_1): Ditto.
11068 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11070 * c-decl.c (diagnose_mismatched_decls): Give an error for
11071 redefining a typedef with variably modified type.
11073 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11075 * c-decl.c (grokfield): Don't allow typedefs for structures or
11076 unions with no tag by default.
11077 * doc/extend.texi (Unnamed Fields): Update.
11079 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11081 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11082 Rewrite using indirect functions.
11083 (lwp_slwpcb): Ditto.
11084 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11085 (avx_vinsertf128<mode>): Ditto.
11087 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11089 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11092 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11094 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11095 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11097 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11099 PR rtl-optimization/48170
11100 * gcse.c (hoist_code): Remove bogus asserts.
11102 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11104 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11105 computation for prologue/epilogue.
11107 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11109 * Makefile.in (check-consistency): Remove.
11111 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11114 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11115 arange_table_in_use is 0, but either text_section_used or
11116 cold_text_section_used is true. Don't call it if
11117 !info_section_emitted.
11119 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11121 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11122 FUNCTION_VALUE_REGNO_P): Remove.
11123 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11125 * config/avr/avr.c (avr_ret_register): Make static inline.
11126 (avr_function_value_regno_p): New function.
11127 (avr_libcall_value): Make static. Add 'func' argument.
11128 (avr_function_value): Make static. Rename 'func' argument to
11129 'fn_decl_or_type', forward it to avr_libcall_value. Call
11130 avr_ret_register function instead of RET_REGISTER macro.
11131 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11133 2011-03-18 Jason Merrill <jason@redhat.com>
11136 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11138 2011-03-18 Richard Guenther <rguenther@suse.de>
11140 * doc/install.texi (--enable-gold): Remove.
11141 (--with-plugin-ld): Document.
11142 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11144 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11146 PR middle-end/47790
11147 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11148 again after expansion changes.
11150 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11152 * combine.c (try_combine): Do simplification only call of
11153 subst() on i2 even when i1 is present. Update comments.
11155 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11157 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11158 and UNSPEC_PCREL_SYMOFF.
11160 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11162 * config/s390/s390.md: Use define_c_enum for the unspec constant
11165 2011-03-18 Richard Henderson <rth@redhat.com>
11166 Jakub Jelinek <jakub@redhat.com>
11169 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11170 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11172 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11174 PR middle-end/47725
11175 * combine.c (cant_combine_insn_p): Don't check zero/sign
11176 extended hard registers.
11178 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11180 PR middle-end/47725
11181 * combine.c (cant_combine_insn_p): Check zero/sign extended
11184 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11186 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11187 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11188 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11189 Change return type to bool.
11190 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11192 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11195 * var-tracking.c (prepare_call_arguments): If CALL target
11196 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11197 pc instead of looking it up using cselib_lookup and use
11198 Pmode for it if x has VOIDmode.
11199 * dwarf2out.c (gen_subprogram_die): If also both first and
11200 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11203 * function.c (assign_parms): For data.passed_pointer parms
11204 use MEM of data.entry_parm instead of data.entry_parm itself
11205 as DECL_INCOMING_RTL.
11206 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11207 also when passed and declared mode is the same, DECL_RTL
11208 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11211 2011-03-16 Jeff Law <law@redhat.com>
11213 PR rtl-optimization/37273
11214 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11215 handle them like argument loads from stack slots. Do not double
11216 count memory for memory constants and argument loads from stack slots.
11218 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11221 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11223 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11226 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11228 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11231 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11233 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11234 Clear call_arg_locations and call_arg_loc_last always.
11236 PR middle-end/48152
11237 * var-tracking.c (prepare_call_arguments): If argument needs to be
11238 passed by reference, adjust argtype and mode.
11240 2011-03-17 Richard Guenther <rguenther@suse.de>
11242 PR middle-end/48134
11243 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11244 a value make sure to fold the statement.
11246 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11249 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11250 return condition with !cfun->calls_alloca.
11252 2011-03-17 Richard Guenther <rguenther@suse.de>
11255 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11256 origin for decls in other ltrans units.
11257 (input_varpool_node): Likewise.
11259 2011-03-17 Richard Guenther <rguenther@suse.de>
11261 PR middle-end/48165
11262 * tree-object-size.c (compute_object_offset): Properly return
11263 the offset operand of MEM_REFs as sizetype.
11265 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11267 PR rtl-optimization/48141
11268 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11269 * dse.c: Include params.h.
11270 (active_local_stores_len): New variable.
11271 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11273 (record_store, check_mem_read_rtx): Decrease it when removing
11275 (scan_insn): Likewise. Increase it when adding to chain, if it
11276 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11277 set active_local_stores to NULL before the addition.
11278 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11280 PR rtl-optimization/48141
11281 * dse.c (record_store): If no positions are needed in an insn
11282 that cannot be deleted, at least unchain it from active_local_stores.
11284 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11287 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11288 (lookup_type_die_strip_naming_typedef): ... here.
11289 (get_context_die): Use it.
11290 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11291 the anonymous struct named by the naming typedef.
11293 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11296 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11297 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11299 2011-03-16 Jeff Law <law@redhat.com>
11301 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11302 check for operands of conditional. Allow type to be a pointer.
11304 2011-03-16 Richard Guenther <rguenther@suse.de>
11306 PR tree-optimization/48149
11307 * fold-const.c (fold_binary_loc): Fold
11308 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11310 2011-03-16 Richard Guenther <rguenther@suse.de>
11312 PR tree-optimization/26134
11313 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11314 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11315 (non_rewritable_mem_ref_base): Handle complex type component
11316 accesses, constrain offsets for vector and complex extracts
11319 2011-03-16 Richard Guenther <rguenther@suse.de>
11321 PR tree-optimization/48146
11322 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11323 operands avoiding the need for renaming.
11325 2011-03-16 Richard Guenther <rguenther@suse.de>
11327 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11328 constant folding. Move MEM_REF canonicalization first.
11329 Rely on fold_const_aggregate_ref for initializer folding.
11330 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11332 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11334 PR middle-end/48136
11335 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11336 arg0/arg1 or their arguments are always fold converted to matching
11339 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11342 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11345 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11346 Handle in-tree gold.
11347 (ld_vers): Extract binutils version for gold.
11348 (gcc_cv_ld_hidden): Handle gold here.
11349 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11350 * configure: Regenerate.
11351 * config.in: Regenerate.
11352 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11353 -fuse-linker-plugin otherwise.
11354 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11355 (LINK_COMMAND_SPEC): Use it.
11356 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11358 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11360 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11361 * calls.c: Remove debug.h include.
11362 (emit_call_1): Don't call virtual_call_token debug hook.
11363 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11364 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11365 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11366 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11367 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11368 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11369 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11370 dwarf2out_virtual_call): Remove.
11371 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11372 copy_call_info and virtual_call hooks.
11373 (dwarf2out_init): Don't initialize vcall_insn_table,
11374 debug_dcall_section and debug_vcall_section.
11375 (prune_unused_types): Don't mark nodes from dcall_table.
11376 (dwarf2out_finish): Don't output dcall or vcall tables.
11377 * final.c (final_scan_insn): Don't call direct_call or
11378 virtual_call debug hooks.
11379 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11380 virtual_call_token, copy_call_info and virtual_call hooks.
11381 (debug_nothing_uid): Remove prototype.
11382 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11383 copy_call_info and virtual_call hooks.
11384 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11385 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11386 * debug.c (do_nothing_debug_hooks): Likewise.
11387 (debug_nothing_uid): Remove.
11388 * doc/invoke.texi (-fenable-icf-debug): Remove.
11389 * common.opt (-fenable-icf-debug): Likewise.
11391 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11392 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11393 call's MEM. Handle functions returning aggregate through a hidden
11394 first pointer. For virtual calls add clobbered pc to call arguments
11396 * dwarf2out.c (gen_subprogram_die): Emit
11397 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11401 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11402 * rtl.h (ENTRY_VALUE_EXP): Define.
11403 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11404 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11405 * print-rtl.c (print_rtx): Likewise.
11406 * gengtype.c (adjust_field_rtx_def): Likewise.
11407 * var-tracking.c (vt_add_function_parameter): Adjust
11408 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11409 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11410 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11411 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11412 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11414 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11415 Call var_location debug hook even on CALL_INSNs.
11416 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11417 * rtl.def (ENTRY_VALUE): New.
11418 * dwarf2out.c: Include cfglayout.h.
11419 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11420 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11421 (struct call_arg_loc_node): New type.
11422 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11423 tail_call_site_count): New variables.
11424 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11425 DW_TAG_GNU_call_site_parameter.
11426 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11427 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11428 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11429 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11430 and DW_AT_GNU_all_source_call_sites.
11431 (mem_loc_descriptor): Handle ENTRY_VALUE.
11432 (add_src_coords_attributes): Don't add enything if
11433 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11434 (dwarf2out_abstract_function): Save and clear call_arg_location,
11435 call_site_count and tail_call_site_count around dwarf2out_decl call.
11436 (gen_call_site_die): New function.
11437 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11438 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11439 (dwarf2out_function_decl): Clear call_arg_locations,
11440 call_arg_loc_last, set call_site_count and tail_call_site_count
11441 to -1 and free block_map.
11442 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11443 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11444 followed by any real instructions.
11445 (dwarf2out_begin_function): Set call_site_count and
11446 tail_call_site_count to 0.
11447 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11448 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11449 attempt to force a DIE for it and worst case remove the attribute.
11450 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11451 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11453 * var-tracking.c: Include tm_p.h.
11454 (vt_stack_adjustments): For calls call note_register_arguments.
11455 (argument_reg_set): New variable.
11456 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11457 ensure the VALUE is resolved.
11458 (call_arguments): New variable.
11459 (prepare_call_arguments): New function.
11460 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11461 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11462 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11463 always use the best expression.
11464 (vt_expand_loc): Add ignore_cur_loc argument.
11465 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11466 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11467 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11468 note for all calls.
11469 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11470 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11471 argument. Don't call cselib_preserve_only_values and
11472 cselib_reset_table.
11473 (note_register_arguments): New function.
11474 (vt_initialize): Compute argument_reg_set. Call
11475 vt_add_function_parameters before processing basic blocks instead of
11476 afterwards. For calls call prepare_call_arguments before calling
11477 cselib_process_insn.
11478 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11479 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11480 (var-tracking.o): Depend on $(TM_P_H).
11481 * cfglayout.h (insn_scope): New prototype.
11482 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11483 * cfglayout.c (insn_scope): No longer static.
11484 * insn-notes.def (CALL_ARG_LOCATION): New.
11485 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11486 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11487 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11488 nothing for DECL_EXTERNAL BLOCK_VARS.
11490 2011-03-16 Alan Modra <amodra@gmail.com>
11493 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11494 create invalid offset address for vsx splat insn.
11495 * config/rs6000/predicates.md (splat_input_operand): New.
11496 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11498 2011-03-15 Xinliang David Li <davidxl@google.com>
11501 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11502 (normalize_preds): New function.
11503 (is_use_properly_guarded): Normalize def predicates.
11505 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11508 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11509 in the output template.
11511 2011-03-15 Richard Guenther <rguenther@suse.de>
11513 PR middle-end/47650
11514 * tree-pretty-print.c (dump_function_declaration): Properly
11515 dump unprototyped and varargs function types.
11517 2011-03-15 Richard Guenther <rguenther@suse.de>
11519 PR tree-optimization/13954
11520 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11523 2011-03-15 Richard Guenther <rguenther@suse.de>
11525 PR tree-optimization/48037
11526 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11527 selects into BIT_FIELD_REFs.
11528 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11531 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11533 PR tree-optimization/48129
11534 * builtins.c (fold_builtin_snprintf): Convert to type of
11535 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11536 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11538 2011-03-15 Richard Guenther <rguenther@suse.de>
11540 PR tree-optimization/41490
11541 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11542 value but with VUSE.
11543 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11545 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11546 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11547 * tree-tailcall.c (find_tail_calls): Ignore returns.
11549 2011-03-15 Richard Guenther <rguenther@suse.de>
11551 PR middle-end/48031
11552 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11553 or variable-indexed array accesses when in gimple form.
11555 2011-03-15 Richard Guenther <rguenther@suse.de>
11557 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11559 2011-03-15 Alan Modra <amodra@gmail.com>
11562 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11563 presume symbol_refs without a symbol_ref_decl are suitably
11564 aligned, nor other trees we may see here. Handle anchor symbols.
11565 (legitimate_constant_pool_address_p): Comment. Add mode param.
11566 Check cmodel=medium addresses. Adjust all calls.
11567 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11568 creating cmodel=medium optimized access to locals.
11569 * config/rs6000/constraints.md (R): Pass QImode to
11570 legitimate_constant_pool_address_p.
11571 * config/rs6000/predicates.md (input_operand): Pass mode to
11572 legitimate_constant_pool_address_p.
11573 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11576 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11579 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11580 64-bit constants being loaded into registers other than GPRs such
11581 as loading 0 into a VSX register.
11583 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11585 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11587 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11589 PR middle-end/47917
11590 * builtins.c (fold_builtin_snprintf): New function.
11591 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11592 (fold_builtin_4): Likewise.
11594 PR middle-end/38878
11595 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11596 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11597 and C - X == X also strip nops from +/-/p+ operand.
11598 When optimizing -X == C, fold C to arg0's type.
11601 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11602 emit it as add_AT_int instead of add_AT_unsigned.
11604 2011-03-14 Tom Tromey <tromey@redhat.com>
11606 * unwind-dw2.c: Include sys/sdt.h if it exists.
11607 (_Unwind_DebugHook): Use STAP_PROBE2.
11608 * config.in, configure: Rebuild.
11609 * configure.ac: Check for sys/sdt.h.
11611 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11613 * config/i386/i386.md (ROUND_FLOOR): New constant.
11614 (ROUND_CEIL): Ditto.
11615 (ROUND_TRUNC): Ditto.
11616 (ROUND_MXCSR): Ditto.
11617 (ROUND_NO_EXC): Ditto.
11618 (rint<mode>2): Use new defines instead of numerical constants.
11619 (floor<mode>2): Ditto.
11620 (ceil<mode>2): Ditto.
11621 (btrunc<mode>2): Ditto.
11622 * config/i386/i386-builtin-types.def: Define ROUND function type
11624 * config/i386/i386.c (enum ix86_builtins): Add
11625 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11626 (struct builtin_description): Add
11627 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11628 (ix86_expand_sse_round): New static function.
11629 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11631 (ix86_builtin_vectorized_function): Handle
11632 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11634 2011-03-14 Tom Tromey <tromey@redhat.com>
11636 * c-parser.c (c_parser_asm_string_literal): Clear
11637 warn_overlength_strings.
11639 2011-03-14 Tom Tromey <tromey@redhat.com>
11641 * c-parser.c (disable_extension_diagnostics): Save
11642 warn_overlength_strings.
11643 (restore_extension_diagnostics): Restore warn_overlength_strings.
11645 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11647 * BASE-VER: Change to 4.7.0.
11649 2011-03-14 Richard Guenther <rguenther@suse.de>
11651 PR middle-end/48098
11652 * tree.c (build_vector_from_val): Adjust assert to requirements
11655 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11658 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11660 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11662 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11663 terms of target_flags_explicit. Adjust copyright year.
11665 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11666 * config/rs6000/t-freebsd: New file. Add override for
11669 2011-03-13 Chris Demetriou <cgd@google.com>
11671 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11672 (-fno-diagnostics-show-option): this, to reflect current default.
11673 (-Werror=): Update text about -fno-diagnostics-show-option.
11675 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11678 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11679 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11680 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11681 mode is not V2DImode or V2DFmode.
11682 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11683 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11684 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11686 (movdi_internal64): Likewise.
11688 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11690 PR tree-optimization/47127
11691 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11693 (set_cloog_options): Same.
11694 (scop_to_clast): Same.
11695 (print_clast_stmt): Do not call cloog_state_malloc and
11697 (print_generated_program): Same.
11699 * graphite-clast-to-gimple.h (cloog_state): Declared.
11700 (scop_to_clast): Adjust declaration.
11701 * graphite.c (cloog_state): Defined here.
11702 (graphite_initialize): Call cloog_state_malloc.
11703 (graphite_finalize): Call cloog_state_free.
11705 2011-03-11 Jason Merrill <jason@redhat.com>
11707 * attribs.c (lookup_attribute_spec): Take const_tree.
11710 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11712 * config/sparc/sparc.c (sparc_option_override): Use
11713 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11715 2011-03-11 Richard Guenther <rguenther@suse.de>
11717 PR tree-optimization/48067
11718 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11719 multiplication result will be only used once on the target
11722 2011-03-11 Richard Guenther <rguenther@suse.de>
11724 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11726 2011-03-11 Richard Guenther <rguenther@suse.de>
11729 * tree.c (find_decls_types_r): Do not walk types only reachable
11730 from IDENTIFIER_NODEs.
11732 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11734 PR middle-end/48044
11735 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11736 all vnode->force_output nodes as needed.
11738 2011-03-11 Jason Merrill <jason@redhat.com>
11741 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11742 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11744 2011-03-11 Martin Jambor <mjambor@suse.cz>
11746 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11749 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11751 PR tree-optimization/48063
11752 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11753 inline functions called once if !tree_can_inline_p (node->callers).
11755 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11757 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11759 * config/score/score3.c: Delete.
11760 * config/score/score3.h: Delete.
11761 * config/score/mul-div.S: Delete.
11762 * config/score/sfp-machine.h: Add new file.
11763 * config/score/constraints.md: Add new file.
11764 * config/score/t-score-softfp: Add new file.
11765 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11766 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11767 (score7_extra_constraint): Delete.
11768 (score7_option_override): Remove unused code.
11769 * config/score/score.c: Remove score3 and score5 define and code.
11770 * config/score/score.h: Remove score3 and score5 define and code.
11771 * config/score/score.md: Remove score3 template and unusual insn.
11772 * config/score/score.opt: Remove score3 and score5 options.
11774 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11776 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11777 when _HPUX_SOURCE is defined.
11778 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11780 2011-03-10 Jason Merrill <jason@redhat.com>
11783 * stor-layout.c (layout_type): Don't set structural equality
11784 on arrays of incomplete type.
11785 * tree.c (type_hash_eq): Handle comparing them properly.
11787 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11790 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11791 result mode matches original rtl mode.
11793 2011-03-10 Nick Clifton <nickc@redhat.com>
11795 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11796 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11798 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11800 PR rtl-optimization/47866
11801 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11802 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11803 if target wasn't scalar.
11804 * function.c (assign_stack_temp_for_type): Assert that neither
11805 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11806 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11808 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11810 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11812 * config/s390/s390-protos.h (s390_label_align): New prototype.
11813 * config/s390/s390.c (s390_label_align): New function.
11814 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11816 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11819 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11820 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11821 (output_vec_const_move): Ditto.
11823 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11825 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11826 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11827 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11828 Change 'rclass' argument and result type to reg_class_t.
11829 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11831 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11833 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11834 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11835 (TARGET_MEMORY_MOVE_COST): Define.
11836 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11838 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11841 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11844 PR tree-optimization/48022
11845 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11848 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11851 * var-tracking.c (find_use_val): Return NULL for
11852 cui->sets && cui->store_p BLKmode MEMs.
11854 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11856 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11858 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11859 xstormy16_print_operand_address): Remove.
11860 * config/stormy16/stormy16.c (xstormy16_print_operand,
11861 xstormy16_print_operand_address): Make static.
11862 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11864 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11867 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11868 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11871 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11874 * cfgloopmanip.c (fix_bb_placements): Return immediately
11875 if FROM is BASE_LOOP's header.
11877 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11879 * gimplify.c (gimplify_function_tree): Fix building calls
11880 to __builtin_return_address.
11882 2011-03-07 Alan Modra <amodra@gmail.com>
11884 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11885 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11886 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11887 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11889 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11890 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11891 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11892 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11893 * config/rs6000/rs6000.c
11894 (rs6000_elf_end_indicate_exec_stack): Rename to..
11895 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11896 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11897 (rs6000_file_start): ..here.
11898 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11899 file scope variables.
11900 (call_ABI_of_interest): New function.
11901 (init_cumulative_args): Set above vars when function return value
11902 is a float, vector, or small struct.
11903 (rs6000_function_arg_advance_1): Likewise for function args.
11904 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11905 references float args.
11907 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11909 * doc/cfg.texi: Remove "See" before @ref.
11910 * doc/invoke.texi: Likewise.
11912 2011-03-05 Jason Merrill <jason@redhat.com>
11914 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11916 2011-03-05 Anthony Green <green@moxielogic.com>
11918 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11920 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11922 PR rtl-optimization/47899
11923 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11924 to flow_loop_nested_p when moving the loop upward.
11926 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11929 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11931 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11933 PR tree-optimization/47967
11934 * ipa-cp.c (build_const_val): Return NULL instead of creating
11935 VIEW_CONVERT_EXPR for mismatching sizes.
11936 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11937 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11938 give up on versioning.
11940 2011-03-05 Alan Modra <amodra@gmail.com>
11943 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11944 full cmodel medium/large lo_sum + high addresses.
11946 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11948 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11949 pool references in UNSPEC_LTREL_OFFSET.
11951 2011-03-04 Jan Hubicka <jh@suse.cz>
11954 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11955 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11956 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11958 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11959 cgraph_add_thunk): Add node pointers.
11960 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11961 associated to right node.
11962 (input_node): Update use of cgraph_same_body_alias
11963 and cgraph_add_thunk.
11965 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11967 * config/i386/i386.opt (mprefer-avx128): New flag.
11968 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11969 modes when the flag -mprefer-avx128 is on.
11971 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11973 * dwarf2out.c (compare_loc_operands): Fix address handling.
11975 2011-03-04 Alan Modra <amodra@gmail.com>
11977 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11979 2011-03-04 Richard Guenther <rguenther@suse.de>
11981 PR middle-end/47968
11982 * expmed.c (extract_bit_field_1): Prefer vector modes that
11983 vec_extract patterns can handle.
11985 2011-03-04 Richard Guenther <rguenther@suse.de>
11987 PR middle-end/47975
11988 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11990 2011-03-04 Richard Henderson <rth@redhat.com>
11992 * explow.c (emit_stack_save): Remove 'after' parameter.
11993 (emit_stack_restore): Likewise.
11994 * expr.h: Update to match.
11995 * builtins.c, calls.c, stmt.c: Likewise.
11996 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11997 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11998 * function.c (expand_function_end): Insert the emit_stack_save
11999 sequence before parm_birth_insn instead of after.
12001 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12003 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12004 (ssse3_pmaddubsw128): Ditto.
12005 (ssse3_pmaddubsw): Ditto.
12007 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12009 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12011 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12014 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12015 on TYPE_SIZE_UNIT if it is a DECL.
12018 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12019 first operand is not is_gimple_mem_ref_addr, try to fold it.
12020 If the operand still isn't is_gimple_mem_ref_addr, clear
12023 2011-03-03 Richard Guenther <rguenther@suse.de>
12025 PR middle-end/47283
12026 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12028 (refs_may_alias_p_1): For release branches return true if
12029 we are confused by our input.
12031 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12033 * config/s390/s390.c (s390_function_value): Rename to ...
12034 (s390_function_and_libcall_value): ... this.
12035 (s390_function_value): New function.
12036 (s390_libcall_value): New function.
12037 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12038 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12039 target macro definitions.
12040 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12042 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12044 * config/i386/freebsd64.h (CC1_SPEC): Define.
12045 * config/i386/linux64.h (CC1_SPEC): Define.
12046 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12048 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12050 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12052 * config/stormy16/stormy16.c: Include reload.h.
12053 (xstormy16_memory_move_cost): New function.
12054 (TARGET_MEMORY_MOVE_COST): Define.
12056 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12058 PR rtl-optimization/47925
12059 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12060 with side effects. Remove the more-specific check for volatile asms.
12062 2011-03-02 Alan Modra <amodra@gmail.com>
12065 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12066 toc relative addresses for valid offsets.
12068 2011-03-01 Richard Guenther <rguenther@suse.de>
12070 PR tree-optimization/47890
12071 * tree-vect-loop.c (get_initial_def_for_induction): Set
12072 related stmt properly.
12074 2011-03-01 Richard Guenther <rguenther@suse.de>
12077 * lto-streamer.c (lto_record_common_node): Also register
12078 the canonical type.
12080 2011-03-01 Richard Guenther <rguenther@suse.de>
12083 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12084 Do not stream DECL_ABSTRACT_ORIGIN.
12085 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12086 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12087 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12088 Do not stream DECL_ABSTRACT_ORIGIN.
12089 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12090 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12092 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12094 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12095 FUNCTION_VALUE_REGNO_P): Remove.
12096 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12097 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12098 Add 'outgoing' argument.
12099 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12101 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12102 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12104 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12107 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12108 (lookup_filename): Likewise.
12109 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12111 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12112 Jakub Jelinek <jakub@redhat.com>
12114 PR middle-end/47893
12115 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12116 (assign_stack_local_1): Change last argument type to int.
12117 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12118 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12119 don't record padding space into frame_space_list nor use those areas.
12120 (assign_stack_local): Adjust caller.
12121 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12122 of assign_stack_local, pass 0 as last argument.
12123 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12126 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12129 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12130 Use target address_mode and pointer_mode hooks instead of hardcoded
12131 Pmode and ptr_mode. Handle some simple cases of extending if
12132 POINTERS_EXTEND_UNSIGNED < 0.
12133 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12134 Call convert_debug_memory_address.
12135 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12136 convert_debug_memory_address.
12138 PR middle-end/46790
12139 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12140 * configure: Regenerated.
12141 * config.in: Regenerated.
12142 * varasm.c (default_function_section): Return NULL
12143 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12145 2011-02-28 Martin Jambor <mjambor@suse.cz>
12147 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12148 the description to match the printed values.
12150 2011-02-28 Richard Guenther <rguenther@suse.de>
12152 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12153 of the copied scope tree.
12155 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12157 * doc/extend.texi (Function Attributes): Avoid deeply (and
12158 wrongly) nested tables.
12160 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12162 PR middle-end/47903
12163 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12164 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12165 r isn't op0 nor op1.
12167 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12169 * config/avr/avr.md: Remove magic comment for emacs.
12171 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12174 * config/avr/avr.c (avr_option_override): Use error on bad options.
12175 (avr_help): New function.
12176 (TARGET_HELP): Define.
12178 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12181 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12182 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12184 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12186 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12187 (ARM Options): Ditto.
12188 (i386 and x86-64 Options): Ditto.
12189 (RX Options): Ditto.
12190 (SPARC Options): Ditto.
12192 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12194 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12195 FreeBSD 6 and later. Generally use cpu generic.
12197 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12199 * doc/cpp.texi: Update copyright years.
12201 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12204 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12206 2011-02-25 Jon Beniston <jon@beniston.com>
12209 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12210 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12211 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12212 (lm32_block_move_inline): Add type cast to remove warning.
12213 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12214 (gen_int_relational): Move declarations to start of function.
12216 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12218 PR tree-optimization/45470
12219 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12220 can throw internally only.
12221 * tree-vect-stmts.c (vectorizable_call): Likewise.
12223 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12225 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12226 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12227 * config/stormy16/stormy16-protos.h
12228 (xstormy16_preferred_reload_class): Remove.
12229 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12230 static. Change 'rclass' argument and return type to reg_class_t.
12231 (TARGET_PREFERRED_RELOAD_CLASS,
12232 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12234 2011-02-24 Richard Guenther <rguenther@suse.de>
12236 * lto-streamer-in.c (input_bb): Do not find referenced vars
12237 in debug statements.
12239 2011-02-23 Jason Merrill <jason@redhat.com>
12241 * common.opt (fabi-version): Document v5 and v6.
12243 2011-02-23 Richard Guenther <rguenther@suse.de>
12245 PR tree-optimization/47849
12246 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12248 2011-02-23 Jie Zhang <jie@codesourcery.com>
12250 * opts-common.c (decode_cmdline_option): Print empty string
12251 argument as "" in decoded->orig_option_with_args_text.
12252 * gcc.c (execute): Print empty string argument as ""
12253 in the verbose output.
12254 (do_spec_1): Keep empty string argument.
12256 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12258 * config.gcc: Declare score-* and crx-* obsolete.
12260 2011-02-23 Jie Zhang <jie@codesourcery.com>
12262 PR rtl-optimization/47763
12263 * web.c (web_main): Ignore naked clobber when replacing register.
12265 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12267 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12270 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12273 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12275 2011-02-22 Mike Stump <mikestump@comcast.net>
12277 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12279 * configure: Regenerate.
12281 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12283 PR rtl-optimization/46002
12284 * ira-color.c (update_copy_costs): Change class intersection
12285 test to reg_class_contents[] test of 'hard_regno'.
12287 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12289 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12290 than Driver option.
12291 * config/hpux11.opt (mt): Likewise.
12292 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12293 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12294 * config/vax/elf.opt (mno-asm-pic): Likewise.
12295 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12297 2011-02-21 Mike Stump <mikestump@comcast.net>
12300 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12301 tree so we can get save the type.
12302 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12303 for CFString instead of trying to use past the end of the builtins.
12304 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12305 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12306 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12307 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12308 Rename to darwin_builtin_cfstring.
12309 (darwin_init_cfstring_builtins): Return the built type.
12311 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12314 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12315 (_mm256_insert_epi64): Use _mm_insert_epi64.
12317 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12319 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12320 * config/stormy16/stormy16-protos.h
12321 (xstormy16_mode_dependent_address_p): Remove.
12322 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12323 Make static. Change return type to bool. Change argument type to
12324 const_rtx. Remove dead code.
12325 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12327 2011-02-21 Richard Guenther <rguenther@suse.de>
12330 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12331 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12332 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12334 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12335 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12337 2011-02-20 Richard Guenther <rguenther@suse.de>
12340 * tree.c (free_lang_data_in_decl): Clean builtins from
12341 the TU decl BLOCK_VARS.
12343 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12347 * haifa-sched.c (fix_tick_ready): Skip tick computation
12350 2011-02-19 Richard Guenther <rguenther@suse.de>
12353 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12354 Remove lazy BLOCK_VARS streaming.
12355 (lto_input_ts_block_tree_pointers): Likewise.
12356 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12358 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12360 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12362 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12364 * config/i386/biarch32.h, config/i386/mach.h,
12365 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12367 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12370 * config/i386/i386.md (peephole2 for shift and plus): Use
12371 operands[1] original mode in the first insn.
12373 2011-02-18 Mike Stump <mikestump@comcast.net>
12375 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12377 2011-02-18 Jan Hubicka <jh@suse.cz>
12379 PR middle-end/47788
12380 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12381 to zero when the function is not inlinable at all.
12383 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12385 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12386 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12387 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12388 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12389 * config/pa/t-pa64: Likewise.
12390 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12392 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12395 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12397 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12400 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12402 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12404 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12405 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12406 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12407 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12408 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12409 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12410 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12411 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12412 m32r_legitimate_address_p): New functions.
12413 * config/m32r/constraints.md (constraint "S"): Don't use
12414 STORE_PREINC_PREDEC_P.
12415 (constraint "U"): Don't use LOAD_POSTINC_P.
12417 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12419 PR rtl-optimization/46178
12420 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12421 compute ira_hard_regno_cover_class[].
12423 2011-02-18 Richard Guenther <rguenther@suse.de>
12426 * lto-streamer.h (lto_global_var_decls): Declare.
12427 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12428 statics for global var processing.
12430 2011-02-18 Richard Guenther <rguenther@suse.de>
12432 PR tree-optimization/47737
12433 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12434 edge dominance check.
12436 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12439 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12440 avoid invalid rtx sharing.
12442 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12444 * doc/cpp.texi (Obsolete Features): Add background on the
12445 origin of assertions.
12447 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12449 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12451 * config/darwin.c (output_objc_section_asm_op): Added support for
12453 (is_objc_metadata): New.
12454 (darwin_objc2_section): New.
12455 (darwin_objc1_section): New.
12456 (machopic_select_section): Added support for ABI v1 and v2.
12457 (darwin_emit_objc_zeroed): New.
12458 (darwin_output_aligned_bss): Detect objc metadata and treat it
12460 (darwin_asm_output_aligned_decl_common): Same.
12461 (darwin_asm_output_aligned_decl_local): Same.
12462 * config/darwin-sections.def: Updated for ABI v1 and v2.
12463 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12464 compiling Objective-C code for the NeXT runtime, default to using
12465 ABI version 0 for 32-bit, and version 2 for 64-bit.
12467 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12469 * common.opt (optimize_fast): New Variable.
12470 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12471 instead of local variable ofast.
12473 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12475 * doc/invoke.texi (fobjc-abi-version): Documented.
12476 (fobjc-nilcheck): Documented.
12477 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12480 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12483 * common.opt (export-dynamic): New Driver option.
12484 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12486 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12488 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12490 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12491 Jan Hubicka <jh@suse.cz>
12495 * cfgexpand.c (account_used_vars_for_block): Remove.
12496 (estimated_stack_frame_size): Use referenced vars.
12497 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12498 that were referenced in the original function. Test src_fn
12499 rather than cfun. Drop redundant get_var_ann.
12500 (setup_one_parameter): Drop redundant get_var_ann.
12501 (declare_return_variable): Likewise.
12502 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12503 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12504 * ipa-inline.c (compute_inline_parameters): Do not compute
12505 disregard_inline_limits here.
12506 (compute_inlinable_for_current, pass_inlinable): New.
12507 (pass_inline_parameters): Require PROP_referenced_vars.
12508 * cgraphunit.c (cgraph_process_new_functions): Don't run
12509 compute_inline_parameters explicitly unless function is in SSA form.
12510 (cgraph_analyze_function): Set .disregard_inline_limits.
12511 * tree-sra.c (convert_callers): Compute inliner parameters
12512 only for functions already in SSA form.
12514 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12516 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12517 -mlittle-endian-data.
12519 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12521 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12522 -mno-fpu, not -fpu and -no-fpu.
12523 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12524 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12526 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12529 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12530 input reload with PLUS RTX.
12532 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12534 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12535 of InverseVar(MDMX).
12537 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12539 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12542 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12544 * config/mn10300/mn10300.opt (mno-crt0): New.
12546 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12548 * config/m68k/uclinux.opt (static-libc): New Driver option.
12550 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12552 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12554 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12556 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12557 %{muser-extend-enabled}.
12559 2011-02-16 Richard Guenther <rguenther@suse.de>
12561 PR tree-optimization/47738
12562 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12563 the TODO from tree_predictive_commoning.
12565 2011-02-15 Jeff Law <law@redhat.com>
12568 2011-01-25 Jeff Law <law@redhat.com>
12570 PR rtl-optimization/37273
12571 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12572 handle them like argument loads from stack slots. Do not double
12573 count memory for memory constants and argument loads from stack slots.
12575 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12577 PR middle-end/47725
12578 * combine.c (cant_combine_insn_p): Revert the last change.
12580 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12583 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12584 mode for vector constants. Remove code that checks for TImode.
12586 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12590 * cgraph.h (compute_inline_parameters): Return void.
12591 * ipa-inline.c (compute_inline_parameters): Adjust.
12593 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12597 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12599 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12600 * ipa-inline.c (compute_inline_parameters): Adjust.
12602 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12606 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12607 Adjust all users. Pass FN to...
12608 * tree-flow-inline.h (first_referenced_var): ... this. Add
12610 * ipa-struct-reorg.c: Adjust.
12611 * tree-dfa.c: Adjust.
12612 * tree-into-ssa.c: Adjust.
12613 * tree-sra.c: Adjust.
12614 * tree-ssa-alias.c: Adjust.
12615 * tree-ssa-live.c: Adjust.
12616 * tree-ssa.c: Adjust.
12617 * tree-ssanames.c: Adjust.
12618 * tree-tailcall.c: Adjust.
12620 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12624 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12625 Adjust all callers.
12626 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12627 * tree-flow-inline.h: Adjust.
12628 * gimple-pretty-print.c: Adjust.
12629 * tree-into-ssa.c: Adjust.
12630 * tree-ssa.c: Adjust.
12631 * cfgexpand.c: Adjust.
12633 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12635 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12636 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12637 (EXTRA_CONSTRAINT): Delete.
12638 * config/iq2000/constraints.md: New file.
12639 * config/iq2000/iq2000.md: Include it.
12640 (define_insn ""): Delete.
12641 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12642 unsupported constraint letters from patterns.
12643 (call_value, call_value_internal1): Likewise.
12644 (call_value_multiple_internal1): Likewise.
12646 2011-02-15 Nick Clifton <nickc@redhat.com>
12648 * config/mn10300/mn10300.c: Include tm-constrs.h.
12649 (struct liw_data): New data structure describing an LIW candidate
12651 (extract_bundle): Use struct liw_data. Allow small integer
12652 operands for some instructions.
12653 (check_liw_constraints): Use struct liw_data. Remove swapped
12654 parameter. Add comments describing the checks. Fix bug when
12655 assigning the source of liw1 to the source of liw2.
12656 (liw_candidate): Delete. Code moved into extract_bundle.
12657 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12659 * config/mn10300/predicates.md (liw_operand): New predicate.
12660 Allows registers and small integer constants.
12661 * config/mn10300/constraints.md (O): New constraint. Accetps
12662 integers in the range -8 to +7 inclusive.
12663 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12664 for moving a small integer into a register. Give this alternative
12666 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12667 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12668 using the J,K,L and M constraints,
12669 (liw): Remove SI mode on second operands to allow for HI and QI
12671 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12674 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12676 PR middle-end/47725
12677 * combine.c (cant_combine_insn_p): Check zero/sign extended
12680 2011-02-15 Richard Guenther <rguenther@suse.de>
12682 PR tree-optimization/47743
12683 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12684 for a non-type-compatible VN lookup bail out.
12686 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12688 * config/fr30/constraints.md: New file.
12689 * config/fr30/fr30.md: Include it.
12690 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12691 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12692 (EXTRA_CONSTRAINT): Delete.
12694 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12696 * config/frv/constraints.md: New file.
12697 * config/frv/predicates.md: Include it.
12698 * config/frv/frv.c (reg_class_from_letter): Delete.
12699 (frv_option_override): Don't initialize it.
12700 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12701 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12702 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12703 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12704 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12705 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12706 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12707 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12708 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12709 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12710 (REG_CLASS_FROM_CONSTRAINT): Delete.
12712 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12714 PR middle-end/47581
12715 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12716 if frame size is 0 in a leaf function.
12718 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12721 * config/alpha/host-osf.c: New file.
12722 * config/alpha/x-osf: New file.
12723 * config.host (alpha*-dec-osf*): Use it.
12725 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12727 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12728 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12729 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12730 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12732 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12734 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12736 * config/stormy16/constraints.md: New file.
12737 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12738 Use satisfies_constraint_Q and satisfies_constraint_R.
12739 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12741 (xstormy16_legitiamte_address_p): Declare.
12742 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12743 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12744 (EXTRA_CONSTRAINT): Delete.
12745 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12747 (xstormy16_extra_constraint_p): Delete.
12749 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12751 PR tree-optimization/46494
12752 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12753 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12754 (pass_rtl_loop_done): Add TODO_verify_flow.
12755 * fwprop.c (pass_rtl_fwprop): Likewise.
12756 * modulo-sched.c (pass_sms): Likewise.
12757 * tree-ssa-dom.c (pass_dominator): Likewise.
12758 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12759 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12760 (pass_tree_loop_done): Likewise.
12761 * tree-ssa-pre.c (execute_pre): Likewise.
12762 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12763 * tree-ssa-sink.c (pass_sink_code): Likewise.
12764 * tree-vrp.c (pass_vrp): Likewise.
12766 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12768 * config/v850/constraints.md: New file.
12769 * config/v850/v850.md: Include it.
12770 * config/v850/predicates.md (reg_or_0_operand): Use
12771 satisfies_constraint_G.
12772 (special_symbolref_operand): Use satisfies_constraint_K.
12773 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12774 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12775 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12776 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12777 (EXTRA_CONSTRAINT): Delete.
12778 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12779 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12780 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12782 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12785 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12788 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12790 * config/mcore/constraints.md: New file.
12791 * config/mcore/mcore.md: Include it.
12792 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12793 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12794 (REG_CLASS_FROM_LETTER): Delete.
12795 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12796 insn_const_int_ok_for_constraint.
12797 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12798 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12799 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12800 (EXTRA_CONSTRAINT): Delete.
12802 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12805 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12806 (IS_SIGHANDLER): Define.
12807 (sparc64_is_sighandler): New function, split off from
12808 sparc64_fallback_frame_state.
12809 (sparc_is_sighandler): New function, split off from
12810 sparc_fallback_frame_state.
12811 (sparc64_fallback_frame_state): Merge with ...
12812 (sparc_fallback_frame_state): ... this into ...
12813 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12814 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12815 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12816 stack instead of hardcoded offsets.
12818 2011-02-14 Andriy Gapon <avg@freebsd.org>
12821 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12823 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12825 * configure: Regenerate.
12827 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12830 * gcc.c (asm_options): Correct spec matching --target-help.
12832 2011-02-12 Martin Jambor <mjambor@suse.cz>
12834 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12835 to gimple call error.
12837 2011-02-12 Mike Stump <mikestump@comcast.net>
12839 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12840 comments in backslash regions.
12842 2011-02-12 Mike Stump <mikestump@comcast.net>
12843 Jakub Jelinek <jakub@redhat.com>
12844 Iain Sandoe <iains@gcc.gnu.org>
12847 * dwarf2out.c (output_cfa_loc): When required, apply the
12848 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12849 (output_loc_sequence): Likewise.
12850 (output_loc_operands_raw): Likewise.
12851 (output_loc_sequence_raw): Likewise.
12852 (output_cfa_loc): Likewise.
12853 (output_loc_list): Suppress register number adjustment when
12854 calling output_loc_sequence()
12855 (output_die): Likewise.
12857 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12859 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12861 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12862 xtensa_memory_move_cost): New functions.
12863 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12865 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12868 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12869 in the current directory.
12870 * configure: Rebuilt.
12872 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12874 * config/darwin.c (darwin_override_options): Add a hunk missed
12875 from the commit of r168571. Trim comment line lengths and
12876 correct indents of the preceding block.
12878 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12880 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12883 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12885 * common.opt (nostartfiles): New Driver option.
12887 2011-02-11 Xinliang David Li <davidxl@google.com>
12889 PR tree-optimization/47707
12890 * tree-chrec.c (convert_affine_scev): Keep type precision.
12892 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12894 PR tree-optimization/47420
12895 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12897 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12899 PR rtl-optimization/47614
12900 * rtl.h (check_for_inc_dec): Declare.
12901 * dse.c (check_for_inc_dec): Externalize...
12902 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12903 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12905 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12908 * gcc.c (main): Do not compile inputs if there were errors in
12910 * opts-common.c (read_cmdline_option): Check for wrong language
12911 after other error checks.
12913 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12915 * cgraph.c: Fix comment typos.
12916 * cgraph.h: Likewise.
12917 * cgraphunit.c: Likewise.
12918 * ipa-cp.c: Likewise.
12919 * ipa-inline.c: Likewise.
12920 * ipa-prop.c: Likewise.
12921 * ipa-pure-const.c: Likewise.
12922 * ipa-ref.c: Likewise.
12923 * ipa-reference.c: Likewise.
12925 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12928 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12930 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12933 * doc/sourcebuild.texi (Require Support): Document
12934 dg-require-ascii-locale.
12936 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12938 * doc/lto.texi (Write summary): Fix missing parentheses.
12940 2011-02-10 DJ Delorie <dj@redhat.com>
12942 * config/m32c/m32c.c (m32c_option_override): Disable
12943 -fcombine-stack-adjustments until flag value tracking and compare
12944 optimization can be rewritten.
12946 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12948 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12950 (PROCESSOR_DEFAULT64): Likewise.
12952 2011-02-10 Richard Henderson <rth@redhat.com>
12954 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12955 change from 2011-02-03.
12956 * config/rx/rx.c (flags_from_code): Likewise.
12957 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12958 is valid, n/pz otherwise.
12959 (rx_select_cc_mode): Return CCmode if Y is not zero.
12961 2011-02-10 Richard Guenther <rguenther@suse.de>
12963 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12965 2011-02-10 Richard Guenther <rguenther@suse.de>
12967 PR tree-optimization/47677
12968 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12970 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12973 * combine.c (make_compound_operation): Only change shifts into
12974 multiplication for SCALAR_INT_MODE_P.
12976 2011-02-10 Jie Zhang <jie@codesourcery.com>
12980 2011-02-05 Jie Zhang <jie@codesourcery.com>
12982 * web.c (entry_register): Don't clobber the number of the
12983 first uninitialized reference in used[].
12985 2011-02-09 Richard Guenther <rguenther@suse.de>
12987 PR tree-optimization/47664
12988 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12991 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12995 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12997 (PROCESSOR_DEFAULT64): Same.
12998 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13000 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13002 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13004 2011-02-09 Martin Jambor <mjambor@suse.cz>
13006 PR middle-end/45505
13007 * tree-sra.c (struct access): New flags grp_scalar_read and
13008 grp_scalar_write. Changed description of assignment read and write
13010 (dump_access): Dump new flags, reorder all of them.
13011 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13012 to detect multiple scalar reads.
13013 (analyze_access_subtree): Use the new scalar read write flags instead
13014 of the old flags. Adjusted comments.
13016 2011-02-08 DJ Delorie <dj@redhat.com>
13019 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13022 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13024 * config/m68k/uclinux.opt: New.
13025 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13027 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13029 * config/cris/elf.opt (sim): New Driver option.
13031 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13033 * config/xtensa/elf.opt: New.
13034 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13036 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13038 * config/vax/elf.opt: New.
13039 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13041 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13043 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13045 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13047 * config/gnu-user.opt: New.
13048 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13049 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13050 *-*-uclinux*): Use gnu-user.opt.
13052 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13054 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13055 * config/i386/gnu.h (CPP_SPEC): Likewise.
13057 2011-02-08 Ian Lance Taylor <iant@google.com>
13059 * common.opt (fcx-limited-range): Add SetByCombined flag.
13060 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13061 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13062 (fassociative-math, freciprocal-math): Likewise.
13063 (funsafe-math-optimizations): Likewise.
13064 * opth-gen.awk: Handle SetByCombined.
13065 * optc-gen.awk: Likewise.
13066 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13067 (set_unsafe_math_optimizations_flags): Likewise.
13068 * doc/options.texi (Option properties): Document SetByCombined.
13070 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13072 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13073 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13074 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13075 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13076 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13078 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13080 PR tree-optimization/46834
13081 PR tree-optimization/46994
13082 PR tree-optimization/46995
13083 * graphite-sese-to-poly.c (used_outside_reduction): New.
13084 (detect_commutative_reduction): Call used_outside_reduction.
13085 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13086 translate_scalar_reduction_to_array only when at least one
13087 loop-phi/close-phi tuple has been detected.
13089 2011-02-08 Richard Guenther <rguenther@suse.de>
13091 PR middle-end/47639
13092 * tree-vect-generic.c (expand_vector_operations_1): Update
13094 (expand_vector_operations): ... not here. Cleanup EH info
13095 and the CFG if required.
13097 2011-02-08 Richard Guenther <rguenther@suse.de>
13099 PR tree-optimization/47641
13100 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13101 require type compatibility.
13103 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13105 * gimple-low.c (lower_function_body): Don't remove the location of
13106 the return statement here.
13107 (lower_gimple_return): Do it here instead but only if the return
13108 statement is actually used twice.
13110 2011-02-08 Richard Guenther <rguenther@suse.de>
13112 PR tree-optimization/47632
13113 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13114 unused up_to_stmt parameter, return whether cfg-cleanup is
13115 necessary, remove EH info properly.
13116 (forward_propagate_into_gimple_cond): Adjust caller.
13117 (forward_propagate_into_cond): Likewise.
13118 (forward_propagate_comparison): Likewise.
13119 (tree_ssa_forward_propagate_single_use_vars): Make
13120 forward_propagate_comparison case similar to the two others.
13122 2011-02-08 Nick Clifton <nickc@redhat.com>
13124 * config/mn10300/mn10300.opt (mliw): New command line option.
13125 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13126 (liw_bundling): New automaton.
13127 (liw): New attribute.
13128 (liw_op): New attribute.
13129 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13130 (movsi_internal): Add LIW attributes.
13131 (andsi3): Likewise.
13132 (iorsi3): Likewise.
13133 (xorsi3): Likewise.
13134 (addsi3): Separate register and immediate alternatives.
13135 Add LIW attributes.
13136 (subsi3): Likewise.
13138 (aslsi3): Likewise.
13139 (lshrsi3): Likewise.
13140 (ashrsi3): Likewise.
13141 (liw): New pattern.
13142 * config/mn10300/mn10300.c (liw_op_names): New
13143 (mn10300_print_operand): Handle 'W' operand descriptor.
13144 (extract_bundle): New function.
13145 (check_liw_constraints): New function.
13146 (liw_candidate): New function.
13147 (mn10300_bundle_liw): New function.
13148 (mn10300_reorg): New function.
13149 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13150 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13151 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13152 __LIW__ or __NO_LIW__.
13153 * doc/invoke.texi: Describe the -mliw command line option.
13155 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13157 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13158 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13159 pthread_mutex_unlock): Remove.
13160 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13161 * config/pa/t-pa64: Likewise.
13162 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13163 shared libc if not linking against libpthread.
13164 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13166 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13169 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13170 on 10.6 and later to ensure that we always use the unwinder from
13171 the system. Only add -no_compact_unwind when tarteting darwin
13174 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13177 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13178 (vec_interleave_lowv2sf): Ditto.
13179 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13180 (vec_extract_oddv2sf): Ditto.
13182 2011-02-07 Mike Stump <mikestump@comcast.net>
13185 Add __ieee_divdc3 entry point.
13186 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13188 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13189 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13190 * config/darwin.c (darwin_rename_builtins): Add.
13191 * config/darwin-protos.h (darwin_rename_builtins): Add.
13193 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13196 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13199 2011-02-07 Mike Stump <mikestump@comcast.net>
13201 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13203 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13206 * config/avr/libgcc.S (exit): Move .endfunc
13208 2011-02-07 Richard Guenther <rguenther@suse.de>
13210 PR tree-optimization/47615
13211 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13212 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13213 (run_scc_vn): Initialize it.
13214 (visit_reference_op_load): Use it.
13215 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13217 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13219 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13220 DImode trapping arithmetic libfuncs.
13222 2011-02-07 Richard Guenther <rguenther@suse.de>
13224 PR tree-optimization/47621
13225 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13227 (execute_update_addresses_taken): ... here. Make it more
13228 conservative in what we accept.
13230 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13232 * config/sparc/freebsd.h (ASM_SPEC): Define.
13233 * config/sparc/vxworks.h (ASM_SPEC): Define.
13235 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13237 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13239 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13241 * doc/invoke.texi: Remove reference to compiler internals from
13242 user documentation.
13244 * reg-notes.def: Remove REG_VALUE_PROFILE.
13245 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13247 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13249 PR middle-end/47610
13250 * varasm.c (default_section_type_flags): If decl is NULL,
13251 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13253 2011-02-05 Jie Zhang <jie@codesourcery.com>
13256 * web.c (entry_register): Don't clobber the number of the
13257 first uninitialized reference in used[].
13259 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13261 PR tree-optimization/46194
13262 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13263 (build_classic_dist_vector_1): Do not represent classic distance
13264 vectors when the access functions are variating in different loops.
13266 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13268 * config/mips/iris6.opt: New.
13269 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13271 2011-02-04 Richard Henderson <rth@redhat.com>
13272 Steve Ellcey <sje@cup.hp.com>
13275 * config/ia64/predicates.md (mux1_brcst_element): New.
13276 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13277 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13278 (ia64_unpack_sign): New.
13279 (ia64_expand_unpack): Rewrite using new routines.
13280 (ia64_expand_widen_sum): Ditto.
13281 (ia64_expand_dot_prod_v8qi): Ditto.
13282 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13283 routines, add endian check.
13284 (pmpy2_even): Rename from pmpy2_r, add endian check.
13285 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13286 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13287 (vec_widen_smult_hi_v4hi): Ditto.
13288 (vec_widen_umult_lo_v4hi): Ditto.
13289 (vec_widen_umult_hi_v4hi): Ditto.
13290 (mulv2si3): Change endian checks.
13291 (sdot_prodv4hi): Rewrite with new calls.
13292 (udot_prodv4hi): New.
13293 (vec_pack_ssat_v4hi): Add endian check.
13294 (vec_pack_usat_v4hi): Ditto.
13295 (vec_pack_ssat_v2si): Ditto.
13296 (max1_even): Rename from max1_r, add endian check.
13297 (max1_odd): Rename from max1_l, add endian check.
13298 (*mux1_rev): Format change.
13299 (*mux1_mix): Ditto.
13300 (*mux1_shuf): Ditto.
13301 (*mux1_alt): Ditto.
13302 (*mux1_brcst_v8qi): Use new predicate.
13303 (vec_extract_evenv8qi): Remove endian check.
13304 (vec_extract_oddv8qi): Ditto.
13305 (vec_interleave_lowv4hi): Format change.
13306 (vec_interleave_highv4hi): Ditto.
13307 (mix2_even): Rename from mix2_r, add endian check.
13308 (mix2_odd): Rename from mux2_l, add endian check.
13309 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13310 (vec_extract_evenodd_helper): Format change.
13311 (vec_extract_evenv4hi): Remove endian check.
13312 (vec_extract_oddv4hi): Remove endian check.
13313 (vec_interleave_lowv2si): Format change.
13314 (vec_interleave_highv2si): Format change.
13315 (vec_initv2si): Remove endian check.
13316 (vecinit_v2si): Add endian check.
13317 (reduc_splus_v2sf): Add endian check.
13318 (reduc_smax_v2sf): Ditto.
13319 (reduc_smin_v2sf): Ditto.
13320 (vec_initv2sf): Remove endian check.
13321 (fpack): Add endian check.
13322 (fswap): Add endian check.
13323 (vec_interleave_highv2sf): Add endian check.
13324 (vec_interleave_lowv2sf): Add endian check.
13325 (fmix_lr): Add endian check.
13326 (vec_setv2sf): Format change.
13327 (*vec_extractv2sf_0_be): Use shift to extract operand.
13328 (*vec_extractv2sf_1_be): New.
13329 (vec_pack_trunc_v4hi): Add endian check.
13330 (vec_pack_trunc_v2si): Format change.
13332 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13334 PR inline-asm/23200
13335 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13336 do bb, locus and block comparison and disallow loads if it is not set.
13337 (stmt_is_replaceable_p): New function.
13338 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13340 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13341 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13343 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13345 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13347 * config/rs6000/xilinx.opt: New.
13348 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13350 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13352 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13354 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13356 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13357 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13358 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13359 secondary_reload_info, xtensa_secondary_reload): Remove.
13360 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13361 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13362 (xtensa_preferred_reload_class): Make static. Change return and
13363 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13364 Use CONST_DOUBLE_P predicate.
13365 (xtensa_preferred_output_reload_class): New function.
13366 (xtensa_secondary_reload): Make static.
13368 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13370 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13371 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13372 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13374 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13376 PR middle-end/31490
13377 * output.h (SECTION_RELRO): Define.
13378 (SECTION_MACH_DEP): Adjust.
13379 (get_variable_section): New prototype.
13380 * varpool.c (varpool_finalize_named_section_flags): New function.
13381 (varpool_assemble_pending_decls): Call it.
13382 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13383 * cgraphunit.c (cgraph_output_in_order): Call
13384 varpool_finalize_named_section_flags.
13385 * varasm.c (get_section): Allow section flags conflicts between
13386 relro and read-only sections if the section hasn't been declared yet.
13387 Set SECTION_OVERRIDE after diagnosing section type conflict.
13388 (get_variable_section): No longer static.
13389 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13390 readonly sections that need relocations.
13391 (decl_readonly_section_1): New function.
13392 (decl_readonly_section): Use it.
13395 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13396 Steve Ellcey <sje@cup.hp.com>
13398 PR middle-end/31490
13399 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13400 if section attribute used.
13402 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13404 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13405 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13406 (darwin_init_sections): Remove assertion.
13408 2011-02-03 Nick Clifton <nickc@redhat.com>
13410 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13412 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13413 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13414 instead of "n" and "pz".
13415 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13418 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13421 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13422 fma, expand FMA_EXPR as fma{,f,l} call.
13425 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13426 copy them into a unsigned char variable and pass address of it to
13427 lto_output_data_stream.
13430 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13431 around backend_init_target and lang_dependent_init_target calls.
13432 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13433 (verify_cgraph_node): Don't call set_cfun here. Use
13434 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13435 Set error_found for incorrectly represented calls to thunks.
13437 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13440 PR rtl-optimization/43494
13441 * rtl.h (for_each_inc_dec_fn): New type.
13442 (for_each_inc_dec): Declare.
13443 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13444 (for_each_inc_dec_find_inc_dec): New fn.
13445 (for_each_inc_dec_find_mem): New fn.
13446 (for_each_inc_dec): New fn.
13447 * dse.c (struct insn_size): Remove.
13448 (replace_inc_dec, replace_inc_dec_mem): Remove.
13449 (emit_inc_dec_insn_before): New fn.
13450 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13451 (canon_address): Pass mem modes to cselib_lookup.
13452 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13453 (cselib_lookup_from_insn): Likewise.
13454 (cselib_subst_to_values): Likewise.
13455 * cselib.c (find_slot_memmode): New var.
13456 (cselib_find_slot): New fn. Use it instead of
13457 htab_find_slot_with_hash everywhere.
13458 (entry_and_rtx_equal_p): Use find_slot_memmode.
13459 (autoinc_split): New fn.
13460 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13461 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13462 Deal with autoinc. Special-case recursion into MEMs.
13463 (cselib_hash_rtx): Likewise.
13464 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13465 address and MEM modes.
13466 (cselib_subst_to_values): Add memmode, pass it on.
13468 (cselib_lookup): Add memmode argument, pass it on.
13469 (cselib_lookup_from_insn): Add memmode.
13470 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13471 (struct cselib_record_autoinc_data): New.
13472 (cselib_record_autoinc_cb): New fn.
13473 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13474 mode to cselib_lookup. Reset autoinced REGs here instead of...
13475 (cselib_process_insn): ... here.
13476 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13478 (add_uses): Likewise, also to cselib_subst_to_values.
13479 (add_stores): Likewise.
13480 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13481 cselib_subst_to_values.
13482 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13483 * gcse.c (do_local_cprop): Adjusted.
13484 * postreload.c (reload_cse_simplify_set): Adjusted.
13485 (reload_cse_simplify_operands): Adjusted.
13486 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13488 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13490 PR tree-optimization/45122
13491 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13492 unsafe assumptions when there's more than one loop exit.
13494 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13497 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13498 Document using vector double with the load/store builtins, and
13499 that the load/store builtins always use Altivec instructions.
13501 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13502 to use altivec memory instructions, even on VSX.
13503 (vector_altivec_store_<mode>): Ditto.
13505 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13508 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13509 V2DF, V2DI support to load/store overloaded builtins.
13511 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13512 altivec load/store builtins for V2DF/V2DI types.
13514 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13515 set avoid indexed addresses on power6 if -maltivec.
13516 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13517 vector_altivec_load/vector_altivec_store builtins.
13518 (altivec_expand_st_builtin): Ditto.
13519 (altivec_expand_builtin): Add VSX memory builtins.
13520 (rs6000_init_builtins): Add V2DI types to internal types.
13521 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13522 load/store builtins.
13523 (rs6000_address_for_altivec): Insure memory address is appropriate
13526 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13527 vec_vsx_ld and vec_vsx_st.
13528 (vsx_store_<mode>): Ditto.
13530 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13531 variables to hold long long types for VSX vector memory builtins.
13532 (RS6000_BTI_unsigned_long_long): Ditto.
13533 (long_long_integer_type_internal_node): Ditti.
13534 (long_long_unsigned_type_internal_node): Ditti.
13536 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13537 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13538 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13540 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13542 (vec_vsx_st): Ditto.
13544 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13546 * config/pa/pa-hpux10.opt: New.
13547 * config/hpux11.opt (pthread): New Driver option.
13548 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13549 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13551 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13553 * config/ia64/vms.opt: New.
13554 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13556 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13559 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13560 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13561 generator functions.
13562 (vsx_floatuns<VSi><mode>2): Ditto.
13563 (vsx_fix_trunc<mode><VSi>2): Ditto.
13564 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13566 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13568 * config/i386/djgpp.opt (posix): New Driver option.
13570 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13572 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13573 Move to the unsupported targets list.
13575 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13577 PR rtl-optimization/47525
13578 * df-scan.c: Update copyright years.
13579 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13580 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13582 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13584 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13585 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13586 (ASM_OUTPUT_ASCII): Remove.
13587 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13589 2011-02-02 Jeff Law <law@redhat.com>
13591 PR middle-end/47543
13592 * reload.c (find_reloads_address): Handle reg+d address where both
13593 components are invalid by reloading the entire address.
13595 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13596 Richard Guenther <rguenther@suse.de>
13598 PR tree-optimization/40979
13600 * passes.c (init_optimization_passes): After LIM call copy_prop
13601 and DCE to clean up.
13602 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13604 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13606 PR tree-optimization/47576
13607 PR tree-optimization/47555
13608 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13609 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13610 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13611 * tree-scalar-evolution.c (follow_ssa_edge): Use
13612 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13614 2011-02-02 Richard Guenther <rguenther@suse.de>
13616 PR tree-optimization/47566
13617 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13619 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13623 * tree-inline.c (declare_return_variable): Remove unused caller
13628 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13629 * cfgexpand.c (account_used_vars_for_block): Use them.
13630 * tree-nrv.c (tree_nrv): Likewise.
13631 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13632 (dump_scope_block): Likewise.
13633 (remove_unused_locals): Likewise.
13637 * tree-inline.c (declare_return_variable): Add result decl to
13638 local decls only once.
13639 * gimple-low.c (record_vars_into): Mark newly-created variables
13642 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13648 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13650 (no_real_insns_p, schedule_block, set_priorities): Drop special
13651 treatment of boundary debug insns.
13652 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13653 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13654 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13655 (BOUNDARY_DEBUG_INSN_P): Likewise.
13656 (SCHEDULE_DEBUG_INSN_P): Likewise.
13657 * sched-rgn.c (init_ready_list): Drop special treatment of
13658 boundary debug insns.
13659 * final.c (rest_of_clean_state): Clear notes' BB.
13661 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13663 * config/openbsd.opt (assert=): New Driver option.
13665 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13667 * config/i386/nto.opt: New.
13668 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13670 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13672 * config/i386/netware.opt: New.
13673 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13675 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13677 * config/interix.opt (posix): New Driver option.
13679 2011-02-01 DJ Delorie <dj@redhat.com>
13681 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13683 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13686 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13688 PR tree-optimization/47561
13689 * toplev.c (process_options): Print the Graphite flags. Add
13690 flag_loop_flatten to the list of options requiring Graphite.
13692 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13694 * config/i386/cygming.opt (posix): New Driver option.
13696 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13698 * config/arm/vxworks.opt: New.
13699 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13701 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13703 * config/alpha/elf.opt: New.
13704 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13705 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13707 2011-02-01 Richard Guenther <rguenther@suse.de>
13709 PR tree-optimization/47559
13710 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13711 store-motion on references that can throw.
13713 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13715 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13716 * tree-pass.h (TDF_CSELIB): New macro.
13717 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13718 cselib_lookup): Check for it rather than for TDF_DETAILS.
13720 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13723 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13724 is HOST_BIT_BUCKET.
13726 * opts.c (finish_options): Don't add x_aux_base_name if it is
13729 2011-02-01 Richard Guenther <rguenther@suse.de>
13731 PR tree-optimization/47555
13733 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13735 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13737 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13740 * config/lm32/t-lm32: Add multilib for all CPU options.
13742 2011-02-01 Richard Guenther <rguenther@suse.de>
13744 PR tree-optimization/47541
13745 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13746 sure to have a field at offset zero.
13748 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13750 * config/arc/arc.opt (EB, EL): New Driver options.
13752 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13754 * config/alpha/osf5.opt: New.
13755 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13757 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13759 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13761 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13763 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13764 -floop-interchange.
13765 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13766 is an alias of -floop-interchange and that it requires the
13767 Graphite infrastructure.
13768 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13769 flag_loop_interchange based on the value of flag_tree_loop_linear.
13771 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13772 Richard Guenther <rguenther@suse.de>
13774 PR tree-optimization/47538
13775 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13776 type instead of r1type, except for comparisons. For right
13777 shifts and comparisons punt if there are mismatches in
13778 sizetype vs. non-sizetype types.
13780 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13782 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13785 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13787 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13789 * configure: Regenerate.
13791 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13793 * configure.ac (gcc_cv_ld_static_option): Define.
13794 (gcc_cv_ld_dynamic_option): Define.
13795 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13797 (HAVE_LD_STATIC_DYNAMIC): Update message.
13798 (LD_STATIC_OPTION): Define.
13799 (LD_DYNAMIC_OPTION): Define.
13800 * configure: Regenerate.
13801 * config.in: Regenerate.
13802 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13803 HAVE_LD_STATIC_DYNAMIC]: Use them.
13805 2011-01-31 Nick Clifton <nickc@redhat.com>
13807 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13808 registers inside interrupt handlers if the handler is not a leaf
13811 2011-01-31 Nick Clifton <nickc@redhat.com>
13813 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13814 reg_renumber returning an INVALID_REGNUM.
13816 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13819 * doc/install.texi: Document host options discarded when cross
13820 configuring target libraries.
13822 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13825 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13828 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13830 (no_real_insns_p, schedule_block, set_priorities): Drop special
13831 treatment of boundary debug insns.
13832 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13833 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13834 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13835 (BOUNDARY_DEBUG_INSN_P): Likewise.
13836 (SCHEDULE_DEBUG_INSN_P): Likewise.
13837 * sched-rgn.c (init_ready_list): Drop special treatment of
13838 boundary debug insns.
13839 * final.c (rest_of_clean-state): Clear notes' BB.
13841 2011-01-31 Alan Modra <amodra@gmail.com>
13843 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13844 toc relative expressions as we do in print_operand_address.
13846 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13848 * doc/extend.texi: Follow spelling conventions.
13849 * doc/invoke.texi: Fix a typo.
13851 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13853 * config/hpux11.opt: New.
13854 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13855 ia64*-*-hpux*): Use hpux11.opt.
13857 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13859 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13862 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13864 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13867 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13869 * doc/install.texi (Binaries): Remove outdated reference for
13870 Motorola 68HC11/68HC12 downloads.
13872 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13874 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13877 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13880 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13883 2011-01-28 Ahmad Sharif <asharif@google.com>
13885 * value-prof.c (check_counter): Corrected error message.
13887 2011-01-29 Jie Zhang <jie@codesourcery.com>
13889 * config/arm/arm.c (arm_legitimize_reload_address): New.
13890 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13891 arm_legitimize_reload_address.
13892 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13894 2011-01-28 Ian Lance Taylor <iant@google.com>
13896 * godump.c (go_define): Ignore macros whose definitions include
13897 two adjacent operands.
13899 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13902 * varasm.c (force_const_mem): Store copy of x in desc->constant
13903 instead of x itself.
13904 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13905 itself into REG_EQUAL note.
13907 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13909 * config/freebsd.opt (posix, rdynamic): New Driver options.
13911 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13913 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13914 -Bstatic/-Bdynamic.
13915 * configure: Regenerate.
13917 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13919 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13920 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13922 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13924 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13925 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13926 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13927 (s390_preferred_reload_class): Make static. Change return and
13928 'rclass' argument type to reg_class_t.
13930 2011-01-27 Jan Hubicka <jh@suse.cz>
13932 PR middle-end/46949
13933 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13934 (process_function_and_variable_attributes): Check defined weakrefs.
13936 2011-01-27 Martin Jambor <mjambor@suse.cz>
13938 PR tree-optimization/47228
13939 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13940 build_ref_for_offset.
13942 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13944 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13946 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13948 PR rtl-optimization/46856
13949 * postreload.c (reload_combine_recognize_const_pattern): Do not
13950 separate cc0 setter and user on cc0 targets.
13952 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13955 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13956 passed a VOID_TYPE expression, immediately emit an error and
13957 return error_mark_node.
13959 2011-01-26 Jeff Law <law@redhat.com>
13961 PR rtl-optimization/47464
13962 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13963 rather than may_trap_p as needed.
13965 2011-01-26 DJ Delorie <dj@redhat.com>
13967 PR rtl-optimization/46878
13968 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13969 setter/user dependency as well.
13971 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13973 PR rtl-optimization/44469
13974 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13975 after removing trivially dead basic blocks.
13977 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13979 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13980 * config/frv/frv.h (LINK_SPEC): Likewise.
13981 * config/i386/netware.h (LINK_SPEC): Likewise.
13982 * config/m68k/linux.h (ASM_SPEC): Likewise.
13983 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13984 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13985 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13986 * config/sparc/linux.h (ASM_SPEC): Likewise.
13987 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13988 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13990 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13992 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13993 * config/frv/frv.h (ASM_SPEC): Likewise.
13994 * config/m68k/linux.h (ASM_SPEC): Likewise.
13995 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13996 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13997 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13998 * config/sparc/linux.h (ASM_SPEC): Likewise.
13999 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14000 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14002 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14004 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14005 * config/frv/frv.h (LINK_SPEC): Likewise.
14006 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14008 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14010 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14011 * config/frv/frv.h (ASM_SPEC): Likewise.
14012 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14013 * config/m68k/linux.h (ASM_SPEC): Likewise.
14014 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14015 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14016 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14017 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14018 * config/sparc/linux.h (ASM_SPEC): Likewise.
14019 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14020 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14021 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14023 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14026 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14028 (vec_extract_evenodd_help): Ditto.
14029 (vec_extract_evenv4hi): Ditto.
14030 (vec_extract_oddv4hi): Ditto.
14031 (vec_interleave_lowv2si): Ditto.
14032 (vec_interleave_highv2si): Ditto.
14033 (vec_extract_evenv2si): Ditto.
14034 (vec_extract_oddv2si: Ditto.
14035 (vec_pack_trunc_v2si): Ditto.
14037 2011-01-22 Jan Hubicka <jh@suse.cz>
14040 * cgraph.h (cgraph_local_info): New field can_change_signature.
14041 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14042 signature can change.
14043 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14045 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14046 (cgraph_function_versioning): We can not change signature of functions
14047 that don't allow that.
14048 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14049 (lto_input_node): Likewise.
14050 * ipa-inline.c (compute_inline_parameters): Compute
14051 local.can_change_signature.
14052 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14053 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14054 functions that can not change signature.
14055 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14056 init_cumulative_args): Do not use local calling conventions
14057 for functions that can not change signature.
14059 2011-01-22 Jan Hubicka <jh@suse.cz>
14061 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14063 2011-01-26 Richard Guenther <rguenther@suse.de>
14065 PR tree-optimization/47190
14066 * cgraphunit.c (process_common_attributes): New function.
14067 (process_function_and_variable_attributes): Use it.
14069 2011-01-26 Richard Guenther <rguenther@suse.de>
14072 * cgraphbuild.c (record_eh_tables): Record reference to personality
14075 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14078 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14079 non-debug insns from moving up.
14081 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14084 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14085 t-dlldir{,-x} fragment for build and add it to tmake_file.
14086 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14087 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14088 * config/i386/t-dlldir: New file.
14089 (SHLIB_DLLDIR): Define.
14090 * config/i386/t-dlldir-x: New file.
14091 (SHLIB_DLLDIR): Define.
14092 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14093 (SHLIB_INSTALL): Use it.
14095 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14098 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14099 lower bound of the allowed Thumb-2 coprocessor load/store
14100 index range to -256. Add explaining comment.
14102 2011-01-25 Ian Lance Taylor <iant@google.com>
14104 * godump.c (go_define): Improve lexing of macro expansion to only
14105 accept expressions which match Go spec.
14107 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14110 * tree.c (handle_dll_attribute): Handle it.
14111 * doc/extend.texi (@item dllexport): Mention it.
14112 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14114 2011-01-25 Ian Lance Taylor <iant@google.com>
14116 PR tree-optimization/26854
14117 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14118 (decl_jump_unsafe): Move higher in file, with no other change.
14119 (bind): Set has_jump_unsafe_decl if appropriate.
14120 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14121 (check_earlier_gotos): Likewise.
14122 (c_check_switch_jump_warnings): Likewise.
14124 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14126 * doc/invoke.texi (Warning Options): Add missing hyphen.
14127 (-fprofile-dir): Minor grammatical fixes.
14128 (-fbranch-probabilities): Likewise.
14130 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14134 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14136 (no_real_insns_p, schedule_block, set_priorities): Drop special
14137 treatment of boundary debug insns.
14138 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14139 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14140 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14141 (BOUNDARY_DEBUG_INSN_P): Likewise.
14142 (SCHEDULE_DEBUG_INSN_P): Likewise.
14143 * sched-rgn.c (init_ready_list): Drop special treatment of
14144 boundary debug insns.
14145 * final.c (rest_of_clean-state): Clear notes' BB.
14147 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14149 * Makefile.in (LAMBDA_H): Removed.
14150 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14151 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14152 lambda-trans.o, and tree-loop-linear.o.
14153 (lto-symtab.o): Remove dependence on LAMBDA_H.
14154 (tree-loop-linear.o): Remove rule.
14155 (lambda-mat.o): Same.
14156 (lambda-trans.o): Same.
14157 (lambda-code.o): Same.
14158 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14159 (tree-vect-slp.o): Same.
14160 * hwint.h (gcd): Moved here.
14161 (least_common_multiple): Same.
14162 * lambda-code.c: Removed.
14163 * lambda-mat.c: Removed.
14164 * lambda-trans.c: Removed.
14165 * lambda.h: Removed.
14166 * tree-loop-linear.c: Removed.
14167 * lto-symtab.c: Do not include lambda.h.
14168 * omega.c (gcd): Removed.
14169 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14170 * tree-data-ref.c (print_lambda_vector): Moved here.
14171 (lambda_vector_copy): Same.
14172 (lambda_matrix_copy): Same.
14173 (lambda_matrix_id): Same.
14174 (lambda_vector_first_nz): Same.
14175 (lambda_matrix_row_add): Same.
14176 (lambda_matrix_row_exchange): Same.
14177 (lambda_vector_mult_const): Same.
14178 (lambda_vector_negate): Same.
14179 (lambda_matrix_row_negate): Same.
14180 (lambda_vector_equal): Same.
14181 (lambda_matrix_right_hermite): Same.
14182 * tree-data-ref.h: Do not include lambda.h.
14183 (lambda_vector): Moved here.
14184 (lambda_matrix): Same.
14185 (dependence_level): Same.
14186 (lambda_transform_legal_p): Removed declaration.
14187 (lambda_collect_parameters): Same.
14188 (lambda_compute_access_matrices): Same.
14189 (lambda_vector_gcd): Same.
14190 (lambda_vector_new): Same.
14191 (lambda_vector_clear): Same.
14192 (lambda_vector_lexico_pos): Same.
14193 (lambda_vector_zerop): Same.
14194 (lambda_matrix_new): Same.
14195 * tree-flow.h (least_common_multiple): Removed declaration.
14196 * tree-parloops.c (lambda_trans_matrix): Moved here.
14197 (LTM_MATRIX): Same.
14198 (LTM_ROWSIZE): Same.
14199 (LTM_COLSIZE): Same.
14200 (LTM_DENOMINATOR): Same.
14201 (lambda_trans_matrix_new): Same.
14202 (lambda_matrix_vector_mult): Same.
14203 (lambda_transform_legal_p): Same.
14204 * tree-pass.h (pass_linear_transform): Removed declaration.
14205 * tree-ssa-loop.c (tree_linear_transform): Removed.
14206 (gate_tree_linear_transform): Removed.
14207 (pass_linear_transform): Removed.
14208 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14209 flag_loop_interchange.
14211 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14213 PR tree-optimization/47265
14214 PR tree-optimization/47443
14215 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14216 if name still has some uses.
14218 2011-01-25 Martin Jambor <mjambor@suse.cz>
14220 PR tree-optimization/47382
14221 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14222 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14224 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14226 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14227 sjlj_except_unwind_info.
14229 2011-01-25 Richard Guenther <rguenther@suse.de>
14231 PR tree-optimization/47426
14232 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14233 visible functions results escape.
14235 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14238 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14239 (arm_get_frame_offsets): Use it.
14241 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14242 Jakub Jelinek <jakub@redhat.com>
14244 PR tree-optimization/47271
14245 * tree-if-conv.c (bb_postdominates_preds): New.
14246 (if_convertible_bb_p): Call bb_postdominates_preds.
14247 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14248 (predicate_scalar_phi): Call bb_postdominates_preds.
14250 2011-01-25 Nick Clifton <nickc@redhat.com>
14252 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14253 * config/rx/rx.c (rx_function_value): Likewise.
14254 (rx_promote_function_mode): Likewise.
14255 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14256 in order to make it legitimate.
14257 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14258 make sure that the first operand is the same as the result register.
14259 (addsi3_unspec): Delete.
14260 (subdi3): Do not accept immediate operands.
14261 (subdi3_internal): Likewise.
14263 2011-01-25 Jeff Law <law@redhat.com>
14265 PR rtl-optimization/37273
14266 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14267 handle them like argument loads from stack slots. Do not double
14268 count memory for memory constants and argument loads from stack slots.
14270 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14272 PR tree-optimization/47427
14273 PR tree-optimization/47428
14274 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14275 coalesce if the new root var would be TREE_READONLY.
14277 2011-01-25 Richard Guenther <rguenther@suse.de>
14279 PR middle-end/47414
14280 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14281 correct type for TBAA.
14283 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14285 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14286 (close_phi_written_to_memory): Call for_each_index with
14287 dr_indices_valid_in_loop.
14289 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14291 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14292 when it is initialized.
14294 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14296 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14297 call to graphite_find_data_references_in_stmt.
14298 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14299 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14300 call to graphite_find_data_references_in_stmt.
14301 (analyze_drs_in_stmts): Same.
14302 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14303 in which the scalar analysis of indices is performed.
14304 (create_data_ref): Same. Update call to dr_analyze_indices.
14305 (find_data_references_in_stmt): Update call to create_data_ref.
14306 (graphite_find_data_references_in_stmt): Same.
14307 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14309 (create_data_ref): Same.
14310 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14311 call to create_data_ref.
14313 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14315 * graphite-sese-to-poly.c (build_poly_scop): Move
14316 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14318 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14320 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14321 VAR_DECL, PARM_DECL, and RESULT_DECL.
14323 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14325 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14326 in a reduction PBB.
14327 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14328 that have already been marked as PBB_IS_REDUCTION.
14330 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14332 * graphite-scop-detection.c (same_close_phi_node): New.
14333 (remove_duplicate_close_phi): New.
14334 (make_close_phi_nodes_unique): New.
14335 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14337 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14339 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14340 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14341 of both data references to be the same.
14343 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14345 * graphite-dependences.c (build_lexicographical_constraint): Remove
14346 the gdim parameter.
14347 (build_lexicographical_constraint): Adjust call to
14348 ppl_powerset_is_empty.
14349 (dependence_polyhedron): Same.
14350 (graphite_legal_transform_dr): Same.
14351 (graphite_carried_dependence_level_k): Same.
14352 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14354 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14356 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14358 * graphite-sese-to-poly.c
14359 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14360 (close_phi_written_to_memory): New.
14361 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14364 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14366 * doc/install.texi: Update the expected version number of PPL to 0.11.
14367 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14368 #if PPL_VERSION_MINOR < 11.
14370 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14372 * graphite-dependences.c: Include graphite-cloog-util.h.
14373 (new_poly_ddr): Inlined into dependence_polyhedron.
14374 (free_poly_ddr): Moved close by new_poly_ddr.
14375 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14376 Early return NULL when ppl_powerset_is_empty returns true.
14377 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14378 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14379 (graphite_legal_transform_dr): Call new_poly_ddr.
14380 (graphite_carried_dependence_level_k): Same.
14381 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14382 (dot_transformed_deps_stmt_1): Removed.
14383 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14384 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14385 (dot_deps_1): Call dot_deps_2.
14386 * Makefile.in (graphite-dependences.o): Add missing dependence on
14387 graphite-cloog-util.h.
14389 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14391 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14392 (build_lexicographical_constraint): Same.
14393 (dependence_polyhedron_1): Same.
14394 (graphite_legal_transform_dr): Same.
14395 (graphite_carried_dependence_level_k): Same.
14396 * graphite-ppl.c (ppl_powerset_is_empty): New.
14397 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14398 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14400 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14402 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14403 the "a followed by b" relation and document it.
14405 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14407 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14408 iteration when the bag of constraints is empty.
14410 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14412 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14414 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14416 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14417 nest and two loop depths as parameters.
14418 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14419 lst_perfect_nestify.
14421 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14423 * graphite-dependences.c (print_pddr): Call
14424 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14426 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14428 * graphite-ppl.c (debug_gmp_value): New.
14429 * graphite-ppl.h (debug_gmp_value): Declared.
14431 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14433 * doc/install.texi: Document availability of cloog-0.16.
14435 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14437 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14438 invalid postdominance info.
14440 2011-01-24 Jan Hubicka <jh@suse.cz>
14443 * doc/extend.texi (weak pragma): Drop claim that it must
14444 appear before definition.
14445 * varasm.c (merge_weak, declare_weak): Only sanity check
14446 that DECL is not output at a time it is declared weak.
14448 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14450 * machmode.def: Fixed comments.
14452 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14454 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14456 2011-01-24 Paul Koning <ni1d@arrl.net>
14458 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14461 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14464 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14465 (block_info): Add scanned and prev.
14466 (move_or_delete_vzeroupper_2): Return if the basic block
14467 has been scanned and the upper 128bit state is unchanged
14468 from the last scan.
14469 (move_or_delete_vzeroupper_1): Return true if the exit
14471 (move_or_delete_vzeroupper): Visit basic blocks using the
14472 work-list based algorithm based on vt_find_locations in
14475 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14477 2011-01-24 Nick Clifton <nickc@redhat.com>
14479 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14480 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14481 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14482 then define __v850e1__.
14483 * doc/invoke.texi: Document -mv850es.
14485 2011-01-24 Richard Henderson <rth@redhat.com>
14487 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14488 compound unordered comparisons.
14489 * config/rx/rx.c (rx_split_fp_compare): Remove.
14490 * config/rx/rx-protos.h: Update.
14491 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14492 (cbranchsf4): Don't call rx_split_fp_compare.
14493 (*cbranchsf4): Use rx_split_cbranch.
14494 (*cmpsf): Don't accept "i" constraint.
14495 (*conditional_branch): Only valid after reload.
14496 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14498 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14501 * config/rs6000/altivec.md (vector constant splitters): Add
14502 support for creating vector single precision constants if -mvsx is
14503 used and we would create the constant using Altivec primitives.
14505 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14506 Richard Sandiford <rdsandiford@googlemail.com>
14508 PR rtl-optimization/47166
14509 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14510 mechanism for PRE_MODIFY and POST_MODIFY.
14511 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14514 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14516 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14518 2011-01-22 Jan Hubicka <jh@suse.cz>
14521 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14523 2011-01-22 Jan Hubicka <jh@suse.cz>
14525 PR tree-optimization/43884
14527 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14528 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14530 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14532 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14533 * config/s390/s390.c (s390_register_move_cost,
14534 s390_memory_move_cost): New.
14535 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14537 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14539 PR middle-end/47401
14540 * except.c (sjlj_assign_call_site_values): Move setting the
14541 crtl->uses_eh_lsda flag to ...
14542 (sjlj_mark_call_sites): ... here.
14543 (sjlj_emit_function_enter): Support NULL dispatch label.
14544 (sjlj_build_landing_pads): In a function with no landing pads
14545 that still has must-not-throw regions, generate code to register
14546 a personality function with empty LSDA.
14548 2011-01-21 Richard Henderson <rth@redhat.com>
14550 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14552 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14554 * compare-elim.c: New file.
14555 * Makefile.in (OBJS-common): Add it.
14556 (compare-elim.o): New.
14557 * common.opt (fcompare-elim): New.
14558 * opts.c (default_options_table): Add OPT_fcompare_elim.
14559 * tree-pass.h (pass_compare_elim_after_reload): New.
14560 * passes.c (init_optimization_passes): Add it.
14561 * recog.h: Protect against re-inclusion.
14562 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14563 * doc/invoke.texi (-fcompare-elim): Document it.
14564 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14565 * doc/tm.texi: Rebuild.
14567 2011-01-22 Nick Clifton <nickc@redhat.com>
14569 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14570 rx_split_fp_compare.
14572 2011-01-22 Nick Clifton <nickc@redhat.com>
14574 * config/rx/rx.md (UNSPEC_CONST): New.
14575 (deallocate_and_return): Wrap the amount popped off the stack in
14576 an UNSPEC_CONST in order to stop it being rejected by
14577 -mmax-constant-size.
14578 (pop_and_return): Add a "(return)" rtx.
14579 (call): Drop the immediate operand.
14580 (call_internal): Likewise.
14581 (call_value): Likewise.
14582 (call_value_internal): Likewise.
14583 (sibcall_internal): Likewise.
14584 (sibcall_value_internal): Likewise.
14585 (sibcall): Likewise. Generate an explicit call using
14587 (sibcall_value): Likewise.
14588 (mov<>): FAIL if a constant operand is not legitimate.
14589 (addsi3_unpsec): New pattern.
14591 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14592 (ok_for_max_constant): New function.
14593 (gen_safe_add): New function.
14594 (rx_expand_prologue): Use gen_safe_add.
14595 (rx_expand_epilogue): Likewise.
14596 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14599 2011-01-21 Jeff Law <law@redhat.com>
14601 PR tree-optimization/47053
14602 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14603 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14604 statements are deleted.
14605 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14606 is nonempty, then purge dead edges and cleanup the CFG.
14608 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14611 Temporarily revert:
14612 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14614 * tree-dfa.c (create_var_ann): Mark variable as used.
14616 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14618 PR middle-end/45566
14619 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14620 notes from other section in hot/cold partitioning even if
14621 last_action is -3. Increment call_site_base.
14623 PR rtl-optimization/47366
14624 * fwprop.c (forward_propagate_into): Return bool. If
14625 any changes are made, -fnon-call-exceptions is used and
14626 REG_EH_REGION note is present, call purge_dead_edges
14627 and return true if it purged anything.
14628 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14629 any EH edges were purged.
14631 2011-01-21 Jeff Law <law@redhat.com>
14633 PR rtl-optimization/41619
14634 * caller-save.c (setup_save_areas): Break out code to determine
14635 which hard regs are live across calls by examining the reload chains
14636 so that it is always used.
14637 Eliminate code which checked REG_N_CALLS_CROSSED.
14639 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14641 PR tree-optimization/47355
14642 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14643 NOP has non-debug uses beyond PHIs in new_bb.
14645 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14648 * cfgexpand.c (account_used_vars_for_block): Only account vars
14649 that are annotated as used.
14650 (estimated_stack_frame_size): Don't set TREE_USED.
14651 * tree-dfa.c (create_var_ann): Mark variable as used.
14653 2011-01-21 Richard Guenther <rguenther@suse.de>
14655 PR middle-end/47395
14656 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14658 2011-01-21 Richard Guenther <rguenther@suse.de>
14660 PR tree-optimization/47365
14661 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14662 (vn_reference_lookup_pieces): Adjust.
14663 (vn_reference_lookup): Likewise.
14664 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14665 (vn_reference_lookup_3): Only look through kills if in
14666 VN_WALKREWRITE mode.
14667 (vn_reference_lookup_pieces): Adjust.
14668 (vn_reference_lookup): Likewise.
14669 (visit_reference_op_load): Likewise.
14670 (visit_reference_op_store): Likewise.
14671 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14672 (compute_avail): Likewise.
14673 (eliminate): Likewise.
14675 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14677 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14678 DECL_IGNORED_P non-reg vars if they are used.
14680 PR tree-optimization/47391
14681 * varpool.c (const_value_known_p): Return false if
14684 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14687 * config/i386/i386.c (ix86_local_alignment): Handle
14688 case for va_list_type_node is nil.
14689 (ix86_canonical_va_list_type): Likewise.
14691 2011-01-21 Alan Modra <amodra@gmail.com>
14693 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14694 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14696 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14698 * config/arm/arm.md (define_attr type): Rename f_load
14699 and f_store to f_fpa_load and f_fpa_store. Update.
14700 (write_conflict): Deal with rename fallout.
14701 (*push_fp_multi): Likewise.
14702 * config/arm/fpa.md (f_load): Use f_fpa_load.
14703 (f_store): Use f_fpa_store.
14704 (*movsf_fpa): Likewise.
14705 (*movdf_fpa): Likewise.
14706 (*movxf_fpa): Likewise.
14707 (*thumb2_movsf_fpa): Likewise.
14708 (*thumb2_movdf_fpa): Likewise.
14709 (*thumb2_movxf_fpa): Likewise.
14710 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14711 f_loadd and f_stored.
14712 (*thumb2_movdi_vfp): Likewise.
14713 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14714 (*thumb2_movsi_vfp): Likewise.
14715 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14716 Use f_loads instead of f_load.
14717 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14719 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14721 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14722 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14723 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14724 (xtensa_mode_dependent_address_p): New function.
14725 (constantpool_address_p): Make static. Change return type to bool.
14726 Change argument type to const_rtx. Use CONST_INT_P predicate.
14728 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14731 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14733 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14736 * cfgexpand.c (expand_debug_expr): Instead of generating
14737 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14740 2011-01-20 Richard Guenther <rguenther@suse.de>
14742 PR middle-end/47370
14743 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14744 the pointer operand of MEM_REFs.
14746 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14748 PR tree-optimization/46130
14749 * ipa-split.c (consider_split): If return_bb contains non-virtual
14750 PHIs other than for retval or if split_function would not adjust it,
14753 2011-01-20 Richard Guenther <rguenther@suse.de>
14755 PR tree-optimization/47167
14756 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14757 Revert previous change, only avoid enumeral type changes.
14759 2011-01-19 Mike Stump <mikestump@comcast.net>
14761 * doc/tm.texi.in (BRANCH_COST): Englishify.
14762 * doc/tm.texi (BRANCH_COST): Likewise.
14764 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14767 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14768 (gen_scheduled_generic_parms_dies): New functions.
14769 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14770 generation for the end of CU compilation.
14771 (dwarf2out_finish): Generate template parameters DIEs here.
14773 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14776 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14777 debug bind stmt on merge edges.
14779 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14783 * function.c (instantiate_expr): Instantiate incoming rtl of
14784 implicit arguments, and recurse on VALUE_EXPRs.
14785 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14786 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14788 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14790 * c-parser.c (c_parser_for_statement): Initialize
14791 collection_expression.
14793 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14795 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14797 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14799 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14800 (LINK_SHLIB_SPEC): Don't use %(link_path).
14801 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14803 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14805 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14806 (NO_SHARED_LIB_SUPPORT): Remove.
14807 (LINK_SHLIB_SPEC): Remove one conditional definition.
14809 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14811 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14813 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14814 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14815 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14816 %{call_shared} and conditionals on these options not being passed.
14817 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14820 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14822 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14825 * ipa-split.c: Spelling fixes.
14827 2011-01-19 Richard Henderson <rth@redhat.com>
14829 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14830 (*mulsi3): Likewise.
14832 * longlong.h [__mn10300__] (count_leading_zeros): New.
14833 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14834 [__mn10300__] (add_ssaaaa, subddmmss): New.
14835 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14836 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14838 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14840 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14842 2011-01-19 Richard Henderson <rth@redhat.com>
14844 * config/mn10300/mn10300.md (addsi3_flags): New.
14845 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14846 (subsi3_flags, subc_internal, subdi3): New.
14847 (subdi3_internal, *subdi3_degenerate): New.
14848 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14850 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14851 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14852 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14853 * config/mn10300/mn10300-protos.h: Update.
14854 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14855 (return_ret): Likewise. Rename from return_internal_regs.
14856 (return_internal): Remove.
14858 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14859 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14860 (mn10300_legitimate_constant_p): Likewise.
14861 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14862 (mn10300_frame_size): New.
14863 (mn10300_expand_prologue): Use it.
14864 (mn10300_expand_epilogue): Likewise.
14865 (mn10300_initial_offset): Likewise.
14866 * config/mn10300/mn10300-protos.h: Update.
14867 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14868 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14869 (prologue, epilogue, return_internal): Tidy output code.
14870 (mn10300_store_multiple_operation, return): Likewise.
14871 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14872 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14873 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14874 (load_pic, am33_load_pic): New.
14875 (mn10300_load_pic0, mn10300_load_pic1): New.
14877 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14878 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14879 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14880 (cc_flags_for_mode, cc_flags_for_code): New.
14881 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14882 overflow flag is not valid. Validate that the flags we need
14883 for the comparison are valid.
14884 (mn10300_output_cmp): Remove.
14885 (mn10300_output_add): New.
14886 (mn10300_select_cc_mode): Use cc_flags_for_code.
14887 (mn10300_split_cbranch): New.
14888 (mn10300_match_ccmode): New.
14889 (mn10300_split_and_operand_count): New.
14890 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14892 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14893 (addsi3): ... here. Use mn10300_output_add.
14894 (*addsi3_flags): New.
14895 (*am33_subsi3, *mn10300_subsi3): Merge...
14896 (subsi3): ... here. Use attribute isa.
14897 (*subsi3_flags): New.
14898 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14900 (*am33_andsi3, *mn10300_andsi3): Merge...
14901 (andsi3): ... here.
14902 (*andsi3_flags): New.
14903 (andsi3 splitters): New.
14904 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14905 (iorsi3): ... here.
14906 (*iorsi3_flags): New.
14907 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14908 (xorsi3): ... here.
14909 (*xorsi3_flags): New.
14910 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14911 (one_cmplsi2): ... here.
14912 (*one_cmplsi2_flags): New.
14913 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14914 instead of "dax" in constraints. Use mn10300_split_cbranch.
14915 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14916 use matching constraints to eliminate a self-comparison.
14917 (*integer_conditional_branch): Rename from integer_conditional_branch.
14918 Use int_mode_flags to match CC_REG.
14919 (*cbranchsi4_btst, *btstsi): New.
14920 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14921 mn10300_split_cbranch.
14922 (*am33_cmpsf): Rename from am33_cmpsf.
14923 (*float_conditional_branch): Rename from float_conditional_branch.
14924 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14925 (zero_extendqisi2): ... here.
14926 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14927 (zero_extendhisi2): ... here.
14928 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14929 (extendqisi2): ... here.
14930 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14931 (extendhisi2): ... here.
14932 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14933 (ashlsi3): ... here.
14934 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14935 (lshrsi3): ... here.
14936 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14937 (ashrsi3): ... here.
14938 (consecutive add peephole): Remove.
14939 * config/mn10300/predicates.md (label_ref_operand): New.
14940 (int_mode_flags): New.
14941 (CCZN_comparison_operator): New.
14943 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14944 (throughput_42_latency_43): New reservation.
14945 (mulsidi3, umulsidi3): New expanders.
14946 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14947 the MDR register to allocation; separately allocate the low and
14948 high parts of the DImode result.
14949 (umulsidi3_internal): Similarly.
14950 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14951 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14952 (udivsi3, umodsi3): Remove.
14953 (udivmodsi4, divmodsi4): New expanders.
14954 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14955 (*divmodsi4): Simiarly.
14956 (ext_internal): New.
14958 * config/mn10300/constraints.md ("z"): New constraint.
14959 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14960 (FIXED_REGISTERS): Don't fix MDR.
14961 (CALL_USED_REGSITERS): Reformat nicely.
14962 (REG_ALLOC_ORDER): Add MDR.
14963 (enum regclass): Add MDR_REGS.
14964 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14965 (IRA_COVER_CLASSES): Add MDR_REGS.
14966 (REGNO_REG_CLASS): Handle MDR_REG.
14967 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14968 (mn10300_register_move_cost): Likewise.
14969 * config/mn10300/mn10300.md (MDR_REG): New.
14970 (*movsi_internal): Handle moves to/from MDR_REGS.
14972 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14974 (mn10300_secondary_reload): Tidy combination reload classes.
14975 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14976 addresses for AM33. Allow symbolic offsets for reg+imm.
14977 (mn10300_regno_in_class_p): New.
14978 (mn10300_legitimize_reload_address): New.
14979 * config/mn10300/mn10300.h (enum reg_class): Remove
14980 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14981 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14982 SP_OR_GENERAL_REGS.
14983 (REG_CLASS_NAMES): Update to match.
14984 (REG_CLASS_CONTENTS): Likewise.
14985 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14986 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14987 (REGNO_IN_RANGE_P): Remove.
14988 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14989 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14990 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14991 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14992 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14993 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14994 (REGNO_GENERAL_P): New.
14995 (HAVE_POST_MODIFY_DISP): New.
14996 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14997 (LEGITIMIZE_RELOAD_ADDRESS): New.
14998 * config/mn10300/mn10300-protos.h: Update.
15000 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15001 DATA_REGS for AM33 stack-pointer destination.
15002 (mn10300_preferred_output_reload_class): Likewise.
15003 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15004 into a form appropriate for ...
15005 (TARGET_SECONDARY_RELOAD): New.
15006 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15007 * config/mn10300/mn10300-protos.h: Update.
15008 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15009 reload_insi; use the "A" constraint for the scratch; handle AM33
15010 moves of sp to non-address registers.
15012 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15013 (*movqi_internal): ... here.
15014 (*am33_movhi, *mn10300_movhi): Merge into...
15015 (*movhi_internal): ... here.
15016 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15017 as the source/destination of moves from/to SP.
15018 (movsf): Only allow for AM33-2.
15019 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15020 any integer constant constraint. Only allow for AM33-2. Tidy
15021 all of the alternative outputs.
15022 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15023 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15025 (udivsi3, umodsi3): New patterns for MN103 only.
15027 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15029 * doc/tm.texi.in: Spell out that a lack of register class unions
15031 * doc/tm.texi: Regenerate.
15033 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15035 PR rtl-optimization/47337
15036 * dce.c (check_argument_store): New function.
15037 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15039 PR tree-optimization/47290
15040 * tree-eh.c (infinite_empty_loop_p): New function.
15041 (cleanup_empty_eh): Use it.
15043 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15046 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15047 (a64_expand_widen_sum): Ditto.
15048 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15049 (vec_extract_evenodd_help): Ditto.
15050 (vec_extract_evenv4hi): Ditto.
15051 (vec_extract_oddv4hi): Ditto.
15052 (vec_extract_evenv2si): Ditto.
15053 (vec_extract_oddv2si): Ditto.
15054 (vec_extract_evenv2sf): Ditto.
15055 (vec_extract_oddv2sf): Ditto.
15056 (vec_pack_trunc_v4hi: Ditto.
15057 (vec_pack_trunc_v2si): Ditto.
15058 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15059 (vec_interleave_highv8qi): Ditto.
15061 (vec_extract_oddv8qi): Ditto.
15062 (vec_interleave_lowv4hi): Ditto.
15063 (vec_interleave_highv4hi): Ditto.
15064 (vec_interleave_lowv2si): Ditto.
15065 (vec_interleave_highv2si): Ditto.
15067 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15069 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15070 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15071 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15072 (pa_c_mode_for_suffix): New.
15073 (TARGET_EXPAND_BUILTIN): Define.
15074 (TARGET_C_MODE_FOR_SUFFIX): Define.
15075 (pa_builtins): Define.
15076 (pa_init_builtins): Register __float128 type and init new support
15078 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15079 * config/pa/quadlib.c (_U_Qfcopysign): New.
15081 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15083 PR middle-end/46894
15084 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15085 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15088 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15090 PR tree-optimization/47179
15091 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15092 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15094 2011-01-18 Richard Guenther <rguenther@suse.de>
15096 PR rtl-optimization/47216
15097 * emit-rtl.c: Include tree-flow.h.
15098 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15099 of replicating it with different semantics.
15100 * Makefile.in (emit-rtl.o): Adjust.
15102 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15104 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15105 (cortex_a9_dp): Handle neon types correctly.
15107 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15109 PR rtl-optimization/47299
15110 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15111 subtarget. Use normal multiplication if both operands are constants.
15112 * expmed.c (expand_widening_mult): Don't try to optimize constant
15113 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15116 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15118 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15119 spacing after 'e.g.', typos, comma, hyphenation.
15121 2011-01-17 Richard Henderson <rth@redhat.com>
15123 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15124 (rx_restricted_mem_operand): New.
15125 (rx_shift_operand): Use register_operand.
15126 (rx_source_operand, rx_compare_operand): Likewise.
15127 * config/rx/rx.md (addsi3_flags): New expander.
15128 (adddi3): Rewrite as expander.
15129 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15130 (subsi3_flags): New expander.
15131 (subdi3): Rewrite as expander.
15132 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15134 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15135 (rx_init_builtins): Remove sat builtin.
15136 (rx_expand_builtin): Likewise.
15137 * config/rx/rx.md (ssaddsi3): New.
15138 (*sat): Rename from sat. Represent the CC_REG input.
15140 * config/rx/predicates.md (rshift_operator): New.
15141 * config/rx/rx.c (rx_expand_insv): Remove.
15142 * config/rx/rx-protos.h: Update.
15143 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15144 operand to the canonical position.
15145 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15146 (*bitclr, *bitclr_in_memory): Similarly.
15147 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15148 (insv): Retain the zero_extract in the expansion.
15150 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15151 (bswaphi2, bitinvert, revw): Likewise.
15153 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15154 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15155 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15156 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15157 (bitset, bitset_in_memory): Likewise.
15158 (bitinvert, bitinvert_in_memory): Likewise.
15159 (bitclr, bitclr_in_memory): Likewise.
15160 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15161 (rx_strend, rx_cmpstrn): Likewise.
15162 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15163 (bitop peep2 patterns): Remove.
15165 * config/rx/rx.c (rx_match_ccmode): New.
15166 * config/rx/rx-protos.h: Update.
15167 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15168 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15169 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15170 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15171 (fix_truncsfsi2, floatsisf2): Likewise.
15172 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15173 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15174 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15175 (*subsi3_flags, *xorsi3_flags): New.
15177 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15179 * config/rx/rx.c (rx_print_operand): Remove workaround for
15180 unsplit comparison operations.
15182 * config/rx/rx.md (movsicc): Split after reload.
15183 (*movsicc): Merge *movsieq and *movsine via match_operator.
15184 (*stcc): New pattern.
15186 * config/rx/rx.c (rx_float_compare_mode): Remove.
15187 * config/rx/rx.h (rx_float_compare_mode): Remove.
15188 * config/rx/rx.md (cstoresi4): Split after reload.
15189 (*sccc): New pattern.
15191 * config/rx/predicates.md (label_ref_operand): New.
15192 (rx_z_comparison_operator): New.
15193 (rx_zs_comparison_operator): New.
15194 (rx_fp_comparison_operator): New.
15195 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15196 Validate that the flags are set properly for the comparison.
15197 (rx_gen_cond_branch_template): Remove.
15198 (rx_cc_modes_compatible): Remove.
15199 (mode_from_flags): New.
15200 (flags_from_code): Rename from flags_needed_for_conditional.
15201 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15202 (rx_select_cc_mode): Likewise.
15203 (rx_split_fp_compare): New.
15204 (rx_split_cbranch): New.
15205 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15206 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15207 (*cbranchsf4): Similarly.
15208 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15209 match_operator and rx_split_cbranch.
15210 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15211 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15212 (*cmpsi): Rename from cmpsi.
15213 (*tstsi): Rename from tstsi.
15214 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15215 (*conditional_branch): Rename from conditional_branch.
15216 (*reveresed_conditional_branch): Remove.
15217 (b<code>): Remove expander.
15218 * config/rx/rx-protos.h: Update.
15220 * config/rx/rx.c (rx_compare_redundant): Remove.
15221 * config/rx/rx.md (cmpsi): Don't use it.
15222 * config/rx/rx-protos.h: Update.
15224 * config/rx/rx-modes.def (CC_F): New mode.
15225 * config/rx/rx.c (rx_select_cc_mode): New.
15226 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15227 * config/rx/rx-protos.h: Update.
15229 2011-01-17 Richard Henderson <rth@redhat.com>
15231 * except.c (dump_eh_tree): Fix stray ; after for statement.
15233 2011-01-17 Richard Guenther <rguenther@suse.de>
15235 PR tree-optimization/47313
15236 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15237 handling before copying the body. Properly deal with
15238 by-reference result in SSA form.
15240 2011-01-17 Ian Lance Taylor <iant@google.com>
15243 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15244 (struct_value_alias_set): Don't define.
15245 (sparc_option_override): Don't set sparc_sr_alias_set and
15246 struct_value_alias_set.
15247 (save_or_restore_regs): Use gen_frame_mem rather than calling
15249 (sparc_struct_value_rtx): Likewise.
15251 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15254 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15255 (_mm_maskstore_pd): Likewise.
15256 (_mm_maskload_ps): Likewise.
15257 (_mm_maskstore_ps): Likewise.
15258 (_mm256_maskload_pd): Change mask to __m256i.
15259 (_mm256_maskstore_pd): Likewise.
15260 (_mm256_maskload_ps): Likewise.
15261 (_mm256_maskstore_ps): Likewise.
15263 * config/i386/i386-builtin-types.def: Updated.
15264 (ix86_expand_special_args_builtin): Likewise.
15266 * config/i386/i386.c (bdesc_special_args): Update
15267 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15268 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15269 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15270 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15272 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15273 Use <avxpermvecmode> on mask register.
15274 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15276 2011-01-17 Olivier Hainque <hainque@adacore.com>
15277 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15278 Eric Botcazou <ebotcazou@adacore.com>
15281 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15282 if <= USHRT_MAX in 32-bit mode.
15284 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15286 * doc/install.texi (Configuration, Specific): Wrap long
15287 lines in examples. Allow line wrapping in long options
15288 and URLs where beneficial for PDF output.
15290 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15292 * config/mips/mips.c (mips_classify_symbol): Don't return
15293 SYMBOL_PC_RELATIVE for nonlocal labels.
15295 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15297 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15299 2011-01-15 Jan Hubicka <jh@suse.cz>
15301 PR tree-optimization/47276
15302 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15303 declarations as needed.
15305 2011-01-15 Martin Jambor <mjambor@suse.cz>
15307 * common.opt (fdevirtualize): New flag.
15308 * doc/invoke.texi (Option Summary): Document it.
15309 * opts.c (default_options_table): Add devirtualize flag.
15310 * ipa-prop.c (detect_type_change): Return immediately if
15311 devirtualize flag is not set.
15312 (detect_type_change_ssa): Likewise.
15313 (compute_known_type_jump_func): Likewise.
15314 (ipa_analyze_virtual_call_uses): Likewise.
15316 2011-01-14 Martin Jambor <mjambor@suse.cz>
15318 PR tree-optimization/45934
15319 PR tree-optimization/46302
15320 * ipa-prop.c (type_change_info): New type.
15321 (stmt_may_be_vtbl_ptr_store): New function.
15322 (check_stmt_for_type_change): Likewise.
15323 (detect_type_change): Likewise.
15324 (detect_type_change_ssa): Likewise.
15325 (compute_complex_assign_jump_func): Check for dynamic type change.
15326 (compute_complex_ancestor_jump_func): Likewise.
15327 (compute_known_type_jump_func): Likewise.
15328 (compute_scalar_jump_functions): Likewise.
15329 (ipa_analyze_virtual_call_uses): Likewise.
15330 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15332 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15334 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15335 * config/i386/i386.opt (msse5): New Alias.
15337 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15339 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15340 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15341 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15342 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15344 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15346 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15348 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15349 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15350 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15351 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15353 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15355 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15357 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15359 2011-01-14 Mike Stump <mikestump@comcast.net>
15361 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15362 * config/fr30/fr30.md: Likweise
15363 (movsi_push): Likewise.
15364 (movsi_pop): Likewise.
15365 (enter_func): Likewise.
15366 * config/moxie/moxie.md (movsi_push): Likewise.
15367 (movsi_pop): Likewise.
15369 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15371 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15372 %{no_archive} %{exact_version}.
15373 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15374 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15375 %{no_archive} %{exact_version}.
15376 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15377 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15378 * config/mips/vxworks.h: Likewise.
15380 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15382 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15384 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15386 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15387 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15389 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15391 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15394 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15396 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15398 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15399 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15401 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15402 Don't handle -shlib.
15404 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15406 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15407 (CC1_SPEC): Don't handle -profile.
15409 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15411 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15412 * config/mips/mips.h (CC1_SPEC): Likewise.
15414 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15416 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15417 * config/mips/mips.h (CC1_SPEC): Likewise.
15419 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15421 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15422 * config/m32r/linux.h (LINK_SPEC): Likewise.
15423 * config/mips/linux.h (LINK_SPEC): Likewise.
15424 * config/mips/linux64.h (LINK_SPEC): Likewise.
15425 * config/sparc/linux.h (LINK_SPEC): Likewise.
15426 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15427 LINK_SPEC): Likewise.
15428 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15430 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15432 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15434 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15436 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15438 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15439 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15441 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15443 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15445 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15447 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15448 supports -Bstatic/-Bdynamic.
15449 * configure: Regenerate.
15451 2011-01-14 Jan Hubicka <jh@suse.cz>
15452 Jack Howarth <howarth@bromo.med.uc.edu>
15455 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15456 when checking debug_info_level. Test write_symbols instead of
15457 debug_hooks->var_location when setting flag_var_tracking_uninit.
15459 2011-01-14 Richard Guenther <rguenther@suse.de>
15461 PR tree-optimization/47179
15462 * target.def (ref_may_alias_errno): New target hook.
15463 * targhooks.h (default_ref_may_alias_errno): Declare.
15464 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15465 (default_ref_may_alias_errno): New function.
15466 * target.h (struct ao_ref_s): Declare.
15467 * tree-ssa-alias.c: Include target.h.
15468 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15469 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15470 (targhooks.o): Likewise.
15471 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15472 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15474 2011-01-14 Richard Guenther <rguenther@suse.de>
15476 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15478 2011-01-14 Richard Guenther <rguenther@suse.de>
15480 PR tree-optimization/47280
15481 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15482 return CFG changes.
15483 (tree_ssa_forward_propagate_single_use_vars): Deal with
15484 CFG changes from associate_plusminus.
15486 2011-01-14 Richard Guenther <rguenther@suse.de>
15488 PR middle-end/47281
15490 2011-01-11 Richard Guenther <rguenther@suse.de>
15492 PR tree-optimization/46076
15493 * tree-ssa.c (useless_type_conversion_p): Conversions from
15494 unprototyped to empty argument list function types are useless.
15496 2011-01-14 Richard Guenther <rguenther@suse.de>
15498 PR tree-optimization/47286
15499 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15501 2011-01-14 Martin Jambor <mjambor@suse.cz>
15503 PR middle-end/46823
15504 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15506 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15508 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15509 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15510 * config/xtensa/xtensa.c (xtensa_libcall_value,
15511 xtensa_function_value_regno_p): New functions.
15512 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15514 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15517 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15519 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15520 New function prototype.
15521 * config/i386/winnt.c (i386_pe_assemble_visibility):
15522 Warn only if attribute was specified by user.
15524 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15527 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15529 (floatunsdidf2_fcfidu): Ditto.
15531 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15533 * config/s390/s390.c (print_operand_address): Replace 'error' with
15534 'output_operand_lossage'.
15535 (print_operand): Likewise.
15537 2011-01-13 Jeff Law <law@redhat.com>
15539 PR rtl-optimization/39077
15540 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15541 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15542 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15543 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15544 * gcse.c (prune_insertions_deletions): New function.
15545 (compute_pre_data): Use it.
15547 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15550 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15552 (prune_unused_types_mark): Use it.
15554 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15556 PR rtl-optimization/45352
15557 * sel-sched.c: Update copyright years.
15558 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15559 in the advancing loop when we have issued issue_rate insns.
15561 2011-01-12 Richard Henderson <rth@redhat.com>
15563 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15564 (TARGET_MD_ASM_CLOBBERS): New.
15566 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15567 (TARGET_DELEGITIMIZE_ADDRESS): New.
15569 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15570 (clzsi2, *bsch): New patterns.
15572 * config/mn10300/mn10300.md (INT): New mode iterator.
15573 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15575 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15576 flag_split_wide_types.
15578 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15579 (mn10300_trampoline_init): Rewrite without a template, an immediate
15580 load and a direct branch.
15581 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15583 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15585 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15586 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15587 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15588 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15590 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15593 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15596 2011-01-12 Jan Hubicka <jh@suse.cz>
15599 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15600 (PLUGIN_COND_CLOSE): New macro.
15601 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15603 2011-01-12 Richard Guenther <rguenther@suse.de>
15606 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15607 register variables in a MEM_REF.
15609 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15611 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15612 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15613 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15614 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15615 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15616 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15617 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15618 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15619 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15620 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15621 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15622 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15623 * config/gnu-user.h: New. Copied from linux.h.
15624 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15625 GNU_USER_TARGET_STARTFILE_SPEC.
15626 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15627 GNU_USER_TARGET_ENDFILE_SPEC.
15628 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15629 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15630 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15631 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15632 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15633 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15634 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15635 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15636 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15637 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15638 * config/arm/linux-eabi.h (CC1_SPEC): Use
15639 GNU_USER_TARGET_CC1_SPEC.
15640 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15641 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15642 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15643 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15644 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15645 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15646 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15647 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15649 2011-01-12 Richard Guenther <rguenther@suse.de>
15652 * doc/invoke.texi (ffast-math): Document it is turned on
15655 2011-01-12 Jan Hubicka <jh@suse.cz>
15657 PR tree-optimization/47233
15658 * opts.c (common_handle_option): Disable ipa-reference with profile
15661 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15663 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15666 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15668 * c-parser.c (c_lex_one_token): Updated and reindented some
15669 comments. No changes in code.
15671 2011-01-11 Ian Lance Taylor <iant@google.com>
15673 * godump.c (go_output_var): Don't output the variable if there is
15674 already a type with the same name.
15676 2011-01-11 Ian Lance Taylor <iant@google.com>
15678 * godump.c (go_format_type): Don't generate float80.
15680 2011-01-11 Richard Henderson <rth@redhat.com>
15682 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15683 declaration. Rewrite for both speed and size.
15684 (mn10300_address_cost_1): Remove.
15685 (mn10300_register_move_cost): New.
15686 (mn10300_memory_move_cost): New.
15687 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15688 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15689 extensions, shifts, BSWAP, CLZ.
15690 (mn10300_wide_const_load_uses_clr): Remove.
15691 (TARGET_REGISTER_MOVE_COST): New.
15692 (TARGET_MEMORY_MOVE_COST): New.
15693 * config/mn10300/mn10300-protos.h: Update.
15694 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15696 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15697 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15698 * config/mn10300/mn10300-protos.h: Update.
15699 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15700 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15701 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15702 (*test_int_bitfield, *test_byte_bitfield): Remove.
15703 (*bit_test, *subreg_bit_test): Remove.
15704 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15706 * config/mn10300/constraints.md ("c"): Rename from "A".
15707 ("A", "D"): New constraint letters.
15708 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15709 (fmssf4, fnmasf4, fnmssf4): Likewise.
15711 * config/mn10300/mn10300.md (isa): New attribute.
15712 (enabled): New attribute.
15714 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15715 (abssf2, negsf2): Define only for hardware fp.
15716 (sqrtsf2): Reformat.
15717 (addsf3, subsf3, mulsf3): Merge expander and insn.
15719 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15720 (DEBUGGER_AUTO_OFFSET): Remove.
15721 (DEBUGGER_ARG_OFFSET): Remove.
15723 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15724 Emit register stores with the same offsets as the hardware.
15725 (mn10300_store_multiple_operation): Don't check that the register
15726 save offsets are monotonic.
15727 * config/mn10300/mn10300-protos.h: Update.
15729 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15731 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15732 in terms of the value on the stack, not the MDR register.
15734 2011-01-11 Jan Hubicka <jh@suse.cz>
15738 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15739 (symbol_alias_set_destroy, symbol_alias_set_contains,
15740 propagate_aliases_backward): Declare.
15741 * lto-streamer-out.c (struct sets): New sturcture.
15742 (trivally_defined_alias): New function.
15743 (output_alias_pair_p): Rewrite.
15744 (output_unreferenced_globals): Fix output of alias pairs.
15745 (produce_symtab): Likewise.
15746 * ipa.c (function_and_variable_visibility): Set weak alias destination
15748 * varasm.c (symbol_alias_set_t): Remove.
15749 (symbol_alias_set_destroy): Export.
15750 (propagate_aliases_forward, propagate_aliases_backward): New functions
15752 (compute_visible_aliases): ... this one; remove.
15753 (trivially_visible_alias): New
15754 (trivially_defined_alias): New.
15755 (remove_unreachable_alias_pairs): Rewrite.
15756 (finish_aliases_1): Reorganize code checking if alias is defined.
15757 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15760 2011-01-11 Richard Guenther <rguenther@suse.de>
15762 PR tree-optimization/46076
15763 * tree-ssa.c (useless_type_conversion_p): Conversions from
15764 unprototyped to empty argument list function types are useless.
15766 2011-01-11 Richard Guenther <rguenther@suse.de>
15768 PR middle-end/45235
15769 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15770 volatile MEMs as MEM_READONLY_P.
15772 2011-01-11 Richard Guenther <rguenther@suse.de>
15774 PR tree-optimization/47239
15775 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15777 2011-01-11 Jeff Law <law@redhat.com>
15779 PR tree-optimization/47086
15780 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15781 IVs from statements that might throw.
15783 2011-01-10 Jan Hubicka <jh@suse.cz>
15786 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15788 2011-01-10 Jan Hubicka <jh@suse.cz>
15791 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15792 when correcting profile.
15794 2011-01-10 Jan Hubicka <jh@suse.cz>
15797 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15798 DECL_FINI_PRIORITY.
15799 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15800 Restore DECL_FINI_PRIORITY.
15802 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15804 * doc/gimple.texi: Fix quoting of multi-word return values in
15805 @deftypefn statements. Ensure presence of return value. Wrap
15806 overlong @deftypefn lines.
15807 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15808 descriptions of removed functions.
15809 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15810 of multi-word return value in @deftypefn statement.
15812 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15814 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15815 (Conditional Expressions, Logical Operators)
15816 (Statement and operand traversals): Do not indent smallexample
15817 code. Fix duplicate function argument in example.
15819 2011-01-10 Jeff Law <law@redhat.com>
15821 PR tree-optimization/47141
15822 * ipa-split.c (split_function): Handle case where we are
15823 returning a value and the return block has a virtual operand phi.
15825 2011-01-10 Jan Hubicka <jh@suse.cz>
15827 PR tree-optimization/47234
15828 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15829 (pass_feedback_split_functions): Declare.
15830 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15832 * ipa-split.c (gate_split_functions): Update comments; disable
15833 split-functions for profile_arc_flag and branch_probabilities.
15834 (gate_feedback_split_functions): New function.
15835 (execute_feedback_split_functions): New function.
15836 (pass_feedback_split_functions): New global var.
15838 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15841 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15842 calling gimple_call_set_cannot_inline.
15844 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15846 * config/darwin-sections.def: Remove unused section.
15848 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15851 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15853 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15856 * c-parser.c (c_parser_declaration_or_fndef): Improved
15859 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15861 * config/i386/winnt.c (i386_pe_start_function): Make sure
15862 to switch back to function's section.
15864 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15868 * plugin.c: Move include of dlfcn.h from here...
15869 * system.h: ... to here.
15871 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15873 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15875 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15876 two extra empty pages in PDF output.
15878 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15881 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15882 for error recovery purposes behave as if it was not specified so
15883 that the default type is usd.
15885 2011-01-07 Jan Hubicka <jh@suse.cz>
15887 PR tree-optmization/46469
15888 * ipa.c (function_and_variable_visibility): Clear needed flags on
15889 nodes with external decls; handle weakrefs merging correctly.
15891 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15893 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15896 2011-01-07 Jan Hubicka <jh@suse.cz>
15898 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15899 and no longer claim that gold is required for linker plugin.
15900 * configure: Regenerate.
15901 * gcc.c (PLUGIN_COND): New macro.
15902 (LINK_COMMAND_SPEC): Use it.
15903 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15904 * config.in (HAVE_LTO_PLUGIN): New.
15905 * configure.ac (--with-lto-plugin): New parameter; autodetect
15908 2011-01-07 Jan Hubicka <jh@suse.cz>
15910 PR tree-optimization/46367
15911 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15912 when we can update original.
15913 (cgraph_mark_inline_edge): Sanity check.
15914 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15916 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15918 * config/spu/spu.h (ASM_COMMENT_START): Define.
15920 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15923 * gcc.c (%>S): New.
15924 (SWITCH_KEEP_FOR_GCC): Likewise.
15925 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15926 (do_spec_1): Handle "%>".
15928 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15930 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15933 * config/i386/i386.c (ix86_delegitimize_address): If
15934 simplify_gen_subreg fails, return orig_x.
15937 * value-prof.c (gimple_stringop_fixed_value): Handle
15938 lhs of the call properly.
15940 2011-01-07 Jan Hubicka <jh@suse.cz>
15943 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15945 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15947 * target.def (function_switched_text_sections): New hook.
15948 * doc/tm.texi: Regenerated.
15949 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15950 * final.c (default_function_switched_text_sections): New.
15951 (final_scan_insn): Call function_switched_text_sections when a
15952 mid-function section change occurs.
15953 * output.h (default_function_switched_text_sections): Declare.
15954 * config/darwin-protos.h (darwin_function_switched_text_sections):
15956 * config/darwin.c (darwin_function_switched_text_sections): New.
15957 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15959 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15961 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15962 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15963 the secondary code fragment when outputting for DWARF == 2.
15965 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15967 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15968 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15970 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15971 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15973 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15976 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15977 when it is not empty.
15979 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15982 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15983 (case ${target}): Add btver1.
15984 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15985 -march=native recognize btver1 processors.
15986 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15987 btver1 def_and_undef
15988 * config/i386/i386.c (struct processor_costs btver1_cost): New
15990 (m_BTVER1): New definition.
15991 (m_AMD_MULTIPLE): Includes m_BTVER1.
15992 (initial_ix86_tune_features): Add btver1 tune.
15993 (processor_target_table): Add btver1 entry.
15994 (static const char *const cpu_names): Add btver1 entry.
15995 (software_prefetching_beneficial_p): Add btver1.
15996 (ix86_option_override_internal): Add btver1 instruction sets.
15997 (ix86_issue_rate): Add btver1.
15998 (ix86_adjust_cost): Add btver1.
15999 * config/i386/i386.h (TARGET_BTVER1): New definition.
16000 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16001 (enum processor_type): Add PROCESSOR_BTVER1.
16002 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16004 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16007 * config/i386/i386.c (legitimize_tls_address)
16008 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16009 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16010 (tls_initial_exec_64_sun): New pattern.
16012 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16014 * doc/invoke.texi (Overall Options): Improve wording and markup
16015 of the description of -wrapper.
16017 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16019 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16020 rdynamic, threads): New Driver options.
16022 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16025 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16026 if coming from .tdata.
16027 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16029 2011-01-06 Jan Hubicka <jh@suse.cz>
16032 * collect2.c (main): Do not enable LTOmode when plugin is active.
16034 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16037 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16038 --version output if supported.
16039 * configure: Regenerate.
16041 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16043 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16046 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16049 * c-convert.c (convert): When converting a complex expression
16050 other than COMPLEX_EXPR to a different complex type, ensure
16051 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16052 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16053 when converting COMPLEX_TYPE.
16055 2011-01-06 Ira Rosen <irar@il.ibm.com>
16057 PR tree-optimization/47139
16058 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16059 only the last reduction value is used outside the loop. Update
16062 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16064 * config/rtems.opt: New.
16065 * config.gcc (*-*-rtems*): Use rtems.opt.
16067 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16069 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16070 processors do not support 3DNow instructions.
16072 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16074 * config/spu/spu.c (spu_option_override): Set parameter
16075 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16077 2011-01-05 Jan Hubicka <jh@suse.cz>
16079 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16080 at the command line.
16082 2011-01-05 Martin Jambor <mjambor@suse.cz>
16085 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16086 deltas on streamed outgoing edges.
16087 (output_node_opt_summary): Output info for outgoing edges only when
16088 the node is in new parameter set.
16089 (output_cgraph_opt_summary): New parameter set, passed to the two
16090 aforementioned functions. Update its forward declaration and its
16093 2011-01-05 Tom Tromey <tromey@redhat.com>
16095 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16096 operator to c_finish_omp_atomic.
16097 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16098 (build_unary_op): Update.
16099 (build_modify_expr): Update.
16100 (build_asm_expr): Update.
16102 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16104 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16105 newly inserted insns.
16106 (pad_bb): Likewise.
16107 (spu_emit_branch_hint): Likewise.
16108 (insert_hbrp_for_ilb_runout): Likewise.
16109 (spu_machine_dependent_reorg): Call df_finish_pass after
16110 schedule_insns returns.
16112 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16114 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16116 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16118 PR tree-optimization/47005
16119 * tree-sra.c (struct access): Add 'non_addressable' bit.
16120 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16121 (decide_one_param_reduction): Return 0 if the parameter is passed by
16122 reference and one of the accesses in the group is non_addressable.
16124 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16126 PR tree-optimization/47056
16127 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16128 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16129 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16131 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16133 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16134 initializer. Skip view conversions from aggregate types.
16136 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16139 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16141 2011-01-04 Philipp Thomas <pth@suse.de>
16143 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16146 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16148 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16149 on empty epilogue sequences.
16151 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16153 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16154 non-static): New Driver options.
16156 2011-01-04 Jie Zhang <jie@codesourcery.com>
16159 * gcc.c (default_compilers[]): Set combinable field to 0
16160 for all assembly languages.
16162 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16164 * config/mips/loongson3a.md: New file.
16165 * config/mips/mips.md: Include loongson3a.md.
16166 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16169 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16171 PR middle-end/47017
16172 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16173 instead of convert_memory_address_addr_space on the base expression.
16175 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16177 * config/spu/spu.c (spu_option_override): Update error text
16178 for bad -march= / -mtune= values.
16180 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16182 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16183 if branch-hint optimization will be performed.
16185 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16187 PR tree-optimization/47148
16188 * ipa-split.c (split_function): Convert arguments to
16189 DECL_ARG_TYPE if possible.
16191 PR tree-optimization/47155
16192 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16193 when computing uns.
16195 PR rtl-optimization/47157
16196 * combine.c (try_combine): If undobuf.other_insn becomes
16197 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16198 and set *new_direct_jump_p too.
16200 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16202 PR tree-optimization/47021
16203 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16205 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16207 * gcc.c (process_command): Update copyright notice dates.
16208 * gcov.c (print_version): Likewise.
16209 * gcov-dump.c (print_version): Likewise.
16210 * mips-tfile.c (main): Likewise.
16211 * mips-tdump.c (main): Likewise.
16213 2011-01-03 Martin Jambor <mjambor@suse.cz>
16215 PR tree-optimization/46801
16216 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16217 aggregate fields start at byte boundary instead of the bit-field flag.
16219 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16222 * gcc.c (main): Revert revision 168407.
16224 2011-01-03 Martin Jambor <mjambor@suse.cz>
16226 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16228 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16230 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16231 vector optab to expand vector/scalar shift, update gimple to vector.
16233 2011-01-03 Martin Jambor <mjambor@suse.cz>
16235 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16238 2011-01-03 Martin Jambor <mjambor@suse.cz>
16240 PR tree-optimization/46984
16241 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16243 (cgraph_create_indirect_edge): Fixed line length.
16244 (cgraph_indirect_call_info): Declare.
16245 (cgraph_make_edge_direct) Update declaration.
16246 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16247 (cgraph_create_indirect_edge): Use it.
16248 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16250 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16251 the new thunk_delta representation.
16252 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16254 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16255 (ipa_read_indirect_edge_info): Likewise.
16256 * lto-cgraph.c (output_edge_opt_summary): New function.
16257 (output_node_opt_summary): Call it on all outgoing edges.
16258 (input_edge_opt_summary): New function.
16259 (input_node_opt_summary): Call it on all outgoing edges.
16261 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16264 * gcc.c (main): Don't check have_o when settting combine_inputs.
16266 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16268 * regrename.c: Add general comment describing the pass.
16269 (struct du_head): Remove 'length' field.
16270 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16271 (regrename_optimize): Do not sort chains. Rework comments, add others.
16272 Force renaming to the preferred class (if any) in the first pass and do
16273 not consider registers that belong to it in the second pass.
16274 (create_new_chain): Do not set 'length' field.
16275 (scan_rtx_reg): Likewise.
16277 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16279 PR tree-optimization/47140
16280 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16281 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16282 to bit_value_binop.
16284 PR rtl-optimization/47028
16285 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16286 parm_birth_insn instead of at the beginning of first bb.
16288 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16290 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16291 Remove the word "see" before "@pxref".
16292 * doc/rtl.texi: Remove the word "see" before "@pxref".
16294 2011-01-01 Jan Hubicka <jh@suse.cz>
16296 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16299 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16302 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16305 Copyright (C) 2011 Free Software Foundation, Inc.
16307 Copying and distribution of this file, with or without modification,
16308 are permitted in any medium without royalty provided the copyright
16309 notice and this notice are preserved.