1 2011-06-01 Richard Guenther <rguenther@suse.de>
3 * tree.c (free_lang_data): Do not reset boolean_type_node nor
5 * lto-streamer.c (lto_record_common_node): Take node pointer,
7 (lto_preload_common_nodes): Explicitly skip preloading nodes
8 that differ between frontends.
10 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
12 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
15 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
17 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
18 parameter value for dump. Dump cost on outermost call only.
19 (rs6000_memory_move_cost): Dump cost on outermost call only.
21 2011-05-31 Jakub Jelinek <jakub@redhat.com>
23 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
24 DW_OP_GNU_convert ops.
26 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
27 cselib_preserve_constants.
28 (cselib_lookup_1): If cselib_preserve_constants,
29 a new VALUE is being created for REG and there is a VALUE for the
30 same register in wider mode, add another loc with lowpart SUBREG of
32 (cselib_subst_to_values): Handle ENTRY_VALUE.
33 * var-tracking.c (replace_expr_with_values): Return NULL for
35 * dwarf2out.c (convert_descriptor_to_signed): New function.
36 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
37 instead of two shifts.
38 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
39 the right mode if needed.
40 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
41 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
42 convert_descriptor_to_signed.
43 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
44 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
47 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
49 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
51 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
52 of X87MODEI12 and SWI48x instead of SSEMODEI24.
53 (SWI248x): New mode iterator, rename from X87MODEI.
54 (X87MODEI): Remove mode iterator.
58 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
60 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
61 * doc/invoke.texi: Document max-vartrack-expr-depth.
62 * var-tracking.c (EXPR_DEPTH): New.
63 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
65 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
67 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
68 * config/i386/sse.md: Add n to negated FMA pattern names.
70 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
72 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
74 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
76 * gengtype-state.c (read_state_params_structs): Initialize previous.
78 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
80 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
81 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
83 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
85 * config/i386/i386.md (*movtf_internal): Avoid allocating general
86 registers. Penalize F*r->o alternative to prevent partial memory
87 stalls. Slightly penalize *roF->*r alternative. Generate SSE
88 CONST_DOUBLE immediates when optimizing function for size. Do not move
89 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
90 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
91 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
92 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
94 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
96 (fp_register_operand splitters): Use fp_register_operand
97 constraint. Do not use FP_REG_P in insn condition.
98 (any_fp_register_operand splitters): Use any_fp_register_operand
99 constraint. Do not use ANY_FP_REG_P in insn condition.
101 2011-05-31 Jan Hubicka <jh@suse.cz>
103 * cgraph.h (cgraph_inline_failed_t): Give enum a name
104 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
105 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
106 (lto_output_edge): Use output_enum and var_len_unsigned.
107 (lto_output_varpool_node): Likewise.
108 (input_overwrite_node): Do not take resolution parameter;
109 extract it from a bitpack.
110 (input_node): Do not read resolution; use input_enum and
112 (input_varpool_node): Likewise.
113 (input_edge): Likewise.
114 (input_cgraph_1): Likewise.
116 2011-05-31 Richard Guenther <rguenther@suse.de>
118 * gimple.c (gimple_register_canonical_type): Do not register
119 any types via gimple_register_type.
121 2011-05-31 Jan Hubicka <jh@suse.cz>
123 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
126 2011-05-31 Jakub Jelinek <jakub@redhat.com>
128 PR rtl-optimization/49235
129 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
130 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
132 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
134 PR tree-optimization/49093
135 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
138 2011-05-31 Dodji Seketeli <dodji@redhat.com>
141 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
142 for concrete functions containing the code of cloned functions.
144 2011-05-31 Richard Guenther <rguenther@suse.de>
146 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
148 (forward_propagate_into_comparison_1): ... this.
149 (forward_propagate_comparison): Rename to ...
150 (forward_propagate_into_comparison): ... this. Split out
151 real forward propagation code to ...
152 (forward_propagate_comparison): ... this.
153 (forward_propagate_into_gimple_cond): Remove looping.
154 (forward_propagate_into_cond): Likewise.
155 (simplify_not_neg_expr): Return whether we have done something.
156 (simplify_gimple_switch): Likewise.
157 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
158 (ssa_forward_propagate_and_combine): ... this. Re-structure
159 to do a forward forward-propagation walk on BBs and a backward
160 stmt combining walk on BBs. Consistently re-scan changed statements.
161 (pass_forwprop): Adjust.
163 2011-05-30 Ian Lance Taylor <iant@google.com>
165 * godump.c (go_format_type): Correct length of name added to
166 obstack for anonymous field.
168 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
171 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
172 part of the second operand is 0.
174 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
176 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
177 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
178 to memory for !TARGET_MEMORY_MISMATCH_STALL.
179 (*movdf_internal_rex64): Do not penalize F->r alternative.
180 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
181 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
182 when optimizing function for size. Do not move CONST_DOUBLEs
183 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
184 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
185 SUBREGs. Do not check for MEM_P operands in the insn condition,
186 check for ANY_FP_REGNO_P instead.
187 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
188 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
190 * config/i386/i386.c (ix86_option_override_internal): Do not
191 set TARGET_INTEGER_DFMODE_MOVES here.
193 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
196 * config/i386/i386.md (*movtf_internal): Handle misaligned
199 2011-05-30 Jakub Jelinek <jakub@redhat.com>
201 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
202 DW_TAG_rvalue_reference_type even for
203 -gdwarf-4 -fno-debug-types-section.
205 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
207 PR tree-optimization/46728
208 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
209 (build_and_insert_binop): New.
210 (gimple_expand_builtin_pow): Reorder args for
211 build_and_insert_call; use build_and_insert_binop; add more
212 optimizations for fractional exponents.
214 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
219 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
221 * tree.h (struct tree_identifier): Inherit from tree_typed, not
223 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
224 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
225 TS_BASE instead of TS_COMMON.
226 * varasm.c (assemble_name): Remove assert.
228 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
230 * config.gcc: Keep obselete list sorted.
232 2011-05-30 Jakub Jelinek <jakub@redhat.com>
233 Eric Botcazou <ebotcazou@adacore.com>
235 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
236 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
237 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
238 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
239 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
241 2011-05-30 Richard Guenther <rguenther@suse.de>
243 * gimple.c (gimple_types_compatible_p_1): Compare record
244 and union type members properly.
246 2011-05-30 Richard Guenther <rguenther@suse.de>
248 PR tree-optimization/49210
249 * ipa-split.c (split_function): Care for the case where the call
250 result is not trivially convertible to the result holding variable.
252 2011-05-30 Richard Guenther <rguenther@suse.de>
254 PR tree-optimization/49218
255 * tree-vrp.c (adjust_range_with_scev): Properly check whether
258 2011-05-30 Richard Guenther <rguenther@suse.de>
260 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
261 New function split out from ...
262 (forward_propagate_into_gimple_cond): ... here. Adjust.
263 (forward_propagate_into_cond): Likewise.
264 (forward_propagate_comparison): Also propagate into
265 comparisons on assignment RHS. Change return value to
266 behave similar to forward_propagate_into_cond.
267 (tree_ssa_forward_propagate_single_use_vars): Handle
268 strict-overflow warnings properly for forward_propagate_comparison.
270 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
272 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
274 * configure: Regenerate.
276 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
278 PR tree-optimization/49199
279 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
280 non-reduction operands are either defined in the loop or by induction.
282 2011-05-29 Xinliang David Li <davidxl@google.com>
284 * opts-global.c (handle_common_deferred_options): Handle new options.
285 * passes.c (register_one_dump_file): Call register_pass_name.
286 (execute_one_pass): Check explicit enable/disable flag.
287 (passr_hash): New function.
289 (register_pass_name): Ditto.
290 (get_pass_by_name): Ditto.
293 (enable_pass): Ditto.
294 (disable_pass): Ditto.
295 (is_pass_explicitly_enabled_or_disabled): Ditto.
297 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
299 * config/i386/i386.md (*movoi_internal_avx): Use
300 standard_sse_constant_opcode for alternative 0.
301 (*movti_internal_sse): Ditto.
302 (*movti_internal_rex64): Use standard_sse_constant_opcode for
304 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
306 (*movsi_internal): Ditto.
307 (*movdi_internal): Ditto. Add ssecvt type moves.
309 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
312 * rtlanal.c (simplify_subreg_regno): Adjust comment.
314 2011-05-29 Jakub Jelinek <jakub@redhat.com>
316 PR rtl-optimization/49095
317 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
318 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
320 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
323 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
324 recurse_p argument. Only follow register copies if it is set,
325 and prevent mips_find_pic_call_symbol from recursing.
326 (mips_find_pic_call_symbol): Add a recurse_p argument.
327 Pass it to mips_pic_call_symbol_from_set.
328 (mips_annotate_pic_calls): Update accordingly.
330 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
332 * emit-rtl.c (try_split): Use a loop to search for
333 NOTE_INSN_CALL_ARG_LOCATIONs.
335 2011-05-29 Richard Guenther <rguenther@suse.de>
337 PR tree-optimization/49217
338 * ipa-pure-const.c (propagate_pure_const): Fix typos.
340 2011-05-28 Jan Hubicka <jh@suse.cz>
342 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
344 (string_slot_free): Remove
345 (create_output_block): Initialize obstack.
346 (destroy_output_block): Free obstack.
347 (lto_string_index): Add PERSISTENT parameter; do not duplicate
348 the string unless it needs to be added into the hash.
349 (lto_output_string_with_length): Add persistent attribute;
351 (lto_output_string): Add PERSISTENT parameter.
352 (output_string_cst, output_identifier): Simplify.
353 (lto_output_location_bitpack): Update.
354 (lto_output_builtin_tree): Update.
355 * lto-streamer.h (struct output_block): Add obstack.
356 (lto_output_string, lto_output_string_with_length): Remove
357 declarations; functions are static now.
359 2011-05-28 Jan Hubicka <jh@suse.cz>
361 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
362 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
363 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
364 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
365 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
366 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
367 unpack_ts_decl_with_vis_value_fields,
368 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
369 lto_get_builtin_tree): Use enum and variable length i/o.
370 * basic-block.h (profile_status_d): Add PROFILE_LAST.
371 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
373 (bp_pack_enum, bp_unpack_enum): New macros.
375 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
377 * genrecog.c: Remove redundant forward declarations.
379 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
381 * config.gcc: Deprecate mips*-*-openbsd*.
383 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
386 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
389 2011-05-27 Andrew Pinski <pinskia@gmail.com>
392 * gengtype.c (vec_prefix_type): New function.
393 (note_def_vec): Use vec_prefix_type and change the length
394 attribute to be based on the prefix.
395 * vec.c: Include coretypes.h before vec.h.
396 (struct vec_prefix): Remove.
397 (vec_gc_p_reserve): Change the offsetof to sizeof.
398 (vec_gc_p_reserve_exact): Likewise.
399 (vec_heap_p_reserve): Likewise.
400 (vec_heap_p_reserve_exact): Likewise.
401 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
402 (vec_stack_p_reserve): Change the offsetof to sizeof.
403 (vec_stack_p_reserve_exact): Likewise.
404 * vec.h (struct vec_prefix): New struct definition.
405 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
406 (VEC_T_GTY(T,B)): Likewise.
407 (DEF_VEC_FUNC_P(T)): Use prefix field.
408 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
409 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
411 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
413 PR tree-optimization/46728
414 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
415 (powi_as_mults): Add gimple_set_location.
416 (build_and_insert_call): New.
417 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
418 0.5, 0.25, 0.75, 1./3., or 1./6.
420 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
422 * doc/contrib.texi: Update copyright years.
423 (Contributors): Add Zdenek Sojka.
425 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
427 * c-decl.c (c_push_function_context): Copy the current statement
429 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
430 (finish_struct): Call building_stmt_list_p instead of checking
432 * c-parser.c (c_parser_postfix_expression): Likewise.
433 * c-typeck.c (c_end_compound_stmt): Likewise.
434 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
435 * tree-iterator.c (stmt_list_cache): Change to a VEC.
436 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
437 (free_stmt_list): Likewise.
438 * tree.h (struct tree_statement_list): Include typed_tree instead
440 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
441 as TS_TYPED instead of TS_COMMON.
443 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
444 Uros Bizjak <ubizjak@gmail.com>
446 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
447 (HAVE_AS_IX86_TLSGDPTL): Define.
448 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
449 (HAVE_AS_IX86_TLSLDMPLT): Define.
450 * configure: Regenerate.
451 * config.in: Regenerate.
452 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
453 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
454 TARGET_SUN_TLS, use @tlsgdplt or @plt.
455 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
456 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
458 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
460 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
462 * sched-int.h (struct _haifa_deps_insn_data): New members cond
464 (INSN_COND, INSN_REVERSE_COND): New macros.
465 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
467 (sched_get_condition_with_rev): Cache the results, and look them up
469 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
470 are clobbered by the current insn.
471 * target.def (exposed_pipline): New sched data hook.
472 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
473 * doc/tm.texi: Regenerate.
475 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
477 PR tree-optimization/49170
478 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
481 2011-05-27 Richard Guenther <rguenther@suse.de>
484 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
487 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
489 * haifa-sched.c (sched_scan_info): Remove.
490 (schedule_block): Call sched_extend_luids rather than sched_init_luids
492 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
494 (sched_scan): Remove.
495 (sched_extend_luids): Renamed from luids_extend_insn and no longer
496 static. All callers changed.
497 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
498 static. All callers changed.
499 (sched_init_luids): Remove all arguments except the first. All
500 callers changed. Don't use sched_scan.
501 (haifa_init_h_i_d): Likewise.
502 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
503 manually rather than using sched_init_luids. Likewise with
504 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
505 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
506 rather than sched_init_luids with NULL args.
507 * sel-sched-ir.c (new_insns): Remove variable.
508 (sched_scan): New static function, previously in haifa-sched.c. Remove
509 all arguments but the first two; all callers changed.
510 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
511 rather than sched_init_luids.
512 (sel_init_bbs): Remove second argument. All callers changed.
513 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
515 (create_insn_rtx_from_pattern): Likewise.
516 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
517 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
518 (sched_init_insn_luid, sched_extend_luids): Declare.
519 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
522 2011-05-27 Richard Guenther <rguenther@suse.de>
525 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
526 A CMP B ? (T) true : (T) false for non-integral types T again.
528 2011-05-27 Jan Hubicka <jh@suse.cz>
530 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
531 so 0 means NULL string.
532 (lto_output_string_with_length): ... here.
533 (lto_output_string, output_string_cst, output_identifier): Update
534 handling of NULL strings.
535 (lto_output_location_bitpack): New function.
536 (lto_output_location): Use it.
537 (lto_output_tree_ref): Use output_record_start.
538 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
540 * lto-streamer-in.c (string_for_index): Break out from ...; offset
542 (input_string_internal): ... here;
543 (input_string_cst, input_identifier, lto_input_string): Update handling
545 (lto_input_location_bitpack): New function
546 (lto_input_location): Use it.
547 (unpack_ts_type_common_value_fields): Pack align & alias in var len
549 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
550 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
551 (bp_pack_value): Sanity check the value range.
552 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
554 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
557 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
559 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
560 call_arg_location instructions down the floor.
562 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
564 PR rtl-optimization/49154
565 * ira.c (setup_pressure_classes): Process class without sublcasses
566 as a candidate for pressure classes.
568 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
570 PR rtl-optimization/48575
571 * genrecog.c (position_type): New enum.
572 (position): New structure.
573 (decision): Use position structure instead of a string.
574 (root_pos, peep2_insn_pos_list): New variables.
575 (next_position, compare_positions): New functions.
576 (new_decision): Use position structures instead of strings.
577 (maybe_both_true): Likewise.
578 (change_state): Likewise.
579 (write_tree): Likewise.
580 (make_insn_sequence): Likewise.
582 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
584 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
585 TS_BASE instead of TS_COMMON.
586 (find_decls_types_r): Check for TS_TYPED structure before looking at
588 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
590 (BLOCK_CHAIN): Use new chain field.
592 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
594 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
595 moves expensive on Power7 also.
597 2011-05-26 Richard Guenther <rguenther@suse.de>
599 * fold-const.c (fold_unary_loc): Remove bogus code.
601 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
603 * tree.h (struct tree_identifier): Inherit from tree_typed, not
605 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
606 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
607 TS_BASE instead of TS_COMMON.
608 * varasm.c (assemble_name): Remove assert.
610 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
612 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
614 * libgcc-std.ver: Delete file.
616 2011-05-26 Richard Guenther <rguenther@suse.de>
618 PR tree-optimization/48702
619 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
620 only when we know the base address is within bounds.
621 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
622 assume the base address of TARGET_MEM_REFs is in bounds.
624 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
627 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
628 declaration in TARGET_SOLARIS.
630 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
632 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
633 The instruction is then expanded explicitly.
634 (supported_compare): Callable instruction.
637 2011-05-26 Jakub Jelinek <jakub@redhat.com>
640 * gimplify.c (shortcut_cond_r): Don't special case
641 COND_EXPRs if they have void type on one of their arms.
643 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
645 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
646 to reduce duplication, and to achieve a slightly more logical order
649 2011-05-26 Jakub Jelinek <jakub@redhat.com>
651 PR tree-optimization/49161
652 * tree-vrp.c (struct case_info): New type.
653 (compare_case_labels): Sort case_info structs instead of
654 trees, and not primarily by CASE_LABEL uids but by
655 label_for_block indexes.
656 (find_switch_asserts): Put case labels into struct case_info
657 array instead of TREE_VEC, adjust sorting, compare label_for_block
658 values instead of CASE_LABELs.
660 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
662 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
663 ("orndi3_neon"): Likewise.
664 ("bic<mode>3_neon"): Likewise.
666 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
668 PR tree-optimization/49038
669 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
670 Ensure at least one epilogue iteration if required by data
672 * tree-vectorizer.h (struct _loop_vec_info): Add new field
673 to mark loops that require peeling for gaps.
674 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
675 (vect_get_known_peeling_cost): Take peeling for gaps into
677 (vect_transform_loop): Generate epilogue if required by data
679 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
680 loop as requiring an epilogue if there are gaps in the end of
683 2011-05-25 Ian Lance Taylor <iant@google.com>
685 * godump.c (go_format_type): Output the first field with a usable
688 2011-05-25 Ian Lance Taylor <iant@google.com>
690 * godump.c (go_format_type): Check for invalid type names, pointer
691 target types, and struct field types.
693 2011-05-25 Jason Merrill <jason@redhat.com>
695 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
697 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
699 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
701 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
703 * config/i386/i386.md (*movqi_extv_1)): Put back
704 "register_operand" check in "type" calculation.
705 (*movqi_extzv_2): Likewise.
707 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
709 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
711 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
714 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
715 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
716 __divxc3, __divtc3): Wrap definitions in #ifndef.
718 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
721 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
722 "register_operand" check and replace q_regs_operand with
723 QIreg_operand in "type" calculation.
724 (*movqi_extv_1): Likewise.
725 (*movqi_extzv_2_rex64): Likewise.
726 (*movqi_extzv_2): Likewise.
728 * config/i386/predicates.md (QIreg_operand): New.
730 2011-05-25 Richard Guenther <rguenther@suse.de>
732 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
733 type-based offset disambiguation, streamline MEM_REF and
734 TARGET_MEM_REF handling.
736 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
738 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
739 (bdesc_special_args): Add pause intrinsic.
741 * config/i386/i386.md (UNSPEC_PAUSE): New.
744 * config/i386/ia32intrin.h (__pause): Likewise.
746 * doc/extend.texi (X86 Built-in Functions): Add documentation for
749 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
751 PR tree-optimization/46728
752 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
753 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
755 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
757 * tree.h (struct tree_exp): Inherit from struct tree_typed.
758 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
759 instead of TS_COMMON.
761 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
763 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
764 LIBGCC2_GNU_PREFIX is defined.
766 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
767 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
768 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
769 __clz_tab): Define using __N.
770 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
771 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
772 * target.def (libfunc_gnu_prefix): New hook.
773 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
774 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
775 * doc/tm.texi: Regenerate.
776 * system.h (LIBGCC2_GNU_PREFIX): Poison.
777 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
779 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
780 (init_optabs): Likewise for the bswap libfuncs.
781 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
783 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
784 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
785 * libgcc-std.ver: Remove.
786 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
787 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
789 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
790 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
791 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
792 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
793 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
794 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
795 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
796 * config/fixed-bit.h (FIXED_OP): Define differently depending on
797 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
798 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
800 2011-05-25 Jan Hubicka <jh@suse.cz>
802 * lto-streamer-out.c (output_record_start): Use lto_output_enum
803 (lto_output_tree): Use output_record_start.
804 * lto-streamer-in.c (input_record_start): Use lto_input_enum
805 (lto_get_pickled_tree): Use input_record_start.
806 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
807 (lto_value_range_error): New function.
808 * lto-streamer.h (lto_value_range_error): Declare.
809 (lto_output_int_in_range, lto_input_int_in_range): New functions.
810 (lto_output_enum, lto_input_enum): New macros.
812 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
814 * common.opt (flag_stack_usage_info): New variable.
815 (-Wstack-usage): New option.
816 * doc/invoke.texi (Warning options): Document -Wstack-usage.
817 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
818 <OPT_fstack_usage>: Likewise.
819 * toplev.c (output_stack_usage): Handle -Wstack-usage.
820 * calls.c (expand_call): Test flag_stack_usage_info variable instead
822 (emit_library_call_value_1): Likewise.
823 * explow.c (allocate_dynamic_stack_space): Likewise.
824 * function.c (instantiate_virtual_regs ): Likewise.
825 (prepare_function_start): Likewise.
826 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
827 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
828 * config/arm/arm.c (arm_expand_prologue): Likewise.
829 (thumb1_expand_prologue): Likewise.
830 * config/avr/avr.c (expand_prologue): Likewise.
831 * config/i386/i386.c (ix86_expand_prologue): Likewise.
832 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
833 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
834 * config/mips/mips.c (mips_expand_prologue): Likewise.
835 * config/pa/pa.c (hppa_expand_prologue): Likewise.
836 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
837 * config/s390/s390.c (s390_emit_prologue): Likewise.
838 * config/sh/sh.c (sh_expand_prologue): Likewise.
839 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
840 * config/spu/spu.c (spu_expand_prologue): Likewise.
842 2011-05-25 Richard Guenther <rguenther@suse.de>
844 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
845 (gimple_canonical_types_compatible_p): Likewise.
847 2011-05-25 Jan Hubicka <jh@suse.cz>
850 * ipa.c (function_and_variable_visibility): Only add to same
851 comdat group list if DECL_ONE_ONLY.
853 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
855 PR rtl-optimization/49014
856 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
858 2011-05-25 Jakub Jelinek <jakub@redhat.com>
861 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
863 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
865 PR rtl-optimization/48757
866 * ira-build.c (loop_with_eh_edge_p): Rename to
867 loop_with_complex_edge_p, check edges on complexity, make function
869 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
872 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
874 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
875 force flag_ira_share_save_slots to 0.
877 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
879 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
880 (vt_initialize): Set PROLOGUE_BB unconditionally.
881 Add block comment about CFA_BASE_RTX machinery.
882 Reset FP_CFA_OFFSET to -1 on all invalid paths.
883 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
885 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
888 * c-parser.c (c_parser_objc_class_instance_variables): More robust
889 parsing of syntax error in ObjC instance variable lists. In
890 particular, avoid an infinite loop if there is a stray ']'.
891 Updated error message.
893 2011-05-24 Ian Lance Taylor <iant@google.com>
895 * godump.c (go_define): Don't accept a string immediately after
898 2011-05-24 Ian Lance Taylor <iant@google.com>
900 * godump.c (struct godump_container): Add invalid_hash field.
901 (go_format_type): Return false if type is found in invalid_hash.
902 (go_output_typedef): Add invalid type to invalid_hash.
903 (go_finish): Create and delete invalid_hash.
905 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
907 PR tree-optimization/46728
908 * tree-ssa-math-opts.c (powi_table): New.
909 (powi_lookup_cost): New.
911 (powi_as_mults_1): New.
912 (powi_as_mults): New.
913 (gimple_expand_builtin_powi): New.
914 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
915 (gate_cse_sincos): Remove sincos/cexp restriction.
917 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
920 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
922 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
923 * mips-tdump.c: Likewise.
925 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
928 * config/i386/driver-i386.c (host_detect_local_cpu): Always
929 add -mno-XXX. Handle FMA.
931 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
933 PR rtl-optimization/48633
934 * ira-build.c (loop_with_eh_edge_p): New function.
935 (mark_loops_for_removal): Use it.
937 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
939 PR rtl-optimization/48971
940 * ira.c (setup_pressure_classes): Don't check register move cost
941 for classes with one registers. Don't add pressure class if there
942 is a pressure class with the same available hard registers.
943 Check contains_reg_of_mode. Fix a typo in collecting
944 temp_hard_regset. Ignore hard registers not belonging to a class.
946 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
949 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
951 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
952 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
954 PR gcov-profile/48845
955 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
957 2011-05-24 Richard Guenther <rguenther@suse.de>
959 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
960 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
961 (gimple_types_compatible_p_1): Adjust.
962 (iterative_hash_canonical_type): Do not bother about complete vs.
964 (gimple_canonical_types_compatible_p): Likewise.
966 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
968 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
970 2011-05-24 Richard Guenther <rguenther@suse.de>
973 * gimple.c (gimple_register_canonical_type): Revert
975 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
976 does not for a tree for the case where it matters. Cache
977 pointer-type alias-sets.
979 2011-05-24 Joseph Myers <joseph@codesourcery.com>
981 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
982 (OBJS): Remove options.o, opts-common.o and prefix.o.
983 (OBJS-libcommon-target): New.
984 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
985 (BACKEND): Include libcommon-target.a.
986 (MOSTLYCLEANFILES): Include libcommon-target.a.
987 (libcommon-target.a): New.
988 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
991 2011-05-23 Joseph Myers <joseph@codesourcery.com>
993 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
994 parts of output shared with the driver.
995 * optc-gen.awk: Don't generate parts of output not shared with the
997 * opth-gen.awk: Remove GCC_DRIVER conditionals.
998 * doc/options.texi (SourcerInclude): Mention options-save.c.
999 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1000 (OBJS): Add options-save.o.
1001 (options-save.c, options-save.o): New.
1002 (options.o): Update dependencies.
1003 (gcc-options.o): Remove.
1004 (mostlyclean): Remove options-save.c.
1006 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1009 * dbxout.c: Include cgraph.h.
1010 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1011 and without value expr, return NULL if no varpool node exists for
1012 it or if it is not needed.
1013 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1016 * c-decl.c (start_decl): Convert expr to void_type_node.
1018 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1020 PR rtl-optimization/48826
1021 * emit-rtl.c (try_split): When splitting a call that is followed
1022 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1024 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1026 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1027 parameters passed in memory prefer using DECL_INCOMING_RTL over
1028 the pseudos it will be copied into.
1030 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1033 * config/i386/i386.c (ix86_option_override_internal): Save the
1034 initial options after checking vzeroupper.
1036 2011-05-23 David Li <davidxl@google.com>
1038 PR tree-optimization/48988
1039 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1040 Initialize has_valid_pred for each pred chain.
1042 2011-05-23 Richard Guenther <rguenther@suse.de>
1044 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1045 (iterative_hash_gimple_type): Always hash type names.
1047 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1049 * c-typeck.c (build_function_call_vec): Tweak call to
1050 check_function_arguments.
1052 2011-05-23 Richard Guenther <rguenther@suse.de>
1054 PR tree-optimization/49115
1055 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1056 is not necessarily carried out, do not claim it kills the ref.
1057 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1059 2011-05-23 Richard Guenther <rguenther@suse.de>
1062 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1063 what pointer types we accept for folding.
1065 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1067 * gthr-gnat.c: Remove.
1068 * gthr-gnat.h: Remove.
1069 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1070 * config/t-freebsd (LIB2ADDEH): Likewise.
1071 * config/t-linux (LIB2ADDEH): Likewise.
1072 * config/t-sol2 (LIB2ADDEH): Likewise.
1073 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1074 * configure.ac (target_thread_file): Remove gnat handling.
1075 * configure: Regenerate.
1076 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1078 2011-05-23 Tristan Gingold <gingold@adacore.com>
1079 Eric Botcazou <ebotcazou@adacore.com>
1081 * gcov.c (create_file_names): If no object directory is specified,
1082 keep the directory of the file.
1084 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1086 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1087 * configure: Regenerate.
1089 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1092 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1093 failed and the comparison has a single bit signed type, use
1094 constm1_rtx instead of const1_rtx for true value.
1095 (do_store_flag): If ops->type is single bit signed type, disable
1096 signel bit test optimization and pass -1 instead of 1 as last
1097 parameter to emit_store_flag_force.
1099 2011-05-23 Tom de Vries <tom@codesourcery.com>
1102 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1104 (infer_loop_bounds_from_undefined): Use new function.
1106 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1108 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1109 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1110 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1112 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1114 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1116 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1117 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1120 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1122 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1124 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1126 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1127 UNSPEC_MOVE_PIC pattern.
1129 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1131 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1132 (sparc-*-rtems*): Likewise.
1133 (sparc64-*-elf*): Likewise.
1134 (sparc64-*-rtems*): Likewise.
1135 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1136 * config/sparc/t-crtin: New file.
1137 * config/sparc/t-sol2 (crti.o): Delete rule.
1139 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1140 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1141 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1142 (ENDFILE_SPEC): Add crtn.o.
1144 2011-05-22 Tom de Vries <tom@codesourcery.com>
1147 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1148 CODE_CONTAINS_STRUCT (TS_COMMON).
1150 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1153 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1154 only after deciding which mode to use.
1156 2011-05-22 Tom de Vries <tom@codesourcery.com>
1159 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1160 for call to get_shiftadd_cost.
1162 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1165 * config/i386/cpuid.h (bit_MMXEXT): New define.
1167 2011-05-22 Nick Clifton <nickc@redhat.com>
1169 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1170 initialisation of non-existant args[2] element. Use args[] array
1171 not arg[] array to pass arguments to build_function_type_list.
1173 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1175 PR tree-optimization/49087
1176 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1178 2011-05-21 Jason Merrill <jason@redhat.com>
1181 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1182 static storage duration.
1184 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1186 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1189 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1191 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1192 false if there are call-saved registers here...
1193 (sparc_can_use_return_insn_p): ...but here instead.
1194 (save_or_restore_regs): Fix thinko.
1195 (sparc_expand_prologue): Use current_function_is_leaf.
1196 (sparc_frame_pointer_required): Likewise.
1198 2011-05-21 Nick Clifton <nickc@redhat.com>
1201 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1203 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1205 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1206 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1208 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1210 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1211 * optc-gen.awk: Move common code to opt-read.awk.
1212 * opth-gen.awk: Likewise.
1213 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1215 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1217 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1219 2011-05-20 Tom de Vries <tom@codesourcery.com>
1222 * tree-ssa-loop-ivopts.c: Include expmed.h.
1223 (get_shiftadd_cost): New function.
1224 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1226 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1229 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1230 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1232 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1234 * Makefile.in: Update comment referring to $(OBJS-common).
1236 2011-05-20 Ian Lance Taylor <iant@google.com>
1238 * godump.c (go_output_typedef): Put enum constants in the macro
1239 hash table to avoid duplicate Go const definitions.
1241 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1243 * Makefile.in (LIBDEPS): Add libcommon.a.
1245 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1246 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1247 pretty-print.o and version.o.
1248 (OBJS-libcommon): New.
1249 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1250 (BACKEND): Add libcommon.a.
1251 (MOSTLYCLEANFILES): Likewise.
1253 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1254 (cpp$(exeext)): Likewise.
1255 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1256 pretty-print.o and input.o.
1257 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1258 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1260 (mips-tfile): Don't explicitly use version.o.
1261 (mips-tdump): Likewise.
1262 (gcov.o): Depend on $(DIAGNOSTIC_H).
1263 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1264 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1265 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1266 * gcov-dump.c: Include intl.h and diagnostic.h.
1267 (main): Initialize diagnostics.
1268 * gcov.c: Include diagnostic.h.
1270 (main): Initialize diagnostics.
1271 * lto-wrapper.c: Include diagnostic.h.
1272 (main): Initialize diagnostics.
1274 2011-05-20 Michael Matz <matz@suse.de>
1276 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1278 2011-05-20 Michael Matz <matz@suse.de>
1279 Richard Guenther <rguenther@suse.de>
1281 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1282 use lto_streamer_cache_append directly instead of returning a VEC.
1283 (preload_common_node): Remove.
1284 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1286 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1288 2011-05-20 Richard Guenther <rguenther@suse.de>
1290 PR tree-optimization/49079
1291 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1292 MEM_REFs correctly for the trailing array access detection.
1293 Special case constants the same way as decls for overall size
1296 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1298 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1301 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1303 PR tree-optimization/49073
1304 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1305 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1306 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1308 2011-05-20 Richard Guenther <rguenther@suse.de>
1311 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1312 of pointer types the same way the middle-end does.
1314 2011-05-20 Richard Guenther <rguenther@suse.de>
1316 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1317 or pointer-to chains. Delay all fixup to uniquify_nodes.
1319 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1321 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1322 (fma4_fmaddsub): Likewise
1324 2011-05-19 Jan Hubicka <jh@suse.cz>
1326 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1327 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1328 (type_pair_cache): New static var.
1329 (lookup_type_pair): Use fixed sized custom hash; make inline.
1330 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1331 calls of lookup_type_pair.
1332 (print_gimple_types_stats): Remove cache stats.
1333 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1336 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1338 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1339 when TARGET_RDRND is active.
1340 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1341 Generate dummy SImode target register when target is NULL.
1343 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1345 * config/arm/arm-fpus.def: New.
1346 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1348 * config/arm/arm-tables.opt: Regenerate.
1349 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1350 (arm_option_override): Don't decode FPU name to string here.
1351 * config/arm/arm.opt (mfpu=): Use Enum.
1352 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1353 Update dependencies.
1355 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1357 * collect2.c: Include diagnostic.h.
1358 (fatal_perror, fatal, error, fancy_abort): Remove.
1359 (main): Set progname. Call xmalloc_set_program_name and
1360 diagnostic_initialize.
1361 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1362 scan_libraries, resolve_lib_name): Call fatal_error instead of
1363 fatal and fatal_perror.
1364 * collect2.h (error, fatal, fatal_perror): Don't declare.
1365 * tlink.c: Include diagnostic-core.h.
1366 (recompile_files): Call fatal_error instead of fatal_perror.
1367 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1368 pretty-print.o and input.o.
1369 (collect2.o, tlink.o): Update dependencies.
1371 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1373 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1375 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1378 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1379 COMDAT group syntax, both SPARC and x86 variants.
1380 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1381 * configure: Regenerate.
1382 * config/sol2.h (TARGET_SOLARIS): Define.
1383 (PUSHSECTION_FORMAT): Remove.
1384 (SECTION_NAME_FORMAT): Define.
1385 * config/sol2.c: Include hashtab.h.
1386 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1387 expansion, using SECTION_NAME_FORMAT.
1388 (solaris_comdat_htab): New variable.
1389 (struct comdat_entry): Define.
1390 (comdat_hash): New function.
1391 (comdat_eq): New function.
1392 (solaris_elf_asm_comdat_section): New function.
1393 (solaris_define_comdat_signature): New function.
1394 (solaris_code_end): New function.
1395 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1396 (solaris_code_end): Declare.
1397 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1398 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1400 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1401 Remove ATTRIBUTE_UNUSED.
1402 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1403 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1404 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1405 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1406 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1407 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1408 (PUSHSECTION_FORMAT): Remove.
1409 (SECTION_NAME_FORMAT): Redefine.
1411 2011-05-19 Kai Tietz <ktietz@redhat.com>
1413 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1414 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1415 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1417 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1418 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1420 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1422 2011-05-19 Richard Guenther <rguenther@suse.de>
1425 * tree-object-size.c (addr_object_size): If the pointed-to
1426 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1428 2011-05-19 Richard Guenther <rguenther@suse.de>
1430 * gimple.c (gimple_types_compatible_p_1): Compare names of
1431 the types themselves.
1432 (iterative_hash_gimple_type): And hash them that way.
1433 (gimple_register_type_1): If we register a main variant properly
1434 initialize the leader to ourselves.
1436 2011-05-19 Tom de Vries <tom@codesourcery.com>
1439 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1440 get_loop_invariant_expr_id.
1441 (get_loop_invariant_expr_id): Use get_expr_id.
1442 (parm_decl_cost): New function.
1443 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1444 Improve bound cost estimation. Use different inv_expr_id for elim and
1447 2011-05-19 Tom de Vries <tom@codesourcery.com>
1450 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1451 cost_base.cost == 0.
1453 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1456 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1457 Properly handle load cast.
1459 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1461 PR tree-optimization/49039
1462 * tree-vrp.c (extract_range_from_binary_expr): For
1463 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1464 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1466 2011-05-18 Tom de Vries <tom@codesourcery.com>
1469 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1471 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1473 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1474 (*tls_global_dynamic_64): Ditto.
1475 (*tls_local_dynamic_base_32_gnu): Ditto.
1476 (*tls_local_dynamic_base_64): Ditto.
1477 (tls_initial_exec_64_sun): Ditto.
1479 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1481 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1482 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1484 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1485 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1486 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1487 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1488 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1489 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1490 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1492 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1494 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1495 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1496 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1497 target_thread_pointer, arm_structure_size_boundary, struct
1498 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1499 struct abi_name, arm_all_abis): Remove.
1500 (arm_option_override) Don't process most enumerated option values here.
1501 Don't process target_fpe_name here. Work with integer not string for
1502 structure size boundary; use separate diagnostics for each case.
1503 * config/arm/arm.h (enum float_abi_type, enum
1504 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1506 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1507 arm_structure_size_boundary): Remove.
1508 * config/arm/arm.opt (mabi=): Use Enum and Init.
1509 (arm_abi_type): New Enum and EnumValue entries.
1510 (mfloat-abi=): Use Enum and Init.
1511 (float_abi_type): New Enum and EnumValue entries.
1512 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1513 (mfp16-format=): Use Enum and Init.
1514 (arm_fp16_format_type): New Enum and EnumValue entries.
1515 (mstructure-size-boundary=): Use UInteger and Init.
1516 (mtp=): Use Enum and Init.
1517 (arm_tp_type): New Enum and EnumValue entries.
1519 2011-05-18 Richard Guenther <rguenther@suse.de>
1521 PR tree-optimization/49018
1522 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1523 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1524 gimple_has_side_effects.
1526 2011-05-18 Richard Guenther <rguenther@suse.de>
1528 * gimple.c (gimple_register_type_1): New function, split out from ...
1529 (gimple_register_type): ... here. Avoid infinite recursion.
1531 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1533 PR tree-optimization/41881
1534 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1535 reduction_chains along with a macro for its access.
1536 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1537 (destroy_loop_vec_info): Free reduction chains.
1538 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1539 (vect_is_slp_reduction): New function.
1540 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1541 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1542 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1543 definition types for reduction chains.
1544 (vect_supported_load_permutation_p): Don't allow permutations for
1546 (vect_analyze_slp_instance): Support reduction chains.
1547 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1548 (vect_get_constant_vectors): Handle reduction chains.
1549 (vect_schedule_slp_instance): Mark the first statement of the
1550 reduction chain as reduction.
1552 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1554 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1555 names for group elements access.
1556 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1557 reduction chains as well. Remove data reference and interleaving
1558 related words from the fields names.
1559 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1561 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1562 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1563 vect_update_interleaving_chain, vect_same_range_drs,
1564 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1565 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1566 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1567 vect_analyze_group_access, vect_analyze_data_ref_access,
1568 vect_create_data_ref_ptr, vect_transform_strided_load,
1569 vect_record_strided_load_vectors): Likewise.
1570 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1571 vect_model_load_cost, vectorizable_store, vectorizable_load,
1572 vect_remove_stores, new_stmt_vec_info): Likewise.
1573 * tree-vect-slp.c (vect_build_slp_tree,
1574 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1576 2011-05-18 Richard Guenther <rguenther@suse.de>
1579 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1580 operand verification.
1581 (verify_gimple_assign_binary): Likewise.
1582 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1583 to non-1-precision BOOLEAN_TYPEs.
1585 2011-05-18 Tom de Vries <tom@codesourcery.com>
1588 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1590 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1592 PR tree-optimization/49000
1593 * tree-ssa.c (execute_update_addresses_taken): Call
1594 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1595 be rewritten and decl has been marked for renaming, reset
1598 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1600 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1601 enum_opts_set when testing if attributes have set -mfpmath=.
1603 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1605 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1607 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1609 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1611 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1612 id.transform_lang_insert_block with NULL.
1614 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1616 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1617 (output_fp_compare): Change args 3 and 4 to bool.
1618 (ix86_expand_call): Change arg 6 to bool.
1619 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1620 (ix86_attr_length_vex_default): Change arg 3 to bool.
1621 * config/i386/i386.md: Update all uses.
1622 * config/i386/i386.c: Ditto.
1623 (ix86_flags_dependent): Change return type to bool.
1625 2011-05-17 Richard Guenther <rguenther@suse.de>
1627 * gimple.c (type_hash_pair_compare): Fix comparison.
1629 2011-05-17 Richard Guenther <rguenther@suse.de>
1631 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1632 case some more, fix final hash value of the non-singleton case.
1634 2011-05-17 Richard Guenther <rguenther@suse.de>
1638 2011-05-16 Richard Guenther <rguenther@suse.de>
1640 * gimple.c (gimple_types_compatible_p_1): Use names of the
1641 type itself, not its main variant.
1642 (iterative_hash_gimple_type): Likewise.
1644 2011-05-17 Richard Guenther <rguenther@suse.de>
1646 * gimple.c (gimple_register_canonical_type): Use the main-variant
1647 leader for computing the canonical type.
1649 2011-05-17 Nick Clifton <nickc@redhat.com>
1651 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1654 * config/rx/rx.md: Add peephole to remove redundant extensions
1656 (bitset_in_memory): Use rx_restricted_mem_operand.
1657 (bitinvert_in_memory): Likewise.
1658 (bitclr_in_memory): Likewise.
1660 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1661 Nick Clifton <nickc@redhat.com>
1663 * config/rx/rx.md: Add peepholes to match a register move followed
1664 by a comparison of the moved register. Replace these with an
1665 addition of zero that does both actions in one instruction.
1667 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1670 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1671 predicate to allow CONST_INT.
1672 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1674 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1676 * opts-common.c (opt_enum_arg_to_value): New.
1677 * opts.h (opt_enum_arg_to_value): Declare.
1678 * config/i386/i386.opt (fpmath): Remove.
1679 (mfpmath=): Use Enum, Init and Save.
1680 (fpmath_unit): New Enum and EnumValue entries.
1681 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1682 name for function fpmath state.
1683 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1684 * config/i386/i386.c: Include diagnostic.h.
1685 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1686 (ix86_target_string): Take enum fpmath_unit value instead of string.
1687 (ix86_debug_options): Update call to ix86_target_string.
1688 (ix86_option_override_internal): Don't process fpmath strings here.
1689 (x86_function_specific_save, ix86_function_specific_restore):
1690 Don't handle fpmath state specially.
1691 (ix86_function_specific_print): Pass fpmath state to
1692 ix86_target_string instead of printing in this function.
1693 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1694 Handle enum attributes.
1695 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1696 (ix86_valid_target_attribute_tree): Update option_strings
1697 handling. Handle fpmath as enum option.
1698 (ix86_can_inline_p): Update field names for function fpmath state.
1699 (ix86_expand_builtin): Update call to ix86_target_string.
1700 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1701 (ix86_fpmath): Remove.
1702 * config/i386/t-i386 (i386.o): Update dependencies.
1704 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1706 PR preprocessor/48677
1707 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1708 from decoded_options[0], not from itself.
1710 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1712 * config/i386/constraints.md (z): New constraint.
1713 * config/i386/i386.c (c): New mode attribute.
1714 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1715 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1716 constraint for operand 0.
1717 (*call_vzeroupper): Ditto.
1718 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1719 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1720 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1721 Use "lzm" constraint for operand 0.
1722 (*call_pop_vzeroupper): Ditto.
1723 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1724 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1725 constraint for operand 0.
1726 (*sibcall_vzeroupper): Ditto.
1727 (*sibcall_rex64_ms_sysv): Ditto.
1728 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1729 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1730 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1731 (*sibcall_pop_vzeroupper): Ditto.
1732 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1733 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1734 mode iterator. Use "<c>zm" constraint for operand 1.
1735 (*call_value_vzeroupper): Ditto.
1736 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1738 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1739 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1740 *call_value_pop_1. Use "lzm" constraint for operand 1.
1741 (*call_value_pop_vzeroupper): Ditto.
1742 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1743 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1744 mode iterator. Use "Uz" constraint for operand 1.
1745 (*sibcall_value_vzeroupper): Ditto.
1746 (*sibcall_value_rex64_ms_sysv): Ditto.
1747 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1748 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1749 constraint for operand 1.
1750 (*sibcall_value_pop_vzeroupper): Ditto.
1751 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1752 and "z" constraint for operand 2.
1753 (*tls_global_dynamic_32_gnu): Ditto.
1754 (*tls_local_dynamic_base_32_gnu): Ditto.
1755 (*tls_local_dynamic_base_64): Ditto.
1756 (*tls_local_dynamic_32_once): Ditto.
1757 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1759 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1761 2011-05-16 Richard Guenther <rguenther@suse.de>
1763 * gimple.c (gimple_types_compatible_p_1): Use names of the
1764 type itself, not its main variant.
1765 (iterative_hash_gimple_type): Likewise.
1767 2011-05-16 Richard Guenther <rguenther@suse.de>
1769 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1770 always visit pointer target and function result and argument types.
1772 2011-05-16 Jason Merrill <jason@redhat.com>
1775 * tree-inline.c (copy_statement_list): Put back recursion.
1777 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1781 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1782 * config/avr/avr.md ("*ior<mode>qi.byte0",
1783 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1785 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1788 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1789 register is needed for a function argument.
1791 2011-05-16 Richard Guenther <rguenther@suse.de>
1793 * gimple.c (struct type_hash_pair): New type.
1794 (type_hash_pair_compare): New function.
1795 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1797 2011-05-16 Revital Eres <revital.eres@linaro.org>
1799 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1801 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1803 * config/i386/i386.md (floating point move splitters): Fix
1804 usage of standard_80387_constant_p.
1805 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1807 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1809 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1811 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1813 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1814 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1815 (tree_ssa_lim_finalize): Likewise.
1817 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1819 * config/i386/constraint.md (Yd, Yx): New register constraints.
1820 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1821 Yd conditional register constraint.
1822 (*movtf_internal): Use standard_sse_constant_opcode.
1823 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1824 Yx conditional register constraint.
1825 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1826 Yd conditional register constraint. Use standard_sse_constant_p to
1827 check for valid SSE constants and call standard_sse_constant_opcode to
1829 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1830 constants and call standard_sse_constant_opcode to output SSE insn.
1831 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1832 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1833 optimize_size is set.
1834 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1836 2011-05-14 Tobias Burnus <burnus@net-b.de>
1838 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1840 2011-05-13 Martin Jambor <mjambor@suse.cz>
1842 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1843 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1844 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1845 (evaluate_conditions_for_ipcp_clone): Removed.
1846 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1847 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1848 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1850 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1852 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1853 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1854 lieu of MAY_HAVE_DEBUG_STMTS.
1855 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1856 debug statements if !MAY_HAVE_DEBUG_STMTS.
1858 2011-05-13 Martin Thuresson <martint@google.com>
1860 PR gcov-profile/47793
1861 * libgcov.c (gcov_exit): Support relative profile paths.
1862 * doc/invoke.texi (-fprofile-dir): Update for above change.
1864 2011-05-13 Richard Guenther <rguenther@suse.de>
1866 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1867 type-pair caching, do not compare hashes.
1869 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1872 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1873 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1875 2011-05-13 Kai Tietz <ktietz@redhat.com>
1877 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1878 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1879 compatible type for TRUTH_NOT_EXPR.
1881 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1883 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1884 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1885 can_create_pseudo_p ().
1887 2011-05-13 Richard Guenther <rguenther@suse.de>
1890 * gimple.c (iterative_hash_gimple_type): Revert change in
1891 pointer target and function result and argument hashing.
1893 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1895 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1896 (*movxf_internal_nointeger): Ditto.
1897 (*movdf_internal_rex64): Ditto.
1898 (*movdf_internal): Ditto.
1899 (*movdf_internal_nointeger): Ditto.
1900 (*movsf_internal): Ditto.
1901 (sincos splitters): Use can_create_pseudo ().
1903 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1905 * config/i386/i386-opts.h: New.
1906 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1907 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1908 ix86_section_threshold): Remove.
1909 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1910 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1912 (ix86_option_override_internal): Don't decode strings for options
1913 other than -march=, -mtune= and -mfpmath=. Don't allow for
1914 __attribute__ uses in remaining diagnostics for options with
1915 string arguments. Don't check for integer arguments being negative.
1916 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1917 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1918 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1919 ix86_branch_cost, ix86_section_threshold): Remove.
1920 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1922 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1924 (masm=): Use Enum and Init.
1925 (asm_dialect): New Enum and EnumValue entries.
1926 (mbranch-cost=): Use UInteger.
1927 (mlarge-data-threshold=): Use UInteger and Init.
1928 (mcmodel=): Use Enum and Init.
1929 (cmodel): New Enum and EnumValue entries.
1930 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1931 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1932 mregparm=): Use UInteger.
1933 (mstringop-strategy=): Use Enum and Init.
1934 (stringop_alg): New Enum and EnumValue entries.
1935 (mtls-dialect=): Use Enum and Init.
1936 (tls_dialect): New Enum and EnumValue entries.
1937 (mabi=): Use Enum and Init.
1938 (calling_abi): New Enum and EnumValue entries.
1939 (mveclibabi=): Use Enum and Init.
1940 (ix86_veclibabi): New Enum and EnumValue entries.
1942 2011-05-13 Nick Clifton <nickc@redhat.com>
1944 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1945 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1947 2011-05-13 Kai Tietz <ktietz@redhat.com>
1950 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1951 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1952 (gimple_boolify): Check for cast for boolean_type_node instead for
1955 2011-05-13 Richard Guenther <rguenther@suse.de>
1957 PR tree-optimization/48172
1958 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1959 multiplying by number of iterations for equal step.
1960 (vect_create_cond_for_alias_checks): Likewise.
1962 2011-05-13 Andreas Schwab <schwab@redhat.com>
1964 * configure.ac: Use AS_HELP_STRING throughout.
1965 * configure: Regenerate.
1967 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1969 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1970 (ix86_emit_restore_regs_using_mov): Likewise.
1971 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1973 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1975 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1976 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1977 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1978 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1979 RTX_OK_FOR_OLO10_P): ...here.
1980 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1983 2011-05-12 Kai Tietz <ktietz@redhat.com>
1985 * gimplify.c (gimple_boolify): Re-boolify expression
1986 arguments even if expression type is of kind BOOLEAN_TYPE.
1987 (gimplify_boolean_expr): Removed.
1988 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1989 and XOR. Additional take care that we keep expression's type.
1990 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1991 of TRUTH_AND|OR|XOR_EXPR.
1993 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1995 PR tree-optimization/48975
1996 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1997 on all bbs here and free and clear ifc_bbs at the end.
1999 2011-05-12 Richard Guenther <rguenther@suse.de>
2001 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2002 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2003 until after simple checks.
2004 (gimple_types_compatible_p): Likewise.
2005 (iterative_hash_gimple_type): Always hash pointer targets
2006 and function return and argument types.
2007 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2008 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2009 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2010 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2011 completely in the simple compare section.
2012 (gimple_register_canonical_type): Query the cache again after
2015 2011-05-12 Richard Guenther <rguenther@suse.de>
2017 PR tree-optimization/48172
2018 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2019 the number of iterations from the segment size calculation.
2020 (vect_create_cond_for_alias_checks): Adjust.
2022 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2025 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2026 if validate_subreg fails.
2028 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2030 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2031 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2034 2011-05-12 DJ Delorie <dj@redhat.com>
2036 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2037 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2038 created builtin into rx_builtins array.
2039 (rx_builtin_decl): New function.
2040 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2042 2011-05-12 DJ Delorie <dj@redhat.com>
2043 Nick Clifton <nickc@redhat.com>
2045 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2046 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2047 (rx_is_legitimate_address): Add pre-decrement and post-increment
2048 addressing in HImode and QImode. Fix test for out of range
2050 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2051 (rx_align_for_label): Test label before extracting its usage count.
2052 (rx_adjust_insn_lengths): Fix selection of insn codes.
2053 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2055 2011-05-11 Jason Merrill <jason@redhat.com>
2057 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2059 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2061 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2062 reindent the subsequent block.
2064 2011-05-11 Satoru Takabayashi <satorux@google.com>
2065 Paul Pluzhnikov <ppluzhnikov@google.com>
2067 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2068 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2069 * config.in: Add LINKER_HASH_STYLE.
2070 * configure.ac: Add --with-linker-hash-style.
2071 * configure: Regenerate.
2073 2011-05-11 Richard Guenther <rguenther@suse.de>
2076 * gimple.c (iterative_hash_canonical_type): Fix typo.
2078 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2080 * config/i386/i386.c (legitimize_tls_address)
2081 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2082 expanders directly for TARGET_GNU2_TLS. Determine pic and
2083 __tls_get_addr symbol reference here. Update call to
2084 gen_tls_global_dynamic_{32,64} for added arguments.
2085 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2086 expanders directly for TARGET_GNU2_TLS. Determine
2087 __tls_get_addr symbol reference here. Update call to
2088 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2089 unique UNSPEC REG_EQUIV to libcall block.
2090 (ix86_tls_get_addr): Declare static.
2091 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2092 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2093 Do not determine pic and __tls_get_addr symbol reference here. Do not
2094 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2095 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2096 (tls_global_dynamic_64): Add operand 2. Do not determine
2097 __tls_get_addr symbol reference here. Do not call
2098 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2099 (tls_local_dynamic_base64): Ditto for operand 1.
2101 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2103 * function.c (expand_function_start): Initialize stack_check_probe_note
2104 only if the generic stack checking mechanism is used.
2106 2011-05-11 Richard Guenther <rguenther@suse.de>
2108 PR tree-optimization/15256
2109 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2110 (A & B) | C, combine (A op CST1) op CST2.
2111 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2112 visit assigns that have uses.
2114 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2116 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2117 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2118 (unpack_ts_type_common_value_fields): ...this. Update comment.
2119 (unpack_value_fields): Adjust for renaming.
2120 (lto_input_ts_type_tree_pointers): Split into...
2121 (lto_input_ts_type_common_tree_pointer): ...this and...
2122 (lto_input_ts_type_non_common_tree_pointers): ...this.
2123 (lto_input_tree_pointers): Adjust for above split.
2124 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2125 (pack_ts_type_common_value_fields): ...this. Update comment.
2126 (lto_output_ts_type_tree_pointers): Split into...
2127 (lto_output_ts_type_common_tree_pointers): ...this and...
2128 (lto_output_ts_type_non_common_tree_pointers): ...this.
2129 (lto_output_tree_pointers): Adjust for above split.
2130 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2131 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2132 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2133 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2135 (struct tree_type): Split into...
2136 (struct tree_type_common: ...this and...
2137 (struct tree_type_with_lang_specific): ...this and...
2138 (struct tree_type_non_common): ...this. Adjust accessor macros
2140 (TYPE_VALUES_RAW): Define.
2141 (union tree_node): Update for above changes.
2142 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2144 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2145 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2146 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2147 * treestructu.def (TS_TYPE): Remove.
2148 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2151 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2154 * tree-ssa.c (reset_debug_uses): New function.
2155 * tree-flow.h (reset_debug_uses): New prototype.
2156 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2157 * tree-loop-distribution.c (generate_loops_for_partition): Call
2158 reset_debug_uses on the stmts that will be removed. Keep around
2159 all debug stmts, don't count them as bits in partition bitmap.
2160 (generate_builtin): Don't count debug stmts or labels as bits in
2163 2011-05-11 Richard Guenther <rguenther@suse.de>
2165 * gimple.c (gimple_type_hash_1): Merge with ...
2166 (gimple_type_hash): ... this.
2167 (gtc_visit): Remove mode parameter and simplify accordingly.
2168 (gimple_types_compatible_p_1): Likewise.
2169 (gimple_types_compatible_p): Likewise.
2170 (iterative_hash_gimple_type): Likewise.
2172 (gimple_type_eq): Adjust.
2174 2011-05-11 Revital Eres <revital.eres@linaro.org>
2176 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2177 enters the branch create an anti edge in the opposite direction
2178 to prevent the creation of reg-moves.
2179 * modulo-sched.c: Adjust comment to reflect the fact we are
2180 scheduling closing branch.
2181 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2182 (stage_count): New field in struct partial_schedule.
2183 (calculate_stage_count): New function.
2184 (normalize_sched_times): Rename to reset_sched_times and handle
2185 incrementing the sched time of the nodes by a constant value
2186 passed as parameter.
2187 (duplicate_insns_of_cycles): Skip closing branch.
2188 (sms_schedule_by_order): Schedule closing branch.
2189 (ps_insn_find_column): Handle closing branch.
2190 (sms_schedule): Call reset_sched_times and adjust the code to
2191 support scheduling of the closing branch.
2192 (ps_insert_empty_row): Update calls to normalize_sched_times
2193 and rotate_partial_schedule functions.
2195 2011-05-11 Richard Guenther <rguenther@suse.de>
2198 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2200 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2202 * opts.c (finish_options): Move warning settings from process_options.
2203 * toplev.c (process_options): Move warning settings to finish_options.
2205 2011-05-11 Richard Guenther <rguenther@suse.de>
2207 PR tree-optimization/18041
2208 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2209 (simplify_bitwise_binary): ... this. Handle operand conversions
2210 by applying them to the result instead.
2211 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2213 2011-05-11 Richard Guenther <rguenther@suse.de>
2215 * gimple.c (gimple_canonical_types_compatible_p): Split out
2216 from gimple_types_compatible_p and friends. Do not recurse
2217 to pointed-to types.
2218 (gimple_canonical_type_eq): Use it.
2219 (iterative_hash_canonical_type): Split out from
2220 iterative_hash_gimple_type and friends. Do not recurse
2221 to pointed-to types.
2222 (gimple_canonical_type_hash): Use it, allocate the hash here.
2224 2011-05-11 Revital Eres <revital.eres@linaro.org>
2226 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2229 2011-05-11 Revital Eres <revital.eres@linaro.org>
2231 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2232 instead of PREV_INSN.
2234 2011-05-11 Revital Eres <revital.eres@linaro.org>
2236 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2237 * loop-doloop.c (doloop_condition_get): Likewise.
2238 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2240 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2242 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2244 * tree.def (CASE_LABEL_EXPR): Add an operand.
2245 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2247 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2249 * c-decl.c (c_override_global_bindings_to_false): Remove.
2250 (global_bindings_p): Don't check
2251 c_override_global_bindings_to_false.
2252 * c-tree.h (c_override_global_bindings_to_false): Remove.
2253 * c-typeck.c (composite_type): Don't set
2254 c_override_global_bindings_to_false.
2256 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2258 PR target/48857, 48495
2259 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2261 (VSX_MOVE_MODE): Ditto.
2262 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2263 VSX vector types. Add V2DImode.
2264 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2265 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2266 (MODES_TIEABLE_P): Ditto.
2268 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2269 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2271 (init_cumulative_args): Ditto.
2272 (rs6000_function_arg_boundary): Ditto.
2273 (rs6000_function_arg_advance_1): Ditto.
2274 (rs6000_function_arg): Ditto.
2275 (rs6000_function_ok_for_sibcall): Ditto.
2276 (emit_frame_save): Ditto.
2277 (rs6000_function_value): Ditto.
2278 (rs6000_libcall_value): Ditto.
2280 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2282 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2283 i386/darwin-lib.h to $libgcc_tm_file.
2284 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2286 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2288 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2290 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2292 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2293 * config/rs6000/rs6000-tables.opt: New file (generated).
2294 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2295 rs6000/rs6000-tables.opt to extra_options.
2296 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2297 * config/rs6000/rs6000.c (rs6000_select): Remove.
2298 (processor_target_table): Move contents to rs6000-cpus.def.
2299 (darwin_rs6000_override_options): Check
2300 global_options_set.x_rs6000_cpu_index instead of
2301 rs6000_select[1].string.
2302 (rs6000_option_override_internal): Likewise.
2303 (rs6000_handle_option): Don't assert that global structures are in
2304 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2305 (rs6000_default_cpu): New variable.
2306 (rs6000_file_start): Set it instead of local default_cpu. Check
2307 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2308 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2309 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2310 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2311 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2312 rs6000_select): Remove.
2313 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2315 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2316 * config/rs6000/t-rs6000
2317 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2318 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2319 global_options_set.x_rs6000_cpu_index instead of
2320 rs6000_select[1].string.
2321 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2322 global_options_set.x_rs6000_cpu_index instead of
2323 rs6000_select[1].string.
2325 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2327 * config.gcc (libgcc_tm_file): Define instead of including files
2328 from ../../libgcc/config/ in tm_file.
2329 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2330 * configure: Regenerate.
2331 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2332 libgcc_tm.h, cs-libgcc_tm.h): New.
2333 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2334 (clean): Remove libgcc_tm.h.
2335 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2336 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2337 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2339 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2342 * config/avr/avr.c (avr_ret_register): Return unsigned int
2344 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2345 it to avr_libcall_value.
2346 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2348 (avr_expand_binop_builtin): Ditto.
2349 (avr_expand_unop_builtin): Ditto.
2351 2011-05-10 DJ Delorie <dj@redhat.com>
2353 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2354 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2355 * config/rx/rx.c (rx_align_for_label): Add label and
2356 uses_threshold parameters. Do not align when the label is not
2358 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2360 2011-05-10 Richard Guenther <rguenther@suse.de>
2362 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2363 a series of conversions and apply foldings similar to what
2365 (tree_ssa_forward_propagate_single_use_vars): Call it.
2367 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2369 PR tree-optimization/48611
2370 PR tree-optimization/48794
2371 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2372 referenced from RESX or EH_DISPATCH arguments.
2375 * dfp.c (decimal_to_decnumber): Handle conversion from
2376 dconst{1,2,m1,half}.
2378 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2380 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2381 for !flag_prefer_avx128.
2382 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2384 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2386 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2387 (fold_ternary_loc): Use expr_location_or.
2389 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2392 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2393 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2394 Pmode and mem_mode is not VOIDmode.
2396 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2398 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2399 TYPE_QUAL_RESTRICT): Convert to enum.
2401 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2403 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2404 (const_pow2_1_to_8_operand): Ditto.
2405 (const_pow2_1_to_128_operand): Ditto.
2406 (const_pow2_1_to_32768_operand): Ditto.
2407 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2408 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2409 in insn constraint to check integer value of operand 3.
2410 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2412 (PINSR_MODE): New mode iterator.
2413 (sse2p4_1): New mode attribute.
2414 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2415 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2416 iterator. Use const_int_operand instead of
2417 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2418 exact_log2 in insn constraint to check integer value of operand 3.
2420 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2422 * config/i386/sse.md (blendbits): Remove mode attribute.
2423 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2424 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2425 Check integer value of operand 3 in insn constraint.
2427 2011-05-09 Richard Guenther <rguenther@suse.de>
2429 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2431 (lto_symtab_merge): Likewise. Do not register types here.
2432 (lto_symtab_merge_decls_2): Likewise.
2433 (lto_symtab_merge_decls_1): Likewise.
2434 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2435 * gimple.c (enum gtc_mode): Declare.
2436 (gimple_types_compatible_p): Make static.
2438 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2440 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2441 temporary register to match Pmode.
2443 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2445 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2446 and *vec_concatv4si_1_avx.
2448 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2450 PR rtl-optimization/48927
2451 * ira-conflicts.c (commutative_constraint_p): Use
2452 recog_data.alternative_enabled_p to disable alternatives where
2453 "enabled" attribute is false.
2454 (get_dup_num): Ditto.
2455 * ira-lives.c (single_reg_class): Ditto.
2456 (ira_implicitly_set_insn_hard_regs): Ditto.
2458 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2460 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2461 (dataflow_set_preserve_mem_locs): Likewise.
2463 2011-05-09 Philipp Thomas <pth@suse.de>
2465 * config/mep/mep.c (mep_validate_vliw): Syntax description
2466 should not be translated.
2468 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2470 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2471 * config/mips/mips-tables.opt: New file (generated).
2472 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2473 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2474 MIPS_ARCH_OPTION_NATIVE): Define.
2475 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2477 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2478 mips_parse_cpu): Remove.
2479 (mips_cpu_info_from_opt, mips_default_arch): New.
2480 (mips_handle_option): Don't assert that global structures are in
2481 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2482 (mips_option_override): Use new variables and functions to set
2483 state of these options. Use strcmp to check for individual CPU names.
2484 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2486 * config/mips/mips.opt (march=): Use ToLower and Enum.
2487 (mips): Use ToLower, Enum and Var.
2488 (mtune=): Use ToLower and Enum.
2489 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2491 2011-05-08 Jan Hubicka <jh@suse.cz>
2493 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2494 Arrange type pairs to be UID ordered.
2495 (gimple_lookup_type_leader): Make inline.
2497 2011-05-09 Nick Clifton <nickc@redhat.com>
2500 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2504 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2507 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2509 * combine.c (simplify_comparison): Abstract out parts into...
2510 (simplify_compare_const): ... new function.
2511 (try_combine): Generalize parallel arithmetic/compare combining
2512 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2514 2011-05-08 Jan Hubicka <jh@suse.cz>
2516 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2517 (cgraph_create_virtual_clone): Call hooks once virtual clone
2519 * cgraph.h (cgraph_clone_node): Update prototype.
2520 * ipa-cp.c (ipcp_estimate_growth): Use
2521 estimate_ipcp_clone_size_and_time.
2522 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2523 * lto-cgraph.c (input_node): Update.
2524 * ipa-inline.c (recursive_inlining): Update.
2525 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2526 (evaluate_conditions_for_known_args): Break out from ...
2527 (evaluate_conditions_for_edge): ... here.
2528 (evaluate_conditions_for_ipcp_clone): New function.
2529 (inline_node_duplication_hook): Update clone summary based
2531 (estimate_callee_size_and_time): Rename to ...
2532 (estimate_node_size_and_time): take NODE instead of EDGE;
2533 take POSSIBLE_TRUTHS as argument.
2534 (estimate_callee_size_and_time): Update.
2535 (estimate_ipcp_clone_size_and_time): New function.
2536 (do_estimate_edge_time): Update.
2538 2011-05-08 Richard Guenther <rguenther@suse.de>
2542 * expmed.c (expand_shift_1): Compute adjusted constant shift
2545 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2547 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2549 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2551 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2553 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2555 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2557 2011-05-07 Jan Hubicka <jh@suse.cz>
2559 * ipa-inline-transform.c (inline_call): Account when program size
2561 * ipa-inline.c (relative_time_benefit): New function.
2562 (edge_badness): Reorganize to be power 2 based; fix thinko when
2563 computing badness for negative growth; update comments to match
2564 reality; better dumps.
2566 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2568 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2569 type to bool and adjust comment.
2570 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2571 (fold_mathfn_compare): Remove calls to global_bindings_p.
2572 (fold_inf_compare): Likewise.
2573 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2574 * c-tree.h (global_bindings_p): Adjust prototype.
2575 * c-decl.c (global_bindings_p): Return bool and simplify.
2577 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2579 PR tree-optimization/48837
2580 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2581 when accumulator transformation is performed.
2583 2011-05-06 Jan Hubicka <jh@suse.cz>
2585 * i386.h (ix86_tune_indices): Add
2586 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2587 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2588 * i386.c (initial_ix86_tune_features): Add
2589 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2590 (software_prefetching_beneficial_p): Remove predicate.
2591 (ix86_option_override_internal): Use new macro.
2593 2011-05-06 Jan Hubicka <jh@suse.cz>
2595 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2597 2011-05-06 Jan Hubicka <jh@suse.cz>
2599 * cgraph.c (cgraph_add_thunk): Create real function node instead
2600 of alias node; finalize it and mark needed/reachale; arrange visibility
2601 to be right and add it into the corresponding same comdat group list.
2602 (dump_cgraph_node): Dump thunks.
2603 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2604 cgraph_function_with_gimple_body_p,
2605 cgraph_first_function_with_gimple_body,
2606 cgraph_next_function_with_gimple_body): New functions.
2607 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2609 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2610 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2611 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2612 devirtualization when optimizing.
2613 (verify_cgraph_node): Verify thunks.
2614 (cgraph_analyze_function): Analyze thunks.
2615 (cgraph_mark_functions_to_output): Output thunks only in combination
2616 with function they are assigned to.
2617 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2618 alias into normal node.
2619 (assemble_thunks): New functoin.
2620 (cgraph_expand_function): Use it.
2621 * lto-cgraph.c (lto_output_node): Stream thunks.
2622 (input_overwrite_node): Stream in thunks.
2623 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2624 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2625 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2626 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2627 (inline_analyze_function): Do not care about thunk jump functions.
2628 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2629 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2630 cgraph_function_with_gimple_body_p.
2631 * passes.c (do_per_function_toporder): Use
2632 cgraph_function_with_gimple_body_p.
2633 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2634 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2635 (function_called_by_processed_nodes_p): Likewise.
2637 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2639 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2640 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2642 (mabi=): Replace with separate entries for mabi=altivec,
2643 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2644 mabi=ieeelongdouble and mabi=ibmlongdouble.
2645 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2646 check for -mabi=spe without SPE ABI support here.
2647 (rs6000_handle_option): Replace OPT_mabi_ handling with
2648 OPT_mabi_altivec and OPT_mabi_spe handling.
2650 2011-05-06 Cary Coutant <ccoutant@google.com>
2652 * dwarf2out.c (contains_subprogram_definition): New function.
2653 (should_move_die_to_comdat): Call it.
2655 2011-05-06 Jeff Law <law@redhat.com>
2657 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2658 remove_ctrl_stmt_and_useless_edges.
2659 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2660 (fixup_template_block, thread_single_edge): Likewise.
2661 (mark_threaded_blocks): Use THREAD_TARGET.
2663 2011-05-06 Alan Modra <amodra@gmail.com>
2666 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2667 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2669 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2671 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2672 constraint modifier to "r".
2674 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2676 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2677 fall through for OPT_mcmodel_.
2679 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2681 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2683 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2685 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2688 * config/arm/arm.opt (marm): Document it.
2689 (mthumb): Reject negative variant.
2691 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2694 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2695 Fix typo in "ccvt" variable name.
2697 2011-05-06 Tristan Gingold <gingold@adacore.com>
2700 * config/vms/vms-ar.c (main): Remove cwd variable.
2702 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2705 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2707 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2709 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2710 * gimplify.c (gimplify_switch_expr): Likewise.
2711 * omp-low.c (expand_omp_sections): Likewise.
2712 * tree-eh.c (lower_try_finally_switch): Likewise.
2713 (lower_eh_dispatch): Likewise.
2714 * tree.h (build_case_label): Declare.
2715 * tree.c (build_case_label): Define.
2717 2011-05-05 Jason Merrill <jason@redhat.com>
2720 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2721 (copy_statement_list): Don't recurse.
2722 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2725 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2727 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2728 through from -mfpu= handling.
2729 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2731 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2733 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2736 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2738 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2740 (hppa[12]*-*-hpux11*): Ditto.
2741 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2742 * config/ia64/hpux-unix2003.h: New.
2743 * config/pa/pa-hpux1131.opt: New.
2744 * config/pa/pa-hpux1131.h: New.
2745 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2746 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2747 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2749 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2752 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2753 instead of mode as 3rd argument to recursive call.
2754 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2755 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2757 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2758 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2759 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2760 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2762 2011-05-05 Julian Brown <julian@codesourcery.com>
2764 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2765 parenthesis in D-register case.
2767 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2769 * opt-functions.awk (var_type_struct): Handle Enum options.
2770 * optc-gen.awk: Don't check range of variables of character type.
2771 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2772 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2773 rs6000_sdata_name, rs6000_explicit_options): Remove.
2774 (rs6000_option_override_internal): Check for -malign-power here.
2775 Use global_options_set instead of rs6000_explicit_options.
2776 (rs6000_parse_fpu_option): Remove.
2777 (rs6000_handle_option): Access variables via opts and opts_set
2778 pointers. Use error_at and warning_at. Add fall-through
2779 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2780 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2781 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2782 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2783 here. Don't use rs6000_parse_fpu_option.
2784 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2785 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2786 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2788 (mspe): Use Var and Save.
2789 (mtraceback=): Use Enum and Var.
2790 (rs6000_traceback_type): New Enum and EnumValue entries.
2791 (mfloat-gprs=): Use Enum, Var and Save.
2792 (rs6000_float_gprs): New Enum and EnumValue entries.
2793 (mlong-double-): use Var and Save.
2794 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2795 (malign-): Use Enum and Var.
2796 (rs6000_alignment_flags): New Enum and EnumValue entries.
2798 (fpu_type_t): New Enum and EnumValue entries.
2799 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2800 global_options_set instead of rs6000_explicit_options.
2801 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2802 global_options_set instead of rs6000_explicit_options.
2803 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2804 global_options_set instead of rs6000_explicit_options.
2805 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2806 global_options_set instead of rs6000_explicit_options.
2807 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2808 global_options_set instead of rs6000_explicit_options.
2809 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2810 global_options_set instead of rs6000_explicit_options.
2811 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2813 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2814 global_options_set instead of rs6000_explicit_options.
2815 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2816 (rs6000_cmodel): New Enum and EnumValue entries.
2817 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2818 global_options_set instead of rs6000_explicit_options.
2819 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2820 (mtls-size=): Use Enum and Var.
2821 (rs6000_tls_size): New Enum and EnumValue entries.
2823 2011-05-05 Michael Matz <matz@suse.de>
2825 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2826 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2827 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2828 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2829 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2830 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2831 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2832 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2833 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2834 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2835 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2836 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2837 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2838 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2839 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2840 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2842 2011-05-05 Richard Guenther <rguenther@suse.de>
2844 * expmed.c (expand_variable_shift): Rename to ...
2845 (expand_shift_1): ... this. Take an expanded shift amount.
2846 For rotates recurse directly not building trees for the shift amount.
2847 (expand_variable_shift): Wrap around expand_shift_1.
2848 (expand_shift): Adjust.
2850 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2852 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2854 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2856 * tree.h (get_pending_sizes): Remove prototype.
2857 (put_pending_size): Likewise.
2858 (put_pending_sizes): Likewise.
2859 * stor-layout.c (pending_sizes): Delete.
2860 (get_pending_sizes): Likewise.
2861 (put_pending_size): Likewise.
2862 (put_pending_sizes): Likewise.
2863 (variable_size): Do not call put_pending_size and tidy up.
2864 * function.h (struct function): Remove dont_save_pending_sizes_p.
2865 * lto-streamer-in.c (input_function): Do not stream it.
2866 * lto-streamer-out.c (output_function): Likewise.
2867 * tree-inline.c (initialize_cfun): Do not copy it.
2868 * c-decl.c (store_parm_decls): Do not set it.
2869 * omp-low.c (create_task_copyfn): Likewise.
2870 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2872 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2874 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2876 (*movdf_internal): Ditto.
2877 (*movdf_internal_nointeger): Ditto.
2878 (*movsf_internal): Ditto.
2880 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2882 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2883 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2884 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2885 (c_variable_size): Remove.
2886 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2887 call put_pending_sizes.
2888 (get_parm_info): Add parameter expr. Use it to set
2889 arg_info->pending_sizes.
2890 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2892 * c-parser.c (c_parser_parms_declarator): Update call to
2893 c_parser_parms_list_declarator.
2894 (c_parser_parms_list_declarator): Take parameter expr. Update
2895 call to push_parm_decl. Update recursive call. Don't call
2896 get_pending_sizes. Update calls to get_parm_info.
2897 (c_parser_objc_method_definition): Update calls to
2898 c_parser_objc_method_decl and objc_start_method_definition.
2899 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2900 (c_parser_objc_method_decl): Add parameter expr. Update call to
2902 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2903 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2904 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2906 2011-05-05 Michael Hope <michael.hope@linaro.org>
2909 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2912 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2914 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2915 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2916 (spu_output_mi_thunk): New function.
2918 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2920 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2921 targetm.asm_out.print_operand.
2922 * config/sol2.c: Include target.h.
2924 2011-05-04 Jan Hubicka <jh@suse.cz>
2926 * ipa-inline.c (reset_edge_caches): New function.
2927 (update_caller_keys): Add check_inlinablity_for; do not
2928 reset edge caches; remove now unnecesary loop.
2929 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2930 (update_all_callee_keys): Likewise.
2931 (inline_small_functions): Sanity check cache; update code
2934 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2936 PR rtl-optimization/47612
2937 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2938 as the last insn of the sequence to be moved.
2940 2011-05-04 Tobias Burnus <burnus@net-b.de>
2943 * doc/invoke.texi (Ofast): Document that it
2944 enables Fortran's -fno-protect-parens.
2946 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2948 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2950 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2952 * stor-layout.c (variable_size): Do not issue errors.
2954 2011-05-04 Richard Guenther <rguenther@suse.de>
2956 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2957 for array-ref indices.
2958 (tree_coverage_counter_addr): Likewise.
2959 (build_fn_info_type): Use size_int for index types.
2960 (build_gcov_info): Likewise.
2962 2011-05-04 Richard Guenther <rguenther@suse.de>
2964 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2966 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2967 for constructor indices.
2968 (push_init_level): Likewise.
2970 2011-05-04 Richard Guenther <rguenther@suse.de>
2972 * explow.c (promote_mode): Move variable declarations before code.
2974 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2976 * tree.h (build_function_type_array): Declare.
2977 (build_varargs_function_type_array): Declare.
2978 (build_function_type_vec, build_varargs_function_type_vec): Define.
2979 * tree.c (build_function_type_array_1): New function.
2980 (build_function_type_array): New function.
2981 (build_varargs_function_type_array): New function.
2983 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2985 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2986 before setting STMT_VINFO_TYPE.
2988 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2990 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2991 instead of spu_pass_by_reference.
2993 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2995 * calls.c (emit_library_call_value_1): Invoke
2996 promote_function_mode hook on libcall arguments.
2997 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2998 argument being NULL.
2999 * targhooks.c (default_promote_function_mode): Lisewise.
3000 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3001 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3003 * doc/tm.texi: Document that TYPE argument might be NULL.
3005 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3007 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3009 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3012 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3014 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3016 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3017 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3019 * mips-tfile.c: ... here.
3020 Don't include coretypes.h, tm.h, filenames.h.
3021 (saber_stop): Remove definition and all calls.
3022 [__SABER__]: Remove.
3023 (__LINE__): Remove default.
3024 (Size_t, Ptrdiff_t): Remove definitions.
3025 Replace by size_t, ptrdiff_t.
3026 [!MIPS_DEBUGGING_INFO]: Remove.
3027 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3028 (progname): Add const.
3030 Replace all uses by static.
3031 (ALIGN_SYMTABLE_OFFSET): Remove default.
3032 * mips-tdump.c: Don't include coretypes.h, tm.h.
3033 Remove !MIPS_IS_STAB guard.
3034 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3035 $(TM_H), filenames.h dependencies.
3036 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3038 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3041 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3042 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3044 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3047 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3048 account and save/restore RETS.
3049 (PROFILE_BEFORE_PROLOGUE): Define.
3050 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3051 the push insn to use predecrement.
3053 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3056 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3058 2011-05-04 Nick Clifton <nickc@redhat.com>
3060 * config/mn10300/mn10300.c: Include cfgloop.h.
3062 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3063 Lcc or a FLcc insn into the instruction stream.
3064 (mn10300_block_contains_call): New function. Returns true if the
3065 given basic block contains a CALL insn.
3066 (mn10300_loop_contains_call_insn): New function. Returns true if
3067 the given loop contains a CALL insn.
3068 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3069 to use the SETLB and Lcc or FLcc insns.
3070 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3071 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3072 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3073 disable the SETLB optimization.
3074 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3075 __SETLB__ or __NO_SETLB__.
3076 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3077 (movsf_internal): Handle MDR register.
3078 (cmpsi): Make visible.
3079 (setlb): New pattern.
3081 (FLcc): New pattern.
3083 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3086 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3087 for reg<->xmm moves.
3088 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3089 (vec_concatv2di_rex64_sse): Ditto.
3090 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3091 (*vec_extractv2di_1_rex64): Ditto.
3094 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3096 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3098 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3100 2011-05-04 Richard Guenther <rguenther@suse.de>
3102 * tree.h (int_const_binop): Remove notrunc argument.
3103 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3104 create integer constants that are properly truncated.
3105 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3106 (const_binop): Remove zero notrunc argument to int_const_binop.
3107 (size_binop_loc): Likewise.
3108 (fold_div_compare): Likewise.
3109 (maybe_canonicalize_comparison_1): Likewise.
3110 (fold_comparison): Likewise.
3111 (fold_binary_loc): Likewise.
3112 (multiple_of_p): Likewise.
3113 * expr.c (store_constructor): Likewise.
3114 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3115 (maybe_fold_stmt_addition): Likewise.
3116 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3117 * stor-layout.c (layout_type): Likewise.
3118 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3119 * tree-sra.c (build_ref_for_offset): Likewise.
3120 (build_user_friendly_ref_for_offset): Likewise.
3121 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3122 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3123 * tree-ssa-loop-niter.c (inverse): Likewise.
3124 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3125 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3126 * tree-switch-conversion.c (check_range): Likewise.
3127 (build_constructors): Likewise.
3128 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3129 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3130 (extract_range_from_assert): Likewise.
3131 (vrp_int_const_binop): Likewise.
3132 (extract_range_from_binary_expr): Likewise.
3133 (extract_range_from_unary_expr): Likewise.
3134 (check_array_ref): Likewise.
3135 (find_case_label_range): Likewise.
3136 (simplify_div_or_mod_using_ranges): Likewise.
3137 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3138 comparing case labels for merging.
3140 2011-05-03 Mark Wielaard <mjw@redhat.com>
3142 * dwarf2out.c (debug_str_hash_forced): Removed.
3143 (gen_label_for_indirect_string): Removed.
3144 (get_debug_string_label): Removed.
3145 (AT_string_form): Generate label directly.
3146 (output_indirect_string): Test indirect_string_node for
3147 DW_FORM_strp instead of checking label and refcount.
3148 (prune_indirect_string): Removed.
3149 (prune_unused_types): Don't check debug_str_hash_forced or
3150 call prune_indirect_string.
3152 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3155 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3157 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3161 * combine.c (try_combine): Skip debug insns at m_split tests.
3163 2011-04-26 Mark Wielaard <mjw@redhat.com>
3166 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3167 when info_section_emitted.
3169 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3171 * config/mips/mips-opts.h: New.
3172 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3174 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3175 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3176 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3178 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3180 (mips_abi, mips_code_readable): Don't declare.
3181 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3182 (mabi=): Use Enum and Var.
3183 (mips_abi): New Enum and EnumValue entries.
3184 (mcode-readable=): Use Enum and Var.
3185 (mips_code_readable_setting): New Enum and EnumValue entries.
3186 (mr10k-cache-barrier=): Use Enum and Var.
3187 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3189 2011-05-03 Jan Hubicka <jh@suse.cz>
3191 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3192 replace hash by pointer map.
3193 (cgraph_node_set_element_def, cgraph_node_set_element,
3194 const_cgraph_node_set_element, varpool_node_set_element_def,
3195 varpool_node_set_element, const_varpool_node_set_element): Remove.
3196 (free_cgraph_node_set, free_varpool_node_set): New function.
3197 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3198 * tree-emutls.c: Free varpool node set.
3199 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3200 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3201 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3202 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3203 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3204 Move here from ipa.c; implement using pointer_map
3205 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3206 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3207 debug_cgraph_node_set, varpool_node_set_new,
3208 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3209 dump_varpool_node_set, debug_varpool_node_set):
3210 Move to ipa-uitls.c.
3211 * passes.c (ipa_write_summaries): Update.
3213 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3215 From Mike Frysinger:
3216 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3217 bf542/bf544/bf547/bf548/bf549.
3219 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3221 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3223 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3226 * config/bfin/bfin.md (MOVCC): New mode_macro.
3227 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3228 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3229 comments from generated assembly.
3231 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3234 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3235 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3236 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3237 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3238 * config/bfin/lib1funcs.asm (___muldi3): New function.
3240 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3242 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3243 build_function_type_list instead of build_function_type.
3244 Rearrange initialization of `args' to do so.
3246 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3248 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3249 instead of build_function_type.
3251 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3253 * config/rs6000/rs6000.c (spe_init_builtins): Call
3254 build_function_type_list instead of build_function_type.
3255 (paired_init_builtins, altivec_init_builtins): Likewise.
3256 (builtin_function_type): Likewise.
3258 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3260 * config/sh/sh.c (sh_media_init_builtins): Call
3261 build_function_type_list instead of build_function_type.
3263 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3265 * config/sparc/sparc.c (sparc_file_end): Call
3266 build_function_type_list instead of build_function_type.
3268 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3270 * config/alpha/alpha.c (alpha_init_builtins): Call
3271 build_function_type_list instead of build_function_type.
3273 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3275 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3276 build_function_type_list instead of build_function_type.
3278 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3280 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3281 build_function_type_list instead of build_function_type.
3282 Delete `endlink' variable.
3284 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3286 * config/avr/avr.c (avr_init_builtins): Call
3287 build_function_type_list instead of build_function_type.
3289 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3291 * config/picochip/picochip.c (picochip_init_builtins): Call
3292 build_function_type_list instead of build_function_type.
3293 Delete `endlink' variable.
3295 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3297 * config/bfin/bfin.c (bfin_init_builtins): Call
3298 build_function_type_list instead of build_function_type.
3300 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3303 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3304 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3306 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3309 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3310 libbffastfp overrides libgcc when -mfast-fp.
3312 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3314 Originally from Bernd Schmidt
3315 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3316 * config/bfin/bfin.c (override_options): Test it and error if
3319 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3321 Originally From Bernd Schmidt
3322 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3325 2011-05-03 Jeff Law <law@redhat.com>
3327 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3328 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3329 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3330 than accessing AUX field directly. Free the AUX field before
3332 (thread_block, thread_through_loop_header): Likewise.
3333 (thread_single_edge, mark_threaded_blocks): Likewise.
3334 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3335 (register_jump_thread): Do not attempt to thread to a NULL edge.
3337 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3339 * function.c (init_function_start): Call decide_function_section.
3340 * varasm.c (decide_function_section): New function.
3341 (assemble_start_function): When not using
3342 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3343 or first_function_block_is_cold.
3344 * rtl.h (decide_function_section): Declare.
3346 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3347 Jakub Jelinek <jakub@redhat.com>
3350 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3351 only succeed if req_mode is the same as set_mode.
3353 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3355 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3356 * genemit.c (gen_exp): Handle RETURN.
3357 * emit-rtl.c (verify_rtx_sharing): Likewise.
3358 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3359 * rtl.c (copy_rtx): RETURN is shared.
3360 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3362 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3363 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3364 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3365 * config/cris/cris.c (cris_expand_return): Likewise.
3366 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3367 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3368 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3369 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3370 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3372 * config/v850/v850.c (expand_epilogue): Likewise.
3373 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3374 * config/arm/arm.md (epilogue): Likewise.
3375 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3376 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3377 variable to ret_reg.
3379 2011-05-03 Richard Guenther <rguenther@suse.de>
3382 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3383 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3384 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3386 2011-05-03 Richard Guenther <rguenther@suse.de>
3388 * c-decl.c (grokdeclarator): Instead of looking at
3389 TREE_OVERFLOW check if the constant fits in the index type.
3391 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3393 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3394 (vec_store_lanes<mode><mode>): Likewise.
3396 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3398 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3399 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3400 convert_optab_index values.
3401 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3402 * genopinit.c (optabs): Initialize the new optabs.
3403 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3404 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3405 (expand_STORE_LANES): New functions.
3406 * tree.h (build_array_type_nelts): Declare.
3407 * tree.c (build_array_type_nelts): New function.
3408 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3409 (vect_model_load_cost): Likewise.
3410 (vect_store_lanes_supported, vect_load_lanes_supported)
3411 (vect_record_strided_load_vectors): Declare.
3412 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3413 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3414 (vect_transform_strided_load): Split out statement recording into...
3415 (vect_record_strided_load_vectors): ...this new function.
3416 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3417 (write_vector_array, create_array_ref): New functions.
3418 (vect_model_store_cost): Add store_lanes_p argument.
3419 (vect_model_load_cost): Add load_lanes_p argument.
3420 (vectorizable_store): Try to use store-lanes functions for
3422 (vectorizable_load): Likewise load-lanes and loads.
3423 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3424 to vect_model_store_cost.
3425 (vect_build_slp_tree): Likewise vect_model_load_cost.
3427 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3429 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3430 * hooks.c (hook_bool_mode_uhwi_false): New function.
3431 * target.def (array_mode_supported_p): New hook.
3432 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3433 * doc/tm.texi: Regenerate.
3434 * stor-layout.c (mode_for_array): New function.
3435 (layout_type): Use it.
3436 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3437 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3439 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3442 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3443 for -fstack-check if the size to allocate is negative.
3445 2011-05-02 Lawrence Crowl <crowl@google.com>
3447 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3448 (timevar_cond_start): New for starting a timer only when it is not
3450 (timevar_cond_stop): New for stopping a timer when it was not already
3453 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3454 (timevar_cond_start): New as above.
3455 (timevar_cond_stop): New as above.
3457 * timevar.def: Add start/stop timers for compiler phases,
3458 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3459 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3460 and TV_PHASE_FINALIZE.
3461 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3462 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3463 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3464 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3465 Make unused TV_OVERLOAD into a start/stop timer.
3467 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3468 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3469 to indicate that they are start/stop timers.
3471 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3472 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3473 Move initialization to do_compile.
3474 (do_compile): Add initialization from above.
3475 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3477 * c-decl.c (c_write_global_declarations): Add start/stop of
3478 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3480 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3481 or TV_PARSE_INLINE, as appropriate.
3482 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3483 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3485 2011-05-02 Jason Merrill <jason@redhat.com>
3488 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3490 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3493 * c-decl.c (finish_decl): Only create a composite if the types are
3496 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3498 * config/fr30/fr30-protos.h (Mmode): Don't define.
3499 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3500 definition where used.
3501 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3502 define. Expand definitions where used.
3503 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3504 Expand definitions where used.
3505 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3506 rx_function_arg, rx_function_arg_advance,
3507 rx_function_arg_boundary): Expand definitions of those macros.
3508 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3509 definition where used.
3511 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3513 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3515 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3516 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3517 with *movv2sf_internal_rex64_avx.
3518 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3519 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3520 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3521 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3522 "vex" in "prefix" attribute calculation.
3523 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3525 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3528 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3529 inputs match the output.
3531 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3534 * config/m68k/m68k.c (m68k_expand_prologue): Set
3535 current_function_static_stack_size.
3537 2011-05-02 Jan Hubicka <jh@suse.cz>
3539 * lto-streamer.c (lto_streamer_cache_insert_1,
3540 lto_streamer_cache_lookup, lto_streamer_cache_create,
3541 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3542 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3544 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3546 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3547 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3548 config/m68k/t-opts: New files.
3549 * config/m68k/m68k-tables.opt: New file (generated).
3550 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3551 extra_options and m68k/t-opts to tmake_file.
3552 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3553 (all_isas): Initialize using m68k-isas.def.
3554 (all_microarchs): Initialize using m68k-microarchs.def.
3555 (m68k_find_selection): Remove.
3556 (m68k_handle_option): Don't assert that global structures are in
3557 use. Use error_at. Access variables via opts pointer. Don't
3558 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3559 directly for -m68020-40 and -m68020-60.
3560 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3561 m68k_tune_entry here.
3562 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3564 (m68k_library_id_string): Remove declaration.
3565 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3566 (m68k_library_id_string): New Variable.
3567 (march=, mcpu=, mtune=): Use Enum and Var.
3569 2011-05-02 Richard Guenther <rguenther@suse.de>
3571 * varasm.c (output_constructor_regular_field): Compute zero-based
3572 index with double-ints. Make sure to ICE instead of producing
3574 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3575 in asserts. Properly use a signed type.
3577 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3579 * config/i386/sse.md (V): New mode iterator.
3580 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3582 (V_256): Rename from AVX256MODE.
3583 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3584 condition to all users.
3586 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3587 condition to all users.
3588 (VF_128): Make V4SF mode unconditional.
3589 (VF_256): Rename from AVX256MODEF2P.
3590 (VI4F_128): Rename from SSEMODE4S.
3591 (VI8F_128): Rename from SSEMODE2D.
3592 (VI4F_256): Rename from AVX256MODE8P.
3593 (VI8F_256): Rename from AVX256MODE4P.
3594 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3595 (ssescalarmodesuffix): Remove SF and DF modes.
3596 (SSEMODE124): Remove.
3597 (SSEMODE1248): Ditto.
3598 (SSEMODEF2P): Ditto.
3599 (AVXMODEF2P): Ditto.
3600 (AVXMODEFDP): Ditto.
3601 (AVXMODEFSP): Ditto.
3602 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3604 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3606 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3607 xop_pcmov_<mode>256. Use V mode iterator.
3609 Adjust RTX patterns globally for renamed mode attributes.
3611 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3613 * haifa-sched.c (sched_emit_insn): Emit insn before first
3614 non-scheduled insn. Inform back-end about new insn. Add
3615 new insn to scheduled_insns list.
3617 2011-05-02 Richard Guenther <rguenther@suse.de>
3619 PR tree-optimization/48822
3620 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3621 (process_scc): Indicate which iteration we start.
3623 2011-05-02 Jan Hubicka <jh@suse.cz>
3625 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3626 (lto_section_overrun): New.
3627 * lto-section-out.c (append_block): Rename to ...
3628 (lto_append_block): ... this one; export.
3629 (lto_output_1_stream): Move lto lto-streamer.h
3630 (lto_output_data_stream): Update.
3631 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3632 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3635 2011-05-02 Richard Guenther <rguenther@suse.de>
3637 * tree.c (tree_code_counts): New global array.
3638 (record_node_allocation_statistics): Count individual tree codes.
3639 (dump_tree_statistics): Dump individual code stats.
3641 2011-05-01 Jan Hubicka <jh@suse.cz>
3643 * ipa-inline.c (caller_growth_limits): Fix thinko when
3644 looking for largest stack frame.
3645 * ipa-inline.h (dump_inline_summary): Declare.
3646 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3648 (dump_inline_summary): Export.
3649 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3651 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3653 * reginfo.c (memory_move_cost): Change rclass argument type form
3654 'enum reg_class' to reg_class_t.
3655 * reload.h (memory_move_cost): Update prototype.
3656 * postreload.c reload_cse_simplify_set): Change type dclass var to
3658 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3660 (ira_allocate_and_set_costs): Change aclass argument type form
3661 'enum reg_class' to reg_class_t.
3662 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3663 Change aclass argument type to reg_class_t.
3664 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3666 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3667 memory_move_cost call.
3669 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3670 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3671 Change type tmp var to reg_class_t.
3673 2011-04-30 Jan Hubicka <jh@suse.cz>
3675 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3676 inlining into function with flatten attribute.
3677 (want_inline_small_function_p): Be more realistic about inlining
3678 cold calls where callee size grows.
3680 2011-04-30 Jan Hubicka <jh@suse.cz>
3682 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3685 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3687 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3688 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3689 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3690 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3691 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3692 (print_operand): Rename to...
3693 (sparc_print_operand): ...this. Make static. Adjust
3694 sparc_print_operand function call.
3695 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3698 2011-04-30 Jan Hubicka <jh@suse.cz>
3701 * ipa-inline.c (early_inliner): Disable when doing late
3702 addition of function.
3704 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3706 * dwarf2out.c (get_address_mode): New inline.
3707 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3708 if not dwarf_strict emit
3709 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3710 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3711 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3712 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3713 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3714 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3715 mem_loc_descriptor callers.
3716 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3717 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3718 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3719 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3720 (base_types): New variable.
3721 (get_base_type_offset, calc_base_type_die_sizes,
3722 base_type_for_mode, mark_base_types, base_type_cmp,
3723 move_marked_base_types): New functions.
3724 (calc_die_sizes): Assert that die_offset is 0 or equal to
3726 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3727 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3728 callers. If not dwarf_strict, call mem_loc_descriptor even for
3729 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3730 (gen_subprogram_die): Don't give up on call site parameters
3731 with non-integral or large integral modes. Adjust
3732 mem_loc_descriptor callers.
3733 (prune_unused_types): Call prune_unused_types_mark on base_types
3735 (resolve_addr): Call mark_base_types.
3736 (dwarf2out_finish): Call move_marked_base_types.
3738 PR tree-optimization/48809
3739 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3741 (gen_inbound_check): Don't compute index_expr - range_min in utype
3742 again, instead reuse SSA_NAME initialized in build_arrays.
3743 Remove two useless gsi_for_stmt calls.
3745 2011-04-29 Jeff Law <law@redhat.com>
3747 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3749 2011-04-29 Martin Jambor <mjambor@suse.cz>
3751 * cgraph.h (cgraph_postorder): Remove declaration.
3752 * ipa-utils.h (ipa_free_postorder_info): Declare.
3753 (ipa_reverse_postorder): Likewise.
3754 * cgraphunit.c: Include ipa-utils.h.
3755 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3756 * ipa-inline.c: Include ipa-utils.h.
3757 (ipa_inline): Update call to ipa_reverse_postorder.
3758 * ipa-pure-const.c (propagate_pure_const): Update call to
3759 ipa_reduced_postorder and ipa_print_order. Call
3760 ipa_free_postorder_info to clean up.
3761 (propagate_nothrow): Likewise.
3762 * ipa-reference.c (propagate): Removed a useless call to
3763 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3764 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3765 * ipa.c: Include ipa-utils.h.
3766 (ipa_profile): Update call to ipa_reverse_postorder.
3767 (cgraph_postorder): Moved to...
3768 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3769 (ipa_utils_print_order): Renamed to ipa_print_order.
3770 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3772 (ipa_free_postorder_info): New function.
3773 * passes.c: Include ipa-utils.h.
3774 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3775 (ipa_write_summaries): Likewise.
3776 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3777 (cgraphunit.o): Likewise.
3779 (ipa-inline.o): Likewise.
3781 2011-04-29 Jan Hubicka <jh@suse.cz>
3783 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3784 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3785 * ipa-inline.h (clause_t): Turn into unsigned int.
3786 * ipa-inline-analysis.c (add_clause): Do more simplification.
3787 (and_predicates): Shortcut more cases.
3788 (predicates_equal_p): Move forward; check that clauses are properly
3790 (or_predicates): Shortcut more cases.
3791 (edge_execution_predicate): Rewrite as...
3792 (set_cond_stmt_execution_predicate): ... this function; handle
3793 __builtin_constant_p.
3794 (set_switch_stmt_execution_predicate): New .
3795 (compute_bb_predicates): New.
3796 (will_be_nonconstant_predicate): Update TODO.
3797 (estimate_function_body_sizes): Use compute_bb_predicates
3798 and free them later, always try to estimate if stmt is constant.
3799 (estimate_time_after_inlining, estimate_size_after_inlining):
3800 Gracefully handle optimized out edges.
3801 (read_predicate): Fix off by one error.
3803 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3805 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3807 2011-04-27 Xinliang David Li <davidxl@google.com>
3809 * tree-profile.c (init_ic_make_global_vars): Set
3810 tls attribute on ic vars.
3811 * coverage.c (coverage_end_function): Initialize
3812 function_list with zero.
3814 2011-04-29 Richard Guenther <rguenther@suse.de>
3816 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3817 for the type of the result.
3818 (fold_builtin_isascii): Likewise.
3819 (fold_builtin_toascii): Use integer_type_node where appropriate.
3820 (fold_builtin_logb): Likewise.
3821 (fold_builtin_frexp): Likewise.
3822 (fold_builtin_strstr): Likewise.
3823 (fold_builtin_strpbrk): Likewise.
3824 (fold_builtin_fputs): Likewise.
3825 (fold_builtin_sprintf): Likewise.
3826 (fold_builtin_snprintf): Likewise.
3827 (fold_builtin_printf): Likewise.
3828 (do_mpfr_remquo): Use a proper type for the assigned constant.
3829 (do_mpfr_lgamma_r): Likewise.
3830 * dwarf2out.c (resolve_one_addr): Use size_int.
3831 * except.c (init_eh): Likewise.
3832 (assign_filter_values): Use integer_type_node for filter values.
3833 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3835 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3836 for EH region numbers.
3837 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3838 for the shift amount.
3840 2011-04-29 Richard Guenther <rguenther@suse.de>
3842 * expr.h (expand_shift): Rename to ...
3843 (expand_variable_shift): ... this.
3844 (expand_shift): Take a constant shift amount.
3845 * expmed.c (expand_shift): Rename to ...
3846 (expand_variable_shift): ... this.
3847 (expand_shift): New wrapper around expand_variable_shift.
3848 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3849 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3850 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3851 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3852 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3853 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3854 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3855 emit_store_flag_1, emit_store_flag): Likewise.
3856 * builtins.c (expand_builtin_signbit): Likewise.
3857 * calls.c (load_register_parameters): Likewise.
3858 * function.c (assign_parm_setup_block): Likewise.
3859 * lower-subreg.c (resolve_shift_zext): Likewise.
3860 * optabs.c (widen_bswap, expand_abs_nojump,
3861 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3862 * spu/spu.c (spu_expand_extv): Likewise.
3863 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3865 2011-04-29 Richard Guenther <rguenther@suse.de>
3867 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3868 for the remapped region number.
3869 * predict.c (build_predict_expr): Use integer_type_node for the
3871 * fold-const.c (fold_binary_loc): Use integer_type_node for
3872 the shift amount. Use a proper type for the PLUS_EXPR operand.
3874 2011-04-29 Michael Matz <matz@suse.de>
3876 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3877 other trees that just builtins.
3878 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3880 2011-04-29 Richard Guenther <rguenther@suse.de>
3882 * tree-nested.c (get_trampoline_type): Use size_int.
3883 (get_nl_goto_field): Likewise.
3884 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3886 (lower_eh_constructs_2): Likewise.
3887 (lower_resx): Likewise.
3888 (lower_eh_dispatch): Likewise.
3889 * tree-mudflap.c (mf_build_string): Use size_int.
3890 (mudflap_register_call): Use integer_type_node for the flag.
3891 (mudflap_enqueue_constant): Use size_int.
3892 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3893 instead of rebuilding it.
3895 2011-04-29 Richard Guenther <rguenther@suse.de>
3897 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3898 Handle OBJ_TYPE_REF.
3899 (find_func_aliases_for_call): Use it more consistently.
3901 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3903 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3904 (rank_for_schedule): Use it.
3905 (schedule_block): Set it.
3907 2011-04-28 David Li <davidxl@google.com>
3909 * tree.c (crc32_string): Use crc32_byte.
3910 (crc32_byte): New function.
3911 * tree.h (crc32_byte): New function.
3912 * gcov.c (read_graph_file): Handle new cfg_cksum.
3913 (read_count_file): Ditto.
3914 * profile.c (instrument_values): Ditto.
3915 (get_exec_counts): Ditto.
3916 (read_profile_edge_counts): Ditto.
3917 (compute_branch_probabilities): Ditto.
3918 (compute_value_histograms): Ditto.
3919 (branch_prob): Ditto.
3920 (end_branch_prob): Ditto.
3921 * coverage.c (read_counts_file): Ditto.
3922 (get_coverage_counts): Ditto.
3923 (tree_coverage_counter_addr): Ditto.
3924 (coverage_checksum_string): Ditto.
3925 (coverage_begin_output): Ditto.
3926 (coverage_end_function): Ditto.
3927 (build_fn_info_type): Ditto.
3928 (build_fn_info_value): Ditto.
3929 * libgcov.c (gcov_exit): Ditto.
3930 * gcov-dump.c (tag_function): Ditto.
3931 (compute_checksum): Remove.
3933 2011-04-29 Alan Modra <amodra@gmail.com>
3935 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3936 unspec plus offset. Tidy macho code.
3938 2011-04-29 Martin Jambor <mjambor@suse.cz>
3940 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3941 node instead of a decl. Update all callers.
3942 * cgraph.h: Update declaration.
3944 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3946 PR tree-optimization/48765
3947 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3948 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3949 to indicate if loop aware SLP is being used. Scan the statements
3950 and update the vectorization factor according to the type of
3951 vectorization before statement analysis.
3952 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3953 pass it to vect_analyze_loop_operations.
3954 (vectorizable_reduction): Set number of copies to 1 in case of pure
3956 * tree-vect-stmts.c (vectorizable_conversion,
3957 vectorizable_assignment, vectorizable_shift,
3958 vectorizable_operation, vectorizable_type_demotion,
3959 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3961 (vectorizable_condition): Move the check that it is not SLP
3962 vectorization before the number of copies check.
3963 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3964 to vectorize the loop using SLP.
3966 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3969 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3972 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3974 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3975 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3976 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3977 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3978 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3980 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3981 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3982 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3983 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3984 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3985 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3987 * config/i386/linux.h (REG_NAME): Don't define.
3988 * config/i386/linux64.h (REG_NAME): Don't define.
3989 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3990 Undefine before defining.
3992 2011-04-28 Jan Hubicka <jh@suse.cz>
3994 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3995 nonconstant_names array.
3996 (estimate_function_body_sizes): Build nonconstant_names array; handle
3997 BUILT_IN_CONSTANT_P.
3999 2011-04-28 Richard Guenther <rguenther@suse.de>
4003 2011-04-28 Richard Guenther <rguenther@suse.de>
4005 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4006 as late as possible.
4008 2011-04-28 Richard Guenther <rguenther@suse.de>
4010 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4011 (debug_constraint): Do it here.
4012 (dump_constraints): And here.
4013 (rewrite_constraints): And here.
4014 (dump_constraint_edge): Remove.
4015 (dump_constraint_graph): Rewrite to produce DOT output.
4016 (solve_constraints): Build succ graph as late as possible.
4017 Dump constraint graphs before and after solving.
4019 2011-04-28 Richard Guenther <rguenther@suse.de>
4021 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4022 New function split out from ...
4023 (find_func_aliases): ... here. Call it.
4024 (find_func_aliases_for_call): Likewise.
4026 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4028 * internal-fn.h (internal_fn_name_array): Declare.
4029 (internal_fn_flags_array): Likewise.
4031 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4033 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4034 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4036 (ssemodefsuffix): Remove.
4037 (ssevecmodesuffix): New mode attribute.
4038 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4039 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4040 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4041 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4042 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4043 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4044 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4045 ssemodesuffix mode attribute.
4046 (float splitters): Use ssevecmodesuffix mode attribute.
4047 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4048 (sseinsmode): Rename from avxvecmode.
4049 (avxsizesuffix): Rename from avxmodesuffix.
4050 (sseintvecmode): Rename from avxpermvecmode.
4051 (ssedoublevecmode): Rename from ssedoublesizemode.
4052 (ssehalfvecmode): Rename from avxhalfvecmode.
4053 (ssescalarmode): Rename from avxscalarmode.
4054 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4055 templates for ssemodesuffix mode attribute.
4056 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4059 Adjust RTX patterns globally for renamed mode attributes.
4061 2011-04-27 Jan Hubcika <jh@suse.cz>
4063 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4064 * ipa-inline-analysis.c: Include alloc-pool.h.
4065 (edge_predicate_pool): New.
4066 (trye_predicate_p): New function
4067 (false_predicate_p): New function.
4068 (add_clause): Sanity check that false clauses are "optimized";
4069 never add clauses to predicate that is already known to be false.
4070 (and_predicate): Use flase_predicate_p.
4071 (evaulate_predicate): Rename to ...
4072 (evaluate_predicate): ... this one; update all callers; assert
4073 that false is not listed among possible truths.
4074 (dump_predicate): Use true_predicate_p.
4075 (account_size_time): Use false_predicate_p.
4076 (evaulate_conditions_for_edge): Rename to ...
4077 (evaluate_conditions_for_edge) ... this one.
4078 (edge_set_predicate): New function.
4079 (inline_edge_duplication_hook): Duplicate edge predicates.
4080 (inline_edge_removal_hook): Free edge predicates.
4081 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4082 (dump_inline_summary): Update.
4083 (estimate_function_body_sizes): Set edge predicates.
4084 (estimate_calls_size_and_time): Handle predicates.
4085 (estimate_callee_size_and_time): Update.
4086 (remap_predicate): Add toplev_predicate; update comment.
4087 (remap_edge_predicates): New function.
4088 (inline_merge_summary): Compute toplev predicate; update.
4089 (read_predicate): New function.
4090 (read_inline_edge_summary): Use it.
4091 (inline_read_section): Likewise.
4092 (write_predicate): New function.
4093 (write_inline_edge_summary): Use it.
4094 (inline_write_summary): Likewise.
4095 (inline_free_summary): Free alloc pool and edge summary vec.
4097 2011-04-27 Richard Guenther <rguenther@suse.de>
4099 * tree-ssa-structalias.c (changed_count): Remove.
4100 (changed): Use a bitmap.
4101 (unify_nodes): Adjust.
4102 (do_sd_constraint): Likewise.
4103 (do_ds_constraint): Likewise.
4104 (do_complex_constraint): Likewise.
4105 (solve_graph): Likewise.
4107 2011-04-27 Jan Hubicka <jh@suse.cz>
4109 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4111 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4113 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4114 (avx_vperm2f128_*_operand): Ditto.
4115 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4116 Use avx_vpermilp_parallel in insn condition.
4117 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4118 Use avx_vperm2f128_parallel in insn condition.
4120 2011-04-27 Richard Guenther <rguenther@suse.de>
4122 * Makefile.in (tree-ssa-structalias.o): Remove
4123 gt-tree-ssa-structalias.h dependency.
4124 (GTFILES): Remove tree-ssa-structalias.c.
4125 * tree.c (allocate_decl_uid): New function.
4126 (make_node_stat): Use it.
4127 (copy_node_stat): Likewise.
4128 * tree.h (allocate_decl_uid): Declare.
4129 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4130 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4131 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4132 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4133 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4134 (struct heapvar_map): Likewise.
4135 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4136 heapvar_insert): Likewise.
4137 (make_heapvar_for): Rename to ...
4138 (make_heapvar): ... this. Simplify.
4139 (fake_var_decl_obstack): New global var.
4140 (build_fake_var_decl): New function.
4141 (make_constraint_from_heapvar): Adjust.
4142 (handle_lhs_call): Likewise.
4143 (create_function_info_for): Likewise.
4144 (intra_create_variable_infos): Likewise.
4145 (init_alias_vars): Allocate fake_var_decl_obstack.
4146 (init_alias_heapvars, delete_alias_heapvars): Remove.
4147 (compute_points_to_sets): Do not call init_alias_heapvars.
4148 (ipa_pta_execute): Likewise.
4149 (delete_points_to_sets): Free fake_var_decl_obstack.
4151 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4153 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4154 (si_from_UTItype, si_to_UTItype): New functions.
4155 (__udivmodti4): Use them to implement type-punning.
4156 * config/spu/multi3.c (union qword_TItype): New data type.
4157 (si_from_TItype, si_to_TItype): New functions.
4158 (__multi3): Use them to implement type-punning.
4160 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4162 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4164 2011-04-27 Jan Hubicka <jh@suse.cz>
4166 * ipa-prop.c (function_insertion_hook_holder): New holder.
4167 (ipa_add_new_function): New function.
4168 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4169 Register/deregister holder.
4171 2011-04-27 Richard Guenther <rguenther@suse.de>
4173 PR tree-optimization/48772
4174 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4176 2011-04-27 Richard Guenther <rguenther@suse.de>
4178 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4179 TARGET_MEM_REF handling.
4181 2011-04-27 Nick Clifton <nickc@redhat.com>
4183 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4184 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4185 (REG_CLASS_NAMES): Likewise.
4186 (REG_CLASS_CONTENTS): Likewise.
4187 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4188 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4189 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4190 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4191 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4192 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4193 duplicate register classes.
4194 (frv_class_likely_spilled_p): Likewise.
4195 (frv_register_move_cost): Likewise.
4197 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4198 end of the regno_reg_class array.
4200 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4203 * c-typeck.c (build_binary_op): Don't wrap arguments if
4204 int_operands is true.
4206 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4209 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4210 targetm.calls.must_pass_in_stack for void type.
4212 2011-04-26 Jan Hubicka <jh@suse.cz>
4214 * cgraphbuild.c (build_cgraph_edges): Update call
4215 of cgraph_create_edge and cgraph_create_indirect_edge.
4216 * cgraph.c (cgraph_create_edge_including_clones,
4217 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4218 cgraph_update_edges_for_call_stmt_node): Do not take nest
4219 argument; do not initialize call_stmt_size/time.
4220 (dump_cgraph_node): Do not dump nest.
4221 (cgraph_clone_edge): Do not take loop_nest argument;
4222 do not propagate it; do not clone call_stmt_size/time.
4223 (cgraph_clone_node): Likewise.
4224 (cgraph_create_virtual_clone): Update.
4225 * cgraph.h (struct cgraph_edge): Remove
4226 call_stmt_size/call_stmt_time/loop_nest.
4227 (cgraph_create_edge, cgraph_create_indirect_edge,
4228 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4230 * tree-emutls.c (gen_emutls_addr): Update.
4231 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4232 loop_nest; handle indirect calls, too.
4233 (clone_inlined_nodes): Do not care about updating inline summaries.
4234 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4235 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4236 stream call_stmt_size/call_stmt_time/loop_nest.
4237 * ipa-inline.c (edge_badness): Update.
4238 (ipa_inline): dump summaries after inlining.
4239 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4241 (inline_edge_summary): New function.
4242 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4243 (inline_edge_removal_hook): Handle edge summaries.
4244 (inline_edge_duplication_hook): New hook.
4245 (inline_summary_alloc): Alloc hooks.
4246 (initialize_growth_caches): Do not register removal hooks.
4247 (free_growth_caches); Do not free removal hook.
4248 (dump_inline_edge_summary): New function.
4249 (dump_inline_summary): Use it.
4250 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4251 (inline_update_callee_summaries): New function.
4252 (inline_merge_summary): Use it.
4253 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4254 (read_inline_edge_summary): New function.
4255 (inline_read_section): Use it.
4256 (write_inline_edge_summary): New function.
4257 (inline_write_summary): Use it.
4258 (inline_free_summary): Free edge new holders.
4259 * tree-inline.c (copy_bb): Update.
4261 2011-04-26 Jason Merrill <jason@redhat.com>
4263 * tree-eh.c (lower_try_finally_switch): Create the label along with
4264 the CASE_LABEL_EXPR.
4266 2011-04-26 David S. Miller <davem@davemloft.net>
4267 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4269 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4270 * configure: Regenerate.
4272 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4275 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4277 (VEC_reduc): New code iterator and splitters for vector reduction.
4278 (VEC_reduc_name): Ditto.
4279 (VEC_reduc_rtx): Ditto.
4280 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4281 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4283 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4284 support for extracting SF on VSX.
4286 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4287 generating xscvspdp.
4288 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4289 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4290 double add, minimum, maximum vector reduction.
4291 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4292 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4293 optimize double vector reduction.
4294 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4296 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4298 * config/fr30/fr30.h (inhibit_libc): Don't define.
4299 * config/m32r/m32r-protos.h: Correct comment.
4300 * config/v850/v850.h (GHS_default_section_names,
4301 GHS_current_section_names): Use tree, not union tree_node *.
4303 2011-04-26 Xinliang David Li <davidxl@google.com>
4305 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4306 * c-family/c-opts.c (c_common_handle_option): Set
4307 warn_maybe_uninitialized.
4308 * opts.c (common_handle_option): Ditto.
4309 * common.opt: New option.
4310 * tree-ssa.c (warn_uninit): Add one more parameter.
4311 (warn_uninitialized_var): Pass warning code.
4312 * tree-flow.h: Interface change.
4315 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4317 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4318 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4319 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4321 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4323 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4324 * config/mips/mips.opt (mmips-tfile): Remove.
4326 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4327 mips-tdump reference to ...
4328 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4329 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4330 reference by Tru64 UNIX.
4332 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4335 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4336 is error_mark_node, set value to NULL.
4338 PR tree-optimization/48734
4339 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4340 if return value from maybe_fold_*_comparsions isn't something
4341 the code is prepared to handle.
4343 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4345 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4347 (ext_QIreg_nomode_operands): Remove.
4348 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4352 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4354 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4356 2011-04-26 Richard Guenther <rguenther@suse.de>
4358 * c-typeck.c (build_unary_op): Do not expand array-refs via
4359 pointer arithmetic. Only adjust qualifiers for function types.
4361 2011-04-26 Richard Guenther <rguenther@suse.de>
4364 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4365 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4366 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4367 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4369 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4371 * doc/extend.texi: Document __underlying_type.
4373 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4375 * config/rs6000/titan.md (automata_option "progress"): Remove.
4377 2011-04-25 Jeff Law <law@redhat.com>
4379 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4381 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4383 * system.h (ENUM_BITFIELD): Remove.
4385 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4386 Eric Botcazou <ebotcazou@adacore.com>
4388 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4389 for STORE_FLAG_VALUE==-1 case.
4391 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4394 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4395 LEGITIMATE_PIC_OPERAND_P.
4397 2011-04-24 Jan Hubicka <jh@suse.cz>
4399 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4401 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4402 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4403 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4404 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4405 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4406 Sanity check predicate length.
4407 (remap_predicate): Likewise; sanity check jump functions.
4408 (inline_read_section, inline_write_summary): Sanity check
4411 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4414 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4415 __is_literal_type, and __is_trivial; update throughout about
4416 possibly cv-qualified void types.
4418 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4420 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4421 testsuite and make it version agnostic.
4423 2011-04-22 Jan Hubicka <jh@suse.cz>
4425 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4427 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4430 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4431 to VOID_TYPE even around MODIFY_EXPR.
4433 2011-04-22 Mike Stump <mikestump@comcast.net>
4435 * gensupport.c (read_md_rtx): Fix typo in comment.
4436 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4439 2011-04-22 Jan Hubicka <jh@suse.cz>
4441 * gengtype.c (open_base_files): Add ipa-inline.h include.
4442 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4443 ipa-prop.c; update all uses.
4444 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4445 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4446 merge summary of inlined function into former caller.
4447 * ipa-inline.c (max_benefit): Remove.
4448 (edge_badness): Compensate for removal of benefits.
4449 (update_caller_keys): Use
4450 reset_node_growth_cache/reset_edge_growth_cache.
4451 (update_callee_keys): Likewise.
4452 (update_all_callee_keys): Likewise.
4453 (inline_small_functions): Do not collect max_benefit; do not reset
4454 estimated_growth; call free_growth_caches and initialize_growth_caches.
4455 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4456 struct size_time_entry): New structures.
4457 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4458 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4459 and estimated_growth.
4460 (edge_growth_cache_entry): New structure.
4461 (node_growth_cache, edge_growth_cache): New global vars.
4462 (estimate_growth): Turn into inline.
4463 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4464 initialize_growth_caches, free_growth_caches): Declare.
4465 (estimate_edge_growth): Rewrite.
4466 (estimate_edge_time): Implement as inline cache lookup.
4467 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4469 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4470 (NUM_CONDITIONS): New constant.
4471 (predicate_conditions): New enum.
4472 (IS_NOT_CONSTANT): New constant.
4473 (edge_removal_hook_holder): New var.
4474 (node_growth_cache, edge_growth_cache): New global vars.
4475 (true_predicate, single_cond_predicate, false_predicate,
4476 not_inlined_predicate, add_condition, add_clause, and_predicates,
4477 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4478 dump_clause, dump_predicate, account_size_time,
4479 evaulate_conditions_for_edge): New functions.
4480 (inline_summary_alloc): Move to heap.
4481 (inline_node_removal_hook): Clear condition and entry vectors.
4482 (inline_edge_removal_hook): New function.
4483 (initialize_growth_caches, free_growth_caches): New function.
4484 (dump_inline_summary): Update.
4485 (edge_execution_predicate): New function.
4486 (will_be_nonconstant_predicate): New function.
4487 (estimate_function_body_sizes): Compute BB and constantness predicates.
4488 (compute_inline_parameters): Do not clear estimated_growth.
4489 (estimate_edge_size_and_time): New function.
4490 (estimate_calls_size_and_time): New function.
4491 (estimate_callee_size_and_time): New function.
4492 (remap_predicate): New function.
4493 (inline_merge_summary): New function.
4494 (do_estimate_edge_time): New function based on...
4495 (estimate_edge_time): ... this one.
4496 (do_estimate_edge_growth): New function.
4497 (do_estimate_growth): New function based on....
4498 (estimate_growth): ... this one.
4499 (inline_analyze_function): Analyze after deciding on jump functions.
4500 (inline_read_section): New function.
4501 (inline_read_summary): Use it.
4502 (inline_write_summary): Write all the new data.
4503 * ipa-prop.c (ipa_get_param_decl_index): Export.
4504 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4505 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4507 (ipa_get_lattice): Move here from ipa-cp.c
4508 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4509 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4510 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4511 cgraph_edge_inlinable_p): Remove.
4512 * cgraphunit.c: Include ipainline.h
4513 (cgraph_process_new_functions): Update call of
4514 compute_inline_parameters.
4516 2011-04-22 Richard Guenther <rguenther@suse.de>
4518 * tree.c (build_int_cst): Properly create canonicalized integer
4520 (build_int_cst_type): Remove scary comments.
4522 2011-04-22 Xinliang David Li <davidxl@google.com>
4524 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4525 by default when -Wno-error is not specified.
4526 * opts-global.c (decode_options): Remove call to
4527 control_warning_options.
4529 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4531 PR tree-optimization/48717
4532 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4533 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4535 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4537 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4538 definition where used.
4540 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4543 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4544 TREE_STATIC variables declared inside of some OpenMP construct.
4546 2011-04-22 Martin Jambor <mjambor@suse.cz>
4549 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4551 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4554 * c-typeck.c (pop_init_level): Do not warn about initializing
4557 2011-04-22 Alan Modra <amodra@gmail.com>
4559 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4560 when returning call_cookie.
4561 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4562 pointers, to functions with no more vector args than the current
4563 function, and some non-local calls for ABI_V4.
4564 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4565 sibcall_nonlocal_aix64): Combine to ..
4566 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4567 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4568 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4569 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4570 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4572 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4573 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4574 sibcall_value_symbolic_64): Delete.
4576 2011-04-21 Xinliang David Li <davidxl@google.com>
4578 * cgraph.h: Remove pid.
4579 * cgraph.c: Remove pid.
4580 * value-prof.c (init_node_map): New function.
4581 (del_node_map): New function.
4582 (find_func_by_funcdef_no): New function.
4583 (gimple_ic_transform): Call new function.
4584 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4585 * function.c (get_last_funcdef_no): New function.
4586 * function.h (get_last_funcdef_no): New function.
4587 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4588 to libgcov function.
4589 (tree-profiling): Call node map init and delete function.
4591 2011-04-21 Ian Lance Taylor <iant@google.com>
4593 * godump.c (go_format_type): Use exported Go name for anonymous
4596 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4598 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4599 Call builtin_function_type_list instead of builtin_function_type.
4600 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4602 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4604 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4605 build_function_type_list instead of build_function_type.
4606 Delete variable `endlink'.
4608 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4610 * config/s390/s390.c (s390_init_builtins): Call
4611 build_function_type_list instead of build_function_type.
4613 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4615 * config/ia64/ia64.c (ia64_init_builtins): Call
4616 build_function_type_list instead of builtin_function_type.
4618 2011-04-21 Easwaran Raman <eraman@google.com>
4620 * cfgexpand.c (stack_var): Remove OFFSET...
4621 (add_stack_var): ...and its reference here...
4622 (expand_stack_vars): ...and here.
4623 (stack_var_cmp): Sort by descending order of size.
4624 (partition_stack_vars): Change heuristic.
4625 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4626 (dump_stack_var_partition): Add newline after each partition.
4628 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4629 Jeff Law <law@redhat.com>
4631 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4632 * gengtype.c (matching_file_name_substitute): Likewise.
4634 2011-04-21 Richard Guenther <rguenther@suse.de>
4637 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4639 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4641 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4643 2011-04-21 Richard Guenther <rguenther@suse.de>
4645 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4648 2011-04-21 Richard Guenther <rguenther@suse.de>
4650 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4651 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4652 Use DECL_P, not SSA_VAR_P.
4653 (ptr_derefs_may_alias_p): Likewise.
4654 (ptr_deref_may_alias_ref_p_1): Likewise.
4655 (decl_refs_may_alias_p): Likewise.
4656 (refs_may_alias_p_1): Likewise.
4657 (ref_maybe_used_by_call_p_1): Likewise.
4658 (call_may_clobber_ref_p_1): Likewise.
4659 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4660 are either MEM_REF or TARGET_MEM_REF.
4661 (indirect_refs_may_alias_p): Likewise.
4662 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4663 for MEM_EXPR of indirect calls.
4665 2011-04-21 Tristan Gingold <gingold@adacore.com>
4667 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4668 (dst_file_info_struct): Remove flen field.
4669 (lookup_filename): Remove code that set flen field.
4671 2011-04-21 Tristan Gingold <gingold@adacore.com>
4673 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4675 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4678 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4679 vec_extract and vec_concat for non-SSE4_1 targets.
4681 2011-04-21 Richard Guenther <rguenther@suse.de>
4683 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4686 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4688 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4690 (FILE): Don't undefine.
4692 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4694 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4696 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4698 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4699 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4700 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4702 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4703 definitions where used.
4704 * config/microblaze/microblaze.h (struct microblaze_args): Use
4705 rtx, not struct rtx_def *.
4706 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4708 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4709 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4710 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4711 not struct rtx_def *.
4712 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4714 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4716 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4718 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4720 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4721 operand_equal_p to compare DR_BASE_ADDRESSes.
4722 (vect_check_interleaving): Likewise.
4724 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4727 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4728 for all Neon struct constants.
4730 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4732 * target.def (legitimate_constant_p): New hook.
4733 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4734 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4735 * doc/tm.texi: Regenerate.
4736 * hooks.h (hook_bool_mode_rtx_true): Declare.
4737 * hooks.c (hook_bool_mode_rtx_true): Define.
4738 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4739 * calls.c (precompute_register_parameters): Replace uses of
4740 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4741 (emit_library_call_value_1): Likewise.
4742 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4743 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4744 * ira-costs.c (scan_one_insn): Likewise.
4745 * recog.c (general_operand, immediate_operand): Likewise.
4746 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4747 * reload1.c (init_eliminable_invariants): Likewise.
4749 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4751 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4752 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4754 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4755 * config/alpha/predicates.md (input_operand): Update call to
4756 alpha_legitimate_constant_p.
4758 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4759 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4760 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4761 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4762 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4763 (arm_legitimate_constant_p): New functions.
4764 (arm_cannot_force_const_mem): Make static.
4766 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4768 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4769 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4770 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4771 instead of bfin_legitimate_constant_p.
4772 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4773 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4775 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4777 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4779 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4780 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4781 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4782 (frv_legitimate_constant_p): Make static. Add a mode argument.
4784 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4785 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4786 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4788 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4789 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4790 * config/i386/i386.c (legitimate_constant_p): Rename to...
4791 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4793 (ix86_cannot_force_const_mem): Update accordingly.
4794 (ix86_legitimate_address_p): Likewise.
4795 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4796 * config/i386/i386.md: Update commentary.
4798 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4799 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4800 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4801 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4803 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4805 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4806 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4807 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4808 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4810 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4811 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4812 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4814 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4815 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4816 (m32r_legitimate_constant_p): New function.
4818 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4819 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4820 LEGITIMATE_CONSTANT_P.
4821 (LEGITIMATE_CONSTANT_P): Delete.
4822 * config/m68k/m68k.c (m68k_expand_prologue): Call
4823 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4824 (m68k_legitimate_constant_p): New function.
4825 * config/m68k/m68k.md: Update comments.
4827 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4828 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4829 (mcore_legitimate_constant_p): New function.
4831 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4832 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4833 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4834 Add a mode argument.
4835 (mep_legitimate_address): Update accordingly.
4836 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4838 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4840 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4841 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4842 static. Check OP's mode for VOIDmode.
4843 (microblaze_legitimate_constant_p): New function.
4844 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4846 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4847 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4848 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4849 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4850 * config/mips/predicates.md: Update comments.
4852 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4853 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4854 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4855 (mmix_legitimate_constant_p): Make static, return a bool, and take
4857 (mmix_print_operand_address): Update accordingly.
4859 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4861 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4862 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4863 static. Add a mode argument.
4864 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4866 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4868 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4869 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4870 (pa_legitimate_constant_p): New function.
4872 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4874 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4875 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4876 (pdp11_legitimate_constant_p): New function.
4878 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4879 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4880 (rs6000_legitimate_constant_p): New function.
4882 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4883 (rx_legitimate_constant_p): ...this.
4884 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4885 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4886 (rx_legitimate_constant_p): ...this.
4887 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4888 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4890 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4891 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4892 * config/s390/s390.c (legitimate_constant_p): Rename to...
4893 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4894 and add a mode argument.
4895 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4897 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4899 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4900 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4901 (sh_legitimate_constant_p): New function.
4903 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4904 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4905 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4906 (legitimate_constant_p): Rename to...
4907 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4909 (constant_address_p): Update accordingly.
4911 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4912 argument and return a bool.
4913 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4914 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4915 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4916 (spu_rtx_costs): Update accordingly.
4917 * config/spu/predicates.md (vec_imm_operand): Likewise.
4919 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4921 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4922 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4923 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4925 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4926 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4927 * config/vax/vax.c (legitimate_constant_p): Likewise.
4929 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4930 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4931 (xtensa_legitimate_constant_p): New function.
4933 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4935 * target.def (cannot_force_const_mem): Add a mode argument.
4936 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4937 * doc/tm.texi: Regenerate.
4938 * hooks.h (hook_bool_mode_rtx_false): Declare.
4939 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4940 (hook_bool_mode_const_rtx_true): Likewise.
4941 (hook_bool_mode_rtx_false): New function.
4942 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4943 to be non-VOID. Update call to cannot_force_const_mem.
4944 (find_reloads): Update accordingly.
4945 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4946 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4948 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4949 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4950 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4951 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4952 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4953 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4954 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4955 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4956 (m68k_cannot_force_const_mem): ...this new function.
4957 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4959 (mips_const_insns, mips_legitimize_const_move): Update calls.
4960 (mips_secondary_reload_class): Likewise.
4961 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4962 (pa_cannot_force_const_mem): ...this new function.
4963 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4964 (rs6000_cannot_force_const_mem): ...this new function.
4965 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4967 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4968 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4970 (xtensa_cannot_force_const_mem): ...this new function.
4972 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4974 * config/mips/mips.c (mips16_build_function_stub): Call
4975 build_function_type_list instead of build_function_type.
4976 (mips16_build_call_stub): Likewise.
4978 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4980 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4981 instead of build_function_type.
4983 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4985 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4986 instead of build_function_type.
4988 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4991 * config/i386/i386.md (insv): Change operand 0 constraint to
4992 "register_operand". Change operand 1 and 2 constraint to
4993 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4994 * config/i386/sse.md (sse4_1_pinsrb): Export.
4995 (sse2_pinsrw): Ditto.
4996 (sse4_1_pinsrd): Ditto.
4997 (sse4_1_pinsrq): Ditto.
4998 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4999 * config/i386/i386.c (ix86_expand_pinsr): New.
5001 2011-04-20 Easwaran Raman <eraman@google.com>
5003 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5004 containing union type only with -fstrict-aliasing.
5006 2011-04-20 Jim Meyering <meyering@redhat.com>
5008 Remove useless if-before-free tests.
5009 * calls.c (expand_call, save_area): Likewise.
5010 * cfgcleanup.c (try_forward_edges): Likewise.
5011 * collect2.c (collect_execute): Likewise.
5012 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5013 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5014 * coverage.c (coverage_checksum_string): Likewise.
5015 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5016 * cselib.c (cselib_init): Likewise.
5017 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5018 (df_set_clean_cfg): Likewise.
5019 * function.c (free_after_compilation): Likewise.
5020 * gcc.c (do_spec_1, main): Likewise.
5021 * gcov.c (create_file_names): Likewise.
5022 * gensupport.c (identify_predicable_attribute): Likewise.
5023 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5024 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5025 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5026 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5027 * ipa-pure-const.c (local_pure_const): Likewise.
5028 * ipa-reference.c (propagate): Likewise.
5029 * ira-costs.c (free_ira_costs): Likewise.
5030 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5031 * matrix-reorg.c (mat_free): Likewise.
5032 * prefix.c (get_key_value): Likewise.
5033 * profile.c (compute_value_histograms): Likewise.
5034 * reload1.c (free_reg_equiv): Likewise.
5035 * sched-deps.c (free_deps): Likewise.
5036 * sel-sched-ir.c (fence_clear): Likewise.
5037 * sese.c (set_rename, if_region_set_false_region): Likewise.
5038 * tree-data-ref.c (free_rdg): Likewise.
5039 * tree-eh.c (lower_try_finally): Likewise.
5040 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5041 * tree-ssa-live.c (delete_var_map): Likewise.
5042 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5043 * tree-ssa-pre.c (phi_trans_add): Likewise.
5045 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5047 PR tree-optimization/48611
5048 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5049 beyond ERT_MUST_NOT_THROW region.
5051 2011-04-20 Catherine Moore <clm@codesourcery.com>
5053 * config/mips/mips.opt (mfix-24k): New.
5054 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5055 * config/mips/mips.md (length): Increase by 4 for stores if
5057 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5058 all noreorder if fixing 24K errata.
5059 * doc/invoke.texi: Document mfix-24k.
5061 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5063 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5064 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5066 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5068 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5069 (const_ok_for_op): ... to here.
5071 2011-04-20 Kai Tietz <ktietz@redhat.com>
5073 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5074 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5076 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5078 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5080 2011-04-20 Richard Guenther <rguenther@suse.de>
5082 PR tree-optimization/47892
5083 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5086 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5088 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5090 2011-04-20 Tristan Gingold <gingold@adacore.com>
5092 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5094 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5098 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5099 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5100 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5101 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5102 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5104 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5107 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5108 (avr_asm_named_section, avr_asm_output_aligned_common,
5109 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5110 New functions to update...
5111 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5112 (avr_asm_init_sections): Overwrite section callbacks for
5113 data_section, bss_section.
5114 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5116 (avr_file_end): ...here.
5118 2011-04-20 Richard Guenther <rguenther@suse.de>
5121 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5122 objects and types here. Adjust for their offset before comparing.
5124 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5126 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5129 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5131 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5132 (GIMPLE_H): Include $(INTERNAL_FN_H).
5133 (OBJS-common): Add internal-fn.o.
5134 (internal-fn.o): New rule.
5135 * internal-fn.def: New file.
5136 * internal-fn.h: Likewise.
5137 * internal-fn.c: Likewise.
5138 * gimple.h: Include internal-fn.h.
5139 (GF_CALL_INTERNAL): New gf_mask.
5140 (gimple_statement_call): Put fntype into a union with a new
5142 (gimple_build_call_internal): Declare.
5143 (gimple_build_call_internal_vec): Likewise.
5144 (gimple_call_same_target_p): Likewise.
5145 (gimple_call_internal_p): New function.
5146 (gimple_call_internal_fn): Likewise.
5147 (gimple_call_fntype): Return null for internal calls.
5148 (gimple_call_set_fntype): Assert that the function is not internal.
5149 (gimple_call_set_fn): Likewise.
5150 (gimple_call_set_fndecl): Likewise.
5151 (gimple_call_set_internal_fn): New function.
5152 (gimple_call_addr_fndecl): Handle null functions.
5153 (gimple_call_return_type): Likewise null types.
5154 * gimple.c (gimple_build_call_internal_1): New function.
5155 (gimple_build_call_internal): Likewise.
5156 (gimple_build_call_internal_vec): Likewise.
5157 (gimple_call_same_target_p): Likewise.
5158 (gimple_call_flags): Handle calls to internal functions.
5159 (gimple_call_fnspec): New function.
5160 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5161 (gimple_has_side_effects): Handle null functions.
5162 (gimple_rhs_has_side_effects): Likewise.
5163 (gimple_call_copy_skip_args): Handle calls to internal functions.
5164 * cfgexpand.c (expand_call_stmt): Likewise.
5165 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5166 * gimple-fold.c (gimple_fold_call): Handle null functions.
5167 (gimple_fold_stmt_to_constant_1): Don't fold
5168 calls to internal functions.
5169 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5171 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5172 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5173 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5174 (do_warn_unused_result): Likewise.
5175 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5176 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5177 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5178 the target of a call.
5179 (initialize_hash_element): Update accordingly.
5180 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5181 (iterative_hash_hashable_expr): Handle calls to internal functions.
5182 (print_expr_hash_elt): Likewise.
5183 * tree-ssa-pre.c (can_value_number_call): Likewise.
5184 (eliminate): Handle null functions.
5185 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5186 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5187 (find_func_aliases): Likewise.
5188 * value-prof.c (gimple_ic_transform): Likewise.
5189 (gimple_indirect_call_to_profile): Likewise.
5190 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5191 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5193 2011-04-19 Jan Hubicka <jh@suse.cz>
5195 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5196 * ipa-inline.c (inline_small_functions): Compute summaries first,
5197 populate heap later.
5199 2011-04-19 Jan Hubicka <jh@suse.cz>
5201 * cgraph.h (save_inline_function_body): Remove.
5202 * ipa-inline-transform.c: New file, broke out of...
5203 * ipa-inline.c: ... this one; Update toplevel comment.
5204 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5206 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5207 (cgraph_mark_inline_edge): Rename to inline_call; move to
5208 ipa-inline-transform.c.
5209 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5210 move to ipa-inline-transform.c
5211 (recursive_inlining, inline_small_functions, flatten_function,
5212 ipa_inline, inline_always_inline_functions,
5213 early_inline_small_functions): Update.
5214 (inline_transform): Move to ipa-inline-transform.c.
5215 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5217 * Makefile.in (ipa-inline-transform.o): New file.
5218 * cgraphunit.c (save_inline_function_body): Move to
5219 ipa-inline-transform.c
5221 2011-04-19 DJ Delorie <dj@redhat.com>
5223 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5224 registers if we already know there aren't any.
5225 (m32c_emit_epilogue): Don't emit a barrier here.
5226 (m32c_emit_eh_epilogue): Likewise.
5227 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5228 operands at expand time.
5229 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5231 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5232 duplicates. Provide aliases instead.
5233 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5234 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5237 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5239 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5240 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5241 (general_or_i64_p, sparc_register_move_cost): New function.
5243 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5245 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5246 Add lynx, mipssde. Sort table.
5248 2011-04-19 Xinliang David Li <davidxl@google.com>
5250 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5253 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5256 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5257 is a SUBREG with non-MODE_INT mode inside of it.
5259 2011-04-19 Martin Jambor <mjambor@suse.cz>
5261 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5262 also according to actual contants.
5263 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5264 (gimple_fold_call): Use it.
5265 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5267 2011-04-19 Martin Jambor <mjambor@suse.cz>
5269 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5270 non-pointer assignments.
5272 2011-04-19 Martin Jambor <mjambor@suse.cz>
5274 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5275 account anc_offset and otr_type from the indirect edge info.
5276 * ipa-prop.c (get_ancestor_addr_info): New function.
5277 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5278 get_ancestor_addr_info, call it.
5279 (ipa_note_param_call): Do not initialize information about polymorphic
5280 calls, return the indirect call graph edge. Remove the last
5281 parameter, adjust all callers.
5282 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5283 parameters. Initialize polymorphic information in the indirect edge.
5285 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5288 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5289 the types if they have different enumeration identifiers.
5291 2011-04-19 Jan Hubicka <jh@suse.cz>
5293 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5294 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5295 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5296 (optimize_function_for_size_p) ... here.
5298 2011-04-19 Richard Guenther <rguenther@suse.de>
5301 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5304 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5306 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5307 if DECL_NO_INLINE_WARNING_P is set on the function.
5309 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5312 * reload1.c (inc_for_reload): Return void. All callers changed.
5313 (emit_input_reload_insns): Don't try to delete previous output
5314 reloads to a register, or record spill_reg_store for autoincs.
5316 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5318 * gengtype.h: Updated copyright year.
5319 (struct input_file_st): Add inpisplugin field.
5320 (type_fileloc): New function.
5322 (write_typed_struct_alloc_def): Add gcc_assert.
5323 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5324 (write_typed_alloc_defns): Don't output for plugin files.
5325 (input_file_by_name): Clear inpisplugin field.
5326 (main): Set inpisplugin field for plugin files.
5328 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5330 * gengtype-state.c (string_eq): New.
5331 (read_state): Use string_eq instead of strcmp when creating the
5334 2011-04-19 Wei Guozhi <carrot@google.com>
5337 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5338 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5340 * config/arm/constraints.md (Uu): New constraint.
5341 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5343 2011-04-19 Tristan Gingold <gingold@adacore.com>
5345 * config.gcc (-*-*-*vms): Added.
5346 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5348 * config/vms/vms-ld.c: New file.
5349 * config/vms/vms-ar.c: New file.
5350 * config/vms/t-vmsnative: New file.
5352 2011-04-18 Xinliang David Li <davidxl@google.com>
5354 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5356 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5359 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5360 if TREE_TYPE (v) is non-NULL.
5362 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5363 gimple_get_virt_mehtod_for_binfo.
5364 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5365 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5367 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5369 2011-04-18 Michael Matz <matz@suse.de>
5370 Steve Ellcey <sje@cup.hp.com>
5372 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5373 use its mode as source mode if it isn't VOIDmode.
5375 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5377 * doc/passes.texi: Fill crossref nodes.
5379 2011-04-18 Jim Meyering <meyering@redhat.com>
5381 Fix doubled-word typos in comments and strings
5382 * config/alpha/vms-unwind.h: s/for for/for/
5383 * config/arm/unwind-arm.h: Likewise.
5384 * config/microblaze/microblaze.c: Likewise.
5385 * config/sh/constraints.md: s/in in/in/
5386 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5388 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5390 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5391 (AVX_FLOAT_MODE_P): Ditto.
5392 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5393 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5394 (AVX_VEC_FLOAT_MODE_P): Ditto.
5395 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5396 (UNSPEC_MASKSTORE): Ditto.
5397 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5398 Merge from <sse>_movmsk<ssemodesuffix> and
5399 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5400 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5402 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5403 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5404 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5406 2011-04-18 Jan Hubicka <jh@suse.cz>
5408 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5410 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5411 (want_inline_function_called_once_p): Break out the logic from
5413 (edge_badness): Ensure that profile is not misupdated.
5414 (lookup_recursive_calls): Prioritize by call frequencies.
5415 (inline_small_functions): Move program size estimates here;
5416 actually process whole queue even when unit growth has been
5417 met. (to properly compute inline_failed reasons and for the
5418 case unit size decrease.) Revisit comments on recursive inlining.
5419 (ipa_inline): Remove unit summary code; first inline hot calls
5420 of functions called once, cold calls next.
5421 (order, nnodes): Remove unused variables.
5422 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5423 (GTFILES): Remove ipa-inline.c
5424 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5426 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5428 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5430 2011-04-18 Jie Zhang <jie@codesourcery.com>
5431 Richard Earnshaw <rearnsha@arm.com>
5433 * arm.c (neon_builtin_type_bits): Remove.
5434 (typedef enum neon_builtin_mode): New.
5435 (T_MAX): Don't define.
5436 (typedef enum neon_builtin_datum): Remove bits, codes[],
5437 num_vars and base_fcode. Add mode, code and fcode.
5438 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5439 VAR10): Change accordingly.
5440 (neon_builtin_data[]): Change accordingly
5441 (arm_init_neon_builtins): Change accordingly.
5442 (neon_builtin_compare): Remove.
5443 (locate_neon_builtin_icode): Remove.
5444 (arm_expand_neon_builtin): Change accordingly.
5446 * arm.h (enum arm_builtins): Move to ...
5447 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5449 * arm.c (arm_builtin_decl): Declare.
5450 (TARGET_BUILTIN_DECL): Define.
5451 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5452 (arm_builtin_decls[]): New.
5453 (arm_init_neon_builtins): Store builtin declarations in
5454 arm_builtin_decls[].
5455 (arm_init_tls_builtins): Likewise.
5456 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5457 (arm_builtin_decl): New.
5459 2011-04-18 Richard Guenther <rguenther@suse.de>
5461 * tree.c (upper_bound_in_type): Build properly canonicalized
5463 (lower_bound_in_type): Likewise.
5465 2011-04-18 Richard Guenther <rguenther@suse.de>
5467 * gimple.h (gimple_call_addr_fndecl): New function.
5468 (gimple_call_fndecl): Use it.
5469 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5471 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5472 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5474 2011-04-18 Richard Guenther <rguenther@suse.de>
5477 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5479 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5482 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5483 DECL_IN_CONSTANT_POOL without RTL.
5485 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5486 Ira Rosen <ira.rosen@linaro.org>
5489 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5490 to match neon_vzip/vuzp/vtrn_internal.
5491 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5492 outputs explicitly dependent on both inputs.
5493 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5495 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5497 PR tree-optimization/48616
5498 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5499 whether the shift is by scalar or vector based on whether all SLP
5500 scalar stmts have the same rhs.
5502 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5504 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5507 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5510 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5513 2011-04-17 Jan Hubicka <jh@suse.cz>
5515 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5516 * cgrpahunit.c (cgraph_finalize_function): Do not set
5517 finalized_by_frontend.
5518 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5519 finalized_by_frontend.
5521 2011-04-17 Jan Hubicka <jh@suse.cz>
5523 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5524 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5525 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5526 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5528 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5530 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5532 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5535 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5536 is non-null before accessing it.
5537 (input_cgraph): Remove trailing spaces.
5539 2011-04-17 Revital Eres <revital.eres@linaro.org>
5541 * params.def (sms-min-sc): New param flag.
5542 * modulo-sched.c (sms_schedule): Use it.
5543 * doc/invoke.texi (sms-min-sc): Document it.
5545 2011-04-17 Jan Hubicka <jh@suse.cz>
5547 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5548 present, also set gimple_call_set_cannot_inline.
5549 * ipa-inline.c: Update toplevel comment.
5551 (cgraph_clone_inlined_nodes): Fix linebreaks.
5552 (cgraph_check_inline_limits): Restructure to ...
5553 (caller_growth_limits): ... this one; be more tolerant
5554 on growth in nested inline chains; add explanatory comment;
5555 fix stack accounting thinko introduced by previous patch.
5556 (cgraph_default_inline_p): Remove.
5557 (report_inline_failed_reason): New function.
5558 (can_inline_edge_p): New function.
5559 (can_early_inline_edge_p): New function.
5560 (leaf_node_p): Move upwards in file.
5561 (want_early_inline_function_p): New function.
5562 (want_inline_small_function_p): New function.
5563 (want_inline_self_recursive_call_p): New function.
5564 (cgraph_edge_badness): Rename to ...
5565 (edge_badness) ... this one; fix linebreaks.
5566 (update_edge_key): Update call of edge_baddness; add
5567 detailed dump about queue updates.
5568 (update_caller_keys): Use can_inline_edge_p and
5569 want_inline_small_function_p.
5570 (cgraph_decide_recursive_inlining): Rename to...
5571 (recursive_inlining): Use can_inline_edge_p and
5572 want_inline_self_recursive_call_p; simplify and remove no longer
5574 (cgraph_set_inline_failed): Remove.
5575 (add_new_edges_to_heap): Use can_inline_edge_p and
5576 want_inline_small_function_p.
5577 (cgraph_decide_inlining_of_small_functions): Rename to ...
5578 (inline_small_functions): ... this one; cleanup; use
5579 can/want predicates; cleanup debug ouput; work edges till fibheap
5580 is exhausted and do not stop once unit growth is reached; remove
5581 later loop processing remaining edges.
5582 (cgraph_flatten): Rename to ...
5583 (flatten_function): ... this one; use can_inline_edge_p
5584 and can_early_inline_edge_p predicates.
5585 (cgraph_decide_inlining): Rename to ...
5586 (ipa_inline): ... this one; remove unreachable nodes before
5587 inlining functions called once; simplify the pass.
5588 (cgraph_perform_always_inlining): Rename to ...
5589 (inline_always_inline_functions): ... this one; use
5590 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5591 (cgraph_decide_inlining_incrementally): Rename to ...
5592 (early_inline_small_functions): ... this one; simplify
5593 using new predicates; cleanup; make dumps prettier.
5594 (cgraph_early_inlining): Rename to ...
5595 (early_inliner): newer inline regular functions into always-inlines;
5596 fix updating of call stmt summaries.
5597 (pass_early_inline): Update for new names.
5598 (inline_transform): Fix formating.
5599 (gate_cgraph_decide_inlining): Rename to ...
5600 (pass_ipa_inline): ... this one.
5601 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5602 * ipa-inline-analysis.c (dump_inline_summary): Update.
5603 (compute_inline_parameters): Do not compute disregard_inline_limits;
5604 look for mismatching arguments.
5605 (estimate_growth): Fix handlig of non-trivial self recursion.
5606 (inline_read_summary): Do not read info->disregard_inline_limits.
5607 (inline_write_summary): Do not write info->disregard_inline_limits.
5608 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5609 and move all checks into can_inline_edge_p predicate; re-enable code
5610 comparing optimization levels.
5611 (expand_call_inline): Do not test inline_forbidden_into_p.
5612 * Makefile.in (ipa-inline.o): Update arguments.
5614 2011-04-17 Revital Eres <revital.eres@linaro.org>
5616 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5618 2011-04-17 Revital Eres <revital.eres@linaro.org>
5620 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5622 2011-04-17 Michael Matz <matz@suse.de>
5624 PR tree-optimization/48622
5626 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5627 in same order as they're written.
5629 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5631 * config/pa/predicates.md: Reorganize and simplify predicates.
5632 Eliminate duplicate code checks.
5633 (arith_operand): Rename to arith14_operand
5634 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5635 * config/pa/pa.md: Use renamed operands.
5636 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5637 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5638 arith11_operand, adddi3_operand, indexed_memory_operand,
5639 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5640 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5641 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5642 move_dest_operand, move_src_operand, prefetch_cc_operand,
5643 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5644 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5645 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5646 div_operand, int5_operand, movb_comparison_operator,
5647 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5648 arith_double_operand, ireg_operand, lhs_lshift_operand,
5649 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5650 integer_store_memory_operand): Likewise.
5651 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5652 (integer_store_memory_operand, read_only_operand,
5653 function_label_operand, borx_reg_operand,
5654 non_hard_reg_operand): Likewise.
5655 (eq_neq_comparison_operator): Delete unused operator.
5656 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5657 function_label_operand.
5658 (emit_move_sequence): Likewise.
5660 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5662 * config/i386/sse.md (sseunpackmode): New mode attribute.
5663 (ssepackmode): Ditto.
5664 (vec_pack_trunc_<mode>): Macroize expander from
5665 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5666 (vec_unpacks_lo_<mode>): Macroize expander from
5667 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5668 (vec_unpacks_hi_<mode>): Macroize expander from
5669 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5670 (vec_unpacku_lo_<mode>): Macroize expander from
5671 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5672 (vec_unpacku_hi_<mode>): Macroize expander from
5673 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5674 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5675 ix86_expand_sse4_unpack.
5676 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5678 2011-04-16 Jan Hubicka <jh@suse.cz>
5680 * cgraphbuild.c: Include ipa-inline.h.
5681 (reset_inline_failed): Use initialize_inline_failed.
5682 * cgraph.c: Include ipa-inline.h.
5683 (cgraph_create_node_1): Do not initialize estimated_growth.
5684 (initialize_inline_failed): More to ipa-inline-analysis.c
5685 (dump_cgraph_node): Do not dump inline flags.
5686 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5687 and disregard_inline_limits flags.
5688 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5689 time, size, estimated_growth.
5690 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5692 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5693 DECL_DISREGARD_INLINE_LIMITS.
5694 (cgraph_analyze_function): Do not initialize
5695 node->local.disregard_inline_limits.
5696 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5697 inlinable, versionable and disregard_inline_limits.
5698 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5699 cgraph_check_inline_limits, cgraph_default_inline_p,
5700 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5701 add_new_edges_to_heap): Update.
5702 (cgraph_decide_inlining_of_small_function): Update; set
5703 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5704 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5705 cgraph_decide_inlining_incrementally): Update.
5706 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5707 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5708 time, size and estimated_growth parameters.
5709 (estimate_edge_growth): Update.
5710 (initialize_inline_failed): Declare.
5711 * ipa-split.c: Include ipa-inline.h
5712 (execute_split_functions): Update.
5713 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5714 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5715 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5716 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5717 estimated_growth to INT_MIN.
5718 (inline_node_duplication_hook): Likewise.
5719 (dump_inline_summary): Dump new fields.
5720 (compute_inline_parameters): Update.
5721 (estimate_edge_time, estimate_time_after_inlining,
5722 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5723 inline_write_summary):
5724 (initialize_inline_failed): Move here from cgraph.c.
5725 * tree-sra.c: Include ipa-inline.h.
5726 (ipa_sra_preliminary_function_checks): Update.
5727 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5730 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5732 * config/i386/sse.md (V16): New mode iterator.
5734 (AVXMODEQI, AVXMODEDI): Remove.
5735 (sse2, sse3): New mode attribute.
5736 (mov<mode>): Use V16 mode iterator.
5737 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5738 (push<mode>1): Use V16 mode iterator.
5739 (movmisalign<mode>): Ditto.
5740 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5741 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5742 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5743 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5744 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5745 avx_movdqu<avxmodesuffix>.
5746 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5747 *avx_movdqu<avxmodesuffix>.
5748 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5749 avx_lddqu<avxmodesuffix>.
5750 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5751 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5752 avx_movnt<AVXMODEDI:mode>.
5753 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5754 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5756 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5759 * haifa-sched.c (prune_ready_list, schedule_block): Use
5760 sched_pressure_p rather than flag_sched_pressure.
5762 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5764 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5765 cgraph_get_node instead of cgraph_get_create_node.
5767 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5769 * cfgexpand.c (expand_debug_expr): Use
5770 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5772 2011-04-15 Michael Matz <matz@suse.de>
5774 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5775 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5776 * function.c (gimplify_parameters): Ditto.
5777 * gimplify.c (gimplify_vla_decl): Ditto.
5779 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5780 (gimple_call_set_alloca_for_var): New inline function.
5781 (gimple_call_alloca_for_var_p): Ditto.
5782 * gimple.c (gimple_build_call_from_tree): Remember
5783 CALL_ALLOCA_FOR_VAR_P state.
5784 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5786 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5787 calls if they were for VLA objects.
5789 2011-04-15 Martin Jambor <mjambor@suse.cz>
5791 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5794 2011-04-15 Martin Jambor <mjambor@suse.cz>
5797 * tree-emutls.c (lower_emutls_function_body): Call
5798 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5801 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5803 * c-decl.c (detect_field_duplicates): Call
5804 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5806 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5808 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5809 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5810 * ipa-pure-const.c (check_stmt): Call it.
5811 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5813 2011-04-15 Richard Guenther <rguenther@suse.de>
5815 PR tree-optimization/48290
5816 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5817 Properly decide inhibiting propagation based on the valueized
5818 operand. Do loop-closed SSA form preserving here ...
5819 (init_copy_prop): ... not here.
5821 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5824 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5825 (*ieee_smax<mode>3): Likewise.
5827 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5829 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5830 Replace match_operand with match_dup for the third operand in
5833 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5835 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5836 to track processing of conditionals. Update all callers.
5837 (try_combine, simplify_if_then_else): Update.
5839 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5841 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5844 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5846 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5847 instead of match_operand for operand 3.
5849 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5851 * recog.h (insn_operand_data): Add an "allows_mem" field.
5852 * genoutput.c (output_operand_data): Initialize it.
5853 * optabs.c (maybe_legitimize_operand_same_code): New function.
5854 (maybe_legitimize_operand): Use it when matching the original
5857 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5859 * gimplify.c: Fix issues in comments throughout.
5860 (voidify_wrapper_expr): Fix long line.
5861 (build_stack_save_restore): Likewise.
5862 (gimplify_loop_expr): Likewise.
5863 (gimplify_compound_lval): Likewise.
5864 (gimplify_init_ctor_eval): Likewise.
5865 (gimplify_modify_expr_rhs): Likewise.
5866 (omp_notice_threadprivate_variable): Likewise.
5868 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5870 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5871 original one if this is not a builtin function.
5873 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5876 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5877 offset it as needed based on top 2 bits in operands[3], change
5878 MEM mode to SFmode and mask those 2 bits away from operands[3].
5880 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5882 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5883 change from objc_declare_protocols() to objc_declare_protocol().
5885 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5887 * config/i386/sse.md (sse4_1): New mode attribute.
5888 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5889 avx_blend<ssemodesuffix><avxmodesuffix> and
5890 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5891 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5892 avx_blendv<ssemodesuffix><avxmodesuffix> and
5893 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5894 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5895 avx_dp<ssemodesuffix><avxmodesuffix> and
5896 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5897 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5898 (sse4_1_packusdw): Merge with *avx_packusdw.
5899 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5900 (sse4_1_pblendw): Merge with *avx_pblendw.
5901 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5902 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5903 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5905 (sse4_1_round<ssescalarmodesuffix>): Merge with
5906 *avx_round<ssescalarmodesuffix>.
5907 (aesenc): Merge with *avx_aesenc.
5908 (aesenclast): Merge with *avx_aesenclast.
5909 (aesdec): Merge with *avx_aesdec.
5910 (aesdeclast): Merge with *avx_aesdeclast.
5911 (pclmulqdq): Merge with *pclmulqdq.
5912 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5914 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5916 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5919 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5920 (align_local_variable): This. Update DECL_ALIGN.
5921 (add_stack_var): Updated.
5922 (expand_one_stack_var): Likewise.
5924 2011-04-14 Richard Guenther <rguenther@suse.de>
5926 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5928 (dse_initialize_block_local_data, dse_leave_block,
5929 record_voperand_set, get_stmt_uid): Likewise.
5930 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5931 (dse_optimize_stmt): Remove voperand set handling code.
5932 Simplify and improve to handle any kind of killing stmt.
5933 (dse_record_phi): Remove.
5934 (dse_enter_block): Simplify.
5935 (tree_ssa_dse): Likewise.
5936 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5938 2011-04-14 Jan Hubicka <jh@suse.cz>
5940 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5941 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5942 (cgraph_local_info): Remove inline_summary.
5943 * ipa-cp.c: Include ipa-inline.h.
5944 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5945 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5947 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5948 (input_overwrite_node): Do not set inline summary.
5949 (input_node): Do not stream inline summary.
5950 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5951 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5952 growth; we do not have inline parameters computed for that anyway.
5953 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5954 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5955 (inline_summary_t): New type and VECtor.
5956 (debug_inline_summary, dump_inline_summaries): Declare.
5957 (inline_summary): Use VOCtor.
5958 (estimate_edge_growth): Kill hack computing call stmt size directly.
5959 * lto-section-in.c (lto_section_name): Add inline section.
5960 * ipa-inline-analysis.c: Include lto-streamer.h
5961 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5962 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5963 (inline_summary_vec): Define.
5964 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5965 dump_inline_summaries): New functions.
5966 (estimate_function_body_sizes): Properly compute size/time of outgoing
5968 (compute_inline_parameters): Alloc inline_summary; do not compute
5969 size/time of incomming calls.
5970 (estimate_edge_time): Avoid missing time summary hack.
5971 (inline_read_summary): Read inline summary info.
5972 (inline_write_summary): Write inline summary info.
5973 (inline_free_summary): Free all hooks and inline summary vector.
5974 * lto-streamer.h: Add LTO_section_inline_summary section.
5975 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5976 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5978 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5980 * tree-vectorizer.h (vect_strided_store_supported): Add a
5981 HOST_WIDE_INT argument.
5982 (vect_strided_load_supported): Likewise.
5983 (vect_permute_store_chain): Return void.
5984 (vect_transform_strided_load): Likewise.
5985 (vect_permute_load_chain): Delete.
5986 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5987 count argument. Check that the count is a power of two.
5988 (vect_strided_load_supported): Likewise.
5989 (vect_permute_store_chain): Return void. Update after above changes.
5990 Assert that the access is supported.
5991 (vect_permute_load_chain): Likewise.
5992 (vect_transform_strided_load): Return void.
5993 * tree-vect-stmts.c (vectorizable_store): Update calls after
5994 above interface changes.
5995 (vectorizable_load): Likewise.
5996 (vect_analyze_stmt): Don't check for strided powers of two here.
5998 2011-04-14 Richard Guenther <rguenther@suse.de>
6000 PR tree-optimization/48590
6001 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6002 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6003 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6004 BUILT_IN_STACK_SAVE.
6005 * tree-ssa-dce.c (propagate_necessity): Handle
6006 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6008 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6010 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6013 2011-04-14 Richard Guenther <rguenther@suse.de>
6015 * tree.h (get_object_alignment_1): Declare.
6016 * builtins.c (get_object_alignment_1): Split out worker from ...
6017 (get_object_alignment): ... here.
6018 * fold-const.c (get_pointer_modulus_and_residue): Use
6019 get_object_alignment_1.
6021 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6023 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6025 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6026 parameter. Generalise code to handle arrays as well as vectors.
6027 (vect_setup_realignment): Update accordingly.
6028 * tree-vect-stmts.c (vectorizable_store): Likewise.
6029 (vectorizable_load): Likewise.
6031 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6033 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6034 within the per-copy loop.
6036 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6038 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6041 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6043 * doc/options.texi (Negative): Explicitly mention that the
6044 Negative chain must be circular.
6046 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6048 * function.h (block_chainon): Declare.
6049 * function.c (block_chainon): Define.
6051 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6052 Eric Weddington <eric.weddington@atmel.com>
6053 Georg-Johann Lay <avr@gjlay.de>
6055 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6057 (avr_init_builtins, avr_expand_builtin,
6058 avr_expand_delay_cycles, avr_expand_unop_builtin,
6059 avr_expand_binop_builtin ): New functions.
6060 (avr_builtin_id): New enum
6061 (struct avr_builtin_description): New struct
6062 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6063 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6065 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6066 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6067 UNSPECV_DELAY_CYCLES): new enumeration values
6068 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6069 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6070 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6071 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6072 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6073 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6074 "fmulsu"): New insns
6076 * config/avr/avr-c.c: fix line endings
6077 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6078 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6079 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6080 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6081 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6083 * doc/extend.texi (AVR Built-in Functions): New node
6084 (Target Builtins): Add documentation of AVR
6087 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6090 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6091 alone. Error if non-const data has attribute progmem.
6093 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6095 * tree.h (struct tree_constructor): Include tree_typed instead of
6097 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6098 TS_TYPED instead of TS_COMMON.
6100 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6102 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6103 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6104 (sse2_psadbw): Merge with *avx_psadbw.
6105 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6106 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6107 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6108 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6109 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6110 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6111 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6112 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6113 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6114 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6115 (ssse3_palignrti): Merge with *avx_palignrti.
6117 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6119 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6120 * tree-ssanames.c (fini_ssanames): VEC_free it.
6121 (make_ssa_name_fn): Update for VECness of free_ssanames.
6122 (release_ssa_name, release_dead_ssa_names): Likewise.
6123 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6125 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6126 TS_TYPED instead of TS_COMMON.
6128 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6130 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6131 statistics_counter_event.
6132 * tree-ssa-copyrename.c (stats): Define.
6133 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6134 statistics_counter_event.
6135 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6136 (bswap_stats, widen_mul_stats): Define.
6137 (insert_reciprocals): Increment rdivs_inserted.
6138 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6139 rfuncs_inserted. Add calls to statistics_counter_event.
6140 (execute_cse_sincos_1): Increment inserted.
6141 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6142 statistics_counter_event.
6143 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6144 of bswap_stats. Add calls to statistics_counter_event.
6145 (convert_mult_to_widen): Increment widen_mults_inserted.
6146 (convert_plusminus_to_widen): Increment maccs_inserted.
6147 (convert_mult_to_fma): Increment fmas_inserted.
6148 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6149 calls to statistics_counter_event.
6151 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6153 PR rtl-optimization/48455
6154 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6155 `temp_costs->mem_cost'.
6157 2011-04-13 Jan Hubicka <jh@suse.cz>
6159 * ipa-inline.h: New file.
6160 * ipa-inline-analysis.c: New file. Broken out of ...
6161 * ipa-inline.c: ... this file; update toplevel comment;
6162 include ipa-inline.h
6163 (inline_summary): Move to ipa-inline.h
6164 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6165 ipa-inline-analysis.c.
6166 (cgraph_estimate_time_after_inlining): Rename to
6167 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6168 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6169 to estimate_edge_growth.
6170 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6171 rename to estimate_size_after_inlining.
6172 (cgraph_mark_inline_edge): Update for new naming convention.
6173 (cgraph_check_inline_limits): Likewise.
6174 (cgraph_edge_badness): Likewise.
6175 (cgraph_decide_recursive_inlining): Likewise.
6176 (cgraph_decide_inlining_of_small_functions): Likewise.
6177 (cgraph_decide_inlining_incrementally): Likewise.
6178 (cgraph_estimate_growth): Rename to estimate_growth; move to
6179 ipa-inline-analysis.c.
6180 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6181 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6182 (compute_inline_parameters): Likewise.
6183 (compute_inline_parameters_for_current): Likewise.
6184 (pass_inline_parameters): Likewise.
6185 (inline_indirect_intraprocedural_analysis): Likewise.
6186 (analyze_function): Rename to inline_analyze_function; likewise.
6187 (add_new_function): Move to ipa-inline-analysis.c.
6188 (inline_generate_summary): Likewise.
6189 (inline_read_summary): Likewise.
6190 (inline_write_summary): Likewise.
6191 * Makefile.in (ipa-inline-analysis.c): New file.
6193 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6195 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6196 * configure: Regenerate.
6198 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6200 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6201 instead of tree_common.
6202 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6204 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6205 TS_TYPED rather than TS_COMMON.
6206 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6208 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6211 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6212 r20 around calls of __tablejump_elpm__
6214 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6217 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6219 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6221 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6223 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6224 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6225 (cfi_vec): New typedef.
6226 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6227 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6228 (cie_cfi_vec): New static variable.
6229 (cie_cfi_head): Delete.
6230 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6231 declaration changed. Use vector rather than list operations.
6232 (new_cfi): Don't initialize the dw_cfi_next field.
6233 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6234 rather than list operations.
6235 (lookup_cfa): Use vector rather than list operations.
6236 (output_cfis): New argument upto. Accept a cfi_vec rather than
6237 a dw_cfi_ref list head as argument. All callers changed.
6238 Iterate over the vector using upto as a maximum index.
6239 (output_all_cfis): New static function.
6240 (output_fde): Use vector rather than list operations. Use the
6241 new upto argument for output_cfis rather than manipulating a
6243 (dwarf2out_begin_prologue): Change initializations to match
6245 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6246 from the vector length rather than searching for the end of a list.
6247 Use output_all_cfis.
6248 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6250 2011-04-13 Nick Clifton <nickc@redhat.com>
6252 * config/rx/rx.md (movmemsi): Do not use this pattern when
6253 volatile pointers are involved.
6255 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6257 * config/i386/sse.md (pinsrbits): Remove.
6258 (sse2_packsswb): Merge with *avx_packsswb.
6259 (sse2_packssdw): Merge with *avx_packssdw.
6260 (sse2_packuswb): Merge with *avx_packuswb.
6261 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6262 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6263 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6264 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6265 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6266 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6267 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6268 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6269 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6270 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6271 (sse2_loadld): Merge with *avx_loadld.
6272 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6273 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6274 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6275 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6276 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6278 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6280 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6282 * print-tree.c (print_node): Likewise.
6283 * tree-inline.c (copy_tree_r): Likewise.
6284 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6285 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6286 instead of TS_COMMON.
6287 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6288 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6289 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6290 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6291 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6293 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6295 (TREE_CHAIN): Check for a TS_COMMON structure.
6296 (TREE_TYPE): Check for a TS_TYPED structure.
6298 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6300 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6301 cgraph_get_create_node instead of cgraph_node.
6303 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6305 * c-parser.c (c_parser_initelt): Updated call to
6306 objc_build_message_expr.
6307 (c_parser_postfix_expression): Likewise.
6309 2011-04-12 Kai Tietz <ktietz@redhat.com>
6311 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6312 MASK_MS_BITFIELD_LAYOUT bit.
6314 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6316 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6317 assert it is always true.
6318 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6321 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6323 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6324 compiling Objective-C to be more efficient.
6326 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6328 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6331 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6333 * recog.h, genoutput.c, optabs.c: Revert last patch.
6335 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6338 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6340 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6342 * recog.h (insn_operand_data): Add an "allows_mem" field.
6343 * genoutput.c (output_operand_data): Initialize it.
6344 * optabs.c (maybe_legitimize_operand_same_code): New function.
6345 (maybe_legitimize_operand): Use it when matching the original
6348 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6350 * genpreds.c (process_define_predicate): Move most processing
6351 to gensupport.c. Continue to validate the expression.
6352 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6353 (process_define_predicate): Move processing to gensupport.c.
6354 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6355 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6356 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6358 (valid_predicate_name_p): New function, split out from old
6359 genpreds.c:process_define_predicate.
6360 (process_define_predicate): New function, combining code from
6361 old genpreds.c and genrecog.c functions.
6362 (process_rtx): Call it for DEFINE_PREDICATE and
6363 DEFINE_SPECIAL_PREDICATE.
6365 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6367 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6368 size of a '%A' memory reference.
6369 (T_DREG, T_QREG): New neon_builtin_type_bits.
6370 (arm_init_neon_builtins): Assert that the load and store operands
6371 are neon_struct_operands.
6372 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6373 (NEON_ARG_MEMORY): New builtin_arg.
6374 (neon_dereference_pointer): New function.
6375 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6376 Handle NEON_ARG_MEMORY.
6377 (arm_expand_neon_builtin): Update after above interface changes.
6378 Use NEON_ARG_MEMORY for loads and stores.
6379 * config/arm/predicates.md (neon_struct_operand): New predicate.
6380 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6381 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6382 (V_four_elem): Tweak formatting.
6383 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6384 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6385 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6386 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6387 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6388 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6389 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6390 Use %A in the output template.
6391 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6392 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6393 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6394 the width of the memory access. Remove post-increment.
6395 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6397 2011-04-12 Nick Clifton <nickc@redhat.com>
6399 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6400 instruction for interrupt handlers if the target is the basic V850
6402 (expand_epilogue): Likewise.
6404 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6406 PR rtl-optimization/48549
6407 * combine.c (propagate_for_debug): Also stop after BB_END of
6408 this_basic_block. Process LAST and just stop processing after it.
6409 (combine_instructions): If last_combined_insn has been deleted,
6410 set last_combined_insn to its PREV_INSN.
6412 2011-04-12 Richard Guenther <rguenther@suse.de>
6414 PR tree-optimization/46076
6415 * gimple.h (struct gimple_statement_call): Add fntype field.
6416 (gimple_call_fntype): Adjust.
6417 (gimple_call_set_fntype): New function.
6418 * gimple.c (gimple_build_call_1): Set the call function type.
6419 * gimplify.c (gimplify_call_expr): Preserve the function
6420 type the frontend used for the call.
6421 (gimplify_modify_expr): Likewise.
6422 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6424 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6426 * tree-ssa.c (useless_type_conversion_p): Function pointer
6427 conversions are useless.
6429 2011-04-12 Martin Jambor <mjambor@suse.cz>
6431 * cgraph.h (cgraph_node): Remove function declaration.
6432 (cgraph_create_node): Declare.
6433 (cgraph_get_create_node): Likewise.
6434 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6435 Updated all callers.
6436 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6437 the decl does not already exist. Call cgraph_get_create_node instead
6439 (cgraph_get_create_node): New function.
6440 (cgraph_same_body_alias): Update comment.
6441 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6442 assert it does not return NULL.
6443 (cgraph_update_edges_for_call_stmt): Likewise.
6444 (cgraph_clone_edge): Likewise.
6445 (cgraph_create_virtual_clone): Likewise.
6446 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6447 instead of cgraph_node.
6448 (cgraph_add_new_function): Call cgraph_create_node or
6449 cgraph_get_create_node instead of cgraph_node.
6450 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6451 instead of cgraph_node.
6452 (record_eh_tables): Likewise.
6453 (mark_address): Likewise.
6454 (mark_load): Likewise.
6455 (build_cgraph_edges): Call cgraph_get_create_node instead
6457 (rebuild_cgraph_edges): Likewise.
6458 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6459 instead of cgraph_node.
6460 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6462 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6463 cgraph_create_node instead of cgraph_node.
6464 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6466 * lto-cgraph.c (input_node): Likewise.
6467 * lto-streamer-in.c (input_function): Likewise.
6468 * varasm.c (mark_decl_referenced): Likewise.
6469 (assemble_alias): Likewise.
6471 2011-04-12 Martin Jambor <mjambor@suse.cz>
6473 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6474 instead of cgraph_node and assert it does not return NULL.
6475 * lto-streamer-in.c (lto_read_body): Likewise.
6476 * omp-low.c (new_omp_context): Likewise.
6477 (create_task_copyfn): Likewise.
6478 * tree-emutls.c (lower_emutls_function_body): Likewise.
6479 * matrix-reorg.c (transform_allocation_sites): Likewise.
6481 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6484 * c-typeck.c (build_asm_expr): Error out on attempts to use
6485 void type outputs or inputs for constraints that allow reg or
6488 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6489 Richard Earnshaw <rearnsha@arm.com>
6492 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6493 to use sign-magnitude offsets. Reject unsupported unaligned
6494 cases. Add detailed description in comments.
6495 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6496 condition from TARGET_32BIT to TARGET_ARM.
6498 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6500 * tree.h (struct typed_tree): New.
6501 (struct tree_common): Include it instead of tree_base.
6502 (TREE_TYPE): Update for new location of type field.
6503 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6504 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6505 (union tree_node): Add typed field.
6506 * treestruct.def (TS_TYPED): New.
6507 * lto-streamer.c (check_handled_ts_structures): Handle it.
6508 * tree.c (MARK_TS_TYPED): New macro.
6509 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6511 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6513 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6514 (force_nonfallthru): Do not alter the loop nest if no basic block
6517 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6519 * config/i386/sse.md (VI): New mode iterator.
6521 (AVX256MODEI): Ditto.
6522 (AVXMODEF4P): Ditto.
6523 (avxvecpsmode): Ditto.
6524 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6525 (sse2_andnot<mode>3): New expander.
6526 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6527 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6528 (<any_logic:code><mode>3): Use VI mode iterator.
6529 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6530 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6531 (*andnottf3): Handle AVX three-operand constraints.
6532 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6534 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6535 Robert Millan <rmh@gnu.org>
6537 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6538 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6539 GNU_USER_DYNAMIC_LINKER64): Define.
6540 (REG_NAME): Don't undefine.
6541 (MD_UNWIND_SUPPORT): Undefine.
6542 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6543 (REG_NAME): Don't undefine.
6544 (MD_UNWIND_SUPPORT): Undefine.
6545 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6547 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6549 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6550 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6552 2011-04-11 Xinliang David Li <davidxl@google.com>
6554 * value-profile.c (check_ic_target): New function.
6555 (gimple_ic_transform): Sanity check indirect call target.
6556 * gimple-low.c (gimple_check_call_args): Interface change.
6557 (gimple_check_call_matching_types): New function.
6558 * tree-inline.c (tree_can_inline_p): Call new function.
6560 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6562 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6563 tree-pretty-print.h & realmpfr.h.
6565 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6568 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6569 (setup_allocno_and_important_classes): Ditto.
6571 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6573 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6574 GNU_USER_DYNAMIC_LINKER.
6575 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6576 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6577 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6578 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6579 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6580 GNU_USER_TARGET_OS_CPP_BUILTINS.
6581 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6582 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6583 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6584 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6585 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6586 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6587 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6588 GNU_USER_TARGET_OS_CPP_BUILTINS.
6589 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6590 GNU_USER_DYNAMIC_LINKER.
6591 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6592 GNU_USER_TARGET_OS_CPP_BUILTINS.
6593 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6594 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6595 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6596 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6597 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6598 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6599 GNU_USER_DYNAMIC_LINKER64): Remove.
6600 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6601 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6602 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6603 GNU_USER_DYNAMIC_LINKER.
6604 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6605 GNU_USER_TARGET_OS_CPP_BUILTINS.
6606 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6607 GNU_USER_TARGET_OS_CPP_BUILTINS.
6608 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6609 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6610 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6611 GNU_USER_TARGET_OS_CPP_BUILTINS.
6612 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6613 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6614 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6615 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6616 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6617 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6618 GNU_USER_DYNAMIC_LINKER.
6619 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6620 GNU_USER_TARGET_OS_CPP_BUILTINS.
6621 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6622 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6623 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6624 GNU_USER_DYNAMIC_LINKER.
6625 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6626 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6627 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6628 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6629 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6630 GNU_USER_DYNAMIC_LINKER.
6631 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6632 GNU_USER_DYNAMIC_LINKERN32.
6633 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6634 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6635 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6636 GNU_USER_DYNAMIC_LINKER32.
6637 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6638 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6639 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6640 GNU_USER_DYNAMIC_LINKER.
6641 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6642 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6643 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6644 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6645 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6646 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6647 GNU_USER_DYNAMIC_LINKER32.
6648 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6649 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6650 GNU_USER_DYNAMIC_LINKER.
6651 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6652 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6653 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6654 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6655 GNU_USER_DYNAMIC_LINKER64.
6656 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6657 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6658 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6659 GNU_USER_DYNAMIC_LINKER.
6660 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6661 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6662 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6663 GNU_USER_DYNAMIC_LINKER.
6664 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6665 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6666 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6667 GNU_USER_DYNAMIC_LINKER32.
6668 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6669 GNU_USER_DYNAMIC_LINKER64.
6670 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6671 GNU_USER_DYNAMIC_LINKER64.
6672 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6673 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6674 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6675 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6676 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6678 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6680 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6681 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6682 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6683 GNU_USER_DYNAMIC_LINKER.
6684 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6685 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6686 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6687 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6688 GNU_USER_DYNAMIC_LINKER64.
6689 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6690 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6691 GNU_USER_LINK_EMULATION.
6692 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6693 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6694 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6695 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6696 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6697 CPP_SPEC, CC1_SPEC): Remove.
6698 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6699 (GNU_USER_DYNAMIC_LINKER): Define.
6700 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6701 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6702 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6703 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6704 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6705 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6706 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6707 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6708 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6709 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6710 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6711 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6712 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6713 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6714 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6715 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6716 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6717 GNU_USER_DYNAMIC_LINKER.
6718 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6719 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6720 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6721 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6722 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6723 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6724 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6725 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6726 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6727 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6729 2011-04-11 Kai Tietz <ktietz@redhat.com>
6733 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6734 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6736 (ix86_is_msabi_thiscall): Removed.
6737 (ix86_is_type_thiscall): Likewise.
6738 (ix86_get_callcvt): New function.
6739 (ix86_comp_type_attributes): Simplify check.
6740 (ix86_function_regparm): Use ix86_get_callcvt for calling
6741 convention attribute checks.
6742 (ix86_return_pops_args): Likewise.
6743 (ix86_static_chain): Likewise.
6744 (x86_this_parameter): Likewise.
6745 (x86_output_mi_thunk): Likewise.
6746 (ix86_function_type_abi): Optimize check for types without attributes.
6747 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6748 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6749 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6751 (IX86_BASE_CALLCVT): Helper macro.
6752 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6753 Use ix86_get_callcvt for calling convention attribute checks and avoid
6754 symbol-decoration for stdcall in TARGET_RTD case.
6755 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6757 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6760 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6762 * config/i386/sse.md (VI_128): New mode iterator.
6763 (VI12_128): Rename from SSEMODE12.
6764 (VI14_128): Rename from SSEMODE14.
6765 (VI124_128): New mode iterator.
6766 (VI24_128): Rename from SSEMODE248.
6767 (VI248_128): Rename from SSEMODE248.
6768 (SSEMODE124C8): Remove.
6769 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6770 (*sse2_<plusminus_insn><mode>3): Merge with
6771 *avx_<plusminus_insn><mode>3.
6772 (*mulv8hi3): Merge with *avx_mulv8hi3.
6773 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6774 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6775 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6776 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6777 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6778 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6779 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6780 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6781 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6782 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6783 (*<smaxmin:code>v8hi3): Ditto.
6784 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6785 (*<smaxmin:code>v16qi3): Ditto.
6786 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6787 (*sse2_eq<mode>3): Ditto.
6788 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6789 (*sse2_gt<mode>3): Ditto.
6790 (vcondv2di): Split out of vcond<mode>.
6791 (vconduv2di): Split out of vcondu<mode>.
6793 2011-04-11 Richard Guenther <rguenther@suse.de>
6795 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6796 before calling tree_low_cst.
6798 2011-04-11 Richard Guenther <rguenther@suse.de>
6800 * stor-layout.c (layout_type): Compute all array index size operations
6801 in the original type.
6802 (initialize_sizetypes): Add comment.
6803 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6805 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6807 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6809 2011-04-11 Martin Jambor <mjambor@suse.cz>
6811 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6812 of cgraph_node, handle NULL return value.
6813 (cgraph_global_info): Likewise.
6814 (cgraph_rtl_info): Likewise.
6815 * tree-inline.c (estimate_num_insns): Likewise.
6816 * gimplify.c (unshare_body): Likewise.
6817 (unvisit_body): Likewise.
6818 (gimplify_body): Likewise.
6819 * predict.c (optimize_function_for_size_p): Likewise.
6820 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6821 (call_may_clobber_ref_p_1): Likewise.
6822 * varasm.c (function_section_1): Likewise.
6823 (assemble_start_function): Likewise.
6825 2011-04-11 Martin Jambor <mjambor@suse.cz>
6827 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6829 * final.c (rest_of_clean_state): Likewise.
6830 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6831 * passes.c (pass_init_dump_file): Likewise.
6832 (execute_all_ipa_transforms): Likewise.
6833 (function_called_by_processed_nodes_p): Likewise.
6834 * predict.c (maybe_hot_frequency_p): Likewise.
6835 (probably_never_executed_bb_p): Likewise.
6836 (compute_function_frequency): Likewise.
6837 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6838 (unnest_nesting_tree_1): Likewise.
6839 (lower_nested_functions): Likewise.
6840 * tree-optimize.c (execute_fixup_cfg): Likewise.
6841 (tree_rest_of_compilation): Likewise.
6842 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6843 * tree-sra.c (ipa_early_sra): Likewise.
6844 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6845 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6846 * ipa.c (record_cdtor_fn): Likewise.
6847 * ipa-inline.c (cgraph_early_inlining): Likewise.
6848 (compute_inline_parameters_for_current): Likewise.
6849 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6850 * ipa-pure-const.c (local_pure_const): Likewise.
6851 * ipa-split.c (split_function): Likewise.
6852 (execute_split_functions): Likewise.
6853 * cgraphbuild.c (build_cgraph_edges): Likewise.
6854 (rebuild_cgraph_edges): Likewise.
6855 (cgraph_rebuild_references): Likewise.
6856 (remove_cgraph_callee_edges): Likewise.
6857 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6858 (verify_cgraph_node): Likewise.
6859 (cgraph_analyze_functions): Likewise.
6860 (cgraph_preserve_function_body_p): Likewise.
6861 (save_inline_function_body): Likewise.
6862 (save_inline_function_body): Likewise.
6863 * tree-inline.c (copy_bb): Likewise.
6864 (optimize_inline_calls): Likewise.
6866 2011-04-11 Martin Jambor <mjambor@suse.cz>
6868 PR tree-optimization/48195
6869 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6870 ipa_check_create_edge_args.
6871 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6872 ipa_check_create_edge_args.
6873 * ipa-inline.c (inline_generate_summary): Do not call
6874 ipa_check_create_node_params and ipa_check_create_edge_args.
6875 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6876 ipa_check_create_edge_args.
6878 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6880 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6882 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6883 * function.c (record_hard_reg_sets): Likewise.
6884 * ira.c (compute_regs_asm_clobbered): Likewise.
6885 * sched-deps.c (sched_analyze_1): Likewise.
6886 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6888 2011-04-09 Xinliang David Li <davidxl@google.com>
6890 PR tree-optimization/PR48484
6891 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6892 has_valid_pred lazily
6894 2011-04-09 Duncan Sands <baldrick@free.fr>
6896 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6898 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6900 * combine.c (combine_validate_cost): Adjust comments. Set registered
6901 cost of I0 to zero at the end, if any.
6903 2011-04-08 Xinliang David Li <davidxl@google.com>
6905 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6906 to insane profile data.
6908 2011-04-08 Xinliang David Li <davidxl@google.com>
6910 * ipa-cp.c (ipcp_update_profiling): Correct
6911 negative scale factor due to insane profile data.
6913 2011-04-08 Xinliang David Li <davidxl@google.com>
6915 * final.c (dump_basic_block_info): New function.
6916 (final): Dump basic block.
6917 (final_scan_insn): Remove old dump.
6919 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6922 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6925 2011-04-08 Michael Matz <matz@suse.de>
6928 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6930 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6931 * rtl.h (rebuild_jump_labels_chain): Declare.
6932 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6933 insns inserted on edges.
6935 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6937 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6938 * config/arm/arm-arches.def: New.
6939 * config/arm/arm-opts.h: New.
6940 * config/arm/genopt.sh: New.
6941 * config/arm/arm-tables.opt: New (generated).
6942 * config/arm/arm.c (arm_handle_option, arm_target_help,
6943 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6944 (all_architectures): Get most table contents from arm-arches.def.
6945 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6946 arm_selected_tune here.
6947 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6948 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6949 (march=, mcpu=, mtune=): Use Enum and Var.
6950 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6951 (arm.o): Update dependencies.
6953 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6955 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6957 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6958 (write_typed_alloc_defns): Likewise.
6959 (main): Calls write_typed_alloc_defns with output_header.
6961 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6964 * ira-color.c (setup_profitable_hard_regs): Add comments.
6965 Don't take prohibited hard regs into account.
6966 (setup_conflict_profitable_regs): Rename to
6967 get_conflict_profitable_regs.
6968 (check_hard_reg_p): Check prohibited hard regs.
6970 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6972 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6973 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6974 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6976 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6979 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6980 move from floating point to shift amount register.
6981 (emit_move_sequence): Remove secondary reload support for floating
6982 point to shift amount amount register copies.
6983 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6984 amount register copies.
6985 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6986 register, return false if mode isn't a scalar integer mode.
6987 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6989 2011-04-08 Richard Guenther <rguenther@suse.de>
6991 * gimple.c (gimple_call_flags): Remove kludge.
6993 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6995 * sel-sched.c (sel_region_init): Move call to
6996 sel_setup_region_sched_flags after setup_current_loop_nest.
6998 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7000 PR rtl-optimization/48272
7001 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7002 init_insn_reg_pressure_info. Adjust a caller.
7003 * sched-int.h (init_insn_reg_pressure_info): Declare.
7004 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7005 when sched-pressure is enabled.
7007 2011-04-08 Richard Guenther <rguenther@suse.de>
7009 * gimple.c (gimple_set_modified): Do not queue calls to
7010 MODIFIED_NORETURN_CALLS here ...
7011 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7013 2011-04-08 Richard Guenther <rguenther@suse.de>
7016 * toplev.c (lang_dependent_init): Do not open asm_out_file
7017 in WPA mode, nor perform debug machinery initialization.
7018 (finalize): Do not unlink asm_out_file in WPA mode.
7020 2011-04-08 Richard Guenther <rguenther@suse.de>
7022 * gimple.h (gimple_call_fntype): New function.
7023 (gimple_call_return_type): Use it.
7024 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7025 * gimple-low.c (gimple_check_call_args): Likewise.
7026 * gimple.c (gimple_call_flags): Likewise.
7027 (gimple_call_arg_flags): Likewise.
7028 (gimple_call_return_flags): Likewise.
7029 * tree-cfg.c (verify_gimple_call): Likewise.
7030 (do_warn_unused_result): Likewise.
7031 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7032 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7034 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7036 PR rtl-optimization/48235
7037 * sel-sched.c (code_motion_process_successors): Recompute the last
7038 insn in basic block if control flow changed.
7039 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7040 Update condition for ilist_remove.
7042 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7044 PR rtl-optimization/48302
7045 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7046 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7047 it to record added preheader blocks.
7048 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7049 on to sel_add_loop_preheaders.
7050 (sel_region_init): Move call to setup_current_loop_nest after
7053 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7056 * cfgloop.h (loop_has_exit_edges): New helper.
7057 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7059 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7060 that have no exit edges.
7062 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7064 PR rtl-optimization/48442
7065 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7066 all callers. Adjust assert.
7068 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7070 PR tree-optimization/48377
7071 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7072 is_packed to true even for types with smaller TYPE_ALIGN than
7075 2011-04-08 Richard Guenther <rguenther@suse.de>
7078 * doc/tm.texi: Re-generate.
7080 2011-04-08 Wei Guozhi <carrot@google.com>
7083 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7084 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7085 * config/arm/arm.md (*push_multi): Change the length computation to
7088 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7090 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7091 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7092 * doc/tm.texi: Regenerate.
7093 * system.h (ASM_OUTPUT_BSS): Poison.
7094 * varasm.c (asm_output_bss): Remove function.
7095 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7097 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7098 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7099 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7100 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7102 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7104 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7106 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7108 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7110 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7113 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7115 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7116 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7117 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7119 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7120 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7121 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7122 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7123 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7124 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7125 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7126 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7127 options. Don't map other m68k options manually. Don't handle
7128 old-style options as canonical.
7129 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7130 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7132 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7134 * basic-block.h (force_nonfallthru): Move to...
7135 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7136 (force_nonfallthru): ...here.
7137 * cfghooks.c (force_nonfallthru): New function.
7138 * cfgrtl.c (force_nonfallthru): Rename into...
7139 (rtl_force_nonfallthru): ...this.
7140 (commit_one_edge_insertion): Do not set AUX field.
7141 (commit_edge_insertions): Do not discover new basic blocks.
7142 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7143 (cfg_layout_rtl_cfg_hooks): Likewise.
7144 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7145 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7146 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7148 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7150 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7153 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7155 * config/i386/sse.md: Update copyright year.
7156 (avxcvtvecmode): Remove.
7157 (sse_movhlps): Merge with *avx_movhlps.
7158 (sse_movlhps): Merge with *avx_movlhps.
7159 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7160 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7161 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7162 (sse_loadhps): Merge with *avx_loadhps.
7163 (sse_storelps): Merge with *avx_storelps.
7164 (sse_loadlps): Merge with *avx_loadlps.
7165 (sse_movss): Merge with *avx_movss.
7166 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7167 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7168 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7169 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7170 (vec_set<mode>_0): Ditto.
7171 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7172 (sse4_1_insertps): Merge with *avx_insertps.
7173 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7174 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7175 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7176 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7177 (sse2_storehpd): Merge with *avx_storehpd.
7178 (sse2_loadhpd): Merge with *avx_loadhpd.
7179 (sse2_loadlpd): Merge with *avx_loadlpd.
7180 (sse2_movsd): Merge with *avx_movsd.
7181 (*vec_concatv2df): Merge with *vec_concatv2df.
7183 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7186 * combine.c (combine_instructions): Add last_combined_insn,
7187 update it if insn is after it, pass it to all try_combine calls.
7188 (try_combine): Add last_combined_insn parameter, pass it instead of
7189 i3 to propagate_for_debug.
7191 2011-04-07 Nick Clifton <nickc@redhat.com>
7193 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7194 to handle MDR <-> data register transfers.
7195 (movhi_internal): Likewise.
7197 2011-04-07 Alan Modra <amodra@gmail.com>
7199 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7200 previous stack info.
7202 2011-04-07 Tom de Vries <tom@codesourcery.com>
7205 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7206 flow_find_cross_jump. Swap variables to implement backward replacement.
7207 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7209 2011-04-07 Tom de Vries <tom@codesourcery.com>
7212 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7213 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7215 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7216 src1 or src2. Redirect edges to the last basic block. Update
7217 frequency and count on multiple basic blocks in case of fallthru.
7219 2011-04-07 Tom de Vries <tom@codesourcery.com>
7222 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7224 (old_insns_match_p): Change return type. Replace return false/true
7225 with return dir_none/dir_both. Use can_replace_by.
7226 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7227 direction from dir_p. Register replacement direction in dir, last_dir
7228 and afterlast_dir. Handle new return type of old_insns_match_p using
7229 merge_dir. Return replacement direction in dir_p.
7230 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7231 return type of old_insns_match_p.
7232 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7233 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7234 flow_find_cross_jump.
7235 * basic-block.h (enum replace_direction): New type.
7236 (flow_find_cross_jump): Add parameter to declaration.
7238 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7240 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7241 (AVXMODEDCVTPS2DQ): Ditto.
7242 (VEC_FLOAT_MODE): Ditto.
7243 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7244 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7245 (<any_logic:code><mode>3): Use VF mode iterator.
7246 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7247 Use VF mode iterator.
7248 (copysign<mode>3): Use VF mode iterator.
7249 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7250 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7251 (*<any_logic:code><MODEF:mode>3): Merge with
7252 *avx_<any_logic:code><MODEF:mode>3.
7253 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7254 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7255 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7256 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7257 (sse2_cvtdq2ps): Use %v modifier.
7258 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7259 (avx_cvtps2dq<avxmodesuffix>): Remove.
7260 (sse2_cvtps2dq): Use %v modifier.
7261 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7262 (avx_cvttps2dq<avxmodesuffix>): Remove.
7263 (sse2_cvttps2dq): Use %v modifier.
7264 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7265 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7266 (sse2_cvtsd2siq): Fix insn template.
7267 (sse2_cvtsd2siq_2): Ditto.
7268 (sse2_cvttsd2siq): Ditto.
7269 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7270 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7272 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7274 * gcov-io.c: Use GCC Runtime Library Exception.
7276 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7279 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7280 as base_reg whatever register reg has been eliminated to, instead
7281 of hardcoding STACK_POINTER_REGNUM.
7283 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7285 * doc/tm.texi.in: Document C target hooks as separate from general
7287 * doc/tm.texi: Regenerate.
7288 * genhooks.c (struct hook_desc): Add docname field.
7289 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7291 (hook_array): Include c-target.def.
7292 (emit_documentation): Use docname field in output.
7293 (emit_init_macros): Take docname argument. Only emit definitions
7294 for hooks matching docname.
7295 (main): Expect additional arguments in all cases. Pass argument
7296 to emit_init_macros.
7297 * target.def: Move initial macro definitions and comments to
7298 target-hooks-macros.h.
7299 (gcc_targetcm): Move to c-family/c-target.def.
7300 * target.h (targetcm): Move declaration to c-family/c-target.h.
7301 * targhooks.c (default_handle_c_option): Move to
7303 * targhooks.h (default_handle_c_option): Move declaration to
7304 c-family/c-common.h.
7305 * target-hooks-macros.h: New file.
7306 * config.gcc (target_has_targetcm): Define and use to add to
7307 c_target_objs and cxx_target_objs.
7308 * config/default-c.c: New file.
7309 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7310 of target.h and target-def.h.
7311 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7312 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7313 darwin_check_cfstring_format_arg): Make static.
7314 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7315 TARGET_STRING_OBJECT_REF_TYPE_P,
7316 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7317 * config/darwin-protos.h (darwin_objc_construct_string,
7318 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7320 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7321 TARGET_STRING_OBJECT_REF_TYPE_P,
7322 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7323 * config/t-darwin (darwin-c.o): Update dependencies.
7324 * system.h (TARGET_HAS_TARGETCM): Poison.
7325 * Makefile.in (TARGET_H): Update.
7326 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7327 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7328 (default-c.o): New target.
7329 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7330 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7331 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7333 (build/genhooks.o): Update dependencies.
7335 2011-04-06 Richard Guenther <rguenther@suse.de>
7337 * ipa-inline.c (enum inlining_mode): Remove.
7338 (cgraph_flatten): Use some other token.
7339 (cgraph_edge_early_inlinable_p): New function, split out from ...
7340 (cgraph_perform_always_inlining): New function, split out from ...
7341 (cgraph_decide_inlining_incrementally): ... here.
7342 (cgraph_mark_inline_edge): Adjust.
7343 (cgraph_early_inlining): Re-structure.
7344 (pass_early_inline): Require SSA form.
7346 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7347 Julian Brown <julian@codesourcery.com>
7348 Mark Shinwell <shinwell@codesourcery.com>
7350 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7351 LO_REGS only for Thumb-1.
7352 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7353 be used in short instructions when optimising for size on Thumb-2.
7355 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7357 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7358 associated with user returns to be preserved.
7360 2011-04-06 Tristan Gingold <gingold@adacore.com>
7362 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7363 symbol_queue_size, DBXOUT_DECR_NESTING,
7364 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7365 if XCOFF_DEBUGGING_INFO.
7367 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7369 * config/i386/i386.md (attribute isa): New.
7370 (attribute enabled): New.
7371 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7372 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7373 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7374 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7375 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7376 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7377 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7378 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7380 * config/i386/sse.md (VF): New mode iterator.
7384 (SSEMODEF4): Remove.
7385 (attribute sse): Handle V8SF and V4DF modes.
7386 (<absneg:code><mode>2): Use VF mode iterator.
7387 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7389 (<plusminus_insn><mode>3): Use VF mode iterator.
7390 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7391 Use VF mode iterator.
7392 (<sse>_vm<plusminus_insn><mode>3): Merge with
7393 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7394 (mul<mode>3): Use VF mode iterator.
7395 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7396 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7398 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7399 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7400 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7401 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7403 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7404 Use VF1 mode iterator.
7405 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7406 (sqrt<VF2:mode>2): New expander.
7407 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7408 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7409 and sqrtv2df2. Use VF mode iterator.
7410 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7412 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7413 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7414 Use VF1 mode iterator.
7415 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7416 (<smaxmin:code><mode>3): Use VF mode iterator.
7417 (*<smaxmin:code><mode>3_finite): Merge with
7418 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7419 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7420 (<sse>_vm<smaxmin:code><mode>2): Merge with
7421 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7422 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7424 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7426 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7427 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7428 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7429 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7430 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7432 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7433 Use VF_128 mode iterator.
7434 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7436 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7437 VF_128 mode iterator.
7438 (vcond<mode>): Use VF mode iterator.
7439 * config/i386/predicates.md (sse_comparison_operator): Merge with
7440 avx_comparison_float_operator. Do not declare as special_predicate.
7441 * config/i386/i386.c (struct builtin_description): Update for renamed
7443 (ix86_expand_args_builtin): Ditto.
7444 (ix86_expand_sse_compare_mask): Ditto.
7446 2011-04-06 Richard Guenther <rguenther@suse.de>
7448 * tree-inline.c (estimate_num_insns): For calls simply account
7449 for all passed arguments and a used return value.
7451 2011-04-06 Richard Guenther <rguenther@suse.de>
7453 PR tree-optimization/47663
7454 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7455 call_stmt_time fields.
7456 (cgraph_edge_inlinable_p): Declare.
7457 (cgraph_edge_recursive_p): New inline function.
7458 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7459 (cgraph_clone_edge): Copy it.
7460 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7461 Account for call stmt time.
7462 (cgraph_estimate_time_after_inlining): Take edge argument.
7463 (cgraph_estimate_edge_growth): Account call stmt size.
7464 (cgraph_estimate_size_after_inlining): Take edge argument.
7465 (cgraph_mark_inline_edge): Adjust.
7466 (cgraph_check_inline_limits): Likewise.
7467 (cgraph_recursive_inlining_p): Remove.
7468 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7469 (cgraph_decide_recursive_inlining): Take edge argument and
7471 (cgraph_decide_inlining_of_small_functions): Do not avoid
7472 diags for recursive inlining here.
7473 (cgraph_flatten): Adjust.
7474 (cgraph_decide_inlining_incrementally): Likewise.
7475 (estimate_function_body_sizes): Remove call cost handling.
7476 (compute_inline_parameters): Initialize caller edge call costs.
7477 (cgraph_estimate_edge_growth): New function.
7478 (cgraph_estimate_growth): Use it.
7479 (cgraph_edge_badness): Likewise.
7480 (cgraph_check_inline_limits): Take an edge argument.
7481 (cgraph_decide_inlining_of_small_functions): Adjust.
7482 (cgraph_decide_inlining): Likewise.
7483 * tree-inline.c (estimate_num_insns): Only account for call
7484 return value if it is used.
7485 (expand_call_inline): Avoid diagnostics on recursive inline
7487 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7488 (input_edge): Input edge call costs.
7490 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7492 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7494 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7496 * doc/invoke.texi (Spec Files): Fix typo.
7498 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7500 * profile.c (branch_prob): Move declaration of local variable. Remove
7501 obsolete ??? comment. Expand the location explicitly instead of using
7502 the LOCATION_FILE and LOCATION_LINE macros.
7504 2011-04-06 Wei Guozhi <carrot@google.com>
7507 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7508 (arm_cond_branch): Likewise.
7509 (arm_cond_branch_reversed): Likewise.
7510 (arm_jump): Likewise.
7511 (push_multi): Likewise.
7512 * config/arm/constraints.md (Py): New constraint.
7514 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7517 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7519 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7520 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7521 #ifdef DBX_DEBUGGING_INFO.
7523 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7526 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7527 if old and new states differ.
7529 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7531 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7532 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7533 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7534 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7535 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7537 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7538 ColdFire options to -mcpu= options.
7540 2011-04-05 Jeff Law <law@redhat.com>
7542 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7543 check if BB is a successor of LOOP->header and return
7544 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7546 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7548 * cprop.c (struct reg_use): Remove.
7549 (reg_use_table): Make an array of RTX.
7550 (find_used_regs, constprop_register, local_cprop_pass,
7551 bypass_block): Simplify users of reg_use_table.
7552 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7553 on one of the uses found by find_used_regs.
7555 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7558 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7561 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7563 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7565 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7567 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7570 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7572 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7574 * combine.c: Include obstack.h.
7575 (struct insn_link): Define.
7576 (uid_log_links): Adjust type.
7577 (FOR_EACH_LOG_LINK): New macro.
7578 (insn_link_obstack): Declare.
7579 (alloc_insn_link): Define.
7580 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7581 type of link variables.
7582 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7583 (try_combine, record_promoted_values, distribute_notes): Likewise.
7584 (distribute_links): Likewise. Tweak prototype.
7585 (clear_log_links): Delete.
7586 (adjust_for_new_dest): Call alloc_insn_link.
7587 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7589 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7591 * gcse.c (modify_mem_list): Convert to an array of VECs.
7592 (canon_modify_mem_list, compute_transp): Tweak formatting.
7593 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7594 (load_killed_in_block_p): Likewise.
7595 (record_last_mem_set_info): Likewise.
7596 (clear_modify_mem_tables): Likewise.
7598 2011-04-05 Tom de Vries <tom@codesourcery.com>
7601 * function.c (emit_use_return_register_into_block): Only define if
7604 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7606 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7608 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7610 * config/rx/rx-opts.h: New.
7611 * config/rx/rx.c (rx_cpu_type): Remove.
7612 (rx_handle_option): Don't assert that global structures are in
7613 use. Access variables via opts pointer. Defer most handling of
7614 OPT_mint_register_. Use error_at.
7615 (rx_option_override): Handle deferred OPT_mint_register_ here.
7616 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7617 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7618 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7619 (rx_cpu_types): New Enum and EnumValue entries.
7620 (mint-register=): Use Defer and use Var accordingly.
7622 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7624 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7625 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7626 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7628 (debug_free_queue, debug_nesting, symbol_queue_index):
7630 * dbxout.c: ...to here. Make static.
7632 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7634 * gcse.c (modify_pair): Define. Define a VEC of it.
7635 (canon_modify_mem_list): Convert to an array of VECs.
7636 (free_insn_expr_list_list): Delete.
7637 (clear_modify_mem_tables): Call VEC_free instead.
7638 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7639 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7640 (canon_list_insert, compute_transp): Likewise.
7642 2011-04-05 Tom de Vries <tom@codesourcery.com>
7645 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7648 2011-04-05 Tom de Vries <tom@codesourcery.com>
7651 * function.c (emit_use_return_register_into_block): New function.
7652 (thread_prologue_and_epilogue_insns): Use
7653 emit_use_return_register_into_block.
7655 2011-04-05 Tom de Vries <tom@codesourcery.com>
7658 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7661 2011-04-05 Tom de Vries <tom@codesourcery.com>
7663 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7665 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7667 * config/arm/arm.md (define_constants for unspec): Replace with
7669 (define_constants for unspecv): Replace with define_c_enum.
7670 * config/arm/neon.md (define_constants for unspec): Replace with
7673 2011-04-04 Richard Henderson <rth@redhat.com>
7676 * dwarf2out.c (output_line_info): Always emit line info from
7677 at least one section.
7678 (dwarf2out_init): Create text_section_line_info here ...
7679 (set_cur_line_info_table): ... not here.
7681 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7684 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7687 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7689 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7691 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7692 (expr_equiv_p): Remove.
7693 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7694 (hash_scan_set): Update call to insert_set_in_table.
7695 (dump_hash_table): Dump <dest, src> pair.
7696 (lookup_set): Simplify. Lookup <dest, src> pair.
7697 (compute_transp): Remove, fold heavily simplified code into...
7698 (compute_local_properties): ...here. Expect COMP and TRANSP
7700 (find_avail_set): Take set directly from struct expr.
7701 (find_bypass-set): Likewise.
7702 (bypass_block): Likewise.
7703 (cprop_insn): Likewise. Remove redundant INSN_P test.
7705 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7706 checks on form of COND from find_implicit_sets to here.
7707 (find_implicit_sets): Cleanup control flow. Split critical edges
7708 if it exposes implicit sets. Allocate/resize implicit_sets as
7710 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7711 changed something. Run df_analyze after find_implicit_sets if any
7712 edges were split. Do not allocate implicit_sets here.
7714 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7715 (gcse_obstack): Renamed to cprop_obstack.
7716 (GNEW, GNEWVEC, GNEWVAR): Remove.
7718 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7719 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7720 (gcse_alloc): Likewise, and rename to cprop_alloc.
7721 (alloc_gcse_men, free_gcse_mem): Remove.
7722 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7723 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7724 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7726 * cprop.c (oprs_not_set_p): Remove.
7727 (mark_set, mark_clobber): Remove.
7728 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7729 (reg_not_set_p): New function.
7730 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7731 (cprop_insn): Likewise.
7732 (cprop_jump): Use FOR_EACH_EDGE.
7734 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7737 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7738 (rank_for_schedule): Use scheduled_insns vector instead of
7739 last_scheduled_insn.
7740 (ok_for_early_queue_removal): Likewise.
7741 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7743 (choose_ready): Likewise.
7744 (commit_schedule): Use VEC_iterate.
7745 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7746 a dbg_cnt, use it and ensure the first insn is in the ready list.
7747 (haifa_sched_init): Allocate scheduled_insns.
7748 (sched_extend_ready_list): Don't allocate it; reserve space.
7749 (haifa_sched_finish): Free it.
7751 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7753 * optc-gen.awk: Always remove type from Variable entry before
7754 recording in var_seen.
7756 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7758 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7759 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7760 call to tidy_fallthru_edges.
7762 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7764 * doc/options.texi (ToLower): Document.
7765 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7766 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7767 * opts.h (cl_option): Add cl_tolower field.
7768 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7769 arguments with lowercase strings.
7770 * config/rx/rx.opt (mcpu=): Add ToLower.
7771 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7774 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7776 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7778 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7780 * config/vax/vax.c: Include reload.h.
7782 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7784 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7785 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7786 (sparc_preferred_reload_class): New function.
7788 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7791 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7792 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7794 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7796 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7797 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7799 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7801 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7802 (ASM_OUTPUT_ALIGNED_BSS): Define.
7804 2011-04-03 Michael Matz <matz@suse.de>
7806 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7807 and next_slot members.
7808 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7809 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7810 (lto_streamer_cache_append): Declare.
7811 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7812 unsigned index, remove offset parameter, ensure that we append
7813 or update existing entries.
7814 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7815 parameter, update next_slot for append.
7816 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7818 (lto_streamer_cache_insert_at): Likewise.
7819 (lto_streamer_cache_append): New function.
7820 (lto_streamer_cache_lookup): Use unsigned index.
7821 (lto_streamer_cache_get): Likewise.
7822 (lto_record_common_node): Don't test tree_node_can_be_shared.
7823 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7824 (lto_streamer_cache_delete): Don't free offsets member.
7825 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7826 (lto_output_string_with_length): Use lto_output_data_stream.
7827 (lto_output_tree_header): Remove ix parameter, don't write it.
7828 (lto_output_builtin_tree): Likewise.
7829 (lto_write_tree): Adjust callers to above, don't track and write
7830 offset, write unsigned index.
7831 (output_unreferenced_globals): Don't emit all global vars.
7832 (write_global_references): Use unsigned indices.
7833 (lto_output_decl_state_refs): Likewise.
7834 (write_symbol): Likewise.
7835 * lto-streamer-in.c (lto_input_chain): Move earlier.
7836 (input_function): Use unsigned index.
7837 (input_alias_pairs): Don't read and then ignore all global vars.
7838 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7839 don't pass it back, use lto_streamer_cache_append.
7840 (lto_register_var_decl_in_symtab): Use unsigned index.
7841 (lto_register_function_decl_in_symtab): Likewise.
7842 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7844 (lto_get_builtin_tree): Don't read index, use
7845 lto_streamer_cache_append.
7846 (lto_read_tree): Adjust call to lto_materialize_tree.
7848 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7849 don't use function calls in arguments to MIN.
7851 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7854 * gimple.c (gimple_type_leader_entry): Mark deletable.
7856 2011-04-03 Alan Modra <amodra@gmail.com>
7858 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7860 2011-04-03 Michael Matz <matz@suse.de>
7862 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7864 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7866 2011-04-03 Michael Matz <matz@suse.de>
7868 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7869 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7870 without function context.
7871 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7872 current_function_decl and cfun.
7874 2011-04-03 Michael Matz <matz@suse.de>
7876 * tree.c (decl_init_priority_insert): Don't create entry for
7878 (decl_fini_priority_insert): Ditto.
7879 (fields_compatible_p, find_compatible_field): Remove.
7880 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7881 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7883 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7885 * combine.c (try_combine): Remove useless local variable.
7887 2011-04-03 Richard Guenther <rguenther@suse.de>
7888 Ira Rosen <ira.rosen@linaro.org>
7890 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7891 non-variable offsets and compare the remaining bases of the two
7892 accesses instead of looking for exact same data-ref.
7894 2011-04-02 Kai Tietz <ktietz@redhat.com>
7897 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7899 * i386.c (ix86_is_msabi_thiscall): New helper function.
7900 (ix86_is_type_thiscall): New helper function.
7901 (ix86_comp_type_attributes): Handle thiscall for method-functions
7903 (init_cumulative_args): Likewise.
7904 (find_drap_reg): Likewise.
7905 (ix86_static_chain): Likewise.
7906 (x86_this_parameter): Likewise.
7907 (x86_output_mi_thunk): Likewise.
7909 2011-04-01 Olivier Hainque <hainque@adacore.com>
7910 Nicolas Setton <setton@adacore.com>
7911 Eric Botcazou <ebotcazou@adacore.com>
7913 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7914 (add_gnat_descriptive_type_attribute): New function.
7915 (gen_array_type_die): Call it.
7916 (gen_enumeration_type_die): Likewise.
7917 (gen_struct_or_union_type_die): Likewise.
7918 (modified_type_die): Likewise.
7919 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7920 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7921 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7923 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7926 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7927 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7930 2011-03-17 Richard Guenther <rguenther@suse.de>
7933 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7934 origin for decls in other ltrans units.
7935 (input_varpool_node): Likewise.
7937 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7940 * expr.c (expand_assignment): Handle all possibilities
7941 if TO_RTX is CONCAT.
7942 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7943 (store_split_bit_field): If SUBREG_REG (op0) or
7944 op0 itself has smaller mode than word, return it
7945 for offset 0 and const0_rtx for out-of-bounds stores.
7946 If word is const0_rtx, skip it.
7948 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7950 * config/h8300/h8300.c (print_operand_address): Rename to...
7951 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7952 Call h8300_print_operand and h8300_print_operand_address instead of
7953 print_operand and print_operand_address. Declare.
7954 (print_operand): Renake to...
7955 (h8300_print_operand): ...this. Make static. Adjust comments.
7956 Call h8300_print_operand instead of print_operand. Declare.
7957 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7958 (h8300_register_move_cost): Likewise.
7959 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7960 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7961 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7962 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7963 * config/h8300/h8300-protos.h (print_operand): Delete.
7964 (print_operand_address): Delete.
7966 2011-04-01 Richard Henderson <rth@redhat.com>
7969 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7970 in strict mode before dwarf4. Re-order tests to early out
7971 before switching sections.
7973 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7975 * config/h8300/constraints.md: New file.
7976 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7977 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7978 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7979 * config/h8300/predicates.md (bit_operand): Likewise.
7980 (incdec_operand): Use satisfies_constraint_M and
7981 satisfies_constraint_O. Don't use C code block.
7982 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7983 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7984 (compute_mov_length): Use satisfies_constraint_G.
7985 (fix_bit_operand): Use satisfies_constraint_U.
7986 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7987 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7988 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7989 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7990 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7991 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7992 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7993 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7994 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7995 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7996 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7997 (EXTRA_MEMORY_CONSTRAINT): Delete.
7999 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8000 Michael Meissner <meissner@linux.vnet.ibm.com>
8003 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8004 operands, as per the specifications.
8006 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8007 (vec_extract_evenv4sf): Ditto.
8008 (vec_extract_evenv8hi): Ditto.
8009 (vec_extract_evenv16qi): Ditto.
8010 (vec_extract_oddv4si): Ditto.
8012 2011-03-31 Mark Wielaard <mjw@redhat.com>
8014 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8015 high_pc attribute if the CU has no associated code. Only output
8016 DW_AT_entry_pc for CU if not generating strict dwarf and
8019 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8021 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8022 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8024 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8025 * final.c (final_start_function): Call the new function rather
8026 than using a NULL argument for dwarf2out_frame_debug.
8028 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8029 that contains the prologue.
8031 * haifa-sched.c (queue_insn): New arg REASON. All callers
8032 changed. Print it in debugging output.
8034 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8036 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8037 Split most of the code into...
8038 (begin_move_insn): ... here. New function.
8039 (ebb_sched_info): Add a pointer to it.
8040 * haifa-sched.c (scheduled_insns): New static variable.
8041 (sched_extend_ready_list): Allocate it.
8042 (schedule_block): Use it to record the order of scheduled insns.
8043 Perform RTL changes to move insns only after all scheduling
8044 decisions have been made.
8045 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8046 begin_move_insn field.
8047 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8048 * sched-int.h (struct haifa_sched_info): Remove second argument
8049 from begin_schedule_ready hook. Add new member begin_move_insn.
8050 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8051 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8053 * haifa-sched.c (prune_ready_list): New function, broken out of
8055 (schedule_block): Use it.
8057 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8059 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8061 2011-04-01 Kai Tietz <ktietz@redhat.com>
8063 * config.gcc (*-*-mingw*): Allow as option the
8064 posix threading model.
8065 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8066 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8068 (CPP_SPEC): Add pthread/no-pthread handling.
8069 (LIB_SPEC): Likewise.
8070 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8071 (LIB_SPEC): Likewise.
8072 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8073 flag to pass -pthread option for shared libgcc build.
8074 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8075 for shared libgcc build.
8076 * config/i386/t-mingw-pthread: New file.
8077 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8078 New define to enable use of library pthread by default.
8079 * config/i386/mingw.opt (pthread): New driver option.
8080 (no-pthread): New driver option.
8081 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8082 * config/i386/mingw-w64.opt: Likewise.
8084 2011-04-01 Gary Funck <gary@intrepid.com>
8086 * c-decl.c (grokdeclarator): Fix formatting.
8088 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8090 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8091 instead of n_operands.
8092 (set_storage_via_setmem): Likewise.
8093 * optabs.c (maybe_gen_insn): Likewise.
8094 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8095 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8096 (mips_expand_builtin_direct): Likewise.
8097 * config/spu/spu.c (expand_builtin_args): Likewise.
8099 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8101 * recog.h (insn_data_d): Add n_generator_args.
8102 * genoutput.c (data): Likewise.
8103 (output_insn_data): Print it.
8104 (max_opno, num_dups): Delete.
8105 (scan_operands): Just fill in "d->operand[...]".
8106 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8108 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8110 * gensupport.h (pattern_stats): New structure.
8111 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8112 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8113 (max_operand_1, max_operand_vec): Delete.
8114 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8116 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8118 * emit-rtl.c (emit_pattern_after_setloc): New function.
8119 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8120 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8121 (emit_pattern_after): New function.
8122 (emit_insn_after, emit_jump_insn_after): Call it.
8123 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8124 (emit_pattern_before_setloc): New function.
8125 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8126 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8128 (emit_pattern_before): New function.
8129 (emit_insn_before, emit_jump_insn_before): Call it.
8130 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8132 2011-03-31 Richard Henderson <rth@redhat.com>
8134 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8135 (dw_separate_line_info_entry): Remove.
8136 (enum dw_line_info_opcode): New.
8137 (dw_line_info_entry): Use it.
8138 (dw_line_info_table, dw_line_info_table_p): New.
8139 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8140 (line_info_table, line_info_label_num): Remove.
8141 (line_info_table_in_use): Remove.
8142 (separate_line_info_table): Remove.
8143 (separate_line_info_table_allocated): Remove.
8144 (separate_line_info_table_in_use): Remove.
8145 (LINE_INFO_TABLE_INCREMENT): Remove.
8146 (line_info_label_num): New.
8147 (cur_line_info_table): New.
8148 (text_section_line_info, cold_text_section_line_info): New.
8149 (separate_line_info): New.
8150 (SEPARATE_LINE_CODE_LABEL): Remove.
8151 (print_dwarf_line_table): Remove.
8152 (debug_dwarf): Don't dump it.
8153 (output_one_line_info_table): New.
8154 (output_line_info): Use it.
8155 (new_line_info_table): New.
8156 (set_cur_line_info_table): New.
8157 (dwarf2out_switch_text_section): Use it.
8158 (dwarf2out_begin_function): Likewise.
8159 (push_dw_line_info_entry): New.
8160 (dwarf2out_source_line): Rewrite for new line info tables.
8161 (dwarf2out_init): Remove dead initailizations.
8163 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8165 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8167 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8168 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8169 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8170 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8171 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8172 * opt-functions.awk (flag_init, switch_bit_fields): New.
8173 (switch_flags): Don't handle flags moved to bit-fields. Don't
8174 generate CL_MISSING_OK or CL_SAVE.
8175 * optc-gen.awk: Update to generate bit-field output as well as
8177 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8178 bit-field instead of CL_REJECT_DRIVER flag.
8179 * opts-common.c (generate_canonical_option,
8180 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8181 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8182 instead of CL_REJECT_NEGATIVE flag.
8183 * toplev.c (print_switch_values): Use cl_report bit-field instead
8186 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8188 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8189 a zero minimum index only if it is redundant.
8191 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8193 PR rtl-optimization/48381
8194 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8195 instead of ira_class_hard_reg_index for calculating conflicting
8198 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8200 * cprop.c: Clean up hash table building.
8201 (reg_avail_info): Remove.
8202 (oprs_available_p): Remove.
8203 (record_last_reg_set_info): Remove.
8204 (record_last_set_info): Remove.
8205 (reg_available_p): New function.
8206 (gcse_constant_p): Do not treat unfolded conditions as constants.
8207 (make_set_regs_unavailable): New function.
8208 (hash_scan_set): Simplify with new reg_available_p.
8209 (compute_hash_table_work): Traverse insns stream only once.
8210 Do not compute reg_avail_info. Traverse insns in reverse order.
8211 Record implicit sets after recording explicit sets from the block.
8213 2011-03-31 Michael Matz <matz@suse.de>
8215 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8217 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8219 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8220 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8221 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8222 (h8300_mode_dependent_address_p): New function.
8223 (h8300_get_index): Make static.
8225 2011-03-31 Jeff Law <law@redhat.com>
8227 * reload1.c (elimination_effects): Fix typo in recent change.
8229 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8230 typo potentially leading to null pointer dereference.
8232 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8233 (setup_save_areas): Corresponding changes to avoid useless
8236 * jump.c (reversed_comparison_code_parts): Avoid successive return
8237 statements when REVERSE_CONDITION is defined.
8239 * expr.c (expand_assignment): Avoid useless assignments.
8240 (expand_expr_real_1): Likewise.
8241 (expand_expr_real_2): Avoid useless statements.
8243 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8245 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8247 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8250 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8252 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8255 * doc/tm.texi.in (TARGET_VERSION): Remove.
8256 * doc/tm.texi: Regenerate.
8257 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8258 * collect2.c (main): Don't use TARGET_VERSION.
8259 * mips-tdump.c (main): Don't use TARGET_VERSION.
8260 * mips-tfile.c (main): Don't use TARGET_VERSION.
8261 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8262 * config/rs6000/vxworksae.h: Remove.
8263 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8264 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8265 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8266 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8267 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8268 * config/arm/arm.h (TARGET_VERSION): Remove.
8269 * config/arm/coff.h (TARGET_VERSION): Remove.
8270 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8271 * config/arm/elf.h (TARGET_VERSION): Remove.
8272 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8273 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8274 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8275 * config/arm/pe.h (TARGET_VERSION): Remove.
8276 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8277 * config/arm/semi.h (TARGET_VERSION): Remove.
8278 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8279 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8280 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8281 * config/avr/avr.h (TARGET_VERSION): Remove.
8282 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8283 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8284 * config/frv/frv.h (TARGET_VERSION): Remove.
8285 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8286 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8287 * config/i386/darwin.h (TARGET_VERSION): Remove.
8288 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8289 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8290 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8291 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8292 * config/i386/gnu.h (TARGET_VERSION): Remove.
8293 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8294 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8295 * config/i386/linux.h (TARGET_VERSION): Remove.
8296 * config/i386/linux64.h (TARGET_VERSION): Remove.
8297 * config/i386/lynx.h (TARGET_VERSION): Remove.
8298 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8299 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8300 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8301 * config/i386/netware.h (TARGET_VERSION): Remove.
8302 * config/i386/nto.h (TARGET_VERSION): Remove.
8303 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8304 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8305 * config/ia64/elf.h (TARGET_VERSION): Remove.
8306 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8307 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8308 * config/ia64/linux.h (TARGET_VERSION): Remove.
8309 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8310 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8311 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8312 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8313 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8314 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8315 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8316 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8317 * config/m68k/linux.h (TARGET_VERSION): Remove.
8318 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8319 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8320 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8321 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8322 * config/mep/mep.h (TARGET_VERSION): Remove.
8323 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8324 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8325 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8326 * config/mips/linux.h (TARGET_VERSION): Remove.
8327 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8328 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8329 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8330 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8331 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8332 * config/pa/pa.h (TARGET_VERSION): Remove.
8333 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8334 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8335 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8336 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8337 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8338 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8339 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8340 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8341 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8342 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8343 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8344 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8345 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8346 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8347 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8348 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8349 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8350 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8351 * config/s390/linux.h (TARGET_VERSION): Remove.
8352 * config/s390/s390.h (TARGET_VERSION): Remove.
8353 * config/s390/tpf.h (TARGET_VERSION): Remove.
8354 * config/score/score.h (TARGET_VERSION): Remove.
8355 * config/sh/linux.h (TARGET_VERSION): Remove.
8356 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8357 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8358 * config/sh/sh.h (TARGET_VERSION): Remove.
8359 * config/sh/sh64.h (TARGET_VERSION): Remove.
8360 * config/sh/superh.h (TARGET_VERSION): Remove.
8361 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8362 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8363 * config/sparc/linux.h (TARGET_VERSION): Remove.
8364 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8365 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8366 TARGET_NAME32, TARGET_NAME): Remove.
8367 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8368 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8369 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8370 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8371 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8372 * config/spu/spu.h (TARGET_VERSION): Remove.
8373 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8374 * config/v850/v850.h (TARGET_VERSION): Remove.
8375 * config/vax/linux.h (TARGET_VERSION): Remove.
8376 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8377 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8378 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8380 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8383 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8384 frame-related from frame-unrelated adjustments to the stack pointer.
8386 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8388 * common.opt (fdebug-types-section): Move earlier.
8389 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8391 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8393 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8396 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8398 * tree.h (CASE_CHAIN): Define.
8399 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8400 (gimple_redirect_edge_and_branch): Likewise.
8402 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8405 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8408 2011-03-30 Jeff Law <law@redhat.com>
8410 * PR bootstrap/48371
8411 * reload1.c (reload): Fix botch in last change.
8413 * reload.h (struct reload): Fix typo introduced in last change.
8415 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8417 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8418 Undocumented. Remove help text.
8419 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8422 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8424 * doc/options.texi (NegativeAlias): Document.
8425 (Alias): Mention NegativeAlias.
8426 * opt-functions.awk: Handle NegativeAlias.
8427 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8428 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8429 * opts.h (CL_NEGATIVE_ALIAS): Define.
8430 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8431 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8433 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8435 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8436 mno-spe and mno-isel instead of mspe=no and -misel=no.
8438 2011-03-29 Mark Wielaard <mjw@redhat.com>
8440 * common.opt (fdebug-types-section): New flag.
8441 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8442 * dwarf2out.c (use_debug_types): New define.
8443 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8444 (print_die): Guard output of type unit signatures using
8446 (build_abbrev_table): Replace assert of dwarf_version >= 4
8447 with assert on use_debug_types.
8448 (size_of_die): Likewise.
8449 (unmark_dies): Likewise.
8450 (value_format): Decide AT_ref_external form on use_debug_types.
8451 (output_die): Replace dwarf_version version check guard with
8452 use_debug_types where appropriate.
8453 (modified_type_die): Likewise.
8454 (gen_reference_type_die): Likewise.
8455 (dwarf2out_start_source_file): Likewise.
8456 (dwarf2out_end_source_file): Likewise.
8457 (prune_unused_types_walk_attribs): Likewise.
8458 (dwarf2out_finish): Likewise.
8460 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8462 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8464 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8466 PR rtl-optimization/48332
8467 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8468 mode of input operand N and modeN to its actual mode.
8470 2011-03-30 Jeff Law <law@redhat.com>
8472 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8473 define accessor macro.
8474 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8475 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8476 (reg_equiv_init): Likewise.
8477 (reg_equivs_size): New variable.
8478 (reg_equiv_init_size): Remove.
8479 (allocate_initial_values): Move prototype to here from....
8480 * integrate.h (allocate_initial_values): Remove prototype.
8481 * integrate.c: Include reload.h.
8482 (allocate_initial_values): Corresponding changes.
8483 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8484 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8485 (update_equiv_regs): Corresponding changes.
8486 (ira): Corresponding changes.
8487 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8488 (push_secondary_reload): Corresponding changes.
8489 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8490 (make_memloc, find_reloads_address): Corresponding changes.
8491 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8492 (find_reloads_address_1): Corresponding changes.
8493 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8494 (refers_to_regno_for_reload_p): Corresponding changes.
8495 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8496 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8497 * reload1.c: Include ggc.h.
8498 (grow_reg_equivs): New function.
8499 (replace_pseudos_in, reload): Corresponding changes.
8500 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8501 (eliminate_regs_1, elimination_effects): Corresponding changes.
8502 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8503 (delete_output_reload): Likewise.
8504 * caller-save.c (mark_referenced_regs): Corresponding changes.
8505 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8506 * frv/predicates.md (frv_load_operand): Corresponding changes.
8507 * microblaze/microblaze.c (double_memory_operand): Corresponding
8509 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8510 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8511 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8512 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8513 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8515 * pa/pa.c (emit_move_sequence): Corresponding changes.
8516 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8518 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8521 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8522 structure modes. Don't check neon_vector_mem_operand for
8523 vector or structure modes.
8525 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8526 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8529 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8530 operand 1 and reshuffle the operands to match.
8531 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8533 2011-03-30 Christian Schüler <cschueler@gmx.de>
8536 * config/c.opt (F): Added 'Driver' to -F option.
8539 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8541 * config/darwin.opt: Added '-arch' option.
8543 2011-03-30 Nick Clifton <nickc@redhat.com>
8545 * config/rx/rx.md: Add peepholes and patterns to combine
8546 extending loads and simple arithmetic instructions.
8547 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8548 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8549 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8550 modes to use pre-decrement and post-increment addressing.
8551 (rx_is_restricted_memory_address): Add range checking of REG+INT
8553 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8554 (rx_memory_move_cost): Adjust cost of stores.
8555 (rx_adjust_insn_length): New function.
8557 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8560 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8561 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8562 matching arg00/arg01 types.
8564 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8566 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8567 last_location to UNKNOWN_LOCATION.
8569 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8572 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8575 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8576 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8579 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8581 (sparc_cpu): Likewise.
8582 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8585 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8589 PR rtl-optimization/48345
8590 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8591 hard regs for given mode from profitable regs when doing secondary
8594 2011-03-29 Jeff Law <law@redhat.com>
8597 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8598 do_not_duplicate field.
8599 (lookup_redirection_data): Corresponding changes.
8600 (create_duplicates): Always create a template block.
8601 (redirect_edges): Remove code which reused the original block
8602 when it was going to become unreachable code.
8603 (thread_block): Don't set do_not_duplicate field.
8605 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8607 * lto-opts.c (register_user_option_p, lto_register_user_option):
8608 Make type argument unsigned.
8609 * lto-streamer.h (lto_register_user_option): Make type argument
8611 * opth-gen.awk: Make CL_* macros unsigned.
8612 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8613 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8614 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8615 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8616 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8617 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8618 (find_opt): Make lang_mask argument unsigned.
8620 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8622 PR rtl-optimization/48331
8623 PR rtl-optimization/48334
8624 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8625 for any used algorithm.
8627 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8629 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8632 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8634 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8635 (alpha_option_override): Don't set alpha_sr_alias_set.
8636 (emit_frame_store_1): Use gen_frame_mem rather than calling
8638 (alpha_expand_epilogue): Ditto.
8640 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8642 PR tree-optimization/48290
8643 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8644 vectorization, check that relevant phis in the basic block after
8645 the inner loop are really inner loop's exit phis.
8647 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8650 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8651 (cached_dw_loc_list_def): New structure.
8652 (cached_dw_loc_list): New typedef.
8653 (cached_dw_loc_list_table): New variable.
8654 (cached_dw_loc_list_table_hash): New function.
8655 (cached_dw_loc_list_table_eq): Likewise.
8656 (add_location_or_const_value_attribute): Take a bool cache_p.
8657 Cache the list when the parameter is true.
8658 (gen_formal_parameter_die): Update caller.
8659 (gen_variable_die): Likewise.
8660 (dwarf2out_finish): Likewise.
8661 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8662 while generating debug info for the decl.
8663 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8664 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8665 (resolve_addr): Cache the result of resolving a chain of
8668 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8670 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8671 conflict object hard regset nodes have intersecting hard reg sets.
8673 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8674 after regstat_init_n_sets_and_refs.
8676 * ira.c: Add more comments at the top.
8677 (setup_stack_reg_pressure_class, setup_pressure_classes):
8678 Add comments how we compute the register pressure classes.
8679 (setup_allocno_and_important_classes): Add more comments.
8680 (setup_class_translate_array, reorder_important_classes)
8681 (setup_reg_class_relations): Add comments.
8683 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8686 * ira-color.c: Add 2011 to the Copyright line.
8687 (assign_hard_reg): Add more comments.
8688 (improve_allocation): Ditto.
8690 * ira-costs.c: Add 2011 to the Copyright line.
8691 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8693 (setup_regno_cost_classes_by_mode): Ditto.
8695 Initial patches from ira-improv branch:
8697 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8699 * ira-build.c (ira_create_object): Remove initialization of
8700 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8701 (ira_create_allocno): Remove initialization of
8702 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8703 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8704 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8705 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8706 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8707 Initialize ALLOCNO_ADD_DATA.
8708 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8709 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8711 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8712 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8714 * ira.c (ira_reallocate): Remove.
8715 (setup_pressure_classes): Call
8716 ira_init_register_move_cost_if_necessary. Use
8717 ira_register_move_cost instead of ira_get_register_move_cost.
8718 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8719 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8721 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8722 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8723 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8724 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8725 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8726 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8728 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8729 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8730 (struct allocno_color_data): New.
8731 (allocno_color_data_t): New typedef.
8732 (allocno_color_data): New definition.
8733 (ALLOCNO_COLOR_DATA): New macro.
8734 (struct object_color_data): New.
8735 (object_color_data_t): New typedef.
8736 (object_color_data): New definition.
8737 (OBJECT_COLOR_DATA): New macro.
8738 (update_copy_costs, calculate_allocno_spill_cost): Call
8739 ira_init_register_move_cost_if_necessary. Use
8740 ira_register_move_cost instead of ira_get_register_move_cost.
8741 (move_spill_restore, update_curr_costs): Ditto.
8742 (allocno_spill_priority): Make it inline.
8743 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8744 (struct coalesce_data, coalesce_data_t): New.
8745 (allocno_coalesce_data): New definition.
8746 (ALLOCNO_COALESCE_DATA): New macro.
8747 (merge_allocnos, coalesced_allocno_conflict_p): Use
8748 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8749 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8750 (coalesce_allocnos): Ditto.
8751 (setup_coalesced_allocno_costs_and_nums): Ditto.
8752 (collect_spilled_coalesced_allocnos): Ditto.
8753 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8754 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8755 (coalesce_spill_slots): Ditto.
8756 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8757 free allocno_coalesce_data.
8759 * ira-conflicts.c: Fix formatting.
8760 (process_regs_for_copy): Call
8761 ira_init_register_move_cost_if_necessary. Use
8762 ira_register_move_cost instead of ira_get_register_move_cost.
8763 (build_object_conflicts): Optimize.
8765 * ira-costs.c (record_reg_classes): Optimize. Call
8766 ira_init_register_move_cost_if_necessary. Use
8767 ira_register_move_cost, ira_may_move_in_cost, and
8768 ira_may_move_out_cost instead of ira_get_register_move_cost and
8769 ira_get_may_move_cost.
8770 (record_address_regs): Ditto.
8771 (scan_one_insn): Optimize.
8772 (find_costs_and_classes): Optimize.
8773 (process_bb_node_for_hard_reg_moves): Call
8774 ira_init_register_move_cost_if_necessary. Use
8775 ira_register_move_cost instead of ira_get_register_move_cost.
8777 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8778 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8779 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8780 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8782 (ira_initiate_emit_data, ira_finish_emit_data)
8783 (create_new_allocno): New functions.
8784 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8785 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8786 Use ira_register_move_cost instead of ira_get_register_move_cost.
8788 * ira-int.h: Fix some comments.
8789 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8790 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8791 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8792 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8794 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8795 bitfield after mode. Make hard_regno a short int. Make
8796 hard_regno short. Remove first_coalesced_allocno and
8797 next_coalesced_allocno. Move mem_optimized_dest_p,
8798 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8799 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8800 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8801 temp, colorable_p. Add new member add_data.
8802 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8803 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8804 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8805 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8806 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8807 (ALLOCNO_ADD_DATA): New macro.
8808 (ira_emit_data_t): New typedef.
8809 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8810 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8811 from struct ira_allocno.
8812 (ALLOCNO_EMIT_DATA): New macro.
8813 (ira_allocno_emit_data, allocno_emit_reg): New.
8814 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8815 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8816 (OBJECT_ADD_DATA): New macro.
8817 (ira_reallocate): Remove.
8818 (ira_initiate_emit_data, ira_finish_emit_data): New.
8819 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8820 (ira_init_register_move_cost_if_necessary): New.
8821 (ira_object_conflict_iter_next): Merge into
8822 ira_object_conflict_iter_cond.
8823 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8825 * ira-live.c (process_single_reg_class_operands): Call
8826 ira_init_register_move_cost_if_necessary. Use
8827 ira_register_move_cost instead of ira_get_register_move_cost.
8829 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8831 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8833 * ira-costs.c: Fix formatting.
8834 (cost_classes, cost_classes_num): Remove.
8835 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8836 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8837 (cost_classes_del, cost_classes_htab): New.
8838 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8839 (initiate_regno_cost_classes, setup_cost_classes): New.
8840 (setup_regno_cost_classes_by_aclass): New.
8841 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8842 (record_reg_classes): Use regno_cost_classes instead of
8843 cost_classes. Move checking opposite operand up.
8844 (record_address_regs): Use regno_cost_classes
8845 instead of cost_classes.
8846 (scan_one_insn): Ditto. Use always general register.
8847 (print_allocno_costs): Use regno_cost_classes instead of
8849 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8850 (find_costs_and_classes): Set up cost classes for each registers.
8851 Use also their mode for this. Use regno_cost_classes instead of
8853 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8855 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8856 (ira_costs, ira_set_pseudo_classes): Call
8857 initiate_regno_cost_classes and finish_regno_cost_classes.
8859 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8861 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8863 * target.def (ira_cover_classes): Remove.
8865 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8867 * doc/tm.texi.in: Ditto.
8869 * ira-conflicts.c: Remove mentioning cover classes from the file.
8870 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8871 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8873 * targhooks.c (default_ira_cover_classes): Remove.
8875 * targhooks.h (default_ira_cover_classes): Ditto.
8877 * haifa-sched.c: Remove mentioning cover classes from the file.
8878 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8879 ira_pressure_classes and ira_pressure_classes_num instead of
8880 ira_reg_class_cover_size and ira_reg_class_cover. Use
8881 sched_regno_pressure_class instead of sched_regno_cover_class.
8882 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8883 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8885 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8886 classes from the file.
8887 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8888 (struct object_hard_regs, struct object_hard_regs_node): New.
8889 (struct ira_object): New members profitable_hard_regs,
8890 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8891 (struct ira_allocno): Rename cover_class to aclass. Rename
8892 cover_class_cost and updated_cover_class_cost to class_cost and
8893 updated_class_cost. Remove splay_removed_p and
8894 left_conflict_size. Add new members colorable_p.
8895 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8896 (ALLOCNO_COLORABLE_P): New macro.
8897 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8898 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8899 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8900 (OBJECT_...): Rename parameter C to O.
8901 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8902 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8903 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8904 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8905 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8906 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8907 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8908 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8909 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8910 x_ira_reg_class_subunion.
8911 (ira_max_memory_move_cost, ira_max_register_move_cost)
8912 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8913 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8914 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8915 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8916 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8917 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8918 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8919 (ira_tune_allocno_costs_and_cover_classes): Rename to
8920 ira_tune_allocno_costs.
8921 (ira_debug_hard_regs_forest): New.
8922 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8923 (ira_object_conflict_iter_next): Fix comments.
8924 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8925 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8926 cover_class to aclass.
8927 (ira_allocate_and_accumulate_costs): Ditto.
8928 (ira_allocate_and_set_or_copy_costs): Ditto.
8930 * opts.c (decode_options): Remove ira_cover_class check.
8932 * ira-color.c: Remove mentioning cover classes from the file. Use
8933 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8934 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8935 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8936 (splay-tree.h): Remove include.
8937 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8938 before copy_freq_compare_func.
8939 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8940 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8942 (hard_regs_roots, hard_regs_node_vec): Ditto.
8943 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8944 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8945 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8946 (create_new_object_hard_regs_node): Ditto.
8947 (add_new_object_hard_regs_node_to_forest): Ditto.
8948 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8949 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8951 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8952 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8953 (remove_unused_object_hard_regs_nodes): Ditto.
8954 (enumerate_object_hard_regs_nodes): Ditto.
8955 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8956 (object_hard_regs_subnode_t): Ditto.
8957 (struct object_hard_regs_subnode): Ditto.
8958 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8959 (setup_object_hard_regs_subnode_index): Ditto.
8960 (get_object_hard_regs_subnodes_num): Ditto.
8961 (form_object_hard_regs_nodes_forest): Ditto.
8962 (finish_object_hard_regs_nodes_tree): Ditto.
8963 (finish_object_hard_regs_nodes_forest): Ditto.
8964 (allocnos_have_intersected_live_ranges_p): Rename to
8965 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8966 (pseudos_have_intersected_live_ranges_p): Rename to
8967 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8968 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8969 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8970 (update_copy_costs): Remove assert. Skip cost update if the hard
8971 reg does not belong the class.
8972 (assign_hard_reg): Process only profitable hard regs.
8973 (uncolorable_allocnos_num): Make it scalar.
8974 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8975 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8976 and ira_reg_class_max_nregs.
8977 (bucket_allocno_compare_func): Check frequency first.
8978 (sort_bucket): Add compare function as a parameter.
8979 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8980 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8981 (push_allocno_to_stack): Rewrite for checking new allocno
8983 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8984 (push_only_colorable): Pass new parameter to sort_bucket.
8985 (push_allocno_to_spill): Remove.
8986 (allocno_spill_priority_compare): Make it inline and rewrite.
8987 (splay_tree_allocate, splay_tree_free): Remove.
8988 (allocno_spill_sort_compare): New function.
8989 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8990 build and use splay tree. Choose first allocno in uncolorable
8991 allocno bucket to spill. Remove setting spill cost.
8992 (all_conflicting_hard_regs): Remove.
8993 (setup_allocno_available_regs_num): Check only profitable hard
8994 regs. Print info about hard regs nodes.
8995 (setup_allocno_left_conflicts_size): Remove.
8996 (put_allocno_into_bucket): Don't call
8997 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8998 (improve_allocation): New.
8999 (color_allocnos): Call setup_profitable_hard_regs,
9000 form_object_hard_regs_nodes_forest, improve_allocation,
9001 finish_object_hard_regs_nodes_forest. Setup spill cost.
9002 (print_loop_title): Use pressure classes.
9003 (color_allocnso): Ditto.
9004 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9005 and allocnos_for_spilling.
9006 (ira_sort_regnos_for_alter_reg): Don't setup members
9007 {first,next}_coalesced_allocno.
9008 (color): Remove allocating and freeing removed_splay_allocno_vec.
9009 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9010 prohibited_class_mode_regs.
9012 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9014 (update_allocno_pressure_excess_length): Use pressure classes.
9015 (inc_register_pressure, dec_register_pressure): Check for pressure
9017 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9018 pressure class. Use ira_reg_class_nregs instead of
9019 ira_reg_class_max_nregs.
9020 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9021 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9022 (single_reg_class): Use ira_reg_class_nregs instead of
9023 ira_reg_class_max_nregs.
9024 (process_bb_node_lives): Use pressure classes.
9026 * ira-emit.c: Remove mentioning cover classes from the file. Use
9027 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9028 (change_loop): Use pressure classes.
9029 (modify_move_list): Call ira_set_allocno_class instead of
9030 ira_set_allocno_cover_class.
9032 * ira-build.c: Remove mentioning cover classes from the file. Use
9033 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9034 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9035 ALLOCNO_UPDATED_CLASS_COST instead of
9036 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9037 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9038 (ira_create_allocno): Remove initialization of
9039 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9040 ALLOCNO_COLORABLE_P.
9041 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9042 Update conflict regs for the objects.
9043 (create_cap_allocno): Remove assert. Don't propagate
9044 ALLOCNO_AVAILABLE_REGS_NUM.
9045 (ira_free_allocno_costs): New function.
9046 (finish_allocno): Change a part of code into call of
9047 ira_free_allocno_costs.
9048 (low_pressure_loop_node_p): Use pressure classes.
9049 (object_range_compare_func): Don't compare classes.
9050 (setup_min_max_conflict_allocno_ids): Ditto.
9052 * loop-invariant.c: Remove mentioning cover classes from the file.
9053 Use ira_pressure_classes and ira_pressure_classes_num instead of
9054 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9055 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9056 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9057 Use reg_allocno_class instead of reg_cover_class.
9058 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9059 STACK_REG_COVER_CLASS.
9060 (get_regno_cover_class): Rename to get_regno_pressure_class.
9061 (move_loop_invariants): Initialize and finalize regstat.
9063 * ira.c: Remove mentioning cover classes from the file. Add
9064 comments about coloring without cover classes. Use ALLOCNO_CLASS
9065 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9066 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9067 setup_class_subset_and_memory_move_costs.
9068 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9069 (setup_cover_and_important_classes): Rename to
9070 setup_allocno_and_important_classes.
9071 (setup_class_translate_array): New.
9072 (setup_class_translate): Call it for allocno and pressure classes.
9073 (cover_class_order): Rename to allocno_class_order.
9074 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9075 of ira_class_translate.
9076 (reorder_important_classes): Set up ira_important_class_nums.
9077 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9078 (print_class_cover): Rename to print_classes. Add parameter.
9079 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9080 Print pressure classes too.
9081 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9082 setup_reg_subclasses.
9083 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9084 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9085 (setup_prohibited_class_mode_regs): Use
9086 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9087 (clarify_prohibited_class_mode_regs): New function.
9088 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9089 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9090 (ira_init_once): Initialize them.
9091 (free_register_move_costs): Process them.
9092 (ira_init): Move calls of find_reg_classes and
9093 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9094 Call clarify_prohibited_class_mode_regs.
9095 (ira_no_alloc_reg): Remove.
9096 (too_high_register_pressure_p): Use pressure classes.
9098 * sched-deps.c: Remove mentioning cover classes from the file.
9099 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9100 ira_pressure_classes and ira_pressure_classes_num instead of
9101 ira_reg_class_cover_size and ira_reg_class_cover.
9102 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9103 sched_regno_pressure_class instead of sched_regno_cover_class.
9104 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9105 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9107 * ira.h: Add 2010 to Copyright.
9108 (ira_no_alloc_reg): Remove external.
9109 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9110 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9111 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9112 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9113 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9114 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9115 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9116 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9117 x_ira_no_alloc_regs.
9118 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9119 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9120 ira_allocno_classes_num and ira_allocno_classes.
9121 (ira_class_translate): Rename to ira_allocno_class_translate.
9122 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9123 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9124 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9125 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9126 (ira_no_alloc_regs): New.
9128 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9129 classes from the file. Use ALLOCNO_CLASS instead of
9130 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9131 ALLOCNO_COVER_CLASS_COST.
9132 (regno_cover_class): Rename to regno_aclass.
9133 (record_reg_classes): Use ira_reg_class_subunion instead of
9134 ira_reg_class_union.
9135 (record_address_regs): Check overflow.
9136 (scan_one_insn): Ditto.
9137 (print_allocno_costs): Print total mem cost fore regional allocation.
9138 (print_pseudo_costs): Use REG_N_REFS.
9139 (find_costs_and_classes): Use classes intersected with them on the
9140 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9141 ira_reg_class_union. Use ira_allocno_class_translate and
9142 regno_aclass instead of ira_class_translate and regno_cover_class.
9143 Modify code for finding regno_aclass. Setup preferred classes for
9145 (setup_allocno_cover_class_and_costs): Rename to
9146 setup_allocno_class_and_costs. Use regno_aclass instead of
9147 regno_cover_class. Use ira_set_allocno_class instead of
9148 ira_set_allocno_cover_class.
9149 (init_costs, finish_costs): Use regno_aclass instead of
9151 (ira_costs): Use setup_allocno_class_and_costs instead of
9152 setup_allocno_cover_class_and_costs.
9153 (ira_tune_allocno_costs_and_cover_classes): Rename to
9154 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9155 by processing objects. Use ira_reg_class_max_nregs instead of
9156 ira_reg_class_nregs.
9158 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9160 * sched-int.h: Remove mentioning cover classes from the file.
9161 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9163 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9164 classes from the file.
9165 (struct reg_pref): Rename coverclass into allocnoclass.
9166 (reg_cover_class): Rename to reg_allocno_class.
9168 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9170 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9172 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9174 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9176 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9178 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9180 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9182 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9184 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9186 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9188 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9189 (i386_ira_cover_classes): Ditto.
9191 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9193 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9195 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9197 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9199 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9201 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9203 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9204 (mips_ira_cover_classes): Ditto.
9206 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9208 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9210 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9212 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9214 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9216 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9217 (IRA_COVER_CLASSES_VSX): Ditto.
9219 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9220 (rs6000_ira_cover_classes): Ditto.
9222 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9224 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9226 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9228 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9230 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9232 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9234 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9236 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9238 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9240 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9242 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9245 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9246 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9247 dw_fde_unlikely_section_end_label, cold_in_std_section,
9248 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9249 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9251 (output_fde): Use dw_fde_second_{begin,end} if second is
9252 true, otherwise dw_fde_{begin,end}.
9253 (output_call_frame_info): Test dw_fde_second_begin != NULL
9254 instead of dw_fde_switched_sections.
9255 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9256 fields, initialize new fields. Initialize in_std_section
9257 unconditionally from the first partition.
9258 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9259 dw_fde_second_begin is non-NULL.
9260 (dwarf2out_switch_text_section): Stop initializing removed
9261 dw_fde_struct fields, initialize new fields, initialize
9262 also dw_fde_end here. Set dw_fde_switch_cfi even when
9263 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9264 (struct var_loc_list_def): Add last_before_switch field.
9265 (arange_table, arange_table_allocated, arange_table_in_use,
9266 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9267 (size_of_aranges): Count !in_std_section and !second_in_std_section
9268 hunks in fdes, instead of looking at arange_table_in_use.
9269 (output_aranges): Add aranges_length argument, don't call
9270 size_of_aranges here. Instead of using aranges_table*
9271 emit ranges for fdes when !in_std_section resp.
9272 !second_in_std_section.
9273 (dw_loc_list): Break ranges crossing section switch.
9274 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9275 use dw_fde_second_end instead of dw_fde_end as end of last range.
9276 (gen_subprogram_die): Don't call add_arange. Use
9277 dw_fde_{begin,end} for first partition and if switched
9278 section dw_fde_second_{begin,end} for the second.
9279 (var_location_switch_text_section_1,
9280 var_location_switch_text_section): New functions.
9281 (dwarf2out_begin_function): Initialize cold_text_section even
9282 when function_section () isn't text_section.
9283 (prune_unused_types): Don't walk arange_table.
9284 (dwarf2out_finish): Don't needlessly test
9285 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9286 If info_section_emitted, call size_of_aranges and if it indicates
9287 non-empty .debug_aranges, call output_aranges with the computed
9288 size. Stop using removed dw_fde_struct fields, use
9289 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9293 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9294 create ENTRY_VALUE if incoming or address of incoming's MEM
9296 * dwarf2out.c (mem_loc_descriptor): Don't emit
9297 DW_OP_GNU_entry_value of DW_OP_fbreg.
9298 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9299 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9300 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9301 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9303 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9304 is a REG_P or MEM_P with REG_P address, compute hash directly
9305 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9306 (preserve_only_constants): Don't clear VALUES forwaring
9307 ENTRY_VALUE to some other VALUE.
9309 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9311 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9314 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9316 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9317 block before expanding the statement.
9318 (expand_gimple_stmt_1): Likewise. Set them here...
9319 (expand_gimple_stmt): ...and not here. Tidy.
9320 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9323 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9325 * Makefile.in: New rule for cprop.o.
9326 * gcse.c: Move constant/copy propagation to cprop.c.
9327 (compute_local_properties): Only handle expression tables.
9328 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9329 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9330 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9331 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9332 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9333 compute_cprop_data, find_used_regs, try_replace_reg,
9334 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9335 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9336 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9337 find_bypass_set, reg_killed_on_edge, bypass_block,
9338 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9339 execute_rtl_cprop, pass_rtl_cprop): Move to...
9340 * cprop.c: ...here. New file, constant/copy propagation for RTL
9341 moved from gcse.c to here with minor cleanups in duplicated code.
9343 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9345 * config/i386/i386.c (flag_opts): Fix a typo in
9346 -mavx256-split-unaligned-store.
9348 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9350 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9351 LIBCALL_VALUE): Remove macros.
9352 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9353 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9354 (h8300_function_value, h8300_libcall_value,
9355 h8300_function_value_regno_p): New functions.
9357 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9359 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9361 2011-03-28 Jeff Law <law@redhat.com>
9363 * tree-ssa-threadupdate.c (redirect_edges): Call
9364 create_edge_and_update_destination_phis as needed.
9365 (create_edge_and_update_destination_phis): Accept new BB argument.
9366 All callers updated.
9367 (thread_block): Do not update the profile when threading around
9368 intermediate blocks.
9369 (thread_single_edge): Likewise.
9370 (determine_bb_domination_status): If BB is not a successor of the
9371 loop header, return NONDOMINATING.
9372 (register_jump_thread): Note when we register a jump thread around
9373 an intermediate block.
9374 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9375 (thread_across_edge): Use it.
9377 2011-03-28 Tristan Gingold <gingold@adacore.com>
9379 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9380 when for_return is 2.
9382 2011-03-28 Jeff Law <law@redhat.com>
9384 * var-tracking.c (canonicalize_values_mark): Delete unused
9386 (canonicalize_values_star, set_variable_part): Likewise.
9387 (clobber_variable_part, delete_variable_part): Likewise.
9389 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9391 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9393 2011-03-28 Martin Jambor <mjambor@suse.cz>
9395 * tree-inline.c (expand_call_inline): Do not check that destination
9397 (optimize_inline_calls): Assert that destination node is analyzed.
9398 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9399 not call tree_lowering_passes.
9400 * cgraph.h (cgraph_analyze_function): Declare.
9401 * cgraphunit.c (cgraph_analyze_function): Make public.
9403 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9405 * config/sparc/sparc-opts.h: New.
9406 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9407 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9408 (sparc_option_override): Store processor_type enumeration rather
9409 than string in cpu_default. Remove name and enumeration from
9410 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9411 without using sparc_select. Use target_flags_explicit instead of
9413 * config/sparc/sparc.h (enum processor_type): Move to
9415 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9416 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9417 HeaderInclude entry.
9418 (mcpu=, mtune=): Use Var and Enum.
9419 (sparc_processor_type): New Enum and EnumValue entries.
9421 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9422 Iain Sandoe <iains@gcc.gnu.org>
9425 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9427 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9429 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9430 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9431 Insert new statements at it in lieu of STMT.
9432 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9433 * tree-vect-stmts.c (vectorizable_store): Likewise.
9434 (vectorizable_load): Likewise.
9436 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9438 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9443 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9445 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9446 unaligned 256bit load/store.
9447 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9448 (*avx_movdqu<avxmodesuffix>): Likewise.
9450 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9453 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9454 * config/pa/pa.md (iordi3): Use new predicate in expander.
9457 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9459 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9460 FUNCTION_VALUE_REGNO_P): Remove macros.
9461 * config/mips/mips-protos.h (mips_function_value): Remove.
9462 * config/mips/mips.c (mips_function_value): Rename to...
9463 (mips_function_value_1): ... this. Make static. Handle receiving
9464 the function type in 'fn_decl_or_type' argument.
9465 (mips_function_value, mips_libcall_value,
9466 mips_function_value_regno_p): New function.
9467 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9468 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9470 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9472 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9473 and -mavx256-split-unaligned-store.
9474 (ix86_option_override_internal): Split 32-byte AVX unaligned
9475 load/store by default.
9476 (ix86_avx256_split_vector_move_misalign): New.
9477 (ix86_expand_vector_move_misalign): Use it.
9479 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9480 -mavx256-split-unaligned-store.
9482 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9483 256bit load/store. Generate unaligned store on misaligned memory
9485 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9487 (*avx_movdqu<avxmodesuffix>): Likewise.
9489 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9490 -mavx256-split-unaligned-store.
9492 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9495 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9498 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9500 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9501 opno arguments with an expand_operand. Use create_input_operand.
9502 (mips_prepare_builtin_target): Delete.
9503 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9505 (mips_expand_builtin_direct): Use create_output_operand and
9506 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9507 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9508 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9510 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9512 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9514 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9516 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9518 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9519 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9520 basic blocks and call commit_edge_insertions directly.
9521 (fixup_abnormal_edges): Move from here to...
9522 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9523 on the edges and return whether some have actually been inserted.
9524 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9527 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9529 PR rtl-optimization/48144
9530 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9531 (merge_expr_data): ... here.
9532 (av_set_intersect): Rename to av_set_code_motion_filter.
9533 Update all callers. Call merge_history_vect when an expression
9534 is found in both sets.
9535 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9537 2011-03-26 Alan Modra <amodra@gmail.com>
9539 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9540 cmodel medium addresses.
9541 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9542 64-bit gpr loads and stores.
9543 (rs6000_secondary_reload_ppc64): New function.
9544 * config/rs6000/rs6000-protos.h: Declare it.
9545 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9547 2011-03-26 Alan Modra <amodra@gmail.com>
9550 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9551 GNU Go in traceback table.
9553 2011-03-25 Richard Henderson <rth@redhat.com>
9555 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9556 if there are exactly 6 operands.
9557 (set_storage_via_setmem): Similarly.
9559 2011-03-25 Kai Tietz <ktietz@redhat.com>
9561 * collect2.c (write_c_file_stat): Handle backslash
9562 as right-hand directory separator.
9563 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9564 checking just for slash.
9565 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9566 instead of checking for trailing slash.
9567 * gcc.c (record_temp_file): Use filename_cmp instead
9569 (do_spec_1): Likewise.
9570 (replace_outfile_spec_function): Likewise.
9571 (is_directory): Use filename_ncmp instead of strncmp.
9572 (print_multilib_info): Likewise.
9573 * gcov.c (find_source): Use filename_cmp instead
9575 (make_gcov_file_name): Fix order of slash/backslash
9577 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9578 (add_standard_paths): Likewise.
9579 * mips-tfile.c (saber_stop): Handle backslash.
9580 * prefix.c (update_path): Use filename_ncmp instead of
9582 * profile.c (output_location): Use filename_cmp instead
9584 * read-md.c (handle_toplevel_file): Handle backslash.
9585 * tlink.c (frob_extension): Likewise.
9586 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9588 * tree-dump.c (dequeue_and_dump): Handle backslash.
9589 * tree.c (get_file_function_name): Likewise.
9590 * gengtype.c (read_input_list): Likewise.
9591 (get_file_realbasename): Likewise.
9592 (get_output_file_with_visibility): Use filename_cmp
9595 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9597 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9600 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9602 * fold-const.c (expr_location_or): New function.
9603 (fold_truth_not_expr): Call it.
9605 2011-03-25 Jeff Law <law@redhat.com>
9607 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9609 * c-family/c-common.c (def_fn_type): Likewise.
9610 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9611 * emit-rtl.c (gen_rtvec): Likewise.
9612 * lto/lto-lang.c (def_fn_type): Likewise.
9614 2011-03-25 Richard Guenther <rguenther@suse.de>
9616 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9617 also generate copies.
9618 (fini_copy_prop): Handle constant values properly.
9620 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9622 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9623 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9624 (hash_loc_operands, compare_loc_operands): Handle
9625 DW_OP_GNU_entry_value.
9627 2011-03-25 Kai Tietz <ktietz@redhat.com>
9629 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9630 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9631 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9632 comment and use macro TARGET_64BIT_MS_ABI instead.
9633 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9634 and change default behavior for 32-bit MS_ABI.
9635 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9636 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9638 (ix86_cfun_abi): Likewise.
9639 (ix86_maybe_switch_abi): Adjust comment.
9640 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9641 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9642 instead of checking for SYSV_ABI.
9643 (ix86_nsaved_sseregs): Likewise.
9644 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9646 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9647 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9648 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9649 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9650 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9652 2011-03-25 Richard Guenther <rguenther@suse.de>
9654 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9655 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9656 (verify_gimple): Remove.
9657 * tree-cfg.c (verify_gimple_call): Merge verification
9659 (verify_gimple_phi): Merge verification from verify_stmts.
9660 (verify_gimple_label): New function.
9661 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9662 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9663 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9664 (verify_stmts): Rename to verify_gimple_in_cfg.
9665 (verify_gimple_in_cfg): New function.
9666 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9667 * tree-ssa.c (verify_ssa): Likewise.
9668 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9670 2011-03-25 Richard Guenther <rguenther@suse.de>
9672 * passes.c (init_optimization_passes): Add FRE pass after
9675 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9676 Andrew Stubbs <ams@codesourcery.com>
9678 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9680 (arm_movdi_vfp_cortexa8): New pattern.
9681 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9682 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9683 instructions when tuning for Cortex-A8. Set attribute "arch".
9684 * config/arm/arm.md: Move include arm-tune.md up a bit.
9685 (define_attr "arch"): Add "onlya8" and "nota8" values.
9686 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9688 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9692 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9694 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9695 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9696 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9697 * passes.c (init_optimization_passes): Move
9698 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9700 2011-03-25 Kai Tietz <ktietz@redhat.com>
9702 * c-typeck.c (comptypes_internal): Replace target
9703 hook call of comp_type_attributes by version in tree.c file.
9704 * gimple.c (gimple_types_compatible_p_1): Likewise.
9705 * tree-ssa.c (useless_type_conversion_p): Likewise.
9706 * tree.c (build_type_attribute_qual_variant): Likewise.
9707 (attribute_value_equal): New static helper function.
9708 (comp_type_attributes): New function.
9709 (merge_attributes): Use attribute_value_equal for comparison.
9710 (attribute_list_contained): Likewise.
9711 * tree.h (comp_type_attributes): New prototype.
9713 2011-03-25 Richard Guenther <rguenther@suse.de>
9715 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9716 of complex types at -O0.
9717 (verify_gimple_assign_binary): Likewise.
9718 (verify_gimple_assign_ternary): Likewise.
9720 2011-03-24 Mark Wielaard <mjw@redhat.com>
9722 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9723 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9725 2011-03-24 Mark Wielaard <mjw@redhat.com>
9728 * dwarf2out.c (output_abbrev_section): Only write table when
9729 abbrev_die_table_in_use > 1.
9731 2011-02-24 Richard Henderson <rth@redhat.com>
9733 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9734 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9735 (alpha_expand_unaligned_load_words): Use extql.
9736 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9737 (emit_insxl): Handle all modes for consistency.
9739 2011-02-24 Richard Henderson <rth@redhat.com>
9741 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9742 (alpha_expand_unaligned_load): Likewise.
9743 (alpha_expand_unaligned_store): Likewise.
9744 (alpha_expand_unaligned_load_words): Likewise.
9745 (alpha_expand_unaligned_store_words): Likewise.
9746 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9747 (alpha_split_lock_test_and_set_12): Likewise.
9748 (print_operand, alpha_fold_builtin_extxx): Likewise.
9749 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9750 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9751 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9752 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9753 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9754 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9755 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9756 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9757 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9758 (extwl, extll, extql): Similarly.
9759 (inswh, inslh, insqh): Similarly.
9760 (mskbl, mskwl, mskll, mskql): Similarly.
9761 (mskwh, msklh, mskqh): Similarly.
9763 2011-02-24 Richard Henderson <rth@redhat.com>
9765 * config/alpha/alpha.md (attribute isa): Add er, ner.
9766 (attribute enabled): Handle them.
9767 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9769 2011-02-24 Richard Henderson <rth@redhat.com>
9771 * config/alpha/alpha.md (attribute isa): Add vms.
9772 (attribute enabled): Handle it.
9773 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9774 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9775 (*movtf): Rename from *movtf_internal for consistency.
9776 (*movsi): Merge with *movsi_nt_vms.
9777 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9778 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9779 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9780 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9782 2011-02-24 Richard Henderson <rth@redhat.com>
9784 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9785 (extendqisi2, extendhisi2): Likewise.
9786 (extendqidi2): Simplify BWX/non-BWX expansions.
9787 (extendhidi2): Similarly.
9789 2011-02-24 Richard Henderson <rth@redhat.com>
9791 * config/alpha/alpha.md (attribute isa): New.
9792 (attribute enabled): New.
9793 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9794 (zero_extendqisi2, zero_extendqidi2): Similarly.
9795 (zero_extendhisi2, zero_extendhidi2): Similarly.
9796 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9798 2011-02-24 Richard Henderson <rth@redhat.com>
9800 * config/alpha/predicates.md (input_operand): Revert last change;
9801 update comment to mention 32-bit VMS rather than Windows.
9803 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9805 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9806 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9807 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9808 * passes.c (init_optimization_passes): Move
9809 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9811 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9813 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9815 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9817 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9820 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9823 * simplify-rtx.c (simplify_const_unary_operation): Call
9824 real_convert when changing mode class with FLOAT_EXTEND.
9826 2011-03-24 Nick Clifton <nickc@redhat.com>
9828 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9829 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9830 * config/rx/rx.c (rx_option_override): Set align_jumps,
9831 align_loops and align_labels if not set by the user.
9832 (rx_align_for_label): New function.
9833 (rx_max_skip_for_label): New function.
9834 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9835 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9836 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9837 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9838 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9840 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9842 PR rtl-optimization/48263
9843 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9844 and original commutative_p handling. Use maybe_gen_insn.
9846 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9848 * reload.c (find_reloads_subreg_address): Add address_reloaded
9849 parameter and return true there if the full address has been
9851 (find_reloads_toplev): Pass address_reloaded flag.
9852 (find_reloads_address_1): Don't use address_reloaded parameter.
9854 2011-03-24 Jeff Law <law@redhat.com>
9856 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9857 unused variable "ann".
9858 (remove_unused_locals): Likewise.
9860 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9863 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9866 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9868 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9869 for invalid symbolic addresses.
9870 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9873 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9875 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9876 the argument in calls to fold_truth_not_expr.
9878 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9880 * tree.c (record_node_allocation_statistics): New function.
9881 (make_node_stat, copy_node_stat, build_string): Call it.
9882 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9883 (build1_stat, build_omp_clause): Likewise.
9885 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9887 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9890 2011-03-24 Richard Guenther <rguenther@suse.de>
9892 PR tree-optimization/48271
9893 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9894 blocks that still exist.
9896 2011-03-24 Richard Guenther <rguenther@suse.de>
9898 PR tree-optimization/48270
9899 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9900 not free datarefs before ddrs.
9902 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9904 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9905 from the address built for a reference with variable offset.
9907 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9910 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9911 alternatives that can be handled with movq or movabsq insn.
9912 (*movdf_internal): Disable for !TARGET_64BIT.
9913 (*movdf_internal_nointeger): Ditto.
9914 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9916 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9918 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9919 (FUNCTION_ARG_ADVANCE): Likewise.
9920 * tm.texi.in: Change references to them to hook references.
9921 * tm.texi: Regenerate.
9922 * targhooks.c (default_function_arg): Eliminate check for target macro.
9923 (default_function_incoming_arg): Likewise.
9924 (default_function_arg_advance): Likewise.
9925 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9926 (function_arg_advance): Likewise.
9927 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9929 2011-03-24 Richard Guenther <rguenther@suse.de>
9932 * tree-object-size.c (addr_object_size): Do not double-account
9933 for MEM_REF offsets.
9935 2011-03-24 Diego Novillo <dnovillo@google.com>
9937 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9938 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9939 (lto_input_data_block): Move from lto-opts.c. Make extern.
9941 (lto_input_string): Rename from input_string. Make extern.
9943 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9944 output_string_with_length.
9945 Output 0 to indicate a non-NULL string. Update all callers to
9947 (lto_output_string): Rename from output_string. Make extern.
9949 (lto_output_decl_state_streams): Make extern.
9950 (lto_output_decl_state_refs): Make extern.
9951 * lto-streamer.h (lto_input_string): Declare.
9952 (lto_input_data_block): Declare.
9953 (lto_output_string): Declare.
9954 (lto_output_string_with_length): Declare.
9955 (lto_output_decl_state_streams): Declare.
9956 (lto_output_decl_state_refs): Declare.
9958 2011-03-24 Richard Guenther <rguenther@suse.de>
9960 PR tree-optimization/46562
9961 * tree.c (build_invariant_address): New function.
9962 * tree.h (build_invariant_address): Declare.
9963 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9964 a renamed function moved ...
9965 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9966 Take valueization callback parameter.
9967 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9968 * gimple-fold.h: New file.
9969 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9970 (ccp_fold, fold_const_aggregate_ref,
9971 fold_ctor_reference, fold_nonarray_ctor_reference,
9972 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9973 get_base_constructor): Move ...
9974 * gimple-fold.c: ... here.
9975 (gimple_fold_stmt_to_constant_1): New function
9976 split out from ccp_fold. Take a valueization callback parameter.
9977 Valueize all operands.
9978 (gimple_fold_stmt_to_constant): New wrapper function.
9979 (fold_const_aggregate_ref_1): New function split out from
9980 fold_const_aggregate_ref. Take a valueization callback parameter.
9981 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9982 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9983 invariant POINTER_PLUS_EXPRs to invariant form.
9984 (vn_valueize): New function.
9985 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9986 * tree-vrp.c (vrp_valueize): New function.
9987 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9988 to fold statements to constants.
9989 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9990 function declarations.
9991 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9992 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9994 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9996 * config/h8300/predicates.md (jump_address_operand): Fix register
9999 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10001 * doc/invoke.texi (max-stores-to-sink): Document.
10002 * params.h (MAX_STORES_TO_SINK): Define.
10003 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10004 if either vectorization or if-conversion is disabled.
10005 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10006 tree-vect-data-refs.c vect_equal_offsets.
10007 (dr_equal_offsets_p): New function.
10008 (find_data_references_in_bb): Remove static.
10009 * tree-data-ref.h (find_data_references_in_bb): Declare.
10010 (dr_equal_offsets_p): Likewise.
10011 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10012 (vect_drs_dependent_in_basic_block): Update calls to
10013 vect_equal_offsets.
10014 (vect_check_interleaving): Likewise.
10015 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10016 (cond_if_else_store_replacement): Rename to...
10017 (cond_if_else_store_replacement_1): ... this. Change arguments and
10019 (cond_if_else_store_replacement): New function.
10020 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10021 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10023 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10026 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10027 to subtract lower bound instead of GEN_INT().
10029 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10034 * doc/extend.texi (Alignment): Move section to match order in TOC.
10035 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10036 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10038 2011-03-23 Jeff Law <law@redhat.com>
10040 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10041 before removing the edge.
10043 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10044 it may have been freed by redirect_branch_edge or
10045 redirect_edge_succ_nodup.
10047 2011-03-23 Richard Guenther <rguenther@suse.de>
10049 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10050 (check_va_list_escapes): Likewise.
10051 (check_all_va_list_escapes): Likewise.
10053 2011-03-23 Richard Guenther <rguenther@suse.de>
10055 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10056 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10057 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10058 (alias.o): Likewise.
10059 (ipa-type-escape.o): Remove.
10060 (ipa-struct-reorg.o): Likewise.
10061 (GTFILES): Remove ipa-struct-reorg.c.
10062 * alias.c: Do not include ipa-type-escape.h.
10063 * tree-ssa-alias.c: Likewise.
10064 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10065 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10066 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10067 and ipa-type-escape passes.
10068 * tree-pass.h (pass_ipa_type_escape): Remove.
10069 (pass_ipa_struct_reorg): Likewise.
10070 * ipa-struct-reorg.h: Remove.
10071 * ipa-struct-reorg.c: Likewise.
10072 * ipa-type-escape.h: Likewise.
10073 * ipa-type-escape.c: Likewise.
10074 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10075 (--param struct-reorg-cold-struct-ratio): Likewise.
10076 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10077 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10078 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10080 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10082 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10083 cpu attribute value.
10084 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10085 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10086 * config/s390/s390.c (processor_flags_table): New constant array.
10087 (s390_handle_arch_option): Remove.
10088 (s390_handle_option): Remove s390_handle_arch_option invocations
10089 and OPT_mwarn_framesize_ handling.
10090 (s390_option_override): Remove s390_handle_arch_option invocation.
10091 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10093 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10094 * config/s390/s390.opt (s390_tune, s390_arch)
10095 (march=): Replace s390_arch_option enum and values with
10096 processor_type. Set variable name to s390_arch. Set
10097 initialization value.
10098 (mtune=): Replace s390_arch_option with processor_type. Set
10099 variable name to s390_tune. Set initialization value.
10101 2011-03-23 Julian Brown <julian@codesourcery.com>
10103 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10104 accesses which are not naturally aligned.
10106 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10109 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10111 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10113 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10114 parameter from "int" to "enum insn_code".
10115 (expand_operand_type): New enum.
10116 (expand_operand): New structure.
10117 (create_expand_operand): New function.
10118 (create_fixed_operand, create_output_operand): Likewise
10119 (create_input_operand, create_convert_operand_to): Likewise.
10120 (create_convert_operand_from, create_address_operand): Likewise.
10121 (create_integer_operand): Likewise.
10122 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10123 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10124 (expand_insn, expand_jump_insn): Likewise.
10125 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10126 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10127 (expand_movstr, expand_builtin___clear_cache): Likewise.
10128 (expand_builtin_lock_release): Likewise.
10129 * explow.c (allocate_dynamic_stack_space): Likewise.
10130 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10131 and use the default handling in that case.
10132 * expmed.c (check_predicate_volatile_ok): Delete.
10133 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10134 (emit_cstore): Likewise.
10135 * expr.c (emit_block_move_via_movmem): Likewise.
10136 (set_storage_via_setmem, expand_assignment): Likewise.
10137 (emit_storent_insn, try_casesi): Likewise.
10138 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10139 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10140 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10141 (expand_twoval_unop, expand_twoval_binop): Likewise.
10142 (expand_unop_direct, emit_indirect_jump): Likewise.
10143 (emit_conditional_move, vector_compare_rtx): Likewise.
10144 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10145 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10146 (expand_sync_lock_test_and_set): Likewise.
10147 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10148 (emit_unop_insn): Likewise.
10149 (expand_copysign_absneg): Change icode to an insn_code.
10150 (create_convert_operand_from_type): New function.
10151 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10152 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10153 (expand_insn, expand_jump_insn): Likewise.
10154 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10155 than const_int_operand for operand 2.
10157 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10159 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10162 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10164 * emit-rtl.c (emit_pattern_before_noloc): New function.
10165 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10166 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10167 (emit_pattern_after_noloc): New function.
10168 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10169 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10171 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10173 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10174 (__ffsDI2): Likewise.
10176 2011-03-22 Richard Henderson <rth@redhat.com>
10178 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10179 of !TARGET_ABI_OPEN_VMS.
10180 (alpha_trampoline_init, alpha_start_function): Likewise.
10181 (alpha_expand_epilogue, alpha_file_start): Likewise.
10182 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10183 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10184 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10185 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10186 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10188 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10190 * config/s390/s390-opts.h: New.
10191 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10192 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10193 s390_stack_guard): Remove.
10194 (s390_handle_arch_option): Return void. Take enum
10195 s390_arch_option value instead of string and searching array.
10196 (s390_handle_option): Don't assert that global structures are in
10197 use. Access variables via opts pointer. Use error_at. Don't use
10198 sscanf for -mstack-guard= or -mstack-size=. Update call to
10199 s390_handle_arch_option.
10200 (s390_option_override): Update call to s390_handle_arch_option.
10201 (s390_emit_prologue): Use %d format for s390_stack_size in
10202 diagnostic. Use %wd for HOST_WIDE_INT.
10203 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10204 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10205 * config/s390/s390.opt (config/s390/s390-opts.h): New
10206 HeaderInclude entry.
10207 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10208 s390_arch_flags, s390_warn_framesize): New Variable entries.
10209 (s390_arch_option): New Enum and EnumValue entries.
10210 (march=): Use Enum instead of Var.
10211 (mstack-guard=, mstack-size=): Use UInteger and Var.
10212 (mtune=): Use Enum.
10214 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10216 * config/score/score.c (score_handle_option): Don't assert that
10217 global structures are in use. Access target_flags via opts
10218 pointer. Use value of -march= option to determine target_flags
10220 * config/score/score.opt (march=): Use Enum.
10221 (score_arch): New Enum and EnumValue entries.
10223 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10225 * config/mep/mep.c (option_mtiny_specified): Remove.
10226 (mep_option_override): Move register handling for -mivc2 from
10227 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10228 instead of option_mtiny_specified.
10229 (mep_handle_option): Access target_flags via opts pointer. Don't
10230 assert that global structures are in use. Defer part of -mivc2
10231 handling and move it to mep_option_override.
10232 * config/mep/mep.opt (IVC2): New Mask entry.
10233 (mivc2): Use Var and Defer instead of Mask.
10235 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10237 * config/v850/v850-opts.h: New.
10238 * config/v850/v850.c (small_memory): Replace with
10239 small_memory_physical_max array. Make that array static const.
10240 (v850_handle_memory_option): Take integer value of argument. Take
10241 gcc_options pointer, option text and location. Return void.
10242 Update for changes to small memory structures.
10243 (v850_handle_option): Access target_flags via opts pointer. Don't
10244 assert that global structures are in use. Update calls to
10245 v850_handle_memory_option.
10246 (v850_encode_data_area): Update references to small memory settings.
10247 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10248 (enum small_memory_type): Move to v850-opts.h.
10249 * config/v850/v850.opt (config/v850/v850-opts.h): New
10250 HeaderInclude entry.
10251 (small_memory_max): New Variable entry.
10252 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10253 (mtda, mzda): Likewise.
10255 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10257 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10258 pointer. Don't assert that global structures are in use.
10260 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10262 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10263 via opts pointer. Don't assert that global structures are in use.
10265 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10267 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10268 (munix=93): Use Var.
10269 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10270 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10271 * config/pa/pa-opts.h: New.
10272 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10273 (pa_handle_option): Don't assert that global structures are in
10274 use. Access target_flags via opts pointer. Don't handle
10275 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10277 (pa_option_override): Handle deferred OPT_mfixed_range_.
10279 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10281 * config/mn10300/mn10300-opts.h: New.
10282 * config/mn10300/mn10300.c (mn10300_processor,
10283 mn10300_tune_string): Remove.
10284 (mn10300_handle_option): Don't assert that global structures are
10285 in use. Access mn10300_processor via opts pointer. Don't handle
10287 * config/mn10300/mn10300.h (enum processor_type): Move to
10289 (mn10300_processor): Remove.
10290 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10291 HeaderInclude entry.
10292 (mn10300_processor): New Variable entry.
10295 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10297 * config/microblaze/microblaze.c: Don't include opts.h.
10298 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10299 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10300 (mno-clearbss): Use Var and Warn.
10302 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10304 * config/m32r/m32r-opts.h: New.
10305 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10306 (m32r_handle_option): Don't assert that global structures are in
10307 use. Access target_flags and m32r_cache_flush_func via opts
10308 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10309 OPT_mno_flush_trap here.
10310 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10311 include of m32r-opts.h.
10312 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10313 HeaderInclude entry.
10314 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10315 (mmodel=): Use Enum and Var.
10316 (m32r_model): New Enum and EnumValue entries.
10317 (mno-flush-trap): Use Var.
10318 (msdata=): Use Enum and Var.
10319 (m32r_sdata): New Enum and EnumValue entries.
10321 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10323 * config/m32c/m32c.c: Don't include opts.h.
10324 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10325 m32c_handle_option): Remove.
10326 (m32c_option_override): Check global_options_set.x_target_memregs
10327 instead of target_memregs_set.
10328 * config/m32c/m32c.h (target_memregs): Remove.
10329 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10332 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10334 * config/iq2000/iq2000-opts.h: New.
10335 * config/iq2000/iq2000.c: Don't include opts.h.
10336 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10337 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10338 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10339 HeaderInclude entry.
10340 (iq2000_tune): New Variable entry.
10341 (march=): Add comment. Use Enum.
10342 (iq2000_arch): New Enum and EnumValue entries.
10343 (mcpu=): Use Enum and Var.
10344 (iq2000_tune): New Enum and EnumValue entries.
10346 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10348 * config/ia64/ia64-opts.h: New.
10349 * config/ia64/ia64.c (ia64_tune): Remove.
10350 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10351 here. Use error_at.
10352 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10353 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10354 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10355 HeaderInclude entry.
10356 (ia64_tune): New Variable entry.
10357 (mfixed-range=): Use Defer and Var.
10358 (mtune=): Use Enum and Var.
10359 (ia64_tune): New Enum and EnumValue entries.
10361 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10363 * config/frv/frv-opts.h: New.
10364 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10366 (frv_cpu_type): Remove.
10367 * config/frv/frv.c: Don't include opts.h.
10368 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10369 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10370 (frv_cpu_type): New Variable entry.
10371 (frv_cpu): New Enum and EnumValue entries.
10373 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10375 * config/cris/cris.c (cris_handle_option): Access target_flags via
10376 opts pointer. Don't assert that global structures are in use.
10377 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10378 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10380 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10382 * config/bfin/bfin-opts.h: New.
10383 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10384 bfin_si_revision, bfin_workarounds): Remove.
10385 (bfin_cpus): Make static const.
10386 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10387 not bfin_lib_id_given.
10388 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10389 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10390 pointer. Use error_at. Don't assert that global structures are in use.
10391 * config/bfin/bfin.h: Include bfin-opts.h.
10392 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10393 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10394 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10395 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10398 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10400 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10401 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10402 or -msoft-float here.
10403 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10404 -msoft-float and -mhard-float.
10405 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10406 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10408 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10410 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10411 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10413 (LIBGCC_SPEC): Don't handle -msoft-float.
10414 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10416 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10418 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10419 -mfloat-abi=*, not -msoft-float and -mhard-float.
10420 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10422 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10423 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10424 mhard-float and msoft-float.
10425 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10426 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10427 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10428 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10430 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10431 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10433 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10435 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10438 2011-03-22 Richard Henderson <rth@redhat.com>
10440 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10441 TARGET_ABI_WINDOWS_NT.
10442 (alpha_output_function_end_prologue): Likewise.
10443 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10444 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10445 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10446 (trap, *movsi_nt_vms): Likewise.
10447 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10448 (*tablejump_osf_nt_internal): Remove.
10449 * config/alpha/predicates.md (input_operand): Only test Pmode.
10451 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10453 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10454 via opts pointer. Use error_at. Don't assert that global
10455 structures are in use.
10457 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10459 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10460 (ix86_handle_option): Access ix86_isa_flags and
10461 ix86_isa_flags_explicit via opts pointer. Don't assert that
10462 global structures are in use.
10463 (ix86_function_specific_save, ix86_function_specific_restore):
10464 Update ix86_isa_flags_explicit field name.
10465 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10466 (ix86_isa_flags_explicit): Rename TargetSave entry to
10467 x_ix86_isa_flags_explicit.
10469 2011-03-22 Richard Henderson <rth@redhat.com>
10471 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10472 (alpha_option_override, direct_return): Likewise.
10473 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10474 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10475 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10476 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10477 (alpha_expand_epilogue, alpha_end_function): Likewise.
10478 (alpha_init_libfuncs): Likewise.
10479 (struct machine_function): Remove unicosmk members.
10480 (print_operand) ['t']: Remove.
10481 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10482 unicosmk_output_module_name, unicosmk_output_common,
10483 current_section_align, unicosmk_output_text_section_asm_op,
10484 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10485 unicosmk_section_type_flags, unicosmk_unique_section,
10486 unicosmk_asm_named_section, unicosmk_insert_attributes,
10487 unicosmk_output_align, unicosmk_defer_case_vector,
10488 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10489 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10490 unicosmk_output_ssib, unicosmk_add_call_info_word,
10491 unicosmk_extern_head, unicosmk_output_default_externs,
10492 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10493 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10494 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10495 * config/alpha/alpha-protos.h: Update.
10496 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10497 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10498 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10499 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10500 (*mulsi_se, mulvsi3): Likewise.
10501 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10502 (*divmodsi_internal, call, call_value, realign): Likewise.
10503 (moddi3, umoddi3): Likewise; remove duplicate expander.
10504 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10505 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10506 (*movdi_nofix): Remove r/U alternative.
10507 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10508 * config/alpha/constraints.md ("U"): Remove.
10509 * config/alpha/predicates.md (call_operand"): Don't test
10510 TARGET_ABI_UNICOSMK.
10512 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10514 * target.def (handle_option): Take gcc_options and
10515 cl_decoded_option pointers and location_t.
10516 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10517 * doc/tm.texi: Regenerate.
10518 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10519 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10520 * lto-opts.c (lto_reissue_options): Generate option structure for
10521 targetm.handle_option call.
10522 * opts.c (target_handle_option): Update call to
10523 targetm.handle_option. Remove assertions about values now passed
10525 * targhooks.c (default_target_handle_option): New.
10526 * targhooks.h (default_target_handle_option): Declare.
10527 * config/alpha/alpha.c: Include opts.h.
10528 (alpha_handle_option): Update to new hook interface.
10529 * config/arm/arm.c: Include opts.h.
10530 (arm_handle_option): Update to new hook interface.
10531 * config/arm/t-arm (arm.o): Update dependencies.
10532 * config/bfin/bfin.c: Include opts.h.
10533 (bfin_handle_option): Update to new hook interface.
10534 * config/cris/cris.c: Include opts.h.
10535 (cris_handle_option): Update to new hook interface.
10536 * config/frv/frv.c: Include opts.h.
10537 (frv_handle_option): Update to new hook interface.
10538 * config/i386/i386.c: Include opts.h.
10539 (ix86_handle_option): Update to new hook interface.
10540 (ix86_valid_target_attribute_inner_p): Generate option structure
10541 for call to ix86_handle_option.
10542 * config/i386/t-i386 (i386.o): Update dependencies.
10543 * config/ia64/ia64.c: Include opts.h.
10544 (ia64_handle_option): Update to new hook interface.
10545 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10546 * config/iq2000/iq2000.c: Include opts.h.
10547 (iq2000_handle_option): Update to new hook interface.
10548 * config/m32c/m32c.c: Include opts.h.
10549 (m32c_handle_option): Update to new hook interface.
10550 * config/m32r/m32r.c: Include opts.h.
10551 (m32r_handle_option): Update to new hook interface.
10552 * config/m68k/m68k.c: Include opts.h.
10553 (m68k_handle_option): Update to new hook interface.
10554 * config/mep/mep.c: Include opts.h.
10555 (mep_handle_option): Update to new hook interface.
10556 * config/microblaze/microblaze.c: Include opts.h.
10557 (microblaze_handle_option): Update to new hook interface.
10558 * config/mips/mips.c: Include opts.h.
10559 (mips_handle_option): Update to new hook interface.
10560 * config/mn10300/mn10300.c: Include opts.h.
10561 (mn10300_handle_option): Update to new hook interface.
10562 * config/pa/pa.c: Include opts.h.
10563 (pa_handle_option): Update to new hook interface.
10564 * config/pdp11/pdp11.c: Include opts.h.
10565 (pdp11_handle_option): Update to new hook interface.
10566 * config/rs6000/rs6000.c: Include opts.h.
10567 (rs6000_handle_option): Update to new hook interface.
10568 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10569 * config/rx/rx.c: Include opts.h.
10570 (rx_handle_option): Update to new hook interface.
10571 * config/s390/s390.c: Include opts.h.
10572 (s390_handle_option): Update to new hook interface.
10573 * config/score/score.c: Include opts.h.
10574 (score_handle_option): Update to new hook interface.
10575 * config/sh/sh.c: Include opts.h.
10576 (sh_handle_option): Update to new hook interface.
10577 * config/sparc/sparc.c: Include opts.h.
10578 (sparc_handle_option): Update to new hook interface.
10579 * config/v850/v850.c: Include opts.h.
10580 (v850_handle_option): Update to new hook interface.
10582 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10584 * gcc.c (driver_unknown_option_callback): Only permit and save
10585 unknown -Wno- options.
10586 (driver_wrong_lang_callback): Save options directly instead of via
10587 driver_unknown_option_callback.
10589 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10591 * combine.c (simplify_set): Try harder to find the best CC mode when
10592 simplifying a nested COMPARE on the RHS.
10594 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10596 * config/alpha/gnu.h: Remove.
10597 * config/arc: Remove directory.
10598 * config/arm/netbsd.h: Remove.
10599 * config/arm/t-pe: Remove.
10600 * config/crx: Remove directory.
10601 * config/i386/netbsd.h: Remove.
10602 * config/m68hc11: Remove directory.
10603 * config/m68k/uclinux-oldabi.h: Remove.
10604 * config/mcore/mcore-pe.h: Remove.
10605 * config/mcore/t-mcore-pe: Remove.
10606 * config/netbsd-aout.h: Remove.
10607 * config/rs6000/gnu.h: Remove.
10608 * config/sh/sh-symbian.h: Remove.
10609 * config/sh/symbian-base.c: Remove.
10610 * config/sh/symbian-c.c: Remove.
10611 * config/sh/symbian-cxx.c: Remove.
10612 * config/sh/symbian-post.h: Remove.
10613 * config/sh/symbian-pre.h: Remove.
10614 * config/sh/t-symbian: Remove.
10615 * config/svr3.h: Remove.
10616 * config/vax/netbsd.h: Remove.
10617 * config.build: Don't handle i[34567]86-*-pe.
10618 * config.gcc: Remove handling of deprecations for most deprecated
10620 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10621 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10622 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10623 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10624 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10625 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10627 * config.host: Don't handle i[34567]86-*-pe.
10628 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10629 (ASM_SPEC32): Don't handle -mcall-gnu.
10630 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10632 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10633 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10634 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10635 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10636 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10637 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10638 conditional on SYMBIAN.
10639 * configure.ac: Don't handle powerpc*-*-gnu*.
10640 * configure: Regenerate.
10641 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10642 * doc/install-old.texi (m6811, m6812): Don't mention.
10643 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10644 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10645 (m68k-uclinuxoldabi): Don't mention.
10646 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10648 (-mcall-gnu): Remove.
10649 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10650 families): Remove constraint documentation.
10652 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10654 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10655 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10656 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10658 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10661 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10662 vector when peeking at the next token for vector, don't expand the
10665 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10667 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10668 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10669 * config/avr/avr.c (init_cumulative_args)
10670 (avr_function_arg_advance): Use it.
10671 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10673 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10674 (avr_function_ok_for_sibcall): ...this new function.
10675 (avr_lookup_function_attribute1): New static Function.
10676 (avr_naked_function_p, interrupt_function_p)
10677 (signal_function_p, avr_OS_task_function_p)
10678 (avr_OS_main_function_p): Use it.
10679 * config/avr/avr.md ("sibcall", "sibcall_value")
10680 ("sibcall_epilogue"): New expander.
10681 ("*call_insn", "*call_value_insn"): New insn.
10682 ("call_insn", "call_value_insn"): Remove
10683 ("call", "call_value", "epilogue"): Change expander to handle
10686 2011-03-21 Nick Clifton <nickc@redhat.com>
10688 * doc/invoke.texi (Overall Options): Move closing brace to end of
10690 (Optimization Options): Add missing @gol.
10691 (Directory Options): Likewise.
10692 (i386 and x86-64 Options): Likewise.
10693 (RS6000 and PowerPC Options): Likewise.
10694 (i386 and x86-64 Windows Options): Likewise.
10695 (V850 Options): Add text missing from descriptions.
10697 2011-03-22 Richard Henderson <rth@redhat.com>
10699 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10700 (avr_incoming_return_addr_rtx): New.
10701 (emit_push_byte): New.
10702 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10703 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10704 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10705 (emit_pop_byte): New.
10706 (expand_epilogue): Use it. Pop frame pointer by bytes.
10707 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10708 (INCOMING_RETURN_ADDR_RTX): New.
10709 (INCOMING_FRAME_SP_OFFSET): New.
10710 (ARG_POINTER_CFA_OFFSET): New.
10711 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10712 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10715 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10717 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10719 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10720 (FUNCTION_ARG_ADVANCE): Likewise.
10721 * tm.texi.in: Change references to them to hook references.
10722 * tm.texi: Regenerate.
10723 * targhooks.c (default_function_arg): Eliminate check for target
10725 (default_function_incoming_arg): Likewise.
10726 (default_function_arg_advance): Likewise.
10727 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10728 (function_arg_advance): Likewise.
10729 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10731 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10733 * tree.c (build_call_1): New function.
10734 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10736 2011-03-22 Richard Guenther <rguenther@suse.de>
10738 PR tree-optimization/48228
10739 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10740 for single-arg PHIs.
10742 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10744 PR rtl-optimization/48143
10745 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10746 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10747 sse2_cvtps2pd): Likewise.
10749 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10751 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10753 2011-03-22 Richard Guenther <rguenther@suse.de>
10755 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10756 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10757 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10758 and REALIGN_LOAD_EXPR.
10759 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10760 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10761 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10762 DOT_PROD_EXPR case ...
10763 (expand_expr_real_2): ... here.
10764 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10765 and REALIGN_LOAD_EXPR.
10766 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10767 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10768 (vect_create_epilog_for_reduction): Likewise.
10769 (vectorizable_reduction): Likewise.
10770 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10771 * tree-vect-stmts.c (vectorizable_load): Likewise.
10773 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10775 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10777 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10779 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10780 handling for PLTOFF/GOTOFF.
10782 2011-03-22 Nick Clifton <nickc@redhat.com>
10784 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10785 trailing backslash from the end of the macro definition.
10787 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10789 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10792 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10794 * expr.h (prepare_operand): Move to...
10795 * optabs.h (prepare_operand): ...here and change the insn code
10796 parameter from "int" to "enum insn_code".
10797 (insn_operand_matches): Declare.
10798 * expr.c (init_expr_target): Use insn_operand_matches.
10799 (compress_float_constant): Likewise.
10800 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10801 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10802 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10803 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10805 (gen_cond_trap): Likewise.
10806 (prepare_operand): Likewise. Change icode to an insn_code.
10807 (insn_operand_matches): New function.
10808 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10809 * reload1.c (gen_reload): Likewise.
10810 * targhooks.c (default_secondary_reload): Likewise.
10812 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10814 * config/alpha/alpha.md (unspec): New define_c_enum.
10817 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10820 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10821 between a call and its CALL_ARG_LOCATION note.
10823 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10825 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10827 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10831 * c-common.c (shorten_compare): If primopN is first sign-extended
10832 to opN and then zero-extended to result type, set primopN to opN.
10834 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10836 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10837 for barrier handlers.
10839 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10841 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10842 UNSPEC constants to be in the unspec enumeration, and redefine
10843 all UNSPECV constants to be in the unspecv enumeration, so that
10844 dumps print which unspec/unspec_volatile this is.
10845 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10846 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10847 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10848 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10849 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10851 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10852 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10853 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10854 * config/rs6000/sync.md (isync, lwsync): Ditto.
10856 2011-03-21 Richard Guenther <rguenther@suse.de>
10858 * params.def (lto-min-partition): Fix typo.
10860 2011-03-21 Richard Guenther <rguenther@suse.de>
10863 * c-decl.c (grokdeclarator): Drop to the main variant only
10864 for array types. Drop flag_gen_aux_info check.
10866 2011-03-21 Richard Guenther <rguenther@suse.de>
10868 PR translation/47911
10869 * params.def (lto-partitions): Fix typo.
10870 (lto-min-partition): Fix wording.
10872 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10874 * config/rs6000/t-freebsd: Remove duplication from file.
10876 2011-03-21 Richard Guenther <rguenther@suse.de>
10878 PR middle-end/47661
10879 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10881 2011-03-21 Richard Guenther <rguenther@suse.de>
10884 * params.def (lto-partitions): Require at least 1 partition.
10886 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10888 * gthr-solaris.h: Remove.
10889 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10890 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10891 (LIB_SPEC): Likewise.
10892 * config/sol2.opt (threads): Remove.
10893 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10894 (sparc*-*-solaris2*): Likewise.
10895 * configure.ac (enable_threads): Enable solaris support.
10896 * configure: Regenerate.
10897 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10898 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10901 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10903 * config.gcc: Obsolete *-*-solaris2.8*.
10904 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10906 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10909 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10910 reference. Solaris 8 perl works.
10912 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10915 * doc/install.texi (Prerequisites): Move jar etc. up.
10916 Explain support library version requirements.
10918 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10921 * doc/install.texi (Prerequisites): Move Perl to build
10922 requirements. Always necessary on Solaris 2 with Sun ld.
10924 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10926 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10928 (Specific, i?86-*-solaris2.[89]): Likewise.
10929 (Specific, i?86-*-solaris2.10): Likewise.
10930 (Specific, mips-sgi-irix6): Likewise.
10931 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10932 Update for binutils 2.21.
10934 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10936 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10937 Allow -fuse-linker-plugin for non-default plugin linker.
10938 * configure: Regenerate.
10940 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10943 * gengtype.c (files_rules): Added rule for cp/parser.h.
10945 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10948 * config/s390/s390.c (s390_delegitimize_address): Don't call
10949 lowpart_subreg if orig_x has BLKmode.
10951 2011-03-21 Kai Tietz <ktietz@redhat.com>
10954 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10955 * tree.h (attribute_spec): Add new member affects_type_identity.
10956 * attribs.c (empty_attribute_table): Adjust attribute_spec
10958 * config/alpha/alpha.c: Likewise.
10959 * config/arc/arc.c: Likewise.
10960 * config/arm/arm.c: Likewise.
10961 * config/avr/avr.c: Likewise.
10962 * config/bfin/bfin.c: Likewise.
10963 * config/crx/crx.c: Likewise.
10964 * config/darwin.h: Likewise.
10965 * config/h8300/h8300.c: Likewise.
10966 * config/i386/cygming.h: Likewise.
10967 * config/i386/i386.c: Likewise.
10968 * config/ia64/ia64.c: Likewise.
10969 * config/m32c/m32c.c: Likewise.
10970 * config/m32r/m32r.c: Likewise.
10971 * config/m68hc11/m68hc11.c: Likewise.
10972 * config/m68k/m68k.c: Likewise.
10973 * config/mcore/mcore.c: Likewise.
10974 * config/mep/mep.c: Likewise.
10975 * config/microblaze/microblaze.c: Likewise.
10976 * config/mips/mips.c: Likewise.
10977 * config/rs6000/rs6000.c: Likewise.
10978 * config/rx/rx.c: Likewise.
10979 * config/sh/sh.c: Likewise.
10980 * config/sol2.h: Likewise.
10981 * config/sparc/sparc.c: Likewise.
10982 * config/spu/spu.c: Likewise.
10983 * config/stormy16/stormy16.c: Likewise.
10984 * config/v850/v850.c: Likewise.
10986 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10988 * simplify-rtx.c (simplify_binary_operation_1): Handle
10989 (xor (and A B) C) case when B and C are both constants.
10991 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10993 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10995 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10998 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11000 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11002 PR rtl-optimization/48156
11003 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11004 assume df and df_lr are not NULL.
11006 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11009 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11010 between a call and its CALL_ARG_LOCATION note.
11012 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11015 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11016 between a call and its corresponding CALL_ARG_LOCATION note.
11018 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11020 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11021 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11022 * haifa-sched.c (setup_ref_regs): Ditto.
11023 * caller-save.c (add_used_regs_1): Ditto.
11024 * dse.c (look_for_hardregs): Ditto.
11025 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11026 * sched-rgn.c (check_live_1): Ditto.
11028 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11030 * c-decl.c (diagnose_mismatched_decls): Give an error for
11031 redefining a typedef with variably modified type.
11033 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11035 * c-decl.c (grokfield): Don't allow typedefs for structures or
11036 unions with no tag by default.
11037 * doc/extend.texi (Unnamed Fields): Update.
11039 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11041 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11042 Rewrite using indirect functions.
11043 (lwp_slwpcb): Ditto.
11044 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11045 (avx_vinsertf128<mode>): Ditto.
11047 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11049 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11052 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11054 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11055 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11057 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11059 PR rtl-optimization/48170
11060 * gcse.c (hoist_code): Remove bogus asserts.
11062 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11064 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11065 computation for prologue/epilogue.
11067 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11069 * Makefile.in (check-consistency): Remove.
11071 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11074 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11075 arange_table_in_use is 0, but either text_section_used or
11076 cold_text_section_used is true. Don't call it if
11077 !info_section_emitted.
11079 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11081 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11082 FUNCTION_VALUE_REGNO_P): Remove.
11083 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11085 * config/avr/avr.c (avr_ret_register): Make static inline.
11086 (avr_function_value_regno_p): New function.
11087 (avr_libcall_value): Make static. Add 'func' argument.
11088 (avr_function_value): Make static. Rename 'func' argument to
11089 'fn_decl_or_type', forward it to avr_libcall_value. Call
11090 avr_ret_register function instead of RET_REGISTER macro.
11091 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11093 2011-03-18 Jason Merrill <jason@redhat.com>
11096 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11098 2011-03-18 Richard Guenther <rguenther@suse.de>
11100 * doc/install.texi (--enable-gold): Remove.
11101 (--with-plugin-ld): Document.
11102 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11104 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11106 PR middle-end/47790
11107 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11108 again after expansion changes.
11110 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11112 * combine.c (try_combine): Do simplification only call of
11113 subst() on i2 even when i1 is present. Update comments.
11115 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11117 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11118 and UNSPEC_PCREL_SYMOFF.
11120 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11122 * config/s390/s390.md: Use define_c_enum for the unspec constant
11125 2011-03-18 Richard Henderson <rth@redhat.com>
11126 Jakub Jelinek <jakub@redhat.com>
11129 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11130 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11132 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11134 PR middle-end/47725
11135 * combine.c (cant_combine_insn_p): Don't check zero/sign
11136 extended hard registers.
11138 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11140 PR middle-end/47725
11141 * combine.c (cant_combine_insn_p): Check zero/sign extended
11144 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11146 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11147 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11148 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11149 Change return type to bool.
11150 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11152 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11155 * var-tracking.c (prepare_call_arguments): If CALL target
11156 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11157 pc instead of looking it up using cselib_lookup and use
11158 Pmode for it if x has VOIDmode.
11159 * dwarf2out.c (gen_subprogram_die): If also both first and
11160 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11163 * function.c (assign_parms): For data.passed_pointer parms
11164 use MEM of data.entry_parm instead of data.entry_parm itself
11165 as DECL_INCOMING_RTL.
11166 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11167 also when passed and declared mode is the same, DECL_RTL
11168 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11171 2011-03-16 Jeff Law <law@redhat.com>
11173 PR rtl-optimization/37273
11174 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11175 handle them like argument loads from stack slots. Do not double
11176 count memory for memory constants and argument loads from stack slots.
11178 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11181 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11183 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11186 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11188 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11191 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11193 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11194 Clear call_arg_locations and call_arg_loc_last always.
11196 PR middle-end/48152
11197 * var-tracking.c (prepare_call_arguments): If argument needs to be
11198 passed by reference, adjust argtype and mode.
11200 2011-03-17 Richard Guenther <rguenther@suse.de>
11202 PR middle-end/48134
11203 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11204 a value make sure to fold the statement.
11206 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11209 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11210 return condition with !cfun->calls_alloca.
11212 2011-03-17 Richard Guenther <rguenther@suse.de>
11215 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11216 origin for decls in other ltrans units.
11217 (input_varpool_node): Likewise.
11219 2011-03-17 Richard Guenther <rguenther@suse.de>
11221 PR middle-end/48165
11222 * tree-object-size.c (compute_object_offset): Properly return
11223 the offset operand of MEM_REFs as sizetype.
11225 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11227 PR rtl-optimization/48141
11228 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11229 * dse.c: Include params.h.
11230 (active_local_stores_len): New variable.
11231 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11233 (record_store, check_mem_read_rtx): Decrease it when removing
11235 (scan_insn): Likewise. Increase it when adding to chain, if it
11236 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11237 set active_local_stores to NULL before the addition.
11238 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11240 PR rtl-optimization/48141
11241 * dse.c (record_store): If no positions are needed in an insn
11242 that cannot be deleted, at least unchain it from active_local_stores.
11244 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11247 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11248 (lookup_type_die_strip_naming_typedef): ... here.
11249 (get_context_die): Use it.
11250 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11251 the anonymous struct named by the naming typedef.
11253 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11256 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11257 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11259 2011-03-16 Jeff Law <law@redhat.com>
11261 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11262 check for operands of conditional. Allow type to be a pointer.
11264 2011-03-16 Richard Guenther <rguenther@suse.de>
11266 PR tree-optimization/48149
11267 * fold-const.c (fold_binary_loc): Fold
11268 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11270 2011-03-16 Richard Guenther <rguenther@suse.de>
11272 PR tree-optimization/26134
11273 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11274 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11275 (non_rewritable_mem_ref_base): Handle complex type component
11276 accesses, constrain offsets for vector and complex extracts
11279 2011-03-16 Richard Guenther <rguenther@suse.de>
11281 PR tree-optimization/48146
11282 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11283 operands avoiding the need for renaming.
11285 2011-03-16 Richard Guenther <rguenther@suse.de>
11287 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11288 constant folding. Move MEM_REF canonicalization first.
11289 Rely on fold_const_aggregate_ref for initializer folding.
11290 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11292 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11294 PR middle-end/48136
11295 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11296 arg0/arg1 or their arguments are always fold converted to matching
11299 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11302 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11305 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11306 Handle in-tree gold.
11307 (ld_vers): Extract binutils version for gold.
11308 (gcc_cv_ld_hidden): Handle gold here.
11309 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11310 * configure: Regenerate.
11311 * config.in: Regenerate.
11312 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11313 -fuse-linker-plugin otherwise.
11314 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11315 (LINK_COMMAND_SPEC): Use it.
11316 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11318 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11320 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11321 * calls.c: Remove debug.h include.
11322 (emit_call_1): Don't call virtual_call_token debug hook.
11323 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11324 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11325 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11326 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11327 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11328 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11329 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11330 dwarf2out_virtual_call): Remove.
11331 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11332 copy_call_info and virtual_call hooks.
11333 (dwarf2out_init): Don't initialize vcall_insn_table,
11334 debug_dcall_section and debug_vcall_section.
11335 (prune_unused_types): Don't mark nodes from dcall_table.
11336 (dwarf2out_finish): Don't output dcall or vcall tables.
11337 * final.c (final_scan_insn): Don't call direct_call or
11338 virtual_call debug hooks.
11339 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11340 virtual_call_token, copy_call_info and virtual_call hooks.
11341 (debug_nothing_uid): Remove prototype.
11342 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11343 copy_call_info and virtual_call hooks.
11344 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11345 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11346 * debug.c (do_nothing_debug_hooks): Likewise.
11347 (debug_nothing_uid): Remove.
11348 * doc/invoke.texi (-fenable-icf-debug): Remove.
11349 * common.opt (-fenable-icf-debug): Likewise.
11351 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11352 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11353 call's MEM. Handle functions returning aggregate through a hidden
11354 first pointer. For virtual calls add clobbered pc to call arguments
11356 * dwarf2out.c (gen_subprogram_die): Emit
11357 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11361 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11362 * rtl.h (ENTRY_VALUE_EXP): Define.
11363 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11364 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11365 * print-rtl.c (print_rtx): Likewise.
11366 * gengtype.c (adjust_field_rtx_def): Likewise.
11367 * var-tracking.c (vt_add_function_parameter): Adjust
11368 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11369 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11370 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11371 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11372 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11374 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11375 Call var_location debug hook even on CALL_INSNs.
11376 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11377 * rtl.def (ENTRY_VALUE): New.
11378 * dwarf2out.c: Include cfglayout.h.
11379 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11380 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11381 (struct call_arg_loc_node): New type.
11382 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11383 tail_call_site_count): New variables.
11384 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11385 DW_TAG_GNU_call_site_parameter.
11386 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11387 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11388 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11389 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11390 and DW_AT_GNU_all_source_call_sites.
11391 (mem_loc_descriptor): Handle ENTRY_VALUE.
11392 (add_src_coords_attributes): Don't add enything if
11393 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11394 (dwarf2out_abstract_function): Save and clear call_arg_location,
11395 call_site_count and tail_call_site_count around dwarf2out_decl call.
11396 (gen_call_site_die): New function.
11397 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11398 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11399 (dwarf2out_function_decl): Clear call_arg_locations,
11400 call_arg_loc_last, set call_site_count and tail_call_site_count
11401 to -1 and free block_map.
11402 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11403 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11404 followed by any real instructions.
11405 (dwarf2out_begin_function): Set call_site_count and
11406 tail_call_site_count to 0.
11407 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11408 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11409 attempt to force a DIE for it and worst case remove the attribute.
11410 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11411 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11413 * var-tracking.c: Include tm_p.h.
11414 (vt_stack_adjustments): For calls call note_register_arguments.
11415 (argument_reg_set): New variable.
11416 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11417 ensure the VALUE is resolved.
11418 (call_arguments): New variable.
11419 (prepare_call_arguments): New function.
11420 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11421 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11422 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11423 always use the best expression.
11424 (vt_expand_loc): Add ignore_cur_loc argument.
11425 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11426 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11427 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11428 note for all calls.
11429 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11430 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11431 argument. Don't call cselib_preserve_only_values and
11432 cselib_reset_table.
11433 (note_register_arguments): New function.
11434 (vt_initialize): Compute argument_reg_set. Call
11435 vt_add_function_parameters before processing basic blocks instead of
11436 afterwards. For calls call prepare_call_arguments before calling
11437 cselib_process_insn.
11438 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11439 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11440 (var-tracking.o): Depend on $(TM_P_H).
11441 * cfglayout.h (insn_scope): New prototype.
11442 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11443 * cfglayout.c (insn_scope): No longer static.
11444 * insn-notes.def (CALL_ARG_LOCATION): New.
11445 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11446 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11447 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11448 nothing for DECL_EXTERNAL BLOCK_VARS.
11450 2011-03-16 Alan Modra <amodra@gmail.com>
11453 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11454 create invalid offset address for vsx splat insn.
11455 * config/rs6000/predicates.md (splat_input_operand): New.
11456 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11458 2011-03-15 Xinliang David Li <davidxl@google.com>
11461 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11462 (normalize_preds): New function.
11463 (is_use_properly_guarded): Normalize def predicates.
11465 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11468 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11469 in the output template.
11471 2011-03-15 Richard Guenther <rguenther@suse.de>
11473 PR middle-end/47650
11474 * tree-pretty-print.c (dump_function_declaration): Properly
11475 dump unprototyped and varargs function types.
11477 2011-03-15 Richard Guenther <rguenther@suse.de>
11479 PR tree-optimization/13954
11480 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11483 2011-03-15 Richard Guenther <rguenther@suse.de>
11485 PR tree-optimization/48037
11486 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11487 selects into BIT_FIELD_REFs.
11488 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11491 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11493 PR tree-optimization/48129
11494 * builtins.c (fold_builtin_snprintf): Convert to type of
11495 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11496 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11498 2011-03-15 Richard Guenther <rguenther@suse.de>
11500 PR tree-optimization/41490
11501 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11502 value but with VUSE.
11503 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11505 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11506 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11507 * tree-tailcall.c (find_tail_calls): Ignore returns.
11509 2011-03-15 Richard Guenther <rguenther@suse.de>
11511 PR middle-end/48031
11512 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11513 or variable-indexed array accesses when in gimple form.
11515 2011-03-15 Richard Guenther <rguenther@suse.de>
11517 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11519 2011-03-15 Alan Modra <amodra@gmail.com>
11522 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11523 presume symbol_refs without a symbol_ref_decl are suitably
11524 aligned, nor other trees we may see here. Handle anchor symbols.
11525 (legitimate_constant_pool_address_p): Comment. Add mode param.
11526 Check cmodel=medium addresses. Adjust all calls.
11527 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11528 creating cmodel=medium optimized access to locals.
11529 * config/rs6000/constraints.md (R): Pass QImode to
11530 legitimate_constant_pool_address_p.
11531 * config/rs6000/predicates.md (input_operand): Pass mode to
11532 legitimate_constant_pool_address_p.
11533 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11536 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11539 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11540 64-bit constants being loaded into registers other than GPRs such
11541 as loading 0 into a VSX register.
11543 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11545 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11547 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11549 PR middle-end/47917
11550 * builtins.c (fold_builtin_snprintf): New function.
11551 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11552 (fold_builtin_4): Likewise.
11554 PR middle-end/38878
11555 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11556 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11557 and C - X == X also strip nops from +/-/p+ operand.
11558 When optimizing -X == C, fold C to arg0's type.
11561 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11562 emit it as add_AT_int instead of add_AT_unsigned.
11564 2011-03-14 Tom Tromey <tromey@redhat.com>
11566 * unwind-dw2.c: Include sys/sdt.h if it exists.
11567 (_Unwind_DebugHook): Use STAP_PROBE2.
11568 * config.in, configure: Rebuild.
11569 * configure.ac: Check for sys/sdt.h.
11571 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11573 * config/i386/i386.md (ROUND_FLOOR): New constant.
11574 (ROUND_CEIL): Ditto.
11575 (ROUND_TRUNC): Ditto.
11576 (ROUND_MXCSR): Ditto.
11577 (ROUND_NO_EXC): Ditto.
11578 (rint<mode>2): Use new defines instead of numerical constants.
11579 (floor<mode>2): Ditto.
11580 (ceil<mode>2): Ditto.
11581 (btrunc<mode>2): Ditto.
11582 * config/i386/i386-builtin-types.def: Define ROUND function type
11584 * config/i386/i386.c (enum ix86_builtins): Add
11585 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11586 (struct builtin_description): Add
11587 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11588 (ix86_expand_sse_round): New static function.
11589 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11591 (ix86_builtin_vectorized_function): Handle
11592 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11594 2011-03-14 Tom Tromey <tromey@redhat.com>
11596 * c-parser.c (c_parser_asm_string_literal): Clear
11597 warn_overlength_strings.
11599 2011-03-14 Tom Tromey <tromey@redhat.com>
11601 * c-parser.c (disable_extension_diagnostics): Save
11602 warn_overlength_strings.
11603 (restore_extension_diagnostics): Restore warn_overlength_strings.
11605 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11607 * BASE-VER: Change to 4.7.0.
11609 2011-03-14 Richard Guenther <rguenther@suse.de>
11611 PR middle-end/48098
11612 * tree.c (build_vector_from_val): Adjust assert to requirements
11615 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11618 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11620 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11622 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11623 terms of target_flags_explicit. Adjust copyright year.
11625 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11626 * config/rs6000/t-freebsd: New file. Add override for
11629 2011-03-13 Chris Demetriou <cgd@google.com>
11631 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11632 (-fno-diagnostics-show-option): this, to reflect current default.
11633 (-Werror=): Update text about -fno-diagnostics-show-option.
11635 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11638 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11639 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11640 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11641 mode is not V2DImode or V2DFmode.
11642 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11643 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11644 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11646 (movdi_internal64): Likewise.
11648 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11650 PR tree-optimization/47127
11651 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11653 (set_cloog_options): Same.
11654 (scop_to_clast): Same.
11655 (print_clast_stmt): Do not call cloog_state_malloc and
11657 (print_generated_program): Same.
11659 * graphite-clast-to-gimple.h (cloog_state): Declared.
11660 (scop_to_clast): Adjust declaration.
11661 * graphite.c (cloog_state): Defined here.
11662 (graphite_initialize): Call cloog_state_malloc.
11663 (graphite_finalize): Call cloog_state_free.
11665 2011-03-11 Jason Merrill <jason@redhat.com>
11667 * attribs.c (lookup_attribute_spec): Take const_tree.
11670 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11672 * config/sparc/sparc.c (sparc_option_override): Use
11673 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11675 2011-03-11 Richard Guenther <rguenther@suse.de>
11677 PR tree-optimization/48067
11678 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11679 multiplication result will be only used once on the target
11682 2011-03-11 Richard Guenther <rguenther@suse.de>
11684 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11686 2011-03-11 Richard Guenther <rguenther@suse.de>
11689 * tree.c (find_decls_types_r): Do not walk types only reachable
11690 from IDENTIFIER_NODEs.
11692 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11694 PR middle-end/48044
11695 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11696 all vnode->force_output nodes as needed.
11698 2011-03-11 Jason Merrill <jason@redhat.com>
11701 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11702 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11704 2011-03-11 Martin Jambor <mjambor@suse.cz>
11706 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11709 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11711 PR tree-optimization/48063
11712 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11713 inline functions called once if !tree_can_inline_p (node->callers).
11715 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11717 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11719 * config/score/score3.c: Delete.
11720 * config/score/score3.h: Delete.
11721 * config/score/mul-div.S: Delete.
11722 * config/score/sfp-machine.h: Add new file.
11723 * config/score/constraints.md: Add new file.
11724 * config/score/t-score-softfp: Add new file.
11725 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11726 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11727 (score7_extra_constraint): Delete.
11728 (score7_option_override): Remove unused code.
11729 * config/score/score.c: Remove score3 and score5 define and code.
11730 * config/score/score.h: Remove score3 and score5 define and code.
11731 * config/score/score.md: Remove score3 template and unusual insn.
11732 * config/score/score.opt: Remove score3 and score5 options.
11734 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11736 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11737 when _HPUX_SOURCE is defined.
11738 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11740 2011-03-10 Jason Merrill <jason@redhat.com>
11743 * stor-layout.c (layout_type): Don't set structural equality
11744 on arrays of incomplete type.
11745 * tree.c (type_hash_eq): Handle comparing them properly.
11747 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11750 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11751 result mode matches original rtl mode.
11753 2011-03-10 Nick Clifton <nickc@redhat.com>
11755 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11756 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11758 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11760 PR rtl-optimization/47866
11761 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11762 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11763 if target wasn't scalar.
11764 * function.c (assign_stack_temp_for_type): Assert that neither
11765 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11766 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11768 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11770 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11772 * config/s390/s390-protos.h (s390_label_align): New prototype.
11773 * config/s390/s390.c (s390_label_align): New function.
11774 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11776 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11779 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11780 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11781 (output_vec_const_move): Ditto.
11783 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11785 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11786 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11787 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11788 Change 'rclass' argument and result type to reg_class_t.
11789 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11791 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11793 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11794 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11795 (TARGET_MEMORY_MOVE_COST): Define.
11796 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11798 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11801 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11804 PR tree-optimization/48022
11805 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11808 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11811 * var-tracking.c (find_use_val): Return NULL for
11812 cui->sets && cui->store_p BLKmode MEMs.
11814 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11816 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11818 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11819 xstormy16_print_operand_address): Remove.
11820 * config/stormy16/stormy16.c (xstormy16_print_operand,
11821 xstormy16_print_operand_address): Make static.
11822 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11824 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11827 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11828 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11831 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11834 * cfgloopmanip.c (fix_bb_placements): Return immediately
11835 if FROM is BASE_LOOP's header.
11837 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11839 * gimplify.c (gimplify_function_tree): Fix building calls
11840 to __builtin_return_address.
11842 2011-03-07 Alan Modra <amodra@gmail.com>
11844 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11845 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11846 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11847 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11849 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11850 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11851 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11852 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11853 * config/rs6000/rs6000.c
11854 (rs6000_elf_end_indicate_exec_stack): Rename to..
11855 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11856 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11857 (rs6000_file_start): ..here.
11858 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11859 file scope variables.
11860 (call_ABI_of_interest): New function.
11861 (init_cumulative_args): Set above vars when function return value
11862 is a float, vector, or small struct.
11863 (rs6000_function_arg_advance_1): Likewise for function args.
11864 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11865 references float args.
11867 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11869 * doc/cfg.texi: Remove "See" before @ref.
11870 * doc/invoke.texi: Likewise.
11872 2011-03-05 Jason Merrill <jason@redhat.com>
11874 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11876 2011-03-05 Anthony Green <green@moxielogic.com>
11878 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11880 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11882 PR rtl-optimization/47899
11883 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11884 to flow_loop_nested_p when moving the loop upward.
11886 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11889 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11891 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11893 PR tree-optimization/47967
11894 * ipa-cp.c (build_const_val): Return NULL instead of creating
11895 VIEW_CONVERT_EXPR for mismatching sizes.
11896 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11897 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11898 give up on versioning.
11900 2011-03-05 Alan Modra <amodra@gmail.com>
11903 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11904 full cmodel medium/large lo_sum + high addresses.
11906 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11908 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11909 pool references in UNSPEC_LTREL_OFFSET.
11911 2011-03-04 Jan Hubicka <jh@suse.cz>
11914 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11915 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11916 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11918 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11919 cgraph_add_thunk): Add node pointers.
11920 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11921 associated to right node.
11922 (input_node): Update use of cgraph_same_body_alias
11923 and cgraph_add_thunk.
11925 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11927 * config/i386/i386.opt (mprefer-avx128): New flag.
11928 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11929 modes when the flag -mprefer-avx128 is on.
11931 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11933 * dwarf2out.c (compare_loc_operands): Fix address handling.
11935 2011-03-04 Alan Modra <amodra@gmail.com>
11937 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11939 2011-03-04 Richard Guenther <rguenther@suse.de>
11941 PR middle-end/47968
11942 * expmed.c (extract_bit_field_1): Prefer vector modes that
11943 vec_extract patterns can handle.
11945 2011-03-04 Richard Guenther <rguenther@suse.de>
11947 PR middle-end/47975
11948 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11950 2011-03-04 Richard Henderson <rth@redhat.com>
11952 * explow.c (emit_stack_save): Remove 'after' parameter.
11953 (emit_stack_restore): Likewise.
11954 * expr.h: Update to match.
11955 * builtins.c, calls.c, stmt.c: Likewise.
11956 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11957 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11958 * function.c (expand_function_end): Insert the emit_stack_save
11959 sequence before parm_birth_insn instead of after.
11961 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11963 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11964 (ssse3_pmaddubsw128): Ditto.
11965 (ssse3_pmaddubsw): Ditto.
11967 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11969 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11971 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11974 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11975 on TYPE_SIZE_UNIT if it is a DECL.
11978 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11979 first operand is not is_gimple_mem_ref_addr, try to fold it.
11980 If the operand still isn't is_gimple_mem_ref_addr, clear
11983 2011-03-03 Richard Guenther <rguenther@suse.de>
11985 PR middle-end/47283
11986 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11988 (refs_may_alias_p_1): For release branches return true if
11989 we are confused by our input.
11991 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11993 * config/s390/s390.c (s390_function_value): Rename to ...
11994 (s390_function_and_libcall_value): ... this.
11995 (s390_function_value): New function.
11996 (s390_libcall_value): New function.
11997 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11998 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11999 target macro definitions.
12000 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12002 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12004 * config/i386/freebsd64.h (CC1_SPEC): Define.
12005 * config/i386/linux64.h (CC1_SPEC): Define.
12006 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12008 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12010 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12012 * config/stormy16/stormy16.c: Include reload.h.
12013 (xstormy16_memory_move_cost): New function.
12014 (TARGET_MEMORY_MOVE_COST): Define.
12016 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12018 PR rtl-optimization/47925
12019 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12020 with side effects. Remove the more-specific check for volatile asms.
12022 2011-03-02 Alan Modra <amodra@gmail.com>
12025 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12026 toc relative addresses for valid offsets.
12028 2011-03-01 Richard Guenther <rguenther@suse.de>
12030 PR tree-optimization/47890
12031 * tree-vect-loop.c (get_initial_def_for_induction): Set
12032 related stmt properly.
12034 2011-03-01 Richard Guenther <rguenther@suse.de>
12037 * lto-streamer.c (lto_record_common_node): Also register
12038 the canonical type.
12040 2011-03-01 Richard Guenther <rguenther@suse.de>
12043 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12044 Do not stream DECL_ABSTRACT_ORIGIN.
12045 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12046 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12047 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12048 Do not stream DECL_ABSTRACT_ORIGIN.
12049 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12050 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12052 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12054 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12055 FUNCTION_VALUE_REGNO_P): Remove.
12056 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12057 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12058 Add 'outgoing' argument.
12059 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12061 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12062 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12064 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12067 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12068 (lookup_filename): Likewise.
12069 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12071 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12072 Jakub Jelinek <jakub@redhat.com>
12074 PR middle-end/47893
12075 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12076 (assign_stack_local_1): Change last argument type to int.
12077 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12078 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12079 don't record padding space into frame_space_list nor use those areas.
12080 (assign_stack_local): Adjust caller.
12081 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12082 of assign_stack_local, pass 0 as last argument.
12083 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12086 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12089 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12090 Use target address_mode and pointer_mode hooks instead of hardcoded
12091 Pmode and ptr_mode. Handle some simple cases of extending if
12092 POINTERS_EXTEND_UNSIGNED < 0.
12093 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12094 Call convert_debug_memory_address.
12095 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12096 convert_debug_memory_address.
12098 PR middle-end/46790
12099 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12100 * configure: Regenerated.
12101 * config.in: Regenerated.
12102 * varasm.c (default_function_section): Return NULL
12103 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12105 2011-02-28 Martin Jambor <mjambor@suse.cz>
12107 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12108 the description to match the printed values.
12110 2011-02-28 Richard Guenther <rguenther@suse.de>
12112 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12113 of the copied scope tree.
12115 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12117 * doc/extend.texi (Function Attributes): Avoid deeply (and
12118 wrongly) nested tables.
12120 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12122 PR middle-end/47903
12123 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12124 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12125 r isn't op0 nor op1.
12127 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12129 * config/avr/avr.md: Remove magic comment for emacs.
12131 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12134 * config/avr/avr.c (avr_option_override): Use error on bad options.
12135 (avr_help): New function.
12136 (TARGET_HELP): Define.
12138 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12141 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12142 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12144 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12146 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12147 (ARM Options): Ditto.
12148 (i386 and x86-64 Options): Ditto.
12149 (RX Options): Ditto.
12150 (SPARC Options): Ditto.
12152 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12154 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12155 FreeBSD 6 and later. Generally use cpu generic.
12157 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12159 * doc/cpp.texi: Update copyright years.
12161 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12164 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12166 2011-02-25 Jon Beniston <jon@beniston.com>
12169 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12170 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12171 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12172 (lm32_block_move_inline): Add type cast to remove warning.
12173 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12174 (gen_int_relational): Move declarations to start of function.
12176 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12178 PR tree-optimization/45470
12179 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12180 can throw internally only.
12181 * tree-vect-stmts.c (vectorizable_call): Likewise.
12183 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12185 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12186 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12187 * config/stormy16/stormy16-protos.h
12188 (xstormy16_preferred_reload_class): Remove.
12189 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12190 static. Change 'rclass' argument and return type to reg_class_t.
12191 (TARGET_PREFERRED_RELOAD_CLASS,
12192 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12194 2011-02-24 Richard Guenther <rguenther@suse.de>
12196 * lto-streamer-in.c (input_bb): Do not find referenced vars
12197 in debug statements.
12199 2011-02-23 Jason Merrill <jason@redhat.com>
12201 * common.opt (fabi-version): Document v5 and v6.
12203 2011-02-23 Richard Guenther <rguenther@suse.de>
12205 PR tree-optimization/47849
12206 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12208 2011-02-23 Jie Zhang <jie@codesourcery.com>
12210 * opts-common.c (decode_cmdline_option): Print empty string
12211 argument as "" in decoded->orig_option_with_args_text.
12212 * gcc.c (execute): Print empty string argument as ""
12213 in the verbose output.
12214 (do_spec_1): Keep empty string argument.
12216 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12218 * config.gcc: Declare score-* and crx-* obsolete.
12220 2011-02-23 Jie Zhang <jie@codesourcery.com>
12222 PR rtl-optimization/47763
12223 * web.c (web_main): Ignore naked clobber when replacing register.
12225 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12227 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12230 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12233 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12235 2011-02-22 Mike Stump <mikestump@comcast.net>
12237 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12239 * configure: Regenerate.
12241 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12243 PR rtl-optimization/46002
12244 * ira-color.c (update_copy_costs): Change class intersection
12245 test to reg_class_contents[] test of 'hard_regno'.
12247 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12249 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12250 than Driver option.
12251 * config/hpux11.opt (mt): Likewise.
12252 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12253 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12254 * config/vax/elf.opt (mno-asm-pic): Likewise.
12255 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12257 2011-02-21 Mike Stump <mikestump@comcast.net>
12260 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12261 tree so we can get save the type.
12262 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12263 for CFString instead of trying to use past the end of the builtins.
12264 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12265 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12266 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12267 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12268 Rename to darwin_builtin_cfstring.
12269 (darwin_init_cfstring_builtins): Return the built type.
12271 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12274 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12275 (_mm256_insert_epi64): Use _mm_insert_epi64.
12277 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12279 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12280 * config/stormy16/stormy16-protos.h
12281 (xstormy16_mode_dependent_address_p): Remove.
12282 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12283 Make static. Change return type to bool. Change argument type to
12284 const_rtx. Remove dead code.
12285 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12287 2011-02-21 Richard Guenther <rguenther@suse.de>
12290 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12291 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12292 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12294 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12295 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12297 2011-02-20 Richard Guenther <rguenther@suse.de>
12300 * tree.c (free_lang_data_in_decl): Clean builtins from
12301 the TU decl BLOCK_VARS.
12303 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12307 * haifa-sched.c (fix_tick_ready): Skip tick computation
12310 2011-02-19 Richard Guenther <rguenther@suse.de>
12313 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12314 Remove lazy BLOCK_VARS streaming.
12315 (lto_input_ts_block_tree_pointers): Likewise.
12316 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12318 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12320 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12322 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12324 * config/i386/biarch32.h, config/i386/mach.h,
12325 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12327 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12330 * config/i386/i386.md (peephole2 for shift and plus): Use
12331 operands[1] original mode in the first insn.
12333 2011-02-18 Mike Stump <mikestump@comcast.net>
12335 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12337 2011-02-18 Jan Hubicka <jh@suse.cz>
12339 PR middle-end/47788
12340 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12341 to zero when the function is not inlinable at all.
12343 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12345 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12346 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12347 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12348 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12349 * config/pa/t-pa64: Likewise.
12350 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12352 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12355 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12357 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12360 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12362 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12364 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12365 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12366 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12367 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12368 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12369 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12370 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12371 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12372 m32r_legitimate_address_p): New functions.
12373 * config/m32r/constraints.md (constraint "S"): Don't use
12374 STORE_PREINC_PREDEC_P.
12375 (constraint "U"): Don't use LOAD_POSTINC_P.
12377 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12379 PR rtl-optimization/46178
12380 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12381 compute ira_hard_regno_cover_class[].
12383 2011-02-18 Richard Guenther <rguenther@suse.de>
12386 * lto-streamer.h (lto_global_var_decls): Declare.
12387 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12388 statics for global var processing.
12390 2011-02-18 Richard Guenther <rguenther@suse.de>
12392 PR tree-optimization/47737
12393 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12394 edge dominance check.
12396 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12399 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12400 avoid invalid rtx sharing.
12402 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12404 * doc/cpp.texi (Obsolete Features): Add background on the
12405 origin of assertions.
12407 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12409 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12411 * config/darwin.c (output_objc_section_asm_op): Added support for
12413 (is_objc_metadata): New.
12414 (darwin_objc2_section): New.
12415 (darwin_objc1_section): New.
12416 (machopic_select_section): Added support for ABI v1 and v2.
12417 (darwin_emit_objc_zeroed): New.
12418 (darwin_output_aligned_bss): Detect objc metadata and treat it
12420 (darwin_asm_output_aligned_decl_common): Same.
12421 (darwin_asm_output_aligned_decl_local): Same.
12422 * config/darwin-sections.def: Updated for ABI v1 and v2.
12423 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12424 compiling Objective-C code for the NeXT runtime, default to using
12425 ABI version 0 for 32-bit, and version 2 for 64-bit.
12427 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12429 * common.opt (optimize_fast): New Variable.
12430 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12431 instead of local variable ofast.
12433 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12435 * doc/invoke.texi (fobjc-abi-version): Documented.
12436 (fobjc-nilcheck): Documented.
12437 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12440 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12443 * common.opt (export-dynamic): New Driver option.
12444 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12446 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12448 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12450 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12451 Jan Hubicka <jh@suse.cz>
12455 * cfgexpand.c (account_used_vars_for_block): Remove.
12456 (estimated_stack_frame_size): Use referenced vars.
12457 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12458 that were referenced in the original function. Test src_fn
12459 rather than cfun. Drop redundant get_var_ann.
12460 (setup_one_parameter): Drop redundant get_var_ann.
12461 (declare_return_variable): Likewise.
12462 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12463 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12464 * ipa-inline.c (compute_inline_parameters): Do not compute
12465 disregard_inline_limits here.
12466 (compute_inlinable_for_current, pass_inlinable): New.
12467 (pass_inline_parameters): Require PROP_referenced_vars.
12468 * cgraphunit.c (cgraph_process_new_functions): Don't run
12469 compute_inline_parameters explicitly unless function is in SSA form.
12470 (cgraph_analyze_function): Set .disregard_inline_limits.
12471 * tree-sra.c (convert_callers): Compute inliner parameters
12472 only for functions already in SSA form.
12474 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12476 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12477 -mlittle-endian-data.
12479 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12481 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12482 -mno-fpu, not -fpu and -no-fpu.
12483 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12484 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12486 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12489 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12490 input reload with PLUS RTX.
12492 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12494 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12495 of InverseVar(MDMX).
12497 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12499 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12502 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12504 * config/mn10300/mn10300.opt (mno-crt0): New.
12506 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12508 * config/m68k/uclinux.opt (static-libc): New Driver option.
12510 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12512 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12514 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12516 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12517 %{muser-extend-enabled}.
12519 2011-02-16 Richard Guenther <rguenther@suse.de>
12521 PR tree-optimization/47738
12522 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12523 the TODO from tree_predictive_commoning.
12525 2011-02-15 Jeff Law <law@redhat.com>
12528 2011-01-25 Jeff Law <law@redhat.com>
12530 PR rtl-optimization/37273
12531 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12532 handle them like argument loads from stack slots. Do not double
12533 count memory for memory constants and argument loads from stack slots.
12535 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12537 PR middle-end/47725
12538 * combine.c (cant_combine_insn_p): Revert the last change.
12540 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12543 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12544 mode for vector constants. Remove code that checks for TImode.
12546 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12550 * cgraph.h (compute_inline_parameters): Return void.
12551 * ipa-inline.c (compute_inline_parameters): Adjust.
12553 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12557 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12559 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12560 * ipa-inline.c (compute_inline_parameters): Adjust.
12562 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12566 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12567 Adjust all users. Pass FN to...
12568 * tree-flow-inline.h (first_referenced_var): ... this. Add
12570 * ipa-struct-reorg.c: Adjust.
12571 * tree-dfa.c: Adjust.
12572 * tree-into-ssa.c: Adjust.
12573 * tree-sra.c: Adjust.
12574 * tree-ssa-alias.c: Adjust.
12575 * tree-ssa-live.c: Adjust.
12576 * tree-ssa.c: Adjust.
12577 * tree-ssanames.c: Adjust.
12578 * tree-tailcall.c: Adjust.
12580 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12584 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12585 Adjust all callers.
12586 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12587 * tree-flow-inline.h: Adjust.
12588 * gimple-pretty-print.c: Adjust.
12589 * tree-into-ssa.c: Adjust.
12590 * tree-ssa.c: Adjust.
12591 * cfgexpand.c: Adjust.
12593 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12595 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12596 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12597 (EXTRA_CONSTRAINT): Delete.
12598 * config/iq2000/constraints.md: New file.
12599 * config/iq2000/iq2000.md: Include it.
12600 (define_insn ""): Delete.
12601 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12602 unsupported constraint letters from patterns.
12603 (call_value, call_value_internal1): Likewise.
12604 (call_value_multiple_internal1): Likewise.
12606 2011-02-15 Nick Clifton <nickc@redhat.com>
12608 * config/mn10300/mn10300.c: Include tm-constrs.h.
12609 (struct liw_data): New data structure describing an LIW candidate
12611 (extract_bundle): Use struct liw_data. Allow small integer
12612 operands for some instructions.
12613 (check_liw_constraints): Use struct liw_data. Remove swapped
12614 parameter. Add comments describing the checks. Fix bug when
12615 assigning the source of liw1 to the source of liw2.
12616 (liw_candidate): Delete. Code moved into extract_bundle.
12617 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12619 * config/mn10300/predicates.md (liw_operand): New predicate.
12620 Allows registers and small integer constants.
12621 * config/mn10300/constraints.md (O): New constraint. Accetps
12622 integers in the range -8 to +7 inclusive.
12623 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12624 for moving a small integer into a register. Give this alternative
12626 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12627 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12628 using the J,K,L and M constraints,
12629 (liw): Remove SI mode on second operands to allow for HI and QI
12631 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12634 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12636 PR middle-end/47725
12637 * combine.c (cant_combine_insn_p): Check zero/sign extended
12640 2011-02-15 Richard Guenther <rguenther@suse.de>
12642 PR tree-optimization/47743
12643 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12644 for a non-type-compatible VN lookup bail out.
12646 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12648 * config/fr30/constraints.md: New file.
12649 * config/fr30/fr30.md: Include it.
12650 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12651 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12652 (EXTRA_CONSTRAINT): Delete.
12654 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12656 * config/frv/constraints.md: New file.
12657 * config/frv/predicates.md: Include it.
12658 * config/frv/frv.c (reg_class_from_letter): Delete.
12659 (frv_option_override): Don't initialize it.
12660 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12661 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12662 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12663 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12664 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12665 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12666 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12667 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12668 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12669 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12670 (REG_CLASS_FROM_CONSTRAINT): Delete.
12672 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12674 PR middle-end/47581
12675 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12676 if frame size is 0 in a leaf function.
12678 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12681 * config/alpha/host-osf.c: New file.
12682 * config/alpha/x-osf: New file.
12683 * config.host (alpha*-dec-osf*): Use it.
12685 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12687 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12688 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12689 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12690 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12692 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12694 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12696 * config/stormy16/constraints.md: New file.
12697 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12698 Use satisfies_constraint_Q and satisfies_constraint_R.
12699 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12701 (xstormy16_legitiamte_address_p): Declare.
12702 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12703 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12704 (EXTRA_CONSTRAINT): Delete.
12705 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12707 (xstormy16_extra_constraint_p): Delete.
12709 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12711 PR tree-optimization/46494
12712 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12713 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12714 (pass_rtl_loop_done): Add TODO_verify_flow.
12715 * fwprop.c (pass_rtl_fwprop): Likewise.
12716 * modulo-sched.c (pass_sms): Likewise.
12717 * tree-ssa-dom.c (pass_dominator): Likewise.
12718 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12719 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12720 (pass_tree_loop_done): Likewise.
12721 * tree-ssa-pre.c (execute_pre): Likewise.
12722 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12723 * tree-ssa-sink.c (pass_sink_code): Likewise.
12724 * tree-vrp.c (pass_vrp): Likewise.
12726 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12728 * config/v850/constraints.md: New file.
12729 * config/v850/v850.md: Include it.
12730 * config/v850/predicates.md (reg_or_0_operand): Use
12731 satisfies_constraint_G.
12732 (special_symbolref_operand): Use satisfies_constraint_K.
12733 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12734 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12735 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12736 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12737 (EXTRA_CONSTRAINT): Delete.
12738 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12739 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12740 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12742 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12745 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12748 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12750 * config/mcore/constraints.md: New file.
12751 * config/mcore/mcore.md: Include it.
12752 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12753 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12754 (REG_CLASS_FROM_LETTER): Delete.
12755 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12756 insn_const_int_ok_for_constraint.
12757 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12758 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12759 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12760 (EXTRA_CONSTRAINT): Delete.
12762 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12765 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12766 (IS_SIGHANDLER): Define.
12767 (sparc64_is_sighandler): New function, split off from
12768 sparc64_fallback_frame_state.
12769 (sparc_is_sighandler): New function, split off from
12770 sparc_fallback_frame_state.
12771 (sparc64_fallback_frame_state): Merge with ...
12772 (sparc_fallback_frame_state): ... this into ...
12773 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12774 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12775 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12776 stack instead of hardcoded offsets.
12778 2011-02-14 Andriy Gapon <avg@freebsd.org>
12781 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12783 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12785 * configure: Regenerate.
12787 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12790 * gcc.c (asm_options): Correct spec matching --target-help.
12792 2011-02-12 Martin Jambor <mjambor@suse.cz>
12794 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12795 to gimple call error.
12797 2011-02-12 Mike Stump <mikestump@comcast.net>
12799 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12800 comments in backslash regions.
12802 2011-02-12 Mike Stump <mikestump@comcast.net>
12803 Jakub Jelinek <jakub@redhat.com>
12804 Iain Sandoe <iains@gcc.gnu.org>
12807 * dwarf2out.c (output_cfa_loc): When required, apply the
12808 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12809 (output_loc_sequence): Likewise.
12810 (output_loc_operands_raw): Likewise.
12811 (output_loc_sequence_raw): Likewise.
12812 (output_cfa_loc): Likewise.
12813 (output_loc_list): Suppress register number adjustment when
12814 calling output_loc_sequence()
12815 (output_die): Likewise.
12817 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12819 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12821 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12822 xtensa_memory_move_cost): New functions.
12823 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12825 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12828 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12829 in the current directory.
12830 * configure: Rebuilt.
12832 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12834 * config/darwin.c (darwin_override_options): Add a hunk missed
12835 from the commit of r168571. Trim comment line lengths and
12836 correct indents of the preceding block.
12838 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12840 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12843 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12845 * common.opt (nostartfiles): New Driver option.
12847 2011-02-11 Xinliang David Li <davidxl@google.com>
12849 PR tree-optimization/47707
12850 * tree-chrec.c (convert_affine_scev): Keep type precision.
12852 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12854 PR tree-optimization/47420
12855 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12857 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12859 PR rtl-optimization/47614
12860 * rtl.h (check_for_inc_dec): Declare.
12861 * dse.c (check_for_inc_dec): Externalize...
12862 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12863 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12865 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12868 * gcc.c (main): Do not compile inputs if there were errors in
12870 * opts-common.c (read_cmdline_option): Check for wrong language
12871 after other error checks.
12873 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12875 * cgraph.c: Fix comment typos.
12876 * cgraph.h: Likewise.
12877 * cgraphunit.c: Likewise.
12878 * ipa-cp.c: Likewise.
12879 * ipa-inline.c: Likewise.
12880 * ipa-prop.c: Likewise.
12881 * ipa-pure-const.c: Likewise.
12882 * ipa-ref.c: Likewise.
12883 * ipa-reference.c: Likewise.
12885 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12888 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12890 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12893 * doc/sourcebuild.texi (Require Support): Document
12894 dg-require-ascii-locale.
12896 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12898 * doc/lto.texi (Write summary): Fix missing parentheses.
12900 2011-02-10 DJ Delorie <dj@redhat.com>
12902 * config/m32c/m32c.c (m32c_option_override): Disable
12903 -fcombine-stack-adjustments until flag value tracking and compare
12904 optimization can be rewritten.
12906 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12908 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12910 (PROCESSOR_DEFAULT64): Likewise.
12912 2011-02-10 Richard Henderson <rth@redhat.com>
12914 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12915 change from 2011-02-03.
12916 * config/rx/rx.c (flags_from_code): Likewise.
12917 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12918 is valid, n/pz otherwise.
12919 (rx_select_cc_mode): Return CCmode if Y is not zero.
12921 2011-02-10 Richard Guenther <rguenther@suse.de>
12923 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12925 2011-02-10 Richard Guenther <rguenther@suse.de>
12927 PR tree-optimization/47677
12928 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12930 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12933 * combine.c (make_compound_operation): Only change shifts into
12934 multiplication for SCALAR_INT_MODE_P.
12936 2011-02-10 Jie Zhang <jie@codesourcery.com>
12940 2011-02-05 Jie Zhang <jie@codesourcery.com>
12942 * web.c (entry_register): Don't clobber the number of the
12943 first uninitialized reference in used[].
12945 2011-02-09 Richard Guenther <rguenther@suse.de>
12947 PR tree-optimization/47664
12948 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12951 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12955 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12957 (PROCESSOR_DEFAULT64): Same.
12958 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12960 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12962 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12964 2011-02-09 Martin Jambor <mjambor@suse.cz>
12966 PR middle-end/45505
12967 * tree-sra.c (struct access): New flags grp_scalar_read and
12968 grp_scalar_write. Changed description of assignment read and write
12970 (dump_access): Dump new flags, reorder all of them.
12971 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12972 to detect multiple scalar reads.
12973 (analyze_access_subtree): Use the new scalar read write flags instead
12974 of the old flags. Adjusted comments.
12976 2011-02-08 DJ Delorie <dj@redhat.com>
12979 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12982 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12984 * config/m68k/uclinux.opt: New.
12985 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12987 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12989 * config/cris/elf.opt (sim): New Driver option.
12991 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12993 * config/xtensa/elf.opt: New.
12994 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12996 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12998 * config/vax/elf.opt: New.
12999 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13001 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13003 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13005 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13007 * config/gnu-user.opt: New.
13008 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13009 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13010 *-*-uclinux*): Use gnu-user.opt.
13012 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13014 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13015 * config/i386/gnu.h (CPP_SPEC): Likewise.
13017 2011-02-08 Ian Lance Taylor <iant@google.com>
13019 * common.opt (fcx-limited-range): Add SetByCombined flag.
13020 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13021 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13022 (fassociative-math, freciprocal-math): Likewise.
13023 (funsafe-math-optimizations): Likewise.
13024 * opth-gen.awk: Handle SetByCombined.
13025 * optc-gen.awk: Likewise.
13026 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13027 (set_unsafe_math_optimizations_flags): Likewise.
13028 * doc/options.texi (Option properties): Document SetByCombined.
13030 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13032 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13033 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13034 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13035 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13036 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13038 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13040 PR tree-optimization/46834
13041 PR tree-optimization/46994
13042 PR tree-optimization/46995
13043 * graphite-sese-to-poly.c (used_outside_reduction): New.
13044 (detect_commutative_reduction): Call used_outside_reduction.
13045 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13046 translate_scalar_reduction_to_array only when at least one
13047 loop-phi/close-phi tuple has been detected.
13049 2011-02-08 Richard Guenther <rguenther@suse.de>
13051 PR middle-end/47639
13052 * tree-vect-generic.c (expand_vector_operations_1): Update
13054 (expand_vector_operations): ... not here. Cleanup EH info
13055 and the CFG if required.
13057 2011-02-08 Richard Guenther <rguenther@suse.de>
13059 PR tree-optimization/47641
13060 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13061 require type compatibility.
13063 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13065 * gimple-low.c (lower_function_body): Don't remove the location of
13066 the return statement here.
13067 (lower_gimple_return): Do it here instead but only if the return
13068 statement is actually used twice.
13070 2011-02-08 Richard Guenther <rguenther@suse.de>
13072 PR tree-optimization/47632
13073 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13074 unused up_to_stmt parameter, return whether cfg-cleanup is
13075 necessary, remove EH info properly.
13076 (forward_propagate_into_gimple_cond): Adjust caller.
13077 (forward_propagate_into_cond): Likewise.
13078 (forward_propagate_comparison): Likewise.
13079 (tree_ssa_forward_propagate_single_use_vars): Make
13080 forward_propagate_comparison case similar to the two others.
13082 2011-02-08 Nick Clifton <nickc@redhat.com>
13084 * config/mn10300/mn10300.opt (mliw): New command line option.
13085 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13086 (liw_bundling): New automaton.
13087 (liw): New attribute.
13088 (liw_op): New attribute.
13089 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13090 (movsi_internal): Add LIW attributes.
13091 (andsi3): Likewise.
13092 (iorsi3): Likewise.
13093 (xorsi3): Likewise.
13094 (addsi3): Separate register and immediate alternatives.
13095 Add LIW attributes.
13096 (subsi3): Likewise.
13098 (aslsi3): Likewise.
13099 (lshrsi3): Likewise.
13100 (ashrsi3): Likewise.
13101 (liw): New pattern.
13102 * config/mn10300/mn10300.c (liw_op_names): New
13103 (mn10300_print_operand): Handle 'W' operand descriptor.
13104 (extract_bundle): New function.
13105 (check_liw_constraints): New function.
13106 (liw_candidate): New function.
13107 (mn10300_bundle_liw): New function.
13108 (mn10300_reorg): New function.
13109 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13110 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13111 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13112 __LIW__ or __NO_LIW__.
13113 * doc/invoke.texi: Describe the -mliw command line option.
13115 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13117 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13118 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13119 pthread_mutex_unlock): Remove.
13120 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13121 * config/pa/t-pa64: Likewise.
13122 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13123 shared libc if not linking against libpthread.
13124 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13126 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13129 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13130 on 10.6 and later to ensure that we always use the unwinder from
13131 the system. Only add -no_compact_unwind when tarteting darwin
13134 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13137 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13138 (vec_interleave_lowv2sf): Ditto.
13139 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13140 (vec_extract_oddv2sf): Ditto.
13142 2011-02-07 Mike Stump <mikestump@comcast.net>
13145 Add __ieee_divdc3 entry point.
13146 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13148 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13149 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13150 * config/darwin.c (darwin_rename_builtins): Add.
13151 * config/darwin-protos.h (darwin_rename_builtins): Add.
13153 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13156 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13159 2011-02-07 Mike Stump <mikestump@comcast.net>
13161 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13163 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13166 * config/avr/libgcc.S (exit): Move .endfunc
13168 2011-02-07 Richard Guenther <rguenther@suse.de>
13170 PR tree-optimization/47615
13171 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13172 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13173 (run_scc_vn): Initialize it.
13174 (visit_reference_op_load): Use it.
13175 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13177 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13179 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13180 DImode trapping arithmetic libfuncs.
13182 2011-02-07 Richard Guenther <rguenther@suse.de>
13184 PR tree-optimization/47621
13185 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13187 (execute_update_addresses_taken): ... here. Make it more
13188 conservative in what we accept.
13190 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13192 * config/sparc/freebsd.h (ASM_SPEC): Define.
13193 * config/sparc/vxworks.h (ASM_SPEC): Define.
13195 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13197 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13199 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13201 * doc/invoke.texi: Remove reference to compiler internals from
13202 user documentation.
13204 * reg-notes.def: Remove REG_VALUE_PROFILE.
13205 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13207 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13209 PR middle-end/47610
13210 * varasm.c (default_section_type_flags): If decl is NULL,
13211 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13213 2011-02-05 Jie Zhang <jie@codesourcery.com>
13216 * web.c (entry_register): Don't clobber the number of the
13217 first uninitialized reference in used[].
13219 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13221 PR tree-optimization/46194
13222 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13223 (build_classic_dist_vector_1): Do not represent classic distance
13224 vectors when the access functions are variating in different loops.
13226 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13228 * config/mips/iris6.opt: New.
13229 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13231 2011-02-04 Richard Henderson <rth@redhat.com>
13232 Steve Ellcey <sje@cup.hp.com>
13235 * config/ia64/predicates.md (mux1_brcst_element): New.
13236 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13237 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13238 (ia64_unpack_sign): New.
13239 (ia64_expand_unpack): Rewrite using new routines.
13240 (ia64_expand_widen_sum): Ditto.
13241 (ia64_expand_dot_prod_v8qi): Ditto.
13242 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13243 routines, add endian check.
13244 (pmpy2_even): Rename from pmpy2_r, add endian check.
13245 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13246 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13247 (vec_widen_smult_hi_v4hi): Ditto.
13248 (vec_widen_umult_lo_v4hi): Ditto.
13249 (vec_widen_umult_hi_v4hi): Ditto.
13250 (mulv2si3): Change endian checks.
13251 (sdot_prodv4hi): Rewrite with new calls.
13252 (udot_prodv4hi): New.
13253 (vec_pack_ssat_v4hi): Add endian check.
13254 (vec_pack_usat_v4hi): Ditto.
13255 (vec_pack_ssat_v2si): Ditto.
13256 (max1_even): Rename from max1_r, add endian check.
13257 (max1_odd): Rename from max1_l, add endian check.
13258 (*mux1_rev): Format change.
13259 (*mux1_mix): Ditto.
13260 (*mux1_shuf): Ditto.
13261 (*mux1_alt): Ditto.
13262 (*mux1_brcst_v8qi): Use new predicate.
13263 (vec_extract_evenv8qi): Remove endian check.
13264 (vec_extract_oddv8qi): Ditto.
13265 (vec_interleave_lowv4hi): Format change.
13266 (vec_interleave_highv4hi): Ditto.
13267 (mix2_even): Rename from mix2_r, add endian check.
13268 (mix2_odd): Rename from mux2_l, add endian check.
13269 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13270 (vec_extract_evenodd_helper): Format change.
13271 (vec_extract_evenv4hi): Remove endian check.
13272 (vec_extract_oddv4hi): Remove endian check.
13273 (vec_interleave_lowv2si): Format change.
13274 (vec_interleave_highv2si): Format change.
13275 (vec_initv2si): Remove endian check.
13276 (vecinit_v2si): Add endian check.
13277 (reduc_splus_v2sf): Add endian check.
13278 (reduc_smax_v2sf): Ditto.
13279 (reduc_smin_v2sf): Ditto.
13280 (vec_initv2sf): Remove endian check.
13281 (fpack): Add endian check.
13282 (fswap): Add endian check.
13283 (vec_interleave_highv2sf): Add endian check.
13284 (vec_interleave_lowv2sf): Add endian check.
13285 (fmix_lr): Add endian check.
13286 (vec_setv2sf): Format change.
13287 (*vec_extractv2sf_0_be): Use shift to extract operand.
13288 (*vec_extractv2sf_1_be): New.
13289 (vec_pack_trunc_v4hi): Add endian check.
13290 (vec_pack_trunc_v2si): Format change.
13292 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13294 PR inline-asm/23200
13295 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13296 do bb, locus and block comparison and disallow loads if it is not set.
13297 (stmt_is_replaceable_p): New function.
13298 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13300 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13301 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13303 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13305 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13307 * config/rs6000/xilinx.opt: New.
13308 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13310 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13312 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13314 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13316 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13317 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13318 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13319 secondary_reload_info, xtensa_secondary_reload): Remove.
13320 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13321 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13322 (xtensa_preferred_reload_class): Make static. Change return and
13323 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13324 Use CONST_DOUBLE_P predicate.
13325 (xtensa_preferred_output_reload_class): New function.
13326 (xtensa_secondary_reload): Make static.
13328 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13330 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13331 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13332 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13334 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13336 PR middle-end/31490
13337 * output.h (SECTION_RELRO): Define.
13338 (SECTION_MACH_DEP): Adjust.
13339 (get_variable_section): New prototype.
13340 * varpool.c (varpool_finalize_named_section_flags): New function.
13341 (varpool_assemble_pending_decls): Call it.
13342 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13343 * cgraphunit.c (cgraph_output_in_order): Call
13344 varpool_finalize_named_section_flags.
13345 * varasm.c (get_section): Allow section flags conflicts between
13346 relro and read-only sections if the section hasn't been declared yet.
13347 Set SECTION_OVERRIDE after diagnosing section type conflict.
13348 (get_variable_section): No longer static.
13349 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13350 readonly sections that need relocations.
13351 (decl_readonly_section_1): New function.
13352 (decl_readonly_section): Use it.
13355 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13356 Steve Ellcey <sje@cup.hp.com>
13358 PR middle-end/31490
13359 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13360 if section attribute used.
13362 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13364 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13365 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13366 (darwin_init_sections): Remove assertion.
13368 2011-02-03 Nick Clifton <nickc@redhat.com>
13370 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13372 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13373 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13374 instead of "n" and "pz".
13375 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13378 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13381 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13382 fma, expand FMA_EXPR as fma{,f,l} call.
13385 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13386 copy them into a unsigned char variable and pass address of it to
13387 lto_output_data_stream.
13390 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13391 around backend_init_target and lang_dependent_init_target calls.
13392 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13393 (verify_cgraph_node): Don't call set_cfun here. Use
13394 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13395 Set error_found for incorrectly represented calls to thunks.
13397 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13400 PR rtl-optimization/43494
13401 * rtl.h (for_each_inc_dec_fn): New type.
13402 (for_each_inc_dec): Declare.
13403 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13404 (for_each_inc_dec_find_inc_dec): New fn.
13405 (for_each_inc_dec_find_mem): New fn.
13406 (for_each_inc_dec): New fn.
13407 * dse.c (struct insn_size): Remove.
13408 (replace_inc_dec, replace_inc_dec_mem): Remove.
13409 (emit_inc_dec_insn_before): New fn.
13410 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13411 (canon_address): Pass mem modes to cselib_lookup.
13412 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13413 (cselib_lookup_from_insn): Likewise.
13414 (cselib_subst_to_values): Likewise.
13415 * cselib.c (find_slot_memmode): New var.
13416 (cselib_find_slot): New fn. Use it instead of
13417 htab_find_slot_with_hash everywhere.
13418 (entry_and_rtx_equal_p): Use find_slot_memmode.
13419 (autoinc_split): New fn.
13420 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13421 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13422 Deal with autoinc. Special-case recursion into MEMs.
13423 (cselib_hash_rtx): Likewise.
13424 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13425 address and MEM modes.
13426 (cselib_subst_to_values): Add memmode, pass it on.
13428 (cselib_lookup): Add memmode argument, pass it on.
13429 (cselib_lookup_from_insn): Add memmode.
13430 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13431 (struct cselib_record_autoinc_data): New.
13432 (cselib_record_autoinc_cb): New fn.
13433 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13434 mode to cselib_lookup. Reset autoinced REGs here instead of...
13435 (cselib_process_insn): ... here.
13436 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13438 (add_uses): Likewise, also to cselib_subst_to_values.
13439 (add_stores): Likewise.
13440 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13441 cselib_subst_to_values.
13442 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13443 * gcse.c (do_local_cprop): Adjusted.
13444 * postreload.c (reload_cse_simplify_set): Adjusted.
13445 (reload_cse_simplify_operands): Adjusted.
13446 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13448 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13450 PR tree-optimization/45122
13451 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13452 unsafe assumptions when there's more than one loop exit.
13454 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13457 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13458 Document using vector double with the load/store builtins, and
13459 that the load/store builtins always use Altivec instructions.
13461 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13462 to use altivec memory instructions, even on VSX.
13463 (vector_altivec_store_<mode>): Ditto.
13465 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13468 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13469 V2DF, V2DI support to load/store overloaded builtins.
13471 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13472 altivec load/store builtins for V2DF/V2DI types.
13474 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13475 set avoid indexed addresses on power6 if -maltivec.
13476 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13477 vector_altivec_load/vector_altivec_store builtins.
13478 (altivec_expand_st_builtin): Ditto.
13479 (altivec_expand_builtin): Add VSX memory builtins.
13480 (rs6000_init_builtins): Add V2DI types to internal types.
13481 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13482 load/store builtins.
13483 (rs6000_address_for_altivec): Insure memory address is appropriate
13486 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13487 vec_vsx_ld and vec_vsx_st.
13488 (vsx_store_<mode>): Ditto.
13490 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13491 variables to hold long long types for VSX vector memory builtins.
13492 (RS6000_BTI_unsigned_long_long): Ditto.
13493 (long_long_integer_type_internal_node): Ditti.
13494 (long_long_unsigned_type_internal_node): Ditti.
13496 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13497 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13498 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13500 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13502 (vec_vsx_st): Ditto.
13504 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13506 * config/pa/pa-hpux10.opt: New.
13507 * config/hpux11.opt (pthread): New Driver option.
13508 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13509 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13511 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13513 * config/ia64/vms.opt: New.
13514 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13516 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13519 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13520 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13521 generator functions.
13522 (vsx_floatuns<VSi><mode>2): Ditto.
13523 (vsx_fix_trunc<mode><VSi>2): Ditto.
13524 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13526 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13528 * config/i386/djgpp.opt (posix): New Driver option.
13530 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13532 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13533 Move to the unsupported targets list.
13535 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13537 PR rtl-optimization/47525
13538 * df-scan.c: Update copyright years.
13539 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13540 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13542 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13544 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13545 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13546 (ASM_OUTPUT_ASCII): Remove.
13547 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13549 2011-02-02 Jeff Law <law@redhat.com>
13551 PR middle-end/47543
13552 * reload.c (find_reloads_address): Handle reg+d address where both
13553 components are invalid by reloading the entire address.
13555 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13556 Richard Guenther <rguenther@suse.de>
13558 PR tree-optimization/40979
13560 * passes.c (init_optimization_passes): After LIM call copy_prop
13561 and DCE to clean up.
13562 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13564 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13566 PR tree-optimization/47576
13567 PR tree-optimization/47555
13568 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13569 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13570 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13571 * tree-scalar-evolution.c (follow_ssa_edge): Use
13572 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13574 2011-02-02 Richard Guenther <rguenther@suse.de>
13576 PR tree-optimization/47566
13577 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13579 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13583 * tree-inline.c (declare_return_variable): Remove unused caller
13588 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13589 * cfgexpand.c (account_used_vars_for_block): Use them.
13590 * tree-nrv.c (tree_nrv): Likewise.
13591 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13592 (dump_scope_block): Likewise.
13593 (remove_unused_locals): Likewise.
13597 * tree-inline.c (declare_return_variable): Add result decl to
13598 local decls only once.
13599 * gimple-low.c (record_vars_into): Mark newly-created variables
13602 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13608 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13610 (no_real_insns_p, schedule_block, set_priorities): Drop special
13611 treatment of boundary debug insns.
13612 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13613 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13614 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13615 (BOUNDARY_DEBUG_INSN_P): Likewise.
13616 (SCHEDULE_DEBUG_INSN_P): Likewise.
13617 * sched-rgn.c (init_ready_list): Drop special treatment of
13618 boundary debug insns.
13619 * final.c (rest_of_clean_state): Clear notes' BB.
13621 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13623 * config/openbsd.opt (assert=): New Driver option.
13625 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13627 * config/i386/nto.opt: New.
13628 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13630 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13632 * config/i386/netware.opt: New.
13633 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13635 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13637 * config/interix.opt (posix): New Driver option.
13639 2011-02-01 DJ Delorie <dj@redhat.com>
13641 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13643 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13646 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13648 PR tree-optimization/47561
13649 * toplev.c (process_options): Print the Graphite flags. Add
13650 flag_loop_flatten to the list of options requiring Graphite.
13652 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13654 * config/i386/cygming.opt (posix): New Driver option.
13656 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13658 * config/arm/vxworks.opt: New.
13659 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13661 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13663 * config/alpha/elf.opt: New.
13664 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13665 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13667 2011-02-01 Richard Guenther <rguenther@suse.de>
13669 PR tree-optimization/47559
13670 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13671 store-motion on references that can throw.
13673 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13675 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13676 * tree-pass.h (TDF_CSELIB): New macro.
13677 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13678 cselib_lookup): Check for it rather than for TDF_DETAILS.
13680 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13683 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13684 is HOST_BIT_BUCKET.
13686 * opts.c (finish_options): Don't add x_aux_base_name if it is
13689 2011-02-01 Richard Guenther <rguenther@suse.de>
13691 PR tree-optimization/47555
13693 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13695 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13697 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13700 * config/lm32/t-lm32: Add multilib for all CPU options.
13702 2011-02-01 Richard Guenther <rguenther@suse.de>
13704 PR tree-optimization/47541
13705 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13706 sure to have a field at offset zero.
13708 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13710 * config/arc/arc.opt (EB, EL): New Driver options.
13712 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13714 * config/alpha/osf5.opt: New.
13715 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13717 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13719 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13721 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13723 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13724 -floop-interchange.
13725 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13726 is an alias of -floop-interchange and that it requires the
13727 Graphite infrastructure.
13728 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13729 flag_loop_interchange based on the value of flag_tree_loop_linear.
13731 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13732 Richard Guenther <rguenther@suse.de>
13734 PR tree-optimization/47538
13735 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13736 type instead of r1type, except for comparisons. For right
13737 shifts and comparisons punt if there are mismatches in
13738 sizetype vs. non-sizetype types.
13740 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13742 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13745 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13747 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13749 * configure: Regenerate.
13751 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13753 * configure.ac (gcc_cv_ld_static_option): Define.
13754 (gcc_cv_ld_dynamic_option): Define.
13755 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13757 (HAVE_LD_STATIC_DYNAMIC): Update message.
13758 (LD_STATIC_OPTION): Define.
13759 (LD_DYNAMIC_OPTION): Define.
13760 * configure: Regenerate.
13761 * config.in: Regenerate.
13762 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13763 HAVE_LD_STATIC_DYNAMIC]: Use them.
13765 2011-01-31 Nick Clifton <nickc@redhat.com>
13767 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13768 registers inside interrupt handlers if the handler is not a leaf
13771 2011-01-31 Nick Clifton <nickc@redhat.com>
13773 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13774 reg_renumber returning an INVALID_REGNUM.
13776 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13779 * doc/install.texi: Document host options discarded when cross
13780 configuring target libraries.
13782 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13785 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13788 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13790 (no_real_insns_p, schedule_block, set_priorities): Drop special
13791 treatment of boundary debug insns.
13792 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13793 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13794 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13795 (BOUNDARY_DEBUG_INSN_P): Likewise.
13796 (SCHEDULE_DEBUG_INSN_P): Likewise.
13797 * sched-rgn.c (init_ready_list): Drop special treatment of
13798 boundary debug insns.
13799 * final.c (rest_of_clean-state): Clear notes' BB.
13801 2011-01-31 Alan Modra <amodra@gmail.com>
13803 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13804 toc relative expressions as we do in print_operand_address.
13806 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13808 * doc/extend.texi: Follow spelling conventions.
13809 * doc/invoke.texi: Fix a typo.
13811 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13813 * config/hpux11.opt: New.
13814 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13815 ia64*-*-hpux*): Use hpux11.opt.
13817 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13819 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13822 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13824 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13827 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13829 * doc/install.texi (Binaries): Remove outdated reference for
13830 Motorola 68HC11/68HC12 downloads.
13832 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13834 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13837 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13840 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13843 2011-01-28 Ahmad Sharif <asharif@google.com>
13845 * value-prof.c (check_counter): Corrected error message.
13847 2011-01-29 Jie Zhang <jie@codesourcery.com>
13849 * config/arm/arm.c (arm_legitimize_reload_address): New.
13850 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13851 arm_legitimize_reload_address.
13852 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13854 2011-01-28 Ian Lance Taylor <iant@google.com>
13856 * godump.c (go_define): Ignore macros whose definitions include
13857 two adjacent operands.
13859 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13862 * varasm.c (force_const_mem): Store copy of x in desc->constant
13863 instead of x itself.
13864 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13865 itself into REG_EQUAL note.
13867 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13869 * config/freebsd.opt (posix, rdynamic): New Driver options.
13871 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13873 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13874 -Bstatic/-Bdynamic.
13875 * configure: Regenerate.
13877 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13879 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13880 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13882 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13884 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13885 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13886 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13887 (s390_preferred_reload_class): Make static. Change return and
13888 'rclass' argument type to reg_class_t.
13890 2011-01-27 Jan Hubicka <jh@suse.cz>
13892 PR middle-end/46949
13893 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13894 (process_function_and_variable_attributes): Check defined weakrefs.
13896 2011-01-27 Martin Jambor <mjambor@suse.cz>
13898 PR tree-optimization/47228
13899 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13900 build_ref_for_offset.
13902 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13904 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13906 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13908 PR rtl-optimization/46856
13909 * postreload.c (reload_combine_recognize_const_pattern): Do not
13910 separate cc0 setter and user on cc0 targets.
13912 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13915 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13916 passed a VOID_TYPE expression, immediately emit an error and
13917 return error_mark_node.
13919 2011-01-26 Jeff Law <law@redhat.com>
13921 PR rtl-optimization/47464
13922 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13923 rather than may_trap_p as needed.
13925 2011-01-26 DJ Delorie <dj@redhat.com>
13927 PR rtl-optimization/46878
13928 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13929 setter/user dependency as well.
13931 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13933 PR rtl-optimization/44469
13934 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13935 after removing trivially dead basic blocks.
13937 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13939 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13940 * config/frv/frv.h (LINK_SPEC): Likewise.
13941 * config/i386/netware.h (LINK_SPEC): Likewise.
13942 * config/m68k/linux.h (ASM_SPEC): Likewise.
13943 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13944 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13945 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13946 * config/sparc/linux.h (ASM_SPEC): Likewise.
13947 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13948 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13950 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13952 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13953 * config/frv/frv.h (ASM_SPEC): Likewise.
13954 * config/m68k/linux.h (ASM_SPEC): Likewise.
13955 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13956 * config/rs6000/linux64.h (ASM_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 (LINK_SPEC): Remove %{YP,*}.
13965 * config/frv/frv.h (LINK_SPEC): Likewise.
13966 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13968 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13970 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13971 * config/frv/frv.h (ASM_SPEC): Likewise.
13972 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13973 * config/m68k/linux.h (ASM_SPEC): Likewise.
13974 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13975 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13976 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13977 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13978 * config/sparc/linux.h (ASM_SPEC): Likewise.
13979 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13980 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13981 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13983 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13986 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13988 (vec_extract_evenodd_help): Ditto.
13989 (vec_extract_evenv4hi): Ditto.
13990 (vec_extract_oddv4hi): Ditto.
13991 (vec_interleave_lowv2si): Ditto.
13992 (vec_interleave_highv2si): Ditto.
13993 (vec_extract_evenv2si): Ditto.
13994 (vec_extract_oddv2si: Ditto.
13995 (vec_pack_trunc_v2si): Ditto.
13997 2011-01-22 Jan Hubicka <jh@suse.cz>
14000 * cgraph.h (cgraph_local_info): New field can_change_signature.
14001 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14002 signature can change.
14003 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14005 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14006 (cgraph_function_versioning): We can not change signature of functions
14007 that don't allow that.
14008 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14009 (lto_input_node): Likewise.
14010 * ipa-inline.c (compute_inline_parameters): Compute
14011 local.can_change_signature.
14012 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14013 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14014 functions that can not change signature.
14015 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14016 init_cumulative_args): Do not use local calling conventions
14017 for functions that can not change signature.
14019 2011-01-22 Jan Hubicka <jh@suse.cz>
14021 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14023 2011-01-26 Richard Guenther <rguenther@suse.de>
14025 PR tree-optimization/47190
14026 * cgraphunit.c (process_common_attributes): New function.
14027 (process_function_and_variable_attributes): Use it.
14029 2011-01-26 Richard Guenther <rguenther@suse.de>
14032 * cgraphbuild.c (record_eh_tables): Record reference to personality
14035 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14038 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14039 non-debug insns from moving up.
14041 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14044 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14045 t-dlldir{,-x} fragment for build and add it to tmake_file.
14046 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14047 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14048 * config/i386/t-dlldir: New file.
14049 (SHLIB_DLLDIR): Define.
14050 * config/i386/t-dlldir-x: New file.
14051 (SHLIB_DLLDIR): Define.
14052 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14053 (SHLIB_INSTALL): Use it.
14055 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14058 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14059 lower bound of the allowed Thumb-2 coprocessor load/store
14060 index range to -256. Add explaining comment.
14062 2011-01-25 Ian Lance Taylor <iant@google.com>
14064 * godump.c (go_define): Improve lexing of macro expansion to only
14065 accept expressions which match Go spec.
14067 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14070 * tree.c (handle_dll_attribute): Handle it.
14071 * doc/extend.texi (@item dllexport): Mention it.
14072 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14074 2011-01-25 Ian Lance Taylor <iant@google.com>
14076 PR tree-optimization/26854
14077 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14078 (decl_jump_unsafe): Move higher in file, with no other change.
14079 (bind): Set has_jump_unsafe_decl if appropriate.
14080 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14081 (check_earlier_gotos): Likewise.
14082 (c_check_switch_jump_warnings): Likewise.
14084 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14086 * doc/invoke.texi (Warning Options): Add missing hyphen.
14087 (-fprofile-dir): Minor grammatical fixes.
14088 (-fbranch-probabilities): Likewise.
14090 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14094 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14096 (no_real_insns_p, schedule_block, set_priorities): Drop special
14097 treatment of boundary debug insns.
14098 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14099 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14100 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14101 (BOUNDARY_DEBUG_INSN_P): Likewise.
14102 (SCHEDULE_DEBUG_INSN_P): Likewise.
14103 * sched-rgn.c (init_ready_list): Drop special treatment of
14104 boundary debug insns.
14105 * final.c (rest_of_clean-state): Clear notes' BB.
14107 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14109 * Makefile.in (LAMBDA_H): Removed.
14110 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14111 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14112 lambda-trans.o, and tree-loop-linear.o.
14113 (lto-symtab.o): Remove dependence on LAMBDA_H.
14114 (tree-loop-linear.o): Remove rule.
14115 (lambda-mat.o): Same.
14116 (lambda-trans.o): Same.
14117 (lambda-code.o): Same.
14118 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14119 (tree-vect-slp.o): Same.
14120 * hwint.h (gcd): Moved here.
14121 (least_common_multiple): Same.
14122 * lambda-code.c: Removed.
14123 * lambda-mat.c: Removed.
14124 * lambda-trans.c: Removed.
14125 * lambda.h: Removed.
14126 * tree-loop-linear.c: Removed.
14127 * lto-symtab.c: Do not include lambda.h.
14128 * omega.c (gcd): Removed.
14129 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14130 * tree-data-ref.c (print_lambda_vector): Moved here.
14131 (lambda_vector_copy): Same.
14132 (lambda_matrix_copy): Same.
14133 (lambda_matrix_id): Same.
14134 (lambda_vector_first_nz): Same.
14135 (lambda_matrix_row_add): Same.
14136 (lambda_matrix_row_exchange): Same.
14137 (lambda_vector_mult_const): Same.
14138 (lambda_vector_negate): Same.
14139 (lambda_matrix_row_negate): Same.
14140 (lambda_vector_equal): Same.
14141 (lambda_matrix_right_hermite): Same.
14142 * tree-data-ref.h: Do not include lambda.h.
14143 (lambda_vector): Moved here.
14144 (lambda_matrix): Same.
14145 (dependence_level): Same.
14146 (lambda_transform_legal_p): Removed declaration.
14147 (lambda_collect_parameters): Same.
14148 (lambda_compute_access_matrices): Same.
14149 (lambda_vector_gcd): Same.
14150 (lambda_vector_new): Same.
14151 (lambda_vector_clear): Same.
14152 (lambda_vector_lexico_pos): Same.
14153 (lambda_vector_zerop): Same.
14154 (lambda_matrix_new): Same.
14155 * tree-flow.h (least_common_multiple): Removed declaration.
14156 * tree-parloops.c (lambda_trans_matrix): Moved here.
14157 (LTM_MATRIX): Same.
14158 (LTM_ROWSIZE): Same.
14159 (LTM_COLSIZE): Same.
14160 (LTM_DENOMINATOR): Same.
14161 (lambda_trans_matrix_new): Same.
14162 (lambda_matrix_vector_mult): Same.
14163 (lambda_transform_legal_p): Same.
14164 * tree-pass.h (pass_linear_transform): Removed declaration.
14165 * tree-ssa-loop.c (tree_linear_transform): Removed.
14166 (gate_tree_linear_transform): Removed.
14167 (pass_linear_transform): Removed.
14168 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14169 flag_loop_interchange.
14171 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14173 PR tree-optimization/47265
14174 PR tree-optimization/47443
14175 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14176 if name still has some uses.
14178 2011-01-25 Martin Jambor <mjambor@suse.cz>
14180 PR tree-optimization/47382
14181 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14182 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14184 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14186 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14187 sjlj_except_unwind_info.
14189 2011-01-25 Richard Guenther <rguenther@suse.de>
14191 PR tree-optimization/47426
14192 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14193 visible functions results escape.
14195 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14198 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14199 (arm_get_frame_offsets): Use it.
14201 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14202 Jakub Jelinek <jakub@redhat.com>
14204 PR tree-optimization/47271
14205 * tree-if-conv.c (bb_postdominates_preds): New.
14206 (if_convertible_bb_p): Call bb_postdominates_preds.
14207 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14208 (predicate_scalar_phi): Call bb_postdominates_preds.
14210 2011-01-25 Nick Clifton <nickc@redhat.com>
14212 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14213 * config/rx/rx.c (rx_function_value): Likewise.
14214 (rx_promote_function_mode): Likewise.
14215 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14216 in order to make it legitimate.
14217 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14218 make sure that the first operand is the same as the result register.
14219 (addsi3_unspec): Delete.
14220 (subdi3): Do not accept immediate operands.
14221 (subdi3_internal): Likewise.
14223 2011-01-25 Jeff Law <law@redhat.com>
14225 PR rtl-optimization/37273
14226 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14227 handle them like argument loads from stack slots. Do not double
14228 count memory for memory constants and argument loads from stack slots.
14230 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14232 PR tree-optimization/47427
14233 PR tree-optimization/47428
14234 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14235 coalesce if the new root var would be TREE_READONLY.
14237 2011-01-25 Richard Guenther <rguenther@suse.de>
14239 PR middle-end/47414
14240 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14241 correct type for TBAA.
14243 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14245 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14246 (close_phi_written_to_memory): Call for_each_index with
14247 dr_indices_valid_in_loop.
14249 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14251 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14252 when it is initialized.
14254 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14256 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14257 call to graphite_find_data_references_in_stmt.
14258 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14259 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14260 call to graphite_find_data_references_in_stmt.
14261 (analyze_drs_in_stmts): Same.
14262 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14263 in which the scalar analysis of indices is performed.
14264 (create_data_ref): Same. Update call to dr_analyze_indices.
14265 (find_data_references_in_stmt): Update call to create_data_ref.
14266 (graphite_find_data_references_in_stmt): Same.
14267 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14269 (create_data_ref): Same.
14270 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14271 call to create_data_ref.
14273 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14275 * graphite-sese-to-poly.c (build_poly_scop): Move
14276 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14278 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14280 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14281 VAR_DECL, PARM_DECL, and RESULT_DECL.
14283 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14285 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14286 in a reduction PBB.
14287 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14288 that have already been marked as PBB_IS_REDUCTION.
14290 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14292 * graphite-scop-detection.c (same_close_phi_node): New.
14293 (remove_duplicate_close_phi): New.
14294 (make_close_phi_nodes_unique): New.
14295 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14297 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14299 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14300 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14301 of both data references to be the same.
14303 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14305 * graphite-dependences.c (build_lexicographical_constraint): Remove
14306 the gdim parameter.
14307 (build_lexicographical_constraint): Adjust call to
14308 ppl_powerset_is_empty.
14309 (dependence_polyhedron): Same.
14310 (graphite_legal_transform_dr): Same.
14311 (graphite_carried_dependence_level_k): Same.
14312 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14314 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14316 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14318 * graphite-sese-to-poly.c
14319 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14320 (close_phi_written_to_memory): New.
14321 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14324 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14326 * doc/install.texi: Update the expected version number of PPL to 0.11.
14327 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14328 #if PPL_VERSION_MINOR < 11.
14330 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14332 * graphite-dependences.c: Include graphite-cloog-util.h.
14333 (new_poly_ddr): Inlined into dependence_polyhedron.
14334 (free_poly_ddr): Moved close by new_poly_ddr.
14335 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14336 Early return NULL when ppl_powerset_is_empty returns true.
14337 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14338 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14339 (graphite_legal_transform_dr): Call new_poly_ddr.
14340 (graphite_carried_dependence_level_k): Same.
14341 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14342 (dot_transformed_deps_stmt_1): Removed.
14343 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14344 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14345 (dot_deps_1): Call dot_deps_2.
14346 * Makefile.in (graphite-dependences.o): Add missing dependence on
14347 graphite-cloog-util.h.
14349 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14351 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14352 (build_lexicographical_constraint): Same.
14353 (dependence_polyhedron_1): Same.
14354 (graphite_legal_transform_dr): Same.
14355 (graphite_carried_dependence_level_k): Same.
14356 * graphite-ppl.c (ppl_powerset_is_empty): New.
14357 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14358 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14360 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14362 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14363 the "a followed by b" relation and document it.
14365 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14367 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14368 iteration when the bag of constraints is empty.
14370 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14372 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14374 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14376 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14377 nest and two loop depths as parameters.
14378 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14379 lst_perfect_nestify.
14381 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14383 * graphite-dependences.c (print_pddr): Call
14384 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14386 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14388 * graphite-ppl.c (debug_gmp_value): New.
14389 * graphite-ppl.h (debug_gmp_value): Declared.
14391 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14393 * doc/install.texi: Document availability of cloog-0.16.
14395 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14397 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14398 invalid postdominance info.
14400 2011-01-24 Jan Hubicka <jh@suse.cz>
14403 * doc/extend.texi (weak pragma): Drop claim that it must
14404 appear before definition.
14405 * varasm.c (merge_weak, declare_weak): Only sanity check
14406 that DECL is not output at a time it is declared weak.
14408 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14410 * machmode.def: Fixed comments.
14412 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14414 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14416 2011-01-24 Paul Koning <ni1d@arrl.net>
14418 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14421 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14424 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14425 (block_info): Add scanned and prev.
14426 (move_or_delete_vzeroupper_2): Return if the basic block
14427 has been scanned and the upper 128bit state is unchanged
14428 from the last scan.
14429 (move_or_delete_vzeroupper_1): Return true if the exit
14431 (move_or_delete_vzeroupper): Visit basic blocks using the
14432 work-list based algorithm based on vt_find_locations in
14435 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14437 2011-01-24 Nick Clifton <nickc@redhat.com>
14439 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14440 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14441 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14442 then define __v850e1__.
14443 * doc/invoke.texi: Document -mv850es.
14445 2011-01-24 Richard Henderson <rth@redhat.com>
14447 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14448 compound unordered comparisons.
14449 * config/rx/rx.c (rx_split_fp_compare): Remove.
14450 * config/rx/rx-protos.h: Update.
14451 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14452 (cbranchsf4): Don't call rx_split_fp_compare.
14453 (*cbranchsf4): Use rx_split_cbranch.
14454 (*cmpsf): Don't accept "i" constraint.
14455 (*conditional_branch): Only valid after reload.
14456 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14458 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14461 * config/rs6000/altivec.md (vector constant splitters): Add
14462 support for creating vector single precision constants if -mvsx is
14463 used and we would create the constant using Altivec primitives.
14465 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14466 Richard Sandiford <rdsandiford@googlemail.com>
14468 PR rtl-optimization/47166
14469 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14470 mechanism for PRE_MODIFY and POST_MODIFY.
14471 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14474 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14476 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14478 2011-01-22 Jan Hubicka <jh@suse.cz>
14481 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14483 2011-01-22 Jan Hubicka <jh@suse.cz>
14485 PR tree-optimization/43884
14487 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14488 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14490 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14492 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14493 * config/s390/s390.c (s390_register_move_cost,
14494 s390_memory_move_cost): New.
14495 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14497 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14499 PR middle-end/47401
14500 * except.c (sjlj_assign_call_site_values): Move setting the
14501 crtl->uses_eh_lsda flag to ...
14502 (sjlj_mark_call_sites): ... here.
14503 (sjlj_emit_function_enter): Support NULL dispatch label.
14504 (sjlj_build_landing_pads): In a function with no landing pads
14505 that still has must-not-throw regions, generate code to register
14506 a personality function with empty LSDA.
14508 2011-01-21 Richard Henderson <rth@redhat.com>
14510 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14512 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14514 * compare-elim.c: New file.
14515 * Makefile.in (OBJS-common): Add it.
14516 (compare-elim.o): New.
14517 * common.opt (fcompare-elim): New.
14518 * opts.c (default_options_table): Add OPT_fcompare_elim.
14519 * tree-pass.h (pass_compare_elim_after_reload): New.
14520 * passes.c (init_optimization_passes): Add it.
14521 * recog.h: Protect against re-inclusion.
14522 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14523 * doc/invoke.texi (-fcompare-elim): Document it.
14524 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14525 * doc/tm.texi: Rebuild.
14527 2011-01-22 Nick Clifton <nickc@redhat.com>
14529 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14530 rx_split_fp_compare.
14532 2011-01-22 Nick Clifton <nickc@redhat.com>
14534 * config/rx/rx.md (UNSPEC_CONST): New.
14535 (deallocate_and_return): Wrap the amount popped off the stack in
14536 an UNSPEC_CONST in order to stop it being rejected by
14537 -mmax-constant-size.
14538 (pop_and_return): Add a "(return)" rtx.
14539 (call): Drop the immediate operand.
14540 (call_internal): Likewise.
14541 (call_value): Likewise.
14542 (call_value_internal): Likewise.
14543 (sibcall_internal): Likewise.
14544 (sibcall_value_internal): Likewise.
14545 (sibcall): Likewise. Generate an explicit call using
14547 (sibcall_value): Likewise.
14548 (mov<>): FAIL if a constant operand is not legitimate.
14549 (addsi3_unpsec): New pattern.
14551 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14552 (ok_for_max_constant): New function.
14553 (gen_safe_add): New function.
14554 (rx_expand_prologue): Use gen_safe_add.
14555 (rx_expand_epilogue): Likewise.
14556 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14559 2011-01-21 Jeff Law <law@redhat.com>
14561 PR tree-optimization/47053
14562 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14563 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14564 statements are deleted.
14565 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14566 is nonempty, then purge dead edges and cleanup the CFG.
14568 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14571 Temporarily revert:
14572 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14574 * tree-dfa.c (create_var_ann): Mark variable as used.
14576 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14578 PR middle-end/45566
14579 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14580 notes from other section in hot/cold partitioning even if
14581 last_action is -3. Increment call_site_base.
14583 PR rtl-optimization/47366
14584 * fwprop.c (forward_propagate_into): Return bool. If
14585 any changes are made, -fnon-call-exceptions is used and
14586 REG_EH_REGION note is present, call purge_dead_edges
14587 and return true if it purged anything.
14588 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14589 any EH edges were purged.
14591 2011-01-21 Jeff Law <law@redhat.com>
14593 PR rtl-optimization/41619
14594 * caller-save.c (setup_save_areas): Break out code to determine
14595 which hard regs are live across calls by examining the reload chains
14596 so that it is always used.
14597 Eliminate code which checked REG_N_CALLS_CROSSED.
14599 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14601 PR tree-optimization/47355
14602 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14603 NOP has non-debug uses beyond PHIs in new_bb.
14605 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14608 * cfgexpand.c (account_used_vars_for_block): Only account vars
14609 that are annotated as used.
14610 (estimated_stack_frame_size): Don't set TREE_USED.
14611 * tree-dfa.c (create_var_ann): Mark variable as used.
14613 2011-01-21 Richard Guenther <rguenther@suse.de>
14615 PR middle-end/47395
14616 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14618 2011-01-21 Richard Guenther <rguenther@suse.de>
14620 PR tree-optimization/47365
14621 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14622 (vn_reference_lookup_pieces): Adjust.
14623 (vn_reference_lookup): Likewise.
14624 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14625 (vn_reference_lookup_3): Only look through kills if in
14626 VN_WALKREWRITE mode.
14627 (vn_reference_lookup_pieces): Adjust.
14628 (vn_reference_lookup): Likewise.
14629 (visit_reference_op_load): Likewise.
14630 (visit_reference_op_store): Likewise.
14631 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14632 (compute_avail): Likewise.
14633 (eliminate): Likewise.
14635 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14637 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14638 DECL_IGNORED_P non-reg vars if they are used.
14640 PR tree-optimization/47391
14641 * varpool.c (const_value_known_p): Return false if
14644 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14647 * config/i386/i386.c (ix86_local_alignment): Handle
14648 case for va_list_type_node is nil.
14649 (ix86_canonical_va_list_type): Likewise.
14651 2011-01-21 Alan Modra <amodra@gmail.com>
14653 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14654 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14656 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14658 * config/arm/arm.md (define_attr type): Rename f_load
14659 and f_store to f_fpa_load and f_fpa_store. Update.
14660 (write_conflict): Deal with rename fallout.
14661 (*push_fp_multi): Likewise.
14662 * config/arm/fpa.md (f_load): Use f_fpa_load.
14663 (f_store): Use f_fpa_store.
14664 (*movsf_fpa): Likewise.
14665 (*movdf_fpa): Likewise.
14666 (*movxf_fpa): Likewise.
14667 (*thumb2_movsf_fpa): Likewise.
14668 (*thumb2_movdf_fpa): Likewise.
14669 (*thumb2_movxf_fpa): Likewise.
14670 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14671 f_loadd and f_stored.
14672 (*thumb2_movdi_vfp): Likewise.
14673 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14674 (*thumb2_movsi_vfp): Likewise.
14675 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14676 Use f_loads instead of f_load.
14677 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14679 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14681 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14682 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14683 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14684 (xtensa_mode_dependent_address_p): New function.
14685 (constantpool_address_p): Make static. Change return type to bool.
14686 Change argument type to const_rtx. Use CONST_INT_P predicate.
14688 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14691 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14693 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14696 * cfgexpand.c (expand_debug_expr): Instead of generating
14697 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14700 2011-01-20 Richard Guenther <rguenther@suse.de>
14702 PR middle-end/47370
14703 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14704 the pointer operand of MEM_REFs.
14706 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14708 PR tree-optimization/46130
14709 * ipa-split.c (consider_split): If return_bb contains non-virtual
14710 PHIs other than for retval or if split_function would not adjust it,
14713 2011-01-20 Richard Guenther <rguenther@suse.de>
14715 PR tree-optimization/47167
14716 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14717 Revert previous change, only avoid enumeral type changes.
14719 2011-01-19 Mike Stump <mikestump@comcast.net>
14721 * doc/tm.texi.in (BRANCH_COST): Englishify.
14722 * doc/tm.texi (BRANCH_COST): Likewise.
14724 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14727 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14728 (gen_scheduled_generic_parms_dies): New functions.
14729 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14730 generation for the end of CU compilation.
14731 (dwarf2out_finish): Generate template parameters DIEs here.
14733 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14736 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14737 debug bind stmt on merge edges.
14739 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14743 * function.c (instantiate_expr): Instantiate incoming rtl of
14744 implicit arguments, and recurse on VALUE_EXPRs.
14745 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14746 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14748 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14750 * c-parser.c (c_parser_for_statement): Initialize
14751 collection_expression.
14753 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14755 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14757 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14759 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14760 (LINK_SHLIB_SPEC): Don't use %(link_path).
14761 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14763 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14765 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14766 (NO_SHARED_LIB_SUPPORT): Remove.
14767 (LINK_SHLIB_SPEC): Remove one conditional definition.
14769 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14771 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14773 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14774 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14775 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14776 %{call_shared} and conditionals on these options not being passed.
14777 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14780 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14782 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14785 * ipa-split.c: Spelling fixes.
14787 2011-01-19 Richard Henderson <rth@redhat.com>
14789 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14790 (*mulsi3): Likewise.
14792 * longlong.h [__mn10300__] (count_leading_zeros): New.
14793 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14794 [__mn10300__] (add_ssaaaa, subddmmss): New.
14795 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14796 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14798 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14800 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14802 2011-01-19 Richard Henderson <rth@redhat.com>
14804 * config/mn10300/mn10300.md (addsi3_flags): New.
14805 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14806 (subsi3_flags, subc_internal, subdi3): New.
14807 (subdi3_internal, *subdi3_degenerate): New.
14808 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14810 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14811 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14812 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14813 * config/mn10300/mn10300-protos.h: Update.
14814 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14815 (return_ret): Likewise. Rename from return_internal_regs.
14816 (return_internal): Remove.
14818 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14819 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14820 (mn10300_legitimate_constant_p): Likewise.
14821 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14822 (mn10300_frame_size): New.
14823 (mn10300_expand_prologue): Use it.
14824 (mn10300_expand_epilogue): Likewise.
14825 (mn10300_initial_offset): Likewise.
14826 * config/mn10300/mn10300-protos.h: Update.
14827 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14828 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14829 (prologue, epilogue, return_internal): Tidy output code.
14830 (mn10300_store_multiple_operation, return): Likewise.
14831 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14832 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14833 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14834 (load_pic, am33_load_pic): New.
14835 (mn10300_load_pic0, mn10300_load_pic1): New.
14837 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14838 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14839 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14840 (cc_flags_for_mode, cc_flags_for_code): New.
14841 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14842 overflow flag is not valid. Validate that the flags we need
14843 for the comparison are valid.
14844 (mn10300_output_cmp): Remove.
14845 (mn10300_output_add): New.
14846 (mn10300_select_cc_mode): Use cc_flags_for_code.
14847 (mn10300_split_cbranch): New.
14848 (mn10300_match_ccmode): New.
14849 (mn10300_split_and_operand_count): New.
14850 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14852 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14853 (addsi3): ... here. Use mn10300_output_add.
14854 (*addsi3_flags): New.
14855 (*am33_subsi3, *mn10300_subsi3): Merge...
14856 (subsi3): ... here. Use attribute isa.
14857 (*subsi3_flags): New.
14858 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14860 (*am33_andsi3, *mn10300_andsi3): Merge...
14861 (andsi3): ... here.
14862 (*andsi3_flags): New.
14863 (andsi3 splitters): New.
14864 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14865 (iorsi3): ... here.
14866 (*iorsi3_flags): New.
14867 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14868 (xorsi3): ... here.
14869 (*xorsi3_flags): New.
14870 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14871 (one_cmplsi2): ... here.
14872 (*one_cmplsi2_flags): New.
14873 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14874 instead of "dax" in constraints. Use mn10300_split_cbranch.
14875 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14876 use matching constraints to eliminate a self-comparison.
14877 (*integer_conditional_branch): Rename from integer_conditional_branch.
14878 Use int_mode_flags to match CC_REG.
14879 (*cbranchsi4_btst, *btstsi): New.
14880 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14881 mn10300_split_cbranch.
14882 (*am33_cmpsf): Rename from am33_cmpsf.
14883 (*float_conditional_branch): Rename from float_conditional_branch.
14884 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14885 (zero_extendqisi2): ... here.
14886 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14887 (zero_extendhisi2): ... here.
14888 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14889 (extendqisi2): ... here.
14890 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14891 (extendhisi2): ... here.
14892 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14893 (ashlsi3): ... here.
14894 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14895 (lshrsi3): ... here.
14896 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14897 (ashrsi3): ... here.
14898 (consecutive add peephole): Remove.
14899 * config/mn10300/predicates.md (label_ref_operand): New.
14900 (int_mode_flags): New.
14901 (CCZN_comparison_operator): New.
14903 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14904 (throughput_42_latency_43): New reservation.
14905 (mulsidi3, umulsidi3): New expanders.
14906 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14907 the MDR register to allocation; separately allocate the low and
14908 high parts of the DImode result.
14909 (umulsidi3_internal): Similarly.
14910 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14911 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14912 (udivsi3, umodsi3): Remove.
14913 (udivmodsi4, divmodsi4): New expanders.
14914 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14915 (*divmodsi4): Simiarly.
14916 (ext_internal): New.
14918 * config/mn10300/constraints.md ("z"): New constraint.
14919 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14920 (FIXED_REGISTERS): Don't fix MDR.
14921 (CALL_USED_REGSITERS): Reformat nicely.
14922 (REG_ALLOC_ORDER): Add MDR.
14923 (enum regclass): Add MDR_REGS.
14924 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14925 (IRA_COVER_CLASSES): Add MDR_REGS.
14926 (REGNO_REG_CLASS): Handle MDR_REG.
14927 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14928 (mn10300_register_move_cost): Likewise.
14929 * config/mn10300/mn10300.md (MDR_REG): New.
14930 (*movsi_internal): Handle moves to/from MDR_REGS.
14932 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14934 (mn10300_secondary_reload): Tidy combination reload classes.
14935 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14936 addresses for AM33. Allow symbolic offsets for reg+imm.
14937 (mn10300_regno_in_class_p): New.
14938 (mn10300_legitimize_reload_address): New.
14939 * config/mn10300/mn10300.h (enum reg_class): Remove
14940 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14941 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14942 SP_OR_GENERAL_REGS.
14943 (REG_CLASS_NAMES): Update to match.
14944 (REG_CLASS_CONTENTS): Likewise.
14945 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14946 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14947 (REGNO_IN_RANGE_P): Remove.
14948 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14949 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14950 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14951 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14952 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14953 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14954 (REGNO_GENERAL_P): New.
14955 (HAVE_POST_MODIFY_DISP): New.
14956 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14957 (LEGITIMIZE_RELOAD_ADDRESS): New.
14958 * config/mn10300/mn10300-protos.h: Update.
14960 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14961 DATA_REGS for AM33 stack-pointer destination.
14962 (mn10300_preferred_output_reload_class): Likewise.
14963 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14964 into a form appropriate for ...
14965 (TARGET_SECONDARY_RELOAD): New.
14966 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14967 * config/mn10300/mn10300-protos.h: Update.
14968 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14969 reload_insi; use the "A" constraint for the scratch; handle AM33
14970 moves of sp to non-address registers.
14972 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14973 (*movqi_internal): ... here.
14974 (*am33_movhi, *mn10300_movhi): Merge into...
14975 (*movhi_internal): ... here.
14976 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14977 as the source/destination of moves from/to SP.
14978 (movsf): Only allow for AM33-2.
14979 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14980 any integer constant constraint. Only allow for AM33-2. Tidy
14981 all of the alternative outputs.
14982 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14983 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14985 (udivsi3, umodsi3): New patterns for MN103 only.
14987 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14989 * doc/tm.texi.in: Spell out that a lack of register class unions
14991 * doc/tm.texi: Regenerate.
14993 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14995 PR rtl-optimization/47337
14996 * dce.c (check_argument_store): New function.
14997 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14999 PR tree-optimization/47290
15000 * tree-eh.c (infinite_empty_loop_p): New function.
15001 (cleanup_empty_eh): Use it.
15003 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15006 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15007 (a64_expand_widen_sum): Ditto.
15008 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15009 (vec_extract_evenodd_help): Ditto.
15010 (vec_extract_evenv4hi): Ditto.
15011 (vec_extract_oddv4hi): Ditto.
15012 (vec_extract_evenv2si): Ditto.
15013 (vec_extract_oddv2si): Ditto.
15014 (vec_extract_evenv2sf): Ditto.
15015 (vec_extract_oddv2sf): Ditto.
15016 (vec_pack_trunc_v4hi: Ditto.
15017 (vec_pack_trunc_v2si): Ditto.
15018 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15019 (vec_interleave_highv8qi): Ditto.
15021 (vec_extract_oddv8qi): Ditto.
15022 (vec_interleave_lowv4hi): Ditto.
15023 (vec_interleave_highv4hi): Ditto.
15024 (vec_interleave_lowv2si): Ditto.
15025 (vec_interleave_highv2si): Ditto.
15027 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15029 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15030 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15031 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15032 (pa_c_mode_for_suffix): New.
15033 (TARGET_EXPAND_BUILTIN): Define.
15034 (TARGET_C_MODE_FOR_SUFFIX): Define.
15035 (pa_builtins): Define.
15036 (pa_init_builtins): Register __float128 type and init new support
15038 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15039 * config/pa/quadlib.c (_U_Qfcopysign): New.
15041 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15043 PR middle-end/46894
15044 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15045 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15048 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15050 PR tree-optimization/47179
15051 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15052 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15054 2011-01-18 Richard Guenther <rguenther@suse.de>
15056 PR rtl-optimization/47216
15057 * emit-rtl.c: Include tree-flow.h.
15058 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15059 of replicating it with different semantics.
15060 * Makefile.in (emit-rtl.o): Adjust.
15062 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15064 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15065 (cortex_a9_dp): Handle neon types correctly.
15067 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15069 PR rtl-optimization/47299
15070 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15071 subtarget. Use normal multiplication if both operands are constants.
15072 * expmed.c (expand_widening_mult): Don't try to optimize constant
15073 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15076 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15078 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15079 spacing after 'e.g.', typos, comma, hyphenation.
15081 2011-01-17 Richard Henderson <rth@redhat.com>
15083 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15084 (rx_restricted_mem_operand): New.
15085 (rx_shift_operand): Use register_operand.
15086 (rx_source_operand, rx_compare_operand): Likewise.
15087 * config/rx/rx.md (addsi3_flags): New expander.
15088 (adddi3): Rewrite as expander.
15089 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15090 (subsi3_flags): New expander.
15091 (subdi3): Rewrite as expander.
15092 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15094 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15095 (rx_init_builtins): Remove sat builtin.
15096 (rx_expand_builtin): Likewise.
15097 * config/rx/rx.md (ssaddsi3): New.
15098 (*sat): Rename from sat. Represent the CC_REG input.
15100 * config/rx/predicates.md (rshift_operator): New.
15101 * config/rx/rx.c (rx_expand_insv): Remove.
15102 * config/rx/rx-protos.h: Update.
15103 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15104 operand to the canonical position.
15105 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15106 (*bitclr, *bitclr_in_memory): Similarly.
15107 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15108 (insv): Retain the zero_extract in the expansion.
15110 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15111 (bswaphi2, bitinvert, revw): Likewise.
15113 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15114 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15115 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15116 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15117 (bitset, bitset_in_memory): Likewise.
15118 (bitinvert, bitinvert_in_memory): Likewise.
15119 (bitclr, bitclr_in_memory): Likewise.
15120 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15121 (rx_strend, rx_cmpstrn): Likewise.
15122 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15123 (bitop peep2 patterns): Remove.
15125 * config/rx/rx.c (rx_match_ccmode): New.
15126 * config/rx/rx-protos.h: Update.
15127 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15128 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15129 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15130 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15131 (fix_truncsfsi2, floatsisf2): Likewise.
15132 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15133 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15134 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15135 (*subsi3_flags, *xorsi3_flags): New.
15137 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15139 * config/rx/rx.c (rx_print_operand): Remove workaround for
15140 unsplit comparison operations.
15142 * config/rx/rx.md (movsicc): Split after reload.
15143 (*movsicc): Merge *movsieq and *movsine via match_operator.
15144 (*stcc): New pattern.
15146 * config/rx/rx.c (rx_float_compare_mode): Remove.
15147 * config/rx/rx.h (rx_float_compare_mode): Remove.
15148 * config/rx/rx.md (cstoresi4): Split after reload.
15149 (*sccc): New pattern.
15151 * config/rx/predicates.md (label_ref_operand): New.
15152 (rx_z_comparison_operator): New.
15153 (rx_zs_comparison_operator): New.
15154 (rx_fp_comparison_operator): New.
15155 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15156 Validate that the flags are set properly for the comparison.
15157 (rx_gen_cond_branch_template): Remove.
15158 (rx_cc_modes_compatible): Remove.
15159 (mode_from_flags): New.
15160 (flags_from_code): Rename from flags_needed_for_conditional.
15161 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15162 (rx_select_cc_mode): Likewise.
15163 (rx_split_fp_compare): New.
15164 (rx_split_cbranch): New.
15165 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15166 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15167 (*cbranchsf4): Similarly.
15168 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15169 match_operator and rx_split_cbranch.
15170 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15171 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15172 (*cmpsi): Rename from cmpsi.
15173 (*tstsi): Rename from tstsi.
15174 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15175 (*conditional_branch): Rename from conditional_branch.
15176 (*reveresed_conditional_branch): Remove.
15177 (b<code>): Remove expander.
15178 * config/rx/rx-protos.h: Update.
15180 * config/rx/rx.c (rx_compare_redundant): Remove.
15181 * config/rx/rx.md (cmpsi): Don't use it.
15182 * config/rx/rx-protos.h: Update.
15184 * config/rx/rx-modes.def (CC_F): New mode.
15185 * config/rx/rx.c (rx_select_cc_mode): New.
15186 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15187 * config/rx/rx-protos.h: Update.
15189 2011-01-17 Richard Henderson <rth@redhat.com>
15191 * except.c (dump_eh_tree): Fix stray ; after for statement.
15193 2011-01-17 Richard Guenther <rguenther@suse.de>
15195 PR tree-optimization/47313
15196 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15197 handling before copying the body. Properly deal with
15198 by-reference result in SSA form.
15200 2011-01-17 Ian Lance Taylor <iant@google.com>
15203 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15204 (struct_value_alias_set): Don't define.
15205 (sparc_option_override): Don't set sparc_sr_alias_set and
15206 struct_value_alias_set.
15207 (save_or_restore_regs): Use gen_frame_mem rather than calling
15209 (sparc_struct_value_rtx): Likewise.
15211 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15214 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15215 (_mm_maskstore_pd): Likewise.
15216 (_mm_maskload_ps): Likewise.
15217 (_mm_maskstore_ps): Likewise.
15218 (_mm256_maskload_pd): Change mask to __m256i.
15219 (_mm256_maskstore_pd): Likewise.
15220 (_mm256_maskload_ps): Likewise.
15221 (_mm256_maskstore_ps): Likewise.
15223 * config/i386/i386-builtin-types.def: Updated.
15224 (ix86_expand_special_args_builtin): Likewise.
15226 * config/i386/i386.c (bdesc_special_args): Update
15227 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15228 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15229 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15230 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15232 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15233 Use <avxpermvecmode> on mask register.
15234 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15236 2011-01-17 Olivier Hainque <hainque@adacore.com>
15237 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15238 Eric Botcazou <ebotcazou@adacore.com>
15241 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15242 if <= USHRT_MAX in 32-bit mode.
15244 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15246 * doc/install.texi (Configuration, Specific): Wrap long
15247 lines in examples. Allow line wrapping in long options
15248 and URLs where beneficial for PDF output.
15250 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15252 * config/mips/mips.c (mips_classify_symbol): Don't return
15253 SYMBOL_PC_RELATIVE for nonlocal labels.
15255 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15257 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15259 2011-01-15 Jan Hubicka <jh@suse.cz>
15261 PR tree-optimization/47276
15262 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15263 declarations as needed.
15265 2011-01-15 Martin Jambor <mjambor@suse.cz>
15267 * common.opt (fdevirtualize): New flag.
15268 * doc/invoke.texi (Option Summary): Document it.
15269 * opts.c (default_options_table): Add devirtualize flag.
15270 * ipa-prop.c (detect_type_change): Return immediately if
15271 devirtualize flag is not set.
15272 (detect_type_change_ssa): Likewise.
15273 (compute_known_type_jump_func): Likewise.
15274 (ipa_analyze_virtual_call_uses): Likewise.
15276 2011-01-14 Martin Jambor <mjambor@suse.cz>
15278 PR tree-optimization/45934
15279 PR tree-optimization/46302
15280 * ipa-prop.c (type_change_info): New type.
15281 (stmt_may_be_vtbl_ptr_store): New function.
15282 (check_stmt_for_type_change): Likewise.
15283 (detect_type_change): Likewise.
15284 (detect_type_change_ssa): Likewise.
15285 (compute_complex_assign_jump_func): Check for dynamic type change.
15286 (compute_complex_ancestor_jump_func): Likewise.
15287 (compute_known_type_jump_func): Likewise.
15288 (compute_scalar_jump_functions): Likewise.
15289 (ipa_analyze_virtual_call_uses): Likewise.
15290 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15292 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15294 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15295 * config/i386/i386.opt (msse5): New Alias.
15297 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15299 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15300 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15301 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15302 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15304 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15306 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15308 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15309 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15310 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15311 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15313 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15315 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15317 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15319 2011-01-14 Mike Stump <mikestump@comcast.net>
15321 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15322 * config/fr30/fr30.md: Likweise
15323 (movsi_push): Likewise.
15324 (movsi_pop): Likewise.
15325 (enter_func): Likewise.
15326 * config/moxie/moxie.md (movsi_push): Likewise.
15327 (movsi_pop): Likewise.
15329 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15331 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15332 %{no_archive} %{exact_version}.
15333 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15334 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15335 %{no_archive} %{exact_version}.
15336 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15337 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15338 * config/mips/vxworks.h: Likewise.
15340 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15342 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15344 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15346 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15347 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15349 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15351 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15354 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15356 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15358 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15359 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15361 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15362 Don't handle -shlib.
15364 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15366 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15367 (CC1_SPEC): Don't handle -profile.
15369 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15371 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15372 * config/mips/mips.h (CC1_SPEC): Likewise.
15374 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15376 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15377 * config/mips/mips.h (CC1_SPEC): Likewise.
15379 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15381 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15382 * config/m32r/linux.h (LINK_SPEC): Likewise.
15383 * config/mips/linux.h (LINK_SPEC): Likewise.
15384 * config/mips/linux64.h (LINK_SPEC): Likewise.
15385 * config/sparc/linux.h (LINK_SPEC): Likewise.
15386 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15387 LINK_SPEC): Likewise.
15388 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15390 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15392 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15394 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15396 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15398 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15399 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15401 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15403 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15405 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15407 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15408 supports -Bstatic/-Bdynamic.
15409 * configure: Regenerate.
15411 2011-01-14 Jan Hubicka <jh@suse.cz>
15412 Jack Howarth <howarth@bromo.med.uc.edu>
15415 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15416 when checking debug_info_level. Test write_symbols instead of
15417 debug_hooks->var_location when setting flag_var_tracking_uninit.
15419 2011-01-14 Richard Guenther <rguenther@suse.de>
15421 PR tree-optimization/47179
15422 * target.def (ref_may_alias_errno): New target hook.
15423 * targhooks.h (default_ref_may_alias_errno): Declare.
15424 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15425 (default_ref_may_alias_errno): New function.
15426 * target.h (struct ao_ref_s): Declare.
15427 * tree-ssa-alias.c: Include target.h.
15428 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15429 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15430 (targhooks.o): Likewise.
15431 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15432 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15434 2011-01-14 Richard Guenther <rguenther@suse.de>
15436 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15438 2011-01-14 Richard Guenther <rguenther@suse.de>
15440 PR tree-optimization/47280
15441 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15442 return CFG changes.
15443 (tree_ssa_forward_propagate_single_use_vars): Deal with
15444 CFG changes from associate_plusminus.
15446 2011-01-14 Richard Guenther <rguenther@suse.de>
15448 PR middle-end/47281
15450 2011-01-11 Richard Guenther <rguenther@suse.de>
15452 PR tree-optimization/46076
15453 * tree-ssa.c (useless_type_conversion_p): Conversions from
15454 unprototyped to empty argument list function types are useless.
15456 2011-01-14 Richard Guenther <rguenther@suse.de>
15458 PR tree-optimization/47286
15459 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15461 2011-01-14 Martin Jambor <mjambor@suse.cz>
15463 PR middle-end/46823
15464 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15466 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15468 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15469 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15470 * config/xtensa/xtensa.c (xtensa_libcall_value,
15471 xtensa_function_value_regno_p): New functions.
15472 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15474 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15477 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15479 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15480 New function prototype.
15481 * config/i386/winnt.c (i386_pe_assemble_visibility):
15482 Warn only if attribute was specified by user.
15484 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15487 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15489 (floatunsdidf2_fcfidu): Ditto.
15491 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15493 * config/s390/s390.c (print_operand_address): Replace 'error' with
15494 'output_operand_lossage'.
15495 (print_operand): Likewise.
15497 2011-01-13 Jeff Law <law@redhat.com>
15499 PR rtl-optimization/39077
15500 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15501 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15502 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15503 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15504 * gcse.c (prune_insertions_deletions): New function.
15505 (compute_pre_data): Use it.
15507 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15510 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15512 (prune_unused_types_mark): Use it.
15514 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15516 PR rtl-optimization/45352
15517 * sel-sched.c: Update copyright years.
15518 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15519 in the advancing loop when we have issued issue_rate insns.
15521 2011-01-12 Richard Henderson <rth@redhat.com>
15523 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15524 (TARGET_MD_ASM_CLOBBERS): New.
15526 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15527 (TARGET_DELEGITIMIZE_ADDRESS): New.
15529 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15530 (clzsi2, *bsch): New patterns.
15532 * config/mn10300/mn10300.md (INT): New mode iterator.
15533 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15535 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15536 flag_split_wide_types.
15538 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15539 (mn10300_trampoline_init): Rewrite without a template, an immediate
15540 load and a direct branch.
15541 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15543 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15545 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15546 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15547 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15548 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15550 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15553 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15556 2011-01-12 Jan Hubicka <jh@suse.cz>
15559 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15560 (PLUGIN_COND_CLOSE): New macro.
15561 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15563 2011-01-12 Richard Guenther <rguenther@suse.de>
15566 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15567 register variables in a MEM_REF.
15569 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15571 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15572 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15573 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15574 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15575 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15576 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15577 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15578 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15579 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15580 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15581 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15582 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15583 * config/gnu-user.h: New. Copied from linux.h.
15584 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15585 GNU_USER_TARGET_STARTFILE_SPEC.
15586 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15587 GNU_USER_TARGET_ENDFILE_SPEC.
15588 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15589 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15590 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15591 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15592 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15593 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15594 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15595 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15596 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15597 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15598 * config/arm/linux-eabi.h (CC1_SPEC): Use
15599 GNU_USER_TARGET_CC1_SPEC.
15600 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15601 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15602 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15603 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15604 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15605 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15606 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15607 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15609 2011-01-12 Richard Guenther <rguenther@suse.de>
15612 * doc/invoke.texi (ffast-math): Document it is turned on
15615 2011-01-12 Jan Hubicka <jh@suse.cz>
15617 PR tree-optimization/47233
15618 * opts.c (common_handle_option): Disable ipa-reference with profile
15621 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15623 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15626 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15628 * c-parser.c (c_lex_one_token): Updated and reindented some
15629 comments. No changes in code.
15631 2011-01-11 Ian Lance Taylor <iant@google.com>
15633 * godump.c (go_output_var): Don't output the variable if there is
15634 already a type with the same name.
15636 2011-01-11 Ian Lance Taylor <iant@google.com>
15638 * godump.c (go_format_type): Don't generate float80.
15640 2011-01-11 Richard Henderson <rth@redhat.com>
15642 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15643 declaration. Rewrite for both speed and size.
15644 (mn10300_address_cost_1): Remove.
15645 (mn10300_register_move_cost): New.
15646 (mn10300_memory_move_cost): New.
15647 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15648 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15649 extensions, shifts, BSWAP, CLZ.
15650 (mn10300_wide_const_load_uses_clr): Remove.
15651 (TARGET_REGISTER_MOVE_COST): New.
15652 (TARGET_MEMORY_MOVE_COST): New.
15653 * config/mn10300/mn10300-protos.h: Update.
15654 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15656 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15657 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15658 * config/mn10300/mn10300-protos.h: Update.
15659 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15660 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15661 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15662 (*test_int_bitfield, *test_byte_bitfield): Remove.
15663 (*bit_test, *subreg_bit_test): Remove.
15664 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15666 * config/mn10300/constraints.md ("c"): Rename from "A".
15667 ("A", "D"): New constraint letters.
15668 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15669 (fmssf4, fnmasf4, fnmssf4): Likewise.
15671 * config/mn10300/mn10300.md (isa): New attribute.
15672 (enabled): New attribute.
15674 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15675 (abssf2, negsf2): Define only for hardware fp.
15676 (sqrtsf2): Reformat.
15677 (addsf3, subsf3, mulsf3): Merge expander and insn.
15679 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15680 (DEBUGGER_AUTO_OFFSET): Remove.
15681 (DEBUGGER_ARG_OFFSET): Remove.
15683 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15684 Emit register stores with the same offsets as the hardware.
15685 (mn10300_store_multiple_operation): Don't check that the register
15686 save offsets are monotonic.
15687 * config/mn10300/mn10300-protos.h: Update.
15689 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15691 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15692 in terms of the value on the stack, not the MDR register.
15694 2011-01-11 Jan Hubicka <jh@suse.cz>
15698 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15699 (symbol_alias_set_destroy, symbol_alias_set_contains,
15700 propagate_aliases_backward): Declare.
15701 * lto-streamer-out.c (struct sets): New sturcture.
15702 (trivally_defined_alias): New function.
15703 (output_alias_pair_p): Rewrite.
15704 (output_unreferenced_globals): Fix output of alias pairs.
15705 (produce_symtab): Likewise.
15706 * ipa.c (function_and_variable_visibility): Set weak alias destination
15708 * varasm.c (symbol_alias_set_t): Remove.
15709 (symbol_alias_set_destroy): Export.
15710 (propagate_aliases_forward, propagate_aliases_backward): New functions
15712 (compute_visible_aliases): ... this one; remove.
15713 (trivially_visible_alias): New
15714 (trivially_defined_alias): New.
15715 (remove_unreachable_alias_pairs): Rewrite.
15716 (finish_aliases_1): Reorganize code checking if alias is defined.
15717 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15720 2011-01-11 Richard Guenther <rguenther@suse.de>
15722 PR tree-optimization/46076
15723 * tree-ssa.c (useless_type_conversion_p): Conversions from
15724 unprototyped to empty argument list function types are useless.
15726 2011-01-11 Richard Guenther <rguenther@suse.de>
15728 PR middle-end/45235
15729 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15730 volatile MEMs as MEM_READONLY_P.
15732 2011-01-11 Richard Guenther <rguenther@suse.de>
15734 PR tree-optimization/47239
15735 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15737 2011-01-11 Jeff Law <law@redhat.com>
15739 PR tree-optimization/47086
15740 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15741 IVs from statements that might throw.
15743 2011-01-10 Jan Hubicka <jh@suse.cz>
15746 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15748 2011-01-10 Jan Hubicka <jh@suse.cz>
15751 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15752 when correcting profile.
15754 2011-01-10 Jan Hubicka <jh@suse.cz>
15757 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15758 DECL_FINI_PRIORITY.
15759 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15760 Restore DECL_FINI_PRIORITY.
15762 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15764 * doc/gimple.texi: Fix quoting of multi-word return values in
15765 @deftypefn statements. Ensure presence of return value. Wrap
15766 overlong @deftypefn lines.
15767 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15768 descriptions of removed functions.
15769 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15770 of multi-word return value in @deftypefn statement.
15772 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15774 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15775 (Conditional Expressions, Logical Operators)
15776 (Statement and operand traversals): Do not indent smallexample
15777 code. Fix duplicate function argument in example.
15779 2011-01-10 Jeff Law <law@redhat.com>
15781 PR tree-optimization/47141
15782 * ipa-split.c (split_function): Handle case where we are
15783 returning a value and the return block has a virtual operand phi.
15785 2011-01-10 Jan Hubicka <jh@suse.cz>
15787 PR tree-optimization/47234
15788 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15789 (pass_feedback_split_functions): Declare.
15790 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15792 * ipa-split.c (gate_split_functions): Update comments; disable
15793 split-functions for profile_arc_flag and branch_probabilities.
15794 (gate_feedback_split_functions): New function.
15795 (execute_feedback_split_functions): New function.
15796 (pass_feedback_split_functions): New global var.
15798 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15801 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15802 calling gimple_call_set_cannot_inline.
15804 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15806 * config/darwin-sections.def: Remove unused section.
15808 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15811 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15813 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15816 * c-parser.c (c_parser_declaration_or_fndef): Improved
15819 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15821 * config/i386/winnt.c (i386_pe_start_function): Make sure
15822 to switch back to function's section.
15824 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15828 * plugin.c: Move include of dlfcn.h from here...
15829 * system.h: ... to here.
15831 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15833 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15835 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15836 two extra empty pages in PDF output.
15838 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15841 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15842 for error recovery purposes behave as if it was not specified so
15843 that the default type is usd.
15845 2011-01-07 Jan Hubicka <jh@suse.cz>
15847 PR tree-optmization/46469
15848 * ipa.c (function_and_variable_visibility): Clear needed flags on
15849 nodes with external decls; handle weakrefs merging correctly.
15851 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15853 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15856 2011-01-07 Jan Hubicka <jh@suse.cz>
15858 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15859 and no longer claim that gold is required for linker plugin.
15860 * configure: Regenerate.
15861 * gcc.c (PLUGIN_COND): New macro.
15862 (LINK_COMMAND_SPEC): Use it.
15863 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15864 * config.in (HAVE_LTO_PLUGIN): New.
15865 * configure.ac (--with-lto-plugin): New parameter; autodetect
15868 2011-01-07 Jan Hubicka <jh@suse.cz>
15870 PR tree-optimization/46367
15871 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15872 when we can update original.
15873 (cgraph_mark_inline_edge): Sanity check.
15874 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15876 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15878 * config/spu/spu.h (ASM_COMMENT_START): Define.
15880 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15883 * gcc.c (%>S): New.
15884 (SWITCH_KEEP_FOR_GCC): Likewise.
15885 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15886 (do_spec_1): Handle "%>".
15888 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15890 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15893 * config/i386/i386.c (ix86_delegitimize_address): If
15894 simplify_gen_subreg fails, return orig_x.
15897 * value-prof.c (gimple_stringop_fixed_value): Handle
15898 lhs of the call properly.
15900 2011-01-07 Jan Hubicka <jh@suse.cz>
15903 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15905 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15907 * target.def (function_switched_text_sections): New hook.
15908 * doc/tm.texi: Regenerated.
15909 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15910 * final.c (default_function_switched_text_sections): New.
15911 (final_scan_insn): Call function_switched_text_sections when a
15912 mid-function section change occurs.
15913 * output.h (default_function_switched_text_sections): Declare.
15914 * config/darwin-protos.h (darwin_function_switched_text_sections):
15916 * config/darwin.c (darwin_function_switched_text_sections): New.
15917 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15919 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15921 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15922 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15923 the secondary code fragment when outputting for DWARF == 2.
15925 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15927 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15928 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15930 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15931 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15933 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15936 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15937 when it is not empty.
15939 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15942 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15943 (case ${target}): Add btver1.
15944 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15945 -march=native recognize btver1 processors.
15946 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15947 btver1 def_and_undef
15948 * config/i386/i386.c (struct processor_costs btver1_cost): New
15950 (m_BTVER1): New definition.
15951 (m_AMD_MULTIPLE): Includes m_BTVER1.
15952 (initial_ix86_tune_features): Add btver1 tune.
15953 (processor_target_table): Add btver1 entry.
15954 (static const char *const cpu_names): Add btver1 entry.
15955 (software_prefetching_beneficial_p): Add btver1.
15956 (ix86_option_override_internal): Add btver1 instruction sets.
15957 (ix86_issue_rate): Add btver1.
15958 (ix86_adjust_cost): Add btver1.
15959 * config/i386/i386.h (TARGET_BTVER1): New definition.
15960 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15961 (enum processor_type): Add PROCESSOR_BTVER1.
15962 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15964 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15967 * config/i386/i386.c (legitimize_tls_address)
15968 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15969 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15970 (tls_initial_exec_64_sun): New pattern.
15972 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15974 * doc/invoke.texi (Overall Options): Improve wording and markup
15975 of the description of -wrapper.
15977 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15979 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15980 rdynamic, threads): New Driver options.
15982 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15985 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15986 if coming from .tdata.
15987 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15989 2011-01-06 Jan Hubicka <jh@suse.cz>
15992 * collect2.c (main): Do not enable LTOmode when plugin is active.
15994 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15997 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15998 --version output if supported.
15999 * configure: Regenerate.
16001 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16003 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16006 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16009 * c-convert.c (convert): When converting a complex expression
16010 other than COMPLEX_EXPR to a different complex type, ensure
16011 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16012 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16013 when converting COMPLEX_TYPE.
16015 2011-01-06 Ira Rosen <irar@il.ibm.com>
16017 PR tree-optimization/47139
16018 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16019 only the last reduction value is used outside the loop. Update
16022 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16024 * config/rtems.opt: New.
16025 * config.gcc (*-*-rtems*): Use rtems.opt.
16027 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16029 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16030 processors do not support 3DNow instructions.
16032 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16034 * config/spu/spu.c (spu_option_override): Set parameter
16035 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16037 2011-01-05 Jan Hubicka <jh@suse.cz>
16039 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16040 at the command line.
16042 2011-01-05 Martin Jambor <mjambor@suse.cz>
16045 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16046 deltas on streamed outgoing edges.
16047 (output_node_opt_summary): Output info for outgoing edges only when
16048 the node is in new parameter set.
16049 (output_cgraph_opt_summary): New parameter set, passed to the two
16050 aforementioned functions. Update its forward declaration and its
16053 2011-01-05 Tom Tromey <tromey@redhat.com>
16055 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16056 operator to c_finish_omp_atomic.
16057 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16058 (build_unary_op): Update.
16059 (build_modify_expr): Update.
16060 (build_asm_expr): Update.
16062 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16064 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16065 newly inserted insns.
16066 (pad_bb): Likewise.
16067 (spu_emit_branch_hint): Likewise.
16068 (insert_hbrp_for_ilb_runout): Likewise.
16069 (spu_machine_dependent_reorg): Call df_finish_pass after
16070 schedule_insns returns.
16072 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16074 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16076 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16078 PR tree-optimization/47005
16079 * tree-sra.c (struct access): Add 'non_addressable' bit.
16080 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16081 (decide_one_param_reduction): Return 0 if the parameter is passed by
16082 reference and one of the accesses in the group is non_addressable.
16084 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16086 PR tree-optimization/47056
16087 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16088 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16089 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16091 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16093 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16094 initializer. Skip view conversions from aggregate types.
16096 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16099 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16101 2011-01-04 Philipp Thomas <pth@suse.de>
16103 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16106 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16108 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16109 on empty epilogue sequences.
16111 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16113 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16114 non-static): New Driver options.
16116 2011-01-04 Jie Zhang <jie@codesourcery.com>
16119 * gcc.c (default_compilers[]): Set combinable field to 0
16120 for all assembly languages.
16122 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16124 * config/mips/loongson3a.md: New file.
16125 * config/mips/mips.md: Include loongson3a.md.
16126 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16129 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16131 PR middle-end/47017
16132 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16133 instead of convert_memory_address_addr_space on the base expression.
16135 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16137 * config/spu/spu.c (spu_option_override): Update error text
16138 for bad -march= / -mtune= values.
16140 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16142 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16143 if branch-hint optimization will be performed.
16145 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16147 PR tree-optimization/47148
16148 * ipa-split.c (split_function): Convert arguments to
16149 DECL_ARG_TYPE if possible.
16151 PR tree-optimization/47155
16152 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16153 when computing uns.
16155 PR rtl-optimization/47157
16156 * combine.c (try_combine): If undobuf.other_insn becomes
16157 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16158 and set *new_direct_jump_p too.
16160 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16162 PR tree-optimization/47021
16163 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16165 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16167 * gcc.c (process_command): Update copyright notice dates.
16168 * gcov.c (print_version): Likewise.
16169 * gcov-dump.c (print_version): Likewise.
16170 * mips-tfile.c (main): Likewise.
16171 * mips-tdump.c (main): Likewise.
16173 2011-01-03 Martin Jambor <mjambor@suse.cz>
16175 PR tree-optimization/46801
16176 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16177 aggregate fields start at byte boundary instead of the bit-field flag.
16179 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16182 * gcc.c (main): Revert revision 168407.
16184 2011-01-03 Martin Jambor <mjambor@suse.cz>
16186 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16188 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16190 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16191 vector optab to expand vector/scalar shift, update gimple to vector.
16193 2011-01-03 Martin Jambor <mjambor@suse.cz>
16195 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16198 2011-01-03 Martin Jambor <mjambor@suse.cz>
16200 PR tree-optimization/46984
16201 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16203 (cgraph_create_indirect_edge): Fixed line length.
16204 (cgraph_indirect_call_info): Declare.
16205 (cgraph_make_edge_direct) Update declaration.
16206 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16207 (cgraph_create_indirect_edge): Use it.
16208 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16210 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16211 the new thunk_delta representation.
16212 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16214 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16215 (ipa_read_indirect_edge_info): Likewise.
16216 * lto-cgraph.c (output_edge_opt_summary): New function.
16217 (output_node_opt_summary): Call it on all outgoing edges.
16218 (input_edge_opt_summary): New function.
16219 (input_node_opt_summary): Call it on all outgoing edges.
16221 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16224 * gcc.c (main): Don't check have_o when settting combine_inputs.
16226 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16228 * regrename.c: Add general comment describing the pass.
16229 (struct du_head): Remove 'length' field.
16230 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16231 (regrename_optimize): Do not sort chains. Rework comments, add others.
16232 Force renaming to the preferred class (if any) in the first pass and do
16233 not consider registers that belong to it in the second pass.
16234 (create_new_chain): Do not set 'length' field.
16235 (scan_rtx_reg): Likewise.
16237 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16239 PR tree-optimization/47140
16240 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16241 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16242 to bit_value_binop.
16244 PR rtl-optimization/47028
16245 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16246 parm_birth_insn instead of at the beginning of first bb.
16248 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16250 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16251 Remove the word "see" before "@pxref".
16252 * doc/rtl.texi: Remove the word "see" before "@pxref".
16254 2011-01-01 Jan Hubicka <jh@suse.cz>
16256 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16259 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16262 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16265 Copyright (C) 2011 Free Software Foundation, Inc.
16267 Copying and distribution of this file, with or without modification,
16268 are permitted in any medium without royalty provided the copyright
16269 notice and this notice are preserved.