1 2011-06-01 Martin Jambor <mjambor@suse.cz>
3 * ipa-utils.c (ipa_dfs_info): New field scc_no.
4 * ipa-utils.c (searchc): Set scc_no.
6 2011-06-01 Martin Jambor <mjambor@suse.cz>
8 * ipa-utils.c (searchc_env): New field allow_overwritable.
9 (searchc): do not ignore edges to overwritable nodes if indicated
10 by env->allow_overwritable.
11 (ipa_reduced_postorder): Set env.allow_overwritable.
13 2011-06-01 Richard Guenther <rguenther@suse.de>
15 * tree.c (free_lang_data): Do not reset boolean_type_node nor
17 * lto-streamer.c (lto_record_common_node): Take node pointer,
18 do not register types.
19 (lto_preload_common_nodes): Explicitly skip preloading nodes
20 that differ between frontends.
22 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
24 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
27 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
29 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
30 parameter value for dump. Dump cost on outermost call only.
31 (rs6000_memory_move_cost): Dump cost on outermost call only.
33 2011-05-31 Jakub Jelinek <jakub@redhat.com>
35 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
36 DW_OP_GNU_convert ops.
38 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
39 cselib_preserve_constants.
40 (cselib_lookup_1): If cselib_preserve_constants,
41 a new VALUE is being created for REG and there is a VALUE for the
42 same register in wider mode, add another loc with lowpart SUBREG of
44 (cselib_subst_to_values): Handle ENTRY_VALUE.
45 * var-tracking.c (replace_expr_with_values): Return NULL for
47 * dwarf2out.c (convert_descriptor_to_signed): New function.
48 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
49 instead of two shifts.
50 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
51 the right mode if needed.
52 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
53 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
54 convert_descriptor_to_signed.
55 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
56 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
59 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
61 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
63 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
64 of X87MODEI12 and SWI48x instead of SSEMODEI24.
65 (SWI248x): New mode iterator, rename from X87MODEI.
66 (X87MODEI): Remove mode iterator.
70 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
72 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
73 * doc/invoke.texi: Document max-vartrack-expr-depth.
74 * var-tracking.c (EXPR_DEPTH): New.
75 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
77 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
79 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
80 * config/i386/sse.md: Add n to negated FMA pattern names.
82 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
84 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
86 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
88 * gengtype-state.c (read_state_params_structs): Initialize previous.
90 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
92 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
93 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
95 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
97 * config/i386/i386.md (*movtf_internal): Avoid allocating general
98 registers. Penalize F*r->o alternative to prevent partial memory
99 stalls. Slightly penalize *roF->*r alternative. Generate SSE
100 CONST_DOUBLE immediates when optimizing function for size. Do not move
101 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
102 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
103 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
104 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
106 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
108 (fp_register_operand splitters): Use fp_register_operand
109 constraint. Do not use FP_REG_P in insn condition.
110 (any_fp_register_operand splitters): Use any_fp_register_operand
111 constraint. Do not use ANY_FP_REG_P in insn condition.
113 2011-05-31 Jan Hubicka <jh@suse.cz>
115 * cgraph.h (cgraph_inline_failed_t): Give enum a name
116 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
117 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
118 (lto_output_edge): Use output_enum and var_len_unsigned.
119 (lto_output_varpool_node): Likewise.
120 (input_overwrite_node): Do not take resolution parameter;
121 extract it from a bitpack.
122 (input_node): Do not read resolution; use input_enum and
124 (input_varpool_node): Likewise.
125 (input_edge): Likewise.
126 (input_cgraph_1): Likewise.
128 2011-05-31 Richard Guenther <rguenther@suse.de>
130 * gimple.c (gimple_register_canonical_type): Do not register
131 any types via gimple_register_type.
133 2011-05-31 Jan Hubicka <jh@suse.cz>
135 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
138 2011-05-31 Jakub Jelinek <jakub@redhat.com>
140 PR rtl-optimization/49235
141 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
142 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
144 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
146 PR tree-optimization/49093
147 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
150 2011-05-31 Dodji Seketeli <dodji@redhat.com>
153 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
154 for concrete functions containing the code of cloned functions.
156 2011-05-31 Richard Guenther <rguenther@suse.de>
158 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
160 (forward_propagate_into_comparison_1): ... this.
161 (forward_propagate_comparison): Rename to ...
162 (forward_propagate_into_comparison): ... this. Split out
163 real forward propagation code to ...
164 (forward_propagate_comparison): ... this.
165 (forward_propagate_into_gimple_cond): Remove looping.
166 (forward_propagate_into_cond): Likewise.
167 (simplify_not_neg_expr): Return whether we have done something.
168 (simplify_gimple_switch): Likewise.
169 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
170 (ssa_forward_propagate_and_combine): ... this. Re-structure
171 to do a forward forward-propagation walk on BBs and a backward
172 stmt combining walk on BBs. Consistently re-scan changed statements.
173 (pass_forwprop): Adjust.
175 2011-05-30 Ian Lance Taylor <iant@google.com>
177 * godump.c (go_format_type): Correct length of name added to
178 obstack for anonymous field.
180 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
183 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
184 part of the second operand is 0.
186 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
188 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
189 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
190 to memory for !TARGET_MEMORY_MISMATCH_STALL.
191 (*movdf_internal_rex64): Do not penalize F->r alternative.
192 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
193 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
194 when optimizing function for size. Do not move CONST_DOUBLEs
195 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
196 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
197 SUBREGs. Do not check for MEM_P operands in the insn condition,
198 check for ANY_FP_REGNO_P instead.
199 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
200 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
202 * config/i386/i386.c (ix86_option_override_internal): Do not
203 set TARGET_INTEGER_DFMODE_MOVES here.
205 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
208 * config/i386/i386.md (*movtf_internal): Handle misaligned
211 2011-05-30 Jakub Jelinek <jakub@redhat.com>
213 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
214 DW_TAG_rvalue_reference_type even for
215 -gdwarf-4 -fno-debug-types-section.
217 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
219 PR tree-optimization/46728
220 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
221 (build_and_insert_binop): New.
222 (gimple_expand_builtin_pow): Reorder args for
223 build_and_insert_call; use build_and_insert_binop; add more
224 optimizations for fractional exponents.
226 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
231 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
233 * tree.h (struct tree_identifier): Inherit from tree_typed, not
235 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
236 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
237 TS_BASE instead of TS_COMMON.
238 * varasm.c (assemble_name): Remove assert.
240 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
242 * config.gcc: Keep obselete list sorted.
244 2011-05-30 Jakub Jelinek <jakub@redhat.com>
245 Eric Botcazou <ebotcazou@adacore.com>
247 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
248 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
249 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
250 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
251 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
253 2011-05-30 Richard Guenther <rguenther@suse.de>
255 * gimple.c (gimple_types_compatible_p_1): Compare record
256 and union type members properly.
258 2011-05-30 Richard Guenther <rguenther@suse.de>
260 PR tree-optimization/49210
261 * ipa-split.c (split_function): Care for the case where the call
262 result is not trivially convertible to the result holding variable.
264 2011-05-30 Richard Guenther <rguenther@suse.de>
266 PR tree-optimization/49218
267 * tree-vrp.c (adjust_range_with_scev): Properly check whether
270 2011-05-30 Richard Guenther <rguenther@suse.de>
272 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
273 New function split out from ...
274 (forward_propagate_into_gimple_cond): ... here. Adjust.
275 (forward_propagate_into_cond): Likewise.
276 (forward_propagate_comparison): Also propagate into
277 comparisons on assignment RHS. Change return value to
278 behave similar to forward_propagate_into_cond.
279 (tree_ssa_forward_propagate_single_use_vars): Handle
280 strict-overflow warnings properly for forward_propagate_comparison.
282 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
284 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
286 * configure: Regenerate.
288 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
290 PR tree-optimization/49199
291 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
292 non-reduction operands are either defined in the loop or by induction.
294 2011-05-29 Xinliang David Li <davidxl@google.com>
296 * opts-global.c (handle_common_deferred_options): Handle new options.
297 * passes.c (register_one_dump_file): Call register_pass_name.
298 (execute_one_pass): Check explicit enable/disable flag.
299 (passr_hash): New function.
301 (register_pass_name): Ditto.
302 (get_pass_by_name): Ditto.
305 (enable_pass): Ditto.
306 (disable_pass): Ditto.
307 (is_pass_explicitly_enabled_or_disabled): Ditto.
309 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
311 * config/i386/i386.md (*movoi_internal_avx): Use
312 standard_sse_constant_opcode for alternative 0.
313 (*movti_internal_sse): Ditto.
314 (*movti_internal_rex64): Use standard_sse_constant_opcode for
316 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
318 (*movsi_internal): Ditto.
319 (*movdi_internal): Ditto. Add ssecvt type moves.
321 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
324 * rtlanal.c (simplify_subreg_regno): Adjust comment.
326 2011-05-29 Jakub Jelinek <jakub@redhat.com>
328 PR rtl-optimization/49095
329 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
330 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
332 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
335 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
336 recurse_p argument. Only follow register copies if it is set,
337 and prevent mips_find_pic_call_symbol from recursing.
338 (mips_find_pic_call_symbol): Add a recurse_p argument.
339 Pass it to mips_pic_call_symbol_from_set.
340 (mips_annotate_pic_calls): Update accordingly.
342 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
344 * emit-rtl.c (try_split): Use a loop to search for
345 NOTE_INSN_CALL_ARG_LOCATIONs.
347 2011-05-29 Richard Guenther <rguenther@suse.de>
349 PR tree-optimization/49217
350 * ipa-pure-const.c (propagate_pure_const): Fix typos.
352 2011-05-28 Jan Hubicka <jh@suse.cz>
354 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
356 (string_slot_free): Remove
357 (create_output_block): Initialize obstack.
358 (destroy_output_block): Free obstack.
359 (lto_string_index): Add PERSISTENT parameter; do not duplicate
360 the string unless it needs to be added into the hash.
361 (lto_output_string_with_length): Add persistent attribute;
363 (lto_output_string): Add PERSISTENT parameter.
364 (output_string_cst, output_identifier): Simplify.
365 (lto_output_location_bitpack): Update.
366 (lto_output_builtin_tree): Update.
367 * lto-streamer.h (struct output_block): Add obstack.
368 (lto_output_string, lto_output_string_with_length): Remove
369 declarations; functions are static now.
371 2011-05-28 Jan Hubicka <jh@suse.cz>
373 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
374 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
375 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
376 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
377 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
378 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
379 unpack_ts_decl_with_vis_value_fields,
380 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
381 lto_get_builtin_tree): Use enum and variable length i/o.
382 * basic-block.h (profile_status_d): Add PROFILE_LAST.
383 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
385 (bp_pack_enum, bp_unpack_enum): New macros.
387 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
389 * genrecog.c: Remove redundant forward declarations.
391 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
393 * config.gcc: Deprecate mips*-*-openbsd*.
395 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
398 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
401 2011-05-27 Andrew Pinski <pinskia@gmail.com>
404 * gengtype.c (vec_prefix_type): New function.
405 (note_def_vec): Use vec_prefix_type and change the length
406 attribute to be based on the prefix.
407 * vec.c: Include coretypes.h before vec.h.
408 (struct vec_prefix): Remove.
409 (vec_gc_p_reserve): Change the offsetof to sizeof.
410 (vec_gc_p_reserve_exact): Likewise.
411 (vec_heap_p_reserve): Likewise.
412 (vec_heap_p_reserve_exact): Likewise.
413 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
414 (vec_stack_p_reserve): Change the offsetof to sizeof.
415 (vec_stack_p_reserve_exact): Likewise.
416 * vec.h (struct vec_prefix): New struct definition.
417 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
418 (VEC_T_GTY(T,B)): Likewise.
419 (DEF_VEC_FUNC_P(T)): Use prefix field.
420 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
421 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
423 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
425 PR tree-optimization/46728
426 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
427 (powi_as_mults): Add gimple_set_location.
428 (build_and_insert_call): New.
429 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
430 0.5, 0.25, 0.75, 1./3., or 1./6.
432 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
434 * doc/contrib.texi: Update copyright years.
435 (Contributors): Add Zdenek Sojka.
437 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
439 * c-decl.c (c_push_function_context): Copy the current statement
441 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
442 (finish_struct): Call building_stmt_list_p instead of checking
444 * c-parser.c (c_parser_postfix_expression): Likewise.
445 * c-typeck.c (c_end_compound_stmt): Likewise.
446 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
447 * tree-iterator.c (stmt_list_cache): Change to a VEC.
448 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
449 (free_stmt_list): Likewise.
450 * tree.h (struct tree_statement_list): Include typed_tree instead
452 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
453 as TS_TYPED instead of TS_COMMON.
455 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
456 Uros Bizjak <ubizjak@gmail.com>
458 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
459 (HAVE_AS_IX86_TLSGDPTL): Define.
460 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
461 (HAVE_AS_IX86_TLSLDMPLT): Define.
462 * configure: Regenerate.
463 * config.in: Regenerate.
464 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
465 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
466 TARGET_SUN_TLS, use @tlsgdplt or @plt.
467 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
468 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
470 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
472 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
474 * sched-int.h (struct _haifa_deps_insn_data): New members cond
476 (INSN_COND, INSN_REVERSE_COND): New macros.
477 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
479 (sched_get_condition_with_rev): Cache the results, and look them up
481 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
482 are clobbered by the current insn.
483 * target.def (exposed_pipline): New sched data hook.
484 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
485 * doc/tm.texi: Regenerate.
487 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
489 PR tree-optimization/49170
490 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
493 2011-05-27 Richard Guenther <rguenther@suse.de>
496 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
499 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
501 * haifa-sched.c (sched_scan_info): Remove.
502 (schedule_block): Call sched_extend_luids rather than sched_init_luids
504 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
506 (sched_scan): Remove.
507 (sched_extend_luids): Renamed from luids_extend_insn and no longer
508 static. All callers changed.
509 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
510 static. All callers changed.
511 (sched_init_luids): Remove all arguments except the first. All
512 callers changed. Don't use sched_scan.
513 (haifa_init_h_i_d): Likewise.
514 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
515 manually rather than using sched_init_luids. Likewise with
516 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
517 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
518 rather than sched_init_luids with NULL args.
519 * sel-sched-ir.c (new_insns): Remove variable.
520 (sched_scan): New static function, previously in haifa-sched.c. Remove
521 all arguments but the first two; all callers changed.
522 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
523 rather than sched_init_luids.
524 (sel_init_bbs): Remove second argument. All callers changed.
525 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
527 (create_insn_rtx_from_pattern): Likewise.
528 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
529 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
530 (sched_init_insn_luid, sched_extend_luids): Declare.
531 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
534 2011-05-27 Richard Guenther <rguenther@suse.de>
537 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
538 A CMP B ? (T) true : (T) false for non-integral types T again.
540 2011-05-27 Jan Hubicka <jh@suse.cz>
542 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
543 so 0 means NULL string.
544 (lto_output_string_with_length): ... here.
545 (lto_output_string, output_string_cst, output_identifier): Update
546 handling of NULL strings.
547 (lto_output_location_bitpack): New function.
548 (lto_output_location): Use it.
549 (lto_output_tree_ref): Use output_record_start.
550 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
552 * lto-streamer-in.c (string_for_index): Break out from ...; offset
554 (input_string_internal): ... here;
555 (input_string_cst, input_identifier, lto_input_string): Update handling
557 (lto_input_location_bitpack): New function
558 (lto_input_location): Use it.
559 (unpack_ts_type_common_value_fields): Pack align & alias in var len
561 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
562 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
563 (bp_pack_value): Sanity check the value range.
564 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
566 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
569 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
571 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
572 call_arg_location instructions down the floor.
574 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
576 PR rtl-optimization/49154
577 * ira.c (setup_pressure_classes): Process class without sublcasses
578 as a candidate for pressure classes.
580 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
582 PR rtl-optimization/48575
583 * genrecog.c (position_type): New enum.
584 (position): New structure.
585 (decision): Use position structure instead of a string.
586 (root_pos, peep2_insn_pos_list): New variables.
587 (next_position, compare_positions): New functions.
588 (new_decision): Use position structures instead of strings.
589 (maybe_both_true): Likewise.
590 (change_state): Likewise.
591 (write_tree): Likewise.
592 (make_insn_sequence): Likewise.
594 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
596 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
597 TS_BASE instead of TS_COMMON.
598 (find_decls_types_r): Check for TS_TYPED structure before looking at
600 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
602 (BLOCK_CHAIN): Use new chain field.
604 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
606 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
607 moves expensive on Power7 also.
609 2011-05-26 Richard Guenther <rguenther@suse.de>
611 * fold-const.c (fold_unary_loc): Remove bogus code.
613 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
615 * tree.h (struct tree_identifier): Inherit from tree_typed, not
617 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
618 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
619 TS_BASE instead of TS_COMMON.
620 * varasm.c (assemble_name): Remove assert.
622 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
624 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
626 * libgcc-std.ver: Delete file.
628 2011-05-26 Richard Guenther <rguenther@suse.de>
630 PR tree-optimization/48702
631 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
632 only when we know the base address is within bounds.
633 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
634 assume the base address of TARGET_MEM_REFs is in bounds.
636 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
639 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
640 declaration in TARGET_SOLARIS.
642 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
644 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
645 The instruction is then expanded explicitly.
646 (supported_compare): Callable instruction.
649 2011-05-26 Jakub Jelinek <jakub@redhat.com>
652 * gimplify.c (shortcut_cond_r): Don't special case
653 COND_EXPRs if they have void type on one of their arms.
655 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
657 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
658 to reduce duplication, and to achieve a slightly more logical order
661 2011-05-26 Jakub Jelinek <jakub@redhat.com>
663 PR tree-optimization/49161
664 * tree-vrp.c (struct case_info): New type.
665 (compare_case_labels): Sort case_info structs instead of
666 trees, and not primarily by CASE_LABEL uids but by
667 label_for_block indexes.
668 (find_switch_asserts): Put case labels into struct case_info
669 array instead of TREE_VEC, adjust sorting, compare label_for_block
670 values instead of CASE_LABELs.
672 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
674 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
675 ("orndi3_neon"): Likewise.
676 ("bic<mode>3_neon"): Likewise.
678 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
680 PR tree-optimization/49038
681 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
682 Ensure at least one epilogue iteration if required by data
684 * tree-vectorizer.h (struct _loop_vec_info): Add new field
685 to mark loops that require peeling for gaps.
686 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
687 (vect_get_known_peeling_cost): Take peeling for gaps into
689 (vect_transform_loop): Generate epilogue if required by data
691 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
692 loop as requiring an epilogue if there are gaps in the end of
695 2011-05-25 Ian Lance Taylor <iant@google.com>
697 * godump.c (go_format_type): Output the first field with a usable
700 2011-05-25 Ian Lance Taylor <iant@google.com>
702 * godump.c (go_format_type): Check for invalid type names, pointer
703 target types, and struct field types.
705 2011-05-25 Jason Merrill <jason@redhat.com>
707 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
709 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
711 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
713 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
715 * config/i386/i386.md (*movqi_extv_1)): Put back
716 "register_operand" check in "type" calculation.
717 (*movqi_extzv_2): Likewise.
719 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
721 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
723 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
726 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
727 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
728 __divxc3, __divtc3): Wrap definitions in #ifndef.
730 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
733 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
734 "register_operand" check and replace q_regs_operand with
735 QIreg_operand in "type" calculation.
736 (*movqi_extv_1): Likewise.
737 (*movqi_extzv_2_rex64): Likewise.
738 (*movqi_extzv_2): Likewise.
740 * config/i386/predicates.md (QIreg_operand): New.
742 2011-05-25 Richard Guenther <rguenther@suse.de>
744 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
745 type-based offset disambiguation, streamline MEM_REF and
746 TARGET_MEM_REF handling.
748 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
750 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
751 (bdesc_special_args): Add pause intrinsic.
753 * config/i386/i386.md (UNSPEC_PAUSE): New.
756 * config/i386/ia32intrin.h (__pause): Likewise.
758 * doc/extend.texi (X86 Built-in Functions): Add documentation for
761 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
763 PR tree-optimization/46728
764 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
765 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
767 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
769 * tree.h (struct tree_exp): Inherit from struct tree_typed.
770 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
771 instead of TS_COMMON.
773 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
775 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
776 LIBGCC2_GNU_PREFIX is defined.
778 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
779 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
780 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
781 __clz_tab): Define using __N.
782 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
783 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
784 * target.def (libfunc_gnu_prefix): New hook.
785 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
786 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
787 * doc/tm.texi: Regenerate.
788 * system.h (LIBGCC2_GNU_PREFIX): Poison.
789 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
791 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
792 (init_optabs): Likewise for the bswap libfuncs.
793 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
795 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
796 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
797 * libgcc-std.ver: Remove.
798 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
799 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
801 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
802 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
803 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
804 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
805 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
806 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
807 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
808 * config/fixed-bit.h (FIXED_OP): Define differently depending on
809 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
810 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
812 2011-05-25 Jan Hubicka <jh@suse.cz>
814 * lto-streamer-out.c (output_record_start): Use lto_output_enum
815 (lto_output_tree): Use output_record_start.
816 * lto-streamer-in.c (input_record_start): Use lto_input_enum
817 (lto_get_pickled_tree): Use input_record_start.
818 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
819 (lto_value_range_error): New function.
820 * lto-streamer.h (lto_value_range_error): Declare.
821 (lto_output_int_in_range, lto_input_int_in_range): New functions.
822 (lto_output_enum, lto_input_enum): New macros.
824 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
826 * common.opt (flag_stack_usage_info): New variable.
827 (-Wstack-usage): New option.
828 * doc/invoke.texi (Warning options): Document -Wstack-usage.
829 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
830 <OPT_fstack_usage>: Likewise.
831 * toplev.c (output_stack_usage): Handle -Wstack-usage.
832 * calls.c (expand_call): Test flag_stack_usage_info variable instead
834 (emit_library_call_value_1): Likewise.
835 * explow.c (allocate_dynamic_stack_space): Likewise.
836 * function.c (instantiate_virtual_regs ): Likewise.
837 (prepare_function_start): Likewise.
838 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
839 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
840 * config/arm/arm.c (arm_expand_prologue): Likewise.
841 (thumb1_expand_prologue): Likewise.
842 * config/avr/avr.c (expand_prologue): Likewise.
843 * config/i386/i386.c (ix86_expand_prologue): Likewise.
844 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
845 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
846 * config/mips/mips.c (mips_expand_prologue): Likewise.
847 * config/pa/pa.c (hppa_expand_prologue): Likewise.
848 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
849 * config/s390/s390.c (s390_emit_prologue): Likewise.
850 * config/sh/sh.c (sh_expand_prologue): Likewise.
851 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
852 * config/spu/spu.c (spu_expand_prologue): Likewise.
854 2011-05-25 Richard Guenther <rguenther@suse.de>
856 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
857 (gimple_canonical_types_compatible_p): Likewise.
859 2011-05-25 Jan Hubicka <jh@suse.cz>
862 * ipa.c (function_and_variable_visibility): Only add to same
863 comdat group list if DECL_ONE_ONLY.
865 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
867 PR rtl-optimization/49014
868 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
870 2011-05-25 Jakub Jelinek <jakub@redhat.com>
873 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
875 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
877 PR rtl-optimization/48757
878 * ira-build.c (loop_with_eh_edge_p): Rename to
879 loop_with_complex_edge_p, check edges on complexity, make function
881 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
884 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
886 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
887 force flag_ira_share_save_slots to 0.
889 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
891 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
892 (vt_initialize): Set PROLOGUE_BB unconditionally.
893 Add block comment about CFA_BASE_RTX machinery.
894 Reset FP_CFA_OFFSET to -1 on all invalid paths.
895 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
897 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
900 * c-parser.c (c_parser_objc_class_instance_variables): More robust
901 parsing of syntax error in ObjC instance variable lists. In
902 particular, avoid an infinite loop if there is a stray ']'.
903 Updated error message.
905 2011-05-24 Ian Lance Taylor <iant@google.com>
907 * godump.c (go_define): Don't accept a string immediately after
910 2011-05-24 Ian Lance Taylor <iant@google.com>
912 * godump.c (struct godump_container): Add invalid_hash field.
913 (go_format_type): Return false if type is found in invalid_hash.
914 (go_output_typedef): Add invalid type to invalid_hash.
915 (go_finish): Create and delete invalid_hash.
917 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
919 PR tree-optimization/46728
920 * tree-ssa-math-opts.c (powi_table): New.
921 (powi_lookup_cost): New.
923 (powi_as_mults_1): New.
924 (powi_as_mults): New.
925 (gimple_expand_builtin_powi): New.
926 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
927 (gate_cse_sincos): Remove sincos/cexp restriction.
929 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
932 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
934 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
935 * mips-tdump.c: Likewise.
937 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
940 * config/i386/driver-i386.c (host_detect_local_cpu): Always
941 add -mno-XXX. Handle FMA.
943 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
945 PR rtl-optimization/48633
946 * ira-build.c (loop_with_eh_edge_p): New function.
947 (mark_loops_for_removal): Use it.
949 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
951 PR rtl-optimization/48971
952 * ira.c (setup_pressure_classes): Don't check register move cost
953 for classes with one registers. Don't add pressure class if there
954 is a pressure class with the same available hard registers.
955 Check contains_reg_of_mode. Fix a typo in collecting
956 temp_hard_regset. Ignore hard registers not belonging to a class.
958 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
961 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
963 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
964 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
966 PR gcov-profile/48845
967 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
969 2011-05-24 Richard Guenther <rguenther@suse.de>
971 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
972 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
973 (gimple_types_compatible_p_1): Adjust.
974 (iterative_hash_canonical_type): Do not bother about complete vs.
976 (gimple_canonical_types_compatible_p): Likewise.
978 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
980 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
982 2011-05-24 Richard Guenther <rguenther@suse.de>
985 * gimple.c (gimple_register_canonical_type): Revert
987 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
988 does not for a tree for the case where it matters. Cache
989 pointer-type alias-sets.
991 2011-05-24 Joseph Myers <joseph@codesourcery.com>
993 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
994 (OBJS): Remove options.o, opts-common.o and prefix.o.
995 (OBJS-libcommon-target): New.
996 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
997 (BACKEND): Include libcommon-target.a.
998 (MOSTLYCLEANFILES): Include libcommon-target.a.
999 (libcommon-target.a): New.
1000 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1003 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1005 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1006 parts of output shared with the driver.
1007 * optc-gen.awk: Don't generate parts of output not shared with the
1009 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1010 * doc/options.texi (SourcerInclude): Mention options-save.c.
1011 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1012 (OBJS): Add options-save.o.
1013 (options-save.c, options-save.o): New.
1014 (options.o): Update dependencies.
1015 (gcc-options.o): Remove.
1016 (mostlyclean): Remove options-save.c.
1018 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1021 * dbxout.c: Include cgraph.h.
1022 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1023 and without value expr, return NULL if no varpool node exists for
1024 it or if it is not needed.
1025 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1028 * c-decl.c (start_decl): Convert expr to void_type_node.
1030 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1032 PR rtl-optimization/48826
1033 * emit-rtl.c (try_split): When splitting a call that is followed
1034 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1036 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1038 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1039 parameters passed in memory prefer using DECL_INCOMING_RTL over
1040 the pseudos it will be copied into.
1042 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1045 * config/i386/i386.c (ix86_option_override_internal): Save the
1046 initial options after checking vzeroupper.
1048 2011-05-23 David Li <davidxl@google.com>
1050 PR tree-optimization/48988
1051 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1052 Initialize has_valid_pred for each pred chain.
1054 2011-05-23 Richard Guenther <rguenther@suse.de>
1056 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1057 (iterative_hash_gimple_type): Always hash type names.
1059 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1061 * c-typeck.c (build_function_call_vec): Tweak call to
1062 check_function_arguments.
1064 2011-05-23 Richard Guenther <rguenther@suse.de>
1066 PR tree-optimization/49115
1067 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1068 is not necessarily carried out, do not claim it kills the ref.
1069 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1071 2011-05-23 Richard Guenther <rguenther@suse.de>
1074 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1075 what pointer types we accept for folding.
1077 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1079 * gthr-gnat.c: Remove.
1080 * gthr-gnat.h: Remove.
1081 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1082 * config/t-freebsd (LIB2ADDEH): Likewise.
1083 * config/t-linux (LIB2ADDEH): Likewise.
1084 * config/t-sol2 (LIB2ADDEH): Likewise.
1085 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1086 * configure.ac (target_thread_file): Remove gnat handling.
1087 * configure: Regenerate.
1088 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1090 2011-05-23 Tristan Gingold <gingold@adacore.com>
1091 Eric Botcazou <ebotcazou@adacore.com>
1093 * gcov.c (create_file_names): If no object directory is specified,
1094 keep the directory of the file.
1096 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1098 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1099 * configure: Regenerate.
1101 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1104 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1105 failed and the comparison has a single bit signed type, use
1106 constm1_rtx instead of const1_rtx for true value.
1107 (do_store_flag): If ops->type is single bit signed type, disable
1108 signel bit test optimization and pass -1 instead of 1 as last
1109 parameter to emit_store_flag_force.
1111 2011-05-23 Tom de Vries <tom@codesourcery.com>
1114 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1116 (infer_loop_bounds_from_undefined): Use new function.
1118 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1120 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1121 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1122 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1124 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1126 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1128 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1129 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1132 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1134 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1136 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1138 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1139 UNSPEC_MOVE_PIC pattern.
1141 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1143 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1144 (sparc-*-rtems*): Likewise.
1145 (sparc64-*-elf*): Likewise.
1146 (sparc64-*-rtems*): Likewise.
1147 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1148 * config/sparc/t-crtin: New file.
1149 * config/sparc/t-sol2 (crti.o): Delete rule.
1151 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1152 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1153 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1154 (ENDFILE_SPEC): Add crtn.o.
1156 2011-05-22 Tom de Vries <tom@codesourcery.com>
1159 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1160 CODE_CONTAINS_STRUCT (TS_COMMON).
1162 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1165 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1166 only after deciding which mode to use.
1168 2011-05-22 Tom de Vries <tom@codesourcery.com>
1171 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1172 for call to get_shiftadd_cost.
1174 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1177 * config/i386/cpuid.h (bit_MMXEXT): New define.
1179 2011-05-22 Nick Clifton <nickc@redhat.com>
1181 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1182 initialisation of non-existant args[2] element. Use args[] array
1183 not arg[] array to pass arguments to build_function_type_list.
1185 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1187 PR tree-optimization/49087
1188 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1190 2011-05-21 Jason Merrill <jason@redhat.com>
1193 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1194 static storage duration.
1196 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1198 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1201 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1203 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1204 false if there are call-saved registers here...
1205 (sparc_can_use_return_insn_p): ...but here instead.
1206 (save_or_restore_regs): Fix thinko.
1207 (sparc_expand_prologue): Use current_function_is_leaf.
1208 (sparc_frame_pointer_required): Likewise.
1210 2011-05-21 Nick Clifton <nickc@redhat.com>
1213 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1215 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1217 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1218 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1220 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1222 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1223 * optc-gen.awk: Move common code to opt-read.awk.
1224 * opth-gen.awk: Likewise.
1225 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1227 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1229 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1231 2011-05-20 Tom de Vries <tom@codesourcery.com>
1234 * tree-ssa-loop-ivopts.c: Include expmed.h.
1235 (get_shiftadd_cost): New function.
1236 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1238 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1241 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1242 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1244 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1246 * Makefile.in: Update comment referring to $(OBJS-common).
1248 2011-05-20 Ian Lance Taylor <iant@google.com>
1250 * godump.c (go_output_typedef): Put enum constants in the macro
1251 hash table to avoid duplicate Go const definitions.
1253 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1255 * Makefile.in (LIBDEPS): Add libcommon.a.
1257 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1258 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1259 pretty-print.o and version.o.
1260 (OBJS-libcommon): New.
1261 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1262 (BACKEND): Add libcommon.a.
1263 (MOSTLYCLEANFILES): Likewise.
1265 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1266 (cpp$(exeext)): Likewise.
1267 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1268 pretty-print.o and input.o.
1269 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1270 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1272 (mips-tfile): Don't explicitly use version.o.
1273 (mips-tdump): Likewise.
1274 (gcov.o): Depend on $(DIAGNOSTIC_H).
1275 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1276 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1277 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1278 * gcov-dump.c: Include intl.h and diagnostic.h.
1279 (main): Initialize diagnostics.
1280 * gcov.c: Include diagnostic.h.
1282 (main): Initialize diagnostics.
1283 * lto-wrapper.c: Include diagnostic.h.
1284 (main): Initialize diagnostics.
1286 2011-05-20 Michael Matz <matz@suse.de>
1288 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1290 2011-05-20 Michael Matz <matz@suse.de>
1291 Richard Guenther <rguenther@suse.de>
1293 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1294 use lto_streamer_cache_append directly instead of returning a VEC.
1295 (preload_common_node): Remove.
1296 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1298 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1300 2011-05-20 Richard Guenther <rguenther@suse.de>
1302 PR tree-optimization/49079
1303 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1304 MEM_REFs correctly for the trailing array access detection.
1305 Special case constants the same way as decls for overall size
1308 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1310 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1313 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1315 PR tree-optimization/49073
1316 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1317 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1318 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1320 2011-05-20 Richard Guenther <rguenther@suse.de>
1323 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1324 of pointer types the same way the middle-end does.
1326 2011-05-20 Richard Guenther <rguenther@suse.de>
1328 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1329 or pointer-to chains. Delay all fixup to uniquify_nodes.
1331 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1333 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1334 (fma4_fmaddsub): Likewise
1336 2011-05-19 Jan Hubicka <jh@suse.cz>
1338 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1339 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1340 (type_pair_cache): New static var.
1341 (lookup_type_pair): Use fixed sized custom hash; make inline.
1342 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1343 calls of lookup_type_pair.
1344 (print_gimple_types_stats): Remove cache stats.
1345 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1348 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1350 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1351 when TARGET_RDRND is active.
1352 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1353 Generate dummy SImode target register when target is NULL.
1355 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1357 * config/arm/arm-fpus.def: New.
1358 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1360 * config/arm/arm-tables.opt: Regenerate.
1361 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1362 (arm_option_override): Don't decode FPU name to string here.
1363 * config/arm/arm.opt (mfpu=): Use Enum.
1364 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1365 Update dependencies.
1367 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1369 * collect2.c: Include diagnostic.h.
1370 (fatal_perror, fatal, error, fancy_abort): Remove.
1371 (main): Set progname. Call xmalloc_set_program_name and
1372 diagnostic_initialize.
1373 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1374 scan_libraries, resolve_lib_name): Call fatal_error instead of
1375 fatal and fatal_perror.
1376 * collect2.h (error, fatal, fatal_perror): Don't declare.
1377 * tlink.c: Include diagnostic-core.h.
1378 (recompile_files): Call fatal_error instead of fatal_perror.
1379 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1380 pretty-print.o and input.o.
1381 (collect2.o, tlink.o): Update dependencies.
1383 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1385 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1387 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1390 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1391 COMDAT group syntax, both SPARC and x86 variants.
1392 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1393 * configure: Regenerate.
1394 * config/sol2.h (TARGET_SOLARIS): Define.
1395 (PUSHSECTION_FORMAT): Remove.
1396 (SECTION_NAME_FORMAT): Define.
1397 * config/sol2.c: Include hashtab.h.
1398 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1399 expansion, using SECTION_NAME_FORMAT.
1400 (solaris_comdat_htab): New variable.
1401 (struct comdat_entry): Define.
1402 (comdat_hash): New function.
1403 (comdat_eq): New function.
1404 (solaris_elf_asm_comdat_section): New function.
1405 (solaris_define_comdat_signature): New function.
1406 (solaris_code_end): New function.
1407 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1408 (solaris_code_end): Declare.
1409 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1410 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1412 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1413 Remove ATTRIBUTE_UNUSED.
1414 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1415 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1416 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1417 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1418 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1419 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1420 (PUSHSECTION_FORMAT): Remove.
1421 (SECTION_NAME_FORMAT): Redefine.
1423 2011-05-19 Kai Tietz <ktietz@redhat.com>
1425 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1426 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1427 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1429 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1430 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1432 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1434 2011-05-19 Richard Guenther <rguenther@suse.de>
1437 * tree-object-size.c (addr_object_size): If the pointed-to
1438 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1440 2011-05-19 Richard Guenther <rguenther@suse.de>
1442 * gimple.c (gimple_types_compatible_p_1): Compare names of
1443 the types themselves.
1444 (iterative_hash_gimple_type): And hash them that way.
1445 (gimple_register_type_1): If we register a main variant properly
1446 initialize the leader to ourselves.
1448 2011-05-19 Tom de Vries <tom@codesourcery.com>
1451 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1452 get_loop_invariant_expr_id.
1453 (get_loop_invariant_expr_id): Use get_expr_id.
1454 (parm_decl_cost): New function.
1455 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1456 Improve bound cost estimation. Use different inv_expr_id for elim and
1459 2011-05-19 Tom de Vries <tom@codesourcery.com>
1462 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1463 cost_base.cost == 0.
1465 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1468 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1469 Properly handle load cast.
1471 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1473 PR tree-optimization/49039
1474 * tree-vrp.c (extract_range_from_binary_expr): For
1475 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1476 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1478 2011-05-18 Tom de Vries <tom@codesourcery.com>
1481 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1483 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1485 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1486 (*tls_global_dynamic_64): Ditto.
1487 (*tls_local_dynamic_base_32_gnu): Ditto.
1488 (*tls_local_dynamic_base_64): Ditto.
1489 (tls_initial_exec_64_sun): Ditto.
1491 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1493 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1494 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1496 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1497 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1498 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1499 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1500 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1501 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1502 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1504 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1506 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1507 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1508 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1509 target_thread_pointer, arm_structure_size_boundary, struct
1510 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1511 struct abi_name, arm_all_abis): Remove.
1512 (arm_option_override) Don't process most enumerated option values here.
1513 Don't process target_fpe_name here. Work with integer not string for
1514 structure size boundary; use separate diagnostics for each case.
1515 * config/arm/arm.h (enum float_abi_type, enum
1516 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1518 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1519 arm_structure_size_boundary): Remove.
1520 * config/arm/arm.opt (mabi=): Use Enum and Init.
1521 (arm_abi_type): New Enum and EnumValue entries.
1522 (mfloat-abi=): Use Enum and Init.
1523 (float_abi_type): New Enum and EnumValue entries.
1524 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1525 (mfp16-format=): Use Enum and Init.
1526 (arm_fp16_format_type): New Enum and EnumValue entries.
1527 (mstructure-size-boundary=): Use UInteger and Init.
1528 (mtp=): Use Enum and Init.
1529 (arm_tp_type): New Enum and EnumValue entries.
1531 2011-05-18 Richard Guenther <rguenther@suse.de>
1533 PR tree-optimization/49018
1534 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1535 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1536 gimple_has_side_effects.
1538 2011-05-18 Richard Guenther <rguenther@suse.de>
1540 * gimple.c (gimple_register_type_1): New function, split out from ...
1541 (gimple_register_type): ... here. Avoid infinite recursion.
1543 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1545 PR tree-optimization/41881
1546 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1547 reduction_chains along with a macro for its access.
1548 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1549 (destroy_loop_vec_info): Free reduction chains.
1550 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1551 (vect_is_slp_reduction): New function.
1552 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1553 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1554 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1555 definition types for reduction chains.
1556 (vect_supported_load_permutation_p): Don't allow permutations for
1558 (vect_analyze_slp_instance): Support reduction chains.
1559 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1560 (vect_get_constant_vectors): Handle reduction chains.
1561 (vect_schedule_slp_instance): Mark the first statement of the
1562 reduction chain as reduction.
1564 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1566 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1567 names for group elements access.
1568 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1569 reduction chains as well. Remove data reference and interleaving
1570 related words from the fields names.
1571 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1573 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1574 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1575 vect_update_interleaving_chain, vect_same_range_drs,
1576 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1577 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1578 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1579 vect_analyze_group_access, vect_analyze_data_ref_access,
1580 vect_create_data_ref_ptr, vect_transform_strided_load,
1581 vect_record_strided_load_vectors): Likewise.
1582 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1583 vect_model_load_cost, vectorizable_store, vectorizable_load,
1584 vect_remove_stores, new_stmt_vec_info): Likewise.
1585 * tree-vect-slp.c (vect_build_slp_tree,
1586 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1588 2011-05-18 Richard Guenther <rguenther@suse.de>
1591 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1592 operand verification.
1593 (verify_gimple_assign_binary): Likewise.
1594 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1595 to non-1-precision BOOLEAN_TYPEs.
1597 2011-05-18 Tom de Vries <tom@codesourcery.com>
1600 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1602 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1604 PR tree-optimization/49000
1605 * tree-ssa.c (execute_update_addresses_taken): Call
1606 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1607 be rewritten and decl has been marked for renaming, reset
1610 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1612 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1613 enum_opts_set when testing if attributes have set -mfpmath=.
1615 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1617 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1619 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1621 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1623 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1624 id.transform_lang_insert_block with NULL.
1626 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1628 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1629 (output_fp_compare): Change args 3 and 4 to bool.
1630 (ix86_expand_call): Change arg 6 to bool.
1631 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1632 (ix86_attr_length_vex_default): Change arg 3 to bool.
1633 * config/i386/i386.md: Update all uses.
1634 * config/i386/i386.c: Ditto.
1635 (ix86_flags_dependent): Change return type to bool.
1637 2011-05-17 Richard Guenther <rguenther@suse.de>
1639 * gimple.c (type_hash_pair_compare): Fix comparison.
1641 2011-05-17 Richard Guenther <rguenther@suse.de>
1643 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1644 case some more, fix final hash value of the non-singleton case.
1646 2011-05-17 Richard Guenther <rguenther@suse.de>
1650 2011-05-16 Richard Guenther <rguenther@suse.de>
1652 * gimple.c (gimple_types_compatible_p_1): Use names of the
1653 type itself, not its main variant.
1654 (iterative_hash_gimple_type): Likewise.
1656 2011-05-17 Richard Guenther <rguenther@suse.de>
1658 * gimple.c (gimple_register_canonical_type): Use the main-variant
1659 leader for computing the canonical type.
1661 2011-05-17 Nick Clifton <nickc@redhat.com>
1663 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1666 * config/rx/rx.md: Add peephole to remove redundant extensions
1668 (bitset_in_memory): Use rx_restricted_mem_operand.
1669 (bitinvert_in_memory): Likewise.
1670 (bitclr_in_memory): Likewise.
1672 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1673 Nick Clifton <nickc@redhat.com>
1675 * config/rx/rx.md: Add peepholes to match a register move followed
1676 by a comparison of the moved register. Replace these with an
1677 addition of zero that does both actions in one instruction.
1679 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1682 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1683 predicate to allow CONST_INT.
1684 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1686 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1688 * opts-common.c (opt_enum_arg_to_value): New.
1689 * opts.h (opt_enum_arg_to_value): Declare.
1690 * config/i386/i386.opt (fpmath): Remove.
1691 (mfpmath=): Use Enum, Init and Save.
1692 (fpmath_unit): New Enum and EnumValue entries.
1693 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1694 name for function fpmath state.
1695 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1696 * config/i386/i386.c: Include diagnostic.h.
1697 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1698 (ix86_target_string): Take enum fpmath_unit value instead of string.
1699 (ix86_debug_options): Update call to ix86_target_string.
1700 (ix86_option_override_internal): Don't process fpmath strings here.
1701 (x86_function_specific_save, ix86_function_specific_restore):
1702 Don't handle fpmath state specially.
1703 (ix86_function_specific_print): Pass fpmath state to
1704 ix86_target_string instead of printing in this function.
1705 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1706 Handle enum attributes.
1707 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1708 (ix86_valid_target_attribute_tree): Update option_strings
1709 handling. Handle fpmath as enum option.
1710 (ix86_can_inline_p): Update field names for function fpmath state.
1711 (ix86_expand_builtin): Update call to ix86_target_string.
1712 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1713 (ix86_fpmath): Remove.
1714 * config/i386/t-i386 (i386.o): Update dependencies.
1716 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1718 PR preprocessor/48677
1719 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1720 from decoded_options[0], not from itself.
1722 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1724 * config/i386/constraints.md (z): New constraint.
1725 * config/i386/i386.c (c): New mode attribute.
1726 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1727 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1728 constraint for operand 0.
1729 (*call_vzeroupper): Ditto.
1730 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1731 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1732 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1733 Use "lzm" constraint for operand 0.
1734 (*call_pop_vzeroupper): Ditto.
1735 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1736 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1737 constraint for operand 0.
1738 (*sibcall_vzeroupper): Ditto.
1739 (*sibcall_rex64_ms_sysv): Ditto.
1740 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1741 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1742 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1743 (*sibcall_pop_vzeroupper): Ditto.
1744 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1745 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1746 mode iterator. Use "<c>zm" constraint for operand 1.
1747 (*call_value_vzeroupper): Ditto.
1748 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1750 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1751 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1752 *call_value_pop_1. Use "lzm" constraint for operand 1.
1753 (*call_value_pop_vzeroupper): Ditto.
1754 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1755 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1756 mode iterator. Use "Uz" constraint for operand 1.
1757 (*sibcall_value_vzeroupper): Ditto.
1758 (*sibcall_value_rex64_ms_sysv): Ditto.
1759 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1760 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1761 constraint for operand 1.
1762 (*sibcall_value_pop_vzeroupper): Ditto.
1763 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1764 and "z" constraint for operand 2.
1765 (*tls_global_dynamic_32_gnu): Ditto.
1766 (*tls_local_dynamic_base_32_gnu): Ditto.
1767 (*tls_local_dynamic_base_64): Ditto.
1768 (*tls_local_dynamic_32_once): Ditto.
1769 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1771 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1773 2011-05-16 Richard Guenther <rguenther@suse.de>
1775 * gimple.c (gimple_types_compatible_p_1): Use names of the
1776 type itself, not its main variant.
1777 (iterative_hash_gimple_type): Likewise.
1779 2011-05-16 Richard Guenther <rguenther@suse.de>
1781 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1782 always visit pointer target and function result and argument types.
1784 2011-05-16 Jason Merrill <jason@redhat.com>
1787 * tree-inline.c (copy_statement_list): Put back recursion.
1789 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1793 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1794 * config/avr/avr.md ("*ior<mode>qi.byte0",
1795 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1797 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1800 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1801 register is needed for a function argument.
1803 2011-05-16 Richard Guenther <rguenther@suse.de>
1805 * gimple.c (struct type_hash_pair): New type.
1806 (type_hash_pair_compare): New function.
1807 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1809 2011-05-16 Revital Eres <revital.eres@linaro.org>
1811 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1813 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1815 * config/i386/i386.md (floating point move splitters): Fix
1816 usage of standard_80387_constant_p.
1817 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1819 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1821 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1823 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1825 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1826 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1827 (tree_ssa_lim_finalize): Likewise.
1829 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1831 * config/i386/constraint.md (Yd, Yx): New register constraints.
1832 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1833 Yd conditional register constraint.
1834 (*movtf_internal): Use standard_sse_constant_opcode.
1835 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1836 Yx conditional register constraint.
1837 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1838 Yd conditional register constraint. Use standard_sse_constant_p to
1839 check for valid SSE constants and call standard_sse_constant_opcode to
1841 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1842 constants and call standard_sse_constant_opcode to output SSE insn.
1843 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1844 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1845 optimize_size is set.
1846 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1848 2011-05-14 Tobias Burnus <burnus@net-b.de>
1850 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1852 2011-05-13 Martin Jambor <mjambor@suse.cz>
1854 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1855 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1856 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1857 (evaluate_conditions_for_ipcp_clone): Removed.
1858 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1859 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1860 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1862 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1864 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1865 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1866 lieu of MAY_HAVE_DEBUG_STMTS.
1867 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1868 debug statements if !MAY_HAVE_DEBUG_STMTS.
1870 2011-05-13 Martin Thuresson <martint@google.com>
1872 PR gcov-profile/47793
1873 * libgcov.c (gcov_exit): Support relative profile paths.
1874 * doc/invoke.texi (-fprofile-dir): Update for above change.
1876 2011-05-13 Richard Guenther <rguenther@suse.de>
1878 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1879 type-pair caching, do not compare hashes.
1881 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1884 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1885 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1887 2011-05-13 Kai Tietz <ktietz@redhat.com>
1889 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1890 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1891 compatible type for TRUTH_NOT_EXPR.
1893 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1895 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1896 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1897 can_create_pseudo_p ().
1899 2011-05-13 Richard Guenther <rguenther@suse.de>
1902 * gimple.c (iterative_hash_gimple_type): Revert change in
1903 pointer target and function result and argument hashing.
1905 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1907 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1908 (*movxf_internal_nointeger): Ditto.
1909 (*movdf_internal_rex64): Ditto.
1910 (*movdf_internal): Ditto.
1911 (*movdf_internal_nointeger): Ditto.
1912 (*movsf_internal): Ditto.
1913 (sincos splitters): Use can_create_pseudo ().
1915 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1917 * config/i386/i386-opts.h: New.
1918 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1919 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1920 ix86_section_threshold): Remove.
1921 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1922 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1924 (ix86_option_override_internal): Don't decode strings for options
1925 other than -march=, -mtune= and -mfpmath=. Don't allow for
1926 __attribute__ uses in remaining diagnostics for options with
1927 string arguments. Don't check for integer arguments being negative.
1928 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1929 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1930 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1931 ix86_branch_cost, ix86_section_threshold): Remove.
1932 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1934 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1936 (masm=): Use Enum and Init.
1937 (asm_dialect): New Enum and EnumValue entries.
1938 (mbranch-cost=): Use UInteger.
1939 (mlarge-data-threshold=): Use UInteger and Init.
1940 (mcmodel=): Use Enum and Init.
1941 (cmodel): New Enum and EnumValue entries.
1942 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1943 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1944 mregparm=): Use UInteger.
1945 (mstringop-strategy=): Use Enum and Init.
1946 (stringop_alg): New Enum and EnumValue entries.
1947 (mtls-dialect=): Use Enum and Init.
1948 (tls_dialect): New Enum and EnumValue entries.
1949 (mabi=): Use Enum and Init.
1950 (calling_abi): New Enum and EnumValue entries.
1951 (mveclibabi=): Use Enum and Init.
1952 (ix86_veclibabi): New Enum and EnumValue entries.
1954 2011-05-13 Nick Clifton <nickc@redhat.com>
1956 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1957 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1959 2011-05-13 Kai Tietz <ktietz@redhat.com>
1962 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1963 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1964 (gimple_boolify): Check for cast for boolean_type_node instead for
1967 2011-05-13 Richard Guenther <rguenther@suse.de>
1969 PR tree-optimization/48172
1970 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1971 multiplying by number of iterations for equal step.
1972 (vect_create_cond_for_alias_checks): Likewise.
1974 2011-05-13 Andreas Schwab <schwab@redhat.com>
1976 * configure.ac: Use AS_HELP_STRING throughout.
1977 * configure: Regenerate.
1979 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1981 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1982 (ix86_emit_restore_regs_using_mov): Likewise.
1983 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1985 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1987 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1988 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1989 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1990 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1991 RTX_OK_FOR_OLO10_P): ...here.
1992 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1995 2011-05-12 Kai Tietz <ktietz@redhat.com>
1997 * gimplify.c (gimple_boolify): Re-boolify expression
1998 arguments even if expression type is of kind BOOLEAN_TYPE.
1999 (gimplify_boolean_expr): Removed.
2000 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2001 and XOR. Additional take care that we keep expression's type.
2002 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2003 of TRUTH_AND|OR|XOR_EXPR.
2005 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2007 PR tree-optimization/48975
2008 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2009 on all bbs here and free and clear ifc_bbs at the end.
2011 2011-05-12 Richard Guenther <rguenther@suse.de>
2013 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2014 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2015 until after simple checks.
2016 (gimple_types_compatible_p): Likewise.
2017 (iterative_hash_gimple_type): Always hash pointer targets
2018 and function return and argument types.
2019 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2020 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2021 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2022 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2023 completely in the simple compare section.
2024 (gimple_register_canonical_type): Query the cache again after
2027 2011-05-12 Richard Guenther <rguenther@suse.de>
2029 PR tree-optimization/48172
2030 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2031 the number of iterations from the segment size calculation.
2032 (vect_create_cond_for_alias_checks): Adjust.
2034 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2037 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2038 if validate_subreg fails.
2040 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2042 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2043 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2046 2011-05-12 DJ Delorie <dj@redhat.com>
2048 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2049 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2050 created builtin into rx_builtins array.
2051 (rx_builtin_decl): New function.
2052 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2054 2011-05-12 DJ Delorie <dj@redhat.com>
2055 Nick Clifton <nickc@redhat.com>
2057 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2058 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2059 (rx_is_legitimate_address): Add pre-decrement and post-increment
2060 addressing in HImode and QImode. Fix test for out of range
2062 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2063 (rx_align_for_label): Test label before extracting its usage count.
2064 (rx_adjust_insn_lengths): Fix selection of insn codes.
2065 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2067 2011-05-11 Jason Merrill <jason@redhat.com>
2069 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2071 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2073 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2074 reindent the subsequent block.
2076 2011-05-11 Satoru Takabayashi <satorux@google.com>
2077 Paul Pluzhnikov <ppluzhnikov@google.com>
2079 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2080 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2081 * config.in: Add LINKER_HASH_STYLE.
2082 * configure.ac: Add --with-linker-hash-style.
2083 * configure: Regenerate.
2085 2011-05-11 Richard Guenther <rguenther@suse.de>
2088 * gimple.c (iterative_hash_canonical_type): Fix typo.
2090 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2092 * config/i386/i386.c (legitimize_tls_address)
2093 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2094 expanders directly for TARGET_GNU2_TLS. Determine pic and
2095 __tls_get_addr symbol reference here. Update call to
2096 gen_tls_global_dynamic_{32,64} for added arguments.
2097 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2098 expanders directly for TARGET_GNU2_TLS. Determine
2099 __tls_get_addr symbol reference here. Update call to
2100 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2101 unique UNSPEC REG_EQUIV to libcall block.
2102 (ix86_tls_get_addr): Declare static.
2103 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2104 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2105 Do not determine pic and __tls_get_addr symbol reference here. Do not
2106 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2107 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2108 (tls_global_dynamic_64): Add operand 2. Do not determine
2109 __tls_get_addr symbol reference here. Do not call
2110 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2111 (tls_local_dynamic_base64): Ditto for operand 1.
2113 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2115 * function.c (expand_function_start): Initialize stack_check_probe_note
2116 only if the generic stack checking mechanism is used.
2118 2011-05-11 Richard Guenther <rguenther@suse.de>
2120 PR tree-optimization/15256
2121 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2122 (A & B) | C, combine (A op CST1) op CST2.
2123 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2124 visit assigns that have uses.
2126 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2128 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2129 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2130 (unpack_ts_type_common_value_fields): ...this. Update comment.
2131 (unpack_value_fields): Adjust for renaming.
2132 (lto_input_ts_type_tree_pointers): Split into...
2133 (lto_input_ts_type_common_tree_pointer): ...this and...
2134 (lto_input_ts_type_non_common_tree_pointers): ...this.
2135 (lto_input_tree_pointers): Adjust for above split.
2136 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2137 (pack_ts_type_common_value_fields): ...this. Update comment.
2138 (lto_output_ts_type_tree_pointers): Split into...
2139 (lto_output_ts_type_common_tree_pointers): ...this and...
2140 (lto_output_ts_type_non_common_tree_pointers): ...this.
2141 (lto_output_tree_pointers): Adjust for above split.
2142 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2143 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2144 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2145 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2147 (struct tree_type): Split into...
2148 (struct tree_type_common: ...this and...
2149 (struct tree_type_with_lang_specific): ...this and...
2150 (struct tree_type_non_common): ...this. Adjust accessor macros
2152 (TYPE_VALUES_RAW): Define.
2153 (union tree_node): Update for above changes.
2154 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2156 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2157 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2158 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2159 * treestructu.def (TS_TYPE): Remove.
2160 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2163 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2166 * tree-ssa.c (reset_debug_uses): New function.
2167 * tree-flow.h (reset_debug_uses): New prototype.
2168 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2169 * tree-loop-distribution.c (generate_loops_for_partition): Call
2170 reset_debug_uses on the stmts that will be removed. Keep around
2171 all debug stmts, don't count them as bits in partition bitmap.
2172 (generate_builtin): Don't count debug stmts or labels as bits in
2175 2011-05-11 Richard Guenther <rguenther@suse.de>
2177 * gimple.c (gimple_type_hash_1): Merge with ...
2178 (gimple_type_hash): ... this.
2179 (gtc_visit): Remove mode parameter and simplify accordingly.
2180 (gimple_types_compatible_p_1): Likewise.
2181 (gimple_types_compatible_p): Likewise.
2182 (iterative_hash_gimple_type): Likewise.
2184 (gimple_type_eq): Adjust.
2186 2011-05-11 Revital Eres <revital.eres@linaro.org>
2188 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2189 enters the branch create an anti edge in the opposite direction
2190 to prevent the creation of reg-moves.
2191 * modulo-sched.c: Adjust comment to reflect the fact we are
2192 scheduling closing branch.
2193 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2194 (stage_count): New field in struct partial_schedule.
2195 (calculate_stage_count): New function.
2196 (normalize_sched_times): Rename to reset_sched_times and handle
2197 incrementing the sched time of the nodes by a constant value
2198 passed as parameter.
2199 (duplicate_insns_of_cycles): Skip closing branch.
2200 (sms_schedule_by_order): Schedule closing branch.
2201 (ps_insn_find_column): Handle closing branch.
2202 (sms_schedule): Call reset_sched_times and adjust the code to
2203 support scheduling of the closing branch.
2204 (ps_insert_empty_row): Update calls to normalize_sched_times
2205 and rotate_partial_schedule functions.
2207 2011-05-11 Richard Guenther <rguenther@suse.de>
2210 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2212 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2214 * opts.c (finish_options): Move warning settings from process_options.
2215 * toplev.c (process_options): Move warning settings to finish_options.
2217 2011-05-11 Richard Guenther <rguenther@suse.de>
2219 PR tree-optimization/18041
2220 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2221 (simplify_bitwise_binary): ... this. Handle operand conversions
2222 by applying them to the result instead.
2223 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2225 2011-05-11 Richard Guenther <rguenther@suse.de>
2227 * gimple.c (gimple_canonical_types_compatible_p): Split out
2228 from gimple_types_compatible_p and friends. Do not recurse
2229 to pointed-to types.
2230 (gimple_canonical_type_eq): Use it.
2231 (iterative_hash_canonical_type): Split out from
2232 iterative_hash_gimple_type and friends. Do not recurse
2233 to pointed-to types.
2234 (gimple_canonical_type_hash): Use it, allocate the hash here.
2236 2011-05-11 Revital Eres <revital.eres@linaro.org>
2238 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2241 2011-05-11 Revital Eres <revital.eres@linaro.org>
2243 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2244 instead of PREV_INSN.
2246 2011-05-11 Revital Eres <revital.eres@linaro.org>
2248 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2249 * loop-doloop.c (doloop_condition_get): Likewise.
2250 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2252 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2254 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2256 * tree.def (CASE_LABEL_EXPR): Add an operand.
2257 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2259 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2261 * c-decl.c (c_override_global_bindings_to_false): Remove.
2262 (global_bindings_p): Don't check
2263 c_override_global_bindings_to_false.
2264 * c-tree.h (c_override_global_bindings_to_false): Remove.
2265 * c-typeck.c (composite_type): Don't set
2266 c_override_global_bindings_to_false.
2268 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2270 PR target/48857, 48495
2271 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2273 (VSX_MOVE_MODE): Ditto.
2274 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2275 VSX vector types. Add V2DImode.
2276 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2277 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2278 (MODES_TIEABLE_P): Ditto.
2280 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2281 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2283 (init_cumulative_args): Ditto.
2284 (rs6000_function_arg_boundary): Ditto.
2285 (rs6000_function_arg_advance_1): Ditto.
2286 (rs6000_function_arg): Ditto.
2287 (rs6000_function_ok_for_sibcall): Ditto.
2288 (emit_frame_save): Ditto.
2289 (rs6000_function_value): Ditto.
2290 (rs6000_libcall_value): Ditto.
2292 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2294 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2295 i386/darwin-lib.h to $libgcc_tm_file.
2296 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2298 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2300 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2302 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2304 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2305 * config/rs6000/rs6000-tables.opt: New file (generated).
2306 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2307 rs6000/rs6000-tables.opt to extra_options.
2308 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2309 * config/rs6000/rs6000.c (rs6000_select): Remove.
2310 (processor_target_table): Move contents to rs6000-cpus.def.
2311 (darwin_rs6000_override_options): Check
2312 global_options_set.x_rs6000_cpu_index instead of
2313 rs6000_select[1].string.
2314 (rs6000_option_override_internal): Likewise.
2315 (rs6000_handle_option): Don't assert that global structures are in
2316 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2317 (rs6000_default_cpu): New variable.
2318 (rs6000_file_start): Set it instead of local default_cpu. Check
2319 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2320 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2321 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2322 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2323 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2324 rs6000_select): Remove.
2325 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2327 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2328 * config/rs6000/t-rs6000
2329 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2330 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2331 global_options_set.x_rs6000_cpu_index instead of
2332 rs6000_select[1].string.
2333 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2334 global_options_set.x_rs6000_cpu_index instead of
2335 rs6000_select[1].string.
2337 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2339 * config.gcc (libgcc_tm_file): Define instead of including files
2340 from ../../libgcc/config/ in tm_file.
2341 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2342 * configure: Regenerate.
2343 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2344 libgcc_tm.h, cs-libgcc_tm.h): New.
2345 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2346 (clean): Remove libgcc_tm.h.
2347 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2348 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2349 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2351 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2354 * config/avr/avr.c (avr_ret_register): Return unsigned int
2356 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2357 it to avr_libcall_value.
2358 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2360 (avr_expand_binop_builtin): Ditto.
2361 (avr_expand_unop_builtin): Ditto.
2363 2011-05-10 DJ Delorie <dj@redhat.com>
2365 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2366 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2367 * config/rx/rx.c (rx_align_for_label): Add label and
2368 uses_threshold parameters. Do not align when the label is not
2370 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2372 2011-05-10 Richard Guenther <rguenther@suse.de>
2374 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2375 a series of conversions and apply foldings similar to what
2377 (tree_ssa_forward_propagate_single_use_vars): Call it.
2379 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2381 PR tree-optimization/48611
2382 PR tree-optimization/48794
2383 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2384 referenced from RESX or EH_DISPATCH arguments.
2387 * dfp.c (decimal_to_decnumber): Handle conversion from
2388 dconst{1,2,m1,half}.
2390 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2392 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2393 for !flag_prefer_avx128.
2394 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2396 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2398 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2399 (fold_ternary_loc): Use expr_location_or.
2401 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2404 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2405 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2406 Pmode and mem_mode is not VOIDmode.
2408 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2410 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2411 TYPE_QUAL_RESTRICT): Convert to enum.
2413 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2415 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2416 (const_pow2_1_to_8_operand): Ditto.
2417 (const_pow2_1_to_128_operand): Ditto.
2418 (const_pow2_1_to_32768_operand): Ditto.
2419 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2420 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2421 in insn constraint to check integer value of operand 3.
2422 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2424 (PINSR_MODE): New mode iterator.
2425 (sse2p4_1): New mode attribute.
2426 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2427 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2428 iterator. Use const_int_operand instead of
2429 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2430 exact_log2 in insn constraint to check integer value of operand 3.
2432 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2434 * config/i386/sse.md (blendbits): Remove mode attribute.
2435 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2436 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2437 Check integer value of operand 3 in insn constraint.
2439 2011-05-09 Richard Guenther <rguenther@suse.de>
2441 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2443 (lto_symtab_merge): Likewise. Do not register types here.
2444 (lto_symtab_merge_decls_2): Likewise.
2445 (lto_symtab_merge_decls_1): Likewise.
2446 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2447 * gimple.c (enum gtc_mode): Declare.
2448 (gimple_types_compatible_p): Make static.
2450 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2452 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2453 temporary register to match Pmode.
2455 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2457 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2458 and *vec_concatv4si_1_avx.
2460 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2462 PR rtl-optimization/48927
2463 * ira-conflicts.c (commutative_constraint_p): Use
2464 recog_data.alternative_enabled_p to disable alternatives where
2465 "enabled" attribute is false.
2466 (get_dup_num): Ditto.
2467 * ira-lives.c (single_reg_class): Ditto.
2468 (ira_implicitly_set_insn_hard_regs): Ditto.
2470 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2472 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2473 (dataflow_set_preserve_mem_locs): Likewise.
2475 2011-05-09 Philipp Thomas <pth@suse.de>
2477 * config/mep/mep.c (mep_validate_vliw): Syntax description
2478 should not be translated.
2480 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2482 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2483 * config/mips/mips-tables.opt: New file (generated).
2484 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2485 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2486 MIPS_ARCH_OPTION_NATIVE): Define.
2487 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2489 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2490 mips_parse_cpu): Remove.
2491 (mips_cpu_info_from_opt, mips_default_arch): New.
2492 (mips_handle_option): Don't assert that global structures are in
2493 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2494 (mips_option_override): Use new variables and functions to set
2495 state of these options. Use strcmp to check for individual CPU names.
2496 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2498 * config/mips/mips.opt (march=): Use ToLower and Enum.
2499 (mips): Use ToLower, Enum and Var.
2500 (mtune=): Use ToLower and Enum.
2501 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2503 2011-05-08 Jan Hubicka <jh@suse.cz>
2505 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2506 Arrange type pairs to be UID ordered.
2507 (gimple_lookup_type_leader): Make inline.
2509 2011-05-09 Nick Clifton <nickc@redhat.com>
2512 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2516 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2519 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2521 * combine.c (simplify_comparison): Abstract out parts into...
2522 (simplify_compare_const): ... new function.
2523 (try_combine): Generalize parallel arithmetic/compare combining
2524 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2526 2011-05-08 Jan Hubicka <jh@suse.cz>
2528 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2529 (cgraph_create_virtual_clone): Call hooks once virtual clone
2531 * cgraph.h (cgraph_clone_node): Update prototype.
2532 * ipa-cp.c (ipcp_estimate_growth): Use
2533 estimate_ipcp_clone_size_and_time.
2534 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2535 * lto-cgraph.c (input_node): Update.
2536 * ipa-inline.c (recursive_inlining): Update.
2537 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2538 (evaluate_conditions_for_known_args): Break out from ...
2539 (evaluate_conditions_for_edge): ... here.
2540 (evaluate_conditions_for_ipcp_clone): New function.
2541 (inline_node_duplication_hook): Update clone summary based
2543 (estimate_callee_size_and_time): Rename to ...
2544 (estimate_node_size_and_time): take NODE instead of EDGE;
2545 take POSSIBLE_TRUTHS as argument.
2546 (estimate_callee_size_and_time): Update.
2547 (estimate_ipcp_clone_size_and_time): New function.
2548 (do_estimate_edge_time): Update.
2550 2011-05-08 Richard Guenther <rguenther@suse.de>
2554 * expmed.c (expand_shift_1): Compute adjusted constant shift
2557 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2559 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2561 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2563 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2565 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2567 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2569 2011-05-07 Jan Hubicka <jh@suse.cz>
2571 * ipa-inline-transform.c (inline_call): Account when program size
2573 * ipa-inline.c (relative_time_benefit): New function.
2574 (edge_badness): Reorganize to be power 2 based; fix thinko when
2575 computing badness for negative growth; update comments to match
2576 reality; better dumps.
2578 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2580 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2581 type to bool and adjust comment.
2582 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2583 (fold_mathfn_compare): Remove calls to global_bindings_p.
2584 (fold_inf_compare): Likewise.
2585 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2586 * c-tree.h (global_bindings_p): Adjust prototype.
2587 * c-decl.c (global_bindings_p): Return bool and simplify.
2589 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2591 PR tree-optimization/48837
2592 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2593 when accumulator transformation is performed.
2595 2011-05-06 Jan Hubicka <jh@suse.cz>
2597 * i386.h (ix86_tune_indices): Add
2598 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2599 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2600 * i386.c (initial_ix86_tune_features): Add
2601 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2602 (software_prefetching_beneficial_p): Remove predicate.
2603 (ix86_option_override_internal): Use new macro.
2605 2011-05-06 Jan Hubicka <jh@suse.cz>
2607 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2609 2011-05-06 Jan Hubicka <jh@suse.cz>
2611 * cgraph.c (cgraph_add_thunk): Create real function node instead
2612 of alias node; finalize it and mark needed/reachale; arrange visibility
2613 to be right and add it into the corresponding same comdat group list.
2614 (dump_cgraph_node): Dump thunks.
2615 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2616 cgraph_function_with_gimple_body_p,
2617 cgraph_first_function_with_gimple_body,
2618 cgraph_next_function_with_gimple_body): New functions.
2619 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2621 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2622 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2623 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2624 devirtualization when optimizing.
2625 (verify_cgraph_node): Verify thunks.
2626 (cgraph_analyze_function): Analyze thunks.
2627 (cgraph_mark_functions_to_output): Output thunks only in combination
2628 with function they are assigned to.
2629 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2630 alias into normal node.
2631 (assemble_thunks): New functoin.
2632 (cgraph_expand_function): Use it.
2633 * lto-cgraph.c (lto_output_node): Stream thunks.
2634 (input_overwrite_node): Stream in thunks.
2635 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2636 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2637 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2638 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2639 (inline_analyze_function): Do not care about thunk jump functions.
2640 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2641 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2642 cgraph_function_with_gimple_body_p.
2643 * passes.c (do_per_function_toporder): Use
2644 cgraph_function_with_gimple_body_p.
2645 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2646 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2647 (function_called_by_processed_nodes_p): Likewise.
2649 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2651 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2652 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2654 (mabi=): Replace with separate entries for mabi=altivec,
2655 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2656 mabi=ieeelongdouble and mabi=ibmlongdouble.
2657 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2658 check for -mabi=spe without SPE ABI support here.
2659 (rs6000_handle_option): Replace OPT_mabi_ handling with
2660 OPT_mabi_altivec and OPT_mabi_spe handling.
2662 2011-05-06 Cary Coutant <ccoutant@google.com>
2664 * dwarf2out.c (contains_subprogram_definition): New function.
2665 (should_move_die_to_comdat): Call it.
2667 2011-05-06 Jeff Law <law@redhat.com>
2669 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2670 remove_ctrl_stmt_and_useless_edges.
2671 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2672 (fixup_template_block, thread_single_edge): Likewise.
2673 (mark_threaded_blocks): Use THREAD_TARGET.
2675 2011-05-06 Alan Modra <amodra@gmail.com>
2678 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2679 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2681 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2683 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2684 constraint modifier to "r".
2686 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2688 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2689 fall through for OPT_mcmodel_.
2691 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2693 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2695 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2697 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2700 * config/arm/arm.opt (marm): Document it.
2701 (mthumb): Reject negative variant.
2703 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2706 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2707 Fix typo in "ccvt" variable name.
2709 2011-05-06 Tristan Gingold <gingold@adacore.com>
2712 * config/vms/vms-ar.c (main): Remove cwd variable.
2714 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2717 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2719 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2721 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2722 * gimplify.c (gimplify_switch_expr): Likewise.
2723 * omp-low.c (expand_omp_sections): Likewise.
2724 * tree-eh.c (lower_try_finally_switch): Likewise.
2725 (lower_eh_dispatch): Likewise.
2726 * tree.h (build_case_label): Declare.
2727 * tree.c (build_case_label): Define.
2729 2011-05-05 Jason Merrill <jason@redhat.com>
2732 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2733 (copy_statement_list): Don't recurse.
2734 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2737 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2739 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2740 through from -mfpu= handling.
2741 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2743 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2745 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2748 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2750 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2752 (hppa[12]*-*-hpux11*): Ditto.
2753 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2754 * config/ia64/hpux-unix2003.h: New.
2755 * config/pa/pa-hpux1131.opt: New.
2756 * config/pa/pa-hpux1131.h: New.
2757 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2758 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2759 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2761 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2764 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2765 instead of mode as 3rd argument to recursive call.
2766 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2767 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2769 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2770 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2771 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2772 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2774 2011-05-05 Julian Brown <julian@codesourcery.com>
2776 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2777 parenthesis in D-register case.
2779 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2781 * opt-functions.awk (var_type_struct): Handle Enum options.
2782 * optc-gen.awk: Don't check range of variables of character type.
2783 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2784 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2785 rs6000_sdata_name, rs6000_explicit_options): Remove.
2786 (rs6000_option_override_internal): Check for -malign-power here.
2787 Use global_options_set instead of rs6000_explicit_options.
2788 (rs6000_parse_fpu_option): Remove.
2789 (rs6000_handle_option): Access variables via opts and opts_set
2790 pointers. Use error_at and warning_at. Add fall-through
2791 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2792 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2793 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2794 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2795 here. Don't use rs6000_parse_fpu_option.
2796 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2797 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2798 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2800 (mspe): Use Var and Save.
2801 (mtraceback=): Use Enum and Var.
2802 (rs6000_traceback_type): New Enum and EnumValue entries.
2803 (mfloat-gprs=): Use Enum, Var and Save.
2804 (rs6000_float_gprs): New Enum and EnumValue entries.
2805 (mlong-double-): use Var and Save.
2806 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2807 (malign-): Use Enum and Var.
2808 (rs6000_alignment_flags): New Enum and EnumValue entries.
2810 (fpu_type_t): New Enum and EnumValue entries.
2811 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2812 global_options_set instead of rs6000_explicit_options.
2813 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2814 global_options_set instead of rs6000_explicit_options.
2815 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2816 global_options_set instead of rs6000_explicit_options.
2817 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2818 global_options_set instead of rs6000_explicit_options.
2819 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2820 global_options_set instead of rs6000_explicit_options.
2821 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2822 global_options_set instead of rs6000_explicit_options.
2823 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2825 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2826 global_options_set instead of rs6000_explicit_options.
2827 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2828 (rs6000_cmodel): New Enum and EnumValue entries.
2829 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2830 global_options_set instead of rs6000_explicit_options.
2831 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2832 (mtls-size=): Use Enum and Var.
2833 (rs6000_tls_size): New Enum and EnumValue entries.
2835 2011-05-05 Michael Matz <matz@suse.de>
2837 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2838 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2839 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2840 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2841 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2842 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2843 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2844 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2845 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2846 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2847 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2848 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2849 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2850 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2851 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2852 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2854 2011-05-05 Richard Guenther <rguenther@suse.de>
2856 * expmed.c (expand_variable_shift): Rename to ...
2857 (expand_shift_1): ... this. Take an expanded shift amount.
2858 For rotates recurse directly not building trees for the shift amount.
2859 (expand_variable_shift): Wrap around expand_shift_1.
2860 (expand_shift): Adjust.
2862 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2864 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2866 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2868 * tree.h (get_pending_sizes): Remove prototype.
2869 (put_pending_size): Likewise.
2870 (put_pending_sizes): Likewise.
2871 * stor-layout.c (pending_sizes): Delete.
2872 (get_pending_sizes): Likewise.
2873 (put_pending_size): Likewise.
2874 (put_pending_sizes): Likewise.
2875 (variable_size): Do not call put_pending_size and tidy up.
2876 * function.h (struct function): Remove dont_save_pending_sizes_p.
2877 * lto-streamer-in.c (input_function): Do not stream it.
2878 * lto-streamer-out.c (output_function): Likewise.
2879 * tree-inline.c (initialize_cfun): Do not copy it.
2880 * c-decl.c (store_parm_decls): Do not set it.
2881 * omp-low.c (create_task_copyfn): Likewise.
2882 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2884 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2886 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2888 (*movdf_internal): Ditto.
2889 (*movdf_internal_nointeger): Ditto.
2890 (*movsf_internal): Ditto.
2892 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2894 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2895 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2896 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2897 (c_variable_size): Remove.
2898 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2899 call put_pending_sizes.
2900 (get_parm_info): Add parameter expr. Use it to set
2901 arg_info->pending_sizes.
2902 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2904 * c-parser.c (c_parser_parms_declarator): Update call to
2905 c_parser_parms_list_declarator.
2906 (c_parser_parms_list_declarator): Take parameter expr. Update
2907 call to push_parm_decl. Update recursive call. Don't call
2908 get_pending_sizes. Update calls to get_parm_info.
2909 (c_parser_objc_method_definition): Update calls to
2910 c_parser_objc_method_decl and objc_start_method_definition.
2911 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2912 (c_parser_objc_method_decl): Add parameter expr. Update call to
2914 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2915 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2916 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2918 2011-05-05 Michael Hope <michael.hope@linaro.org>
2921 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2924 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2926 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2927 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2928 (spu_output_mi_thunk): New function.
2930 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2932 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2933 targetm.asm_out.print_operand.
2934 * config/sol2.c: Include target.h.
2936 2011-05-04 Jan Hubicka <jh@suse.cz>
2938 * ipa-inline.c (reset_edge_caches): New function.
2939 (update_caller_keys): Add check_inlinablity_for; do not
2940 reset edge caches; remove now unnecesary loop.
2941 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2942 (update_all_callee_keys): Likewise.
2943 (inline_small_functions): Sanity check cache; update code
2946 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2948 PR rtl-optimization/47612
2949 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2950 as the last insn of the sequence to be moved.
2952 2011-05-04 Tobias Burnus <burnus@net-b.de>
2955 * doc/invoke.texi (Ofast): Document that it
2956 enables Fortran's -fno-protect-parens.
2958 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2960 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2962 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2964 * stor-layout.c (variable_size): Do not issue errors.
2966 2011-05-04 Richard Guenther <rguenther@suse.de>
2968 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2969 for array-ref indices.
2970 (tree_coverage_counter_addr): Likewise.
2971 (build_fn_info_type): Use size_int for index types.
2972 (build_gcov_info): Likewise.
2974 2011-05-04 Richard Guenther <rguenther@suse.de>
2976 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2978 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2979 for constructor indices.
2980 (push_init_level): Likewise.
2982 2011-05-04 Richard Guenther <rguenther@suse.de>
2984 * explow.c (promote_mode): Move variable declarations before code.
2986 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2988 * tree.h (build_function_type_array): Declare.
2989 (build_varargs_function_type_array): Declare.
2990 (build_function_type_vec, build_varargs_function_type_vec): Define.
2991 * tree.c (build_function_type_array_1): New function.
2992 (build_function_type_array): New function.
2993 (build_varargs_function_type_array): New function.
2995 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2997 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2998 before setting STMT_VINFO_TYPE.
3000 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3002 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3003 instead of spu_pass_by_reference.
3005 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3007 * calls.c (emit_library_call_value_1): Invoke
3008 promote_function_mode hook on libcall arguments.
3009 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3010 argument being NULL.
3011 * targhooks.c (default_promote_function_mode): Lisewise.
3012 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3013 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3015 * doc/tm.texi: Document that TYPE argument might be NULL.
3017 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3019 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3021 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3024 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3026 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3028 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3029 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3031 * mips-tfile.c: ... here.
3032 Don't include coretypes.h, tm.h, filenames.h.
3033 (saber_stop): Remove definition and all calls.
3034 [__SABER__]: Remove.
3035 (__LINE__): Remove default.
3036 (Size_t, Ptrdiff_t): Remove definitions.
3037 Replace by size_t, ptrdiff_t.
3038 [!MIPS_DEBUGGING_INFO]: Remove.
3039 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3040 (progname): Add const.
3042 Replace all uses by static.
3043 (ALIGN_SYMTABLE_OFFSET): Remove default.
3044 * mips-tdump.c: Don't include coretypes.h, tm.h.
3045 Remove !MIPS_IS_STAB guard.
3046 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3047 $(TM_H), filenames.h dependencies.
3048 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3050 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3053 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3054 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3056 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3059 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3060 account and save/restore RETS.
3061 (PROFILE_BEFORE_PROLOGUE): Define.
3062 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3063 the push insn to use predecrement.
3065 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3068 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3070 2011-05-04 Nick Clifton <nickc@redhat.com>
3072 * config/mn10300/mn10300.c: Include cfgloop.h.
3074 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3075 Lcc or a FLcc insn into the instruction stream.
3076 (mn10300_block_contains_call): New function. Returns true if the
3077 given basic block contains a CALL insn.
3078 (mn10300_loop_contains_call_insn): New function. Returns true if
3079 the given loop contains a CALL insn.
3080 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3081 to use the SETLB and Lcc or FLcc insns.
3082 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3083 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3084 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3085 disable the SETLB optimization.
3086 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3087 __SETLB__ or __NO_SETLB__.
3088 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3089 (movsf_internal): Handle MDR register.
3090 (cmpsi): Make visible.
3091 (setlb): New pattern.
3093 (FLcc): New pattern.
3095 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3098 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3099 for reg<->xmm moves.
3100 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3101 (vec_concatv2di_rex64_sse): Ditto.
3102 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3103 (*vec_extractv2di_1_rex64): Ditto.
3106 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3108 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3110 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3112 2011-05-04 Richard Guenther <rguenther@suse.de>
3114 * tree.h (int_const_binop): Remove notrunc argument.
3115 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3116 create integer constants that are properly truncated.
3117 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3118 (const_binop): Remove zero notrunc argument to int_const_binop.
3119 (size_binop_loc): Likewise.
3120 (fold_div_compare): Likewise.
3121 (maybe_canonicalize_comparison_1): Likewise.
3122 (fold_comparison): Likewise.
3123 (fold_binary_loc): Likewise.
3124 (multiple_of_p): Likewise.
3125 * expr.c (store_constructor): Likewise.
3126 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3127 (maybe_fold_stmt_addition): Likewise.
3128 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3129 * stor-layout.c (layout_type): Likewise.
3130 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3131 * tree-sra.c (build_ref_for_offset): Likewise.
3132 (build_user_friendly_ref_for_offset): Likewise.
3133 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3134 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3135 * tree-ssa-loop-niter.c (inverse): Likewise.
3136 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3137 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3138 * tree-switch-conversion.c (check_range): Likewise.
3139 (build_constructors): Likewise.
3140 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3141 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3142 (extract_range_from_assert): Likewise.
3143 (vrp_int_const_binop): Likewise.
3144 (extract_range_from_binary_expr): Likewise.
3145 (extract_range_from_unary_expr): Likewise.
3146 (check_array_ref): Likewise.
3147 (find_case_label_range): Likewise.
3148 (simplify_div_or_mod_using_ranges): Likewise.
3149 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3150 comparing case labels for merging.
3152 2011-05-03 Mark Wielaard <mjw@redhat.com>
3154 * dwarf2out.c (debug_str_hash_forced): Removed.
3155 (gen_label_for_indirect_string): Removed.
3156 (get_debug_string_label): Removed.
3157 (AT_string_form): Generate label directly.
3158 (output_indirect_string): Test indirect_string_node for
3159 DW_FORM_strp instead of checking label and refcount.
3160 (prune_indirect_string): Removed.
3161 (prune_unused_types): Don't check debug_str_hash_forced or
3162 call prune_indirect_string.
3164 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3167 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3169 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3173 * combine.c (try_combine): Skip debug insns at m_split tests.
3175 2011-04-26 Mark Wielaard <mjw@redhat.com>
3178 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3179 when info_section_emitted.
3181 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3183 * config/mips/mips-opts.h: New.
3184 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3186 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3187 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3188 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3190 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3192 (mips_abi, mips_code_readable): Don't declare.
3193 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3194 (mabi=): Use Enum and Var.
3195 (mips_abi): New Enum and EnumValue entries.
3196 (mcode-readable=): Use Enum and Var.
3197 (mips_code_readable_setting): New Enum and EnumValue entries.
3198 (mr10k-cache-barrier=): Use Enum and Var.
3199 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3201 2011-05-03 Jan Hubicka <jh@suse.cz>
3203 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3204 replace hash by pointer map.
3205 (cgraph_node_set_element_def, cgraph_node_set_element,
3206 const_cgraph_node_set_element, varpool_node_set_element_def,
3207 varpool_node_set_element, const_varpool_node_set_element): Remove.
3208 (free_cgraph_node_set, free_varpool_node_set): New function.
3209 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3210 * tree-emutls.c: Free varpool node set.
3211 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3212 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3213 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3214 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3215 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3216 Move here from ipa.c; implement using pointer_map
3217 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3218 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3219 debug_cgraph_node_set, varpool_node_set_new,
3220 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3221 dump_varpool_node_set, debug_varpool_node_set):
3222 Move to ipa-uitls.c.
3223 * passes.c (ipa_write_summaries): Update.
3225 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3227 From Mike Frysinger:
3228 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3229 bf542/bf544/bf547/bf548/bf549.
3231 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3233 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3235 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3238 * config/bfin/bfin.md (MOVCC): New mode_macro.
3239 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3240 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3241 comments from generated assembly.
3243 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3246 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3247 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3248 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3249 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3250 * config/bfin/lib1funcs.asm (___muldi3): New function.
3252 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3254 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3255 build_function_type_list instead of build_function_type.
3256 Rearrange initialization of `args' to do so.
3258 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3260 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3261 instead of build_function_type.
3263 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3265 * config/rs6000/rs6000.c (spe_init_builtins): Call
3266 build_function_type_list instead of build_function_type.
3267 (paired_init_builtins, altivec_init_builtins): Likewise.
3268 (builtin_function_type): Likewise.
3270 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3272 * config/sh/sh.c (sh_media_init_builtins): Call
3273 build_function_type_list instead of build_function_type.
3275 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3277 * config/sparc/sparc.c (sparc_file_end): Call
3278 build_function_type_list instead of build_function_type.
3280 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3282 * config/alpha/alpha.c (alpha_init_builtins): Call
3283 build_function_type_list instead of build_function_type.
3285 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3287 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3288 build_function_type_list instead of build_function_type.
3290 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3292 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3293 build_function_type_list instead of build_function_type.
3294 Delete `endlink' variable.
3296 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3298 * config/avr/avr.c (avr_init_builtins): Call
3299 build_function_type_list instead of build_function_type.
3301 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3303 * config/picochip/picochip.c (picochip_init_builtins): Call
3304 build_function_type_list instead of build_function_type.
3305 Delete `endlink' variable.
3307 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3309 * config/bfin/bfin.c (bfin_init_builtins): Call
3310 build_function_type_list instead of build_function_type.
3312 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3315 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3316 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3318 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3321 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3322 libbffastfp overrides libgcc when -mfast-fp.
3324 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3326 Originally from Bernd Schmidt
3327 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3328 * config/bfin/bfin.c (override_options): Test it and error if
3331 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3333 Originally From Bernd Schmidt
3334 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3337 2011-05-03 Jeff Law <law@redhat.com>
3339 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3340 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3341 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3342 than accessing AUX field directly. Free the AUX field before
3344 (thread_block, thread_through_loop_header): Likewise.
3345 (thread_single_edge, mark_threaded_blocks): Likewise.
3346 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3347 (register_jump_thread): Do not attempt to thread to a NULL edge.
3349 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3351 * function.c (init_function_start): Call decide_function_section.
3352 * varasm.c (decide_function_section): New function.
3353 (assemble_start_function): When not using
3354 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3355 or first_function_block_is_cold.
3356 * rtl.h (decide_function_section): Declare.
3358 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3359 Jakub Jelinek <jakub@redhat.com>
3362 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3363 only succeed if req_mode is the same as set_mode.
3365 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3367 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3368 * genemit.c (gen_exp): Handle RETURN.
3369 * emit-rtl.c (verify_rtx_sharing): Likewise.
3370 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3371 * rtl.c (copy_rtx): RETURN is shared.
3372 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3374 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3375 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3376 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3377 * config/cris/cris.c (cris_expand_return): Likewise.
3378 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3379 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3380 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3381 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3382 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3384 * config/v850/v850.c (expand_epilogue): Likewise.
3385 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3386 * config/arm/arm.md (epilogue): Likewise.
3387 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3388 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3389 variable to ret_reg.
3391 2011-05-03 Richard Guenther <rguenther@suse.de>
3394 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3395 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3396 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3398 2011-05-03 Richard Guenther <rguenther@suse.de>
3400 * c-decl.c (grokdeclarator): Instead of looking at
3401 TREE_OVERFLOW check if the constant fits in the index type.
3403 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3405 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3406 (vec_store_lanes<mode><mode>): Likewise.
3408 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3410 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3411 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3412 convert_optab_index values.
3413 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3414 * genopinit.c (optabs): Initialize the new optabs.
3415 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3416 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3417 (expand_STORE_LANES): New functions.
3418 * tree.h (build_array_type_nelts): Declare.
3419 * tree.c (build_array_type_nelts): New function.
3420 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3421 (vect_model_load_cost): Likewise.
3422 (vect_store_lanes_supported, vect_load_lanes_supported)
3423 (vect_record_strided_load_vectors): Declare.
3424 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3425 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3426 (vect_transform_strided_load): Split out statement recording into...
3427 (vect_record_strided_load_vectors): ...this new function.
3428 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3429 (write_vector_array, create_array_ref): New functions.
3430 (vect_model_store_cost): Add store_lanes_p argument.
3431 (vect_model_load_cost): Add load_lanes_p argument.
3432 (vectorizable_store): Try to use store-lanes functions for
3434 (vectorizable_load): Likewise load-lanes and loads.
3435 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3436 to vect_model_store_cost.
3437 (vect_build_slp_tree): Likewise vect_model_load_cost.
3439 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3441 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3442 * hooks.c (hook_bool_mode_uhwi_false): New function.
3443 * target.def (array_mode_supported_p): New hook.
3444 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3445 * doc/tm.texi: Regenerate.
3446 * stor-layout.c (mode_for_array): New function.
3447 (layout_type): Use it.
3448 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3449 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3451 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3454 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3455 for -fstack-check if the size to allocate is negative.
3457 2011-05-02 Lawrence Crowl <crowl@google.com>
3459 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3460 (timevar_cond_start): New for starting a timer only when it is not
3462 (timevar_cond_stop): New for stopping a timer when it was not already
3465 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3466 (timevar_cond_start): New as above.
3467 (timevar_cond_stop): New as above.
3469 * timevar.def: Add start/stop timers for compiler phases,
3470 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3471 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3472 and TV_PHASE_FINALIZE.
3473 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3474 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3475 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3476 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3477 Make unused TV_OVERLOAD into a start/stop timer.
3479 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3480 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3481 to indicate that they are start/stop timers.
3483 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3484 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3485 Move initialization to do_compile.
3486 (do_compile): Add initialization from above.
3487 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3489 * c-decl.c (c_write_global_declarations): Add start/stop of
3490 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3492 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3493 or TV_PARSE_INLINE, as appropriate.
3494 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3495 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3497 2011-05-02 Jason Merrill <jason@redhat.com>
3500 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3502 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3505 * c-decl.c (finish_decl): Only create a composite if the types are
3508 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3510 * config/fr30/fr30-protos.h (Mmode): Don't define.
3511 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3512 definition where used.
3513 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3514 define. Expand definitions where used.
3515 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3516 Expand definitions where used.
3517 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3518 rx_function_arg, rx_function_arg_advance,
3519 rx_function_arg_boundary): Expand definitions of those macros.
3520 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3521 definition where used.
3523 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3525 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3527 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3528 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3529 with *movv2sf_internal_rex64_avx.
3530 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3531 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3532 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3533 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3534 "vex" in "prefix" attribute calculation.
3535 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3537 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3540 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3541 inputs match the output.
3543 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3546 * config/m68k/m68k.c (m68k_expand_prologue): Set
3547 current_function_static_stack_size.
3549 2011-05-02 Jan Hubicka <jh@suse.cz>
3551 * lto-streamer.c (lto_streamer_cache_insert_1,
3552 lto_streamer_cache_lookup, lto_streamer_cache_create,
3553 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3554 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3556 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3558 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3559 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3560 config/m68k/t-opts: New files.
3561 * config/m68k/m68k-tables.opt: New file (generated).
3562 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3563 extra_options and m68k/t-opts to tmake_file.
3564 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3565 (all_isas): Initialize using m68k-isas.def.
3566 (all_microarchs): Initialize using m68k-microarchs.def.
3567 (m68k_find_selection): Remove.
3568 (m68k_handle_option): Don't assert that global structures are in
3569 use. Use error_at. Access variables via opts pointer. Don't
3570 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3571 directly for -m68020-40 and -m68020-60.
3572 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3573 m68k_tune_entry here.
3574 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3576 (m68k_library_id_string): Remove declaration.
3577 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3578 (m68k_library_id_string): New Variable.
3579 (march=, mcpu=, mtune=): Use Enum and Var.
3581 2011-05-02 Richard Guenther <rguenther@suse.de>
3583 * varasm.c (output_constructor_regular_field): Compute zero-based
3584 index with double-ints. Make sure to ICE instead of producing
3586 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3587 in asserts. Properly use a signed type.
3589 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3591 * config/i386/sse.md (V): New mode iterator.
3592 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3594 (V_256): Rename from AVX256MODE.
3595 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3596 condition to all users.
3598 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3599 condition to all users.
3600 (VF_128): Make V4SF mode unconditional.
3601 (VF_256): Rename from AVX256MODEF2P.
3602 (VI4F_128): Rename from SSEMODE4S.
3603 (VI8F_128): Rename from SSEMODE2D.
3604 (VI4F_256): Rename from AVX256MODE8P.
3605 (VI8F_256): Rename from AVX256MODE4P.
3606 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3607 (ssescalarmodesuffix): Remove SF and DF modes.
3608 (SSEMODE124): Remove.
3609 (SSEMODE1248): Ditto.
3610 (SSEMODEF2P): Ditto.
3611 (AVXMODEF2P): Ditto.
3612 (AVXMODEFDP): Ditto.
3613 (AVXMODEFSP): Ditto.
3614 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3616 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3618 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3619 xop_pcmov_<mode>256. Use V mode iterator.
3621 Adjust RTX patterns globally for renamed mode attributes.
3623 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3625 * haifa-sched.c (sched_emit_insn): Emit insn before first
3626 non-scheduled insn. Inform back-end about new insn. Add
3627 new insn to scheduled_insns list.
3629 2011-05-02 Richard Guenther <rguenther@suse.de>
3631 PR tree-optimization/48822
3632 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3633 (process_scc): Indicate which iteration we start.
3635 2011-05-02 Jan Hubicka <jh@suse.cz>
3637 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3638 (lto_section_overrun): New.
3639 * lto-section-out.c (append_block): Rename to ...
3640 (lto_append_block): ... this one; export.
3641 (lto_output_1_stream): Move lto lto-streamer.h
3642 (lto_output_data_stream): Update.
3643 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3644 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3647 2011-05-02 Richard Guenther <rguenther@suse.de>
3649 * tree.c (tree_code_counts): New global array.
3650 (record_node_allocation_statistics): Count individual tree codes.
3651 (dump_tree_statistics): Dump individual code stats.
3653 2011-05-01 Jan Hubicka <jh@suse.cz>
3655 * ipa-inline.c (caller_growth_limits): Fix thinko when
3656 looking for largest stack frame.
3657 * ipa-inline.h (dump_inline_summary): Declare.
3658 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3660 (dump_inline_summary): Export.
3661 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3663 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3665 * reginfo.c (memory_move_cost): Change rclass argument type form
3666 'enum reg_class' to reg_class_t.
3667 * reload.h (memory_move_cost): Update prototype.
3668 * postreload.c reload_cse_simplify_set): Change type dclass var to
3670 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3672 (ira_allocate_and_set_costs): Change aclass argument type form
3673 'enum reg_class' to reg_class_t.
3674 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3675 Change aclass argument type to reg_class_t.
3676 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3678 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3679 memory_move_cost call.
3681 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3682 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3683 Change type tmp var to reg_class_t.
3685 2011-04-30 Jan Hubicka <jh@suse.cz>
3687 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3688 inlining into function with flatten attribute.
3689 (want_inline_small_function_p): Be more realistic about inlining
3690 cold calls where callee size grows.
3692 2011-04-30 Jan Hubicka <jh@suse.cz>
3694 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3697 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3699 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3700 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3701 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3702 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3703 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3704 (print_operand): Rename to...
3705 (sparc_print_operand): ...this. Make static. Adjust
3706 sparc_print_operand function call.
3707 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3710 2011-04-30 Jan Hubicka <jh@suse.cz>
3713 * ipa-inline.c (early_inliner): Disable when doing late
3714 addition of function.
3716 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3718 * dwarf2out.c (get_address_mode): New inline.
3719 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3720 if not dwarf_strict emit
3721 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3722 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3723 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3724 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3725 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3726 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3727 mem_loc_descriptor callers.
3728 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3729 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3730 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3731 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3732 (base_types): New variable.
3733 (get_base_type_offset, calc_base_type_die_sizes,
3734 base_type_for_mode, mark_base_types, base_type_cmp,
3735 move_marked_base_types): New functions.
3736 (calc_die_sizes): Assert that die_offset is 0 or equal to
3738 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3739 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3740 callers. If not dwarf_strict, call mem_loc_descriptor even for
3741 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3742 (gen_subprogram_die): Don't give up on call site parameters
3743 with non-integral or large integral modes. Adjust
3744 mem_loc_descriptor callers.
3745 (prune_unused_types): Call prune_unused_types_mark on base_types
3747 (resolve_addr): Call mark_base_types.
3748 (dwarf2out_finish): Call move_marked_base_types.
3750 PR tree-optimization/48809
3751 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3753 (gen_inbound_check): Don't compute index_expr - range_min in utype
3754 again, instead reuse SSA_NAME initialized in build_arrays.
3755 Remove two useless gsi_for_stmt calls.
3757 2011-04-29 Jeff Law <law@redhat.com>
3759 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3761 2011-04-29 Martin Jambor <mjambor@suse.cz>
3763 * cgraph.h (cgraph_postorder): Remove declaration.
3764 * ipa-utils.h (ipa_free_postorder_info): Declare.
3765 (ipa_reverse_postorder): Likewise.
3766 * cgraphunit.c: Include ipa-utils.h.
3767 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3768 * ipa-inline.c: Include ipa-utils.h.
3769 (ipa_inline): Update call to ipa_reverse_postorder.
3770 * ipa-pure-const.c (propagate_pure_const): Update call to
3771 ipa_reduced_postorder and ipa_print_order. Call
3772 ipa_free_postorder_info to clean up.
3773 (propagate_nothrow): Likewise.
3774 * ipa-reference.c (propagate): Removed a useless call to
3775 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3776 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3777 * ipa.c: Include ipa-utils.h.
3778 (ipa_profile): Update call to ipa_reverse_postorder.
3779 (cgraph_postorder): Moved to...
3780 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3781 (ipa_utils_print_order): Renamed to ipa_print_order.
3782 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3784 (ipa_free_postorder_info): New function.
3785 * passes.c: Include ipa-utils.h.
3786 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3787 (ipa_write_summaries): Likewise.
3788 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3789 (cgraphunit.o): Likewise.
3791 (ipa-inline.o): Likewise.
3793 2011-04-29 Jan Hubicka <jh@suse.cz>
3795 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3796 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3797 * ipa-inline.h (clause_t): Turn into unsigned int.
3798 * ipa-inline-analysis.c (add_clause): Do more simplification.
3799 (and_predicates): Shortcut more cases.
3800 (predicates_equal_p): Move forward; check that clauses are properly
3802 (or_predicates): Shortcut more cases.
3803 (edge_execution_predicate): Rewrite as...
3804 (set_cond_stmt_execution_predicate): ... this function; handle
3805 __builtin_constant_p.
3806 (set_switch_stmt_execution_predicate): New .
3807 (compute_bb_predicates): New.
3808 (will_be_nonconstant_predicate): Update TODO.
3809 (estimate_function_body_sizes): Use compute_bb_predicates
3810 and free them later, always try to estimate if stmt is constant.
3811 (estimate_time_after_inlining, estimate_size_after_inlining):
3812 Gracefully handle optimized out edges.
3813 (read_predicate): Fix off by one error.
3815 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3817 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3819 2011-04-27 Xinliang David Li <davidxl@google.com>
3821 * tree-profile.c (init_ic_make_global_vars): Set
3822 tls attribute on ic vars.
3823 * coverage.c (coverage_end_function): Initialize
3824 function_list with zero.
3826 2011-04-29 Richard Guenther <rguenther@suse.de>
3828 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3829 for the type of the result.
3830 (fold_builtin_isascii): Likewise.
3831 (fold_builtin_toascii): Use integer_type_node where appropriate.
3832 (fold_builtin_logb): Likewise.
3833 (fold_builtin_frexp): Likewise.
3834 (fold_builtin_strstr): Likewise.
3835 (fold_builtin_strpbrk): Likewise.
3836 (fold_builtin_fputs): Likewise.
3837 (fold_builtin_sprintf): Likewise.
3838 (fold_builtin_snprintf): Likewise.
3839 (fold_builtin_printf): Likewise.
3840 (do_mpfr_remquo): Use a proper type for the assigned constant.
3841 (do_mpfr_lgamma_r): Likewise.
3842 * dwarf2out.c (resolve_one_addr): Use size_int.
3843 * except.c (init_eh): Likewise.
3844 (assign_filter_values): Use integer_type_node for filter values.
3845 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3847 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3848 for EH region numbers.
3849 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3850 for the shift amount.
3852 2011-04-29 Richard Guenther <rguenther@suse.de>
3854 * expr.h (expand_shift): Rename to ...
3855 (expand_variable_shift): ... this.
3856 (expand_shift): Take a constant shift amount.
3857 * expmed.c (expand_shift): Rename to ...
3858 (expand_variable_shift): ... this.
3859 (expand_shift): New wrapper around expand_variable_shift.
3860 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3861 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3862 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3863 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3864 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3865 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3866 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3867 emit_store_flag_1, emit_store_flag): Likewise.
3868 * builtins.c (expand_builtin_signbit): Likewise.
3869 * calls.c (load_register_parameters): Likewise.
3870 * function.c (assign_parm_setup_block): Likewise.
3871 * lower-subreg.c (resolve_shift_zext): Likewise.
3872 * optabs.c (widen_bswap, expand_abs_nojump,
3873 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3874 * spu/spu.c (spu_expand_extv): Likewise.
3875 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3877 2011-04-29 Richard Guenther <rguenther@suse.de>
3879 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3880 for the remapped region number.
3881 * predict.c (build_predict_expr): Use integer_type_node for the
3883 * fold-const.c (fold_binary_loc): Use integer_type_node for
3884 the shift amount. Use a proper type for the PLUS_EXPR operand.
3886 2011-04-29 Michael Matz <matz@suse.de>
3888 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3889 other trees that just builtins.
3890 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3892 2011-04-29 Richard Guenther <rguenther@suse.de>
3894 * tree-nested.c (get_trampoline_type): Use size_int.
3895 (get_nl_goto_field): Likewise.
3896 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3898 (lower_eh_constructs_2): Likewise.
3899 (lower_resx): Likewise.
3900 (lower_eh_dispatch): Likewise.
3901 * tree-mudflap.c (mf_build_string): Use size_int.
3902 (mudflap_register_call): Use integer_type_node for the flag.
3903 (mudflap_enqueue_constant): Use size_int.
3904 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3905 instead of rebuilding it.
3907 2011-04-29 Richard Guenther <rguenther@suse.de>
3909 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3910 Handle OBJ_TYPE_REF.
3911 (find_func_aliases_for_call): Use it more consistently.
3913 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3915 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3916 (rank_for_schedule): Use it.
3917 (schedule_block): Set it.
3919 2011-04-28 David Li <davidxl@google.com>
3921 * tree.c (crc32_string): Use crc32_byte.
3922 (crc32_byte): New function.
3923 * tree.h (crc32_byte): New function.
3924 * gcov.c (read_graph_file): Handle new cfg_cksum.
3925 (read_count_file): Ditto.
3926 * profile.c (instrument_values): Ditto.
3927 (get_exec_counts): Ditto.
3928 (read_profile_edge_counts): Ditto.
3929 (compute_branch_probabilities): Ditto.
3930 (compute_value_histograms): Ditto.
3931 (branch_prob): Ditto.
3932 (end_branch_prob): Ditto.
3933 * coverage.c (read_counts_file): Ditto.
3934 (get_coverage_counts): Ditto.
3935 (tree_coverage_counter_addr): Ditto.
3936 (coverage_checksum_string): Ditto.
3937 (coverage_begin_output): Ditto.
3938 (coverage_end_function): Ditto.
3939 (build_fn_info_type): Ditto.
3940 (build_fn_info_value): Ditto.
3941 * libgcov.c (gcov_exit): Ditto.
3942 * gcov-dump.c (tag_function): Ditto.
3943 (compute_checksum): Remove.
3945 2011-04-29 Alan Modra <amodra@gmail.com>
3947 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3948 unspec plus offset. Tidy macho code.
3950 2011-04-29 Martin Jambor <mjambor@suse.cz>
3952 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3953 node instead of a decl. Update all callers.
3954 * cgraph.h: Update declaration.
3956 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3958 PR tree-optimization/48765
3959 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3960 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3961 to indicate if loop aware SLP is being used. Scan the statements
3962 and update the vectorization factor according to the type of
3963 vectorization before statement analysis.
3964 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3965 pass it to vect_analyze_loop_operations.
3966 (vectorizable_reduction): Set number of copies to 1 in case of pure
3968 * tree-vect-stmts.c (vectorizable_conversion,
3969 vectorizable_assignment, vectorizable_shift,
3970 vectorizable_operation, vectorizable_type_demotion,
3971 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3973 (vectorizable_condition): Move the check that it is not SLP
3974 vectorization before the number of copies check.
3975 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3976 to vectorize the loop using SLP.
3978 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3981 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3984 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3986 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3987 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3988 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3989 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3990 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3992 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3993 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3994 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3995 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3996 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3997 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3999 * config/i386/linux.h (REG_NAME): Don't define.
4000 * config/i386/linux64.h (REG_NAME): Don't define.
4001 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4002 Undefine before defining.
4004 2011-04-28 Jan Hubicka <jh@suse.cz>
4006 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4007 nonconstant_names array.
4008 (estimate_function_body_sizes): Build nonconstant_names array; handle
4009 BUILT_IN_CONSTANT_P.
4011 2011-04-28 Richard Guenther <rguenther@suse.de>
4015 2011-04-28 Richard Guenther <rguenther@suse.de>
4017 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4018 as late as possible.
4020 2011-04-28 Richard Guenther <rguenther@suse.de>
4022 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4023 (debug_constraint): Do it here.
4024 (dump_constraints): And here.
4025 (rewrite_constraints): And here.
4026 (dump_constraint_edge): Remove.
4027 (dump_constraint_graph): Rewrite to produce DOT output.
4028 (solve_constraints): Build succ graph as late as possible.
4029 Dump constraint graphs before and after solving.
4031 2011-04-28 Richard Guenther <rguenther@suse.de>
4033 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4034 New function split out from ...
4035 (find_func_aliases): ... here. Call it.
4036 (find_func_aliases_for_call): Likewise.
4038 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4040 * internal-fn.h (internal_fn_name_array): Declare.
4041 (internal_fn_flags_array): Likewise.
4043 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4045 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4046 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4048 (ssemodefsuffix): Remove.
4049 (ssevecmodesuffix): New mode attribute.
4050 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4051 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4052 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4053 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4054 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4055 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4056 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4057 ssemodesuffix mode attribute.
4058 (float splitters): Use ssevecmodesuffix mode attribute.
4059 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4060 (sseinsmode): Rename from avxvecmode.
4061 (avxsizesuffix): Rename from avxmodesuffix.
4062 (sseintvecmode): Rename from avxpermvecmode.
4063 (ssedoublevecmode): Rename from ssedoublesizemode.
4064 (ssehalfvecmode): Rename from avxhalfvecmode.
4065 (ssescalarmode): Rename from avxscalarmode.
4066 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4067 templates for ssemodesuffix mode attribute.
4068 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4071 Adjust RTX patterns globally for renamed mode attributes.
4073 2011-04-27 Jan Hubcika <jh@suse.cz>
4075 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4076 * ipa-inline-analysis.c: Include alloc-pool.h.
4077 (edge_predicate_pool): New.
4078 (trye_predicate_p): New function
4079 (false_predicate_p): New function.
4080 (add_clause): Sanity check that false clauses are "optimized";
4081 never add clauses to predicate that is already known to be false.
4082 (and_predicate): Use flase_predicate_p.
4083 (evaulate_predicate): Rename to ...
4084 (evaluate_predicate): ... this one; update all callers; assert
4085 that false is not listed among possible truths.
4086 (dump_predicate): Use true_predicate_p.
4087 (account_size_time): Use false_predicate_p.
4088 (evaulate_conditions_for_edge): Rename to ...
4089 (evaluate_conditions_for_edge) ... this one.
4090 (edge_set_predicate): New function.
4091 (inline_edge_duplication_hook): Duplicate edge predicates.
4092 (inline_edge_removal_hook): Free edge predicates.
4093 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4094 (dump_inline_summary): Update.
4095 (estimate_function_body_sizes): Set edge predicates.
4096 (estimate_calls_size_and_time): Handle predicates.
4097 (estimate_callee_size_and_time): Update.
4098 (remap_predicate): Add toplev_predicate; update comment.
4099 (remap_edge_predicates): New function.
4100 (inline_merge_summary): Compute toplev predicate; update.
4101 (read_predicate): New function.
4102 (read_inline_edge_summary): Use it.
4103 (inline_read_section): Likewise.
4104 (write_predicate): New function.
4105 (write_inline_edge_summary): Use it.
4106 (inline_write_summary): Likewise.
4107 (inline_free_summary): Free alloc pool and edge summary vec.
4109 2011-04-27 Richard Guenther <rguenther@suse.de>
4111 * tree-ssa-structalias.c (changed_count): Remove.
4112 (changed): Use a bitmap.
4113 (unify_nodes): Adjust.
4114 (do_sd_constraint): Likewise.
4115 (do_ds_constraint): Likewise.
4116 (do_complex_constraint): Likewise.
4117 (solve_graph): Likewise.
4119 2011-04-27 Jan Hubicka <jh@suse.cz>
4121 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4123 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4125 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4126 (avx_vperm2f128_*_operand): Ditto.
4127 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4128 Use avx_vpermilp_parallel in insn condition.
4129 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4130 Use avx_vperm2f128_parallel in insn condition.
4132 2011-04-27 Richard Guenther <rguenther@suse.de>
4134 * Makefile.in (tree-ssa-structalias.o): Remove
4135 gt-tree-ssa-structalias.h dependency.
4136 (GTFILES): Remove tree-ssa-structalias.c.
4137 * tree.c (allocate_decl_uid): New function.
4138 (make_node_stat): Use it.
4139 (copy_node_stat): Likewise.
4140 * tree.h (allocate_decl_uid): Declare.
4141 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4142 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4143 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4144 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4145 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4146 (struct heapvar_map): Likewise.
4147 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4148 heapvar_insert): Likewise.
4149 (make_heapvar_for): Rename to ...
4150 (make_heapvar): ... this. Simplify.
4151 (fake_var_decl_obstack): New global var.
4152 (build_fake_var_decl): New function.
4153 (make_constraint_from_heapvar): Adjust.
4154 (handle_lhs_call): Likewise.
4155 (create_function_info_for): Likewise.
4156 (intra_create_variable_infos): Likewise.
4157 (init_alias_vars): Allocate fake_var_decl_obstack.
4158 (init_alias_heapvars, delete_alias_heapvars): Remove.
4159 (compute_points_to_sets): Do not call init_alias_heapvars.
4160 (ipa_pta_execute): Likewise.
4161 (delete_points_to_sets): Free fake_var_decl_obstack.
4163 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4165 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4166 (si_from_UTItype, si_to_UTItype): New functions.
4167 (__udivmodti4): Use them to implement type-punning.
4168 * config/spu/multi3.c (union qword_TItype): New data type.
4169 (si_from_TItype, si_to_TItype): New functions.
4170 (__multi3): Use them to implement type-punning.
4172 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4174 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4176 2011-04-27 Jan Hubicka <jh@suse.cz>
4178 * ipa-prop.c (function_insertion_hook_holder): New holder.
4179 (ipa_add_new_function): New function.
4180 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4181 Register/deregister holder.
4183 2011-04-27 Richard Guenther <rguenther@suse.de>
4185 PR tree-optimization/48772
4186 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4188 2011-04-27 Richard Guenther <rguenther@suse.de>
4190 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4191 TARGET_MEM_REF handling.
4193 2011-04-27 Nick Clifton <nickc@redhat.com>
4195 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4196 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4197 (REG_CLASS_NAMES): Likewise.
4198 (REG_CLASS_CONTENTS): Likewise.
4199 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4200 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4201 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4202 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4203 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4204 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4205 duplicate register classes.
4206 (frv_class_likely_spilled_p): Likewise.
4207 (frv_register_move_cost): Likewise.
4209 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4210 end of the regno_reg_class array.
4212 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4215 * c-typeck.c (build_binary_op): Don't wrap arguments if
4216 int_operands is true.
4218 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4221 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4222 targetm.calls.must_pass_in_stack for void type.
4224 2011-04-26 Jan Hubicka <jh@suse.cz>
4226 * cgraphbuild.c (build_cgraph_edges): Update call
4227 of cgraph_create_edge and cgraph_create_indirect_edge.
4228 * cgraph.c (cgraph_create_edge_including_clones,
4229 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4230 cgraph_update_edges_for_call_stmt_node): Do not take nest
4231 argument; do not initialize call_stmt_size/time.
4232 (dump_cgraph_node): Do not dump nest.
4233 (cgraph_clone_edge): Do not take loop_nest argument;
4234 do not propagate it; do not clone call_stmt_size/time.
4235 (cgraph_clone_node): Likewise.
4236 (cgraph_create_virtual_clone): Update.
4237 * cgraph.h (struct cgraph_edge): Remove
4238 call_stmt_size/call_stmt_time/loop_nest.
4239 (cgraph_create_edge, cgraph_create_indirect_edge,
4240 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4242 * tree-emutls.c (gen_emutls_addr): Update.
4243 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4244 loop_nest; handle indirect calls, too.
4245 (clone_inlined_nodes): Do not care about updating inline summaries.
4246 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4247 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4248 stream call_stmt_size/call_stmt_time/loop_nest.
4249 * ipa-inline.c (edge_badness): Update.
4250 (ipa_inline): dump summaries after inlining.
4251 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4253 (inline_edge_summary): New function.
4254 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4255 (inline_edge_removal_hook): Handle edge summaries.
4256 (inline_edge_duplication_hook): New hook.
4257 (inline_summary_alloc): Alloc hooks.
4258 (initialize_growth_caches): Do not register removal hooks.
4259 (free_growth_caches); Do not free removal hook.
4260 (dump_inline_edge_summary): New function.
4261 (dump_inline_summary): Use it.
4262 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4263 (inline_update_callee_summaries): New function.
4264 (inline_merge_summary): Use it.
4265 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4266 (read_inline_edge_summary): New function.
4267 (inline_read_section): Use it.
4268 (write_inline_edge_summary): New function.
4269 (inline_write_summary): Use it.
4270 (inline_free_summary): Free edge new holders.
4271 * tree-inline.c (copy_bb): Update.
4273 2011-04-26 Jason Merrill <jason@redhat.com>
4275 * tree-eh.c (lower_try_finally_switch): Create the label along with
4276 the CASE_LABEL_EXPR.
4278 2011-04-26 David S. Miller <davem@davemloft.net>
4279 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4281 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4282 * configure: Regenerate.
4284 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4287 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4289 (VEC_reduc): New code iterator and splitters for vector reduction.
4290 (VEC_reduc_name): Ditto.
4291 (VEC_reduc_rtx): Ditto.
4292 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4293 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4295 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4296 support for extracting SF on VSX.
4298 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4299 generating xscvspdp.
4300 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4301 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4302 double add, minimum, maximum vector reduction.
4303 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4304 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4305 optimize double vector reduction.
4306 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4308 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4310 * config/fr30/fr30.h (inhibit_libc): Don't define.
4311 * config/m32r/m32r-protos.h: Correct comment.
4312 * config/v850/v850.h (GHS_default_section_names,
4313 GHS_current_section_names): Use tree, not union tree_node *.
4315 2011-04-26 Xinliang David Li <davidxl@google.com>
4317 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4318 * c-family/c-opts.c (c_common_handle_option): Set
4319 warn_maybe_uninitialized.
4320 * opts.c (common_handle_option): Ditto.
4321 * common.opt: New option.
4322 * tree-ssa.c (warn_uninit): Add one more parameter.
4323 (warn_uninitialized_var): Pass warning code.
4324 * tree-flow.h: Interface change.
4327 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4329 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4330 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4331 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4333 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4335 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4336 * config/mips/mips.opt (mmips-tfile): Remove.
4338 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4339 mips-tdump reference to ...
4340 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4341 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4342 reference by Tru64 UNIX.
4344 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4347 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4348 is error_mark_node, set value to NULL.
4350 PR tree-optimization/48734
4351 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4352 if return value from maybe_fold_*_comparsions isn't something
4353 the code is prepared to handle.
4355 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4357 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4359 (ext_QIreg_nomode_operands): Remove.
4360 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4364 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4366 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4368 2011-04-26 Richard Guenther <rguenther@suse.de>
4370 * c-typeck.c (build_unary_op): Do not expand array-refs via
4371 pointer arithmetic. Only adjust qualifiers for function types.
4373 2011-04-26 Richard Guenther <rguenther@suse.de>
4376 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4377 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4378 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4379 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4381 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4383 * doc/extend.texi: Document __underlying_type.
4385 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4387 * config/rs6000/titan.md (automata_option "progress"): Remove.
4389 2011-04-25 Jeff Law <law@redhat.com>
4391 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4393 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4395 * system.h (ENUM_BITFIELD): Remove.
4397 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4398 Eric Botcazou <ebotcazou@adacore.com>
4400 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4401 for STORE_FLAG_VALUE==-1 case.
4403 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4406 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4407 LEGITIMATE_PIC_OPERAND_P.
4409 2011-04-24 Jan Hubicka <jh@suse.cz>
4411 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4413 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4414 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4415 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4416 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4417 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4418 Sanity check predicate length.
4419 (remap_predicate): Likewise; sanity check jump functions.
4420 (inline_read_section, inline_write_summary): Sanity check
4423 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4426 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4427 __is_literal_type, and __is_trivial; update throughout about
4428 possibly cv-qualified void types.
4430 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4432 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4433 testsuite and make it version agnostic.
4435 2011-04-22 Jan Hubicka <jh@suse.cz>
4437 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4439 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4442 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4443 to VOID_TYPE even around MODIFY_EXPR.
4445 2011-04-22 Mike Stump <mikestump@comcast.net>
4447 * gensupport.c (read_md_rtx): Fix typo in comment.
4448 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4451 2011-04-22 Jan Hubicka <jh@suse.cz>
4453 * gengtype.c (open_base_files): Add ipa-inline.h include.
4454 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4455 ipa-prop.c; update all uses.
4456 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4457 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4458 merge summary of inlined function into former caller.
4459 * ipa-inline.c (max_benefit): Remove.
4460 (edge_badness): Compensate for removal of benefits.
4461 (update_caller_keys): Use
4462 reset_node_growth_cache/reset_edge_growth_cache.
4463 (update_callee_keys): Likewise.
4464 (update_all_callee_keys): Likewise.
4465 (inline_small_functions): Do not collect max_benefit; do not reset
4466 estimated_growth; call free_growth_caches and initialize_growth_caches.
4467 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4468 struct size_time_entry): New structures.
4469 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4470 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4471 and estimated_growth.
4472 (edge_growth_cache_entry): New structure.
4473 (node_growth_cache, edge_growth_cache): New global vars.
4474 (estimate_growth): Turn into inline.
4475 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4476 initialize_growth_caches, free_growth_caches): Declare.
4477 (estimate_edge_growth): Rewrite.
4478 (estimate_edge_time): Implement as inline cache lookup.
4479 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4481 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4482 (NUM_CONDITIONS): New constant.
4483 (predicate_conditions): New enum.
4484 (IS_NOT_CONSTANT): New constant.
4485 (edge_removal_hook_holder): New var.
4486 (node_growth_cache, edge_growth_cache): New global vars.
4487 (true_predicate, single_cond_predicate, false_predicate,
4488 not_inlined_predicate, add_condition, add_clause, and_predicates,
4489 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4490 dump_clause, dump_predicate, account_size_time,
4491 evaulate_conditions_for_edge): New functions.
4492 (inline_summary_alloc): Move to heap.
4493 (inline_node_removal_hook): Clear condition and entry vectors.
4494 (inline_edge_removal_hook): New function.
4495 (initialize_growth_caches, free_growth_caches): New function.
4496 (dump_inline_summary): Update.
4497 (edge_execution_predicate): New function.
4498 (will_be_nonconstant_predicate): New function.
4499 (estimate_function_body_sizes): Compute BB and constantness predicates.
4500 (compute_inline_parameters): Do not clear estimated_growth.
4501 (estimate_edge_size_and_time): New function.
4502 (estimate_calls_size_and_time): New function.
4503 (estimate_callee_size_and_time): New function.
4504 (remap_predicate): New function.
4505 (inline_merge_summary): New function.
4506 (do_estimate_edge_time): New function based on...
4507 (estimate_edge_time): ... this one.
4508 (do_estimate_edge_growth): New function.
4509 (do_estimate_growth): New function based on....
4510 (estimate_growth): ... this one.
4511 (inline_analyze_function): Analyze after deciding on jump functions.
4512 (inline_read_section): New function.
4513 (inline_read_summary): Use it.
4514 (inline_write_summary): Write all the new data.
4515 * ipa-prop.c (ipa_get_param_decl_index): Export.
4516 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4517 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4519 (ipa_get_lattice): Move here from ipa-cp.c
4520 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4521 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4522 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4523 cgraph_edge_inlinable_p): Remove.
4524 * cgraphunit.c: Include ipainline.h
4525 (cgraph_process_new_functions): Update call of
4526 compute_inline_parameters.
4528 2011-04-22 Richard Guenther <rguenther@suse.de>
4530 * tree.c (build_int_cst): Properly create canonicalized integer
4532 (build_int_cst_type): Remove scary comments.
4534 2011-04-22 Xinliang David Li <davidxl@google.com>
4536 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4537 by default when -Wno-error is not specified.
4538 * opts-global.c (decode_options): Remove call to
4539 control_warning_options.
4541 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4543 PR tree-optimization/48717
4544 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4545 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4547 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4549 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4550 definition where used.
4552 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4555 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4556 TREE_STATIC variables declared inside of some OpenMP construct.
4558 2011-04-22 Martin Jambor <mjambor@suse.cz>
4561 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4563 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4566 * c-typeck.c (pop_init_level): Do not warn about initializing
4569 2011-04-22 Alan Modra <amodra@gmail.com>
4571 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4572 when returning call_cookie.
4573 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4574 pointers, to functions with no more vector args than the current
4575 function, and some non-local calls for ABI_V4.
4576 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4577 sibcall_nonlocal_aix64): Combine to ..
4578 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4579 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4580 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4581 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4582 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4584 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4585 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4586 sibcall_value_symbolic_64): Delete.
4588 2011-04-21 Xinliang David Li <davidxl@google.com>
4590 * cgraph.h: Remove pid.
4591 * cgraph.c: Remove pid.
4592 * value-prof.c (init_node_map): New function.
4593 (del_node_map): New function.
4594 (find_func_by_funcdef_no): New function.
4595 (gimple_ic_transform): Call new function.
4596 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4597 * function.c (get_last_funcdef_no): New function.
4598 * function.h (get_last_funcdef_no): New function.
4599 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4600 to libgcov function.
4601 (tree-profiling): Call node map init and delete function.
4603 2011-04-21 Ian Lance Taylor <iant@google.com>
4605 * godump.c (go_format_type): Use exported Go name for anonymous
4608 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4610 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4611 Call builtin_function_type_list instead of builtin_function_type.
4612 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4614 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4616 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4617 build_function_type_list instead of build_function_type.
4618 Delete variable `endlink'.
4620 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4622 * config/s390/s390.c (s390_init_builtins): Call
4623 build_function_type_list instead of build_function_type.
4625 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4627 * config/ia64/ia64.c (ia64_init_builtins): Call
4628 build_function_type_list instead of builtin_function_type.
4630 2011-04-21 Easwaran Raman <eraman@google.com>
4632 * cfgexpand.c (stack_var): Remove OFFSET...
4633 (add_stack_var): ...and its reference here...
4634 (expand_stack_vars): ...and here.
4635 (stack_var_cmp): Sort by descending order of size.
4636 (partition_stack_vars): Change heuristic.
4637 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4638 (dump_stack_var_partition): Add newline after each partition.
4640 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4641 Jeff Law <law@redhat.com>
4643 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4644 * gengtype.c (matching_file_name_substitute): Likewise.
4646 2011-04-21 Richard Guenther <rguenther@suse.de>
4649 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4651 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4653 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4655 2011-04-21 Richard Guenther <rguenther@suse.de>
4657 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4660 2011-04-21 Richard Guenther <rguenther@suse.de>
4662 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4663 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4664 Use DECL_P, not SSA_VAR_P.
4665 (ptr_derefs_may_alias_p): Likewise.
4666 (ptr_deref_may_alias_ref_p_1): Likewise.
4667 (decl_refs_may_alias_p): Likewise.
4668 (refs_may_alias_p_1): Likewise.
4669 (ref_maybe_used_by_call_p_1): Likewise.
4670 (call_may_clobber_ref_p_1): Likewise.
4671 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4672 are either MEM_REF or TARGET_MEM_REF.
4673 (indirect_refs_may_alias_p): Likewise.
4674 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4675 for MEM_EXPR of indirect calls.
4677 2011-04-21 Tristan Gingold <gingold@adacore.com>
4679 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4680 (dst_file_info_struct): Remove flen field.
4681 (lookup_filename): Remove code that set flen field.
4683 2011-04-21 Tristan Gingold <gingold@adacore.com>
4685 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4687 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4690 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4691 vec_extract and vec_concat for non-SSE4_1 targets.
4693 2011-04-21 Richard Guenther <rguenther@suse.de>
4695 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4698 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4700 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4702 (FILE): Don't undefine.
4704 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4706 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4708 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4710 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4711 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4712 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4714 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4715 definitions where used.
4716 * config/microblaze/microblaze.h (struct microblaze_args): Use
4717 rtx, not struct rtx_def *.
4718 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4720 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4721 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4722 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4723 not struct rtx_def *.
4724 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4726 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4728 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4730 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4732 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4733 operand_equal_p to compare DR_BASE_ADDRESSes.
4734 (vect_check_interleaving): Likewise.
4736 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4739 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4740 for all Neon struct constants.
4742 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4744 * target.def (legitimate_constant_p): New hook.
4745 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4746 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4747 * doc/tm.texi: Regenerate.
4748 * hooks.h (hook_bool_mode_rtx_true): Declare.
4749 * hooks.c (hook_bool_mode_rtx_true): Define.
4750 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4751 * calls.c (precompute_register_parameters): Replace uses of
4752 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4753 (emit_library_call_value_1): Likewise.
4754 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4755 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4756 * ira-costs.c (scan_one_insn): Likewise.
4757 * recog.c (general_operand, immediate_operand): Likewise.
4758 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4759 * reload1.c (init_eliminable_invariants): Likewise.
4761 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4763 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4764 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4766 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4767 * config/alpha/predicates.md (input_operand): Update call to
4768 alpha_legitimate_constant_p.
4770 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4771 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4772 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4773 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4774 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4775 (arm_legitimate_constant_p): New functions.
4776 (arm_cannot_force_const_mem): Make static.
4778 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4780 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4781 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4782 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4783 instead of bfin_legitimate_constant_p.
4784 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4785 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4787 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4789 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4791 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4792 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4793 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4794 (frv_legitimate_constant_p): Make static. Add a mode argument.
4796 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4797 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4798 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4800 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4801 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4802 * config/i386/i386.c (legitimate_constant_p): Rename to...
4803 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4805 (ix86_cannot_force_const_mem): Update accordingly.
4806 (ix86_legitimate_address_p): Likewise.
4807 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4808 * config/i386/i386.md: Update commentary.
4810 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4811 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4812 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4813 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4815 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4817 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4818 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4819 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4820 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4822 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4823 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4824 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4826 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4827 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4828 (m32r_legitimate_constant_p): New function.
4830 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4831 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4832 LEGITIMATE_CONSTANT_P.
4833 (LEGITIMATE_CONSTANT_P): Delete.
4834 * config/m68k/m68k.c (m68k_expand_prologue): Call
4835 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4836 (m68k_legitimate_constant_p): New function.
4837 * config/m68k/m68k.md: Update comments.
4839 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4840 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4841 (mcore_legitimate_constant_p): New function.
4843 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4844 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4845 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4846 Add a mode argument.
4847 (mep_legitimate_address): Update accordingly.
4848 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4850 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4852 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4853 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4854 static. Check OP's mode for VOIDmode.
4855 (microblaze_legitimate_constant_p): New function.
4856 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4858 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4859 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4860 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4861 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4862 * config/mips/predicates.md: Update comments.
4864 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4865 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4866 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4867 (mmix_legitimate_constant_p): Make static, return a bool, and take
4869 (mmix_print_operand_address): Update accordingly.
4871 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4873 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4874 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4875 static. Add a mode argument.
4876 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4878 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4880 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4881 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4882 (pa_legitimate_constant_p): New function.
4884 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4886 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4887 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4888 (pdp11_legitimate_constant_p): New function.
4890 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4891 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4892 (rs6000_legitimate_constant_p): New function.
4894 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4895 (rx_legitimate_constant_p): ...this.
4896 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4897 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4898 (rx_legitimate_constant_p): ...this.
4899 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4900 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4902 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4903 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4904 * config/s390/s390.c (legitimate_constant_p): Rename to...
4905 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4906 and add a mode argument.
4907 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4909 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4911 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4912 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4913 (sh_legitimate_constant_p): New function.
4915 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4916 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4917 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4918 (legitimate_constant_p): Rename to...
4919 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4921 (constant_address_p): Update accordingly.
4923 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4924 argument and return a bool.
4925 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4926 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4927 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4928 (spu_rtx_costs): Update accordingly.
4929 * config/spu/predicates.md (vec_imm_operand): Likewise.
4931 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4933 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4934 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4935 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4937 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4938 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4939 * config/vax/vax.c (legitimate_constant_p): Likewise.
4941 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4942 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4943 (xtensa_legitimate_constant_p): New function.
4945 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4947 * target.def (cannot_force_const_mem): Add a mode argument.
4948 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4949 * doc/tm.texi: Regenerate.
4950 * hooks.h (hook_bool_mode_rtx_false): Declare.
4951 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4952 (hook_bool_mode_const_rtx_true): Likewise.
4953 (hook_bool_mode_rtx_false): New function.
4954 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4955 to be non-VOID. Update call to cannot_force_const_mem.
4956 (find_reloads): Update accordingly.
4957 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4958 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4960 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4961 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4962 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4963 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4964 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4965 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4966 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4967 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4968 (m68k_cannot_force_const_mem): ...this new function.
4969 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4971 (mips_const_insns, mips_legitimize_const_move): Update calls.
4972 (mips_secondary_reload_class): Likewise.
4973 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4974 (pa_cannot_force_const_mem): ...this new function.
4975 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4976 (rs6000_cannot_force_const_mem): ...this new function.
4977 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4979 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4980 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4982 (xtensa_cannot_force_const_mem): ...this new function.
4984 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4986 * config/mips/mips.c (mips16_build_function_stub): Call
4987 build_function_type_list instead of build_function_type.
4988 (mips16_build_call_stub): Likewise.
4990 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4992 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4993 instead of build_function_type.
4995 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4997 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4998 instead of build_function_type.
5000 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5003 * config/i386/i386.md (insv): Change operand 0 constraint to
5004 "register_operand". Change operand 1 and 2 constraint to
5005 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5006 * config/i386/sse.md (sse4_1_pinsrb): Export.
5007 (sse2_pinsrw): Ditto.
5008 (sse4_1_pinsrd): Ditto.
5009 (sse4_1_pinsrq): Ditto.
5010 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5011 * config/i386/i386.c (ix86_expand_pinsr): New.
5013 2011-04-20 Easwaran Raman <eraman@google.com>
5015 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5016 containing union type only with -fstrict-aliasing.
5018 2011-04-20 Jim Meyering <meyering@redhat.com>
5020 Remove useless if-before-free tests.
5021 * calls.c (expand_call, save_area): Likewise.
5022 * cfgcleanup.c (try_forward_edges): Likewise.
5023 * collect2.c (collect_execute): Likewise.
5024 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5025 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5026 * coverage.c (coverage_checksum_string): Likewise.
5027 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5028 * cselib.c (cselib_init): Likewise.
5029 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5030 (df_set_clean_cfg): Likewise.
5031 * function.c (free_after_compilation): Likewise.
5032 * gcc.c (do_spec_1, main): Likewise.
5033 * gcov.c (create_file_names): Likewise.
5034 * gensupport.c (identify_predicable_attribute): Likewise.
5035 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5036 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5037 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5038 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5039 * ipa-pure-const.c (local_pure_const): Likewise.
5040 * ipa-reference.c (propagate): Likewise.
5041 * ira-costs.c (free_ira_costs): Likewise.
5042 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5043 * matrix-reorg.c (mat_free): Likewise.
5044 * prefix.c (get_key_value): Likewise.
5045 * profile.c (compute_value_histograms): Likewise.
5046 * reload1.c (free_reg_equiv): Likewise.
5047 * sched-deps.c (free_deps): Likewise.
5048 * sel-sched-ir.c (fence_clear): Likewise.
5049 * sese.c (set_rename, if_region_set_false_region): Likewise.
5050 * tree-data-ref.c (free_rdg): Likewise.
5051 * tree-eh.c (lower_try_finally): Likewise.
5052 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5053 * tree-ssa-live.c (delete_var_map): Likewise.
5054 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5055 * tree-ssa-pre.c (phi_trans_add): Likewise.
5057 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5059 PR tree-optimization/48611
5060 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5061 beyond ERT_MUST_NOT_THROW region.
5063 2011-04-20 Catherine Moore <clm@codesourcery.com>
5065 * config/mips/mips.opt (mfix-24k): New.
5066 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5067 * config/mips/mips.md (length): Increase by 4 for stores if
5069 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5070 all noreorder if fixing 24K errata.
5071 * doc/invoke.texi: Document mfix-24k.
5073 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5075 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5076 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5078 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5080 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5081 (const_ok_for_op): ... to here.
5083 2011-04-20 Kai Tietz <ktietz@redhat.com>
5085 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5086 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5088 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5090 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5092 2011-04-20 Richard Guenther <rguenther@suse.de>
5094 PR tree-optimization/47892
5095 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5098 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5100 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5102 2011-04-20 Tristan Gingold <gingold@adacore.com>
5104 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5106 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5110 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5111 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5112 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5113 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5114 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5116 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5119 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5120 (avr_asm_named_section, avr_asm_output_aligned_common,
5121 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5122 New functions to update...
5123 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5124 (avr_asm_init_sections): Overwrite section callbacks for
5125 data_section, bss_section.
5126 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5128 (avr_file_end): ...here.
5130 2011-04-20 Richard Guenther <rguenther@suse.de>
5133 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5134 objects and types here. Adjust for their offset before comparing.
5136 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5138 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5141 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5143 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5144 (GIMPLE_H): Include $(INTERNAL_FN_H).
5145 (OBJS-common): Add internal-fn.o.
5146 (internal-fn.o): New rule.
5147 * internal-fn.def: New file.
5148 * internal-fn.h: Likewise.
5149 * internal-fn.c: Likewise.
5150 * gimple.h: Include internal-fn.h.
5151 (GF_CALL_INTERNAL): New gf_mask.
5152 (gimple_statement_call): Put fntype into a union with a new
5154 (gimple_build_call_internal): Declare.
5155 (gimple_build_call_internal_vec): Likewise.
5156 (gimple_call_same_target_p): Likewise.
5157 (gimple_call_internal_p): New function.
5158 (gimple_call_internal_fn): Likewise.
5159 (gimple_call_fntype): Return null for internal calls.
5160 (gimple_call_set_fntype): Assert that the function is not internal.
5161 (gimple_call_set_fn): Likewise.
5162 (gimple_call_set_fndecl): Likewise.
5163 (gimple_call_set_internal_fn): New function.
5164 (gimple_call_addr_fndecl): Handle null functions.
5165 (gimple_call_return_type): Likewise null types.
5166 * gimple.c (gimple_build_call_internal_1): New function.
5167 (gimple_build_call_internal): Likewise.
5168 (gimple_build_call_internal_vec): Likewise.
5169 (gimple_call_same_target_p): Likewise.
5170 (gimple_call_flags): Handle calls to internal functions.
5171 (gimple_call_fnspec): New function.
5172 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5173 (gimple_has_side_effects): Handle null functions.
5174 (gimple_rhs_has_side_effects): Likewise.
5175 (gimple_call_copy_skip_args): Handle calls to internal functions.
5176 * cfgexpand.c (expand_call_stmt): Likewise.
5177 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5178 * gimple-fold.c (gimple_fold_call): Handle null functions.
5179 (gimple_fold_stmt_to_constant_1): Don't fold
5180 calls to internal functions.
5181 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5183 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5184 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5185 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5186 (do_warn_unused_result): Likewise.
5187 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5188 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5189 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5190 the target of a call.
5191 (initialize_hash_element): Update accordingly.
5192 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5193 (iterative_hash_hashable_expr): Handle calls to internal functions.
5194 (print_expr_hash_elt): Likewise.
5195 * tree-ssa-pre.c (can_value_number_call): Likewise.
5196 (eliminate): Handle null functions.
5197 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5198 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5199 (find_func_aliases): Likewise.
5200 * value-prof.c (gimple_ic_transform): Likewise.
5201 (gimple_indirect_call_to_profile): Likewise.
5202 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5203 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5205 2011-04-19 Jan Hubicka <jh@suse.cz>
5207 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5208 * ipa-inline.c (inline_small_functions): Compute summaries first,
5209 populate heap later.
5211 2011-04-19 Jan Hubicka <jh@suse.cz>
5213 * cgraph.h (save_inline_function_body): Remove.
5214 * ipa-inline-transform.c: New file, broke out of...
5215 * ipa-inline.c: ... this one; Update toplevel comment.
5216 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5218 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5219 (cgraph_mark_inline_edge): Rename to inline_call; move to
5220 ipa-inline-transform.c.
5221 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5222 move to ipa-inline-transform.c
5223 (recursive_inlining, inline_small_functions, flatten_function,
5224 ipa_inline, inline_always_inline_functions,
5225 early_inline_small_functions): Update.
5226 (inline_transform): Move to ipa-inline-transform.c.
5227 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5229 * Makefile.in (ipa-inline-transform.o): New file.
5230 * cgraphunit.c (save_inline_function_body): Move to
5231 ipa-inline-transform.c
5233 2011-04-19 DJ Delorie <dj@redhat.com>
5235 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5236 registers if we already know there aren't any.
5237 (m32c_emit_epilogue): Don't emit a barrier here.
5238 (m32c_emit_eh_epilogue): Likewise.
5239 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5240 operands at expand time.
5241 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5243 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5244 duplicates. Provide aliases instead.
5245 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5246 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5249 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5251 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5252 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5253 (general_or_i64_p, sparc_register_move_cost): New function.
5255 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5257 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5258 Add lynx, mipssde. Sort table.
5260 2011-04-19 Xinliang David Li <davidxl@google.com>
5262 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5265 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5268 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5269 is a SUBREG with non-MODE_INT mode inside of it.
5271 2011-04-19 Martin Jambor <mjambor@suse.cz>
5273 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5274 also according to actual contants.
5275 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5276 (gimple_fold_call): Use it.
5277 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5279 2011-04-19 Martin Jambor <mjambor@suse.cz>
5281 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5282 non-pointer assignments.
5284 2011-04-19 Martin Jambor <mjambor@suse.cz>
5286 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5287 account anc_offset and otr_type from the indirect edge info.
5288 * ipa-prop.c (get_ancestor_addr_info): New function.
5289 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5290 get_ancestor_addr_info, call it.
5291 (ipa_note_param_call): Do not initialize information about polymorphic
5292 calls, return the indirect call graph edge. Remove the last
5293 parameter, adjust all callers.
5294 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5295 parameters. Initialize polymorphic information in the indirect edge.
5297 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5300 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5301 the types if they have different enumeration identifiers.
5303 2011-04-19 Jan Hubicka <jh@suse.cz>
5305 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5306 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5307 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5308 (optimize_function_for_size_p) ... here.
5310 2011-04-19 Richard Guenther <rguenther@suse.de>
5313 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5316 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5318 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5319 if DECL_NO_INLINE_WARNING_P is set on the function.
5321 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5324 * reload1.c (inc_for_reload): Return void. All callers changed.
5325 (emit_input_reload_insns): Don't try to delete previous output
5326 reloads to a register, or record spill_reg_store for autoincs.
5328 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5330 * gengtype.h: Updated copyright year.
5331 (struct input_file_st): Add inpisplugin field.
5332 (type_fileloc): New function.
5334 (write_typed_struct_alloc_def): Add gcc_assert.
5335 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5336 (write_typed_alloc_defns): Don't output for plugin files.
5337 (input_file_by_name): Clear inpisplugin field.
5338 (main): Set inpisplugin field for plugin files.
5340 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5342 * gengtype-state.c (string_eq): New.
5343 (read_state): Use string_eq instead of strcmp when creating the
5346 2011-04-19 Wei Guozhi <carrot@google.com>
5349 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5350 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5352 * config/arm/constraints.md (Uu): New constraint.
5353 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5355 2011-04-19 Tristan Gingold <gingold@adacore.com>
5357 * config.gcc (-*-*-*vms): Added.
5358 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5360 * config/vms/vms-ld.c: New file.
5361 * config/vms/vms-ar.c: New file.
5362 * config/vms/t-vmsnative: New file.
5364 2011-04-18 Xinliang David Li <davidxl@google.com>
5366 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5368 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5371 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5372 if TREE_TYPE (v) is non-NULL.
5374 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5375 gimple_get_virt_mehtod_for_binfo.
5376 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5377 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5379 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5381 2011-04-18 Michael Matz <matz@suse.de>
5382 Steve Ellcey <sje@cup.hp.com>
5384 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5385 use its mode as source mode if it isn't VOIDmode.
5387 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5389 * doc/passes.texi: Fill crossref nodes.
5391 2011-04-18 Jim Meyering <meyering@redhat.com>
5393 Fix doubled-word typos in comments and strings
5394 * config/alpha/vms-unwind.h: s/for for/for/
5395 * config/arm/unwind-arm.h: Likewise.
5396 * config/microblaze/microblaze.c: Likewise.
5397 * config/sh/constraints.md: s/in in/in/
5398 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5400 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5402 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5403 (AVX_FLOAT_MODE_P): Ditto.
5404 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5405 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5406 (AVX_VEC_FLOAT_MODE_P): Ditto.
5407 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5408 (UNSPEC_MASKSTORE): Ditto.
5409 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5410 Merge from <sse>_movmsk<ssemodesuffix> and
5411 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5412 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5414 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5415 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5416 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5418 2011-04-18 Jan Hubicka <jh@suse.cz>
5420 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5422 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5423 (want_inline_function_called_once_p): Break out the logic from
5425 (edge_badness): Ensure that profile is not misupdated.
5426 (lookup_recursive_calls): Prioritize by call frequencies.
5427 (inline_small_functions): Move program size estimates here;
5428 actually process whole queue even when unit growth has been
5429 met. (to properly compute inline_failed reasons and for the
5430 case unit size decrease.) Revisit comments on recursive inlining.
5431 (ipa_inline): Remove unit summary code; first inline hot calls
5432 of functions called once, cold calls next.
5433 (order, nnodes): Remove unused variables.
5434 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5435 (GTFILES): Remove ipa-inline.c
5436 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5438 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5440 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5442 2011-04-18 Jie Zhang <jie@codesourcery.com>
5443 Richard Earnshaw <rearnsha@arm.com>
5445 * arm.c (neon_builtin_type_bits): Remove.
5446 (typedef enum neon_builtin_mode): New.
5447 (T_MAX): Don't define.
5448 (typedef enum neon_builtin_datum): Remove bits, codes[],
5449 num_vars and base_fcode. Add mode, code and fcode.
5450 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5451 VAR10): Change accordingly.
5452 (neon_builtin_data[]): Change accordingly
5453 (arm_init_neon_builtins): Change accordingly.
5454 (neon_builtin_compare): Remove.
5455 (locate_neon_builtin_icode): Remove.
5456 (arm_expand_neon_builtin): Change accordingly.
5458 * arm.h (enum arm_builtins): Move to ...
5459 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5461 * arm.c (arm_builtin_decl): Declare.
5462 (TARGET_BUILTIN_DECL): Define.
5463 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5464 (arm_builtin_decls[]): New.
5465 (arm_init_neon_builtins): Store builtin declarations in
5466 arm_builtin_decls[].
5467 (arm_init_tls_builtins): Likewise.
5468 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5469 (arm_builtin_decl): New.
5471 2011-04-18 Richard Guenther <rguenther@suse.de>
5473 * tree.c (upper_bound_in_type): Build properly canonicalized
5475 (lower_bound_in_type): Likewise.
5477 2011-04-18 Richard Guenther <rguenther@suse.de>
5479 * gimple.h (gimple_call_addr_fndecl): New function.
5480 (gimple_call_fndecl): Use it.
5481 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5483 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5484 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5486 2011-04-18 Richard Guenther <rguenther@suse.de>
5489 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5491 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5494 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5495 DECL_IN_CONSTANT_POOL without RTL.
5497 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5498 Ira Rosen <ira.rosen@linaro.org>
5501 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5502 to match neon_vzip/vuzp/vtrn_internal.
5503 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5504 outputs explicitly dependent on both inputs.
5505 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5507 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5509 PR tree-optimization/48616
5510 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5511 whether the shift is by scalar or vector based on whether all SLP
5512 scalar stmts have the same rhs.
5514 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5516 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5519 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5522 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5525 2011-04-17 Jan Hubicka <jh@suse.cz>
5527 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5528 * cgrpahunit.c (cgraph_finalize_function): Do not set
5529 finalized_by_frontend.
5530 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5531 finalized_by_frontend.
5533 2011-04-17 Jan Hubicka <jh@suse.cz>
5535 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5536 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5537 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5538 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5540 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5542 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5544 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5547 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5548 is non-null before accessing it.
5549 (input_cgraph): Remove trailing spaces.
5551 2011-04-17 Revital Eres <revital.eres@linaro.org>
5553 * params.def (sms-min-sc): New param flag.
5554 * modulo-sched.c (sms_schedule): Use it.
5555 * doc/invoke.texi (sms-min-sc): Document it.
5557 2011-04-17 Jan Hubicka <jh@suse.cz>
5559 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5560 present, also set gimple_call_set_cannot_inline.
5561 * ipa-inline.c: Update toplevel comment.
5563 (cgraph_clone_inlined_nodes): Fix linebreaks.
5564 (cgraph_check_inline_limits): Restructure to ...
5565 (caller_growth_limits): ... this one; be more tolerant
5566 on growth in nested inline chains; add explanatory comment;
5567 fix stack accounting thinko introduced by previous patch.
5568 (cgraph_default_inline_p): Remove.
5569 (report_inline_failed_reason): New function.
5570 (can_inline_edge_p): New function.
5571 (can_early_inline_edge_p): New function.
5572 (leaf_node_p): Move upwards in file.
5573 (want_early_inline_function_p): New function.
5574 (want_inline_small_function_p): New function.
5575 (want_inline_self_recursive_call_p): New function.
5576 (cgraph_edge_badness): Rename to ...
5577 (edge_badness) ... this one; fix linebreaks.
5578 (update_edge_key): Update call of edge_baddness; add
5579 detailed dump about queue updates.
5580 (update_caller_keys): Use can_inline_edge_p and
5581 want_inline_small_function_p.
5582 (cgraph_decide_recursive_inlining): Rename to...
5583 (recursive_inlining): Use can_inline_edge_p and
5584 want_inline_self_recursive_call_p; simplify and remove no longer
5586 (cgraph_set_inline_failed): Remove.
5587 (add_new_edges_to_heap): Use can_inline_edge_p and
5588 want_inline_small_function_p.
5589 (cgraph_decide_inlining_of_small_functions): Rename to ...
5590 (inline_small_functions): ... this one; cleanup; use
5591 can/want predicates; cleanup debug ouput; work edges till fibheap
5592 is exhausted and do not stop once unit growth is reached; remove
5593 later loop processing remaining edges.
5594 (cgraph_flatten): Rename to ...
5595 (flatten_function): ... this one; use can_inline_edge_p
5596 and can_early_inline_edge_p predicates.
5597 (cgraph_decide_inlining): Rename to ...
5598 (ipa_inline): ... this one; remove unreachable nodes before
5599 inlining functions called once; simplify the pass.
5600 (cgraph_perform_always_inlining): Rename to ...
5601 (inline_always_inline_functions): ... this one; use
5602 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5603 (cgraph_decide_inlining_incrementally): Rename to ...
5604 (early_inline_small_functions): ... this one; simplify
5605 using new predicates; cleanup; make dumps prettier.
5606 (cgraph_early_inlining): Rename to ...
5607 (early_inliner): newer inline regular functions into always-inlines;
5608 fix updating of call stmt summaries.
5609 (pass_early_inline): Update for new names.
5610 (inline_transform): Fix formating.
5611 (gate_cgraph_decide_inlining): Rename to ...
5612 (pass_ipa_inline): ... this one.
5613 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5614 * ipa-inline-analysis.c (dump_inline_summary): Update.
5615 (compute_inline_parameters): Do not compute disregard_inline_limits;
5616 look for mismatching arguments.
5617 (estimate_growth): Fix handlig of non-trivial self recursion.
5618 (inline_read_summary): Do not read info->disregard_inline_limits.
5619 (inline_write_summary): Do not write info->disregard_inline_limits.
5620 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5621 and move all checks into can_inline_edge_p predicate; re-enable code
5622 comparing optimization levels.
5623 (expand_call_inline): Do not test inline_forbidden_into_p.
5624 * Makefile.in (ipa-inline.o): Update arguments.
5626 2011-04-17 Revital Eres <revital.eres@linaro.org>
5628 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5630 2011-04-17 Revital Eres <revital.eres@linaro.org>
5632 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5634 2011-04-17 Michael Matz <matz@suse.de>
5636 PR tree-optimization/48622
5638 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5639 in same order as they're written.
5641 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5643 * config/pa/predicates.md: Reorganize and simplify predicates.
5644 Eliminate duplicate code checks.
5645 (arith_operand): Rename to arith14_operand
5646 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5647 * config/pa/pa.md: Use renamed operands.
5648 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5649 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5650 arith11_operand, adddi3_operand, indexed_memory_operand,
5651 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5652 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5653 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5654 move_dest_operand, move_src_operand, prefetch_cc_operand,
5655 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5656 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5657 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5658 div_operand, int5_operand, movb_comparison_operator,
5659 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5660 arith_double_operand, ireg_operand, lhs_lshift_operand,
5661 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5662 integer_store_memory_operand): Likewise.
5663 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5664 (integer_store_memory_operand, read_only_operand,
5665 function_label_operand, borx_reg_operand,
5666 non_hard_reg_operand): Likewise.
5667 (eq_neq_comparison_operator): Delete unused operator.
5668 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5669 function_label_operand.
5670 (emit_move_sequence): Likewise.
5672 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5674 * config/i386/sse.md (sseunpackmode): New mode attribute.
5675 (ssepackmode): Ditto.
5676 (vec_pack_trunc_<mode>): Macroize expander from
5677 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5678 (vec_unpacks_lo_<mode>): Macroize expander from
5679 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5680 (vec_unpacks_hi_<mode>): Macroize expander from
5681 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5682 (vec_unpacku_lo_<mode>): Macroize expander from
5683 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5684 (vec_unpacku_hi_<mode>): Macroize expander from
5685 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5686 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5687 ix86_expand_sse4_unpack.
5688 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5690 2011-04-16 Jan Hubicka <jh@suse.cz>
5692 * cgraphbuild.c: Include ipa-inline.h.
5693 (reset_inline_failed): Use initialize_inline_failed.
5694 * cgraph.c: Include ipa-inline.h.
5695 (cgraph_create_node_1): Do not initialize estimated_growth.
5696 (initialize_inline_failed): More to ipa-inline-analysis.c
5697 (dump_cgraph_node): Do not dump inline flags.
5698 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5699 and disregard_inline_limits flags.
5700 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5701 time, size, estimated_growth.
5702 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5704 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5705 DECL_DISREGARD_INLINE_LIMITS.
5706 (cgraph_analyze_function): Do not initialize
5707 node->local.disregard_inline_limits.
5708 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5709 inlinable, versionable and disregard_inline_limits.
5710 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5711 cgraph_check_inline_limits, cgraph_default_inline_p,
5712 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5713 add_new_edges_to_heap): Update.
5714 (cgraph_decide_inlining_of_small_function): Update; set
5715 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5716 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5717 cgraph_decide_inlining_incrementally): Update.
5718 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5719 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5720 time, size and estimated_growth parameters.
5721 (estimate_edge_growth): Update.
5722 (initialize_inline_failed): Declare.
5723 * ipa-split.c: Include ipa-inline.h
5724 (execute_split_functions): Update.
5725 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5726 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5727 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5728 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5729 estimated_growth to INT_MIN.
5730 (inline_node_duplication_hook): Likewise.
5731 (dump_inline_summary): Dump new fields.
5732 (compute_inline_parameters): Update.
5733 (estimate_edge_time, estimate_time_after_inlining,
5734 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5735 inline_write_summary):
5736 (initialize_inline_failed): Move here from cgraph.c.
5737 * tree-sra.c: Include ipa-inline.h.
5738 (ipa_sra_preliminary_function_checks): Update.
5739 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5742 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5744 * config/i386/sse.md (V16): New mode iterator.
5746 (AVXMODEQI, AVXMODEDI): Remove.
5747 (sse2, sse3): New mode attribute.
5748 (mov<mode>): Use V16 mode iterator.
5749 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5750 (push<mode>1): Use V16 mode iterator.
5751 (movmisalign<mode>): Ditto.
5752 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5753 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5754 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5755 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5756 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5757 avx_movdqu<avxmodesuffix>.
5758 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5759 *avx_movdqu<avxmodesuffix>.
5760 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5761 avx_lddqu<avxmodesuffix>.
5762 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5763 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5764 avx_movnt<AVXMODEDI:mode>.
5765 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5766 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5768 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5771 * haifa-sched.c (prune_ready_list, schedule_block): Use
5772 sched_pressure_p rather than flag_sched_pressure.
5774 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5776 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5777 cgraph_get_node instead of cgraph_get_create_node.
5779 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5781 * cfgexpand.c (expand_debug_expr): Use
5782 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5784 2011-04-15 Michael Matz <matz@suse.de>
5786 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5787 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5788 * function.c (gimplify_parameters): Ditto.
5789 * gimplify.c (gimplify_vla_decl): Ditto.
5791 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5792 (gimple_call_set_alloca_for_var): New inline function.
5793 (gimple_call_alloca_for_var_p): Ditto.
5794 * gimple.c (gimple_build_call_from_tree): Remember
5795 CALL_ALLOCA_FOR_VAR_P state.
5796 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5798 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5799 calls if they were for VLA objects.
5801 2011-04-15 Martin Jambor <mjambor@suse.cz>
5803 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5806 2011-04-15 Martin Jambor <mjambor@suse.cz>
5809 * tree-emutls.c (lower_emutls_function_body): Call
5810 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5813 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5815 * c-decl.c (detect_field_duplicates): Call
5816 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5818 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5820 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5821 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5822 * ipa-pure-const.c (check_stmt): Call it.
5823 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5825 2011-04-15 Richard Guenther <rguenther@suse.de>
5827 PR tree-optimization/48290
5828 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5829 Properly decide inhibiting propagation based on the valueized
5830 operand. Do loop-closed SSA form preserving here ...
5831 (init_copy_prop): ... not here.
5833 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5836 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5837 (*ieee_smax<mode>3): Likewise.
5839 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5841 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5842 Replace match_operand with match_dup for the third operand in
5845 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5847 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5848 to track processing of conditionals. Update all callers.
5849 (try_combine, simplify_if_then_else): Update.
5851 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5853 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5856 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5858 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5859 instead of match_operand for operand 3.
5861 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5863 * recog.h (insn_operand_data): Add an "allows_mem" field.
5864 * genoutput.c (output_operand_data): Initialize it.
5865 * optabs.c (maybe_legitimize_operand_same_code): New function.
5866 (maybe_legitimize_operand): Use it when matching the original
5869 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5871 * gimplify.c: Fix issues in comments throughout.
5872 (voidify_wrapper_expr): Fix long line.
5873 (build_stack_save_restore): Likewise.
5874 (gimplify_loop_expr): Likewise.
5875 (gimplify_compound_lval): Likewise.
5876 (gimplify_init_ctor_eval): Likewise.
5877 (gimplify_modify_expr_rhs): Likewise.
5878 (omp_notice_threadprivate_variable): Likewise.
5880 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5882 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5883 original one if this is not a builtin function.
5885 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5888 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5889 offset it as needed based on top 2 bits in operands[3], change
5890 MEM mode to SFmode and mask those 2 bits away from operands[3].
5892 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5894 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5895 change from objc_declare_protocols() to objc_declare_protocol().
5897 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5899 * config/i386/sse.md (sse4_1): New mode attribute.
5900 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5901 avx_blend<ssemodesuffix><avxmodesuffix> and
5902 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5903 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5904 avx_blendv<ssemodesuffix><avxmodesuffix> and
5905 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5906 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5907 avx_dp<ssemodesuffix><avxmodesuffix> and
5908 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5909 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5910 (sse4_1_packusdw): Merge with *avx_packusdw.
5911 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5912 (sse4_1_pblendw): Merge with *avx_pblendw.
5913 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5914 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5915 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5917 (sse4_1_round<ssescalarmodesuffix>): Merge with
5918 *avx_round<ssescalarmodesuffix>.
5919 (aesenc): Merge with *avx_aesenc.
5920 (aesenclast): Merge with *avx_aesenclast.
5921 (aesdec): Merge with *avx_aesdec.
5922 (aesdeclast): Merge with *avx_aesdeclast.
5923 (pclmulqdq): Merge with *pclmulqdq.
5924 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5926 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5928 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5931 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5932 (align_local_variable): This. Update DECL_ALIGN.
5933 (add_stack_var): Updated.
5934 (expand_one_stack_var): Likewise.
5936 2011-04-14 Richard Guenther <rguenther@suse.de>
5938 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5940 (dse_initialize_block_local_data, dse_leave_block,
5941 record_voperand_set, get_stmt_uid): Likewise.
5942 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5943 (dse_optimize_stmt): Remove voperand set handling code.
5944 Simplify and improve to handle any kind of killing stmt.
5945 (dse_record_phi): Remove.
5946 (dse_enter_block): Simplify.
5947 (tree_ssa_dse): Likewise.
5948 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5950 2011-04-14 Jan Hubicka <jh@suse.cz>
5952 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5953 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5954 (cgraph_local_info): Remove inline_summary.
5955 * ipa-cp.c: Include ipa-inline.h.
5956 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5957 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5959 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5960 (input_overwrite_node): Do not set inline summary.
5961 (input_node): Do not stream inline summary.
5962 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5963 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5964 growth; we do not have inline parameters computed for that anyway.
5965 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5966 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5967 (inline_summary_t): New type and VECtor.
5968 (debug_inline_summary, dump_inline_summaries): Declare.
5969 (inline_summary): Use VOCtor.
5970 (estimate_edge_growth): Kill hack computing call stmt size directly.
5971 * lto-section-in.c (lto_section_name): Add inline section.
5972 * ipa-inline-analysis.c: Include lto-streamer.h
5973 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5974 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5975 (inline_summary_vec): Define.
5976 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5977 dump_inline_summaries): New functions.
5978 (estimate_function_body_sizes): Properly compute size/time of outgoing
5980 (compute_inline_parameters): Alloc inline_summary; do not compute
5981 size/time of incomming calls.
5982 (estimate_edge_time): Avoid missing time summary hack.
5983 (inline_read_summary): Read inline summary info.
5984 (inline_write_summary): Write inline summary info.
5985 (inline_free_summary): Free all hooks and inline summary vector.
5986 * lto-streamer.h: Add LTO_section_inline_summary section.
5987 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5988 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5990 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5992 * tree-vectorizer.h (vect_strided_store_supported): Add a
5993 HOST_WIDE_INT argument.
5994 (vect_strided_load_supported): Likewise.
5995 (vect_permute_store_chain): Return void.
5996 (vect_transform_strided_load): Likewise.
5997 (vect_permute_load_chain): Delete.
5998 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5999 count argument. Check that the count is a power of two.
6000 (vect_strided_load_supported): Likewise.
6001 (vect_permute_store_chain): Return void. Update after above changes.
6002 Assert that the access is supported.
6003 (vect_permute_load_chain): Likewise.
6004 (vect_transform_strided_load): Return void.
6005 * tree-vect-stmts.c (vectorizable_store): Update calls after
6006 above interface changes.
6007 (vectorizable_load): Likewise.
6008 (vect_analyze_stmt): Don't check for strided powers of two here.
6010 2011-04-14 Richard Guenther <rguenther@suse.de>
6012 PR tree-optimization/48590
6013 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6014 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6015 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6016 BUILT_IN_STACK_SAVE.
6017 * tree-ssa-dce.c (propagate_necessity): Handle
6018 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6020 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6022 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6025 2011-04-14 Richard Guenther <rguenther@suse.de>
6027 * tree.h (get_object_alignment_1): Declare.
6028 * builtins.c (get_object_alignment_1): Split out worker from ...
6029 (get_object_alignment): ... here.
6030 * fold-const.c (get_pointer_modulus_and_residue): Use
6031 get_object_alignment_1.
6033 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6035 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6037 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6038 parameter. Generalise code to handle arrays as well as vectors.
6039 (vect_setup_realignment): Update accordingly.
6040 * tree-vect-stmts.c (vectorizable_store): Likewise.
6041 (vectorizable_load): Likewise.
6043 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6045 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6046 within the per-copy loop.
6048 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6050 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6053 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6055 * doc/options.texi (Negative): Explicitly mention that the
6056 Negative chain must be circular.
6058 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6060 * function.h (block_chainon): Declare.
6061 * function.c (block_chainon): Define.
6063 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6064 Eric Weddington <eric.weddington@atmel.com>
6065 Georg-Johann Lay <avr@gjlay.de>
6067 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6069 (avr_init_builtins, avr_expand_builtin,
6070 avr_expand_delay_cycles, avr_expand_unop_builtin,
6071 avr_expand_binop_builtin ): New functions.
6072 (avr_builtin_id): New enum
6073 (struct avr_builtin_description): New struct
6074 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6075 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6077 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6078 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6079 UNSPECV_DELAY_CYCLES): new enumeration values
6080 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6081 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6082 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6083 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6084 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6085 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6086 "fmulsu"): New insns
6088 * config/avr/avr-c.c: fix line endings
6089 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6090 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6091 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6092 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6093 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6095 * doc/extend.texi (AVR Built-in Functions): New node
6096 (Target Builtins): Add documentation of AVR
6099 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6102 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6103 alone. Error if non-const data has attribute progmem.
6105 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6107 * tree.h (struct tree_constructor): Include tree_typed instead of
6109 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6110 TS_TYPED instead of TS_COMMON.
6112 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6114 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6115 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6116 (sse2_psadbw): Merge with *avx_psadbw.
6117 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6118 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6119 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6120 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6121 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6122 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6123 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6124 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6125 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6126 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6127 (ssse3_palignrti): Merge with *avx_palignrti.
6129 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6131 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6132 * tree-ssanames.c (fini_ssanames): VEC_free it.
6133 (make_ssa_name_fn): Update for VECness of free_ssanames.
6134 (release_ssa_name, release_dead_ssa_names): Likewise.
6135 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6137 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6138 TS_TYPED instead of TS_COMMON.
6140 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6142 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6143 statistics_counter_event.
6144 * tree-ssa-copyrename.c (stats): Define.
6145 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6146 statistics_counter_event.
6147 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6148 (bswap_stats, widen_mul_stats): Define.
6149 (insert_reciprocals): Increment rdivs_inserted.
6150 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6151 rfuncs_inserted. Add calls to statistics_counter_event.
6152 (execute_cse_sincos_1): Increment inserted.
6153 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6154 statistics_counter_event.
6155 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6156 of bswap_stats. Add calls to statistics_counter_event.
6157 (convert_mult_to_widen): Increment widen_mults_inserted.
6158 (convert_plusminus_to_widen): Increment maccs_inserted.
6159 (convert_mult_to_fma): Increment fmas_inserted.
6160 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6161 calls to statistics_counter_event.
6163 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6165 PR rtl-optimization/48455
6166 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6167 `temp_costs->mem_cost'.
6169 2011-04-13 Jan Hubicka <jh@suse.cz>
6171 * ipa-inline.h: New file.
6172 * ipa-inline-analysis.c: New file. Broken out of ...
6173 * ipa-inline.c: ... this file; update toplevel comment;
6174 include ipa-inline.h
6175 (inline_summary): Move to ipa-inline.h
6176 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6177 ipa-inline-analysis.c.
6178 (cgraph_estimate_time_after_inlining): Rename to
6179 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6180 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6181 to estimate_edge_growth.
6182 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6183 rename to estimate_size_after_inlining.
6184 (cgraph_mark_inline_edge): Update for new naming convention.
6185 (cgraph_check_inline_limits): Likewise.
6186 (cgraph_edge_badness): Likewise.
6187 (cgraph_decide_recursive_inlining): Likewise.
6188 (cgraph_decide_inlining_of_small_functions): Likewise.
6189 (cgraph_decide_inlining_incrementally): Likewise.
6190 (cgraph_estimate_growth): Rename to estimate_growth; move to
6191 ipa-inline-analysis.c.
6192 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6193 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6194 (compute_inline_parameters): Likewise.
6195 (compute_inline_parameters_for_current): Likewise.
6196 (pass_inline_parameters): Likewise.
6197 (inline_indirect_intraprocedural_analysis): Likewise.
6198 (analyze_function): Rename to inline_analyze_function; likewise.
6199 (add_new_function): Move to ipa-inline-analysis.c.
6200 (inline_generate_summary): Likewise.
6201 (inline_read_summary): Likewise.
6202 (inline_write_summary): Likewise.
6203 * Makefile.in (ipa-inline-analysis.c): New file.
6205 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6207 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6208 * configure: Regenerate.
6210 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6212 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6213 instead of tree_common.
6214 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6216 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6217 TS_TYPED rather than TS_COMMON.
6218 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6220 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6223 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6224 r20 around calls of __tablejump_elpm__
6226 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6229 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6231 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6233 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6235 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6236 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6237 (cfi_vec): New typedef.
6238 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6239 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6240 (cie_cfi_vec): New static variable.
6241 (cie_cfi_head): Delete.
6242 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6243 declaration changed. Use vector rather than list operations.
6244 (new_cfi): Don't initialize the dw_cfi_next field.
6245 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6246 rather than list operations.
6247 (lookup_cfa): Use vector rather than list operations.
6248 (output_cfis): New argument upto. Accept a cfi_vec rather than
6249 a dw_cfi_ref list head as argument. All callers changed.
6250 Iterate over the vector using upto as a maximum index.
6251 (output_all_cfis): New static function.
6252 (output_fde): Use vector rather than list operations. Use the
6253 new upto argument for output_cfis rather than manipulating a
6255 (dwarf2out_begin_prologue): Change initializations to match
6257 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6258 from the vector length rather than searching for the end of a list.
6259 Use output_all_cfis.
6260 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6262 2011-04-13 Nick Clifton <nickc@redhat.com>
6264 * config/rx/rx.md (movmemsi): Do not use this pattern when
6265 volatile pointers are involved.
6267 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6269 * config/i386/sse.md (pinsrbits): Remove.
6270 (sse2_packsswb): Merge with *avx_packsswb.
6271 (sse2_packssdw): Merge with *avx_packssdw.
6272 (sse2_packuswb): Merge with *avx_packuswb.
6273 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6274 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6275 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6276 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6277 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6278 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6279 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6280 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6281 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6282 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6283 (sse2_loadld): Merge with *avx_loadld.
6284 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6285 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6286 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6287 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6288 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6290 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6292 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6294 * print-tree.c (print_node): Likewise.
6295 * tree-inline.c (copy_tree_r): Likewise.
6296 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6297 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6298 instead of TS_COMMON.
6299 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6300 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6301 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6302 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6303 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6305 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6307 (TREE_CHAIN): Check for a TS_COMMON structure.
6308 (TREE_TYPE): Check for a TS_TYPED structure.
6310 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6312 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6313 cgraph_get_create_node instead of cgraph_node.
6315 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6317 * c-parser.c (c_parser_initelt): Updated call to
6318 objc_build_message_expr.
6319 (c_parser_postfix_expression): Likewise.
6321 2011-04-12 Kai Tietz <ktietz@redhat.com>
6323 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6324 MASK_MS_BITFIELD_LAYOUT bit.
6326 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6328 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6329 assert it is always true.
6330 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6333 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6335 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6336 compiling Objective-C to be more efficient.
6338 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6340 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6343 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6345 * recog.h, genoutput.c, optabs.c: Revert last patch.
6347 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6350 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6352 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6354 * recog.h (insn_operand_data): Add an "allows_mem" field.
6355 * genoutput.c (output_operand_data): Initialize it.
6356 * optabs.c (maybe_legitimize_operand_same_code): New function.
6357 (maybe_legitimize_operand): Use it when matching the original
6360 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6362 * genpreds.c (process_define_predicate): Move most processing
6363 to gensupport.c. Continue to validate the expression.
6364 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6365 (process_define_predicate): Move processing to gensupport.c.
6366 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6367 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6368 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6370 (valid_predicate_name_p): New function, split out from old
6371 genpreds.c:process_define_predicate.
6372 (process_define_predicate): New function, combining code from
6373 old genpreds.c and genrecog.c functions.
6374 (process_rtx): Call it for DEFINE_PREDICATE and
6375 DEFINE_SPECIAL_PREDICATE.
6377 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6379 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6380 size of a '%A' memory reference.
6381 (T_DREG, T_QREG): New neon_builtin_type_bits.
6382 (arm_init_neon_builtins): Assert that the load and store operands
6383 are neon_struct_operands.
6384 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6385 (NEON_ARG_MEMORY): New builtin_arg.
6386 (neon_dereference_pointer): New function.
6387 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6388 Handle NEON_ARG_MEMORY.
6389 (arm_expand_neon_builtin): Update after above interface changes.
6390 Use NEON_ARG_MEMORY for loads and stores.
6391 * config/arm/predicates.md (neon_struct_operand): New predicate.
6392 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6393 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6394 (V_four_elem): Tweak formatting.
6395 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6396 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6397 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6398 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6399 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6400 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6401 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6402 Use %A in the output template.
6403 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6404 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6405 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6406 the width of the memory access. Remove post-increment.
6407 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6409 2011-04-12 Nick Clifton <nickc@redhat.com>
6411 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6412 instruction for interrupt handlers if the target is the basic V850
6414 (expand_epilogue): Likewise.
6416 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6418 PR rtl-optimization/48549
6419 * combine.c (propagate_for_debug): Also stop after BB_END of
6420 this_basic_block. Process LAST and just stop processing after it.
6421 (combine_instructions): If last_combined_insn has been deleted,
6422 set last_combined_insn to its PREV_INSN.
6424 2011-04-12 Richard Guenther <rguenther@suse.de>
6426 PR tree-optimization/46076
6427 * gimple.h (struct gimple_statement_call): Add fntype field.
6428 (gimple_call_fntype): Adjust.
6429 (gimple_call_set_fntype): New function.
6430 * gimple.c (gimple_build_call_1): Set the call function type.
6431 * gimplify.c (gimplify_call_expr): Preserve the function
6432 type the frontend used for the call.
6433 (gimplify_modify_expr): Likewise.
6434 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6436 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6438 * tree-ssa.c (useless_type_conversion_p): Function pointer
6439 conversions are useless.
6441 2011-04-12 Martin Jambor <mjambor@suse.cz>
6443 * cgraph.h (cgraph_node): Remove function declaration.
6444 (cgraph_create_node): Declare.
6445 (cgraph_get_create_node): Likewise.
6446 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6447 Updated all callers.
6448 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6449 the decl does not already exist. Call cgraph_get_create_node instead
6451 (cgraph_get_create_node): New function.
6452 (cgraph_same_body_alias): Update comment.
6453 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6454 assert it does not return NULL.
6455 (cgraph_update_edges_for_call_stmt): Likewise.
6456 (cgraph_clone_edge): Likewise.
6457 (cgraph_create_virtual_clone): Likewise.
6458 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6459 instead of cgraph_node.
6460 (cgraph_add_new_function): Call cgraph_create_node or
6461 cgraph_get_create_node instead of cgraph_node.
6462 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6463 instead of cgraph_node.
6464 (record_eh_tables): Likewise.
6465 (mark_address): Likewise.
6466 (mark_load): Likewise.
6467 (build_cgraph_edges): Call cgraph_get_create_node instead
6469 (rebuild_cgraph_edges): Likewise.
6470 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6471 instead of cgraph_node.
6472 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6474 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6475 cgraph_create_node instead of cgraph_node.
6476 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6478 * lto-cgraph.c (input_node): Likewise.
6479 * lto-streamer-in.c (input_function): Likewise.
6480 * varasm.c (mark_decl_referenced): Likewise.
6481 (assemble_alias): Likewise.
6483 2011-04-12 Martin Jambor <mjambor@suse.cz>
6485 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6486 instead of cgraph_node and assert it does not return NULL.
6487 * lto-streamer-in.c (lto_read_body): Likewise.
6488 * omp-low.c (new_omp_context): Likewise.
6489 (create_task_copyfn): Likewise.
6490 * tree-emutls.c (lower_emutls_function_body): Likewise.
6491 * matrix-reorg.c (transform_allocation_sites): Likewise.
6493 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6496 * c-typeck.c (build_asm_expr): Error out on attempts to use
6497 void type outputs or inputs for constraints that allow reg or
6500 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6501 Richard Earnshaw <rearnsha@arm.com>
6504 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6505 to use sign-magnitude offsets. Reject unsupported unaligned
6506 cases. Add detailed description in comments.
6507 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6508 condition from TARGET_32BIT to TARGET_ARM.
6510 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6512 * tree.h (struct typed_tree): New.
6513 (struct tree_common): Include it instead of tree_base.
6514 (TREE_TYPE): Update for new location of type field.
6515 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6516 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6517 (union tree_node): Add typed field.
6518 * treestruct.def (TS_TYPED): New.
6519 * lto-streamer.c (check_handled_ts_structures): Handle it.
6520 * tree.c (MARK_TS_TYPED): New macro.
6521 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6523 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6525 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6526 (force_nonfallthru): Do not alter the loop nest if no basic block
6529 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6531 * config/i386/sse.md (VI): New mode iterator.
6533 (AVX256MODEI): Ditto.
6534 (AVXMODEF4P): Ditto.
6535 (avxvecpsmode): Ditto.
6536 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6537 (sse2_andnot<mode>3): New expander.
6538 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6539 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6540 (<any_logic:code><mode>3): Use VI mode iterator.
6541 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6542 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6543 (*andnottf3): Handle AVX three-operand constraints.
6544 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6546 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6547 Robert Millan <rmh@gnu.org>
6549 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6550 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6551 GNU_USER_DYNAMIC_LINKER64): Define.
6552 (REG_NAME): Don't undefine.
6553 (MD_UNWIND_SUPPORT): Undefine.
6554 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6555 (REG_NAME): Don't undefine.
6556 (MD_UNWIND_SUPPORT): Undefine.
6557 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6559 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6561 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6562 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6564 2011-04-11 Xinliang David Li <davidxl@google.com>
6566 * value-profile.c (check_ic_target): New function.
6567 (gimple_ic_transform): Sanity check indirect call target.
6568 * gimple-low.c (gimple_check_call_args): Interface change.
6569 (gimple_check_call_matching_types): New function.
6570 * tree-inline.c (tree_can_inline_p): Call new function.
6572 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6574 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6575 tree-pretty-print.h & realmpfr.h.
6577 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6580 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6581 (setup_allocno_and_important_classes): Ditto.
6583 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6585 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6586 GNU_USER_DYNAMIC_LINKER.
6587 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6588 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6589 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6590 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6591 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6592 GNU_USER_TARGET_OS_CPP_BUILTINS.
6593 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6594 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6595 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6596 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6597 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6598 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6599 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6600 GNU_USER_TARGET_OS_CPP_BUILTINS.
6601 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6602 GNU_USER_DYNAMIC_LINKER.
6603 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6604 GNU_USER_TARGET_OS_CPP_BUILTINS.
6605 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6606 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6607 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6608 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6609 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6610 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6611 GNU_USER_DYNAMIC_LINKER64): Remove.
6612 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6613 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6614 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6615 GNU_USER_DYNAMIC_LINKER.
6616 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6617 GNU_USER_TARGET_OS_CPP_BUILTINS.
6618 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6619 GNU_USER_TARGET_OS_CPP_BUILTINS.
6620 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6621 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6622 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6623 GNU_USER_TARGET_OS_CPP_BUILTINS.
6624 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6625 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6626 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6627 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6628 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6629 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6630 GNU_USER_DYNAMIC_LINKER.
6631 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6632 GNU_USER_TARGET_OS_CPP_BUILTINS.
6633 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6634 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6635 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6636 GNU_USER_DYNAMIC_LINKER.
6637 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6638 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6639 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6640 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6641 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6642 GNU_USER_DYNAMIC_LINKER.
6643 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6644 GNU_USER_DYNAMIC_LINKERN32.
6645 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6646 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6647 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6648 GNU_USER_DYNAMIC_LINKER32.
6649 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6650 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6651 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6652 GNU_USER_DYNAMIC_LINKER.
6653 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6654 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6655 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6656 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6657 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6658 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6659 GNU_USER_DYNAMIC_LINKER32.
6660 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6661 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6662 GNU_USER_DYNAMIC_LINKER.
6663 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6664 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6665 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6666 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6667 GNU_USER_DYNAMIC_LINKER64.
6668 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6669 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6670 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6671 GNU_USER_DYNAMIC_LINKER.
6672 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6673 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6674 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6675 GNU_USER_DYNAMIC_LINKER.
6676 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6677 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6678 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6679 GNU_USER_DYNAMIC_LINKER32.
6680 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6681 GNU_USER_DYNAMIC_LINKER64.
6682 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6683 GNU_USER_DYNAMIC_LINKER64.
6684 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6685 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6686 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6687 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6688 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6690 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6692 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6693 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6694 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6695 GNU_USER_DYNAMIC_LINKER.
6696 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6697 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6698 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6699 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6700 GNU_USER_DYNAMIC_LINKER64.
6701 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6702 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6703 GNU_USER_LINK_EMULATION.
6704 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6705 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6706 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6707 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6708 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6709 CPP_SPEC, CC1_SPEC): Remove.
6710 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6711 (GNU_USER_DYNAMIC_LINKER): Define.
6712 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6713 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6714 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6715 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6716 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6717 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6718 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6719 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6720 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6721 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6722 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6723 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6724 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6725 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6726 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6727 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6728 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6729 GNU_USER_DYNAMIC_LINKER.
6730 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6731 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6732 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6733 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6734 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6735 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6736 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6737 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6738 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6739 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6741 2011-04-11 Kai Tietz <ktietz@redhat.com>
6745 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6746 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6748 (ix86_is_msabi_thiscall): Removed.
6749 (ix86_is_type_thiscall): Likewise.
6750 (ix86_get_callcvt): New function.
6751 (ix86_comp_type_attributes): Simplify check.
6752 (ix86_function_regparm): Use ix86_get_callcvt for calling
6753 convention attribute checks.
6754 (ix86_return_pops_args): Likewise.
6755 (ix86_static_chain): Likewise.
6756 (x86_this_parameter): Likewise.
6757 (x86_output_mi_thunk): Likewise.
6758 (ix86_function_type_abi): Optimize check for types without attributes.
6759 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6760 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6761 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6763 (IX86_BASE_CALLCVT): Helper macro.
6764 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6765 Use ix86_get_callcvt for calling convention attribute checks and avoid
6766 symbol-decoration for stdcall in TARGET_RTD case.
6767 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6769 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6772 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6774 * config/i386/sse.md (VI_128): New mode iterator.
6775 (VI12_128): Rename from SSEMODE12.
6776 (VI14_128): Rename from SSEMODE14.
6777 (VI124_128): New mode iterator.
6778 (VI24_128): Rename from SSEMODE248.
6779 (VI248_128): Rename from SSEMODE248.
6780 (SSEMODE124C8): Remove.
6781 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6782 (*sse2_<plusminus_insn><mode>3): Merge with
6783 *avx_<plusminus_insn><mode>3.
6784 (*mulv8hi3): Merge with *avx_mulv8hi3.
6785 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6786 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6787 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6788 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6789 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6790 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6791 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6792 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6793 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6794 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6795 (*<smaxmin:code>v8hi3): Ditto.
6796 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6797 (*<smaxmin:code>v16qi3): Ditto.
6798 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6799 (*sse2_eq<mode>3): Ditto.
6800 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6801 (*sse2_gt<mode>3): Ditto.
6802 (vcondv2di): Split out of vcond<mode>.
6803 (vconduv2di): Split out of vcondu<mode>.
6805 2011-04-11 Richard Guenther <rguenther@suse.de>
6807 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6808 before calling tree_low_cst.
6810 2011-04-11 Richard Guenther <rguenther@suse.de>
6812 * stor-layout.c (layout_type): Compute all array index size operations
6813 in the original type.
6814 (initialize_sizetypes): Add comment.
6815 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6817 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6819 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6821 2011-04-11 Martin Jambor <mjambor@suse.cz>
6823 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6824 of cgraph_node, handle NULL return value.
6825 (cgraph_global_info): Likewise.
6826 (cgraph_rtl_info): Likewise.
6827 * tree-inline.c (estimate_num_insns): Likewise.
6828 * gimplify.c (unshare_body): Likewise.
6829 (unvisit_body): Likewise.
6830 (gimplify_body): Likewise.
6831 * predict.c (optimize_function_for_size_p): Likewise.
6832 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6833 (call_may_clobber_ref_p_1): Likewise.
6834 * varasm.c (function_section_1): Likewise.
6835 (assemble_start_function): Likewise.
6837 2011-04-11 Martin Jambor <mjambor@suse.cz>
6839 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6841 * final.c (rest_of_clean_state): Likewise.
6842 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6843 * passes.c (pass_init_dump_file): Likewise.
6844 (execute_all_ipa_transforms): Likewise.
6845 (function_called_by_processed_nodes_p): Likewise.
6846 * predict.c (maybe_hot_frequency_p): Likewise.
6847 (probably_never_executed_bb_p): Likewise.
6848 (compute_function_frequency): Likewise.
6849 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6850 (unnest_nesting_tree_1): Likewise.
6851 (lower_nested_functions): Likewise.
6852 * tree-optimize.c (execute_fixup_cfg): Likewise.
6853 (tree_rest_of_compilation): Likewise.
6854 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6855 * tree-sra.c (ipa_early_sra): Likewise.
6856 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6857 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6858 * ipa.c (record_cdtor_fn): Likewise.
6859 * ipa-inline.c (cgraph_early_inlining): Likewise.
6860 (compute_inline_parameters_for_current): Likewise.
6861 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6862 * ipa-pure-const.c (local_pure_const): Likewise.
6863 * ipa-split.c (split_function): Likewise.
6864 (execute_split_functions): Likewise.
6865 * cgraphbuild.c (build_cgraph_edges): Likewise.
6866 (rebuild_cgraph_edges): Likewise.
6867 (cgraph_rebuild_references): Likewise.
6868 (remove_cgraph_callee_edges): Likewise.
6869 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6870 (verify_cgraph_node): Likewise.
6871 (cgraph_analyze_functions): Likewise.
6872 (cgraph_preserve_function_body_p): Likewise.
6873 (save_inline_function_body): Likewise.
6874 (save_inline_function_body): Likewise.
6875 * tree-inline.c (copy_bb): Likewise.
6876 (optimize_inline_calls): Likewise.
6878 2011-04-11 Martin Jambor <mjambor@suse.cz>
6880 PR tree-optimization/48195
6881 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6882 ipa_check_create_edge_args.
6883 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6884 ipa_check_create_edge_args.
6885 * ipa-inline.c (inline_generate_summary): Do not call
6886 ipa_check_create_node_params and ipa_check_create_edge_args.
6887 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6888 ipa_check_create_edge_args.
6890 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6892 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6894 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6895 * function.c (record_hard_reg_sets): Likewise.
6896 * ira.c (compute_regs_asm_clobbered): Likewise.
6897 * sched-deps.c (sched_analyze_1): Likewise.
6898 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6900 2011-04-09 Xinliang David Li <davidxl@google.com>
6902 PR tree-optimization/PR48484
6903 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6904 has_valid_pred lazily
6906 2011-04-09 Duncan Sands <baldrick@free.fr>
6908 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6910 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6912 * combine.c (combine_validate_cost): Adjust comments. Set registered
6913 cost of I0 to zero at the end, if any.
6915 2011-04-08 Xinliang David Li <davidxl@google.com>
6917 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6918 to insane profile data.
6920 2011-04-08 Xinliang David Li <davidxl@google.com>
6922 * ipa-cp.c (ipcp_update_profiling): Correct
6923 negative scale factor due to insane profile data.
6925 2011-04-08 Xinliang David Li <davidxl@google.com>
6927 * final.c (dump_basic_block_info): New function.
6928 (final): Dump basic block.
6929 (final_scan_insn): Remove old dump.
6931 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6934 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6937 2011-04-08 Michael Matz <matz@suse.de>
6940 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6942 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6943 * rtl.h (rebuild_jump_labels_chain): Declare.
6944 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6945 insns inserted on edges.
6947 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6949 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6950 * config/arm/arm-arches.def: New.
6951 * config/arm/arm-opts.h: New.
6952 * config/arm/genopt.sh: New.
6953 * config/arm/arm-tables.opt: New (generated).
6954 * config/arm/arm.c (arm_handle_option, arm_target_help,
6955 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6956 (all_architectures): Get most table contents from arm-arches.def.
6957 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6958 arm_selected_tune here.
6959 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6960 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6961 (march=, mcpu=, mtune=): Use Enum and Var.
6962 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6963 (arm.o): Update dependencies.
6965 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6967 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6969 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6970 (write_typed_alloc_defns): Likewise.
6971 (main): Calls write_typed_alloc_defns with output_header.
6973 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6976 * ira-color.c (setup_profitable_hard_regs): Add comments.
6977 Don't take prohibited hard regs into account.
6978 (setup_conflict_profitable_regs): Rename to
6979 get_conflict_profitable_regs.
6980 (check_hard_reg_p): Check prohibited hard regs.
6982 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6984 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6985 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6986 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6988 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6991 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6992 move from floating point to shift amount register.
6993 (emit_move_sequence): Remove secondary reload support for floating
6994 point to shift amount amount register copies.
6995 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6996 amount register copies.
6997 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6998 register, return false if mode isn't a scalar integer mode.
6999 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7001 2011-04-08 Richard Guenther <rguenther@suse.de>
7003 * gimple.c (gimple_call_flags): Remove kludge.
7005 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7007 * sel-sched.c (sel_region_init): Move call to
7008 sel_setup_region_sched_flags after setup_current_loop_nest.
7010 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7012 PR rtl-optimization/48272
7013 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7014 init_insn_reg_pressure_info. Adjust a caller.
7015 * sched-int.h (init_insn_reg_pressure_info): Declare.
7016 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7017 when sched-pressure is enabled.
7019 2011-04-08 Richard Guenther <rguenther@suse.de>
7021 * gimple.c (gimple_set_modified): Do not queue calls to
7022 MODIFIED_NORETURN_CALLS here ...
7023 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7025 2011-04-08 Richard Guenther <rguenther@suse.de>
7028 * toplev.c (lang_dependent_init): Do not open asm_out_file
7029 in WPA mode, nor perform debug machinery initialization.
7030 (finalize): Do not unlink asm_out_file in WPA mode.
7032 2011-04-08 Richard Guenther <rguenther@suse.de>
7034 * gimple.h (gimple_call_fntype): New function.
7035 (gimple_call_return_type): Use it.
7036 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7037 * gimple-low.c (gimple_check_call_args): Likewise.
7038 * gimple.c (gimple_call_flags): Likewise.
7039 (gimple_call_arg_flags): Likewise.
7040 (gimple_call_return_flags): Likewise.
7041 * tree-cfg.c (verify_gimple_call): Likewise.
7042 (do_warn_unused_result): Likewise.
7043 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7044 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7046 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7048 PR rtl-optimization/48235
7049 * sel-sched.c (code_motion_process_successors): Recompute the last
7050 insn in basic block if control flow changed.
7051 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7052 Update condition for ilist_remove.
7054 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7056 PR rtl-optimization/48302
7057 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7058 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7059 it to record added preheader blocks.
7060 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7061 on to sel_add_loop_preheaders.
7062 (sel_region_init): Move call to setup_current_loop_nest after
7065 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7068 * cfgloop.h (loop_has_exit_edges): New helper.
7069 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7071 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7072 that have no exit edges.
7074 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7076 PR rtl-optimization/48442
7077 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7078 all callers. Adjust assert.
7080 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7082 PR tree-optimization/48377
7083 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7084 is_packed to true even for types with smaller TYPE_ALIGN than
7087 2011-04-08 Richard Guenther <rguenther@suse.de>
7090 * doc/tm.texi: Re-generate.
7092 2011-04-08 Wei Guozhi <carrot@google.com>
7095 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7096 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7097 * config/arm/arm.md (*push_multi): Change the length computation to
7100 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7102 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7103 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7104 * doc/tm.texi: Regenerate.
7105 * system.h (ASM_OUTPUT_BSS): Poison.
7106 * varasm.c (asm_output_bss): Remove function.
7107 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7109 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7110 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7111 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7112 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7114 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7116 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7118 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7120 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7122 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7125 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7127 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7128 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7129 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7131 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7132 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7133 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7134 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7135 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7136 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7137 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7138 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7139 options. Don't map other m68k options manually. Don't handle
7140 old-style options as canonical.
7141 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7142 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7144 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7146 * basic-block.h (force_nonfallthru): Move to...
7147 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7148 (force_nonfallthru): ...here.
7149 * cfghooks.c (force_nonfallthru): New function.
7150 * cfgrtl.c (force_nonfallthru): Rename into...
7151 (rtl_force_nonfallthru): ...this.
7152 (commit_one_edge_insertion): Do not set AUX field.
7153 (commit_edge_insertions): Do not discover new basic blocks.
7154 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7155 (cfg_layout_rtl_cfg_hooks): Likewise.
7156 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7157 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7158 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7160 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7162 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7165 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7167 * config/i386/sse.md: Update copyright year.
7168 (avxcvtvecmode): Remove.
7169 (sse_movhlps): Merge with *avx_movhlps.
7170 (sse_movlhps): Merge with *avx_movlhps.
7171 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7172 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7173 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7174 (sse_loadhps): Merge with *avx_loadhps.
7175 (sse_storelps): Merge with *avx_storelps.
7176 (sse_loadlps): Merge with *avx_loadlps.
7177 (sse_movss): Merge with *avx_movss.
7178 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7179 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7180 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7181 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7182 (vec_set<mode>_0): Ditto.
7183 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7184 (sse4_1_insertps): Merge with *avx_insertps.
7185 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7186 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7187 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7188 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7189 (sse2_storehpd): Merge with *avx_storehpd.
7190 (sse2_loadhpd): Merge with *avx_loadhpd.
7191 (sse2_loadlpd): Merge with *avx_loadlpd.
7192 (sse2_movsd): Merge with *avx_movsd.
7193 (*vec_concatv2df): Merge with *vec_concatv2df.
7195 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7198 * combine.c (combine_instructions): Add last_combined_insn,
7199 update it if insn is after it, pass it to all try_combine calls.
7200 (try_combine): Add last_combined_insn parameter, pass it instead of
7201 i3 to propagate_for_debug.
7203 2011-04-07 Nick Clifton <nickc@redhat.com>
7205 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7206 to handle MDR <-> data register transfers.
7207 (movhi_internal): Likewise.
7209 2011-04-07 Alan Modra <amodra@gmail.com>
7211 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7212 previous stack info.
7214 2011-04-07 Tom de Vries <tom@codesourcery.com>
7217 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7218 flow_find_cross_jump. Swap variables to implement backward replacement.
7219 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7221 2011-04-07 Tom de Vries <tom@codesourcery.com>
7224 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7225 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7227 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7228 src1 or src2. Redirect edges to the last basic block. Update
7229 frequency and count on multiple basic blocks in case of fallthru.
7231 2011-04-07 Tom de Vries <tom@codesourcery.com>
7234 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7236 (old_insns_match_p): Change return type. Replace return false/true
7237 with return dir_none/dir_both. Use can_replace_by.
7238 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7239 direction from dir_p. Register replacement direction in dir, last_dir
7240 and afterlast_dir. Handle new return type of old_insns_match_p using
7241 merge_dir. Return replacement direction in dir_p.
7242 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7243 return type of old_insns_match_p.
7244 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7245 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7246 flow_find_cross_jump.
7247 * basic-block.h (enum replace_direction): New type.
7248 (flow_find_cross_jump): Add parameter to declaration.
7250 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7252 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7253 (AVXMODEDCVTPS2DQ): Ditto.
7254 (VEC_FLOAT_MODE): Ditto.
7255 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7256 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7257 (<any_logic:code><mode>3): Use VF mode iterator.
7258 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7259 Use VF mode iterator.
7260 (copysign<mode>3): Use VF mode iterator.
7261 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7262 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7263 (*<any_logic:code><MODEF:mode>3): Merge with
7264 *avx_<any_logic:code><MODEF:mode>3.
7265 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7266 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7267 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7268 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7269 (sse2_cvtdq2ps): Use %v modifier.
7270 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7271 (avx_cvtps2dq<avxmodesuffix>): Remove.
7272 (sse2_cvtps2dq): Use %v modifier.
7273 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7274 (avx_cvttps2dq<avxmodesuffix>): Remove.
7275 (sse2_cvttps2dq): Use %v modifier.
7276 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7277 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7278 (sse2_cvtsd2siq): Fix insn template.
7279 (sse2_cvtsd2siq_2): Ditto.
7280 (sse2_cvttsd2siq): Ditto.
7281 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7282 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7284 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7286 * gcov-io.c: Use GCC Runtime Library Exception.
7288 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7291 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7292 as base_reg whatever register reg has been eliminated to, instead
7293 of hardcoding STACK_POINTER_REGNUM.
7295 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7297 * doc/tm.texi.in: Document C target hooks as separate from general
7299 * doc/tm.texi: Regenerate.
7300 * genhooks.c (struct hook_desc): Add docname field.
7301 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7303 (hook_array): Include c-target.def.
7304 (emit_documentation): Use docname field in output.
7305 (emit_init_macros): Take docname argument. Only emit definitions
7306 for hooks matching docname.
7307 (main): Expect additional arguments in all cases. Pass argument
7308 to emit_init_macros.
7309 * target.def: Move initial macro definitions and comments to
7310 target-hooks-macros.h.
7311 (gcc_targetcm): Move to c-family/c-target.def.
7312 * target.h (targetcm): Move declaration to c-family/c-target.h.
7313 * targhooks.c (default_handle_c_option): Move to
7315 * targhooks.h (default_handle_c_option): Move declaration to
7316 c-family/c-common.h.
7317 * target-hooks-macros.h: New file.
7318 * config.gcc (target_has_targetcm): Define and use to add to
7319 c_target_objs and cxx_target_objs.
7320 * config/default-c.c: New file.
7321 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7322 of target.h and target-def.h.
7323 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7324 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7325 darwin_check_cfstring_format_arg): Make static.
7326 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7327 TARGET_STRING_OBJECT_REF_TYPE_P,
7328 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7329 * config/darwin-protos.h (darwin_objc_construct_string,
7330 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7332 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7333 TARGET_STRING_OBJECT_REF_TYPE_P,
7334 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7335 * config/t-darwin (darwin-c.o): Update dependencies.
7336 * system.h (TARGET_HAS_TARGETCM): Poison.
7337 * Makefile.in (TARGET_H): Update.
7338 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7339 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7340 (default-c.o): New target.
7341 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7342 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7343 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7345 (build/genhooks.o): Update dependencies.
7347 2011-04-06 Richard Guenther <rguenther@suse.de>
7349 * ipa-inline.c (enum inlining_mode): Remove.
7350 (cgraph_flatten): Use some other token.
7351 (cgraph_edge_early_inlinable_p): New function, split out from ...
7352 (cgraph_perform_always_inlining): New function, split out from ...
7353 (cgraph_decide_inlining_incrementally): ... here.
7354 (cgraph_mark_inline_edge): Adjust.
7355 (cgraph_early_inlining): Re-structure.
7356 (pass_early_inline): Require SSA form.
7358 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7359 Julian Brown <julian@codesourcery.com>
7360 Mark Shinwell <shinwell@codesourcery.com>
7362 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7363 LO_REGS only for Thumb-1.
7364 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7365 be used in short instructions when optimising for size on Thumb-2.
7367 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7369 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7370 associated with user returns to be preserved.
7372 2011-04-06 Tristan Gingold <gingold@adacore.com>
7374 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7375 symbol_queue_size, DBXOUT_DECR_NESTING,
7376 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7377 if XCOFF_DEBUGGING_INFO.
7379 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7381 * config/i386/i386.md (attribute isa): New.
7382 (attribute enabled): New.
7383 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7384 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7385 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7386 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7387 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7388 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7389 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7390 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7392 * config/i386/sse.md (VF): New mode iterator.
7396 (SSEMODEF4): Remove.
7397 (attribute sse): Handle V8SF and V4DF modes.
7398 (<absneg:code><mode>2): Use VF mode iterator.
7399 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7401 (<plusminus_insn><mode>3): Use VF mode iterator.
7402 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7403 Use VF mode iterator.
7404 (<sse>_vm<plusminus_insn><mode>3): Merge with
7405 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7406 (mul<mode>3): Use VF mode iterator.
7407 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7408 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7410 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7411 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7412 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7413 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7415 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7416 Use VF1 mode iterator.
7417 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7418 (sqrt<VF2:mode>2): New expander.
7419 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7420 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7421 and sqrtv2df2. Use VF mode iterator.
7422 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7424 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7425 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7426 Use VF1 mode iterator.
7427 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7428 (<smaxmin:code><mode>3): Use VF mode iterator.
7429 (*<smaxmin:code><mode>3_finite): Merge with
7430 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7431 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7432 (<sse>_vm<smaxmin:code><mode>2): Merge with
7433 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7434 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7436 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7438 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7439 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7440 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7441 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7442 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7444 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7445 Use VF_128 mode iterator.
7446 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7448 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7449 VF_128 mode iterator.
7450 (vcond<mode>): Use VF mode iterator.
7451 * config/i386/predicates.md (sse_comparison_operator): Merge with
7452 avx_comparison_float_operator. Do not declare as special_predicate.
7453 * config/i386/i386.c (struct builtin_description): Update for renamed
7455 (ix86_expand_args_builtin): Ditto.
7456 (ix86_expand_sse_compare_mask): Ditto.
7458 2011-04-06 Richard Guenther <rguenther@suse.de>
7460 * tree-inline.c (estimate_num_insns): For calls simply account
7461 for all passed arguments and a used return value.
7463 2011-04-06 Richard Guenther <rguenther@suse.de>
7465 PR tree-optimization/47663
7466 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7467 call_stmt_time fields.
7468 (cgraph_edge_inlinable_p): Declare.
7469 (cgraph_edge_recursive_p): New inline function.
7470 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7471 (cgraph_clone_edge): Copy it.
7472 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7473 Account for call stmt time.
7474 (cgraph_estimate_time_after_inlining): Take edge argument.
7475 (cgraph_estimate_edge_growth): Account call stmt size.
7476 (cgraph_estimate_size_after_inlining): Take edge argument.
7477 (cgraph_mark_inline_edge): Adjust.
7478 (cgraph_check_inline_limits): Likewise.
7479 (cgraph_recursive_inlining_p): Remove.
7480 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7481 (cgraph_decide_recursive_inlining): Take edge argument and
7483 (cgraph_decide_inlining_of_small_functions): Do not avoid
7484 diags for recursive inlining here.
7485 (cgraph_flatten): Adjust.
7486 (cgraph_decide_inlining_incrementally): Likewise.
7487 (estimate_function_body_sizes): Remove call cost handling.
7488 (compute_inline_parameters): Initialize caller edge call costs.
7489 (cgraph_estimate_edge_growth): New function.
7490 (cgraph_estimate_growth): Use it.
7491 (cgraph_edge_badness): Likewise.
7492 (cgraph_check_inline_limits): Take an edge argument.
7493 (cgraph_decide_inlining_of_small_functions): Adjust.
7494 (cgraph_decide_inlining): Likewise.
7495 * tree-inline.c (estimate_num_insns): Only account for call
7496 return value if it is used.
7497 (expand_call_inline): Avoid diagnostics on recursive inline
7499 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7500 (input_edge): Input edge call costs.
7502 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7504 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7506 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7508 * doc/invoke.texi (Spec Files): Fix typo.
7510 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7512 * profile.c (branch_prob): Move declaration of local variable. Remove
7513 obsolete ??? comment. Expand the location explicitly instead of using
7514 the LOCATION_FILE and LOCATION_LINE macros.
7516 2011-04-06 Wei Guozhi <carrot@google.com>
7519 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7520 (arm_cond_branch): Likewise.
7521 (arm_cond_branch_reversed): Likewise.
7522 (arm_jump): Likewise.
7523 (push_multi): Likewise.
7524 * config/arm/constraints.md (Py): New constraint.
7526 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7529 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7531 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7532 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7533 #ifdef DBX_DEBUGGING_INFO.
7535 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7538 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7539 if old and new states differ.
7541 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7543 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7544 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7545 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7546 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7547 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7549 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7550 ColdFire options to -mcpu= options.
7552 2011-04-05 Jeff Law <law@redhat.com>
7554 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7555 check if BB is a successor of LOOP->header and return
7556 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7558 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7560 * cprop.c (struct reg_use): Remove.
7561 (reg_use_table): Make an array of RTX.
7562 (find_used_regs, constprop_register, local_cprop_pass,
7563 bypass_block): Simplify users of reg_use_table.
7564 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7565 on one of the uses found by find_used_regs.
7567 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7570 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7573 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7575 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7577 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7579 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7582 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7584 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7586 * combine.c: Include obstack.h.
7587 (struct insn_link): Define.
7588 (uid_log_links): Adjust type.
7589 (FOR_EACH_LOG_LINK): New macro.
7590 (insn_link_obstack): Declare.
7591 (alloc_insn_link): Define.
7592 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7593 type of link variables.
7594 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7595 (try_combine, record_promoted_values, distribute_notes): Likewise.
7596 (distribute_links): Likewise. Tweak prototype.
7597 (clear_log_links): Delete.
7598 (adjust_for_new_dest): Call alloc_insn_link.
7599 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7601 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7603 * gcse.c (modify_mem_list): Convert to an array of VECs.
7604 (canon_modify_mem_list, compute_transp): Tweak formatting.
7605 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7606 (load_killed_in_block_p): Likewise.
7607 (record_last_mem_set_info): Likewise.
7608 (clear_modify_mem_tables): Likewise.
7610 2011-04-05 Tom de Vries <tom@codesourcery.com>
7613 * function.c (emit_use_return_register_into_block): Only define if
7616 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7618 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7620 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7622 * config/rx/rx-opts.h: New.
7623 * config/rx/rx.c (rx_cpu_type): Remove.
7624 (rx_handle_option): Don't assert that global structures are in
7625 use. Access variables via opts pointer. Defer most handling of
7626 OPT_mint_register_. Use error_at.
7627 (rx_option_override): Handle deferred OPT_mint_register_ here.
7628 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7629 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7630 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7631 (rx_cpu_types): New Enum and EnumValue entries.
7632 (mint-register=): Use Defer and use Var accordingly.
7634 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7636 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7637 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7638 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7640 (debug_free_queue, debug_nesting, symbol_queue_index):
7642 * dbxout.c: ...to here. Make static.
7644 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7646 * gcse.c (modify_pair): Define. Define a VEC of it.
7647 (canon_modify_mem_list): Convert to an array of VECs.
7648 (free_insn_expr_list_list): Delete.
7649 (clear_modify_mem_tables): Call VEC_free instead.
7650 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7651 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7652 (canon_list_insert, compute_transp): Likewise.
7654 2011-04-05 Tom de Vries <tom@codesourcery.com>
7657 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7660 2011-04-05 Tom de Vries <tom@codesourcery.com>
7663 * function.c (emit_use_return_register_into_block): New function.
7664 (thread_prologue_and_epilogue_insns): Use
7665 emit_use_return_register_into_block.
7667 2011-04-05 Tom de Vries <tom@codesourcery.com>
7670 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7673 2011-04-05 Tom de Vries <tom@codesourcery.com>
7675 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7677 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7679 * config/arm/arm.md (define_constants for unspec): Replace with
7681 (define_constants for unspecv): Replace with define_c_enum.
7682 * config/arm/neon.md (define_constants for unspec): Replace with
7685 2011-04-04 Richard Henderson <rth@redhat.com>
7688 * dwarf2out.c (output_line_info): Always emit line info from
7689 at least one section.
7690 (dwarf2out_init): Create text_section_line_info here ...
7691 (set_cur_line_info_table): ... not here.
7693 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7696 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7699 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7701 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7703 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7704 (expr_equiv_p): Remove.
7705 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7706 (hash_scan_set): Update call to insert_set_in_table.
7707 (dump_hash_table): Dump <dest, src> pair.
7708 (lookup_set): Simplify. Lookup <dest, src> pair.
7709 (compute_transp): Remove, fold heavily simplified code into...
7710 (compute_local_properties): ...here. Expect COMP and TRANSP
7712 (find_avail_set): Take set directly from struct expr.
7713 (find_bypass-set): Likewise.
7714 (bypass_block): Likewise.
7715 (cprop_insn): Likewise. Remove redundant INSN_P test.
7717 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7718 checks on form of COND from find_implicit_sets to here.
7719 (find_implicit_sets): Cleanup control flow. Split critical edges
7720 if it exposes implicit sets. Allocate/resize implicit_sets as
7722 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7723 changed something. Run df_analyze after find_implicit_sets if any
7724 edges were split. Do not allocate implicit_sets here.
7726 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7727 (gcse_obstack): Renamed to cprop_obstack.
7728 (GNEW, GNEWVEC, GNEWVAR): Remove.
7730 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7731 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7732 (gcse_alloc): Likewise, and rename to cprop_alloc.
7733 (alloc_gcse_men, free_gcse_mem): Remove.
7734 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7735 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7736 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7738 * cprop.c (oprs_not_set_p): Remove.
7739 (mark_set, mark_clobber): Remove.
7740 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7741 (reg_not_set_p): New function.
7742 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7743 (cprop_insn): Likewise.
7744 (cprop_jump): Use FOR_EACH_EDGE.
7746 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7749 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7750 (rank_for_schedule): Use scheduled_insns vector instead of
7751 last_scheduled_insn.
7752 (ok_for_early_queue_removal): Likewise.
7753 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7755 (choose_ready): Likewise.
7756 (commit_schedule): Use VEC_iterate.
7757 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7758 a dbg_cnt, use it and ensure the first insn is in the ready list.
7759 (haifa_sched_init): Allocate scheduled_insns.
7760 (sched_extend_ready_list): Don't allocate it; reserve space.
7761 (haifa_sched_finish): Free it.
7763 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7765 * optc-gen.awk: Always remove type from Variable entry before
7766 recording in var_seen.
7768 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7770 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7771 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7772 call to tidy_fallthru_edges.
7774 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7776 * doc/options.texi (ToLower): Document.
7777 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7778 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7779 * opts.h (cl_option): Add cl_tolower field.
7780 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7781 arguments with lowercase strings.
7782 * config/rx/rx.opt (mcpu=): Add ToLower.
7783 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7786 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7788 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7790 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7792 * config/vax/vax.c: Include reload.h.
7794 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7796 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7797 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7798 (sparc_preferred_reload_class): New function.
7800 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7803 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7804 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7806 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7808 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7809 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7811 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7813 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7814 (ASM_OUTPUT_ALIGNED_BSS): Define.
7816 2011-04-03 Michael Matz <matz@suse.de>
7818 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7819 and next_slot members.
7820 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7821 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7822 (lto_streamer_cache_append): Declare.
7823 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7824 unsigned index, remove offset parameter, ensure that we append
7825 or update existing entries.
7826 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7827 parameter, update next_slot for append.
7828 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7830 (lto_streamer_cache_insert_at): Likewise.
7831 (lto_streamer_cache_append): New function.
7832 (lto_streamer_cache_lookup): Use unsigned index.
7833 (lto_streamer_cache_get): Likewise.
7834 (lto_record_common_node): Don't test tree_node_can_be_shared.
7835 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7836 (lto_streamer_cache_delete): Don't free offsets member.
7837 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7838 (lto_output_string_with_length): Use lto_output_data_stream.
7839 (lto_output_tree_header): Remove ix parameter, don't write it.
7840 (lto_output_builtin_tree): Likewise.
7841 (lto_write_tree): Adjust callers to above, don't track and write
7842 offset, write unsigned index.
7843 (output_unreferenced_globals): Don't emit all global vars.
7844 (write_global_references): Use unsigned indices.
7845 (lto_output_decl_state_refs): Likewise.
7846 (write_symbol): Likewise.
7847 * lto-streamer-in.c (lto_input_chain): Move earlier.
7848 (input_function): Use unsigned index.
7849 (input_alias_pairs): Don't read and then ignore all global vars.
7850 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7851 don't pass it back, use lto_streamer_cache_append.
7852 (lto_register_var_decl_in_symtab): Use unsigned index.
7853 (lto_register_function_decl_in_symtab): Likewise.
7854 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7856 (lto_get_builtin_tree): Don't read index, use
7857 lto_streamer_cache_append.
7858 (lto_read_tree): Adjust call to lto_materialize_tree.
7860 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7861 don't use function calls in arguments to MIN.
7863 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7866 * gimple.c (gimple_type_leader_entry): Mark deletable.
7868 2011-04-03 Alan Modra <amodra@gmail.com>
7870 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7872 2011-04-03 Michael Matz <matz@suse.de>
7874 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7876 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7878 2011-04-03 Michael Matz <matz@suse.de>
7880 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7881 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7882 without function context.
7883 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7884 current_function_decl and cfun.
7886 2011-04-03 Michael Matz <matz@suse.de>
7888 * tree.c (decl_init_priority_insert): Don't create entry for
7890 (decl_fini_priority_insert): Ditto.
7891 (fields_compatible_p, find_compatible_field): Remove.
7892 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7893 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7895 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7897 * combine.c (try_combine): Remove useless local variable.
7899 2011-04-03 Richard Guenther <rguenther@suse.de>
7900 Ira Rosen <ira.rosen@linaro.org>
7902 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7903 non-variable offsets and compare the remaining bases of the two
7904 accesses instead of looking for exact same data-ref.
7906 2011-04-02 Kai Tietz <ktietz@redhat.com>
7909 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7911 * i386.c (ix86_is_msabi_thiscall): New helper function.
7912 (ix86_is_type_thiscall): New helper function.
7913 (ix86_comp_type_attributes): Handle thiscall for method-functions
7915 (init_cumulative_args): Likewise.
7916 (find_drap_reg): Likewise.
7917 (ix86_static_chain): Likewise.
7918 (x86_this_parameter): Likewise.
7919 (x86_output_mi_thunk): Likewise.
7921 2011-04-01 Olivier Hainque <hainque@adacore.com>
7922 Nicolas Setton <setton@adacore.com>
7923 Eric Botcazou <ebotcazou@adacore.com>
7925 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7926 (add_gnat_descriptive_type_attribute): New function.
7927 (gen_array_type_die): Call it.
7928 (gen_enumeration_type_die): Likewise.
7929 (gen_struct_or_union_type_die): Likewise.
7930 (modified_type_die): Likewise.
7931 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7932 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7933 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7935 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7938 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7939 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7942 2011-03-17 Richard Guenther <rguenther@suse.de>
7945 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7946 origin for decls in other ltrans units.
7947 (input_varpool_node): Likewise.
7949 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7952 * expr.c (expand_assignment): Handle all possibilities
7953 if TO_RTX is CONCAT.
7954 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7955 (store_split_bit_field): If SUBREG_REG (op0) or
7956 op0 itself has smaller mode than word, return it
7957 for offset 0 and const0_rtx for out-of-bounds stores.
7958 If word is const0_rtx, skip it.
7960 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7962 * config/h8300/h8300.c (print_operand_address): Rename to...
7963 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7964 Call h8300_print_operand and h8300_print_operand_address instead of
7965 print_operand and print_operand_address. Declare.
7966 (print_operand): Renake to...
7967 (h8300_print_operand): ...this. Make static. Adjust comments.
7968 Call h8300_print_operand instead of print_operand. Declare.
7969 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7970 (h8300_register_move_cost): Likewise.
7971 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7972 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7973 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7974 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7975 * config/h8300/h8300-protos.h (print_operand): Delete.
7976 (print_operand_address): Delete.
7978 2011-04-01 Richard Henderson <rth@redhat.com>
7981 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7982 in strict mode before dwarf4. Re-order tests to early out
7983 before switching sections.
7985 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7987 * config/h8300/constraints.md: New file.
7988 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7989 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7990 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7991 * config/h8300/predicates.md (bit_operand): Likewise.
7992 (incdec_operand): Use satisfies_constraint_M and
7993 satisfies_constraint_O. Don't use C code block.
7994 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7995 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7996 (compute_mov_length): Use satisfies_constraint_G.
7997 (fix_bit_operand): Use satisfies_constraint_U.
7998 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7999 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8000 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8001 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8002 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8003 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8004 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8005 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8006 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8007 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8008 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8009 (EXTRA_MEMORY_CONSTRAINT): Delete.
8011 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8012 Michael Meissner <meissner@linux.vnet.ibm.com>
8015 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8016 operands, as per the specifications.
8018 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8019 (vec_extract_evenv4sf): Ditto.
8020 (vec_extract_evenv8hi): Ditto.
8021 (vec_extract_evenv16qi): Ditto.
8022 (vec_extract_oddv4si): Ditto.
8024 2011-03-31 Mark Wielaard <mjw@redhat.com>
8026 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8027 high_pc attribute if the CU has no associated code. Only output
8028 DW_AT_entry_pc for CU if not generating strict dwarf and
8031 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8033 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8034 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8036 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8037 * final.c (final_start_function): Call the new function rather
8038 than using a NULL argument for dwarf2out_frame_debug.
8040 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8041 that contains the prologue.
8043 * haifa-sched.c (queue_insn): New arg REASON. All callers
8044 changed. Print it in debugging output.
8046 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8048 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8049 Split most of the code into...
8050 (begin_move_insn): ... here. New function.
8051 (ebb_sched_info): Add a pointer to it.
8052 * haifa-sched.c (scheduled_insns): New static variable.
8053 (sched_extend_ready_list): Allocate it.
8054 (schedule_block): Use it to record the order of scheduled insns.
8055 Perform RTL changes to move insns only after all scheduling
8056 decisions have been made.
8057 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8058 begin_move_insn field.
8059 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8060 * sched-int.h (struct haifa_sched_info): Remove second argument
8061 from begin_schedule_ready hook. Add new member begin_move_insn.
8062 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8063 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8065 * haifa-sched.c (prune_ready_list): New function, broken out of
8067 (schedule_block): Use it.
8069 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8071 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8073 2011-04-01 Kai Tietz <ktietz@redhat.com>
8075 * config.gcc (*-*-mingw*): Allow as option the
8076 posix threading model.
8077 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8078 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8080 (CPP_SPEC): Add pthread/no-pthread handling.
8081 (LIB_SPEC): Likewise.
8082 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8083 (LIB_SPEC): Likewise.
8084 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8085 flag to pass -pthread option for shared libgcc build.
8086 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8087 for shared libgcc build.
8088 * config/i386/t-mingw-pthread: New file.
8089 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8090 New define to enable use of library pthread by default.
8091 * config/i386/mingw.opt (pthread): New driver option.
8092 (no-pthread): New driver option.
8093 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8094 * config/i386/mingw-w64.opt: Likewise.
8096 2011-04-01 Gary Funck <gary@intrepid.com>
8098 * c-decl.c (grokdeclarator): Fix formatting.
8100 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8102 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8103 instead of n_operands.
8104 (set_storage_via_setmem): Likewise.
8105 * optabs.c (maybe_gen_insn): Likewise.
8106 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8107 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8108 (mips_expand_builtin_direct): Likewise.
8109 * config/spu/spu.c (expand_builtin_args): Likewise.
8111 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8113 * recog.h (insn_data_d): Add n_generator_args.
8114 * genoutput.c (data): Likewise.
8115 (output_insn_data): Print it.
8116 (max_opno, num_dups): Delete.
8117 (scan_operands): Just fill in "d->operand[...]".
8118 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8120 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8122 * gensupport.h (pattern_stats): New structure.
8123 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8124 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8125 (max_operand_1, max_operand_vec): Delete.
8126 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8128 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8130 * emit-rtl.c (emit_pattern_after_setloc): New function.
8131 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8132 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8133 (emit_pattern_after): New function.
8134 (emit_insn_after, emit_jump_insn_after): Call it.
8135 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8136 (emit_pattern_before_setloc): New function.
8137 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8138 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8140 (emit_pattern_before): New function.
8141 (emit_insn_before, emit_jump_insn_before): Call it.
8142 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8144 2011-03-31 Richard Henderson <rth@redhat.com>
8146 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8147 (dw_separate_line_info_entry): Remove.
8148 (enum dw_line_info_opcode): New.
8149 (dw_line_info_entry): Use it.
8150 (dw_line_info_table, dw_line_info_table_p): New.
8151 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8152 (line_info_table, line_info_label_num): Remove.
8153 (line_info_table_in_use): Remove.
8154 (separate_line_info_table): Remove.
8155 (separate_line_info_table_allocated): Remove.
8156 (separate_line_info_table_in_use): Remove.
8157 (LINE_INFO_TABLE_INCREMENT): Remove.
8158 (line_info_label_num): New.
8159 (cur_line_info_table): New.
8160 (text_section_line_info, cold_text_section_line_info): New.
8161 (separate_line_info): New.
8162 (SEPARATE_LINE_CODE_LABEL): Remove.
8163 (print_dwarf_line_table): Remove.
8164 (debug_dwarf): Don't dump it.
8165 (output_one_line_info_table): New.
8166 (output_line_info): Use it.
8167 (new_line_info_table): New.
8168 (set_cur_line_info_table): New.
8169 (dwarf2out_switch_text_section): Use it.
8170 (dwarf2out_begin_function): Likewise.
8171 (push_dw_line_info_entry): New.
8172 (dwarf2out_source_line): Rewrite for new line info tables.
8173 (dwarf2out_init): Remove dead initailizations.
8175 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8177 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8179 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8180 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8181 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8182 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8183 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8184 * opt-functions.awk (flag_init, switch_bit_fields): New.
8185 (switch_flags): Don't handle flags moved to bit-fields. Don't
8186 generate CL_MISSING_OK or CL_SAVE.
8187 * optc-gen.awk: Update to generate bit-field output as well as
8189 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8190 bit-field instead of CL_REJECT_DRIVER flag.
8191 * opts-common.c (generate_canonical_option,
8192 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8193 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8194 instead of CL_REJECT_NEGATIVE flag.
8195 * toplev.c (print_switch_values): Use cl_report bit-field instead
8198 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8200 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8201 a zero minimum index only if it is redundant.
8203 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8205 PR rtl-optimization/48381
8206 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8207 instead of ira_class_hard_reg_index for calculating conflicting
8210 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8212 * cprop.c: Clean up hash table building.
8213 (reg_avail_info): Remove.
8214 (oprs_available_p): Remove.
8215 (record_last_reg_set_info): Remove.
8216 (record_last_set_info): Remove.
8217 (reg_available_p): New function.
8218 (gcse_constant_p): Do not treat unfolded conditions as constants.
8219 (make_set_regs_unavailable): New function.
8220 (hash_scan_set): Simplify with new reg_available_p.
8221 (compute_hash_table_work): Traverse insns stream only once.
8222 Do not compute reg_avail_info. Traverse insns in reverse order.
8223 Record implicit sets after recording explicit sets from the block.
8225 2011-03-31 Michael Matz <matz@suse.de>
8227 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8229 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8231 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8232 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8233 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8234 (h8300_mode_dependent_address_p): New function.
8235 (h8300_get_index): Make static.
8237 2011-03-31 Jeff Law <law@redhat.com>
8239 * reload1.c (elimination_effects): Fix typo in recent change.
8241 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8242 typo potentially leading to null pointer dereference.
8244 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8245 (setup_save_areas): Corresponding changes to avoid useless
8248 * jump.c (reversed_comparison_code_parts): Avoid successive return
8249 statements when REVERSE_CONDITION is defined.
8251 * expr.c (expand_assignment): Avoid useless assignments.
8252 (expand_expr_real_1): Likewise.
8253 (expand_expr_real_2): Avoid useless statements.
8255 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8257 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8259 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8262 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8264 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8267 * doc/tm.texi.in (TARGET_VERSION): Remove.
8268 * doc/tm.texi: Regenerate.
8269 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8270 * collect2.c (main): Don't use TARGET_VERSION.
8271 * mips-tdump.c (main): Don't use TARGET_VERSION.
8272 * mips-tfile.c (main): Don't use TARGET_VERSION.
8273 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8274 * config/rs6000/vxworksae.h: Remove.
8275 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8276 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8277 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8278 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8279 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8280 * config/arm/arm.h (TARGET_VERSION): Remove.
8281 * config/arm/coff.h (TARGET_VERSION): Remove.
8282 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8283 * config/arm/elf.h (TARGET_VERSION): Remove.
8284 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8285 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8286 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8287 * config/arm/pe.h (TARGET_VERSION): Remove.
8288 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8289 * config/arm/semi.h (TARGET_VERSION): Remove.
8290 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8291 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8292 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8293 * config/avr/avr.h (TARGET_VERSION): Remove.
8294 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8295 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8296 * config/frv/frv.h (TARGET_VERSION): Remove.
8297 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8298 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8299 * config/i386/darwin.h (TARGET_VERSION): Remove.
8300 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8301 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8302 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8303 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8304 * config/i386/gnu.h (TARGET_VERSION): Remove.
8305 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8306 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8307 * config/i386/linux.h (TARGET_VERSION): Remove.
8308 * config/i386/linux64.h (TARGET_VERSION): Remove.
8309 * config/i386/lynx.h (TARGET_VERSION): Remove.
8310 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8311 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8312 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8313 * config/i386/netware.h (TARGET_VERSION): Remove.
8314 * config/i386/nto.h (TARGET_VERSION): Remove.
8315 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8316 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8317 * config/ia64/elf.h (TARGET_VERSION): Remove.
8318 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8319 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8320 * config/ia64/linux.h (TARGET_VERSION): Remove.
8321 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8322 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8323 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8324 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8325 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8326 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8327 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8328 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8329 * config/m68k/linux.h (TARGET_VERSION): Remove.
8330 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8331 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8332 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8333 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8334 * config/mep/mep.h (TARGET_VERSION): Remove.
8335 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8336 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8337 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8338 * config/mips/linux.h (TARGET_VERSION): Remove.
8339 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8340 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8341 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8342 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8343 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8344 * config/pa/pa.h (TARGET_VERSION): Remove.
8345 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8346 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8347 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8348 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8349 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8350 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8351 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8352 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8353 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8354 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8355 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8356 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8357 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8358 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8359 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8360 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8361 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8362 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8363 * config/s390/linux.h (TARGET_VERSION): Remove.
8364 * config/s390/s390.h (TARGET_VERSION): Remove.
8365 * config/s390/tpf.h (TARGET_VERSION): Remove.
8366 * config/score/score.h (TARGET_VERSION): Remove.
8367 * config/sh/linux.h (TARGET_VERSION): Remove.
8368 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8369 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8370 * config/sh/sh.h (TARGET_VERSION): Remove.
8371 * config/sh/sh64.h (TARGET_VERSION): Remove.
8372 * config/sh/superh.h (TARGET_VERSION): Remove.
8373 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8374 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8375 * config/sparc/linux.h (TARGET_VERSION): Remove.
8376 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8377 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8378 TARGET_NAME32, TARGET_NAME): Remove.
8379 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8380 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8381 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8382 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8383 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8384 * config/spu/spu.h (TARGET_VERSION): Remove.
8385 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8386 * config/v850/v850.h (TARGET_VERSION): Remove.
8387 * config/vax/linux.h (TARGET_VERSION): Remove.
8388 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8389 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8390 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8392 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8395 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8396 frame-related from frame-unrelated adjustments to the stack pointer.
8398 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8400 * common.opt (fdebug-types-section): Move earlier.
8401 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8403 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8405 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8408 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8410 * tree.h (CASE_CHAIN): Define.
8411 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8412 (gimple_redirect_edge_and_branch): Likewise.
8414 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8417 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8420 2011-03-30 Jeff Law <law@redhat.com>
8422 * PR bootstrap/48371
8423 * reload1.c (reload): Fix botch in last change.
8425 * reload.h (struct reload): Fix typo introduced in last change.
8427 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8429 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8430 Undocumented. Remove help text.
8431 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8434 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8436 * doc/options.texi (NegativeAlias): Document.
8437 (Alias): Mention NegativeAlias.
8438 * opt-functions.awk: Handle NegativeAlias.
8439 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8440 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8441 * opts.h (CL_NEGATIVE_ALIAS): Define.
8442 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8443 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8445 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8447 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8448 mno-spe and mno-isel instead of mspe=no and -misel=no.
8450 2011-03-29 Mark Wielaard <mjw@redhat.com>
8452 * common.opt (fdebug-types-section): New flag.
8453 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8454 * dwarf2out.c (use_debug_types): New define.
8455 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8456 (print_die): Guard output of type unit signatures using
8458 (build_abbrev_table): Replace assert of dwarf_version >= 4
8459 with assert on use_debug_types.
8460 (size_of_die): Likewise.
8461 (unmark_dies): Likewise.
8462 (value_format): Decide AT_ref_external form on use_debug_types.
8463 (output_die): Replace dwarf_version version check guard with
8464 use_debug_types where appropriate.
8465 (modified_type_die): Likewise.
8466 (gen_reference_type_die): Likewise.
8467 (dwarf2out_start_source_file): Likewise.
8468 (dwarf2out_end_source_file): Likewise.
8469 (prune_unused_types_walk_attribs): Likewise.
8470 (dwarf2out_finish): Likewise.
8472 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8474 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8476 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8478 PR rtl-optimization/48332
8479 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8480 mode of input operand N and modeN to its actual mode.
8482 2011-03-30 Jeff Law <law@redhat.com>
8484 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8485 define accessor macro.
8486 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8487 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8488 (reg_equiv_init): Likewise.
8489 (reg_equivs_size): New variable.
8490 (reg_equiv_init_size): Remove.
8491 (allocate_initial_values): Move prototype to here from....
8492 * integrate.h (allocate_initial_values): Remove prototype.
8493 * integrate.c: Include reload.h.
8494 (allocate_initial_values): Corresponding changes.
8495 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8496 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8497 (update_equiv_regs): Corresponding changes.
8498 (ira): Corresponding changes.
8499 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8500 (push_secondary_reload): Corresponding changes.
8501 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8502 (make_memloc, find_reloads_address): Corresponding changes.
8503 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8504 (find_reloads_address_1): Corresponding changes.
8505 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8506 (refers_to_regno_for_reload_p): Corresponding changes.
8507 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8508 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8509 * reload1.c: Include ggc.h.
8510 (grow_reg_equivs): New function.
8511 (replace_pseudos_in, reload): Corresponding changes.
8512 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8513 (eliminate_regs_1, elimination_effects): Corresponding changes.
8514 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8515 (delete_output_reload): Likewise.
8516 * caller-save.c (mark_referenced_regs): Corresponding changes.
8517 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8518 * frv/predicates.md (frv_load_operand): Corresponding changes.
8519 * microblaze/microblaze.c (double_memory_operand): Corresponding
8521 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8522 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8523 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8524 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8525 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8527 * pa/pa.c (emit_move_sequence): Corresponding changes.
8528 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8530 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8533 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8534 structure modes. Don't check neon_vector_mem_operand for
8535 vector or structure modes.
8537 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8538 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8541 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8542 operand 1 and reshuffle the operands to match.
8543 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8545 2011-03-30 Christian Schüler <cschueler@gmx.de>
8548 * config/c.opt (F): Added 'Driver' to -F option.
8551 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8553 * config/darwin.opt: Added '-arch' option.
8555 2011-03-30 Nick Clifton <nickc@redhat.com>
8557 * config/rx/rx.md: Add peepholes and patterns to combine
8558 extending loads and simple arithmetic instructions.
8559 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8560 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8561 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8562 modes to use pre-decrement and post-increment addressing.
8563 (rx_is_restricted_memory_address): Add range checking of REG+INT
8565 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8566 (rx_memory_move_cost): Adjust cost of stores.
8567 (rx_adjust_insn_length): New function.
8569 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8572 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8573 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8574 matching arg00/arg01 types.
8576 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8578 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8579 last_location to UNKNOWN_LOCATION.
8581 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8584 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8587 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8588 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8591 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8593 (sparc_cpu): Likewise.
8594 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8597 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8601 PR rtl-optimization/48345
8602 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8603 hard regs for given mode from profitable regs when doing secondary
8606 2011-03-29 Jeff Law <law@redhat.com>
8609 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8610 do_not_duplicate field.
8611 (lookup_redirection_data): Corresponding changes.
8612 (create_duplicates): Always create a template block.
8613 (redirect_edges): Remove code which reused the original block
8614 when it was going to become unreachable code.
8615 (thread_block): Don't set do_not_duplicate field.
8617 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8619 * lto-opts.c (register_user_option_p, lto_register_user_option):
8620 Make type argument unsigned.
8621 * lto-streamer.h (lto_register_user_option): Make type argument
8623 * opth-gen.awk: Make CL_* macros unsigned.
8624 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8625 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8626 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8627 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8628 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8629 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8630 (find_opt): Make lang_mask argument unsigned.
8632 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8634 PR rtl-optimization/48331
8635 PR rtl-optimization/48334
8636 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8637 for any used algorithm.
8639 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8641 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8644 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8646 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8647 (alpha_option_override): Don't set alpha_sr_alias_set.
8648 (emit_frame_store_1): Use gen_frame_mem rather than calling
8650 (alpha_expand_epilogue): Ditto.
8652 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8654 PR tree-optimization/48290
8655 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8656 vectorization, check that relevant phis in the basic block after
8657 the inner loop are really inner loop's exit phis.
8659 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8662 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8663 (cached_dw_loc_list_def): New structure.
8664 (cached_dw_loc_list): New typedef.
8665 (cached_dw_loc_list_table): New variable.
8666 (cached_dw_loc_list_table_hash): New function.
8667 (cached_dw_loc_list_table_eq): Likewise.
8668 (add_location_or_const_value_attribute): Take a bool cache_p.
8669 Cache the list when the parameter is true.
8670 (gen_formal_parameter_die): Update caller.
8671 (gen_variable_die): Likewise.
8672 (dwarf2out_finish): Likewise.
8673 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8674 while generating debug info for the decl.
8675 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8676 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8677 (resolve_addr): Cache the result of resolving a chain of
8680 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8682 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8683 conflict object hard regset nodes have intersecting hard reg sets.
8685 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8686 after regstat_init_n_sets_and_refs.
8688 * ira.c: Add more comments at the top.
8689 (setup_stack_reg_pressure_class, setup_pressure_classes):
8690 Add comments how we compute the register pressure classes.
8691 (setup_allocno_and_important_classes): Add more comments.
8692 (setup_class_translate_array, reorder_important_classes)
8693 (setup_reg_class_relations): Add comments.
8695 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8698 * ira-color.c: Add 2011 to the Copyright line.
8699 (assign_hard_reg): Add more comments.
8700 (improve_allocation): Ditto.
8702 * ira-costs.c: Add 2011 to the Copyright line.
8703 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8705 (setup_regno_cost_classes_by_mode): Ditto.
8707 Initial patches from ira-improv branch:
8709 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8711 * ira-build.c (ira_create_object): Remove initialization of
8712 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8713 (ira_create_allocno): Remove initialization of
8714 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8715 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8716 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8717 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8718 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8719 Initialize ALLOCNO_ADD_DATA.
8720 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8721 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8723 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8724 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8726 * ira.c (ira_reallocate): Remove.
8727 (setup_pressure_classes): Call
8728 ira_init_register_move_cost_if_necessary. Use
8729 ira_register_move_cost instead of ira_get_register_move_cost.
8730 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8731 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8733 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8734 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8735 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8736 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8737 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8738 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8740 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8741 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8742 (struct allocno_color_data): New.
8743 (allocno_color_data_t): New typedef.
8744 (allocno_color_data): New definition.
8745 (ALLOCNO_COLOR_DATA): New macro.
8746 (struct object_color_data): New.
8747 (object_color_data_t): New typedef.
8748 (object_color_data): New definition.
8749 (OBJECT_COLOR_DATA): New macro.
8750 (update_copy_costs, calculate_allocno_spill_cost): Call
8751 ira_init_register_move_cost_if_necessary. Use
8752 ira_register_move_cost instead of ira_get_register_move_cost.
8753 (move_spill_restore, update_curr_costs): Ditto.
8754 (allocno_spill_priority): Make it inline.
8755 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8756 (struct coalesce_data, coalesce_data_t): New.
8757 (allocno_coalesce_data): New definition.
8758 (ALLOCNO_COALESCE_DATA): New macro.
8759 (merge_allocnos, coalesced_allocno_conflict_p): Use
8760 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8761 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8762 (coalesce_allocnos): Ditto.
8763 (setup_coalesced_allocno_costs_and_nums): Ditto.
8764 (collect_spilled_coalesced_allocnos): Ditto.
8765 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8766 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8767 (coalesce_spill_slots): Ditto.
8768 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8769 free allocno_coalesce_data.
8771 * ira-conflicts.c: Fix formatting.
8772 (process_regs_for_copy): Call
8773 ira_init_register_move_cost_if_necessary. Use
8774 ira_register_move_cost instead of ira_get_register_move_cost.
8775 (build_object_conflicts): Optimize.
8777 * ira-costs.c (record_reg_classes): Optimize. Call
8778 ira_init_register_move_cost_if_necessary. Use
8779 ira_register_move_cost, ira_may_move_in_cost, and
8780 ira_may_move_out_cost instead of ira_get_register_move_cost and
8781 ira_get_may_move_cost.
8782 (record_address_regs): Ditto.
8783 (scan_one_insn): Optimize.
8784 (find_costs_and_classes): Optimize.
8785 (process_bb_node_for_hard_reg_moves): Call
8786 ira_init_register_move_cost_if_necessary. Use
8787 ira_register_move_cost instead of ira_get_register_move_cost.
8789 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8790 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8791 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8792 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8794 (ira_initiate_emit_data, ira_finish_emit_data)
8795 (create_new_allocno): New functions.
8796 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8797 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8798 Use ira_register_move_cost instead of ira_get_register_move_cost.
8800 * ira-int.h: Fix some comments.
8801 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8802 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8803 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8804 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8806 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8807 bitfield after mode. Make hard_regno a short int. Make
8808 hard_regno short. Remove first_coalesced_allocno and
8809 next_coalesced_allocno. Move mem_optimized_dest_p,
8810 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8811 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8812 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8813 temp, colorable_p. Add new member add_data.
8814 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8815 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8816 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8817 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8818 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8819 (ALLOCNO_ADD_DATA): New macro.
8820 (ira_emit_data_t): New typedef.
8821 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8822 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8823 from struct ira_allocno.
8824 (ALLOCNO_EMIT_DATA): New macro.
8825 (ira_allocno_emit_data, allocno_emit_reg): New.
8826 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8827 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8828 (OBJECT_ADD_DATA): New macro.
8829 (ira_reallocate): Remove.
8830 (ira_initiate_emit_data, ira_finish_emit_data): New.
8831 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8832 (ira_init_register_move_cost_if_necessary): New.
8833 (ira_object_conflict_iter_next): Merge into
8834 ira_object_conflict_iter_cond.
8835 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8837 * ira-live.c (process_single_reg_class_operands): Call
8838 ira_init_register_move_cost_if_necessary. Use
8839 ira_register_move_cost instead of ira_get_register_move_cost.
8841 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8843 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8845 * ira-costs.c: Fix formatting.
8846 (cost_classes, cost_classes_num): Remove.
8847 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8848 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8849 (cost_classes_del, cost_classes_htab): New.
8850 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8851 (initiate_regno_cost_classes, setup_cost_classes): New.
8852 (setup_regno_cost_classes_by_aclass): New.
8853 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8854 (record_reg_classes): Use regno_cost_classes instead of
8855 cost_classes. Move checking opposite operand up.
8856 (record_address_regs): Use regno_cost_classes
8857 instead of cost_classes.
8858 (scan_one_insn): Ditto. Use always general register.
8859 (print_allocno_costs): Use regno_cost_classes instead of
8861 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8862 (find_costs_and_classes): Set up cost classes for each registers.
8863 Use also their mode for this. Use regno_cost_classes instead of
8865 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8867 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8868 (ira_costs, ira_set_pseudo_classes): Call
8869 initiate_regno_cost_classes and finish_regno_cost_classes.
8871 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8873 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8875 * target.def (ira_cover_classes): Remove.
8877 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8879 * doc/tm.texi.in: Ditto.
8881 * ira-conflicts.c: Remove mentioning cover classes from the file.
8882 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8883 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8885 * targhooks.c (default_ira_cover_classes): Remove.
8887 * targhooks.h (default_ira_cover_classes): Ditto.
8889 * haifa-sched.c: Remove mentioning cover classes from the file.
8890 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8891 ira_pressure_classes and ira_pressure_classes_num instead of
8892 ira_reg_class_cover_size and ira_reg_class_cover. Use
8893 sched_regno_pressure_class instead of sched_regno_cover_class.
8894 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8895 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8897 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8898 classes from the file.
8899 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8900 (struct object_hard_regs, struct object_hard_regs_node): New.
8901 (struct ira_object): New members profitable_hard_regs,
8902 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8903 (struct ira_allocno): Rename cover_class to aclass. Rename
8904 cover_class_cost and updated_cover_class_cost to class_cost and
8905 updated_class_cost. Remove splay_removed_p and
8906 left_conflict_size. Add new members colorable_p.
8907 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8908 (ALLOCNO_COLORABLE_P): New macro.
8909 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8910 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8911 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8912 (OBJECT_...): Rename parameter C to O.
8913 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8914 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8915 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8916 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8917 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8918 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8919 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8920 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8921 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8922 x_ira_reg_class_subunion.
8923 (ira_max_memory_move_cost, ira_max_register_move_cost)
8924 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8925 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8926 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8927 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8928 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8929 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8930 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8931 (ira_tune_allocno_costs_and_cover_classes): Rename to
8932 ira_tune_allocno_costs.
8933 (ira_debug_hard_regs_forest): New.
8934 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8935 (ira_object_conflict_iter_next): Fix comments.
8936 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8937 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8938 cover_class to aclass.
8939 (ira_allocate_and_accumulate_costs): Ditto.
8940 (ira_allocate_and_set_or_copy_costs): Ditto.
8942 * opts.c (decode_options): Remove ira_cover_class check.
8944 * ira-color.c: Remove mentioning cover classes from the file. Use
8945 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8946 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8947 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8948 (splay-tree.h): Remove include.
8949 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8950 before copy_freq_compare_func.
8951 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8952 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8954 (hard_regs_roots, hard_regs_node_vec): Ditto.
8955 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8956 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8957 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8958 (create_new_object_hard_regs_node): Ditto.
8959 (add_new_object_hard_regs_node_to_forest): Ditto.
8960 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8961 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8963 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8964 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8965 (remove_unused_object_hard_regs_nodes): Ditto.
8966 (enumerate_object_hard_regs_nodes): Ditto.
8967 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8968 (object_hard_regs_subnode_t): Ditto.
8969 (struct object_hard_regs_subnode): Ditto.
8970 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8971 (setup_object_hard_regs_subnode_index): Ditto.
8972 (get_object_hard_regs_subnodes_num): Ditto.
8973 (form_object_hard_regs_nodes_forest): Ditto.
8974 (finish_object_hard_regs_nodes_tree): Ditto.
8975 (finish_object_hard_regs_nodes_forest): Ditto.
8976 (allocnos_have_intersected_live_ranges_p): Rename to
8977 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8978 (pseudos_have_intersected_live_ranges_p): Rename to
8979 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8980 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8981 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8982 (update_copy_costs): Remove assert. Skip cost update if the hard
8983 reg does not belong the class.
8984 (assign_hard_reg): Process only profitable hard regs.
8985 (uncolorable_allocnos_num): Make it scalar.
8986 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8987 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8988 and ira_reg_class_max_nregs.
8989 (bucket_allocno_compare_func): Check frequency first.
8990 (sort_bucket): Add compare function as a parameter.
8991 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8992 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8993 (push_allocno_to_stack): Rewrite for checking new allocno
8995 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8996 (push_only_colorable): Pass new parameter to sort_bucket.
8997 (push_allocno_to_spill): Remove.
8998 (allocno_spill_priority_compare): Make it inline and rewrite.
8999 (splay_tree_allocate, splay_tree_free): Remove.
9000 (allocno_spill_sort_compare): New function.
9001 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9002 build and use splay tree. Choose first allocno in uncolorable
9003 allocno bucket to spill. Remove setting spill cost.
9004 (all_conflicting_hard_regs): Remove.
9005 (setup_allocno_available_regs_num): Check only profitable hard
9006 regs. Print info about hard regs nodes.
9007 (setup_allocno_left_conflicts_size): Remove.
9008 (put_allocno_into_bucket): Don't call
9009 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9010 (improve_allocation): New.
9011 (color_allocnos): Call setup_profitable_hard_regs,
9012 form_object_hard_regs_nodes_forest, improve_allocation,
9013 finish_object_hard_regs_nodes_forest. Setup spill cost.
9014 (print_loop_title): Use pressure classes.
9015 (color_allocnso): Ditto.
9016 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9017 and allocnos_for_spilling.
9018 (ira_sort_regnos_for_alter_reg): Don't setup members
9019 {first,next}_coalesced_allocno.
9020 (color): Remove allocating and freeing removed_splay_allocno_vec.
9021 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9022 prohibited_class_mode_regs.
9024 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9026 (update_allocno_pressure_excess_length): Use pressure classes.
9027 (inc_register_pressure, dec_register_pressure): Check for pressure
9029 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9030 pressure class. Use ira_reg_class_nregs instead of
9031 ira_reg_class_max_nregs.
9032 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9033 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9034 (single_reg_class): Use ira_reg_class_nregs instead of
9035 ira_reg_class_max_nregs.
9036 (process_bb_node_lives): Use pressure classes.
9038 * ira-emit.c: Remove mentioning cover classes from the file. Use
9039 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9040 (change_loop): Use pressure classes.
9041 (modify_move_list): Call ira_set_allocno_class instead of
9042 ira_set_allocno_cover_class.
9044 * ira-build.c: Remove mentioning cover classes from the file. Use
9045 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9046 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9047 ALLOCNO_UPDATED_CLASS_COST instead of
9048 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9049 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9050 (ira_create_allocno): Remove initialization of
9051 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9052 ALLOCNO_COLORABLE_P.
9053 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9054 Update conflict regs for the objects.
9055 (create_cap_allocno): Remove assert. Don't propagate
9056 ALLOCNO_AVAILABLE_REGS_NUM.
9057 (ira_free_allocno_costs): New function.
9058 (finish_allocno): Change a part of code into call of
9059 ira_free_allocno_costs.
9060 (low_pressure_loop_node_p): Use pressure classes.
9061 (object_range_compare_func): Don't compare classes.
9062 (setup_min_max_conflict_allocno_ids): Ditto.
9064 * loop-invariant.c: Remove mentioning cover classes from the file.
9065 Use ira_pressure_classes and ira_pressure_classes_num instead of
9066 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9067 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9068 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9069 Use reg_allocno_class instead of reg_cover_class.
9070 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9071 STACK_REG_COVER_CLASS.
9072 (get_regno_cover_class): Rename to get_regno_pressure_class.
9073 (move_loop_invariants): Initialize and finalize regstat.
9075 * ira.c: Remove mentioning cover classes from the file. Add
9076 comments about coloring without cover classes. Use ALLOCNO_CLASS
9077 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9078 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9079 setup_class_subset_and_memory_move_costs.
9080 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9081 (setup_cover_and_important_classes): Rename to
9082 setup_allocno_and_important_classes.
9083 (setup_class_translate_array): New.
9084 (setup_class_translate): Call it for allocno and pressure classes.
9085 (cover_class_order): Rename to allocno_class_order.
9086 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9087 of ira_class_translate.
9088 (reorder_important_classes): Set up ira_important_class_nums.
9089 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9090 (print_class_cover): Rename to print_classes. Add parameter.
9091 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9092 Print pressure classes too.
9093 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9094 setup_reg_subclasses.
9095 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9096 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9097 (setup_prohibited_class_mode_regs): Use
9098 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9099 (clarify_prohibited_class_mode_regs): New function.
9100 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9101 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9102 (ira_init_once): Initialize them.
9103 (free_register_move_costs): Process them.
9104 (ira_init): Move calls of find_reg_classes and
9105 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9106 Call clarify_prohibited_class_mode_regs.
9107 (ira_no_alloc_reg): Remove.
9108 (too_high_register_pressure_p): Use pressure classes.
9110 * sched-deps.c: Remove mentioning cover classes from the file.
9111 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9112 ira_pressure_classes and ira_pressure_classes_num instead of
9113 ira_reg_class_cover_size and ira_reg_class_cover.
9114 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9115 sched_regno_pressure_class instead of sched_regno_cover_class.
9116 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9117 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9119 * ira.h: Add 2010 to Copyright.
9120 (ira_no_alloc_reg): Remove external.
9121 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9122 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9123 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9124 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9125 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9126 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9127 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9128 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9129 x_ira_no_alloc_regs.
9130 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9131 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9132 ira_allocno_classes_num and ira_allocno_classes.
9133 (ira_class_translate): Rename to ira_allocno_class_translate.
9134 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9135 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9136 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9137 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9138 (ira_no_alloc_regs): New.
9140 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9141 classes from the file. Use ALLOCNO_CLASS instead of
9142 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9143 ALLOCNO_COVER_CLASS_COST.
9144 (regno_cover_class): Rename to regno_aclass.
9145 (record_reg_classes): Use ira_reg_class_subunion instead of
9146 ira_reg_class_union.
9147 (record_address_regs): Check overflow.
9148 (scan_one_insn): Ditto.
9149 (print_allocno_costs): Print total mem cost fore regional allocation.
9150 (print_pseudo_costs): Use REG_N_REFS.
9151 (find_costs_and_classes): Use classes intersected with them on the
9152 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9153 ira_reg_class_union. Use ira_allocno_class_translate and
9154 regno_aclass instead of ira_class_translate and regno_cover_class.
9155 Modify code for finding regno_aclass. Setup preferred classes for
9157 (setup_allocno_cover_class_and_costs): Rename to
9158 setup_allocno_class_and_costs. Use regno_aclass instead of
9159 regno_cover_class. Use ira_set_allocno_class instead of
9160 ira_set_allocno_cover_class.
9161 (init_costs, finish_costs): Use regno_aclass instead of
9163 (ira_costs): Use setup_allocno_class_and_costs instead of
9164 setup_allocno_cover_class_and_costs.
9165 (ira_tune_allocno_costs_and_cover_classes): Rename to
9166 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9167 by processing objects. Use ira_reg_class_max_nregs instead of
9168 ira_reg_class_nregs.
9170 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9172 * sched-int.h: Remove mentioning cover classes from the file.
9173 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9175 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9176 classes from the file.
9177 (struct reg_pref): Rename coverclass into allocnoclass.
9178 (reg_cover_class): Rename to reg_allocno_class.
9180 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9182 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9184 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9186 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9188 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9190 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9192 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9194 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9196 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9198 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9200 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9201 (i386_ira_cover_classes): Ditto.
9203 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9205 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9207 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9209 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9211 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9213 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9215 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9216 (mips_ira_cover_classes): Ditto.
9218 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9220 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9222 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9224 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9226 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9228 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9229 (IRA_COVER_CLASSES_VSX): Ditto.
9231 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9232 (rs6000_ira_cover_classes): Ditto.
9234 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9236 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9238 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9240 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9242 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9244 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9246 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9248 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9250 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9252 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9254 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9257 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9258 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9259 dw_fde_unlikely_section_end_label, cold_in_std_section,
9260 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9261 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9263 (output_fde): Use dw_fde_second_{begin,end} if second is
9264 true, otherwise dw_fde_{begin,end}.
9265 (output_call_frame_info): Test dw_fde_second_begin != NULL
9266 instead of dw_fde_switched_sections.
9267 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9268 fields, initialize new fields. Initialize in_std_section
9269 unconditionally from the first partition.
9270 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9271 dw_fde_second_begin is non-NULL.
9272 (dwarf2out_switch_text_section): Stop initializing removed
9273 dw_fde_struct fields, initialize new fields, initialize
9274 also dw_fde_end here. Set dw_fde_switch_cfi even when
9275 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9276 (struct var_loc_list_def): Add last_before_switch field.
9277 (arange_table, arange_table_allocated, arange_table_in_use,
9278 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9279 (size_of_aranges): Count !in_std_section and !second_in_std_section
9280 hunks in fdes, instead of looking at arange_table_in_use.
9281 (output_aranges): Add aranges_length argument, don't call
9282 size_of_aranges here. Instead of using aranges_table*
9283 emit ranges for fdes when !in_std_section resp.
9284 !second_in_std_section.
9285 (dw_loc_list): Break ranges crossing section switch.
9286 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9287 use dw_fde_second_end instead of dw_fde_end as end of last range.
9288 (gen_subprogram_die): Don't call add_arange. Use
9289 dw_fde_{begin,end} for first partition and if switched
9290 section dw_fde_second_{begin,end} for the second.
9291 (var_location_switch_text_section_1,
9292 var_location_switch_text_section): New functions.
9293 (dwarf2out_begin_function): Initialize cold_text_section even
9294 when function_section () isn't text_section.
9295 (prune_unused_types): Don't walk arange_table.
9296 (dwarf2out_finish): Don't needlessly test
9297 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9298 If info_section_emitted, call size_of_aranges and if it indicates
9299 non-empty .debug_aranges, call output_aranges with the computed
9300 size. Stop using removed dw_fde_struct fields, use
9301 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9305 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9306 create ENTRY_VALUE if incoming or address of incoming's MEM
9308 * dwarf2out.c (mem_loc_descriptor): Don't emit
9309 DW_OP_GNU_entry_value of DW_OP_fbreg.
9310 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9311 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9312 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9313 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9315 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9316 is a REG_P or MEM_P with REG_P address, compute hash directly
9317 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9318 (preserve_only_constants): Don't clear VALUES forwaring
9319 ENTRY_VALUE to some other VALUE.
9321 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9323 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9326 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9328 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9329 block before expanding the statement.
9330 (expand_gimple_stmt_1): Likewise. Set them here...
9331 (expand_gimple_stmt): ...and not here. Tidy.
9332 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9335 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9337 * Makefile.in: New rule for cprop.o.
9338 * gcse.c: Move constant/copy propagation to cprop.c.
9339 (compute_local_properties): Only handle expression tables.
9340 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9341 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9342 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9343 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9344 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9345 compute_cprop_data, find_used_regs, try_replace_reg,
9346 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9347 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9348 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9349 find_bypass_set, reg_killed_on_edge, bypass_block,
9350 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9351 execute_rtl_cprop, pass_rtl_cprop): Move to...
9352 * cprop.c: ...here. New file, constant/copy propagation for RTL
9353 moved from gcse.c to here with minor cleanups in duplicated code.
9355 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9357 * config/i386/i386.c (flag_opts): Fix a typo in
9358 -mavx256-split-unaligned-store.
9360 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9362 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9363 LIBCALL_VALUE): Remove macros.
9364 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9365 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9366 (h8300_function_value, h8300_libcall_value,
9367 h8300_function_value_regno_p): New functions.
9369 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9371 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9373 2011-03-28 Jeff Law <law@redhat.com>
9375 * tree-ssa-threadupdate.c (redirect_edges): Call
9376 create_edge_and_update_destination_phis as needed.
9377 (create_edge_and_update_destination_phis): Accept new BB argument.
9378 All callers updated.
9379 (thread_block): Do not update the profile when threading around
9380 intermediate blocks.
9381 (thread_single_edge): Likewise.
9382 (determine_bb_domination_status): If BB is not a successor of the
9383 loop header, return NONDOMINATING.
9384 (register_jump_thread): Note when we register a jump thread around
9385 an intermediate block.
9386 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9387 (thread_across_edge): Use it.
9389 2011-03-28 Tristan Gingold <gingold@adacore.com>
9391 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9392 when for_return is 2.
9394 2011-03-28 Jeff Law <law@redhat.com>
9396 * var-tracking.c (canonicalize_values_mark): Delete unused
9398 (canonicalize_values_star, set_variable_part): Likewise.
9399 (clobber_variable_part, delete_variable_part): Likewise.
9401 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9403 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9405 2011-03-28 Martin Jambor <mjambor@suse.cz>
9407 * tree-inline.c (expand_call_inline): Do not check that destination
9409 (optimize_inline_calls): Assert that destination node is analyzed.
9410 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9411 not call tree_lowering_passes.
9412 * cgraph.h (cgraph_analyze_function): Declare.
9413 * cgraphunit.c (cgraph_analyze_function): Make public.
9415 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9417 * config/sparc/sparc-opts.h: New.
9418 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9419 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9420 (sparc_option_override): Store processor_type enumeration rather
9421 than string in cpu_default. Remove name and enumeration from
9422 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9423 without using sparc_select. Use target_flags_explicit instead of
9425 * config/sparc/sparc.h (enum processor_type): Move to
9427 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9428 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9429 HeaderInclude entry.
9430 (mcpu=, mtune=): Use Var and Enum.
9431 (sparc_processor_type): New Enum and EnumValue entries.
9433 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9434 Iain Sandoe <iains@gcc.gnu.org>
9437 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9439 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9441 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9442 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9443 Insert new statements at it in lieu of STMT.
9444 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9445 * tree-vect-stmts.c (vectorizable_store): Likewise.
9446 (vectorizable_load): Likewise.
9448 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9450 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9455 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9457 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9458 unaligned 256bit load/store.
9459 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9460 (*avx_movdqu<avxmodesuffix>): Likewise.
9462 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9465 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9466 * config/pa/pa.md (iordi3): Use new predicate in expander.
9469 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9471 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9472 FUNCTION_VALUE_REGNO_P): Remove macros.
9473 * config/mips/mips-protos.h (mips_function_value): Remove.
9474 * config/mips/mips.c (mips_function_value): Rename to...
9475 (mips_function_value_1): ... this. Make static. Handle receiving
9476 the function type in 'fn_decl_or_type' argument.
9477 (mips_function_value, mips_libcall_value,
9478 mips_function_value_regno_p): New function.
9479 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9480 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9482 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9484 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9485 and -mavx256-split-unaligned-store.
9486 (ix86_option_override_internal): Split 32-byte AVX unaligned
9487 load/store by default.
9488 (ix86_avx256_split_vector_move_misalign): New.
9489 (ix86_expand_vector_move_misalign): Use it.
9491 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9492 -mavx256-split-unaligned-store.
9494 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9495 256bit load/store. Generate unaligned store on misaligned memory
9497 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9499 (*avx_movdqu<avxmodesuffix>): Likewise.
9501 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9502 -mavx256-split-unaligned-store.
9504 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9507 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9510 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9512 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9513 opno arguments with an expand_operand. Use create_input_operand.
9514 (mips_prepare_builtin_target): Delete.
9515 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9517 (mips_expand_builtin_direct): Use create_output_operand and
9518 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9519 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9520 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9522 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9524 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9526 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9528 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9530 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9531 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9532 basic blocks and call commit_edge_insertions directly.
9533 (fixup_abnormal_edges): Move from here to...
9534 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9535 on the edges and return whether some have actually been inserted.
9536 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9539 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9541 PR rtl-optimization/48144
9542 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9543 (merge_expr_data): ... here.
9544 (av_set_intersect): Rename to av_set_code_motion_filter.
9545 Update all callers. Call merge_history_vect when an expression
9546 is found in both sets.
9547 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9549 2011-03-26 Alan Modra <amodra@gmail.com>
9551 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9552 cmodel medium addresses.
9553 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9554 64-bit gpr loads and stores.
9555 (rs6000_secondary_reload_ppc64): New function.
9556 * config/rs6000/rs6000-protos.h: Declare it.
9557 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9559 2011-03-26 Alan Modra <amodra@gmail.com>
9562 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9563 GNU Go in traceback table.
9565 2011-03-25 Richard Henderson <rth@redhat.com>
9567 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9568 if there are exactly 6 operands.
9569 (set_storage_via_setmem): Similarly.
9571 2011-03-25 Kai Tietz <ktietz@redhat.com>
9573 * collect2.c (write_c_file_stat): Handle backslash
9574 as right-hand directory separator.
9575 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9576 checking just for slash.
9577 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9578 instead of checking for trailing slash.
9579 * gcc.c (record_temp_file): Use filename_cmp instead
9581 (do_spec_1): Likewise.
9582 (replace_outfile_spec_function): Likewise.
9583 (is_directory): Use filename_ncmp instead of strncmp.
9584 (print_multilib_info): Likewise.
9585 * gcov.c (find_source): Use filename_cmp instead
9587 (make_gcov_file_name): Fix order of slash/backslash
9589 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9590 (add_standard_paths): Likewise.
9591 * mips-tfile.c (saber_stop): Handle backslash.
9592 * prefix.c (update_path): Use filename_ncmp instead of
9594 * profile.c (output_location): Use filename_cmp instead
9596 * read-md.c (handle_toplevel_file): Handle backslash.
9597 * tlink.c (frob_extension): Likewise.
9598 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9600 * tree-dump.c (dequeue_and_dump): Handle backslash.
9601 * tree.c (get_file_function_name): Likewise.
9602 * gengtype.c (read_input_list): Likewise.
9603 (get_file_realbasename): Likewise.
9604 (get_output_file_with_visibility): Use filename_cmp
9607 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9609 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9612 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9614 * fold-const.c (expr_location_or): New function.
9615 (fold_truth_not_expr): Call it.
9617 2011-03-25 Jeff Law <law@redhat.com>
9619 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9621 * c-family/c-common.c (def_fn_type): Likewise.
9622 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9623 * emit-rtl.c (gen_rtvec): Likewise.
9624 * lto/lto-lang.c (def_fn_type): Likewise.
9626 2011-03-25 Richard Guenther <rguenther@suse.de>
9628 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9629 also generate copies.
9630 (fini_copy_prop): Handle constant values properly.
9632 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9634 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9635 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9636 (hash_loc_operands, compare_loc_operands): Handle
9637 DW_OP_GNU_entry_value.
9639 2011-03-25 Kai Tietz <ktietz@redhat.com>
9641 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9642 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9643 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9644 comment and use macro TARGET_64BIT_MS_ABI instead.
9645 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9646 and change default behavior for 32-bit MS_ABI.
9647 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9648 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9650 (ix86_cfun_abi): Likewise.
9651 (ix86_maybe_switch_abi): Adjust comment.
9652 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9653 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9654 instead of checking for SYSV_ABI.
9655 (ix86_nsaved_sseregs): Likewise.
9656 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9658 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9659 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9660 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9661 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9662 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9664 2011-03-25 Richard Guenther <rguenther@suse.de>
9666 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9667 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9668 (verify_gimple): Remove.
9669 * tree-cfg.c (verify_gimple_call): Merge verification
9671 (verify_gimple_phi): Merge verification from verify_stmts.
9672 (verify_gimple_label): New function.
9673 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9674 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9675 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9676 (verify_stmts): Rename to verify_gimple_in_cfg.
9677 (verify_gimple_in_cfg): New function.
9678 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9679 * tree-ssa.c (verify_ssa): Likewise.
9680 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9682 2011-03-25 Richard Guenther <rguenther@suse.de>
9684 * passes.c (init_optimization_passes): Add FRE pass after
9687 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9688 Andrew Stubbs <ams@codesourcery.com>
9690 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9692 (arm_movdi_vfp_cortexa8): New pattern.
9693 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9694 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9695 instructions when tuning for Cortex-A8. Set attribute "arch".
9696 * config/arm/arm.md: Move include arm-tune.md up a bit.
9697 (define_attr "arch"): Add "onlya8" and "nota8" values.
9698 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9700 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9704 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9706 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9707 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9708 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9709 * passes.c (init_optimization_passes): Move
9710 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9712 2011-03-25 Kai Tietz <ktietz@redhat.com>
9714 * c-typeck.c (comptypes_internal): Replace target
9715 hook call of comp_type_attributes by version in tree.c file.
9716 * gimple.c (gimple_types_compatible_p_1): Likewise.
9717 * tree-ssa.c (useless_type_conversion_p): Likewise.
9718 * tree.c (build_type_attribute_qual_variant): Likewise.
9719 (attribute_value_equal): New static helper function.
9720 (comp_type_attributes): New function.
9721 (merge_attributes): Use attribute_value_equal for comparison.
9722 (attribute_list_contained): Likewise.
9723 * tree.h (comp_type_attributes): New prototype.
9725 2011-03-25 Richard Guenther <rguenther@suse.de>
9727 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9728 of complex types at -O0.
9729 (verify_gimple_assign_binary): Likewise.
9730 (verify_gimple_assign_ternary): Likewise.
9732 2011-03-24 Mark Wielaard <mjw@redhat.com>
9734 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9735 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9737 2011-03-24 Mark Wielaard <mjw@redhat.com>
9740 * dwarf2out.c (output_abbrev_section): Only write table when
9741 abbrev_die_table_in_use > 1.
9743 2011-02-24 Richard Henderson <rth@redhat.com>
9745 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9746 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9747 (alpha_expand_unaligned_load_words): Use extql.
9748 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9749 (emit_insxl): Handle all modes for consistency.
9751 2011-02-24 Richard Henderson <rth@redhat.com>
9753 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9754 (alpha_expand_unaligned_load): Likewise.
9755 (alpha_expand_unaligned_store): Likewise.
9756 (alpha_expand_unaligned_load_words): Likewise.
9757 (alpha_expand_unaligned_store_words): Likewise.
9758 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9759 (alpha_split_lock_test_and_set_12): Likewise.
9760 (print_operand, alpha_fold_builtin_extxx): Likewise.
9761 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9762 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9763 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9764 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9765 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9766 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9767 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9768 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9769 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9770 (extwl, extll, extql): Similarly.
9771 (inswh, inslh, insqh): Similarly.
9772 (mskbl, mskwl, mskll, mskql): Similarly.
9773 (mskwh, msklh, mskqh): Similarly.
9775 2011-02-24 Richard Henderson <rth@redhat.com>
9777 * config/alpha/alpha.md (attribute isa): Add er, ner.
9778 (attribute enabled): Handle them.
9779 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9781 2011-02-24 Richard Henderson <rth@redhat.com>
9783 * config/alpha/alpha.md (attribute isa): Add vms.
9784 (attribute enabled): Handle it.
9785 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9786 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9787 (*movtf): Rename from *movtf_internal for consistency.
9788 (*movsi): Merge with *movsi_nt_vms.
9789 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9790 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9791 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9792 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9794 2011-02-24 Richard Henderson <rth@redhat.com>
9796 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9797 (extendqisi2, extendhisi2): Likewise.
9798 (extendqidi2): Simplify BWX/non-BWX expansions.
9799 (extendhidi2): Similarly.
9801 2011-02-24 Richard Henderson <rth@redhat.com>
9803 * config/alpha/alpha.md (attribute isa): New.
9804 (attribute enabled): New.
9805 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9806 (zero_extendqisi2, zero_extendqidi2): Similarly.
9807 (zero_extendhisi2, zero_extendhidi2): Similarly.
9808 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9810 2011-02-24 Richard Henderson <rth@redhat.com>
9812 * config/alpha/predicates.md (input_operand): Revert last change;
9813 update comment to mention 32-bit VMS rather than Windows.
9815 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9817 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9818 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9819 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9820 * passes.c (init_optimization_passes): Move
9821 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9823 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9825 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9827 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9829 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9832 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9835 * simplify-rtx.c (simplify_const_unary_operation): Call
9836 real_convert when changing mode class with FLOAT_EXTEND.
9838 2011-03-24 Nick Clifton <nickc@redhat.com>
9840 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9841 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9842 * config/rx/rx.c (rx_option_override): Set align_jumps,
9843 align_loops and align_labels if not set by the user.
9844 (rx_align_for_label): New function.
9845 (rx_max_skip_for_label): New function.
9846 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9847 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9848 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9849 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9850 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9852 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9854 PR rtl-optimization/48263
9855 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9856 and original commutative_p handling. Use maybe_gen_insn.
9858 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9860 * reload.c (find_reloads_subreg_address): Add address_reloaded
9861 parameter and return true there if the full address has been
9863 (find_reloads_toplev): Pass address_reloaded flag.
9864 (find_reloads_address_1): Don't use address_reloaded parameter.
9866 2011-03-24 Jeff Law <law@redhat.com>
9868 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9869 unused variable "ann".
9870 (remove_unused_locals): Likewise.
9872 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9875 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9878 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9880 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9881 for invalid symbolic addresses.
9882 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9885 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9887 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9888 the argument in calls to fold_truth_not_expr.
9890 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9892 * tree.c (record_node_allocation_statistics): New function.
9893 (make_node_stat, copy_node_stat, build_string): Call it.
9894 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9895 (build1_stat, build_omp_clause): Likewise.
9897 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9899 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9902 2011-03-24 Richard Guenther <rguenther@suse.de>
9904 PR tree-optimization/48271
9905 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9906 blocks that still exist.
9908 2011-03-24 Richard Guenther <rguenther@suse.de>
9910 PR tree-optimization/48270
9911 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9912 not free datarefs before ddrs.
9914 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9916 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9917 from the address built for a reference with variable offset.
9919 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9922 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9923 alternatives that can be handled with movq or movabsq insn.
9924 (*movdf_internal): Disable for !TARGET_64BIT.
9925 (*movdf_internal_nointeger): Ditto.
9926 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9928 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9930 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9931 (FUNCTION_ARG_ADVANCE): Likewise.
9932 * tm.texi.in: Change references to them to hook references.
9933 * tm.texi: Regenerate.
9934 * targhooks.c (default_function_arg): Eliminate check for target macro.
9935 (default_function_incoming_arg): Likewise.
9936 (default_function_arg_advance): Likewise.
9937 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9938 (function_arg_advance): Likewise.
9939 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9941 2011-03-24 Richard Guenther <rguenther@suse.de>
9944 * tree-object-size.c (addr_object_size): Do not double-account
9945 for MEM_REF offsets.
9947 2011-03-24 Diego Novillo <dnovillo@google.com>
9949 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9950 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9951 (lto_input_data_block): Move from lto-opts.c. Make extern.
9953 (lto_input_string): Rename from input_string. Make extern.
9955 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9956 output_string_with_length.
9957 Output 0 to indicate a non-NULL string. Update all callers to
9959 (lto_output_string): Rename from output_string. Make extern.
9961 (lto_output_decl_state_streams): Make extern.
9962 (lto_output_decl_state_refs): Make extern.
9963 * lto-streamer.h (lto_input_string): Declare.
9964 (lto_input_data_block): Declare.
9965 (lto_output_string): Declare.
9966 (lto_output_string_with_length): Declare.
9967 (lto_output_decl_state_streams): Declare.
9968 (lto_output_decl_state_refs): Declare.
9970 2011-03-24 Richard Guenther <rguenther@suse.de>
9972 PR tree-optimization/46562
9973 * tree.c (build_invariant_address): New function.
9974 * tree.h (build_invariant_address): Declare.
9975 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9976 a renamed function moved ...
9977 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9978 Take valueization callback parameter.
9979 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9980 * gimple-fold.h: New file.
9981 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9982 (ccp_fold, fold_const_aggregate_ref,
9983 fold_ctor_reference, fold_nonarray_ctor_reference,
9984 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9985 get_base_constructor): Move ...
9986 * gimple-fold.c: ... here.
9987 (gimple_fold_stmt_to_constant_1): New function
9988 split out from ccp_fold. Take a valueization callback parameter.
9989 Valueize all operands.
9990 (gimple_fold_stmt_to_constant): New wrapper function.
9991 (fold_const_aggregate_ref_1): New function split out from
9992 fold_const_aggregate_ref. Take a valueization callback parameter.
9993 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9994 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9995 invariant POINTER_PLUS_EXPRs to invariant form.
9996 (vn_valueize): New function.
9997 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9998 * tree-vrp.c (vrp_valueize): New function.
9999 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10000 to fold statements to constants.
10001 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10002 function declarations.
10003 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10004 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10006 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10008 * config/h8300/predicates.md (jump_address_operand): Fix register
10011 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10013 * doc/invoke.texi (max-stores-to-sink): Document.
10014 * params.h (MAX_STORES_TO_SINK): Define.
10015 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10016 if either vectorization or if-conversion is disabled.
10017 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10018 tree-vect-data-refs.c vect_equal_offsets.
10019 (dr_equal_offsets_p): New function.
10020 (find_data_references_in_bb): Remove static.
10021 * tree-data-ref.h (find_data_references_in_bb): Declare.
10022 (dr_equal_offsets_p): Likewise.
10023 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10024 (vect_drs_dependent_in_basic_block): Update calls to
10025 vect_equal_offsets.
10026 (vect_check_interleaving): Likewise.
10027 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10028 (cond_if_else_store_replacement): Rename to...
10029 (cond_if_else_store_replacement_1): ... this. Change arguments and
10031 (cond_if_else_store_replacement): New function.
10032 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10033 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10035 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10038 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10039 to subtract lower bound instead of GEN_INT().
10041 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10046 * doc/extend.texi (Alignment): Move section to match order in TOC.
10047 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10048 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10050 2011-03-23 Jeff Law <law@redhat.com>
10052 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10053 before removing the edge.
10055 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10056 it may have been freed by redirect_branch_edge or
10057 redirect_edge_succ_nodup.
10059 2011-03-23 Richard Guenther <rguenther@suse.de>
10061 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10062 (check_va_list_escapes): Likewise.
10063 (check_all_va_list_escapes): Likewise.
10065 2011-03-23 Richard Guenther <rguenther@suse.de>
10067 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10068 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10069 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10070 (alias.o): Likewise.
10071 (ipa-type-escape.o): Remove.
10072 (ipa-struct-reorg.o): Likewise.
10073 (GTFILES): Remove ipa-struct-reorg.c.
10074 * alias.c: Do not include ipa-type-escape.h.
10075 * tree-ssa-alias.c: Likewise.
10076 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10077 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10078 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10079 and ipa-type-escape passes.
10080 * tree-pass.h (pass_ipa_type_escape): Remove.
10081 (pass_ipa_struct_reorg): Likewise.
10082 * ipa-struct-reorg.h: Remove.
10083 * ipa-struct-reorg.c: Likewise.
10084 * ipa-type-escape.h: Likewise.
10085 * ipa-type-escape.c: Likewise.
10086 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10087 (--param struct-reorg-cold-struct-ratio): Likewise.
10088 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10089 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10090 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10092 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10094 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10095 cpu attribute value.
10096 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10097 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10098 * config/s390/s390.c (processor_flags_table): New constant array.
10099 (s390_handle_arch_option): Remove.
10100 (s390_handle_option): Remove s390_handle_arch_option invocations
10101 and OPT_mwarn_framesize_ handling.
10102 (s390_option_override): Remove s390_handle_arch_option invocation.
10103 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10105 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10106 * config/s390/s390.opt (s390_tune, s390_arch)
10107 (march=): Replace s390_arch_option enum and values with
10108 processor_type. Set variable name to s390_arch. Set
10109 initialization value.
10110 (mtune=): Replace s390_arch_option with processor_type. Set
10111 variable name to s390_tune. Set initialization value.
10113 2011-03-23 Julian Brown <julian@codesourcery.com>
10115 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10116 accesses which are not naturally aligned.
10118 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10121 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10123 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10125 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10126 parameter from "int" to "enum insn_code".
10127 (expand_operand_type): New enum.
10128 (expand_operand): New structure.
10129 (create_expand_operand): New function.
10130 (create_fixed_operand, create_output_operand): Likewise
10131 (create_input_operand, create_convert_operand_to): Likewise.
10132 (create_convert_operand_from, create_address_operand): Likewise.
10133 (create_integer_operand): Likewise.
10134 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10135 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10136 (expand_insn, expand_jump_insn): Likewise.
10137 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10138 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10139 (expand_movstr, expand_builtin___clear_cache): Likewise.
10140 (expand_builtin_lock_release): Likewise.
10141 * explow.c (allocate_dynamic_stack_space): Likewise.
10142 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10143 and use the default handling in that case.
10144 * expmed.c (check_predicate_volatile_ok): Delete.
10145 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10146 (emit_cstore): Likewise.
10147 * expr.c (emit_block_move_via_movmem): Likewise.
10148 (set_storage_via_setmem, expand_assignment): Likewise.
10149 (emit_storent_insn, try_casesi): Likewise.
10150 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10151 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10152 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10153 (expand_twoval_unop, expand_twoval_binop): Likewise.
10154 (expand_unop_direct, emit_indirect_jump): Likewise.
10155 (emit_conditional_move, vector_compare_rtx): Likewise.
10156 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10157 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10158 (expand_sync_lock_test_and_set): Likewise.
10159 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10160 (emit_unop_insn): Likewise.
10161 (expand_copysign_absneg): Change icode to an insn_code.
10162 (create_convert_operand_from_type): New function.
10163 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10164 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10165 (expand_insn, expand_jump_insn): Likewise.
10166 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10167 than const_int_operand for operand 2.
10169 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10171 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10174 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10176 * emit-rtl.c (emit_pattern_before_noloc): New function.
10177 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10178 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10179 (emit_pattern_after_noloc): New function.
10180 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10181 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10183 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10185 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10186 (__ffsDI2): Likewise.
10188 2011-03-22 Richard Henderson <rth@redhat.com>
10190 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10191 of !TARGET_ABI_OPEN_VMS.
10192 (alpha_trampoline_init, alpha_start_function): Likewise.
10193 (alpha_expand_epilogue, alpha_file_start): Likewise.
10194 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10195 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10196 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10197 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10198 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10200 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10202 * config/s390/s390-opts.h: New.
10203 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10204 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10205 s390_stack_guard): Remove.
10206 (s390_handle_arch_option): Return void. Take enum
10207 s390_arch_option value instead of string and searching array.
10208 (s390_handle_option): Don't assert that global structures are in
10209 use. Access variables via opts pointer. Use error_at. Don't use
10210 sscanf for -mstack-guard= or -mstack-size=. Update call to
10211 s390_handle_arch_option.
10212 (s390_option_override): Update call to s390_handle_arch_option.
10213 (s390_emit_prologue): Use %d format for s390_stack_size in
10214 diagnostic. Use %wd for HOST_WIDE_INT.
10215 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10216 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10217 * config/s390/s390.opt (config/s390/s390-opts.h): New
10218 HeaderInclude entry.
10219 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10220 s390_arch_flags, s390_warn_framesize): New Variable entries.
10221 (s390_arch_option): New Enum and EnumValue entries.
10222 (march=): Use Enum instead of Var.
10223 (mstack-guard=, mstack-size=): Use UInteger and Var.
10224 (mtune=): Use Enum.
10226 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10228 * config/score/score.c (score_handle_option): Don't assert that
10229 global structures are in use. Access target_flags via opts
10230 pointer. Use value of -march= option to determine target_flags
10232 * config/score/score.opt (march=): Use Enum.
10233 (score_arch): New Enum and EnumValue entries.
10235 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10237 * config/mep/mep.c (option_mtiny_specified): Remove.
10238 (mep_option_override): Move register handling for -mivc2 from
10239 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10240 instead of option_mtiny_specified.
10241 (mep_handle_option): Access target_flags via opts pointer. Don't
10242 assert that global structures are in use. Defer part of -mivc2
10243 handling and move it to mep_option_override.
10244 * config/mep/mep.opt (IVC2): New Mask entry.
10245 (mivc2): Use Var and Defer instead of Mask.
10247 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10249 * config/v850/v850-opts.h: New.
10250 * config/v850/v850.c (small_memory): Replace with
10251 small_memory_physical_max array. Make that array static const.
10252 (v850_handle_memory_option): Take integer value of argument. Take
10253 gcc_options pointer, option text and location. Return void.
10254 Update for changes to small memory structures.
10255 (v850_handle_option): Access target_flags via opts pointer. Don't
10256 assert that global structures are in use. Update calls to
10257 v850_handle_memory_option.
10258 (v850_encode_data_area): Update references to small memory settings.
10259 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10260 (enum small_memory_type): Move to v850-opts.h.
10261 * config/v850/v850.opt (config/v850/v850-opts.h): New
10262 HeaderInclude entry.
10263 (small_memory_max): New Variable entry.
10264 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10265 (mtda, mzda): Likewise.
10267 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10269 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10270 pointer. Don't assert that global structures are in use.
10272 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10274 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10275 via opts pointer. Don't assert that global structures are in use.
10277 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10279 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10280 (munix=93): Use Var.
10281 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10282 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10283 * config/pa/pa-opts.h: New.
10284 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10285 (pa_handle_option): Don't assert that global structures are in
10286 use. Access target_flags via opts pointer. Don't handle
10287 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10289 (pa_option_override): Handle deferred OPT_mfixed_range_.
10291 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10293 * config/mn10300/mn10300-opts.h: New.
10294 * config/mn10300/mn10300.c (mn10300_processor,
10295 mn10300_tune_string): Remove.
10296 (mn10300_handle_option): Don't assert that global structures are
10297 in use. Access mn10300_processor via opts pointer. Don't handle
10299 * config/mn10300/mn10300.h (enum processor_type): Move to
10301 (mn10300_processor): Remove.
10302 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10303 HeaderInclude entry.
10304 (mn10300_processor): New Variable entry.
10307 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10309 * config/microblaze/microblaze.c: Don't include opts.h.
10310 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10311 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10312 (mno-clearbss): Use Var and Warn.
10314 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10316 * config/m32r/m32r-opts.h: New.
10317 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10318 (m32r_handle_option): Don't assert that global structures are in
10319 use. Access target_flags and m32r_cache_flush_func via opts
10320 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10321 OPT_mno_flush_trap here.
10322 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10323 include of m32r-opts.h.
10324 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10325 HeaderInclude entry.
10326 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10327 (mmodel=): Use Enum and Var.
10328 (m32r_model): New Enum and EnumValue entries.
10329 (mno-flush-trap): Use Var.
10330 (msdata=): Use Enum and Var.
10331 (m32r_sdata): New Enum and EnumValue entries.
10333 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10335 * config/m32c/m32c.c: Don't include opts.h.
10336 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10337 m32c_handle_option): Remove.
10338 (m32c_option_override): Check global_options_set.x_target_memregs
10339 instead of target_memregs_set.
10340 * config/m32c/m32c.h (target_memregs): Remove.
10341 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10344 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10346 * config/iq2000/iq2000-opts.h: New.
10347 * config/iq2000/iq2000.c: Don't include opts.h.
10348 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10349 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10350 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10351 HeaderInclude entry.
10352 (iq2000_tune): New Variable entry.
10353 (march=): Add comment. Use Enum.
10354 (iq2000_arch): New Enum and EnumValue entries.
10355 (mcpu=): Use Enum and Var.
10356 (iq2000_tune): New Enum and EnumValue entries.
10358 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10360 * config/ia64/ia64-opts.h: New.
10361 * config/ia64/ia64.c (ia64_tune): Remove.
10362 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10363 here. Use error_at.
10364 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10365 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10366 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10367 HeaderInclude entry.
10368 (ia64_tune): New Variable entry.
10369 (mfixed-range=): Use Defer and Var.
10370 (mtune=): Use Enum and Var.
10371 (ia64_tune): New Enum and EnumValue entries.
10373 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10375 * config/frv/frv-opts.h: New.
10376 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10378 (frv_cpu_type): Remove.
10379 * config/frv/frv.c: Don't include opts.h.
10380 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10381 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10382 (frv_cpu_type): New Variable entry.
10383 (frv_cpu): New Enum and EnumValue entries.
10385 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10387 * config/cris/cris.c (cris_handle_option): Access target_flags via
10388 opts pointer. Don't assert that global structures are in use.
10389 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10390 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10392 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10394 * config/bfin/bfin-opts.h: New.
10395 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10396 bfin_si_revision, bfin_workarounds): Remove.
10397 (bfin_cpus): Make static const.
10398 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10399 not bfin_lib_id_given.
10400 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10401 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10402 pointer. Use error_at. Don't assert that global structures are in use.
10403 * config/bfin/bfin.h: Include bfin-opts.h.
10404 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10405 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10406 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10407 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10410 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10412 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10413 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10414 or -msoft-float here.
10415 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10416 -msoft-float and -mhard-float.
10417 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10418 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10420 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10422 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10423 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10425 (LIBGCC_SPEC): Don't handle -msoft-float.
10426 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10428 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10430 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10431 -mfloat-abi=*, not -msoft-float and -mhard-float.
10432 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10434 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10435 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10436 mhard-float and msoft-float.
10437 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10438 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10439 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10440 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10442 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10443 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10445 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10447 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10450 2011-03-22 Richard Henderson <rth@redhat.com>
10452 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10453 TARGET_ABI_WINDOWS_NT.
10454 (alpha_output_function_end_prologue): Likewise.
10455 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10456 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10457 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10458 (trap, *movsi_nt_vms): Likewise.
10459 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10460 (*tablejump_osf_nt_internal): Remove.
10461 * config/alpha/predicates.md (input_operand): Only test Pmode.
10463 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10465 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10466 via opts pointer. Use error_at. Don't assert that global
10467 structures are in use.
10469 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10471 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10472 (ix86_handle_option): Access ix86_isa_flags and
10473 ix86_isa_flags_explicit via opts pointer. Don't assert that
10474 global structures are in use.
10475 (ix86_function_specific_save, ix86_function_specific_restore):
10476 Update ix86_isa_flags_explicit field name.
10477 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10478 (ix86_isa_flags_explicit): Rename TargetSave entry to
10479 x_ix86_isa_flags_explicit.
10481 2011-03-22 Richard Henderson <rth@redhat.com>
10483 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10484 (alpha_option_override, direct_return): Likewise.
10485 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10486 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10487 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10488 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10489 (alpha_expand_epilogue, alpha_end_function): Likewise.
10490 (alpha_init_libfuncs): Likewise.
10491 (struct machine_function): Remove unicosmk members.
10492 (print_operand) ['t']: Remove.
10493 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10494 unicosmk_output_module_name, unicosmk_output_common,
10495 current_section_align, unicosmk_output_text_section_asm_op,
10496 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10497 unicosmk_section_type_flags, unicosmk_unique_section,
10498 unicosmk_asm_named_section, unicosmk_insert_attributes,
10499 unicosmk_output_align, unicosmk_defer_case_vector,
10500 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10501 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10502 unicosmk_output_ssib, unicosmk_add_call_info_word,
10503 unicosmk_extern_head, unicosmk_output_default_externs,
10504 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10505 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10506 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10507 * config/alpha/alpha-protos.h: Update.
10508 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10509 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10510 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10511 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10512 (*mulsi_se, mulvsi3): Likewise.
10513 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10514 (*divmodsi_internal, call, call_value, realign): Likewise.
10515 (moddi3, umoddi3): Likewise; remove duplicate expander.
10516 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10517 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10518 (*movdi_nofix): Remove r/U alternative.
10519 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10520 * config/alpha/constraints.md ("U"): Remove.
10521 * config/alpha/predicates.md (call_operand"): Don't test
10522 TARGET_ABI_UNICOSMK.
10524 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10526 * target.def (handle_option): Take gcc_options and
10527 cl_decoded_option pointers and location_t.
10528 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10529 * doc/tm.texi: Regenerate.
10530 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10531 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10532 * lto-opts.c (lto_reissue_options): Generate option structure for
10533 targetm.handle_option call.
10534 * opts.c (target_handle_option): Update call to
10535 targetm.handle_option. Remove assertions about values now passed
10537 * targhooks.c (default_target_handle_option): New.
10538 * targhooks.h (default_target_handle_option): Declare.
10539 * config/alpha/alpha.c: Include opts.h.
10540 (alpha_handle_option): Update to new hook interface.
10541 * config/arm/arm.c: Include opts.h.
10542 (arm_handle_option): Update to new hook interface.
10543 * config/arm/t-arm (arm.o): Update dependencies.
10544 * config/bfin/bfin.c: Include opts.h.
10545 (bfin_handle_option): Update to new hook interface.
10546 * config/cris/cris.c: Include opts.h.
10547 (cris_handle_option): Update to new hook interface.
10548 * config/frv/frv.c: Include opts.h.
10549 (frv_handle_option): Update to new hook interface.
10550 * config/i386/i386.c: Include opts.h.
10551 (ix86_handle_option): Update to new hook interface.
10552 (ix86_valid_target_attribute_inner_p): Generate option structure
10553 for call to ix86_handle_option.
10554 * config/i386/t-i386 (i386.o): Update dependencies.
10555 * config/ia64/ia64.c: Include opts.h.
10556 (ia64_handle_option): Update to new hook interface.
10557 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10558 * config/iq2000/iq2000.c: Include opts.h.
10559 (iq2000_handle_option): Update to new hook interface.
10560 * config/m32c/m32c.c: Include opts.h.
10561 (m32c_handle_option): Update to new hook interface.
10562 * config/m32r/m32r.c: Include opts.h.
10563 (m32r_handle_option): Update to new hook interface.
10564 * config/m68k/m68k.c: Include opts.h.
10565 (m68k_handle_option): Update to new hook interface.
10566 * config/mep/mep.c: Include opts.h.
10567 (mep_handle_option): Update to new hook interface.
10568 * config/microblaze/microblaze.c: Include opts.h.
10569 (microblaze_handle_option): Update to new hook interface.
10570 * config/mips/mips.c: Include opts.h.
10571 (mips_handle_option): Update to new hook interface.
10572 * config/mn10300/mn10300.c: Include opts.h.
10573 (mn10300_handle_option): Update to new hook interface.
10574 * config/pa/pa.c: Include opts.h.
10575 (pa_handle_option): Update to new hook interface.
10576 * config/pdp11/pdp11.c: Include opts.h.
10577 (pdp11_handle_option): Update to new hook interface.
10578 * config/rs6000/rs6000.c: Include opts.h.
10579 (rs6000_handle_option): Update to new hook interface.
10580 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10581 * config/rx/rx.c: Include opts.h.
10582 (rx_handle_option): Update to new hook interface.
10583 * config/s390/s390.c: Include opts.h.
10584 (s390_handle_option): Update to new hook interface.
10585 * config/score/score.c: Include opts.h.
10586 (score_handle_option): Update to new hook interface.
10587 * config/sh/sh.c: Include opts.h.
10588 (sh_handle_option): Update to new hook interface.
10589 * config/sparc/sparc.c: Include opts.h.
10590 (sparc_handle_option): Update to new hook interface.
10591 * config/v850/v850.c: Include opts.h.
10592 (v850_handle_option): Update to new hook interface.
10594 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10596 * gcc.c (driver_unknown_option_callback): Only permit and save
10597 unknown -Wno- options.
10598 (driver_wrong_lang_callback): Save options directly instead of via
10599 driver_unknown_option_callback.
10601 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10603 * combine.c (simplify_set): Try harder to find the best CC mode when
10604 simplifying a nested COMPARE on the RHS.
10606 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10608 * config/alpha/gnu.h: Remove.
10609 * config/arc: Remove directory.
10610 * config/arm/netbsd.h: Remove.
10611 * config/arm/t-pe: Remove.
10612 * config/crx: Remove directory.
10613 * config/i386/netbsd.h: Remove.
10614 * config/m68hc11: Remove directory.
10615 * config/m68k/uclinux-oldabi.h: Remove.
10616 * config/mcore/mcore-pe.h: Remove.
10617 * config/mcore/t-mcore-pe: Remove.
10618 * config/netbsd-aout.h: Remove.
10619 * config/rs6000/gnu.h: Remove.
10620 * config/sh/sh-symbian.h: Remove.
10621 * config/sh/symbian-base.c: Remove.
10622 * config/sh/symbian-c.c: Remove.
10623 * config/sh/symbian-cxx.c: Remove.
10624 * config/sh/symbian-post.h: Remove.
10625 * config/sh/symbian-pre.h: Remove.
10626 * config/sh/t-symbian: Remove.
10627 * config/svr3.h: Remove.
10628 * config/vax/netbsd.h: Remove.
10629 * config.build: Don't handle i[34567]86-*-pe.
10630 * config.gcc: Remove handling of deprecations for most deprecated
10632 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10633 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10634 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10635 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10636 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10637 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10639 * config.host: Don't handle i[34567]86-*-pe.
10640 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10641 (ASM_SPEC32): Don't handle -mcall-gnu.
10642 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10644 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10645 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10646 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10647 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10648 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10649 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10650 conditional on SYMBIAN.
10651 * configure.ac: Don't handle powerpc*-*-gnu*.
10652 * configure: Regenerate.
10653 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10654 * doc/install-old.texi (m6811, m6812): Don't mention.
10655 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10656 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10657 (m68k-uclinuxoldabi): Don't mention.
10658 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10660 (-mcall-gnu): Remove.
10661 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10662 families): Remove constraint documentation.
10664 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10666 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10667 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10668 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10670 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10673 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10674 vector when peeking at the next token for vector, don't expand the
10677 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10679 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10680 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10681 * config/avr/avr.c (init_cumulative_args)
10682 (avr_function_arg_advance): Use it.
10683 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10685 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10686 (avr_function_ok_for_sibcall): ...this new function.
10687 (avr_lookup_function_attribute1): New static Function.
10688 (avr_naked_function_p, interrupt_function_p)
10689 (signal_function_p, avr_OS_task_function_p)
10690 (avr_OS_main_function_p): Use it.
10691 * config/avr/avr.md ("sibcall", "sibcall_value")
10692 ("sibcall_epilogue"): New expander.
10693 ("*call_insn", "*call_value_insn"): New insn.
10694 ("call_insn", "call_value_insn"): Remove
10695 ("call", "call_value", "epilogue"): Change expander to handle
10698 2011-03-21 Nick Clifton <nickc@redhat.com>
10700 * doc/invoke.texi (Overall Options): Move closing brace to end of
10702 (Optimization Options): Add missing @gol.
10703 (Directory Options): Likewise.
10704 (i386 and x86-64 Options): Likewise.
10705 (RS6000 and PowerPC Options): Likewise.
10706 (i386 and x86-64 Windows Options): Likewise.
10707 (V850 Options): Add text missing from descriptions.
10709 2011-03-22 Richard Henderson <rth@redhat.com>
10711 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10712 (avr_incoming_return_addr_rtx): New.
10713 (emit_push_byte): New.
10714 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10715 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10716 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10717 (emit_pop_byte): New.
10718 (expand_epilogue): Use it. Pop frame pointer by bytes.
10719 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10720 (INCOMING_RETURN_ADDR_RTX): New.
10721 (INCOMING_FRAME_SP_OFFSET): New.
10722 (ARG_POINTER_CFA_OFFSET): New.
10723 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10724 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10727 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10729 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10731 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10732 (FUNCTION_ARG_ADVANCE): Likewise.
10733 * tm.texi.in: Change references to them to hook references.
10734 * tm.texi: Regenerate.
10735 * targhooks.c (default_function_arg): Eliminate check for target
10737 (default_function_incoming_arg): Likewise.
10738 (default_function_arg_advance): Likewise.
10739 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10740 (function_arg_advance): Likewise.
10741 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10743 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10745 * tree.c (build_call_1): New function.
10746 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10748 2011-03-22 Richard Guenther <rguenther@suse.de>
10750 PR tree-optimization/48228
10751 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10752 for single-arg PHIs.
10754 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10756 PR rtl-optimization/48143
10757 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10758 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10759 sse2_cvtps2pd): Likewise.
10761 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10763 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10765 2011-03-22 Richard Guenther <rguenther@suse.de>
10767 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10768 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10769 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10770 and REALIGN_LOAD_EXPR.
10771 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10772 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10773 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10774 DOT_PROD_EXPR case ...
10775 (expand_expr_real_2): ... here.
10776 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10777 and REALIGN_LOAD_EXPR.
10778 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10779 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10780 (vect_create_epilog_for_reduction): Likewise.
10781 (vectorizable_reduction): Likewise.
10782 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10783 * tree-vect-stmts.c (vectorizable_load): Likewise.
10785 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10787 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10789 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10791 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10792 handling for PLTOFF/GOTOFF.
10794 2011-03-22 Nick Clifton <nickc@redhat.com>
10796 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10797 trailing backslash from the end of the macro definition.
10799 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10801 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10804 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10806 * expr.h (prepare_operand): Move to...
10807 * optabs.h (prepare_operand): ...here and change the insn code
10808 parameter from "int" to "enum insn_code".
10809 (insn_operand_matches): Declare.
10810 * expr.c (init_expr_target): Use insn_operand_matches.
10811 (compress_float_constant): Likewise.
10812 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10813 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10814 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10815 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10817 (gen_cond_trap): Likewise.
10818 (prepare_operand): Likewise. Change icode to an insn_code.
10819 (insn_operand_matches): New function.
10820 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10821 * reload1.c (gen_reload): Likewise.
10822 * targhooks.c (default_secondary_reload): Likewise.
10824 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10826 * config/alpha/alpha.md (unspec): New define_c_enum.
10829 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10832 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10833 between a call and its CALL_ARG_LOCATION note.
10835 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10837 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10839 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10843 * c-common.c (shorten_compare): If primopN is first sign-extended
10844 to opN and then zero-extended to result type, set primopN to opN.
10846 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10848 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10849 for barrier handlers.
10851 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10853 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10854 UNSPEC constants to be in the unspec enumeration, and redefine
10855 all UNSPECV constants to be in the unspecv enumeration, so that
10856 dumps print which unspec/unspec_volatile this is.
10857 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10858 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10859 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10860 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10861 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10863 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10864 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10865 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10866 * config/rs6000/sync.md (isync, lwsync): Ditto.
10868 2011-03-21 Richard Guenther <rguenther@suse.de>
10870 * params.def (lto-min-partition): Fix typo.
10872 2011-03-21 Richard Guenther <rguenther@suse.de>
10875 * c-decl.c (grokdeclarator): Drop to the main variant only
10876 for array types. Drop flag_gen_aux_info check.
10878 2011-03-21 Richard Guenther <rguenther@suse.de>
10880 PR translation/47911
10881 * params.def (lto-partitions): Fix typo.
10882 (lto-min-partition): Fix wording.
10884 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10886 * config/rs6000/t-freebsd: Remove duplication from file.
10888 2011-03-21 Richard Guenther <rguenther@suse.de>
10890 PR middle-end/47661
10891 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10893 2011-03-21 Richard Guenther <rguenther@suse.de>
10896 * params.def (lto-partitions): Require at least 1 partition.
10898 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10900 * gthr-solaris.h: Remove.
10901 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10902 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10903 (LIB_SPEC): Likewise.
10904 * config/sol2.opt (threads): Remove.
10905 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10906 (sparc*-*-solaris2*): Likewise.
10907 * configure.ac (enable_threads): Enable solaris support.
10908 * configure: Regenerate.
10909 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10910 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10913 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10915 * config.gcc: Obsolete *-*-solaris2.8*.
10916 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10918 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10921 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10922 reference. Solaris 8 perl works.
10924 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10927 * doc/install.texi (Prerequisites): Move jar etc. up.
10928 Explain support library version requirements.
10930 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10933 * doc/install.texi (Prerequisites): Move Perl to build
10934 requirements. Always necessary on Solaris 2 with Sun ld.
10936 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10938 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10940 (Specific, i?86-*-solaris2.[89]): Likewise.
10941 (Specific, i?86-*-solaris2.10): Likewise.
10942 (Specific, mips-sgi-irix6): Likewise.
10943 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10944 Update for binutils 2.21.
10946 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10948 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10949 Allow -fuse-linker-plugin for non-default plugin linker.
10950 * configure: Regenerate.
10952 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10955 * gengtype.c (files_rules): Added rule for cp/parser.h.
10957 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10960 * config/s390/s390.c (s390_delegitimize_address): Don't call
10961 lowpart_subreg if orig_x has BLKmode.
10963 2011-03-21 Kai Tietz <ktietz@redhat.com>
10966 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10967 * tree.h (attribute_spec): Add new member affects_type_identity.
10968 * attribs.c (empty_attribute_table): Adjust attribute_spec
10970 * config/alpha/alpha.c: Likewise.
10971 * config/arc/arc.c: Likewise.
10972 * config/arm/arm.c: Likewise.
10973 * config/avr/avr.c: Likewise.
10974 * config/bfin/bfin.c: Likewise.
10975 * config/crx/crx.c: Likewise.
10976 * config/darwin.h: Likewise.
10977 * config/h8300/h8300.c: Likewise.
10978 * config/i386/cygming.h: Likewise.
10979 * config/i386/i386.c: Likewise.
10980 * config/ia64/ia64.c: Likewise.
10981 * config/m32c/m32c.c: Likewise.
10982 * config/m32r/m32r.c: Likewise.
10983 * config/m68hc11/m68hc11.c: Likewise.
10984 * config/m68k/m68k.c: Likewise.
10985 * config/mcore/mcore.c: Likewise.
10986 * config/mep/mep.c: Likewise.
10987 * config/microblaze/microblaze.c: Likewise.
10988 * config/mips/mips.c: Likewise.
10989 * config/rs6000/rs6000.c: Likewise.
10990 * config/rx/rx.c: Likewise.
10991 * config/sh/sh.c: Likewise.
10992 * config/sol2.h: Likewise.
10993 * config/sparc/sparc.c: Likewise.
10994 * config/spu/spu.c: Likewise.
10995 * config/stormy16/stormy16.c: Likewise.
10996 * config/v850/v850.c: Likewise.
10998 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11000 * simplify-rtx.c (simplify_binary_operation_1): Handle
11001 (xor (and A B) C) case when B and C are both constants.
11003 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11005 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11007 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11010 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11012 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11014 PR rtl-optimization/48156
11015 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11016 assume df and df_lr are not NULL.
11018 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11021 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11022 between a call and its CALL_ARG_LOCATION note.
11024 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11027 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11028 between a call and its corresponding CALL_ARG_LOCATION note.
11030 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11032 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11033 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11034 * haifa-sched.c (setup_ref_regs): Ditto.
11035 * caller-save.c (add_used_regs_1): Ditto.
11036 * dse.c (look_for_hardregs): Ditto.
11037 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11038 * sched-rgn.c (check_live_1): Ditto.
11040 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11042 * c-decl.c (diagnose_mismatched_decls): Give an error for
11043 redefining a typedef with variably modified type.
11045 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11047 * c-decl.c (grokfield): Don't allow typedefs for structures or
11048 unions with no tag by default.
11049 * doc/extend.texi (Unnamed Fields): Update.
11051 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11053 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11054 Rewrite using indirect functions.
11055 (lwp_slwpcb): Ditto.
11056 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11057 (avx_vinsertf128<mode>): Ditto.
11059 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11061 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11064 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11066 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11067 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11069 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11071 PR rtl-optimization/48170
11072 * gcse.c (hoist_code): Remove bogus asserts.
11074 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11076 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11077 computation for prologue/epilogue.
11079 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11081 * Makefile.in (check-consistency): Remove.
11083 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11086 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11087 arange_table_in_use is 0, but either text_section_used or
11088 cold_text_section_used is true. Don't call it if
11089 !info_section_emitted.
11091 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11093 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11094 FUNCTION_VALUE_REGNO_P): Remove.
11095 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11097 * config/avr/avr.c (avr_ret_register): Make static inline.
11098 (avr_function_value_regno_p): New function.
11099 (avr_libcall_value): Make static. Add 'func' argument.
11100 (avr_function_value): Make static. Rename 'func' argument to
11101 'fn_decl_or_type', forward it to avr_libcall_value. Call
11102 avr_ret_register function instead of RET_REGISTER macro.
11103 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11105 2011-03-18 Jason Merrill <jason@redhat.com>
11108 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11110 2011-03-18 Richard Guenther <rguenther@suse.de>
11112 * doc/install.texi (--enable-gold): Remove.
11113 (--with-plugin-ld): Document.
11114 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11116 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11118 PR middle-end/47790
11119 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11120 again after expansion changes.
11122 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11124 * combine.c (try_combine): Do simplification only call of
11125 subst() on i2 even when i1 is present. Update comments.
11127 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11129 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11130 and UNSPEC_PCREL_SYMOFF.
11132 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11134 * config/s390/s390.md: Use define_c_enum for the unspec constant
11137 2011-03-18 Richard Henderson <rth@redhat.com>
11138 Jakub Jelinek <jakub@redhat.com>
11141 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11142 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11144 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11146 PR middle-end/47725
11147 * combine.c (cant_combine_insn_p): Don't check zero/sign
11148 extended hard registers.
11150 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11152 PR middle-end/47725
11153 * combine.c (cant_combine_insn_p): Check zero/sign extended
11156 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11158 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11159 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11160 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11161 Change return type to bool.
11162 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11164 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11167 * var-tracking.c (prepare_call_arguments): If CALL target
11168 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11169 pc instead of looking it up using cselib_lookup and use
11170 Pmode for it if x has VOIDmode.
11171 * dwarf2out.c (gen_subprogram_die): If also both first and
11172 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11175 * function.c (assign_parms): For data.passed_pointer parms
11176 use MEM of data.entry_parm instead of data.entry_parm itself
11177 as DECL_INCOMING_RTL.
11178 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11179 also when passed and declared mode is the same, DECL_RTL
11180 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11183 2011-03-16 Jeff Law <law@redhat.com>
11185 PR rtl-optimization/37273
11186 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11187 handle them like argument loads from stack slots. Do not double
11188 count memory for memory constants and argument loads from stack slots.
11190 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11193 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11195 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11198 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11200 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11203 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11205 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11206 Clear call_arg_locations and call_arg_loc_last always.
11208 PR middle-end/48152
11209 * var-tracking.c (prepare_call_arguments): If argument needs to be
11210 passed by reference, adjust argtype and mode.
11212 2011-03-17 Richard Guenther <rguenther@suse.de>
11214 PR middle-end/48134
11215 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11216 a value make sure to fold the statement.
11218 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11221 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11222 return condition with !cfun->calls_alloca.
11224 2011-03-17 Richard Guenther <rguenther@suse.de>
11227 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11228 origin for decls in other ltrans units.
11229 (input_varpool_node): Likewise.
11231 2011-03-17 Richard Guenther <rguenther@suse.de>
11233 PR middle-end/48165
11234 * tree-object-size.c (compute_object_offset): Properly return
11235 the offset operand of MEM_REFs as sizetype.
11237 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11239 PR rtl-optimization/48141
11240 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11241 * dse.c: Include params.h.
11242 (active_local_stores_len): New variable.
11243 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11245 (record_store, check_mem_read_rtx): Decrease it when removing
11247 (scan_insn): Likewise. Increase it when adding to chain, if it
11248 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11249 set active_local_stores to NULL before the addition.
11250 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11252 PR rtl-optimization/48141
11253 * dse.c (record_store): If no positions are needed in an insn
11254 that cannot be deleted, at least unchain it from active_local_stores.
11256 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11259 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11260 (lookup_type_die_strip_naming_typedef): ... here.
11261 (get_context_die): Use it.
11262 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11263 the anonymous struct named by the naming typedef.
11265 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11268 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11269 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11271 2011-03-16 Jeff Law <law@redhat.com>
11273 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11274 check for operands of conditional. Allow type to be a pointer.
11276 2011-03-16 Richard Guenther <rguenther@suse.de>
11278 PR tree-optimization/48149
11279 * fold-const.c (fold_binary_loc): Fold
11280 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11282 2011-03-16 Richard Guenther <rguenther@suse.de>
11284 PR tree-optimization/26134
11285 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11286 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11287 (non_rewritable_mem_ref_base): Handle complex type component
11288 accesses, constrain offsets for vector and complex extracts
11291 2011-03-16 Richard Guenther <rguenther@suse.de>
11293 PR tree-optimization/48146
11294 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11295 operands avoiding the need for renaming.
11297 2011-03-16 Richard Guenther <rguenther@suse.de>
11299 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11300 constant folding. Move MEM_REF canonicalization first.
11301 Rely on fold_const_aggregate_ref for initializer folding.
11302 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11304 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11306 PR middle-end/48136
11307 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11308 arg0/arg1 or their arguments are always fold converted to matching
11311 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11314 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11317 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11318 Handle in-tree gold.
11319 (ld_vers): Extract binutils version for gold.
11320 (gcc_cv_ld_hidden): Handle gold here.
11321 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11322 * configure: Regenerate.
11323 * config.in: Regenerate.
11324 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11325 -fuse-linker-plugin otherwise.
11326 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11327 (LINK_COMMAND_SPEC): Use it.
11328 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11330 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11332 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11333 * calls.c: Remove debug.h include.
11334 (emit_call_1): Don't call virtual_call_token debug hook.
11335 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11336 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11337 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11338 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11339 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11340 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11341 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11342 dwarf2out_virtual_call): Remove.
11343 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11344 copy_call_info and virtual_call hooks.
11345 (dwarf2out_init): Don't initialize vcall_insn_table,
11346 debug_dcall_section and debug_vcall_section.
11347 (prune_unused_types): Don't mark nodes from dcall_table.
11348 (dwarf2out_finish): Don't output dcall or vcall tables.
11349 * final.c (final_scan_insn): Don't call direct_call or
11350 virtual_call debug hooks.
11351 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11352 virtual_call_token, copy_call_info and virtual_call hooks.
11353 (debug_nothing_uid): Remove prototype.
11354 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11355 copy_call_info and virtual_call hooks.
11356 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11357 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11358 * debug.c (do_nothing_debug_hooks): Likewise.
11359 (debug_nothing_uid): Remove.
11360 * doc/invoke.texi (-fenable-icf-debug): Remove.
11361 * common.opt (-fenable-icf-debug): Likewise.
11363 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11364 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11365 call's MEM. Handle functions returning aggregate through a hidden
11366 first pointer. For virtual calls add clobbered pc to call arguments
11368 * dwarf2out.c (gen_subprogram_die): Emit
11369 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11373 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11374 * rtl.h (ENTRY_VALUE_EXP): Define.
11375 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11376 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11377 * print-rtl.c (print_rtx): Likewise.
11378 * gengtype.c (adjust_field_rtx_def): Likewise.
11379 * var-tracking.c (vt_add_function_parameter): Adjust
11380 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11381 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11382 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11383 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11384 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11386 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11387 Call var_location debug hook even on CALL_INSNs.
11388 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11389 * rtl.def (ENTRY_VALUE): New.
11390 * dwarf2out.c: Include cfglayout.h.
11391 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11392 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11393 (struct call_arg_loc_node): New type.
11394 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11395 tail_call_site_count): New variables.
11396 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11397 DW_TAG_GNU_call_site_parameter.
11398 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11399 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11400 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11401 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11402 and DW_AT_GNU_all_source_call_sites.
11403 (mem_loc_descriptor): Handle ENTRY_VALUE.
11404 (add_src_coords_attributes): Don't add enything if
11405 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11406 (dwarf2out_abstract_function): Save and clear call_arg_location,
11407 call_site_count and tail_call_site_count around dwarf2out_decl call.
11408 (gen_call_site_die): New function.
11409 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11410 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11411 (dwarf2out_function_decl): Clear call_arg_locations,
11412 call_arg_loc_last, set call_site_count and tail_call_site_count
11413 to -1 and free block_map.
11414 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11415 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11416 followed by any real instructions.
11417 (dwarf2out_begin_function): Set call_site_count and
11418 tail_call_site_count to 0.
11419 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11420 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11421 attempt to force a DIE for it and worst case remove the attribute.
11422 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11423 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11425 * var-tracking.c: Include tm_p.h.
11426 (vt_stack_adjustments): For calls call note_register_arguments.
11427 (argument_reg_set): New variable.
11428 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11429 ensure the VALUE is resolved.
11430 (call_arguments): New variable.
11431 (prepare_call_arguments): New function.
11432 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11433 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11434 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11435 always use the best expression.
11436 (vt_expand_loc): Add ignore_cur_loc argument.
11437 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11438 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11439 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11440 note for all calls.
11441 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11442 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11443 argument. Don't call cselib_preserve_only_values and
11444 cselib_reset_table.
11445 (note_register_arguments): New function.
11446 (vt_initialize): Compute argument_reg_set. Call
11447 vt_add_function_parameters before processing basic blocks instead of
11448 afterwards. For calls call prepare_call_arguments before calling
11449 cselib_process_insn.
11450 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11451 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11452 (var-tracking.o): Depend on $(TM_P_H).
11453 * cfglayout.h (insn_scope): New prototype.
11454 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11455 * cfglayout.c (insn_scope): No longer static.
11456 * insn-notes.def (CALL_ARG_LOCATION): New.
11457 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11458 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11459 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11460 nothing for DECL_EXTERNAL BLOCK_VARS.
11462 2011-03-16 Alan Modra <amodra@gmail.com>
11465 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11466 create invalid offset address for vsx splat insn.
11467 * config/rs6000/predicates.md (splat_input_operand): New.
11468 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11470 2011-03-15 Xinliang David Li <davidxl@google.com>
11473 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11474 (normalize_preds): New function.
11475 (is_use_properly_guarded): Normalize def predicates.
11477 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11480 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11481 in the output template.
11483 2011-03-15 Richard Guenther <rguenther@suse.de>
11485 PR middle-end/47650
11486 * tree-pretty-print.c (dump_function_declaration): Properly
11487 dump unprototyped and varargs function types.
11489 2011-03-15 Richard Guenther <rguenther@suse.de>
11491 PR tree-optimization/13954
11492 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11495 2011-03-15 Richard Guenther <rguenther@suse.de>
11497 PR tree-optimization/48037
11498 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11499 selects into BIT_FIELD_REFs.
11500 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11503 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11505 PR tree-optimization/48129
11506 * builtins.c (fold_builtin_snprintf): Convert to type of
11507 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11508 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11510 2011-03-15 Richard Guenther <rguenther@suse.de>
11512 PR tree-optimization/41490
11513 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11514 value but with VUSE.
11515 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11517 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11518 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11519 * tree-tailcall.c (find_tail_calls): Ignore returns.
11521 2011-03-15 Richard Guenther <rguenther@suse.de>
11523 PR middle-end/48031
11524 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11525 or variable-indexed array accesses when in gimple form.
11527 2011-03-15 Richard Guenther <rguenther@suse.de>
11529 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11531 2011-03-15 Alan Modra <amodra@gmail.com>
11534 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11535 presume symbol_refs without a symbol_ref_decl are suitably
11536 aligned, nor other trees we may see here. Handle anchor symbols.
11537 (legitimate_constant_pool_address_p): Comment. Add mode param.
11538 Check cmodel=medium addresses. Adjust all calls.
11539 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11540 creating cmodel=medium optimized access to locals.
11541 * config/rs6000/constraints.md (R): Pass QImode to
11542 legitimate_constant_pool_address_p.
11543 * config/rs6000/predicates.md (input_operand): Pass mode to
11544 legitimate_constant_pool_address_p.
11545 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11548 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11551 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11552 64-bit constants being loaded into registers other than GPRs such
11553 as loading 0 into a VSX register.
11555 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11557 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11559 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11561 PR middle-end/47917
11562 * builtins.c (fold_builtin_snprintf): New function.
11563 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11564 (fold_builtin_4): Likewise.
11566 PR middle-end/38878
11567 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11568 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11569 and C - X == X also strip nops from +/-/p+ operand.
11570 When optimizing -X == C, fold C to arg0's type.
11573 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11574 emit it as add_AT_int instead of add_AT_unsigned.
11576 2011-03-14 Tom Tromey <tromey@redhat.com>
11578 * unwind-dw2.c: Include sys/sdt.h if it exists.
11579 (_Unwind_DebugHook): Use STAP_PROBE2.
11580 * config.in, configure: Rebuild.
11581 * configure.ac: Check for sys/sdt.h.
11583 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11585 * config/i386/i386.md (ROUND_FLOOR): New constant.
11586 (ROUND_CEIL): Ditto.
11587 (ROUND_TRUNC): Ditto.
11588 (ROUND_MXCSR): Ditto.
11589 (ROUND_NO_EXC): Ditto.
11590 (rint<mode>2): Use new defines instead of numerical constants.
11591 (floor<mode>2): Ditto.
11592 (ceil<mode>2): Ditto.
11593 (btrunc<mode>2): Ditto.
11594 * config/i386/i386-builtin-types.def: Define ROUND function type
11596 * config/i386/i386.c (enum ix86_builtins): Add
11597 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11598 (struct builtin_description): Add
11599 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11600 (ix86_expand_sse_round): New static function.
11601 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11603 (ix86_builtin_vectorized_function): Handle
11604 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11606 2011-03-14 Tom Tromey <tromey@redhat.com>
11608 * c-parser.c (c_parser_asm_string_literal): Clear
11609 warn_overlength_strings.
11611 2011-03-14 Tom Tromey <tromey@redhat.com>
11613 * c-parser.c (disable_extension_diagnostics): Save
11614 warn_overlength_strings.
11615 (restore_extension_diagnostics): Restore warn_overlength_strings.
11617 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11619 * BASE-VER: Change to 4.7.0.
11621 2011-03-14 Richard Guenther <rguenther@suse.de>
11623 PR middle-end/48098
11624 * tree.c (build_vector_from_val): Adjust assert to requirements
11627 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11630 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11632 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11634 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11635 terms of target_flags_explicit. Adjust copyright year.
11637 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11638 * config/rs6000/t-freebsd: New file. Add override for
11641 2011-03-13 Chris Demetriou <cgd@google.com>
11643 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11644 (-fno-diagnostics-show-option): this, to reflect current default.
11645 (-Werror=): Update text about -fno-diagnostics-show-option.
11647 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11650 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11651 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11652 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11653 mode is not V2DImode or V2DFmode.
11654 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11655 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11656 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11658 (movdi_internal64): Likewise.
11660 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11662 PR tree-optimization/47127
11663 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11665 (set_cloog_options): Same.
11666 (scop_to_clast): Same.
11667 (print_clast_stmt): Do not call cloog_state_malloc and
11669 (print_generated_program): Same.
11671 * graphite-clast-to-gimple.h (cloog_state): Declared.
11672 (scop_to_clast): Adjust declaration.
11673 * graphite.c (cloog_state): Defined here.
11674 (graphite_initialize): Call cloog_state_malloc.
11675 (graphite_finalize): Call cloog_state_free.
11677 2011-03-11 Jason Merrill <jason@redhat.com>
11679 * attribs.c (lookup_attribute_spec): Take const_tree.
11682 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11684 * config/sparc/sparc.c (sparc_option_override): Use
11685 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11687 2011-03-11 Richard Guenther <rguenther@suse.de>
11689 PR tree-optimization/48067
11690 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11691 multiplication result will be only used once on the target
11694 2011-03-11 Richard Guenther <rguenther@suse.de>
11696 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11698 2011-03-11 Richard Guenther <rguenther@suse.de>
11701 * tree.c (find_decls_types_r): Do not walk types only reachable
11702 from IDENTIFIER_NODEs.
11704 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11706 PR middle-end/48044
11707 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11708 all vnode->force_output nodes as needed.
11710 2011-03-11 Jason Merrill <jason@redhat.com>
11713 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11714 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11716 2011-03-11 Martin Jambor <mjambor@suse.cz>
11718 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11721 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11723 PR tree-optimization/48063
11724 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11725 inline functions called once if !tree_can_inline_p (node->callers).
11727 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11729 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11731 * config/score/score3.c: Delete.
11732 * config/score/score3.h: Delete.
11733 * config/score/mul-div.S: Delete.
11734 * config/score/sfp-machine.h: Add new file.
11735 * config/score/constraints.md: Add new file.
11736 * config/score/t-score-softfp: Add new file.
11737 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11738 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11739 (score7_extra_constraint): Delete.
11740 (score7_option_override): Remove unused code.
11741 * config/score/score.c: Remove score3 and score5 define and code.
11742 * config/score/score.h: Remove score3 and score5 define and code.
11743 * config/score/score.md: Remove score3 template and unusual insn.
11744 * config/score/score.opt: Remove score3 and score5 options.
11746 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11748 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11749 when _HPUX_SOURCE is defined.
11750 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11752 2011-03-10 Jason Merrill <jason@redhat.com>
11755 * stor-layout.c (layout_type): Don't set structural equality
11756 on arrays of incomplete type.
11757 * tree.c (type_hash_eq): Handle comparing them properly.
11759 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11762 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11763 result mode matches original rtl mode.
11765 2011-03-10 Nick Clifton <nickc@redhat.com>
11767 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11768 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11770 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11772 PR rtl-optimization/47866
11773 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11774 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11775 if target wasn't scalar.
11776 * function.c (assign_stack_temp_for_type): Assert that neither
11777 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11778 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11780 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11782 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11784 * config/s390/s390-protos.h (s390_label_align): New prototype.
11785 * config/s390/s390.c (s390_label_align): New function.
11786 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11788 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11791 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11792 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11793 (output_vec_const_move): Ditto.
11795 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11797 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11798 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11799 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11800 Change 'rclass' argument and result type to reg_class_t.
11801 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11803 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11805 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11806 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11807 (TARGET_MEMORY_MOVE_COST): Define.
11808 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11810 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11813 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11816 PR tree-optimization/48022
11817 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11820 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11823 * var-tracking.c (find_use_val): Return NULL for
11824 cui->sets && cui->store_p BLKmode MEMs.
11826 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11828 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11830 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11831 xstormy16_print_operand_address): Remove.
11832 * config/stormy16/stormy16.c (xstormy16_print_operand,
11833 xstormy16_print_operand_address): Make static.
11834 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11836 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11839 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11840 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11843 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11846 * cfgloopmanip.c (fix_bb_placements): Return immediately
11847 if FROM is BASE_LOOP's header.
11849 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11851 * gimplify.c (gimplify_function_tree): Fix building calls
11852 to __builtin_return_address.
11854 2011-03-07 Alan Modra <amodra@gmail.com>
11856 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11857 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11858 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11859 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11861 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11862 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11863 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11864 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11865 * config/rs6000/rs6000.c
11866 (rs6000_elf_end_indicate_exec_stack): Rename to..
11867 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11868 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11869 (rs6000_file_start): ..here.
11870 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11871 file scope variables.
11872 (call_ABI_of_interest): New function.
11873 (init_cumulative_args): Set above vars when function return value
11874 is a float, vector, or small struct.
11875 (rs6000_function_arg_advance_1): Likewise for function args.
11876 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11877 references float args.
11879 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11881 * doc/cfg.texi: Remove "See" before @ref.
11882 * doc/invoke.texi: Likewise.
11884 2011-03-05 Jason Merrill <jason@redhat.com>
11886 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11888 2011-03-05 Anthony Green <green@moxielogic.com>
11890 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11892 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11894 PR rtl-optimization/47899
11895 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11896 to flow_loop_nested_p when moving the loop upward.
11898 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11901 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11903 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11905 PR tree-optimization/47967
11906 * ipa-cp.c (build_const_val): Return NULL instead of creating
11907 VIEW_CONVERT_EXPR for mismatching sizes.
11908 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11909 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11910 give up on versioning.
11912 2011-03-05 Alan Modra <amodra@gmail.com>
11915 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11916 full cmodel medium/large lo_sum + high addresses.
11918 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11920 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11921 pool references in UNSPEC_LTREL_OFFSET.
11923 2011-03-04 Jan Hubicka <jh@suse.cz>
11926 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11927 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11928 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11930 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11931 cgraph_add_thunk): Add node pointers.
11932 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11933 associated to right node.
11934 (input_node): Update use of cgraph_same_body_alias
11935 and cgraph_add_thunk.
11937 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11939 * config/i386/i386.opt (mprefer-avx128): New flag.
11940 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11941 modes when the flag -mprefer-avx128 is on.
11943 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11945 * dwarf2out.c (compare_loc_operands): Fix address handling.
11947 2011-03-04 Alan Modra <amodra@gmail.com>
11949 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11951 2011-03-04 Richard Guenther <rguenther@suse.de>
11953 PR middle-end/47968
11954 * expmed.c (extract_bit_field_1): Prefer vector modes that
11955 vec_extract patterns can handle.
11957 2011-03-04 Richard Guenther <rguenther@suse.de>
11959 PR middle-end/47975
11960 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11962 2011-03-04 Richard Henderson <rth@redhat.com>
11964 * explow.c (emit_stack_save): Remove 'after' parameter.
11965 (emit_stack_restore): Likewise.
11966 * expr.h: Update to match.
11967 * builtins.c, calls.c, stmt.c: Likewise.
11968 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11969 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11970 * function.c (expand_function_end): Insert the emit_stack_save
11971 sequence before parm_birth_insn instead of after.
11973 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11975 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11976 (ssse3_pmaddubsw128): Ditto.
11977 (ssse3_pmaddubsw): Ditto.
11979 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11981 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11983 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11986 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11987 on TYPE_SIZE_UNIT if it is a DECL.
11990 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11991 first operand is not is_gimple_mem_ref_addr, try to fold it.
11992 If the operand still isn't is_gimple_mem_ref_addr, clear
11995 2011-03-03 Richard Guenther <rguenther@suse.de>
11997 PR middle-end/47283
11998 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12000 (refs_may_alias_p_1): For release branches return true if
12001 we are confused by our input.
12003 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12005 * config/s390/s390.c (s390_function_value): Rename to ...
12006 (s390_function_and_libcall_value): ... this.
12007 (s390_function_value): New function.
12008 (s390_libcall_value): New function.
12009 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12010 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12011 target macro definitions.
12012 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12014 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12016 * config/i386/freebsd64.h (CC1_SPEC): Define.
12017 * config/i386/linux64.h (CC1_SPEC): Define.
12018 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12020 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12022 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12024 * config/stormy16/stormy16.c: Include reload.h.
12025 (xstormy16_memory_move_cost): New function.
12026 (TARGET_MEMORY_MOVE_COST): Define.
12028 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12030 PR rtl-optimization/47925
12031 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12032 with side effects. Remove the more-specific check for volatile asms.
12034 2011-03-02 Alan Modra <amodra@gmail.com>
12037 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12038 toc relative addresses for valid offsets.
12040 2011-03-01 Richard Guenther <rguenther@suse.de>
12042 PR tree-optimization/47890
12043 * tree-vect-loop.c (get_initial_def_for_induction): Set
12044 related stmt properly.
12046 2011-03-01 Richard Guenther <rguenther@suse.de>
12049 * lto-streamer.c (lto_record_common_node): Also register
12050 the canonical type.
12052 2011-03-01 Richard Guenther <rguenther@suse.de>
12055 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12056 Do not stream DECL_ABSTRACT_ORIGIN.
12057 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12058 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12059 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12060 Do not stream DECL_ABSTRACT_ORIGIN.
12061 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12062 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12064 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12066 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12067 FUNCTION_VALUE_REGNO_P): Remove.
12068 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12069 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12070 Add 'outgoing' argument.
12071 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12073 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12074 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12076 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12079 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12080 (lookup_filename): Likewise.
12081 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12083 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12084 Jakub Jelinek <jakub@redhat.com>
12086 PR middle-end/47893
12087 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12088 (assign_stack_local_1): Change last argument type to int.
12089 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12090 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12091 don't record padding space into frame_space_list nor use those areas.
12092 (assign_stack_local): Adjust caller.
12093 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12094 of assign_stack_local, pass 0 as last argument.
12095 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12098 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12101 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12102 Use target address_mode and pointer_mode hooks instead of hardcoded
12103 Pmode and ptr_mode. Handle some simple cases of extending if
12104 POINTERS_EXTEND_UNSIGNED < 0.
12105 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12106 Call convert_debug_memory_address.
12107 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12108 convert_debug_memory_address.
12110 PR middle-end/46790
12111 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12112 * configure: Regenerated.
12113 * config.in: Regenerated.
12114 * varasm.c (default_function_section): Return NULL
12115 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12117 2011-02-28 Martin Jambor <mjambor@suse.cz>
12119 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12120 the description to match the printed values.
12122 2011-02-28 Richard Guenther <rguenther@suse.de>
12124 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12125 of the copied scope tree.
12127 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12129 * doc/extend.texi (Function Attributes): Avoid deeply (and
12130 wrongly) nested tables.
12132 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12134 PR middle-end/47903
12135 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12136 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12137 r isn't op0 nor op1.
12139 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12141 * config/avr/avr.md: Remove magic comment for emacs.
12143 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12146 * config/avr/avr.c (avr_option_override): Use error on bad options.
12147 (avr_help): New function.
12148 (TARGET_HELP): Define.
12150 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12153 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12154 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12156 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12158 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12159 (ARM Options): Ditto.
12160 (i386 and x86-64 Options): Ditto.
12161 (RX Options): Ditto.
12162 (SPARC Options): Ditto.
12164 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12166 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12167 FreeBSD 6 and later. Generally use cpu generic.
12169 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12171 * doc/cpp.texi: Update copyright years.
12173 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12176 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12178 2011-02-25 Jon Beniston <jon@beniston.com>
12181 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12182 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12183 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12184 (lm32_block_move_inline): Add type cast to remove warning.
12185 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12186 (gen_int_relational): Move declarations to start of function.
12188 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12190 PR tree-optimization/45470
12191 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12192 can throw internally only.
12193 * tree-vect-stmts.c (vectorizable_call): Likewise.
12195 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12197 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12198 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12199 * config/stormy16/stormy16-protos.h
12200 (xstormy16_preferred_reload_class): Remove.
12201 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12202 static. Change 'rclass' argument and return type to reg_class_t.
12203 (TARGET_PREFERRED_RELOAD_CLASS,
12204 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12206 2011-02-24 Richard Guenther <rguenther@suse.de>
12208 * lto-streamer-in.c (input_bb): Do not find referenced vars
12209 in debug statements.
12211 2011-02-23 Jason Merrill <jason@redhat.com>
12213 * common.opt (fabi-version): Document v5 and v6.
12215 2011-02-23 Richard Guenther <rguenther@suse.de>
12217 PR tree-optimization/47849
12218 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12220 2011-02-23 Jie Zhang <jie@codesourcery.com>
12222 * opts-common.c (decode_cmdline_option): Print empty string
12223 argument as "" in decoded->orig_option_with_args_text.
12224 * gcc.c (execute): Print empty string argument as ""
12225 in the verbose output.
12226 (do_spec_1): Keep empty string argument.
12228 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12230 * config.gcc: Declare score-* and crx-* obsolete.
12232 2011-02-23 Jie Zhang <jie@codesourcery.com>
12234 PR rtl-optimization/47763
12235 * web.c (web_main): Ignore naked clobber when replacing register.
12237 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12239 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12242 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12245 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12247 2011-02-22 Mike Stump <mikestump@comcast.net>
12249 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12251 * configure: Regenerate.
12253 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12255 PR rtl-optimization/46002
12256 * ira-color.c (update_copy_costs): Change class intersection
12257 test to reg_class_contents[] test of 'hard_regno'.
12259 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12261 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12262 than Driver option.
12263 * config/hpux11.opt (mt): Likewise.
12264 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12265 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12266 * config/vax/elf.opt (mno-asm-pic): Likewise.
12267 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12269 2011-02-21 Mike Stump <mikestump@comcast.net>
12272 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12273 tree so we can get save the type.
12274 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12275 for CFString instead of trying to use past the end of the builtins.
12276 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12277 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12278 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12279 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12280 Rename to darwin_builtin_cfstring.
12281 (darwin_init_cfstring_builtins): Return the built type.
12283 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12286 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12287 (_mm256_insert_epi64): Use _mm_insert_epi64.
12289 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12291 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12292 * config/stormy16/stormy16-protos.h
12293 (xstormy16_mode_dependent_address_p): Remove.
12294 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12295 Make static. Change return type to bool. Change argument type to
12296 const_rtx. Remove dead code.
12297 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12299 2011-02-21 Richard Guenther <rguenther@suse.de>
12302 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12303 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12304 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12306 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12307 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12309 2011-02-20 Richard Guenther <rguenther@suse.de>
12312 * tree.c (free_lang_data_in_decl): Clean builtins from
12313 the TU decl BLOCK_VARS.
12315 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12319 * haifa-sched.c (fix_tick_ready): Skip tick computation
12322 2011-02-19 Richard Guenther <rguenther@suse.de>
12325 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12326 Remove lazy BLOCK_VARS streaming.
12327 (lto_input_ts_block_tree_pointers): Likewise.
12328 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12330 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12332 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12334 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12336 * config/i386/biarch32.h, config/i386/mach.h,
12337 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12339 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12342 * config/i386/i386.md (peephole2 for shift and plus): Use
12343 operands[1] original mode in the first insn.
12345 2011-02-18 Mike Stump <mikestump@comcast.net>
12347 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12349 2011-02-18 Jan Hubicka <jh@suse.cz>
12351 PR middle-end/47788
12352 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12353 to zero when the function is not inlinable at all.
12355 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12357 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12358 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12359 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12360 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12361 * config/pa/t-pa64: Likewise.
12362 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12364 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12367 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12369 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12372 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12374 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12376 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12377 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12378 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12379 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12380 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12381 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12382 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12383 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12384 m32r_legitimate_address_p): New functions.
12385 * config/m32r/constraints.md (constraint "S"): Don't use
12386 STORE_PREINC_PREDEC_P.
12387 (constraint "U"): Don't use LOAD_POSTINC_P.
12389 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12391 PR rtl-optimization/46178
12392 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12393 compute ira_hard_regno_cover_class[].
12395 2011-02-18 Richard Guenther <rguenther@suse.de>
12398 * lto-streamer.h (lto_global_var_decls): Declare.
12399 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12400 statics for global var processing.
12402 2011-02-18 Richard Guenther <rguenther@suse.de>
12404 PR tree-optimization/47737
12405 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12406 edge dominance check.
12408 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12411 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12412 avoid invalid rtx sharing.
12414 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12416 * doc/cpp.texi (Obsolete Features): Add background on the
12417 origin of assertions.
12419 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12421 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12423 * config/darwin.c (output_objc_section_asm_op): Added support for
12425 (is_objc_metadata): New.
12426 (darwin_objc2_section): New.
12427 (darwin_objc1_section): New.
12428 (machopic_select_section): Added support for ABI v1 and v2.
12429 (darwin_emit_objc_zeroed): New.
12430 (darwin_output_aligned_bss): Detect objc metadata and treat it
12432 (darwin_asm_output_aligned_decl_common): Same.
12433 (darwin_asm_output_aligned_decl_local): Same.
12434 * config/darwin-sections.def: Updated for ABI v1 and v2.
12435 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12436 compiling Objective-C code for the NeXT runtime, default to using
12437 ABI version 0 for 32-bit, and version 2 for 64-bit.
12439 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12441 * common.opt (optimize_fast): New Variable.
12442 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12443 instead of local variable ofast.
12445 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12447 * doc/invoke.texi (fobjc-abi-version): Documented.
12448 (fobjc-nilcheck): Documented.
12449 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12452 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12455 * common.opt (export-dynamic): New Driver option.
12456 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12458 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12460 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12462 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12463 Jan Hubicka <jh@suse.cz>
12467 * cfgexpand.c (account_used_vars_for_block): Remove.
12468 (estimated_stack_frame_size): Use referenced vars.
12469 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12470 that were referenced in the original function. Test src_fn
12471 rather than cfun. Drop redundant get_var_ann.
12472 (setup_one_parameter): Drop redundant get_var_ann.
12473 (declare_return_variable): Likewise.
12474 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12475 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12476 * ipa-inline.c (compute_inline_parameters): Do not compute
12477 disregard_inline_limits here.
12478 (compute_inlinable_for_current, pass_inlinable): New.
12479 (pass_inline_parameters): Require PROP_referenced_vars.
12480 * cgraphunit.c (cgraph_process_new_functions): Don't run
12481 compute_inline_parameters explicitly unless function is in SSA form.
12482 (cgraph_analyze_function): Set .disregard_inline_limits.
12483 * tree-sra.c (convert_callers): Compute inliner parameters
12484 only for functions already in SSA form.
12486 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12488 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12489 -mlittle-endian-data.
12491 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12493 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12494 -mno-fpu, not -fpu and -no-fpu.
12495 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12496 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12498 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12501 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12502 input reload with PLUS RTX.
12504 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12506 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12507 of InverseVar(MDMX).
12509 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12511 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12514 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12516 * config/mn10300/mn10300.opt (mno-crt0): New.
12518 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12520 * config/m68k/uclinux.opt (static-libc): New Driver option.
12522 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12524 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12526 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12528 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12529 %{muser-extend-enabled}.
12531 2011-02-16 Richard Guenther <rguenther@suse.de>
12533 PR tree-optimization/47738
12534 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12535 the TODO from tree_predictive_commoning.
12537 2011-02-15 Jeff Law <law@redhat.com>
12540 2011-01-25 Jeff Law <law@redhat.com>
12542 PR rtl-optimization/37273
12543 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12544 handle them like argument loads from stack slots. Do not double
12545 count memory for memory constants and argument loads from stack slots.
12547 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12549 PR middle-end/47725
12550 * combine.c (cant_combine_insn_p): Revert the last change.
12552 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12555 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12556 mode for vector constants. Remove code that checks for TImode.
12558 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12562 * cgraph.h (compute_inline_parameters): Return void.
12563 * ipa-inline.c (compute_inline_parameters): Adjust.
12565 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12569 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12571 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12572 * ipa-inline.c (compute_inline_parameters): Adjust.
12574 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12578 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12579 Adjust all users. Pass FN to...
12580 * tree-flow-inline.h (first_referenced_var): ... this. Add
12582 * ipa-struct-reorg.c: Adjust.
12583 * tree-dfa.c: Adjust.
12584 * tree-into-ssa.c: Adjust.
12585 * tree-sra.c: Adjust.
12586 * tree-ssa-alias.c: Adjust.
12587 * tree-ssa-live.c: Adjust.
12588 * tree-ssa.c: Adjust.
12589 * tree-ssanames.c: Adjust.
12590 * tree-tailcall.c: Adjust.
12592 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12596 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12597 Adjust all callers.
12598 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12599 * tree-flow-inline.h: Adjust.
12600 * gimple-pretty-print.c: Adjust.
12601 * tree-into-ssa.c: Adjust.
12602 * tree-ssa.c: Adjust.
12603 * cfgexpand.c: Adjust.
12605 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12607 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12608 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12609 (EXTRA_CONSTRAINT): Delete.
12610 * config/iq2000/constraints.md: New file.
12611 * config/iq2000/iq2000.md: Include it.
12612 (define_insn ""): Delete.
12613 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12614 unsupported constraint letters from patterns.
12615 (call_value, call_value_internal1): Likewise.
12616 (call_value_multiple_internal1): Likewise.
12618 2011-02-15 Nick Clifton <nickc@redhat.com>
12620 * config/mn10300/mn10300.c: Include tm-constrs.h.
12621 (struct liw_data): New data structure describing an LIW candidate
12623 (extract_bundle): Use struct liw_data. Allow small integer
12624 operands for some instructions.
12625 (check_liw_constraints): Use struct liw_data. Remove swapped
12626 parameter. Add comments describing the checks. Fix bug when
12627 assigning the source of liw1 to the source of liw2.
12628 (liw_candidate): Delete. Code moved into extract_bundle.
12629 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12631 * config/mn10300/predicates.md (liw_operand): New predicate.
12632 Allows registers and small integer constants.
12633 * config/mn10300/constraints.md (O): New constraint. Accetps
12634 integers in the range -8 to +7 inclusive.
12635 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12636 for moving a small integer into a register. Give this alternative
12638 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12639 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12640 using the J,K,L and M constraints,
12641 (liw): Remove SI mode on second operands to allow for HI and QI
12643 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12646 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12648 PR middle-end/47725
12649 * combine.c (cant_combine_insn_p): Check zero/sign extended
12652 2011-02-15 Richard Guenther <rguenther@suse.de>
12654 PR tree-optimization/47743
12655 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12656 for a non-type-compatible VN lookup bail out.
12658 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12660 * config/fr30/constraints.md: New file.
12661 * config/fr30/fr30.md: Include it.
12662 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12663 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12664 (EXTRA_CONSTRAINT): Delete.
12666 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12668 * config/frv/constraints.md: New file.
12669 * config/frv/predicates.md: Include it.
12670 * config/frv/frv.c (reg_class_from_letter): Delete.
12671 (frv_option_override): Don't initialize it.
12672 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12673 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12674 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12675 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12676 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12677 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12678 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12679 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12680 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12681 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12682 (REG_CLASS_FROM_CONSTRAINT): Delete.
12684 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12686 PR middle-end/47581
12687 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12688 if frame size is 0 in a leaf function.
12690 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12693 * config/alpha/host-osf.c: New file.
12694 * config/alpha/x-osf: New file.
12695 * config.host (alpha*-dec-osf*): Use it.
12697 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12699 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12700 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12701 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12702 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12704 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12706 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12708 * config/stormy16/constraints.md: New file.
12709 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12710 Use satisfies_constraint_Q and satisfies_constraint_R.
12711 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12713 (xstormy16_legitiamte_address_p): Declare.
12714 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12715 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12716 (EXTRA_CONSTRAINT): Delete.
12717 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12719 (xstormy16_extra_constraint_p): Delete.
12721 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12723 PR tree-optimization/46494
12724 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12725 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12726 (pass_rtl_loop_done): Add TODO_verify_flow.
12727 * fwprop.c (pass_rtl_fwprop): Likewise.
12728 * modulo-sched.c (pass_sms): Likewise.
12729 * tree-ssa-dom.c (pass_dominator): Likewise.
12730 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12731 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12732 (pass_tree_loop_done): Likewise.
12733 * tree-ssa-pre.c (execute_pre): Likewise.
12734 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12735 * tree-ssa-sink.c (pass_sink_code): Likewise.
12736 * tree-vrp.c (pass_vrp): Likewise.
12738 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12740 * config/v850/constraints.md: New file.
12741 * config/v850/v850.md: Include it.
12742 * config/v850/predicates.md (reg_or_0_operand): Use
12743 satisfies_constraint_G.
12744 (special_symbolref_operand): Use satisfies_constraint_K.
12745 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12746 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12747 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12748 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12749 (EXTRA_CONSTRAINT): Delete.
12750 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12751 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12752 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12754 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12757 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12760 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12762 * config/mcore/constraints.md: New file.
12763 * config/mcore/mcore.md: Include it.
12764 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12765 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12766 (REG_CLASS_FROM_LETTER): Delete.
12767 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12768 insn_const_int_ok_for_constraint.
12769 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12770 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12771 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12772 (EXTRA_CONSTRAINT): Delete.
12774 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12777 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12778 (IS_SIGHANDLER): Define.
12779 (sparc64_is_sighandler): New function, split off from
12780 sparc64_fallback_frame_state.
12781 (sparc_is_sighandler): New function, split off from
12782 sparc_fallback_frame_state.
12783 (sparc64_fallback_frame_state): Merge with ...
12784 (sparc_fallback_frame_state): ... this into ...
12785 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12786 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12787 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12788 stack instead of hardcoded offsets.
12790 2011-02-14 Andriy Gapon <avg@freebsd.org>
12793 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12795 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12797 * configure: Regenerate.
12799 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12802 * gcc.c (asm_options): Correct spec matching --target-help.
12804 2011-02-12 Martin Jambor <mjambor@suse.cz>
12806 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12807 to gimple call error.
12809 2011-02-12 Mike Stump <mikestump@comcast.net>
12811 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12812 comments in backslash regions.
12814 2011-02-12 Mike Stump <mikestump@comcast.net>
12815 Jakub Jelinek <jakub@redhat.com>
12816 Iain Sandoe <iains@gcc.gnu.org>
12819 * dwarf2out.c (output_cfa_loc): When required, apply the
12820 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12821 (output_loc_sequence): Likewise.
12822 (output_loc_operands_raw): Likewise.
12823 (output_loc_sequence_raw): Likewise.
12824 (output_cfa_loc): Likewise.
12825 (output_loc_list): Suppress register number adjustment when
12826 calling output_loc_sequence()
12827 (output_die): Likewise.
12829 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12831 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12833 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12834 xtensa_memory_move_cost): New functions.
12835 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12837 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12840 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12841 in the current directory.
12842 * configure: Rebuilt.
12844 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12846 * config/darwin.c (darwin_override_options): Add a hunk missed
12847 from the commit of r168571. Trim comment line lengths and
12848 correct indents of the preceding block.
12850 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12852 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12855 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12857 * common.opt (nostartfiles): New Driver option.
12859 2011-02-11 Xinliang David Li <davidxl@google.com>
12861 PR tree-optimization/47707
12862 * tree-chrec.c (convert_affine_scev): Keep type precision.
12864 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12866 PR tree-optimization/47420
12867 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12869 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12871 PR rtl-optimization/47614
12872 * rtl.h (check_for_inc_dec): Declare.
12873 * dse.c (check_for_inc_dec): Externalize...
12874 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12875 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12877 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12880 * gcc.c (main): Do not compile inputs if there were errors in
12882 * opts-common.c (read_cmdline_option): Check for wrong language
12883 after other error checks.
12885 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12887 * cgraph.c: Fix comment typos.
12888 * cgraph.h: Likewise.
12889 * cgraphunit.c: Likewise.
12890 * ipa-cp.c: Likewise.
12891 * ipa-inline.c: Likewise.
12892 * ipa-prop.c: Likewise.
12893 * ipa-pure-const.c: Likewise.
12894 * ipa-ref.c: Likewise.
12895 * ipa-reference.c: Likewise.
12897 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12900 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12902 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12905 * doc/sourcebuild.texi (Require Support): Document
12906 dg-require-ascii-locale.
12908 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12910 * doc/lto.texi (Write summary): Fix missing parentheses.
12912 2011-02-10 DJ Delorie <dj@redhat.com>
12914 * config/m32c/m32c.c (m32c_option_override): Disable
12915 -fcombine-stack-adjustments until flag value tracking and compare
12916 optimization can be rewritten.
12918 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12920 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12922 (PROCESSOR_DEFAULT64): Likewise.
12924 2011-02-10 Richard Henderson <rth@redhat.com>
12926 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12927 change from 2011-02-03.
12928 * config/rx/rx.c (flags_from_code): Likewise.
12929 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12930 is valid, n/pz otherwise.
12931 (rx_select_cc_mode): Return CCmode if Y is not zero.
12933 2011-02-10 Richard Guenther <rguenther@suse.de>
12935 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12937 2011-02-10 Richard Guenther <rguenther@suse.de>
12939 PR tree-optimization/47677
12940 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12942 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12945 * combine.c (make_compound_operation): Only change shifts into
12946 multiplication for SCALAR_INT_MODE_P.
12948 2011-02-10 Jie Zhang <jie@codesourcery.com>
12952 2011-02-05 Jie Zhang <jie@codesourcery.com>
12954 * web.c (entry_register): Don't clobber the number of the
12955 first uninitialized reference in used[].
12957 2011-02-09 Richard Guenther <rguenther@suse.de>
12959 PR tree-optimization/47664
12960 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12963 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12967 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12969 (PROCESSOR_DEFAULT64): Same.
12970 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12972 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12974 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12976 2011-02-09 Martin Jambor <mjambor@suse.cz>
12978 PR middle-end/45505
12979 * tree-sra.c (struct access): New flags grp_scalar_read and
12980 grp_scalar_write. Changed description of assignment read and write
12982 (dump_access): Dump new flags, reorder all of them.
12983 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12984 to detect multiple scalar reads.
12985 (analyze_access_subtree): Use the new scalar read write flags instead
12986 of the old flags. Adjusted comments.
12988 2011-02-08 DJ Delorie <dj@redhat.com>
12991 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12994 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12996 * config/m68k/uclinux.opt: New.
12997 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12999 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13001 * config/cris/elf.opt (sim): New Driver option.
13003 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13005 * config/xtensa/elf.opt: New.
13006 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13008 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13010 * config/vax/elf.opt: New.
13011 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13013 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13015 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13017 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13019 * config/gnu-user.opt: New.
13020 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13021 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13022 *-*-uclinux*): Use gnu-user.opt.
13024 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13026 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13027 * config/i386/gnu.h (CPP_SPEC): Likewise.
13029 2011-02-08 Ian Lance Taylor <iant@google.com>
13031 * common.opt (fcx-limited-range): Add SetByCombined flag.
13032 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13033 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13034 (fassociative-math, freciprocal-math): Likewise.
13035 (funsafe-math-optimizations): Likewise.
13036 * opth-gen.awk: Handle SetByCombined.
13037 * optc-gen.awk: Likewise.
13038 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13039 (set_unsafe_math_optimizations_flags): Likewise.
13040 * doc/options.texi (Option properties): Document SetByCombined.
13042 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13044 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13045 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13046 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13047 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13048 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13050 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13052 PR tree-optimization/46834
13053 PR tree-optimization/46994
13054 PR tree-optimization/46995
13055 * graphite-sese-to-poly.c (used_outside_reduction): New.
13056 (detect_commutative_reduction): Call used_outside_reduction.
13057 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13058 translate_scalar_reduction_to_array only when at least one
13059 loop-phi/close-phi tuple has been detected.
13061 2011-02-08 Richard Guenther <rguenther@suse.de>
13063 PR middle-end/47639
13064 * tree-vect-generic.c (expand_vector_operations_1): Update
13066 (expand_vector_operations): ... not here. Cleanup EH info
13067 and the CFG if required.
13069 2011-02-08 Richard Guenther <rguenther@suse.de>
13071 PR tree-optimization/47641
13072 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13073 require type compatibility.
13075 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13077 * gimple-low.c (lower_function_body): Don't remove the location of
13078 the return statement here.
13079 (lower_gimple_return): Do it here instead but only if the return
13080 statement is actually used twice.
13082 2011-02-08 Richard Guenther <rguenther@suse.de>
13084 PR tree-optimization/47632
13085 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13086 unused up_to_stmt parameter, return whether cfg-cleanup is
13087 necessary, remove EH info properly.
13088 (forward_propagate_into_gimple_cond): Adjust caller.
13089 (forward_propagate_into_cond): Likewise.
13090 (forward_propagate_comparison): Likewise.
13091 (tree_ssa_forward_propagate_single_use_vars): Make
13092 forward_propagate_comparison case similar to the two others.
13094 2011-02-08 Nick Clifton <nickc@redhat.com>
13096 * config/mn10300/mn10300.opt (mliw): New command line option.
13097 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13098 (liw_bundling): New automaton.
13099 (liw): New attribute.
13100 (liw_op): New attribute.
13101 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13102 (movsi_internal): Add LIW attributes.
13103 (andsi3): Likewise.
13104 (iorsi3): Likewise.
13105 (xorsi3): Likewise.
13106 (addsi3): Separate register and immediate alternatives.
13107 Add LIW attributes.
13108 (subsi3): Likewise.
13110 (aslsi3): Likewise.
13111 (lshrsi3): Likewise.
13112 (ashrsi3): Likewise.
13113 (liw): New pattern.
13114 * config/mn10300/mn10300.c (liw_op_names): New
13115 (mn10300_print_operand): Handle 'W' operand descriptor.
13116 (extract_bundle): New function.
13117 (check_liw_constraints): New function.
13118 (liw_candidate): New function.
13119 (mn10300_bundle_liw): New function.
13120 (mn10300_reorg): New function.
13121 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13122 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13123 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13124 __LIW__ or __NO_LIW__.
13125 * doc/invoke.texi: Describe the -mliw command line option.
13127 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13129 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13130 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13131 pthread_mutex_unlock): Remove.
13132 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13133 * config/pa/t-pa64: Likewise.
13134 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13135 shared libc if not linking against libpthread.
13136 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13138 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13141 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13142 on 10.6 and later to ensure that we always use the unwinder from
13143 the system. Only add -no_compact_unwind when tarteting darwin
13146 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13149 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13150 (vec_interleave_lowv2sf): Ditto.
13151 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13152 (vec_extract_oddv2sf): Ditto.
13154 2011-02-07 Mike Stump <mikestump@comcast.net>
13157 Add __ieee_divdc3 entry point.
13158 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13160 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13161 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13162 * config/darwin.c (darwin_rename_builtins): Add.
13163 * config/darwin-protos.h (darwin_rename_builtins): Add.
13165 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13168 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13171 2011-02-07 Mike Stump <mikestump@comcast.net>
13173 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13175 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13178 * config/avr/libgcc.S (exit): Move .endfunc
13180 2011-02-07 Richard Guenther <rguenther@suse.de>
13182 PR tree-optimization/47615
13183 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13184 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13185 (run_scc_vn): Initialize it.
13186 (visit_reference_op_load): Use it.
13187 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13189 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13191 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13192 DImode trapping arithmetic libfuncs.
13194 2011-02-07 Richard Guenther <rguenther@suse.de>
13196 PR tree-optimization/47621
13197 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13199 (execute_update_addresses_taken): ... here. Make it more
13200 conservative in what we accept.
13202 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13204 * config/sparc/freebsd.h (ASM_SPEC): Define.
13205 * config/sparc/vxworks.h (ASM_SPEC): Define.
13207 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13209 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13211 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13213 * doc/invoke.texi: Remove reference to compiler internals from
13214 user documentation.
13216 * reg-notes.def: Remove REG_VALUE_PROFILE.
13217 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13219 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13221 PR middle-end/47610
13222 * varasm.c (default_section_type_flags): If decl is NULL,
13223 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13225 2011-02-05 Jie Zhang <jie@codesourcery.com>
13228 * web.c (entry_register): Don't clobber the number of the
13229 first uninitialized reference in used[].
13231 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13233 PR tree-optimization/46194
13234 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13235 (build_classic_dist_vector_1): Do not represent classic distance
13236 vectors when the access functions are variating in different loops.
13238 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13240 * config/mips/iris6.opt: New.
13241 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13243 2011-02-04 Richard Henderson <rth@redhat.com>
13244 Steve Ellcey <sje@cup.hp.com>
13247 * config/ia64/predicates.md (mux1_brcst_element): New.
13248 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13249 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13250 (ia64_unpack_sign): New.
13251 (ia64_expand_unpack): Rewrite using new routines.
13252 (ia64_expand_widen_sum): Ditto.
13253 (ia64_expand_dot_prod_v8qi): Ditto.
13254 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13255 routines, add endian check.
13256 (pmpy2_even): Rename from pmpy2_r, add endian check.
13257 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13258 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13259 (vec_widen_smult_hi_v4hi): Ditto.
13260 (vec_widen_umult_lo_v4hi): Ditto.
13261 (vec_widen_umult_hi_v4hi): Ditto.
13262 (mulv2si3): Change endian checks.
13263 (sdot_prodv4hi): Rewrite with new calls.
13264 (udot_prodv4hi): New.
13265 (vec_pack_ssat_v4hi): Add endian check.
13266 (vec_pack_usat_v4hi): Ditto.
13267 (vec_pack_ssat_v2si): Ditto.
13268 (max1_even): Rename from max1_r, add endian check.
13269 (max1_odd): Rename from max1_l, add endian check.
13270 (*mux1_rev): Format change.
13271 (*mux1_mix): Ditto.
13272 (*mux1_shuf): Ditto.
13273 (*mux1_alt): Ditto.
13274 (*mux1_brcst_v8qi): Use new predicate.
13275 (vec_extract_evenv8qi): Remove endian check.
13276 (vec_extract_oddv8qi): Ditto.
13277 (vec_interleave_lowv4hi): Format change.
13278 (vec_interleave_highv4hi): Ditto.
13279 (mix2_even): Rename from mix2_r, add endian check.
13280 (mix2_odd): Rename from mux2_l, add endian check.
13281 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13282 (vec_extract_evenodd_helper): Format change.
13283 (vec_extract_evenv4hi): Remove endian check.
13284 (vec_extract_oddv4hi): Remove endian check.
13285 (vec_interleave_lowv2si): Format change.
13286 (vec_interleave_highv2si): Format change.
13287 (vec_initv2si): Remove endian check.
13288 (vecinit_v2si): Add endian check.
13289 (reduc_splus_v2sf): Add endian check.
13290 (reduc_smax_v2sf): Ditto.
13291 (reduc_smin_v2sf): Ditto.
13292 (vec_initv2sf): Remove endian check.
13293 (fpack): Add endian check.
13294 (fswap): Add endian check.
13295 (vec_interleave_highv2sf): Add endian check.
13296 (vec_interleave_lowv2sf): Add endian check.
13297 (fmix_lr): Add endian check.
13298 (vec_setv2sf): Format change.
13299 (*vec_extractv2sf_0_be): Use shift to extract operand.
13300 (*vec_extractv2sf_1_be): New.
13301 (vec_pack_trunc_v4hi): Add endian check.
13302 (vec_pack_trunc_v2si): Format change.
13304 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13306 PR inline-asm/23200
13307 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13308 do bb, locus and block comparison and disallow loads if it is not set.
13309 (stmt_is_replaceable_p): New function.
13310 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13312 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13313 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13315 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13317 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13319 * config/rs6000/xilinx.opt: New.
13320 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13322 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13324 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13326 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13328 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13329 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13330 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13331 secondary_reload_info, xtensa_secondary_reload): Remove.
13332 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13333 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13334 (xtensa_preferred_reload_class): Make static. Change return and
13335 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13336 Use CONST_DOUBLE_P predicate.
13337 (xtensa_preferred_output_reload_class): New function.
13338 (xtensa_secondary_reload): Make static.
13340 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13342 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13343 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13344 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13346 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13348 PR middle-end/31490
13349 * output.h (SECTION_RELRO): Define.
13350 (SECTION_MACH_DEP): Adjust.
13351 (get_variable_section): New prototype.
13352 * varpool.c (varpool_finalize_named_section_flags): New function.
13353 (varpool_assemble_pending_decls): Call it.
13354 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13355 * cgraphunit.c (cgraph_output_in_order): Call
13356 varpool_finalize_named_section_flags.
13357 * varasm.c (get_section): Allow section flags conflicts between
13358 relro and read-only sections if the section hasn't been declared yet.
13359 Set SECTION_OVERRIDE after diagnosing section type conflict.
13360 (get_variable_section): No longer static.
13361 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13362 readonly sections that need relocations.
13363 (decl_readonly_section_1): New function.
13364 (decl_readonly_section): Use it.
13367 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13368 Steve Ellcey <sje@cup.hp.com>
13370 PR middle-end/31490
13371 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13372 if section attribute used.
13374 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13376 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13377 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13378 (darwin_init_sections): Remove assertion.
13380 2011-02-03 Nick Clifton <nickc@redhat.com>
13382 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13384 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13385 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13386 instead of "n" and "pz".
13387 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13390 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13393 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13394 fma, expand FMA_EXPR as fma{,f,l} call.
13397 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13398 copy them into a unsigned char variable and pass address of it to
13399 lto_output_data_stream.
13402 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13403 around backend_init_target and lang_dependent_init_target calls.
13404 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13405 (verify_cgraph_node): Don't call set_cfun here. Use
13406 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13407 Set error_found for incorrectly represented calls to thunks.
13409 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13412 PR rtl-optimization/43494
13413 * rtl.h (for_each_inc_dec_fn): New type.
13414 (for_each_inc_dec): Declare.
13415 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13416 (for_each_inc_dec_find_inc_dec): New fn.
13417 (for_each_inc_dec_find_mem): New fn.
13418 (for_each_inc_dec): New fn.
13419 * dse.c (struct insn_size): Remove.
13420 (replace_inc_dec, replace_inc_dec_mem): Remove.
13421 (emit_inc_dec_insn_before): New fn.
13422 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13423 (canon_address): Pass mem modes to cselib_lookup.
13424 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13425 (cselib_lookup_from_insn): Likewise.
13426 (cselib_subst_to_values): Likewise.
13427 * cselib.c (find_slot_memmode): New var.
13428 (cselib_find_slot): New fn. Use it instead of
13429 htab_find_slot_with_hash everywhere.
13430 (entry_and_rtx_equal_p): Use find_slot_memmode.
13431 (autoinc_split): New fn.
13432 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13433 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13434 Deal with autoinc. Special-case recursion into MEMs.
13435 (cselib_hash_rtx): Likewise.
13436 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13437 address and MEM modes.
13438 (cselib_subst_to_values): Add memmode, pass it on.
13440 (cselib_lookup): Add memmode argument, pass it on.
13441 (cselib_lookup_from_insn): Add memmode.
13442 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13443 (struct cselib_record_autoinc_data): New.
13444 (cselib_record_autoinc_cb): New fn.
13445 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13446 mode to cselib_lookup. Reset autoinced REGs here instead of...
13447 (cselib_process_insn): ... here.
13448 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13450 (add_uses): Likewise, also to cselib_subst_to_values.
13451 (add_stores): Likewise.
13452 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13453 cselib_subst_to_values.
13454 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13455 * gcse.c (do_local_cprop): Adjusted.
13456 * postreload.c (reload_cse_simplify_set): Adjusted.
13457 (reload_cse_simplify_operands): Adjusted.
13458 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13460 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13462 PR tree-optimization/45122
13463 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13464 unsafe assumptions when there's more than one loop exit.
13466 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13469 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13470 Document using vector double with the load/store builtins, and
13471 that the load/store builtins always use Altivec instructions.
13473 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13474 to use altivec memory instructions, even on VSX.
13475 (vector_altivec_store_<mode>): Ditto.
13477 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13480 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13481 V2DF, V2DI support to load/store overloaded builtins.
13483 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13484 altivec load/store builtins for V2DF/V2DI types.
13486 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13487 set avoid indexed addresses on power6 if -maltivec.
13488 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13489 vector_altivec_load/vector_altivec_store builtins.
13490 (altivec_expand_st_builtin): Ditto.
13491 (altivec_expand_builtin): Add VSX memory builtins.
13492 (rs6000_init_builtins): Add V2DI types to internal types.
13493 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13494 load/store builtins.
13495 (rs6000_address_for_altivec): Insure memory address is appropriate
13498 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13499 vec_vsx_ld and vec_vsx_st.
13500 (vsx_store_<mode>): Ditto.
13502 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13503 variables to hold long long types for VSX vector memory builtins.
13504 (RS6000_BTI_unsigned_long_long): Ditto.
13505 (long_long_integer_type_internal_node): Ditti.
13506 (long_long_unsigned_type_internal_node): Ditti.
13508 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13509 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13510 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13512 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13514 (vec_vsx_st): Ditto.
13516 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13518 * config/pa/pa-hpux10.opt: New.
13519 * config/hpux11.opt (pthread): New Driver option.
13520 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13521 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13523 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13525 * config/ia64/vms.opt: New.
13526 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13528 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13531 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13532 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13533 generator functions.
13534 (vsx_floatuns<VSi><mode>2): Ditto.
13535 (vsx_fix_trunc<mode><VSi>2): Ditto.
13536 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13538 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13540 * config/i386/djgpp.opt (posix): New Driver option.
13542 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13544 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13545 Move to the unsupported targets list.
13547 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13549 PR rtl-optimization/47525
13550 * df-scan.c: Update copyright years.
13551 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13552 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13554 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13556 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13557 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13558 (ASM_OUTPUT_ASCII): Remove.
13559 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13561 2011-02-02 Jeff Law <law@redhat.com>
13563 PR middle-end/47543
13564 * reload.c (find_reloads_address): Handle reg+d address where both
13565 components are invalid by reloading the entire address.
13567 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13568 Richard Guenther <rguenther@suse.de>
13570 PR tree-optimization/40979
13572 * passes.c (init_optimization_passes): After LIM call copy_prop
13573 and DCE to clean up.
13574 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13576 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13578 PR tree-optimization/47576
13579 PR tree-optimization/47555
13580 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13581 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13582 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13583 * tree-scalar-evolution.c (follow_ssa_edge): Use
13584 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13586 2011-02-02 Richard Guenther <rguenther@suse.de>
13588 PR tree-optimization/47566
13589 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13591 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13595 * tree-inline.c (declare_return_variable): Remove unused caller
13600 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13601 * cfgexpand.c (account_used_vars_for_block): Use them.
13602 * tree-nrv.c (tree_nrv): Likewise.
13603 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13604 (dump_scope_block): Likewise.
13605 (remove_unused_locals): Likewise.
13609 * tree-inline.c (declare_return_variable): Add result decl to
13610 local decls only once.
13611 * gimple-low.c (record_vars_into): Mark newly-created variables
13614 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13620 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13622 (no_real_insns_p, schedule_block, set_priorities): Drop special
13623 treatment of boundary debug insns.
13624 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13625 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13626 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13627 (BOUNDARY_DEBUG_INSN_P): Likewise.
13628 (SCHEDULE_DEBUG_INSN_P): Likewise.
13629 * sched-rgn.c (init_ready_list): Drop special treatment of
13630 boundary debug insns.
13631 * final.c (rest_of_clean_state): Clear notes' BB.
13633 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13635 * config/openbsd.opt (assert=): New Driver option.
13637 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13639 * config/i386/nto.opt: New.
13640 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13642 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13644 * config/i386/netware.opt: New.
13645 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13647 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13649 * config/interix.opt (posix): New Driver option.
13651 2011-02-01 DJ Delorie <dj@redhat.com>
13653 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13655 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13658 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13660 PR tree-optimization/47561
13661 * toplev.c (process_options): Print the Graphite flags. Add
13662 flag_loop_flatten to the list of options requiring Graphite.
13664 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13666 * config/i386/cygming.opt (posix): New Driver option.
13668 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13670 * config/arm/vxworks.opt: New.
13671 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13673 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13675 * config/alpha/elf.opt: New.
13676 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13677 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13679 2011-02-01 Richard Guenther <rguenther@suse.de>
13681 PR tree-optimization/47559
13682 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13683 store-motion on references that can throw.
13685 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13687 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13688 * tree-pass.h (TDF_CSELIB): New macro.
13689 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13690 cselib_lookup): Check for it rather than for TDF_DETAILS.
13692 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13695 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13696 is HOST_BIT_BUCKET.
13698 * opts.c (finish_options): Don't add x_aux_base_name if it is
13701 2011-02-01 Richard Guenther <rguenther@suse.de>
13703 PR tree-optimization/47555
13705 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13707 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13709 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13712 * config/lm32/t-lm32: Add multilib for all CPU options.
13714 2011-02-01 Richard Guenther <rguenther@suse.de>
13716 PR tree-optimization/47541
13717 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13718 sure to have a field at offset zero.
13720 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13722 * config/arc/arc.opt (EB, EL): New Driver options.
13724 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13726 * config/alpha/osf5.opt: New.
13727 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13729 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13731 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13733 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13735 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13736 -floop-interchange.
13737 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13738 is an alias of -floop-interchange and that it requires the
13739 Graphite infrastructure.
13740 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13741 flag_loop_interchange based on the value of flag_tree_loop_linear.
13743 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13744 Richard Guenther <rguenther@suse.de>
13746 PR tree-optimization/47538
13747 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13748 type instead of r1type, except for comparisons. For right
13749 shifts and comparisons punt if there are mismatches in
13750 sizetype vs. non-sizetype types.
13752 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13754 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13757 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13759 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13761 * configure: Regenerate.
13763 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13765 * configure.ac (gcc_cv_ld_static_option): Define.
13766 (gcc_cv_ld_dynamic_option): Define.
13767 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13769 (HAVE_LD_STATIC_DYNAMIC): Update message.
13770 (LD_STATIC_OPTION): Define.
13771 (LD_DYNAMIC_OPTION): Define.
13772 * configure: Regenerate.
13773 * config.in: Regenerate.
13774 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13775 HAVE_LD_STATIC_DYNAMIC]: Use them.
13777 2011-01-31 Nick Clifton <nickc@redhat.com>
13779 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13780 registers inside interrupt handlers if the handler is not a leaf
13783 2011-01-31 Nick Clifton <nickc@redhat.com>
13785 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13786 reg_renumber returning an INVALID_REGNUM.
13788 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13791 * doc/install.texi: Document host options discarded when cross
13792 configuring target libraries.
13794 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13797 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13800 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13802 (no_real_insns_p, schedule_block, set_priorities): Drop special
13803 treatment of boundary debug insns.
13804 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13805 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13806 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13807 (BOUNDARY_DEBUG_INSN_P): Likewise.
13808 (SCHEDULE_DEBUG_INSN_P): Likewise.
13809 * sched-rgn.c (init_ready_list): Drop special treatment of
13810 boundary debug insns.
13811 * final.c (rest_of_clean-state): Clear notes' BB.
13813 2011-01-31 Alan Modra <amodra@gmail.com>
13815 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13816 toc relative expressions as we do in print_operand_address.
13818 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13820 * doc/extend.texi: Follow spelling conventions.
13821 * doc/invoke.texi: Fix a typo.
13823 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13825 * config/hpux11.opt: New.
13826 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13827 ia64*-*-hpux*): Use hpux11.opt.
13829 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13831 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13834 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13836 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13839 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13841 * doc/install.texi (Binaries): Remove outdated reference for
13842 Motorola 68HC11/68HC12 downloads.
13844 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13846 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13849 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13852 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13855 2011-01-28 Ahmad Sharif <asharif@google.com>
13857 * value-prof.c (check_counter): Corrected error message.
13859 2011-01-29 Jie Zhang <jie@codesourcery.com>
13861 * config/arm/arm.c (arm_legitimize_reload_address): New.
13862 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13863 arm_legitimize_reload_address.
13864 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13866 2011-01-28 Ian Lance Taylor <iant@google.com>
13868 * godump.c (go_define): Ignore macros whose definitions include
13869 two adjacent operands.
13871 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13874 * varasm.c (force_const_mem): Store copy of x in desc->constant
13875 instead of x itself.
13876 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13877 itself into REG_EQUAL note.
13879 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13881 * config/freebsd.opt (posix, rdynamic): New Driver options.
13883 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13885 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13886 -Bstatic/-Bdynamic.
13887 * configure: Regenerate.
13889 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13891 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13892 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13894 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13896 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13897 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13898 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13899 (s390_preferred_reload_class): Make static. Change return and
13900 'rclass' argument type to reg_class_t.
13902 2011-01-27 Jan Hubicka <jh@suse.cz>
13904 PR middle-end/46949
13905 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13906 (process_function_and_variable_attributes): Check defined weakrefs.
13908 2011-01-27 Martin Jambor <mjambor@suse.cz>
13910 PR tree-optimization/47228
13911 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13912 build_ref_for_offset.
13914 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13916 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13918 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13920 PR rtl-optimization/46856
13921 * postreload.c (reload_combine_recognize_const_pattern): Do not
13922 separate cc0 setter and user on cc0 targets.
13924 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13927 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13928 passed a VOID_TYPE expression, immediately emit an error and
13929 return error_mark_node.
13931 2011-01-26 Jeff Law <law@redhat.com>
13933 PR rtl-optimization/47464
13934 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13935 rather than may_trap_p as needed.
13937 2011-01-26 DJ Delorie <dj@redhat.com>
13939 PR rtl-optimization/46878
13940 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13941 setter/user dependency as well.
13943 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13945 PR rtl-optimization/44469
13946 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13947 after removing trivially dead basic blocks.
13949 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13951 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13952 * config/frv/frv.h (LINK_SPEC): Likewise.
13953 * config/i386/netware.h (LINK_SPEC): Likewise.
13954 * config/m68k/linux.h (ASM_SPEC): Likewise.
13955 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13956 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13957 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13958 * config/sparc/linux.h (ASM_SPEC): Likewise.
13959 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13960 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13962 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13964 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13965 * config/frv/frv.h (ASM_SPEC): Likewise.
13966 * config/m68k/linux.h (ASM_SPEC): Likewise.
13967 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13968 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13969 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13970 * config/sparc/linux.h (ASM_SPEC): Likewise.
13971 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13972 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13974 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13976 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13977 * config/frv/frv.h (LINK_SPEC): Likewise.
13978 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13980 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13982 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13983 * config/frv/frv.h (ASM_SPEC): Likewise.
13984 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13985 * config/m68k/linux.h (ASM_SPEC): Likewise.
13986 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13987 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13988 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13989 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13990 * config/sparc/linux.h (ASM_SPEC): Likewise.
13991 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13992 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13993 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13995 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13998 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14000 (vec_extract_evenodd_help): Ditto.
14001 (vec_extract_evenv4hi): Ditto.
14002 (vec_extract_oddv4hi): Ditto.
14003 (vec_interleave_lowv2si): Ditto.
14004 (vec_interleave_highv2si): Ditto.
14005 (vec_extract_evenv2si): Ditto.
14006 (vec_extract_oddv2si: Ditto.
14007 (vec_pack_trunc_v2si): Ditto.
14009 2011-01-22 Jan Hubicka <jh@suse.cz>
14012 * cgraph.h (cgraph_local_info): New field can_change_signature.
14013 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14014 signature can change.
14015 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14017 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14018 (cgraph_function_versioning): We can not change signature of functions
14019 that don't allow that.
14020 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14021 (lto_input_node): Likewise.
14022 * ipa-inline.c (compute_inline_parameters): Compute
14023 local.can_change_signature.
14024 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14025 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14026 functions that can not change signature.
14027 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14028 init_cumulative_args): Do not use local calling conventions
14029 for functions that can not change signature.
14031 2011-01-22 Jan Hubicka <jh@suse.cz>
14033 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14035 2011-01-26 Richard Guenther <rguenther@suse.de>
14037 PR tree-optimization/47190
14038 * cgraphunit.c (process_common_attributes): New function.
14039 (process_function_and_variable_attributes): Use it.
14041 2011-01-26 Richard Guenther <rguenther@suse.de>
14044 * cgraphbuild.c (record_eh_tables): Record reference to personality
14047 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14050 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14051 non-debug insns from moving up.
14053 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14056 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14057 t-dlldir{,-x} fragment for build and add it to tmake_file.
14058 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14059 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14060 * config/i386/t-dlldir: New file.
14061 (SHLIB_DLLDIR): Define.
14062 * config/i386/t-dlldir-x: New file.
14063 (SHLIB_DLLDIR): Define.
14064 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14065 (SHLIB_INSTALL): Use it.
14067 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14070 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14071 lower bound of the allowed Thumb-2 coprocessor load/store
14072 index range to -256. Add explaining comment.
14074 2011-01-25 Ian Lance Taylor <iant@google.com>
14076 * godump.c (go_define): Improve lexing of macro expansion to only
14077 accept expressions which match Go spec.
14079 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14082 * tree.c (handle_dll_attribute): Handle it.
14083 * doc/extend.texi (@item dllexport): Mention it.
14084 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14086 2011-01-25 Ian Lance Taylor <iant@google.com>
14088 PR tree-optimization/26854
14089 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14090 (decl_jump_unsafe): Move higher in file, with no other change.
14091 (bind): Set has_jump_unsafe_decl if appropriate.
14092 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14093 (check_earlier_gotos): Likewise.
14094 (c_check_switch_jump_warnings): Likewise.
14096 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14098 * doc/invoke.texi (Warning Options): Add missing hyphen.
14099 (-fprofile-dir): Minor grammatical fixes.
14100 (-fbranch-probabilities): Likewise.
14102 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14106 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14108 (no_real_insns_p, schedule_block, set_priorities): Drop special
14109 treatment of boundary debug insns.
14110 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14111 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14112 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14113 (BOUNDARY_DEBUG_INSN_P): Likewise.
14114 (SCHEDULE_DEBUG_INSN_P): Likewise.
14115 * sched-rgn.c (init_ready_list): Drop special treatment of
14116 boundary debug insns.
14117 * final.c (rest_of_clean-state): Clear notes' BB.
14119 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14121 * Makefile.in (LAMBDA_H): Removed.
14122 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14123 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14124 lambda-trans.o, and tree-loop-linear.o.
14125 (lto-symtab.o): Remove dependence on LAMBDA_H.
14126 (tree-loop-linear.o): Remove rule.
14127 (lambda-mat.o): Same.
14128 (lambda-trans.o): Same.
14129 (lambda-code.o): Same.
14130 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14131 (tree-vect-slp.o): Same.
14132 * hwint.h (gcd): Moved here.
14133 (least_common_multiple): Same.
14134 * lambda-code.c: Removed.
14135 * lambda-mat.c: Removed.
14136 * lambda-trans.c: Removed.
14137 * lambda.h: Removed.
14138 * tree-loop-linear.c: Removed.
14139 * lto-symtab.c: Do not include lambda.h.
14140 * omega.c (gcd): Removed.
14141 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14142 * tree-data-ref.c (print_lambda_vector): Moved here.
14143 (lambda_vector_copy): Same.
14144 (lambda_matrix_copy): Same.
14145 (lambda_matrix_id): Same.
14146 (lambda_vector_first_nz): Same.
14147 (lambda_matrix_row_add): Same.
14148 (lambda_matrix_row_exchange): Same.
14149 (lambda_vector_mult_const): Same.
14150 (lambda_vector_negate): Same.
14151 (lambda_matrix_row_negate): Same.
14152 (lambda_vector_equal): Same.
14153 (lambda_matrix_right_hermite): Same.
14154 * tree-data-ref.h: Do not include lambda.h.
14155 (lambda_vector): Moved here.
14156 (lambda_matrix): Same.
14157 (dependence_level): Same.
14158 (lambda_transform_legal_p): Removed declaration.
14159 (lambda_collect_parameters): Same.
14160 (lambda_compute_access_matrices): Same.
14161 (lambda_vector_gcd): Same.
14162 (lambda_vector_new): Same.
14163 (lambda_vector_clear): Same.
14164 (lambda_vector_lexico_pos): Same.
14165 (lambda_vector_zerop): Same.
14166 (lambda_matrix_new): Same.
14167 * tree-flow.h (least_common_multiple): Removed declaration.
14168 * tree-parloops.c (lambda_trans_matrix): Moved here.
14169 (LTM_MATRIX): Same.
14170 (LTM_ROWSIZE): Same.
14171 (LTM_COLSIZE): Same.
14172 (LTM_DENOMINATOR): Same.
14173 (lambda_trans_matrix_new): Same.
14174 (lambda_matrix_vector_mult): Same.
14175 (lambda_transform_legal_p): Same.
14176 * tree-pass.h (pass_linear_transform): Removed declaration.
14177 * tree-ssa-loop.c (tree_linear_transform): Removed.
14178 (gate_tree_linear_transform): Removed.
14179 (pass_linear_transform): Removed.
14180 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14181 flag_loop_interchange.
14183 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14185 PR tree-optimization/47265
14186 PR tree-optimization/47443
14187 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14188 if name still has some uses.
14190 2011-01-25 Martin Jambor <mjambor@suse.cz>
14192 PR tree-optimization/47382
14193 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14194 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14196 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14198 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14199 sjlj_except_unwind_info.
14201 2011-01-25 Richard Guenther <rguenther@suse.de>
14203 PR tree-optimization/47426
14204 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14205 visible functions results escape.
14207 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14210 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14211 (arm_get_frame_offsets): Use it.
14213 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14214 Jakub Jelinek <jakub@redhat.com>
14216 PR tree-optimization/47271
14217 * tree-if-conv.c (bb_postdominates_preds): New.
14218 (if_convertible_bb_p): Call bb_postdominates_preds.
14219 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14220 (predicate_scalar_phi): Call bb_postdominates_preds.
14222 2011-01-25 Nick Clifton <nickc@redhat.com>
14224 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14225 * config/rx/rx.c (rx_function_value): Likewise.
14226 (rx_promote_function_mode): Likewise.
14227 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14228 in order to make it legitimate.
14229 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14230 make sure that the first operand is the same as the result register.
14231 (addsi3_unspec): Delete.
14232 (subdi3): Do not accept immediate operands.
14233 (subdi3_internal): Likewise.
14235 2011-01-25 Jeff Law <law@redhat.com>
14237 PR rtl-optimization/37273
14238 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14239 handle them like argument loads from stack slots. Do not double
14240 count memory for memory constants and argument loads from stack slots.
14242 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14244 PR tree-optimization/47427
14245 PR tree-optimization/47428
14246 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14247 coalesce if the new root var would be TREE_READONLY.
14249 2011-01-25 Richard Guenther <rguenther@suse.de>
14251 PR middle-end/47414
14252 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14253 correct type for TBAA.
14255 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14257 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14258 (close_phi_written_to_memory): Call for_each_index with
14259 dr_indices_valid_in_loop.
14261 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14263 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14264 when it is initialized.
14266 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14268 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14269 call to graphite_find_data_references_in_stmt.
14270 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14271 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14272 call to graphite_find_data_references_in_stmt.
14273 (analyze_drs_in_stmts): Same.
14274 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14275 in which the scalar analysis of indices is performed.
14276 (create_data_ref): Same. Update call to dr_analyze_indices.
14277 (find_data_references_in_stmt): Update call to create_data_ref.
14278 (graphite_find_data_references_in_stmt): Same.
14279 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14281 (create_data_ref): Same.
14282 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14283 call to create_data_ref.
14285 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14287 * graphite-sese-to-poly.c (build_poly_scop): Move
14288 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14290 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14292 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14293 VAR_DECL, PARM_DECL, and RESULT_DECL.
14295 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14297 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14298 in a reduction PBB.
14299 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14300 that have already been marked as PBB_IS_REDUCTION.
14302 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14304 * graphite-scop-detection.c (same_close_phi_node): New.
14305 (remove_duplicate_close_phi): New.
14306 (make_close_phi_nodes_unique): New.
14307 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14309 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14311 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14312 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14313 of both data references to be the same.
14315 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14317 * graphite-dependences.c (build_lexicographical_constraint): Remove
14318 the gdim parameter.
14319 (build_lexicographical_constraint): Adjust call to
14320 ppl_powerset_is_empty.
14321 (dependence_polyhedron): Same.
14322 (graphite_legal_transform_dr): Same.
14323 (graphite_carried_dependence_level_k): Same.
14324 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14326 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14328 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14330 * graphite-sese-to-poly.c
14331 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14332 (close_phi_written_to_memory): New.
14333 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14336 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14338 * doc/install.texi: Update the expected version number of PPL to 0.11.
14339 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14340 #if PPL_VERSION_MINOR < 11.
14342 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14344 * graphite-dependences.c: Include graphite-cloog-util.h.
14345 (new_poly_ddr): Inlined into dependence_polyhedron.
14346 (free_poly_ddr): Moved close by new_poly_ddr.
14347 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14348 Early return NULL when ppl_powerset_is_empty returns true.
14349 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14350 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14351 (graphite_legal_transform_dr): Call new_poly_ddr.
14352 (graphite_carried_dependence_level_k): Same.
14353 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14354 (dot_transformed_deps_stmt_1): Removed.
14355 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14356 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14357 (dot_deps_1): Call dot_deps_2.
14358 * Makefile.in (graphite-dependences.o): Add missing dependence on
14359 graphite-cloog-util.h.
14361 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14363 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14364 (build_lexicographical_constraint): Same.
14365 (dependence_polyhedron_1): Same.
14366 (graphite_legal_transform_dr): Same.
14367 (graphite_carried_dependence_level_k): Same.
14368 * graphite-ppl.c (ppl_powerset_is_empty): New.
14369 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14370 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14372 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14374 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14375 the "a followed by b" relation and document it.
14377 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14379 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14380 iteration when the bag of constraints is empty.
14382 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14384 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14386 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14388 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14389 nest and two loop depths as parameters.
14390 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14391 lst_perfect_nestify.
14393 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14395 * graphite-dependences.c (print_pddr): Call
14396 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14398 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14400 * graphite-ppl.c (debug_gmp_value): New.
14401 * graphite-ppl.h (debug_gmp_value): Declared.
14403 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14405 * doc/install.texi: Document availability of cloog-0.16.
14407 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14409 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14410 invalid postdominance info.
14412 2011-01-24 Jan Hubicka <jh@suse.cz>
14415 * doc/extend.texi (weak pragma): Drop claim that it must
14416 appear before definition.
14417 * varasm.c (merge_weak, declare_weak): Only sanity check
14418 that DECL is not output at a time it is declared weak.
14420 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14422 * machmode.def: Fixed comments.
14424 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14426 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14428 2011-01-24 Paul Koning <ni1d@arrl.net>
14430 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14433 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14436 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14437 (block_info): Add scanned and prev.
14438 (move_or_delete_vzeroupper_2): Return if the basic block
14439 has been scanned and the upper 128bit state is unchanged
14440 from the last scan.
14441 (move_or_delete_vzeroupper_1): Return true if the exit
14443 (move_or_delete_vzeroupper): Visit basic blocks using the
14444 work-list based algorithm based on vt_find_locations in
14447 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14449 2011-01-24 Nick Clifton <nickc@redhat.com>
14451 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14452 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14453 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14454 then define __v850e1__.
14455 * doc/invoke.texi: Document -mv850es.
14457 2011-01-24 Richard Henderson <rth@redhat.com>
14459 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14460 compound unordered comparisons.
14461 * config/rx/rx.c (rx_split_fp_compare): Remove.
14462 * config/rx/rx-protos.h: Update.
14463 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14464 (cbranchsf4): Don't call rx_split_fp_compare.
14465 (*cbranchsf4): Use rx_split_cbranch.
14466 (*cmpsf): Don't accept "i" constraint.
14467 (*conditional_branch): Only valid after reload.
14468 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14470 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14473 * config/rs6000/altivec.md (vector constant splitters): Add
14474 support for creating vector single precision constants if -mvsx is
14475 used and we would create the constant using Altivec primitives.
14477 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14478 Richard Sandiford <rdsandiford@googlemail.com>
14480 PR rtl-optimization/47166
14481 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14482 mechanism for PRE_MODIFY and POST_MODIFY.
14483 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14486 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14488 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14490 2011-01-22 Jan Hubicka <jh@suse.cz>
14493 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14495 2011-01-22 Jan Hubicka <jh@suse.cz>
14497 PR tree-optimization/43884
14499 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14500 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14502 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14504 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14505 * config/s390/s390.c (s390_register_move_cost,
14506 s390_memory_move_cost): New.
14507 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14509 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14511 PR middle-end/47401
14512 * except.c (sjlj_assign_call_site_values): Move setting the
14513 crtl->uses_eh_lsda flag to ...
14514 (sjlj_mark_call_sites): ... here.
14515 (sjlj_emit_function_enter): Support NULL dispatch label.
14516 (sjlj_build_landing_pads): In a function with no landing pads
14517 that still has must-not-throw regions, generate code to register
14518 a personality function with empty LSDA.
14520 2011-01-21 Richard Henderson <rth@redhat.com>
14522 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14524 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14526 * compare-elim.c: New file.
14527 * Makefile.in (OBJS-common): Add it.
14528 (compare-elim.o): New.
14529 * common.opt (fcompare-elim): New.
14530 * opts.c (default_options_table): Add OPT_fcompare_elim.
14531 * tree-pass.h (pass_compare_elim_after_reload): New.
14532 * passes.c (init_optimization_passes): Add it.
14533 * recog.h: Protect against re-inclusion.
14534 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14535 * doc/invoke.texi (-fcompare-elim): Document it.
14536 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14537 * doc/tm.texi: Rebuild.
14539 2011-01-22 Nick Clifton <nickc@redhat.com>
14541 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14542 rx_split_fp_compare.
14544 2011-01-22 Nick Clifton <nickc@redhat.com>
14546 * config/rx/rx.md (UNSPEC_CONST): New.
14547 (deallocate_and_return): Wrap the amount popped off the stack in
14548 an UNSPEC_CONST in order to stop it being rejected by
14549 -mmax-constant-size.
14550 (pop_and_return): Add a "(return)" rtx.
14551 (call): Drop the immediate operand.
14552 (call_internal): Likewise.
14553 (call_value): Likewise.
14554 (call_value_internal): Likewise.
14555 (sibcall_internal): Likewise.
14556 (sibcall_value_internal): Likewise.
14557 (sibcall): Likewise. Generate an explicit call using
14559 (sibcall_value): Likewise.
14560 (mov<>): FAIL if a constant operand is not legitimate.
14561 (addsi3_unpsec): New pattern.
14563 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14564 (ok_for_max_constant): New function.
14565 (gen_safe_add): New function.
14566 (rx_expand_prologue): Use gen_safe_add.
14567 (rx_expand_epilogue): Likewise.
14568 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14571 2011-01-21 Jeff Law <law@redhat.com>
14573 PR tree-optimization/47053
14574 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14575 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14576 statements are deleted.
14577 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14578 is nonempty, then purge dead edges and cleanup the CFG.
14580 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14583 Temporarily revert:
14584 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14586 * tree-dfa.c (create_var_ann): Mark variable as used.
14588 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14590 PR middle-end/45566
14591 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14592 notes from other section in hot/cold partitioning even if
14593 last_action is -3. Increment call_site_base.
14595 PR rtl-optimization/47366
14596 * fwprop.c (forward_propagate_into): Return bool. If
14597 any changes are made, -fnon-call-exceptions is used and
14598 REG_EH_REGION note is present, call purge_dead_edges
14599 and return true if it purged anything.
14600 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14601 any EH edges were purged.
14603 2011-01-21 Jeff Law <law@redhat.com>
14605 PR rtl-optimization/41619
14606 * caller-save.c (setup_save_areas): Break out code to determine
14607 which hard regs are live across calls by examining the reload chains
14608 so that it is always used.
14609 Eliminate code which checked REG_N_CALLS_CROSSED.
14611 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14613 PR tree-optimization/47355
14614 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14615 NOP has non-debug uses beyond PHIs in new_bb.
14617 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14620 * cfgexpand.c (account_used_vars_for_block): Only account vars
14621 that are annotated as used.
14622 (estimated_stack_frame_size): Don't set TREE_USED.
14623 * tree-dfa.c (create_var_ann): Mark variable as used.
14625 2011-01-21 Richard Guenther <rguenther@suse.de>
14627 PR middle-end/47395
14628 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14630 2011-01-21 Richard Guenther <rguenther@suse.de>
14632 PR tree-optimization/47365
14633 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14634 (vn_reference_lookup_pieces): Adjust.
14635 (vn_reference_lookup): Likewise.
14636 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14637 (vn_reference_lookup_3): Only look through kills if in
14638 VN_WALKREWRITE mode.
14639 (vn_reference_lookup_pieces): Adjust.
14640 (vn_reference_lookup): Likewise.
14641 (visit_reference_op_load): Likewise.
14642 (visit_reference_op_store): Likewise.
14643 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14644 (compute_avail): Likewise.
14645 (eliminate): Likewise.
14647 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14649 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14650 DECL_IGNORED_P non-reg vars if they are used.
14652 PR tree-optimization/47391
14653 * varpool.c (const_value_known_p): Return false if
14656 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14659 * config/i386/i386.c (ix86_local_alignment): Handle
14660 case for va_list_type_node is nil.
14661 (ix86_canonical_va_list_type): Likewise.
14663 2011-01-21 Alan Modra <amodra@gmail.com>
14665 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14666 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14668 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14670 * config/arm/arm.md (define_attr type): Rename f_load
14671 and f_store to f_fpa_load and f_fpa_store. Update.
14672 (write_conflict): Deal with rename fallout.
14673 (*push_fp_multi): Likewise.
14674 * config/arm/fpa.md (f_load): Use f_fpa_load.
14675 (f_store): Use f_fpa_store.
14676 (*movsf_fpa): Likewise.
14677 (*movdf_fpa): Likewise.
14678 (*movxf_fpa): Likewise.
14679 (*thumb2_movsf_fpa): Likewise.
14680 (*thumb2_movdf_fpa): Likewise.
14681 (*thumb2_movxf_fpa): Likewise.
14682 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14683 f_loadd and f_stored.
14684 (*thumb2_movdi_vfp): Likewise.
14685 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14686 (*thumb2_movsi_vfp): Likewise.
14687 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14688 Use f_loads instead of f_load.
14689 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14691 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14693 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14694 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14695 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14696 (xtensa_mode_dependent_address_p): New function.
14697 (constantpool_address_p): Make static. Change return type to bool.
14698 Change argument type to const_rtx. Use CONST_INT_P predicate.
14700 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14703 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14705 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14708 * cfgexpand.c (expand_debug_expr): Instead of generating
14709 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14712 2011-01-20 Richard Guenther <rguenther@suse.de>
14714 PR middle-end/47370
14715 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14716 the pointer operand of MEM_REFs.
14718 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14720 PR tree-optimization/46130
14721 * ipa-split.c (consider_split): If return_bb contains non-virtual
14722 PHIs other than for retval or if split_function would not adjust it,
14725 2011-01-20 Richard Guenther <rguenther@suse.de>
14727 PR tree-optimization/47167
14728 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14729 Revert previous change, only avoid enumeral type changes.
14731 2011-01-19 Mike Stump <mikestump@comcast.net>
14733 * doc/tm.texi.in (BRANCH_COST): Englishify.
14734 * doc/tm.texi (BRANCH_COST): Likewise.
14736 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14739 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14740 (gen_scheduled_generic_parms_dies): New functions.
14741 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14742 generation for the end of CU compilation.
14743 (dwarf2out_finish): Generate template parameters DIEs here.
14745 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14748 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14749 debug bind stmt on merge edges.
14751 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14755 * function.c (instantiate_expr): Instantiate incoming rtl of
14756 implicit arguments, and recurse on VALUE_EXPRs.
14757 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14758 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14760 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14762 * c-parser.c (c_parser_for_statement): Initialize
14763 collection_expression.
14765 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14767 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14769 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14771 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14772 (LINK_SHLIB_SPEC): Don't use %(link_path).
14773 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14775 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14777 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14778 (NO_SHARED_LIB_SUPPORT): Remove.
14779 (LINK_SHLIB_SPEC): Remove one conditional definition.
14781 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14783 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14785 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14786 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14787 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14788 %{call_shared} and conditionals on these options not being passed.
14789 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14792 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14794 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14797 * ipa-split.c: Spelling fixes.
14799 2011-01-19 Richard Henderson <rth@redhat.com>
14801 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14802 (*mulsi3): Likewise.
14804 * longlong.h [__mn10300__] (count_leading_zeros): New.
14805 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14806 [__mn10300__] (add_ssaaaa, subddmmss): New.
14807 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14808 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14810 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14812 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14814 2011-01-19 Richard Henderson <rth@redhat.com>
14816 * config/mn10300/mn10300.md (addsi3_flags): New.
14817 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14818 (subsi3_flags, subc_internal, subdi3): New.
14819 (subdi3_internal, *subdi3_degenerate): New.
14820 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14822 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14823 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14824 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14825 * config/mn10300/mn10300-protos.h: Update.
14826 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14827 (return_ret): Likewise. Rename from return_internal_regs.
14828 (return_internal): Remove.
14830 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14831 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14832 (mn10300_legitimate_constant_p): Likewise.
14833 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14834 (mn10300_frame_size): New.
14835 (mn10300_expand_prologue): Use it.
14836 (mn10300_expand_epilogue): Likewise.
14837 (mn10300_initial_offset): Likewise.
14838 * config/mn10300/mn10300-protos.h: Update.
14839 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14840 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14841 (prologue, epilogue, return_internal): Tidy output code.
14842 (mn10300_store_multiple_operation, return): Likewise.
14843 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14844 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14845 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14846 (load_pic, am33_load_pic): New.
14847 (mn10300_load_pic0, mn10300_load_pic1): New.
14849 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14850 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14851 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14852 (cc_flags_for_mode, cc_flags_for_code): New.
14853 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14854 overflow flag is not valid. Validate that the flags we need
14855 for the comparison are valid.
14856 (mn10300_output_cmp): Remove.
14857 (mn10300_output_add): New.
14858 (mn10300_select_cc_mode): Use cc_flags_for_code.
14859 (mn10300_split_cbranch): New.
14860 (mn10300_match_ccmode): New.
14861 (mn10300_split_and_operand_count): New.
14862 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14864 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14865 (addsi3): ... here. Use mn10300_output_add.
14866 (*addsi3_flags): New.
14867 (*am33_subsi3, *mn10300_subsi3): Merge...
14868 (subsi3): ... here. Use attribute isa.
14869 (*subsi3_flags): New.
14870 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14872 (*am33_andsi3, *mn10300_andsi3): Merge...
14873 (andsi3): ... here.
14874 (*andsi3_flags): New.
14875 (andsi3 splitters): New.
14876 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14877 (iorsi3): ... here.
14878 (*iorsi3_flags): New.
14879 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14880 (xorsi3): ... here.
14881 (*xorsi3_flags): New.
14882 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14883 (one_cmplsi2): ... here.
14884 (*one_cmplsi2_flags): New.
14885 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14886 instead of "dax" in constraints. Use mn10300_split_cbranch.
14887 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14888 use matching constraints to eliminate a self-comparison.
14889 (*integer_conditional_branch): Rename from integer_conditional_branch.
14890 Use int_mode_flags to match CC_REG.
14891 (*cbranchsi4_btst, *btstsi): New.
14892 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14893 mn10300_split_cbranch.
14894 (*am33_cmpsf): Rename from am33_cmpsf.
14895 (*float_conditional_branch): Rename from float_conditional_branch.
14896 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14897 (zero_extendqisi2): ... here.
14898 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14899 (zero_extendhisi2): ... here.
14900 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14901 (extendqisi2): ... here.
14902 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14903 (extendhisi2): ... here.
14904 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14905 (ashlsi3): ... here.
14906 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14907 (lshrsi3): ... here.
14908 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14909 (ashrsi3): ... here.
14910 (consecutive add peephole): Remove.
14911 * config/mn10300/predicates.md (label_ref_operand): New.
14912 (int_mode_flags): New.
14913 (CCZN_comparison_operator): New.
14915 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14916 (throughput_42_latency_43): New reservation.
14917 (mulsidi3, umulsidi3): New expanders.
14918 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14919 the MDR register to allocation; separately allocate the low and
14920 high parts of the DImode result.
14921 (umulsidi3_internal): Similarly.
14922 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14923 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14924 (udivsi3, umodsi3): Remove.
14925 (udivmodsi4, divmodsi4): New expanders.
14926 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14927 (*divmodsi4): Simiarly.
14928 (ext_internal): New.
14930 * config/mn10300/constraints.md ("z"): New constraint.
14931 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14932 (FIXED_REGISTERS): Don't fix MDR.
14933 (CALL_USED_REGSITERS): Reformat nicely.
14934 (REG_ALLOC_ORDER): Add MDR.
14935 (enum regclass): Add MDR_REGS.
14936 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14937 (IRA_COVER_CLASSES): Add MDR_REGS.
14938 (REGNO_REG_CLASS): Handle MDR_REG.
14939 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14940 (mn10300_register_move_cost): Likewise.
14941 * config/mn10300/mn10300.md (MDR_REG): New.
14942 (*movsi_internal): Handle moves to/from MDR_REGS.
14944 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14946 (mn10300_secondary_reload): Tidy combination reload classes.
14947 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14948 addresses for AM33. Allow symbolic offsets for reg+imm.
14949 (mn10300_regno_in_class_p): New.
14950 (mn10300_legitimize_reload_address): New.
14951 * config/mn10300/mn10300.h (enum reg_class): Remove
14952 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14953 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14954 SP_OR_GENERAL_REGS.
14955 (REG_CLASS_NAMES): Update to match.
14956 (REG_CLASS_CONTENTS): Likewise.
14957 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14958 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14959 (REGNO_IN_RANGE_P): Remove.
14960 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14961 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14962 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14963 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14964 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14965 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14966 (REGNO_GENERAL_P): New.
14967 (HAVE_POST_MODIFY_DISP): New.
14968 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14969 (LEGITIMIZE_RELOAD_ADDRESS): New.
14970 * config/mn10300/mn10300-protos.h: Update.
14972 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14973 DATA_REGS for AM33 stack-pointer destination.
14974 (mn10300_preferred_output_reload_class): Likewise.
14975 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14976 into a form appropriate for ...
14977 (TARGET_SECONDARY_RELOAD): New.
14978 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14979 * config/mn10300/mn10300-protos.h: Update.
14980 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14981 reload_insi; use the "A" constraint for the scratch; handle AM33
14982 moves of sp to non-address registers.
14984 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14985 (*movqi_internal): ... here.
14986 (*am33_movhi, *mn10300_movhi): Merge into...
14987 (*movhi_internal): ... here.
14988 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14989 as the source/destination of moves from/to SP.
14990 (movsf): Only allow for AM33-2.
14991 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14992 any integer constant constraint. Only allow for AM33-2. Tidy
14993 all of the alternative outputs.
14994 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14995 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14997 (udivsi3, umodsi3): New patterns for MN103 only.
14999 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15001 * doc/tm.texi.in: Spell out that a lack of register class unions
15003 * doc/tm.texi: Regenerate.
15005 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15007 PR rtl-optimization/47337
15008 * dce.c (check_argument_store): New function.
15009 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15011 PR tree-optimization/47290
15012 * tree-eh.c (infinite_empty_loop_p): New function.
15013 (cleanup_empty_eh): Use it.
15015 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15018 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15019 (a64_expand_widen_sum): Ditto.
15020 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15021 (vec_extract_evenodd_help): Ditto.
15022 (vec_extract_evenv4hi): Ditto.
15023 (vec_extract_oddv4hi): Ditto.
15024 (vec_extract_evenv2si): Ditto.
15025 (vec_extract_oddv2si): Ditto.
15026 (vec_extract_evenv2sf): Ditto.
15027 (vec_extract_oddv2sf): Ditto.
15028 (vec_pack_trunc_v4hi: Ditto.
15029 (vec_pack_trunc_v2si): Ditto.
15030 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15031 (vec_interleave_highv8qi): Ditto.
15033 (vec_extract_oddv8qi): Ditto.
15034 (vec_interleave_lowv4hi): Ditto.
15035 (vec_interleave_highv4hi): Ditto.
15036 (vec_interleave_lowv2si): Ditto.
15037 (vec_interleave_highv2si): Ditto.
15039 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15041 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15042 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15043 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15044 (pa_c_mode_for_suffix): New.
15045 (TARGET_EXPAND_BUILTIN): Define.
15046 (TARGET_C_MODE_FOR_SUFFIX): Define.
15047 (pa_builtins): Define.
15048 (pa_init_builtins): Register __float128 type and init new support
15050 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15051 * config/pa/quadlib.c (_U_Qfcopysign): New.
15053 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15055 PR middle-end/46894
15056 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15057 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15060 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15062 PR tree-optimization/47179
15063 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15064 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15066 2011-01-18 Richard Guenther <rguenther@suse.de>
15068 PR rtl-optimization/47216
15069 * emit-rtl.c: Include tree-flow.h.
15070 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15071 of replicating it with different semantics.
15072 * Makefile.in (emit-rtl.o): Adjust.
15074 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15076 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15077 (cortex_a9_dp): Handle neon types correctly.
15079 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15081 PR rtl-optimization/47299
15082 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15083 subtarget. Use normal multiplication if both operands are constants.
15084 * expmed.c (expand_widening_mult): Don't try to optimize constant
15085 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15088 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15090 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15091 spacing after 'e.g.', typos, comma, hyphenation.
15093 2011-01-17 Richard Henderson <rth@redhat.com>
15095 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15096 (rx_restricted_mem_operand): New.
15097 (rx_shift_operand): Use register_operand.
15098 (rx_source_operand, rx_compare_operand): Likewise.
15099 * config/rx/rx.md (addsi3_flags): New expander.
15100 (adddi3): Rewrite as expander.
15101 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15102 (subsi3_flags): New expander.
15103 (subdi3): Rewrite as expander.
15104 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15106 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15107 (rx_init_builtins): Remove sat builtin.
15108 (rx_expand_builtin): Likewise.
15109 * config/rx/rx.md (ssaddsi3): New.
15110 (*sat): Rename from sat. Represent the CC_REG input.
15112 * config/rx/predicates.md (rshift_operator): New.
15113 * config/rx/rx.c (rx_expand_insv): Remove.
15114 * config/rx/rx-protos.h: Update.
15115 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15116 operand to the canonical position.
15117 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15118 (*bitclr, *bitclr_in_memory): Similarly.
15119 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15120 (insv): Retain the zero_extract in the expansion.
15122 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15123 (bswaphi2, bitinvert, revw): Likewise.
15125 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15126 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15127 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15128 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15129 (bitset, bitset_in_memory): Likewise.
15130 (bitinvert, bitinvert_in_memory): Likewise.
15131 (bitclr, bitclr_in_memory): Likewise.
15132 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15133 (rx_strend, rx_cmpstrn): Likewise.
15134 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15135 (bitop peep2 patterns): Remove.
15137 * config/rx/rx.c (rx_match_ccmode): New.
15138 * config/rx/rx-protos.h: Update.
15139 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15140 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15141 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15142 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15143 (fix_truncsfsi2, floatsisf2): Likewise.
15144 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15145 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15146 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15147 (*subsi3_flags, *xorsi3_flags): New.
15149 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15151 * config/rx/rx.c (rx_print_operand): Remove workaround for
15152 unsplit comparison operations.
15154 * config/rx/rx.md (movsicc): Split after reload.
15155 (*movsicc): Merge *movsieq and *movsine via match_operator.
15156 (*stcc): New pattern.
15158 * config/rx/rx.c (rx_float_compare_mode): Remove.
15159 * config/rx/rx.h (rx_float_compare_mode): Remove.
15160 * config/rx/rx.md (cstoresi4): Split after reload.
15161 (*sccc): New pattern.
15163 * config/rx/predicates.md (label_ref_operand): New.
15164 (rx_z_comparison_operator): New.
15165 (rx_zs_comparison_operator): New.
15166 (rx_fp_comparison_operator): New.
15167 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15168 Validate that the flags are set properly for the comparison.
15169 (rx_gen_cond_branch_template): Remove.
15170 (rx_cc_modes_compatible): Remove.
15171 (mode_from_flags): New.
15172 (flags_from_code): Rename from flags_needed_for_conditional.
15173 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15174 (rx_select_cc_mode): Likewise.
15175 (rx_split_fp_compare): New.
15176 (rx_split_cbranch): New.
15177 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15178 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15179 (*cbranchsf4): Similarly.
15180 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15181 match_operator and rx_split_cbranch.
15182 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15183 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15184 (*cmpsi): Rename from cmpsi.
15185 (*tstsi): Rename from tstsi.
15186 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15187 (*conditional_branch): Rename from conditional_branch.
15188 (*reveresed_conditional_branch): Remove.
15189 (b<code>): Remove expander.
15190 * config/rx/rx-protos.h: Update.
15192 * config/rx/rx.c (rx_compare_redundant): Remove.
15193 * config/rx/rx.md (cmpsi): Don't use it.
15194 * config/rx/rx-protos.h: Update.
15196 * config/rx/rx-modes.def (CC_F): New mode.
15197 * config/rx/rx.c (rx_select_cc_mode): New.
15198 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15199 * config/rx/rx-protos.h: Update.
15201 2011-01-17 Richard Henderson <rth@redhat.com>
15203 * except.c (dump_eh_tree): Fix stray ; after for statement.
15205 2011-01-17 Richard Guenther <rguenther@suse.de>
15207 PR tree-optimization/47313
15208 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15209 handling before copying the body. Properly deal with
15210 by-reference result in SSA form.
15212 2011-01-17 Ian Lance Taylor <iant@google.com>
15215 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15216 (struct_value_alias_set): Don't define.
15217 (sparc_option_override): Don't set sparc_sr_alias_set and
15218 struct_value_alias_set.
15219 (save_or_restore_regs): Use gen_frame_mem rather than calling
15221 (sparc_struct_value_rtx): Likewise.
15223 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15226 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15227 (_mm_maskstore_pd): Likewise.
15228 (_mm_maskload_ps): Likewise.
15229 (_mm_maskstore_ps): Likewise.
15230 (_mm256_maskload_pd): Change mask to __m256i.
15231 (_mm256_maskstore_pd): Likewise.
15232 (_mm256_maskload_ps): Likewise.
15233 (_mm256_maskstore_ps): Likewise.
15235 * config/i386/i386-builtin-types.def: Updated.
15236 (ix86_expand_special_args_builtin): Likewise.
15238 * config/i386/i386.c (bdesc_special_args): Update
15239 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15240 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15241 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15242 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15244 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15245 Use <avxpermvecmode> on mask register.
15246 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15248 2011-01-17 Olivier Hainque <hainque@adacore.com>
15249 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15250 Eric Botcazou <ebotcazou@adacore.com>
15253 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15254 if <= USHRT_MAX in 32-bit mode.
15256 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15258 * doc/install.texi (Configuration, Specific): Wrap long
15259 lines in examples. Allow line wrapping in long options
15260 and URLs where beneficial for PDF output.
15262 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15264 * config/mips/mips.c (mips_classify_symbol): Don't return
15265 SYMBOL_PC_RELATIVE for nonlocal labels.
15267 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15269 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15271 2011-01-15 Jan Hubicka <jh@suse.cz>
15273 PR tree-optimization/47276
15274 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15275 declarations as needed.
15277 2011-01-15 Martin Jambor <mjambor@suse.cz>
15279 * common.opt (fdevirtualize): New flag.
15280 * doc/invoke.texi (Option Summary): Document it.
15281 * opts.c (default_options_table): Add devirtualize flag.
15282 * ipa-prop.c (detect_type_change): Return immediately if
15283 devirtualize flag is not set.
15284 (detect_type_change_ssa): Likewise.
15285 (compute_known_type_jump_func): Likewise.
15286 (ipa_analyze_virtual_call_uses): Likewise.
15288 2011-01-14 Martin Jambor <mjambor@suse.cz>
15290 PR tree-optimization/45934
15291 PR tree-optimization/46302
15292 * ipa-prop.c (type_change_info): New type.
15293 (stmt_may_be_vtbl_ptr_store): New function.
15294 (check_stmt_for_type_change): Likewise.
15295 (detect_type_change): Likewise.
15296 (detect_type_change_ssa): Likewise.
15297 (compute_complex_assign_jump_func): Check for dynamic type change.
15298 (compute_complex_ancestor_jump_func): Likewise.
15299 (compute_known_type_jump_func): Likewise.
15300 (compute_scalar_jump_functions): Likewise.
15301 (ipa_analyze_virtual_call_uses): Likewise.
15302 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15304 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15306 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15307 * config/i386/i386.opt (msse5): New Alias.
15309 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15311 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15312 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15313 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15314 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15316 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15318 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15320 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15321 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15322 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15323 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15325 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15327 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15329 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15331 2011-01-14 Mike Stump <mikestump@comcast.net>
15333 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15334 * config/fr30/fr30.md: Likweise
15335 (movsi_push): Likewise.
15336 (movsi_pop): Likewise.
15337 (enter_func): Likewise.
15338 * config/moxie/moxie.md (movsi_push): Likewise.
15339 (movsi_pop): Likewise.
15341 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15343 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15344 %{no_archive} %{exact_version}.
15345 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15346 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15347 %{no_archive} %{exact_version}.
15348 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15349 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15350 * config/mips/vxworks.h: Likewise.
15352 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15354 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15356 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15358 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15359 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15361 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15363 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15366 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15368 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15370 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15371 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15373 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15374 Don't handle -shlib.
15376 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15378 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15379 (CC1_SPEC): Don't handle -profile.
15381 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15383 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15384 * config/mips/mips.h (CC1_SPEC): Likewise.
15386 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15388 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15389 * config/mips/mips.h (CC1_SPEC): Likewise.
15391 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15393 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15394 * config/m32r/linux.h (LINK_SPEC): Likewise.
15395 * config/mips/linux.h (LINK_SPEC): Likewise.
15396 * config/mips/linux64.h (LINK_SPEC): Likewise.
15397 * config/sparc/linux.h (LINK_SPEC): Likewise.
15398 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15399 LINK_SPEC): Likewise.
15400 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15402 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15404 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15406 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15408 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15410 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15411 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15413 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15415 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15417 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15419 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15420 supports -Bstatic/-Bdynamic.
15421 * configure: Regenerate.
15423 2011-01-14 Jan Hubicka <jh@suse.cz>
15424 Jack Howarth <howarth@bromo.med.uc.edu>
15427 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15428 when checking debug_info_level. Test write_symbols instead of
15429 debug_hooks->var_location when setting flag_var_tracking_uninit.
15431 2011-01-14 Richard Guenther <rguenther@suse.de>
15433 PR tree-optimization/47179
15434 * target.def (ref_may_alias_errno): New target hook.
15435 * targhooks.h (default_ref_may_alias_errno): Declare.
15436 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15437 (default_ref_may_alias_errno): New function.
15438 * target.h (struct ao_ref_s): Declare.
15439 * tree-ssa-alias.c: Include target.h.
15440 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15441 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15442 (targhooks.o): Likewise.
15443 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15444 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15446 2011-01-14 Richard Guenther <rguenther@suse.de>
15448 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15450 2011-01-14 Richard Guenther <rguenther@suse.de>
15452 PR tree-optimization/47280
15453 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15454 return CFG changes.
15455 (tree_ssa_forward_propagate_single_use_vars): Deal with
15456 CFG changes from associate_plusminus.
15458 2011-01-14 Richard Guenther <rguenther@suse.de>
15460 PR middle-end/47281
15462 2011-01-11 Richard Guenther <rguenther@suse.de>
15464 PR tree-optimization/46076
15465 * tree-ssa.c (useless_type_conversion_p): Conversions from
15466 unprototyped to empty argument list function types are useless.
15468 2011-01-14 Richard Guenther <rguenther@suse.de>
15470 PR tree-optimization/47286
15471 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15473 2011-01-14 Martin Jambor <mjambor@suse.cz>
15475 PR middle-end/46823
15476 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15478 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15480 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15481 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15482 * config/xtensa/xtensa.c (xtensa_libcall_value,
15483 xtensa_function_value_regno_p): New functions.
15484 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15486 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15489 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15491 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15492 New function prototype.
15493 * config/i386/winnt.c (i386_pe_assemble_visibility):
15494 Warn only if attribute was specified by user.
15496 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15499 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15501 (floatunsdidf2_fcfidu): Ditto.
15503 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15505 * config/s390/s390.c (print_operand_address): Replace 'error' with
15506 'output_operand_lossage'.
15507 (print_operand): Likewise.
15509 2011-01-13 Jeff Law <law@redhat.com>
15511 PR rtl-optimization/39077
15512 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15513 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15514 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15515 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15516 * gcse.c (prune_insertions_deletions): New function.
15517 (compute_pre_data): Use it.
15519 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15522 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15524 (prune_unused_types_mark): Use it.
15526 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15528 PR rtl-optimization/45352
15529 * sel-sched.c: Update copyright years.
15530 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15531 in the advancing loop when we have issued issue_rate insns.
15533 2011-01-12 Richard Henderson <rth@redhat.com>
15535 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15536 (TARGET_MD_ASM_CLOBBERS): New.
15538 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15539 (TARGET_DELEGITIMIZE_ADDRESS): New.
15541 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15542 (clzsi2, *bsch): New patterns.
15544 * config/mn10300/mn10300.md (INT): New mode iterator.
15545 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15547 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15548 flag_split_wide_types.
15550 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15551 (mn10300_trampoline_init): Rewrite without a template, an immediate
15552 load and a direct branch.
15553 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15555 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15557 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15558 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15559 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15560 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15562 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15565 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15568 2011-01-12 Jan Hubicka <jh@suse.cz>
15571 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15572 (PLUGIN_COND_CLOSE): New macro.
15573 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15575 2011-01-12 Richard Guenther <rguenther@suse.de>
15578 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15579 register variables in a MEM_REF.
15581 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15583 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15584 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15585 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15586 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15587 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15588 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15589 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15590 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15591 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15592 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15593 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15594 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15595 * config/gnu-user.h: New. Copied from linux.h.
15596 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15597 GNU_USER_TARGET_STARTFILE_SPEC.
15598 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15599 GNU_USER_TARGET_ENDFILE_SPEC.
15600 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15601 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15602 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15603 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15604 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15605 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15606 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15607 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15608 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15609 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15610 * config/arm/linux-eabi.h (CC1_SPEC): Use
15611 GNU_USER_TARGET_CC1_SPEC.
15612 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15613 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15614 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15615 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15616 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15617 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15618 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15619 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15621 2011-01-12 Richard Guenther <rguenther@suse.de>
15624 * doc/invoke.texi (ffast-math): Document it is turned on
15627 2011-01-12 Jan Hubicka <jh@suse.cz>
15629 PR tree-optimization/47233
15630 * opts.c (common_handle_option): Disable ipa-reference with profile
15633 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15635 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15638 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15640 * c-parser.c (c_lex_one_token): Updated and reindented some
15641 comments. No changes in code.
15643 2011-01-11 Ian Lance Taylor <iant@google.com>
15645 * godump.c (go_output_var): Don't output the variable if there is
15646 already a type with the same name.
15648 2011-01-11 Ian Lance Taylor <iant@google.com>
15650 * godump.c (go_format_type): Don't generate float80.
15652 2011-01-11 Richard Henderson <rth@redhat.com>
15654 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15655 declaration. Rewrite for both speed and size.
15656 (mn10300_address_cost_1): Remove.
15657 (mn10300_register_move_cost): New.
15658 (mn10300_memory_move_cost): New.
15659 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15660 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15661 extensions, shifts, BSWAP, CLZ.
15662 (mn10300_wide_const_load_uses_clr): Remove.
15663 (TARGET_REGISTER_MOVE_COST): New.
15664 (TARGET_MEMORY_MOVE_COST): New.
15665 * config/mn10300/mn10300-protos.h: Update.
15666 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15668 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15669 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15670 * config/mn10300/mn10300-protos.h: Update.
15671 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15672 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15673 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15674 (*test_int_bitfield, *test_byte_bitfield): Remove.
15675 (*bit_test, *subreg_bit_test): Remove.
15676 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15678 * config/mn10300/constraints.md ("c"): Rename from "A".
15679 ("A", "D"): New constraint letters.
15680 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15681 (fmssf4, fnmasf4, fnmssf4): Likewise.
15683 * config/mn10300/mn10300.md (isa): New attribute.
15684 (enabled): New attribute.
15686 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15687 (abssf2, negsf2): Define only for hardware fp.
15688 (sqrtsf2): Reformat.
15689 (addsf3, subsf3, mulsf3): Merge expander and insn.
15691 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15692 (DEBUGGER_AUTO_OFFSET): Remove.
15693 (DEBUGGER_ARG_OFFSET): Remove.
15695 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15696 Emit register stores with the same offsets as the hardware.
15697 (mn10300_store_multiple_operation): Don't check that the register
15698 save offsets are monotonic.
15699 * config/mn10300/mn10300-protos.h: Update.
15701 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15703 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15704 in terms of the value on the stack, not the MDR register.
15706 2011-01-11 Jan Hubicka <jh@suse.cz>
15710 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15711 (symbol_alias_set_destroy, symbol_alias_set_contains,
15712 propagate_aliases_backward): Declare.
15713 * lto-streamer-out.c (struct sets): New sturcture.
15714 (trivally_defined_alias): New function.
15715 (output_alias_pair_p): Rewrite.
15716 (output_unreferenced_globals): Fix output of alias pairs.
15717 (produce_symtab): Likewise.
15718 * ipa.c (function_and_variable_visibility): Set weak alias destination
15720 * varasm.c (symbol_alias_set_t): Remove.
15721 (symbol_alias_set_destroy): Export.
15722 (propagate_aliases_forward, propagate_aliases_backward): New functions
15724 (compute_visible_aliases): ... this one; remove.
15725 (trivially_visible_alias): New
15726 (trivially_defined_alias): New.
15727 (remove_unreachable_alias_pairs): Rewrite.
15728 (finish_aliases_1): Reorganize code checking if alias is defined.
15729 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15732 2011-01-11 Richard Guenther <rguenther@suse.de>
15734 PR tree-optimization/46076
15735 * tree-ssa.c (useless_type_conversion_p): Conversions from
15736 unprototyped to empty argument list function types are useless.
15738 2011-01-11 Richard Guenther <rguenther@suse.de>
15740 PR middle-end/45235
15741 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15742 volatile MEMs as MEM_READONLY_P.
15744 2011-01-11 Richard Guenther <rguenther@suse.de>
15746 PR tree-optimization/47239
15747 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15749 2011-01-11 Jeff Law <law@redhat.com>
15751 PR tree-optimization/47086
15752 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15753 IVs from statements that might throw.
15755 2011-01-10 Jan Hubicka <jh@suse.cz>
15758 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15760 2011-01-10 Jan Hubicka <jh@suse.cz>
15763 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15764 when correcting profile.
15766 2011-01-10 Jan Hubicka <jh@suse.cz>
15769 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15770 DECL_FINI_PRIORITY.
15771 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15772 Restore DECL_FINI_PRIORITY.
15774 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15776 * doc/gimple.texi: Fix quoting of multi-word return values in
15777 @deftypefn statements. Ensure presence of return value. Wrap
15778 overlong @deftypefn lines.
15779 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15780 descriptions of removed functions.
15781 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15782 of multi-word return value in @deftypefn statement.
15784 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15786 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15787 (Conditional Expressions, Logical Operators)
15788 (Statement and operand traversals): Do not indent smallexample
15789 code. Fix duplicate function argument in example.
15791 2011-01-10 Jeff Law <law@redhat.com>
15793 PR tree-optimization/47141
15794 * ipa-split.c (split_function): Handle case where we are
15795 returning a value and the return block has a virtual operand phi.
15797 2011-01-10 Jan Hubicka <jh@suse.cz>
15799 PR tree-optimization/47234
15800 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15801 (pass_feedback_split_functions): Declare.
15802 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15804 * ipa-split.c (gate_split_functions): Update comments; disable
15805 split-functions for profile_arc_flag and branch_probabilities.
15806 (gate_feedback_split_functions): New function.
15807 (execute_feedback_split_functions): New function.
15808 (pass_feedback_split_functions): New global var.
15810 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15813 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15814 calling gimple_call_set_cannot_inline.
15816 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15818 * config/darwin-sections.def: Remove unused section.
15820 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15823 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15825 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15828 * c-parser.c (c_parser_declaration_or_fndef): Improved
15831 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15833 * config/i386/winnt.c (i386_pe_start_function): Make sure
15834 to switch back to function's section.
15836 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15840 * plugin.c: Move include of dlfcn.h from here...
15841 * system.h: ... to here.
15843 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15845 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15847 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15848 two extra empty pages in PDF output.
15850 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15853 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15854 for error recovery purposes behave as if it was not specified so
15855 that the default type is usd.
15857 2011-01-07 Jan Hubicka <jh@suse.cz>
15859 PR tree-optmization/46469
15860 * ipa.c (function_and_variable_visibility): Clear needed flags on
15861 nodes with external decls; handle weakrefs merging correctly.
15863 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15865 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15868 2011-01-07 Jan Hubicka <jh@suse.cz>
15870 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15871 and no longer claim that gold is required for linker plugin.
15872 * configure: Regenerate.
15873 * gcc.c (PLUGIN_COND): New macro.
15874 (LINK_COMMAND_SPEC): Use it.
15875 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15876 * config.in (HAVE_LTO_PLUGIN): New.
15877 * configure.ac (--with-lto-plugin): New parameter; autodetect
15880 2011-01-07 Jan Hubicka <jh@suse.cz>
15882 PR tree-optimization/46367
15883 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15884 when we can update original.
15885 (cgraph_mark_inline_edge): Sanity check.
15886 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15888 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15890 * config/spu/spu.h (ASM_COMMENT_START): Define.
15892 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15895 * gcc.c (%>S): New.
15896 (SWITCH_KEEP_FOR_GCC): Likewise.
15897 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15898 (do_spec_1): Handle "%>".
15900 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15902 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15905 * config/i386/i386.c (ix86_delegitimize_address): If
15906 simplify_gen_subreg fails, return orig_x.
15909 * value-prof.c (gimple_stringop_fixed_value): Handle
15910 lhs of the call properly.
15912 2011-01-07 Jan Hubicka <jh@suse.cz>
15915 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15917 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15919 * target.def (function_switched_text_sections): New hook.
15920 * doc/tm.texi: Regenerated.
15921 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15922 * final.c (default_function_switched_text_sections): New.
15923 (final_scan_insn): Call function_switched_text_sections when a
15924 mid-function section change occurs.
15925 * output.h (default_function_switched_text_sections): Declare.
15926 * config/darwin-protos.h (darwin_function_switched_text_sections):
15928 * config/darwin.c (darwin_function_switched_text_sections): New.
15929 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15931 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15933 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15934 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15935 the secondary code fragment when outputting for DWARF == 2.
15937 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15939 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15940 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15942 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15943 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15945 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15948 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15949 when it is not empty.
15951 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15954 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15955 (case ${target}): Add btver1.
15956 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15957 -march=native recognize btver1 processors.
15958 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15959 btver1 def_and_undef
15960 * config/i386/i386.c (struct processor_costs btver1_cost): New
15962 (m_BTVER1): New definition.
15963 (m_AMD_MULTIPLE): Includes m_BTVER1.
15964 (initial_ix86_tune_features): Add btver1 tune.
15965 (processor_target_table): Add btver1 entry.
15966 (static const char *const cpu_names): Add btver1 entry.
15967 (software_prefetching_beneficial_p): Add btver1.
15968 (ix86_option_override_internal): Add btver1 instruction sets.
15969 (ix86_issue_rate): Add btver1.
15970 (ix86_adjust_cost): Add btver1.
15971 * config/i386/i386.h (TARGET_BTVER1): New definition.
15972 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15973 (enum processor_type): Add PROCESSOR_BTVER1.
15974 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15976 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15979 * config/i386/i386.c (legitimize_tls_address)
15980 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15981 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15982 (tls_initial_exec_64_sun): New pattern.
15984 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15986 * doc/invoke.texi (Overall Options): Improve wording and markup
15987 of the description of -wrapper.
15989 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15991 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15992 rdynamic, threads): New Driver options.
15994 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15997 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15998 if coming from .tdata.
15999 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16001 2011-01-06 Jan Hubicka <jh@suse.cz>
16004 * collect2.c (main): Do not enable LTOmode when plugin is active.
16006 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16009 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16010 --version output if supported.
16011 * configure: Regenerate.
16013 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16015 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16018 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16021 * c-convert.c (convert): When converting a complex expression
16022 other than COMPLEX_EXPR to a different complex type, ensure
16023 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16024 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16025 when converting COMPLEX_TYPE.
16027 2011-01-06 Ira Rosen <irar@il.ibm.com>
16029 PR tree-optimization/47139
16030 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16031 only the last reduction value is used outside the loop. Update
16034 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16036 * config/rtems.opt: New.
16037 * config.gcc (*-*-rtems*): Use rtems.opt.
16039 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16041 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16042 processors do not support 3DNow instructions.
16044 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16046 * config/spu/spu.c (spu_option_override): Set parameter
16047 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16049 2011-01-05 Jan Hubicka <jh@suse.cz>
16051 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16052 at the command line.
16054 2011-01-05 Martin Jambor <mjambor@suse.cz>
16057 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16058 deltas on streamed outgoing edges.
16059 (output_node_opt_summary): Output info for outgoing edges only when
16060 the node is in new parameter set.
16061 (output_cgraph_opt_summary): New parameter set, passed to the two
16062 aforementioned functions. Update its forward declaration and its
16065 2011-01-05 Tom Tromey <tromey@redhat.com>
16067 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16068 operator to c_finish_omp_atomic.
16069 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16070 (build_unary_op): Update.
16071 (build_modify_expr): Update.
16072 (build_asm_expr): Update.
16074 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16076 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16077 newly inserted insns.
16078 (pad_bb): Likewise.
16079 (spu_emit_branch_hint): Likewise.
16080 (insert_hbrp_for_ilb_runout): Likewise.
16081 (spu_machine_dependent_reorg): Call df_finish_pass after
16082 schedule_insns returns.
16084 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16086 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16088 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16090 PR tree-optimization/47005
16091 * tree-sra.c (struct access): Add 'non_addressable' bit.
16092 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16093 (decide_one_param_reduction): Return 0 if the parameter is passed by
16094 reference and one of the accesses in the group is non_addressable.
16096 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16098 PR tree-optimization/47056
16099 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16100 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16101 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16103 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16105 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16106 initializer. Skip view conversions from aggregate types.
16108 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16111 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16113 2011-01-04 Philipp Thomas <pth@suse.de>
16115 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16118 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16120 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16121 on empty epilogue sequences.
16123 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16125 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16126 non-static): New Driver options.
16128 2011-01-04 Jie Zhang <jie@codesourcery.com>
16131 * gcc.c (default_compilers[]): Set combinable field to 0
16132 for all assembly languages.
16134 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16136 * config/mips/loongson3a.md: New file.
16137 * config/mips/mips.md: Include loongson3a.md.
16138 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16141 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16143 PR middle-end/47017
16144 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16145 instead of convert_memory_address_addr_space on the base expression.
16147 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16149 * config/spu/spu.c (spu_option_override): Update error text
16150 for bad -march= / -mtune= values.
16152 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16154 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16155 if branch-hint optimization will be performed.
16157 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16159 PR tree-optimization/47148
16160 * ipa-split.c (split_function): Convert arguments to
16161 DECL_ARG_TYPE if possible.
16163 PR tree-optimization/47155
16164 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16165 when computing uns.
16167 PR rtl-optimization/47157
16168 * combine.c (try_combine): If undobuf.other_insn becomes
16169 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16170 and set *new_direct_jump_p too.
16172 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16174 PR tree-optimization/47021
16175 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16177 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16179 * gcc.c (process_command): Update copyright notice dates.
16180 * gcov.c (print_version): Likewise.
16181 * gcov-dump.c (print_version): Likewise.
16182 * mips-tfile.c (main): Likewise.
16183 * mips-tdump.c (main): Likewise.
16185 2011-01-03 Martin Jambor <mjambor@suse.cz>
16187 PR tree-optimization/46801
16188 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16189 aggregate fields start at byte boundary instead of the bit-field flag.
16191 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16194 * gcc.c (main): Revert revision 168407.
16196 2011-01-03 Martin Jambor <mjambor@suse.cz>
16198 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16200 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16202 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16203 vector optab to expand vector/scalar shift, update gimple to vector.
16205 2011-01-03 Martin Jambor <mjambor@suse.cz>
16207 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16210 2011-01-03 Martin Jambor <mjambor@suse.cz>
16212 PR tree-optimization/46984
16213 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16215 (cgraph_create_indirect_edge): Fixed line length.
16216 (cgraph_indirect_call_info): Declare.
16217 (cgraph_make_edge_direct) Update declaration.
16218 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16219 (cgraph_create_indirect_edge): Use it.
16220 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16222 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16223 the new thunk_delta representation.
16224 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16226 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16227 (ipa_read_indirect_edge_info): Likewise.
16228 * lto-cgraph.c (output_edge_opt_summary): New function.
16229 (output_node_opt_summary): Call it on all outgoing edges.
16230 (input_edge_opt_summary): New function.
16231 (input_node_opt_summary): Call it on all outgoing edges.
16233 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16236 * gcc.c (main): Don't check have_o when settting combine_inputs.
16238 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16240 * regrename.c: Add general comment describing the pass.
16241 (struct du_head): Remove 'length' field.
16242 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16243 (regrename_optimize): Do not sort chains. Rework comments, add others.
16244 Force renaming to the preferred class (if any) in the first pass and do
16245 not consider registers that belong to it in the second pass.
16246 (create_new_chain): Do not set 'length' field.
16247 (scan_rtx_reg): Likewise.
16249 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16251 PR tree-optimization/47140
16252 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16253 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16254 to bit_value_binop.
16256 PR rtl-optimization/47028
16257 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16258 parm_birth_insn instead of at the beginning of first bb.
16260 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16262 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16263 Remove the word "see" before "@pxref".
16264 * doc/rtl.texi: Remove the word "see" before "@pxref".
16266 2011-01-01 Jan Hubicka <jh@suse.cz>
16268 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16271 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16274 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16277 Copyright (C) 2011 Free Software Foundation, Inc.
16279 Copying and distribution of this file, with or without modification,
16280 are permitted in any medium without royalty provided the copyright
16281 notice and this notice are preserved.