1 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3 * config.gcc: Keep obselete list sorted.
5 2011-05-30 Jakub Jelinek <jakub@redhat.com>
6 Eric Botcazou <ebotcazou@adacore.com>
8 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
9 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
10 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
11 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
12 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
14 2011-05-30 Richard Guenther <rguenther@suse.de>
16 * gimple.c (gimple_types_compatible_p_1): Compare record
17 and union type members properly.
19 2011-05-30 Richard Guenther <rguenther@suse.de>
21 PR tree-optimization/49210
22 * ipa-split.c (split_function): Care for the case where the
23 call result is not trivially convertible to the result holding
26 2011-05-30 Richard Guenther <rguenther@suse.de>
28 PR tree-optimization/49218
29 * tree-vrp.c (adjust_range_with_scev): Properly check whether
32 2011-05-30 Richard Guenther <rguenther@suse.de>
34 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
35 New function split out from ...
36 (forward_propagate_into_gimple_cond): ... here. Adjust.
37 (forward_propagate_into_cond): Likewise.
38 (forward_propagate_comparison): Also propagate into
39 comparisons on assignment RHS. Change return value to
40 behave similar to forward_propagate_into_cond.
41 (tree_ssa_forward_propagate_single_use_vars): Handle
42 strict-overflow warnings properly for forward_propagate_comparison.
44 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
46 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
48 * configure: Regenerate.
50 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
52 PR tree-optimization/49199
53 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
54 non-reduction operands are either defined in the loop or
57 2011-05-29 Xinliang David Li <davidxl@google.com>
59 * opts-global.c (handle_common_deferred_options): Handle new options.
60 * passes.c (register_one_dump_file): Call register_pass_name.
61 (execute_one_pass): Check explicit enable/disable flag.
62 (passr_hash): New function.
64 (register_pass_name): Ditto.
65 (get_pass_by_name): Ditto.
69 (disable_pass): Ditto.
70 (is_pass_explicitly_enabled_or_disabled): Ditto.
72 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
74 * config/i386/i386.md (*movoi_internal_avx): Use
75 standard_sse_constant_opcode for alternative 0.
76 (*movti_internal_sse): Ditto.
77 (*movti_internal_rex64): Use standard_sse_constant_opcode for
79 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
81 (*movsi_internal): Ditto.
82 (*movdi_internal): Ditto. Add ssecvt type moves.
84 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
87 * rtlanal.c (simplify_subreg_regno): Adjust comment.
89 2011-05-29 Jakub Jelinek <jakub@redhat.com>
91 PR rtl-optimization/49095
92 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
93 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
95 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
98 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
99 recurse_p argument. Only follow register copies if it is set,
100 and prevent mips_find_pic_call_symbol from recursing.
101 (mips_find_pic_call_symbol): Add a recurse_p argument.
102 Pass it to mips_pic_call_symbol_from_set.
103 (mips_annotate_pic_calls): Update accordingly.
105 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
107 * emit-rtl.c (try_split): Use a loop to search for
108 NOTE_INSN_CALL_ARG_LOCATIONs.
110 2011-05-29 Richard Guenther <rguenther@suse.de>
112 PR tree-optimization/49217
113 * ipa-pure-const.c (propagate_pure_const): Fix typos.
115 2011-05-28 Jan Hubicka <jh@suse.cz>
117 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
119 (string_slot_free): Remove
120 (create_output_block): Initialize obstack.
121 (destroy_output_block): Free obstack.
122 (lto_string_index): Add PERSISTENT parameter; do not duplicate
123 the string unless it needs to be added into the hash.
124 (lto_output_string_with_length): Add persistent attribute;
126 (lto_output_string): Add PERSISTENT parameter.
127 (output_string_cst, output_identifier): Simplify.
128 (lto_output_location_bitpack): Update.
129 (lto_output_builtin_tree): Update.
130 * lto-streamer.h (struct output_block): Add obstack.
131 (lto_output_string, lto_output_string_with_length): Remove
132 declarations; functions are static now.
134 2011-05-28 Jan Hubicka <jh@suse.cz>
136 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
137 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
138 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
139 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
140 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
141 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
142 unpack_ts_decl_with_vis_value_fields,
143 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
144 lto_get_builtin_tree): Use enum and variable length i/o.
145 * basic-block.h (profile_status_d): Add PROFILE_LAST.
146 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
148 (bp_pack_enum, bp_unpack_enum): New macros.
150 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
152 * genrecog.c: Remove redundant forward declarations.
154 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
156 * config.gcc: Deprecate mips*-*-openbsd*.
158 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
161 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
164 2011-05-27 Andrew Pinski <pinskia@gmail.com>
167 * gengtype.c (vec_prefix_type): New function.
168 (note_def_vec): Use vec_prefix_type and change the length
169 attribute to be based on the prefix.
170 * vec.c: Include coretypes.h before vec.h.
171 (struct vec_prefix): Remove.
172 (vec_gc_p_reserve): Change the offsetof to sizeof.
173 (vec_gc_p_reserve_exact): Likewise.
174 (vec_heap_p_reserve): Likewise.
175 (vec_heap_p_reserve_exact): Likewise.
176 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
177 (vec_stack_p_reserve): Change the offsetof to sizeof.
178 (vec_stack_p_reserve_exact): Likewise.
179 * vec.h (struct vec_prefix): New struct definition.
180 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
181 (VEC_T_GTY(T,B)): Likewise.
182 (DEF_VEC_FUNC_P(T)): Use prefix field.
183 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
184 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
186 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
188 PR tree-optimization/46728
189 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
190 (powi_as_mults): Add gimple_set_location.
191 (build_and_insert_call): New.
192 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
193 0.5, 0.25, 0.75, 1./3., or 1./6.
195 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
197 * doc/contrib.texi: Update copyright years.
198 (Contributors): Add Zdenek Sojka.
200 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
202 * c-decl.c (c_push_function_context): Copy the current statement
204 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
205 (finish_struct): Call building_stmt_list_p instead of checking
207 * c-parser.c (c_parser_postfix_expression): Likewise.
208 * c-typeck.c (c_end_compound_stmt): Likewise.
209 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
210 * tree-iterator.c (stmt_list_cache): Change to a VEC.
211 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
212 (free_stmt_list): Likewise.
213 * tree.h (struct tree_statement_list): Include typed_tree instead
215 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
216 as TS_TYPED instead of TS_COMMON.
218 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
219 Uros Bizjak <ubizjak@gmail.com>
221 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
222 (HAVE_AS_IX86_TLSGDPTL): Define.
223 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
224 (HAVE_AS_IX86_TLSLDMPLT): Define.
225 * configure: Regenerate.
226 * config.in: Regenerate.
227 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
228 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
229 TARGET_SUN_TLS, use @tlsgdplt or @plt.
230 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
231 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
233 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
235 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
237 * sched-int.h (struct _haifa_deps_insn_data): New members cond
239 (INSN_COND, INSN_REVERSE_COND): New macros.
240 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
242 (sched_get_condition_with_rev): Cache the results, and look them up
244 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
245 are clobbered by the current insn.
246 * target.def (exposed_pipline): New sched data hook.
247 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
248 * doc/tm.texi: Regenerate.
250 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
252 PR tree-optimization/49170
253 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
256 2011-05-27 Richard Guenther <rguenther@suse.de>
259 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
262 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
264 * haifa-sched.c (sched_scan_info): Remove.
265 (schedule_block): Call sched_extend_luids rather than sched_init_luids
267 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
269 (sched_scan): Remove.
270 (sched_extend_luids): Renamed from luids_extend_insn and no longer
271 static. All callers changed.
272 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
273 static. All callers changed.
274 (sched_init_luids): Remove all arguments except the first. All
275 callers changed. Don't use sched_scan.
276 (haifa_init_h_i_d): Likewise.
277 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
278 manually rather than using sched_init_luids. Likewise with
279 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
280 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
281 rather than sched_init_luids with NULL args.
282 * sel-sched-ir.c (new_insns): Remove variable.
283 (sched_scan): New static function, previously in haifa-sched.c. Remove
284 all arguments but the first two; all callers changed.
285 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
286 rather than sched_init_luids.
287 (sel_init_bbs): Remove second argument. All callers changed.
288 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
290 (create_insn_rtx_from_pattern): Likewise.
291 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
292 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
293 (sched_init_insn_luid, sched_extend_luids): Declare.
294 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
297 2011-05-27 Richard Guenther <rguenther@suse.de>
300 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
301 A CMP B ? (T) true : (T) false for non-integral types T again.
303 2011-05-27 Jan Hubicka <jh@suse.cz>
305 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
306 so 0 means NULL string.
307 (lto_output_string_with_length): ... here.
308 (lto_output_string, output_string_cst, output_identifier): Update
309 handling of NULL strings.
310 (lto_output_location_bitpack): New function.
311 (lto_output_location): Use it.
312 (lto_output_tree_ref): Use output_record_start.
313 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
315 * lto-streamer-in.c (string_for_index): Break out from ...; offset
317 (input_string_internal): ... here;
318 (input_string_cst, input_identifier, lto_input_string): Update handling
320 (lto_input_location_bitpack): New function
321 (lto_input_location): Use it.
322 (unpack_ts_type_common_value_fields): Pack align & alias in var len
324 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
325 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
326 (bp_pack_value): Sanity check the value range.
327 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
329 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
332 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
334 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
335 call_arg_location instructions down the floor.
337 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
339 PR rtl-optimization/49154
340 * ira.c (setup_pressure_classes): Process class without sublcasses
341 as a candidate for pressure classes.
343 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
345 PR rtl-optimization/48575
346 * genrecog.c (position_type): New enum.
347 (position): New structure.
348 (decision): Use position structure instead of a string.
349 (root_pos, peep2_insn_pos_list): New variables.
350 (next_position, compare_positions): New functions.
351 (new_decision): Use position structures instead of strings.
352 (maybe_both_true): Likewise.
353 (change_state): Likewise.
354 (write_tree): Likewise.
355 (make_insn_sequence): Likewise.
357 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
359 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
360 TS_BASE instead of TS_COMMON.
361 (find_decls_types_r): Check for TS_TYPED structure before looking at
363 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
365 (BLOCK_CHAIN): Use new chain field.
367 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
369 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
370 moves expensive on Power7 also.
372 2011-05-26 Richard Guenther <rguenther@suse.de>
374 * fold-const.c (fold_unary_loc): Remove bogus code.
376 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
378 * tree.h (struct tree_identifier): Inherit from tree_typed, not
380 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
381 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
382 TS_BASE instead of TS_COMMON.
383 * varasm.c (assemble_name): Remove assert.
385 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
387 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
389 * libgcc-std.ver: Delete file.
391 2011-05-26 Richard Guenther <rguenther@suse.de>
393 PR tree-optimization/48702
394 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
395 only when we know the base address is within bounds.
396 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
397 assume the base address of TARGET_MEM_REFs is in bounds.
399 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
402 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
403 declaration in TARGET_SOLARIS.
405 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
407 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
408 The instruction is then expanded explicitly.
409 (supported_compare): Callable instruction.
412 2011-05-26 Jakub Jelinek <jakub@redhat.com>
415 * gimplify.c (shortcut_cond_r): Don't special case
416 COND_EXPRs if they have void type on one of their arms.
418 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
420 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
421 to reduce duplication, and to achieve a slightly more logical order
424 2011-05-26 Jakub Jelinek <jakub@redhat.com>
426 PR tree-optimization/49161
427 * tree-vrp.c (struct case_info): New type.
428 (compare_case_labels): Sort case_info structs instead of
429 trees, and not primarily by CASE_LABEL uids but by
430 label_for_block indexes.
431 (find_switch_asserts): Put case labels into struct case_info
432 array instead of TREE_VEC, adjust sorting, compare label_for_block
433 values instead of CASE_LABELs.
435 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
437 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
438 ("orndi3_neon"): Likewise.
439 ("bic<mode>3_neon"): Likewise.
441 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
443 PR tree-optimization/49038
444 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
445 Ensure at least one epilogue iteration if required by data
447 * tree-vectorizer.h (struct _loop_vec_info): Add new field
448 to mark loops that require peeling for gaps.
449 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
450 (vect_get_known_peeling_cost): Take peeling for gaps into
452 (vect_transform_loop): Generate epilogue if required by data
454 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
455 loop as requiring an epilogue if there are gaps in the end of
458 2011-05-25 Ian Lance Taylor <iant@google.com>
460 * godump.c (go_format_type): Output the first field with a usable
463 2011-05-25 Ian Lance Taylor <iant@google.com>
465 * godump.c (go_format_type): Check for invalid type names, pointer
466 target types, and struct field types.
468 2011-05-25 Jason Merrill <jason@redhat.com>
470 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
472 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
474 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
476 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
478 * config/i386/i386.md (*movqi_extv_1)): Put back
479 "register_operand" check in "type" calculation.
480 (*movqi_extzv_2): Likewise.
482 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
484 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
486 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
489 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
490 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
491 __divxc3, __divtc3): Wrap definitions in #ifndef.
493 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
496 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
497 "register_operand" check and replace q_regs_operand with
498 QIreg_operand in "type" calculation.
499 (*movqi_extv_1): Likewise.
500 (*movqi_extzv_2_rex64): Likewise.
501 (*movqi_extzv_2): Likewise.
503 * config/i386/predicates.md (QIreg_operand): New.
505 2011-05-25 Richard Guenther <rguenther@suse.de>
507 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
508 type-based offset disambiguation, streamline MEM_REF and
509 TARGET_MEM_REF handling.
511 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
513 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
514 (bdesc_special_args): Add pause intrinsic.
516 * config/i386/i386.md (UNSPEC_PAUSE): New.
519 * config/i386/ia32intrin.h (__pause): Likewise.
521 * doc/extend.texi (X86 Built-in Functions): Add documentation for
524 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
526 PR tree-optimization/46728
527 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
528 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
530 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
532 * tree.h (struct tree_exp): Inherit from struct tree_typed.
533 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
534 instead of TS_COMMON.
536 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
538 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
539 LIBGCC2_GNU_PREFIX is defined.
541 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
542 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
543 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
544 __clz_tab): Define using __N.
545 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
546 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
547 * target.def (libfunc_gnu_prefix): New hook.
548 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
549 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
550 * doc/tm.texi: Regenerate.
551 * system.h (LIBGCC2_GNU_PREFIX): Poison.
552 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
554 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
555 (init_optabs): Likewise for the bswap libfuncs.
556 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
558 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
559 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
560 * libgcc-std.ver: Remove.
561 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
562 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
564 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
565 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
566 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
567 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
568 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
569 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
570 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
571 * config/fixed-bit.h (FIXED_OP): Define differently depending on
572 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
573 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
575 2011-05-25 Jan Hubicka <jh@suse.cz>
577 * lto-streamer-out.c (output_record_start): Use lto_output_enum
578 (lto_output_tree): Use output_record_start.
579 * lto-streamer-in.c (input_record_start): Use lto_input_enum
580 (lto_get_pickled_tree): Use input_record_start.
581 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
582 (lto_value_range_error): New function.
583 * lto-streamer.h (lto_value_range_error): Declare.
584 (lto_output_int_in_range, lto_input_int_in_range): New functions.
585 (lto_output_enum, lto_input_enum): New macros.
587 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
589 * common.opt (flag_stack_usage_info): New variable.
590 (-Wstack-usage): New option.
591 * doc/invoke.texi (Warning options): Document -Wstack-usage.
592 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
593 <OPT_fstack_usage>: Likewise.
594 * toplev.c (output_stack_usage): Handle -Wstack-usage.
595 * calls.c (expand_call): Test flag_stack_usage_info variable instead
597 (emit_library_call_value_1): Likewise.
598 * explow.c (allocate_dynamic_stack_space): Likewise.
599 * function.c (instantiate_virtual_regs ): Likewise.
600 (prepare_function_start): Likewise.
601 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
602 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
603 * config/arm/arm.c (arm_expand_prologue): Likewise.
604 (thumb1_expand_prologue): Likewise.
605 * config/avr/avr.c (expand_prologue): Likewise.
606 * config/i386/i386.c (ix86_expand_prologue): Likewise.
607 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
608 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
609 * config/mips/mips.c (mips_expand_prologue): Likewise.
610 * config/pa/pa.c (hppa_expand_prologue): Likewise.
611 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
612 * config/s390/s390.c (s390_emit_prologue): Likewise.
613 * config/sh/sh.c (sh_expand_prologue): Likewise.
614 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
615 * config/spu/spu.c (spu_expand_prologue): Likewise.
617 2011-05-25 Richard Guenther <rguenther@suse.de>
619 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
620 (gimple_canonical_types_compatible_p): Likewise.
622 2011-05-25 Jan Hubicka <jh@suse.cz>
625 * ipa.c (function_and_variable_visibility): Only add to same
626 comdat group list if DECL_ONE_ONLY.
628 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
630 PR rtl-optimization/49014
631 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
633 2011-05-25 Jakub Jelinek <jakub@redhat.com>
636 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
638 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
640 PR rtl-optimization/48757
641 * ira-build.c (loop_with_eh_edge_p): Rename to
642 loop_with_complex_edge_p, check edges on complexity, make function
644 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
647 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
649 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
650 force flag_ira_share_save_slots to 0.
652 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
654 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
655 (vt_initialize): Set PROLOGUE_BB unconditionally.
656 Add block comment about CFA_BASE_RTX machinery.
657 Reset FP_CFA_OFFSET to -1 on all invalid paths.
658 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
660 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
663 * c-parser.c (c_parser_objc_class_instance_variables): More robust
664 parsing of syntax error in ObjC instance variable lists. In
665 particular, avoid an infinite loop if there is a stray ']'.
666 Updated error message.
668 2011-05-24 Ian Lance Taylor <iant@google.com>
670 * godump.c (go_define): Don't accept a string immediately after
673 2011-05-24 Ian Lance Taylor <iant@google.com>
675 * godump.c (struct godump_container): Add invalid_hash field.
676 (go_format_type): Return false if type is found in invalid_hash.
677 (go_output_typedef): Add invalid type to invalid_hash.
678 (go_finish): Create and delete invalid_hash.
680 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
682 PR tree-optimization/46728
683 * tree-ssa-math-opts.c (powi_table): New.
684 (powi_lookup_cost): New.
686 (powi_as_mults_1): New.
687 (powi_as_mults): New.
688 (gimple_expand_builtin_powi): New.
689 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
690 (gate_cse_sincos): Remove sincos/cexp restriction.
692 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
695 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
697 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
698 * mips-tdump.c: Likewise.
700 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
703 * config/i386/driver-i386.c (host_detect_local_cpu): Always
704 add -mno-XXX. Handle FMA.
706 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
708 PR rtl-optimization/48633
709 * ira-build.c (loop_with_eh_edge_p): New function.
710 (mark_loops_for_removal): Use it.
712 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
714 PR rtl-optimization/48971
715 * ira.c (setup_pressure_classes): Don't check register move cost
716 for classes with one registers. Don't add pressure class if there
717 is a pressure class with the same available hard registers.
718 Check contains_reg_of_mode. Fix a typo in collecting
719 temp_hard_regset. Ignore hard registers not belonging to a class.
721 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
724 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
726 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
727 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
729 PR gcov-profile/48845
730 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
732 2011-05-24 Richard Guenther <rguenther@suse.de>
734 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
735 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
736 (gimple_types_compatible_p_1): Adjust.
737 (iterative_hash_canonical_type): Do not bother about complete vs.
739 (gimple_canonical_types_compatible_p): Likewise.
741 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
743 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
745 2011-05-24 Richard Guenther <rguenther@suse.de>
748 * gimple.c (gimple_register_canonical_type): Revert
750 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
751 does not for a tree for the case where it matters. Cache
752 pointer-type alias-sets.
754 2011-05-24 Joseph Myers <joseph@codesourcery.com>
756 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
757 (OBJS): Remove options.o, opts-common.o and prefix.o.
758 (OBJS-libcommon-target): New.
759 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
760 (BACKEND): Include libcommon-target.a.
761 (MOSTLYCLEANFILES): Include libcommon-target.a.
762 (libcommon-target.a): New.
763 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
766 2011-05-23 Joseph Myers <joseph@codesourcery.com>
768 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
769 parts of output shared with the driver.
770 * optc-gen.awk: Don't generate parts of output not shared with the
772 * opth-gen.awk: Remove GCC_DRIVER conditionals.
773 * doc/options.texi (SourcerInclude): Mention options-save.c.
774 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
775 (OBJS): Add options-save.o.
776 (options-save.c, options-save.o): New.
777 (options.o): Update dependencies.
778 (gcc-options.o): Remove.
779 (mostlyclean): Remove options-save.c.
781 2011-05-23 Jakub Jelinek <jakub@redhat.com>
784 * dbxout.c: Include cgraph.h.
785 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
786 and without value expr, return NULL if no varpool node exists for
787 it or if it is not needed.
788 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
791 * c-decl.c (start_decl): Convert expr to void_type_node.
793 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
795 PR rtl-optimization/48826
796 * emit-rtl.c (try_split): When splitting a call that is followed
797 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
799 2011-05-23 Jakub Jelinek <jakub@redhat.com>
801 * cfgexpand.c (expand_debug_expr): For unused non-addressable
802 parameters passed in memory prefer using DECL_INCOMING_RTL over
803 the pseudos it will be copied into.
805 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
808 * config/i386/i386.c (ix86_option_override_internal): Save the
809 initial options after checking vzeroupper.
811 2011-05-23 David Li <davidxl@google.com>
813 PR tree-optimization/48988
814 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
815 Initialize has_valid_pred for each pred chain.
817 2011-05-23 Richard Guenther <rguenther@suse.de>
819 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
820 (iterative_hash_gimple_type): Always hash type names.
822 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
824 * c-typeck.c (build_function_call_vec): Tweak call to
825 check_function_arguments.
827 2011-05-23 Richard Guenther <rguenther@suse.de>
829 PR tree-optimization/49115
830 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
831 is not necessarily carried out, do not claim it kills the ref.
832 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
834 2011-05-23 Richard Guenther <rguenther@suse.de>
837 * builtins.c (fold_builtin_memory_op): Be less restrictive about
838 what pointer types we accept for folding.
840 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
842 * gthr-gnat.c: Remove.
843 * gthr-gnat.h: Remove.
844 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
845 * config/t-freebsd (LIB2ADDEH): Likewise.
846 * config/t-linux (LIB2ADDEH): Likewise.
847 * config/t-sol2 (LIB2ADDEH): Likewise.
848 * config/ia64/t-vms (LIB2ADDEH): Likewise.
849 * configure.ac (target_thread_file): Remove gnat handling.
850 * configure: Regenerate.
851 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
853 2011-05-23 Tristan Gingold <gingold@adacore.com>
854 Eric Botcazou <ebotcazou@adacore.com>
856 * gcov.c (create_file_names): If no object directory is specified,
857 keep the directory of the file.
859 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
861 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
862 * configure: Regenerate.
864 2011-05-23 Jakub Jelinek <jakub@redhat.com>
867 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
868 failed and the comparison has a single bit signed type, use
869 constm1_rtx instead of const1_rtx for true value.
870 (do_store_flag): If ops->type is single bit signed type, disable
871 signel bit test optimization and pass -1 instead of 1 as last
872 parameter to emit_store_flag_force.
874 2011-05-23 Tom de Vries <tom@codesourcery.com>
877 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
879 (infer_loop_bounds_from_undefined): Use new function.
881 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
883 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
884 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
885 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
887 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
889 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
891 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
892 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
895 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
897 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
899 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
901 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
902 UNSPEC_MOVE_PIC pattern.
904 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
906 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
907 (sparc-*-rtems*): Likewise.
908 (sparc64-*-elf*): Likewise.
909 (sparc64-*-rtems*): Likewise.
910 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
911 * config/sparc/t-crtin: New file.
912 * config/sparc/t-sol2 (crti.o): Delete rule.
914 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
915 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
916 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
917 (ENDFILE_SPEC): Add crtn.o.
919 2011-05-22 Tom de Vries <tom@codesourcery.com>
922 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
923 CODE_CONTAINS_STRUCT (TS_COMMON).
925 2011-05-22 Jakub Jelinek <jakub@redhat.com>
928 * expmed.c (extract_fixed_bit_field): Test whether target can be used
929 only after deciding which mode to use.
931 2011-05-22 Tom de Vries <tom@codesourcery.com>
934 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
935 for call to get_shiftadd_cost.
937 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
940 * config/i386/cpuid.h (bit_MMXEXT): New define.
942 2011-05-22 Nick Clifton <nickc@redhat.com>
944 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
945 initialisation of non-existant args[2] element. Use args[] array
946 not arg[] array to pass arguments to build_function_type_list.
948 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
950 PR tree-optimization/49087
951 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
953 2011-05-21 Jason Merrill <jason@redhat.com>
956 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
957 static storage duration.
959 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
961 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
964 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
966 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
967 false if there are call-saved registers here...
968 (sparc_can_use_return_insn_p): ...but here instead.
969 (save_or_restore_regs): Fix thinko.
970 (sparc_expand_prologue): Use current_function_is_leaf.
971 (sparc_frame_pointer_required): Likewise.
973 2011-05-21 Nick Clifton <nickc@redhat.com>
976 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
978 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
980 * gengtype.c (walk_type): Implemented "atomic" GTY option.
981 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
983 2011-05-21 Joseph Myers <joseph@codesourcery.com>
985 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
986 * optc-gen.awk: Move common code to opt-read.awk.
987 * opth-gen.awk: Likewise.
988 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
990 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
992 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
994 2011-05-20 Tom de Vries <tom@codesourcery.com>
997 * tree-ssa-loop-ivopts.c: Include expmed.h.
998 (get_shiftadd_cost): New function.
999 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1001 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1004 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1005 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1007 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1009 * Makefile.in: Update comment referring to $(OBJS-common).
1011 2011-05-20 Ian Lance Taylor <iant@google.com>
1013 * godump.c (go_output_typedef): Put enum constants in the macro
1014 hash table to avoid duplicate Go const definitions.
1016 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1018 * Makefile.in (LIBDEPS): Add libcommon.a.
1020 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1021 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1022 pretty-print.o and version.o.
1023 (OBJS-libcommon): New.
1024 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1025 (BACKEND): Add libcommon.a.
1026 (MOSTLYCLEANFILES): Likewise.
1028 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1029 (cpp$(exeext)): Likewise.
1030 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1031 pretty-print.o and input.o.
1032 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1033 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1035 (mips-tfile): Don't explicitly use version.o.
1036 (mips-tdump): Likewise.
1037 (gcov.o): Depend on $(DIAGNOSTIC_H).
1038 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1039 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1040 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1041 * gcov-dump.c: Include intl.h and diagnostic.h.
1042 (main): Initialize diagnostics.
1043 * gcov.c: Include diagnostic.h.
1045 (main): Initialize diagnostics.
1046 * lto-wrapper.c: Include diagnostic.h.
1047 (main): Initialize diagnostics.
1049 2011-05-20 Michael Matz <matz@suse.de>
1051 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1053 2011-05-20 Michael Matz <matz@suse.de>
1054 Richard Guenther <rguenther@suse.de>
1056 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1057 use lto_streamer_cache_append directly instead of returning a VEC.
1058 (preload_common_node): Remove.
1059 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1061 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1063 2011-05-20 Richard Guenther <rguenther@suse.de>
1065 PR tree-optimization/49079
1066 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1067 MEM_REFs correctly for the trailing array access detection.
1068 Special case constants the same way as decls for overall size
1071 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1073 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1076 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1078 PR tree-optimization/49073
1079 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1080 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1081 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1083 2011-05-20 Richard Guenther <rguenther@suse.de>
1086 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1087 of pointer types the same way the middle-end does.
1089 2011-05-20 Richard Guenther <rguenther@suse.de>
1091 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1092 or pointer-to chains. Delay all fixup to uniquify_nodes.
1094 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1096 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1097 (fma4_fmaddsub): Likewise
1099 2011-05-19 Jan Hubicka <jh@suse.cz>
1101 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1102 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1103 (type_pair_cache): New static var.
1104 (lookup_type_pair): Use fixed sized custom hash; make inline.
1105 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1106 calls of lookup_type_pair.
1107 (print_gimple_types_stats): Remove cache stats.
1108 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1111 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1113 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1114 when TARGET_RDRND is active.
1115 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1116 Generate dummy SImode target register when target is NULL.
1118 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1120 * config/arm/arm-fpus.def: New.
1121 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1123 * config/arm/arm-tables.opt: Regenerate.
1124 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1125 (arm_option_override): Don't decode FPU name to string here.
1126 * config/arm/arm.opt (mfpu=): Use Enum.
1127 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1128 Update dependencies.
1130 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1132 * collect2.c: Include diagnostic.h.
1133 (fatal_perror, fatal, error, fancy_abort): Remove.
1134 (main): Set progname. Call xmalloc_set_program_name and
1135 diagnostic_initialize.
1136 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1137 scan_libraries, resolve_lib_name): Call fatal_error instead of
1138 fatal and fatal_perror.
1139 * collect2.h (error, fatal, fatal_perror): Don't declare.
1140 * tlink.c: Include diagnostic-core.h.
1141 (recompile_files): Call fatal_error instead of fatal_perror.
1142 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1143 pretty-print.o and input.o.
1144 (collect2.o, tlink.o): Update dependencies.
1146 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1148 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1150 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1153 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1154 COMDAT group syntax, both SPARC and x86 variants.
1155 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1156 * configure: Regenerate.
1157 * config/sol2.h (TARGET_SOLARIS): Define.
1158 (PUSHSECTION_FORMAT): Remove.
1159 (SECTION_NAME_FORMAT): Define.
1160 * config/sol2.c: Include hashtab.h.
1161 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1162 expansion, using SECTION_NAME_FORMAT.
1163 (solaris_comdat_htab): New variable.
1164 (struct comdat_entry): Define.
1165 (comdat_hash): New function.
1166 (comdat_eq): New function.
1167 (solaris_elf_asm_comdat_section): New function.
1168 (solaris_define_comdat_signature): New function.
1169 (solaris_code_end): New function.
1170 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1171 (solaris_code_end): Declare.
1172 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1173 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1175 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1176 Remove ATTRIBUTE_UNUSED.
1177 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1178 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1179 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1180 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1181 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1182 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1183 (PUSHSECTION_FORMAT): Remove.
1184 (SECTION_NAME_FORMAT): Redefine.
1186 2011-05-19 Kai Tietz <ktietz@redhat.com>
1188 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1189 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1190 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1192 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1193 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1195 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1197 2011-05-19 Richard Guenther <rguenther@suse.de>
1200 * tree-object-size.c (addr_object_size): If the pointed-to
1201 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1203 2011-05-19 Richard Guenther <rguenther@suse.de>
1205 * gimple.c (gimple_types_compatible_p_1): Compare names of
1206 the types themselves.
1207 (iterative_hash_gimple_type): And hash them that way.
1208 (gimple_register_type_1): If we register a main variant properly
1209 initialize the leader to ourselves.
1211 2011-05-19 Tom de Vries <tom@codesourcery.com>
1214 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1215 get_loop_invariant_expr_id.
1216 (get_loop_invariant_expr_id): Use get_expr_id.
1217 (parm_decl_cost): New function.
1218 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1219 Improve bound cost estimation. Use different inv_expr_id for elim and
1222 2011-05-19 Tom de Vries <tom@codesourcery.com>
1225 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1226 cost_base.cost == 0.
1228 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1231 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1232 Properly handle load cast.
1234 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1236 PR tree-optimization/49039
1237 * tree-vrp.c (extract_range_from_binary_expr): For
1238 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1239 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1241 2011-05-18 Tom de Vries <tom@codesourcery.com>
1244 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1246 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1248 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1249 (*tls_global_dynamic_64): Ditto.
1250 (*tls_local_dynamic_base_32_gnu): Ditto.
1251 (*tls_local_dynamic_base_64): Ditto.
1252 (tls_initial_exec_64_sun): Ditto.
1254 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1256 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1257 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1259 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1260 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1261 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1262 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1263 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1264 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1265 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1267 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1269 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1270 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1271 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1272 target_thread_pointer, arm_structure_size_boundary, struct
1273 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1274 struct abi_name, arm_all_abis): Remove.
1275 (arm_option_override) Don't process most enumerated option values here.
1276 Don't process target_fpe_name here. Work with integer not string for
1277 structure size boundary; use separate diagnostics for each case.
1278 * config/arm/arm.h (enum float_abi_type, enum
1279 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1281 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1282 arm_structure_size_boundary): Remove.
1283 * config/arm/arm.opt (mabi=): Use Enum and Init.
1284 (arm_abi_type): New Enum and EnumValue entries.
1285 (mfloat-abi=): Use Enum and Init.
1286 (float_abi_type): New Enum and EnumValue entries.
1287 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1288 (mfp16-format=): Use Enum and Init.
1289 (arm_fp16_format_type): New Enum and EnumValue entries.
1290 (mstructure-size-boundary=): Use UInteger and Init.
1291 (mtp=): Use Enum and Init.
1292 (arm_tp_type): New Enum and EnumValue entries.
1294 2011-05-18 Richard Guenther <rguenther@suse.de>
1296 PR tree-optimization/49018
1297 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1298 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1299 gimple_has_side_effects.
1301 2011-05-18 Richard Guenther <rguenther@suse.de>
1303 * gimple.c (gimple_register_type_1): New function, split out from ...
1304 (gimple_register_type): ... here. Avoid infinite recursion.
1306 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1308 PR tree-optimization/41881
1309 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1310 reduction_chains along with a macro for its access.
1311 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1312 (destroy_loop_vec_info): Free reduction chains.
1313 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1314 (vect_is_slp_reduction): New function.
1315 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1316 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1317 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1318 definition types for reduction chains.
1319 (vect_supported_load_permutation_p): Don't allow permutations for
1321 (vect_analyze_slp_instance): Support reduction chains.
1322 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1323 (vect_get_constant_vectors): Handle reduction chains.
1324 (vect_schedule_slp_instance): Mark the first statement of the
1325 reduction chain as reduction.
1327 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1329 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1330 names for group elements access.
1331 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1332 reduction chains as well. Remove data reference and interleaving
1333 related words from the fields names.
1334 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1336 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1337 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1338 vect_update_interleaving_chain, vect_same_range_drs,
1339 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1340 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1341 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1342 vect_analyze_group_access, vect_analyze_data_ref_access,
1343 vect_create_data_ref_ptr, vect_transform_strided_load,
1344 vect_record_strided_load_vectors): Likewise.
1345 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1346 vect_model_load_cost, vectorizable_store, vectorizable_load,
1347 vect_remove_stores, new_stmt_vec_info): Likewise.
1348 * tree-vect-slp.c (vect_build_slp_tree,
1349 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1351 2011-05-18 Richard Guenther <rguenther@suse.de>
1354 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1355 operand verification.
1356 (verify_gimple_assign_binary): Likewise.
1357 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1358 to non-1-precision BOOLEAN_TYPEs.
1360 2011-05-18 Tom de Vries <tom@codesourcery.com>
1363 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1365 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1367 PR tree-optimization/49000
1368 * tree-ssa.c (execute_update_addresses_taken): Call
1369 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1370 be rewritten and decl has been marked for renaming, reset
1373 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1375 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1376 enum_opts_set when testing if attributes have set -mfpmath=.
1378 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1380 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1382 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1384 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1386 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1387 id.transform_lang_insert_block with NULL.
1389 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1391 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1392 (output_fp_compare): Change args 3 and 4 to bool.
1393 (ix86_expand_call): Change arg 6 to bool.
1394 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1395 (ix86_attr_length_vex_default): Change arg 3 to bool.
1396 * config/i386/i386.md: Update all uses.
1397 * config/i386/i386.c: Ditto.
1398 (ix86_flags_dependent): Change return type to bool.
1400 2011-05-17 Richard Guenther <rguenther@suse.de>
1402 * gimple.c (type_hash_pair_compare): Fix comparison.
1404 2011-05-17 Richard Guenther <rguenther@suse.de>
1406 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1407 case some more, fix final hash value of the non-singleton case.
1409 2011-05-17 Richard Guenther <rguenther@suse.de>
1413 2011-05-16 Richard Guenther <rguenther@suse.de>
1415 * gimple.c (gimple_types_compatible_p_1): Use names of the
1416 type itself, not its main variant.
1417 (iterative_hash_gimple_type): Likewise.
1419 2011-05-17 Richard Guenther <rguenther@suse.de>
1421 * gimple.c (gimple_register_canonical_type): Use the main-variant
1422 leader for computing the canonical type.
1424 2011-05-17 Nick Clifton <nickc@redhat.com>
1426 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1429 * config/rx/rx.md: Add peephole to remove redundant extensions
1431 (bitset_in_memory): Use rx_restricted_mem_operand.
1432 (bitinvert_in_memory): Likewise.
1433 (bitclr_in_memory): Likewise.
1435 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1436 Nick Clifton <nickc@redhat.com>
1438 * config/rx/rx.md: Add peepholes to match a register move followed
1439 by a comparison of the moved register. Replace these with an
1440 addition of zero that does both actions in one instruction.
1442 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1445 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1446 predicate to allow CONST_INT.
1447 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1449 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1451 * opts-common.c (opt_enum_arg_to_value): New.
1452 * opts.h (opt_enum_arg_to_value): Declare.
1453 * config/i386/i386.opt (fpmath): Remove.
1454 (mfpmath=): Use Enum, Init and Save.
1455 (fpmath_unit): New Enum and EnumValue entries.
1456 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1457 name for function fpmath state.
1458 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1459 * config/i386/i386.c: Include diagnostic.h.
1460 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1461 (ix86_target_string): Take enum fpmath_unit value instead of string.
1462 (ix86_debug_options): Update call to ix86_target_string.
1463 (ix86_option_override_internal): Don't process fpmath strings here.
1464 (x86_function_specific_save, ix86_function_specific_restore):
1465 Don't handle fpmath state specially.
1466 (ix86_function_specific_print): Pass fpmath state to
1467 ix86_target_string instead of printing in this function.
1468 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1469 Handle enum attributes.
1470 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1471 (ix86_valid_target_attribute_tree): Update option_strings
1472 handling. Handle fpmath as enum option.
1473 (ix86_can_inline_p): Update field names for function fpmath state.
1474 (ix86_expand_builtin): Update call to ix86_target_string.
1475 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1476 (ix86_fpmath): Remove.
1477 * config/i386/t-i386 (i386.o): Update dependencies.
1479 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1481 PR preprocessor/48677
1482 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1483 from decoded_options[0], not from itself.
1485 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1487 * config/i386/constraints.md (z): New constraint.
1488 * config/i386/i386.c (c): New mode attribute.
1489 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1490 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1491 constraint for operand 0.
1492 (*call_vzeroupper): Ditto.
1493 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1494 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1495 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1496 Use "lzm" constraint for operand 0.
1497 (*call_pop_vzeroupper): Ditto.
1498 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1499 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1500 constraint for operand 0.
1501 (*sibcall_vzeroupper): Ditto.
1502 (*sibcall_rex64_ms_sysv): Ditto.
1503 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1504 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1505 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1506 (*sibcall_pop_vzeroupper): Ditto.
1507 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1508 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1509 mode iterator. Use "<c>zm" constraint for operand 1.
1510 (*call_value_vzeroupper): Ditto.
1511 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1513 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1514 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1515 *call_value_pop_1. Use "lzm" constraint for operand 1.
1516 (*call_value_pop_vzeroupper): Ditto.
1517 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1518 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1519 mode iterator. Use "Uz" constraint for operand 1.
1520 (*sibcall_value_vzeroupper): Ditto.
1521 (*sibcall_value_rex64_ms_sysv): Ditto.
1522 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1523 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1524 constraint for operand 1.
1525 (*sibcall_value_pop_vzeroupper): Ditto.
1526 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1527 and "z" constraint for operand 2.
1528 (*tls_global_dynamic_32_gnu): Ditto.
1529 (*tls_local_dynamic_base_32_gnu): Ditto.
1530 (*tls_local_dynamic_base_64): Ditto.
1531 (*tls_local_dynamic_32_once): Ditto.
1532 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1534 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1536 2011-05-16 Richard Guenther <rguenther@suse.de>
1538 * gimple.c (gimple_types_compatible_p_1): Use names of the
1539 type itself, not its main variant.
1540 (iterative_hash_gimple_type): Likewise.
1542 2011-05-16 Richard Guenther <rguenther@suse.de>
1544 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1545 always visit pointer target and function result and argument types.
1547 2011-05-16 Jason Merrill <jason@redhat.com>
1550 * tree-inline.c (copy_statement_list): Put back recursion.
1552 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1556 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1557 * config/avr/avr.md ("*ior<mode>qi.byte0",
1558 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1560 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1563 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1564 register is needed for a function argument.
1566 2011-05-16 Richard Guenther <rguenther@suse.de>
1568 * gimple.c (struct type_hash_pair): New type.
1569 (type_hash_pair_compare): New function.
1570 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1572 2011-05-16 Revital Eres <revital.eres@linaro.org>
1574 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1576 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1578 * config/i386/i386.md (floating point move splitters): Fix
1579 usage of standard_80387_constant_p.
1580 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1582 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1584 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1586 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1588 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1589 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1590 (tree_ssa_lim_finalize): Likewise.
1592 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1594 * config/i386/constraint.md (Yd, Yx): New register constraints.
1595 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1596 Yd conditional register constraint.
1597 (*movtf_internal): Use standard_sse_constant_opcode.
1598 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1599 Yx conditional register constraint.
1600 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1601 Yd conditional register constraint. Use standard_sse_constant_p to
1602 check for valid SSE constants and call standard_sse_constant_opcode to
1604 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1605 constants and call standard_sse_constant_opcode to output SSE insn.
1606 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1607 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1608 optimize_size is set.
1609 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1611 2011-05-14 Tobias Burnus <burnus@net-b.de>
1613 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1615 2011-05-13 Martin Jambor <mjambor@suse.cz>
1617 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1618 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1619 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1620 (evaluate_conditions_for_ipcp_clone): Removed.
1621 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1622 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1623 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1625 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1627 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1628 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1629 lieu of MAY_HAVE_DEBUG_STMTS.
1630 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1631 debug statements if !MAY_HAVE_DEBUG_STMTS.
1633 2011-05-13 Martin Thuresson <martint@google.com>
1635 PR gcov-profile/47793
1636 * libgcov.c (gcov_exit): Support relative profile paths.
1637 * doc/invoke.texi (-fprofile-dir): Update for above change.
1639 2011-05-13 Richard Guenther <rguenther@suse.de>
1641 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1642 type-pair caching, do not compare hashes.
1644 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1647 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1648 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1650 2011-05-13 Kai Tietz <ktietz@redhat.com>
1652 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1653 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1654 compatible type for TRUTH_NOT_EXPR.
1656 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1658 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1659 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1660 can_create_pseudo_p ().
1662 2011-05-13 Richard Guenther <rguenther@suse.de>
1665 * gimple.c (iterative_hash_gimple_type): Revert change in
1666 pointer target and function result and argument hashing.
1668 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1670 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1671 (*movxf_internal_nointeger): Ditto.
1672 (*movdf_internal_rex64): Ditto.
1673 (*movdf_internal): Ditto.
1674 (*movdf_internal_nointeger): Ditto.
1675 (*movsf_internal): Ditto.
1676 (sincos splitters): Use can_create_pseudo ().
1678 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1680 * config/i386/i386-opts.h: New.
1681 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1682 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1683 ix86_section_threshold): Remove.
1684 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1685 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1687 (ix86_option_override_internal): Don't decode strings for options
1688 other than -march=, -mtune= and -mfpmath=. Don't allow for
1689 __attribute__ uses in remaining diagnostics for options with
1690 string arguments. Don't check for integer arguments being negative.
1691 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1692 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1693 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1694 ix86_branch_cost, ix86_section_threshold): Remove.
1695 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1697 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1699 (masm=): Use Enum and Init.
1700 (asm_dialect): New Enum and EnumValue entries.
1701 (mbranch-cost=): Use UInteger.
1702 (mlarge-data-threshold=): Use UInteger and Init.
1703 (mcmodel=): Use Enum and Init.
1704 (cmodel): New Enum and EnumValue entries.
1705 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1706 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1707 mregparm=): Use UInteger.
1708 (mstringop-strategy=): Use Enum and Init.
1709 (stringop_alg): New Enum and EnumValue entries.
1710 (mtls-dialect=): Use Enum and Init.
1711 (tls_dialect): New Enum and EnumValue entries.
1712 (mabi=): Use Enum and Init.
1713 (calling_abi): New Enum and EnumValue entries.
1714 (mveclibabi=): Use Enum and Init.
1715 (ix86_veclibabi): New Enum and EnumValue entries.
1717 2011-05-13 Nick Clifton <nickc@redhat.com>
1719 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1720 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1722 2011-05-13 Kai Tietz <ktietz@redhat.com>
1725 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1726 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1727 (gimple_boolify): Check for cast for boolean_type_node instead for
1730 2011-05-13 Richard Guenther <rguenther@suse.de>
1732 PR tree-optimization/48172
1733 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1734 multiplying by number of iterations for equal step.
1735 (vect_create_cond_for_alias_checks): Likewise.
1737 2011-05-13 Andreas Schwab <schwab@redhat.com>
1739 * configure.ac: Use AS_HELP_STRING throughout.
1740 * configure: Regenerate.
1742 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1744 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1745 (ix86_emit_restore_regs_using_mov): Likewise.
1746 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1748 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1750 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1751 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1752 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1753 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1754 RTX_OK_FOR_OLO10_P): ...here.
1755 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1758 2011-05-12 Kai Tietz <ktietz@redhat.com>
1760 * gimplify.c (gimple_boolify): Re-boolify expression
1761 arguments even if expression type is of kind BOOLEAN_TYPE.
1762 (gimplify_boolean_expr): Removed.
1763 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1764 and XOR. Additional take care that we keep expression's type.
1765 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1766 of TRUTH_AND|OR|XOR_EXPR.
1768 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1770 PR tree-optimization/48975
1771 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1772 on all bbs here and free and clear ifc_bbs at the end.
1774 2011-05-12 Richard Guenther <rguenther@suse.de>
1776 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1777 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1778 until after simple checks.
1779 (gimple_types_compatible_p): Likewise.
1780 (iterative_hash_gimple_type): Always hash pointer targets
1781 and function return and argument types.
1782 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1783 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1784 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1785 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1786 completely in the simple compare section.
1787 (gimple_register_canonical_type): Query the cache again after
1790 2011-05-12 Richard Guenther <rguenther@suse.de>
1792 PR tree-optimization/48172
1793 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1794 the number of iterations from the segment size calculation.
1795 (vect_create_cond_for_alias_checks): Adjust.
1797 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1800 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1801 if validate_subreg fails.
1803 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1805 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1806 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1809 2011-05-12 DJ Delorie <dj@redhat.com>
1811 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1812 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1813 created builtin into rx_builtins array.
1814 (rx_builtin_decl): New function.
1815 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1817 2011-05-12 DJ Delorie <dj@redhat.com>
1818 Nick Clifton <nickc@redhat.com>
1820 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1821 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1822 (rx_is_legitimate_address): Add pre-decrement and post-increment
1823 addressing in HImode and QImode. Fix test for out of range
1825 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1826 (rx_align_for_label): Test label before extracting its usage count.
1827 (rx_adjust_insn_lengths): Fix selection of insn codes.
1828 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1830 2011-05-11 Jason Merrill <jason@redhat.com>
1832 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1834 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1836 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1837 reindent the subsequent block.
1839 2011-05-11 Satoru Takabayashi <satorux@google.com>
1840 Paul Pluzhnikov <ppluzhnikov@google.com>
1842 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1843 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1844 * config.in: Add LINKER_HASH_STYLE.
1845 * configure.ac: Add --with-linker-hash-style.
1846 * configure: Regenerate.
1848 2011-05-11 Richard Guenther <rguenther@suse.de>
1851 * gimple.c (iterative_hash_canonical_type): Fix typo.
1853 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1855 * config/i386/i386.c (legitimize_tls_address)
1856 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1857 expanders directly for TARGET_GNU2_TLS. Determine pic and
1858 __tls_get_addr symbol reference here. Update call to
1859 gen_tls_global_dynamic_{32,64} for added arguments.
1860 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1861 expanders directly for TARGET_GNU2_TLS. Determine
1862 __tls_get_addr symbol reference here. Update call to
1863 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1864 unique UNSPEC REG_EQUIV to libcall block.
1865 (ix86_tls_get_addr): Declare static.
1866 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1867 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1868 Do not determine pic and __tls_get_addr symbol reference here. Do not
1869 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1870 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1871 (tls_global_dynamic_64): Add operand 2. Do not determine
1872 __tls_get_addr symbol reference here. Do not call
1873 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1874 (tls_local_dynamic_base64): Ditto for operand 1.
1876 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1878 * function.c (expand_function_start): Initialize stack_check_probe_note
1879 only if the generic stack checking mechanism is used.
1881 2011-05-11 Richard Guenther <rguenther@suse.de>
1883 PR tree-optimization/15256
1884 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1885 (A & B) | C, combine (A op CST1) op CST2.
1886 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1887 visit assigns that have uses.
1889 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1891 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1892 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1893 (unpack_ts_type_common_value_fields): ...this. Update comment.
1894 (unpack_value_fields): Adjust for renaming.
1895 (lto_input_ts_type_tree_pointers): Split into...
1896 (lto_input_ts_type_common_tree_pointer): ...this and...
1897 (lto_input_ts_type_non_common_tree_pointers): ...this.
1898 (lto_input_tree_pointers): Adjust for above split.
1899 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1900 (pack_ts_type_common_value_fields): ...this. Update comment.
1901 (lto_output_ts_type_tree_pointers): Split into...
1902 (lto_output_ts_type_common_tree_pointers): ...this and...
1903 (lto_output_ts_type_non_common_tree_pointers): ...this.
1904 (lto_output_tree_pointers): Adjust for above split.
1905 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1906 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1907 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1908 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1910 (struct tree_type): Split into...
1911 (struct tree_type_common: ...this and...
1912 (struct tree_type_with_lang_specific): ...this and...
1913 (struct tree_type_non_common): ...this. Adjust accessor macros
1915 (TYPE_VALUES_RAW): Define.
1916 (union tree_node): Update for above changes.
1917 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1919 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1920 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1921 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1922 * treestructu.def (TS_TYPE): Remove.
1923 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1926 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1929 * tree-ssa.c (reset_debug_uses): New function.
1930 * tree-flow.h (reset_debug_uses): New prototype.
1931 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1932 * tree-loop-distribution.c (generate_loops_for_partition): Call
1933 reset_debug_uses on the stmts that will be removed. Keep around
1934 all debug stmts, don't count them as bits in partition bitmap.
1935 (generate_builtin): Don't count debug stmts or labels as bits in
1938 2011-05-11 Richard Guenther <rguenther@suse.de>
1940 * gimple.c (gimple_type_hash_1): Merge with ...
1941 (gimple_type_hash): ... this.
1942 (gtc_visit): Remove mode parameter and simplify accordingly.
1943 (gimple_types_compatible_p_1): Likewise.
1944 (gimple_types_compatible_p): Likewise.
1945 (iterative_hash_gimple_type): Likewise.
1947 (gimple_type_eq): Adjust.
1949 2011-05-11 Revital Eres <revital.eres@linaro.org>
1951 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1952 enters the branch create an anti edge in the opposite direction
1953 to prevent the creation of reg-moves.
1954 * modulo-sched.c: Adjust comment to reflect the fact we are
1955 scheduling closing branch.
1956 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1957 (stage_count): New field in struct partial_schedule.
1958 (calculate_stage_count): New function.
1959 (normalize_sched_times): Rename to reset_sched_times and handle
1960 incrementing the sched time of the nodes by a constant value
1961 passed as parameter.
1962 (duplicate_insns_of_cycles): Skip closing branch.
1963 (sms_schedule_by_order): Schedule closing branch.
1964 (ps_insn_find_column): Handle closing branch.
1965 (sms_schedule): Call reset_sched_times and adjust the code to
1966 support scheduling of the closing branch.
1967 (ps_insert_empty_row): Update calls to normalize_sched_times
1968 and rotate_partial_schedule functions.
1970 2011-05-11 Richard Guenther <rguenther@suse.de>
1973 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1975 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1977 * opts.c (finish_options): Move warning settings from process_options.
1978 * toplev.c (process_options): Move warning settings to finish_options.
1980 2011-05-11 Richard Guenther <rguenther@suse.de>
1982 PR tree-optimization/18041
1983 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1984 (simplify_bitwise_binary): ... this. Handle operand conversions
1985 by applying them to the result instead.
1986 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1988 2011-05-11 Richard Guenther <rguenther@suse.de>
1990 * gimple.c (gimple_canonical_types_compatible_p): Split out
1991 from gimple_types_compatible_p and friends. Do not recurse
1992 to pointed-to types.
1993 (gimple_canonical_type_eq): Use it.
1994 (iterative_hash_canonical_type): Split out from
1995 iterative_hash_gimple_type and friends. Do not recurse
1996 to pointed-to types.
1997 (gimple_canonical_type_hash): Use it, allocate the hash here.
1999 2011-05-11 Revital Eres <revital.eres@linaro.org>
2001 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2004 2011-05-11 Revital Eres <revital.eres@linaro.org>
2006 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2007 instead of PREV_INSN.
2009 2011-05-11 Revital Eres <revital.eres@linaro.org>
2011 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2012 * loop-doloop.c (doloop_condition_get): Likewise.
2013 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2015 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2017 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2019 * tree.def (CASE_LABEL_EXPR): Add an operand.
2020 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2022 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2024 * c-decl.c (c_override_global_bindings_to_false): Remove.
2025 (global_bindings_p): Don't check
2026 c_override_global_bindings_to_false.
2027 * c-tree.h (c_override_global_bindings_to_false): Remove.
2028 * c-typeck.c (composite_type): Don't set
2029 c_override_global_bindings_to_false.
2031 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2033 PR target/48857, 48495
2034 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2036 (VSX_MOVE_MODE): Ditto.
2037 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2038 VSX vector types. Add V2DImode.
2039 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2040 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2041 (MODES_TIEABLE_P): Ditto.
2043 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2044 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2046 (init_cumulative_args): Ditto.
2047 (rs6000_function_arg_boundary): Ditto.
2048 (rs6000_function_arg_advance_1): Ditto.
2049 (rs6000_function_arg): Ditto.
2050 (rs6000_function_ok_for_sibcall): Ditto.
2051 (emit_frame_save): Ditto.
2052 (rs6000_function_value): Ditto.
2053 (rs6000_libcall_value): Ditto.
2055 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2057 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2058 i386/darwin-lib.h to $libgcc_tm_file.
2059 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2061 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2063 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2065 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2067 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2068 * config/rs6000/rs6000-tables.opt: New file (generated).
2069 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2070 rs6000/rs6000-tables.opt to extra_options.
2071 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2072 * config/rs6000/rs6000.c (rs6000_select): Remove.
2073 (processor_target_table): Move contents to rs6000-cpus.def.
2074 (darwin_rs6000_override_options): Check
2075 global_options_set.x_rs6000_cpu_index instead of
2076 rs6000_select[1].string.
2077 (rs6000_option_override_internal): Likewise.
2078 (rs6000_handle_option): Don't assert that global structures are in
2079 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2080 (rs6000_default_cpu): New variable.
2081 (rs6000_file_start): Set it instead of local default_cpu. Check
2082 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2083 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2084 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2085 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2086 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2087 rs6000_select): Remove.
2088 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2090 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2091 * config/rs6000/t-rs6000
2092 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2093 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2094 global_options_set.x_rs6000_cpu_index instead of
2095 rs6000_select[1].string.
2096 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2097 global_options_set.x_rs6000_cpu_index instead of
2098 rs6000_select[1].string.
2100 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2102 * config.gcc (libgcc_tm_file): Define instead of including files
2103 from ../../libgcc/config/ in tm_file.
2104 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2105 * configure: Regenerate.
2106 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2107 libgcc_tm.h, cs-libgcc_tm.h): New.
2108 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2109 (clean): Remove libgcc_tm.h.
2110 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2111 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2112 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2114 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2117 * config/avr/avr.c (avr_ret_register): Return unsigned int
2119 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2120 it to avr_libcall_value.
2121 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2123 (avr_expand_binop_builtin): Ditto.
2124 (avr_expand_unop_builtin): Ditto.
2126 2011-05-10 DJ Delorie <dj@redhat.com>
2128 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2129 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2130 * config/rx/rx.c (rx_align_for_label): Add label and
2131 uses_threshold parameters. Do not align when the label is not
2133 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2135 2011-05-10 Richard Guenther <rguenther@suse.de>
2137 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2138 a series of conversions and apply foldings similar to what
2140 (tree_ssa_forward_propagate_single_use_vars): Call it.
2142 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2144 PR tree-optimization/48611
2145 PR tree-optimization/48794
2146 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2147 referenced from RESX or EH_DISPATCH arguments.
2150 * dfp.c (decimal_to_decnumber): Handle conversion from
2151 dconst{1,2,m1,half}.
2153 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2155 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2156 for !flag_prefer_avx128.
2157 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2159 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2161 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2162 (fold_ternary_loc): Use expr_location_or.
2164 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2167 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2168 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2169 Pmode and mem_mode is not VOIDmode.
2171 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2173 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2174 TYPE_QUAL_RESTRICT): Convert to enum.
2176 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2178 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2179 (const_pow2_1_to_8_operand): Ditto.
2180 (const_pow2_1_to_128_operand): Ditto.
2181 (const_pow2_1_to_32768_operand): Ditto.
2182 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2183 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2184 in insn constraint to check integer value of operand 3.
2185 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2187 (PINSR_MODE): New mode iterator.
2188 (sse2p4_1): New mode attribute.
2189 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2190 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2191 iterator. Use const_int_operand instead of
2192 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2193 exact_log2 in insn constraint to check integer value of operand 3.
2195 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2197 * config/i386/sse.md (blendbits): Remove mode attribute.
2198 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2199 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2200 Check integer value of operand 3 in insn constraint.
2202 2011-05-09 Richard Guenther <rguenther@suse.de>
2204 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2206 (lto_symtab_merge): Likewise. Do not register types here.
2207 (lto_symtab_merge_decls_2): Likewise.
2208 (lto_symtab_merge_decls_1): Likewise.
2209 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2210 * gimple.c (enum gtc_mode): Declare.
2211 (gimple_types_compatible_p): Make static.
2213 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2215 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2216 temporary register to match Pmode.
2218 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2220 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2221 and *vec_concatv4si_1_avx.
2223 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2225 PR rtl-optimization/48927
2226 * ira-conflicts.c (commutative_constraint_p): Use
2227 recog_data.alternative_enabled_p to disable alternatives where
2228 "enabled" attribute is false.
2229 (get_dup_num): Ditto.
2230 * ira-lives.c (single_reg_class): Ditto.
2231 (ira_implicitly_set_insn_hard_regs): Ditto.
2233 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2235 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2236 (dataflow_set_preserve_mem_locs): Likewise.
2238 2011-05-09 Philipp Thomas <pth@suse.de>
2240 * config/mep/mep.c (mep_validate_vliw): Syntax description
2241 should not be translated.
2243 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2245 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2246 * config/mips/mips-tables.opt: New file (generated).
2247 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2248 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2249 MIPS_ARCH_OPTION_NATIVE): Define.
2250 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2252 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2253 mips_parse_cpu): Remove.
2254 (mips_cpu_info_from_opt, mips_default_arch): New.
2255 (mips_handle_option): Don't assert that global structures are in
2256 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2257 (mips_option_override): Use new variables and functions to set
2258 state of these options. Use strcmp to check for individual CPU names.
2259 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2261 * config/mips/mips.opt (march=): Use ToLower and Enum.
2262 (mips): Use ToLower, Enum and Var.
2263 (mtune=): Use ToLower and Enum.
2264 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2266 2011-05-08 Jan Hubicka <jh@suse.cz>
2268 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2269 Arrange type pairs to be UID ordered.
2270 (gimple_lookup_type_leader): Make inline.
2272 2011-05-09 Nick Clifton <nickc@redhat.com>
2275 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2279 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2282 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2284 * combine.c (simplify_comparison): Abstract out parts into...
2285 (simplify_compare_const): ... new function.
2286 (try_combine): Generalize parallel arithmetic/compare combining
2287 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2289 2011-05-08 Jan Hubicka <jh@suse.cz>
2291 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2292 (cgraph_create_virtual_clone): Call hooks once virtual clone
2294 * cgraph.h (cgraph_clone_node): Update prototype.
2295 * ipa-cp.c (ipcp_estimate_growth): Use
2296 estimate_ipcp_clone_size_and_time.
2297 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2298 * lto-cgraph.c (input_node): Update.
2299 * ipa-inline.c (recursive_inlining): Update.
2300 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2301 (evaluate_conditions_for_known_args): Break out from ...
2302 (evaluate_conditions_for_edge): ... here.
2303 (evaluate_conditions_for_ipcp_clone): New function.
2304 (inline_node_duplication_hook): Update clone summary based
2306 (estimate_callee_size_and_time): Rename to ...
2307 (estimate_node_size_and_time): take NODE instead of EDGE;
2308 take POSSIBLE_TRUTHS as argument.
2309 (estimate_callee_size_and_time): Update.
2310 (estimate_ipcp_clone_size_and_time): New function.
2311 (do_estimate_edge_time): Update.
2313 2011-05-08 Richard Guenther <rguenther@suse.de>
2317 * expmed.c (expand_shift_1): Compute adjusted constant shift
2320 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2322 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2324 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2326 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2328 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2330 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2332 2011-05-07 Jan Hubicka <jh@suse.cz>
2334 * ipa-inline-transform.c (inline_call): Account when program size
2336 * ipa-inline.c (relative_time_benefit): New function.
2337 (edge_badness): Reorganize to be power 2 based; fix thinko when
2338 computing badness for negative growth; update comments to match
2339 reality; better dumps.
2341 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2343 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2344 type to bool and adjust comment.
2345 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2346 (fold_mathfn_compare): Remove calls to global_bindings_p.
2347 (fold_inf_compare): Likewise.
2348 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2349 * c-tree.h (global_bindings_p): Adjust prototype.
2350 * c-decl.c (global_bindings_p): Return bool and simplify.
2352 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2354 PR tree-optimization/48837
2355 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2356 when accumulator transformation is performed.
2358 2011-05-06 Jan Hubicka <jh@suse.cz>
2360 * i386.h (ix86_tune_indices): Add
2361 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2362 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2363 * i386.c (initial_ix86_tune_features): Add
2364 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2365 (software_prefetching_beneficial_p): Remove predicate.
2366 (ix86_option_override_internal): Use new macro.
2368 2011-05-06 Jan Hubicka <jh@suse.cz>
2370 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2372 2011-05-06 Jan Hubicka <jh@suse.cz>
2374 * cgraph.c (cgraph_add_thunk): Create real function node instead
2375 of alias node; finalize it and mark needed/reachale; arrange visibility
2376 to be right and add it into the corresponding same comdat group list.
2377 (dump_cgraph_node): Dump thunks.
2378 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2379 cgraph_function_with_gimple_body_p,
2380 cgraph_first_function_with_gimple_body,
2381 cgraph_next_function_with_gimple_body): New functions.
2382 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2384 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2385 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2386 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2387 devirtualization when optimizing.
2388 (verify_cgraph_node): Verify thunks.
2389 (cgraph_analyze_function): Analyze thunks.
2390 (cgraph_mark_functions_to_output): Output thunks only in combination
2391 with function they are assigned to.
2392 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2393 alias into normal node.
2394 (assemble_thunks): New functoin.
2395 (cgraph_expand_function): Use it.
2396 * lto-cgraph.c (lto_output_node): Stream thunks.
2397 (input_overwrite_node): Stream in thunks.
2398 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2399 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2400 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2401 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2402 (inline_analyze_function): Do not care about thunk jump functions.
2403 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2404 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2405 cgraph_function_with_gimple_body_p.
2406 * passes.c (do_per_function_toporder): Use
2407 cgraph_function_with_gimple_body_p.
2408 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2409 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2410 (function_called_by_processed_nodes_p): Likewise.
2412 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2414 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2415 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2417 (mabi=): Replace with separate entries for mabi=altivec,
2418 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2419 mabi=ieeelongdouble and mabi=ibmlongdouble.
2420 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2421 check for -mabi=spe without SPE ABI support here.
2422 (rs6000_handle_option): Replace OPT_mabi_ handling with
2423 OPT_mabi_altivec and OPT_mabi_spe handling.
2425 2011-05-06 Cary Coutant <ccoutant@google.com>
2427 * dwarf2out.c (contains_subprogram_definition): New function.
2428 (should_move_die_to_comdat): Call it.
2430 2011-05-06 Jeff Law <law@redhat.com>
2432 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2433 remove_ctrl_stmt_and_useless_edges.
2434 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2435 (fixup_template_block, thread_single_edge): Likewise.
2436 (mark_threaded_blocks): Use THREAD_TARGET.
2438 2011-05-06 Alan Modra <amodra@gmail.com>
2441 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2442 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2444 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2446 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2447 constraint modifier to "r".
2449 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2451 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2452 fall through for OPT_mcmodel_.
2454 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2456 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2458 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2460 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2463 * config/arm/arm.opt (marm): Document it.
2464 (mthumb): Reject negative variant.
2466 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2469 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2470 Fix typo in "ccvt" variable name.
2472 2011-05-06 Tristan Gingold <gingold@adacore.com>
2475 * config/vms/vms-ar.c (main): Remove cwd variable.
2477 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2480 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2482 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2484 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2485 * gimplify.c (gimplify_switch_expr): Likewise.
2486 * omp-low.c (expand_omp_sections): Likewise.
2487 * tree-eh.c (lower_try_finally_switch): Likewise.
2488 (lower_eh_dispatch): Likewise.
2489 * tree.h (build_case_label): Declare.
2490 * tree.c (build_case_label): Define.
2492 2011-05-05 Jason Merrill <jason@redhat.com>
2495 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2496 (copy_statement_list): Don't recurse.
2497 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2500 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2502 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2503 through from -mfpu= handling.
2504 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2506 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2508 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2511 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2513 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2515 (hppa[12]*-*-hpux11*): Ditto.
2516 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2517 * config/ia64/hpux-unix2003.h: New.
2518 * config/pa/pa-hpux1131.opt: New.
2519 * config/pa/pa-hpux1131.h: New.
2520 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2521 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2522 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2524 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2527 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2528 instead of mode as 3rd argument to recursive call.
2529 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2530 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2532 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2533 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2534 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2535 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2537 2011-05-05 Julian Brown <julian@codesourcery.com>
2539 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2540 parenthesis in D-register case.
2542 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2544 * opt-functions.awk (var_type_struct): Handle Enum options.
2545 * optc-gen.awk: Don't check range of variables of character type.
2546 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2547 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2548 rs6000_sdata_name, rs6000_explicit_options): Remove.
2549 (rs6000_option_override_internal): Check for -malign-power here.
2550 Use global_options_set instead of rs6000_explicit_options.
2551 (rs6000_parse_fpu_option): Remove.
2552 (rs6000_handle_option): Access variables via opts and opts_set
2553 pointers. Use error_at and warning_at. Add fall-through
2554 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2555 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2556 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2557 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2558 here. Don't use rs6000_parse_fpu_option.
2559 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2560 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2561 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2563 (mspe): Use Var and Save.
2564 (mtraceback=): Use Enum and Var.
2565 (rs6000_traceback_type): New Enum and EnumValue entries.
2566 (mfloat-gprs=): Use Enum, Var and Save.
2567 (rs6000_float_gprs): New Enum and EnumValue entries.
2568 (mlong-double-): use Var and Save.
2569 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2570 (malign-): Use Enum and Var.
2571 (rs6000_alignment_flags): New Enum and EnumValue entries.
2573 (fpu_type_t): New Enum and EnumValue entries.
2574 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2575 global_options_set instead of rs6000_explicit_options.
2576 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2577 global_options_set instead of rs6000_explicit_options.
2578 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2579 global_options_set instead of rs6000_explicit_options.
2580 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2581 global_options_set instead of rs6000_explicit_options.
2582 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2583 global_options_set instead of rs6000_explicit_options.
2584 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2585 global_options_set instead of rs6000_explicit_options.
2586 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2588 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2589 global_options_set instead of rs6000_explicit_options.
2590 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2591 (rs6000_cmodel): New Enum and EnumValue entries.
2592 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2593 global_options_set instead of rs6000_explicit_options.
2594 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2595 (mtls-size=): Use Enum and Var.
2596 (rs6000_tls_size): New Enum and EnumValue entries.
2598 2011-05-05 Michael Matz <matz@suse.de>
2600 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2601 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2602 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2603 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2604 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2605 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2606 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2607 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2608 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2609 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2610 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2611 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2612 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2613 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2614 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2615 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2617 2011-05-05 Richard Guenther <rguenther@suse.de>
2619 * expmed.c (expand_variable_shift): Rename to ...
2620 (expand_shift_1): ... this. Take an expanded shift amount.
2621 For rotates recurse directly not building trees for the shift amount.
2622 (expand_variable_shift): Wrap around expand_shift_1.
2623 (expand_shift): Adjust.
2625 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2627 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2629 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2631 * tree.h (get_pending_sizes): Remove prototype.
2632 (put_pending_size): Likewise.
2633 (put_pending_sizes): Likewise.
2634 * stor-layout.c (pending_sizes): Delete.
2635 (get_pending_sizes): Likewise.
2636 (put_pending_size): Likewise.
2637 (put_pending_sizes): Likewise.
2638 (variable_size): Do not call put_pending_size and tidy up.
2639 * function.h (struct function): Remove dont_save_pending_sizes_p.
2640 * lto-streamer-in.c (input_function): Do not stream it.
2641 * lto-streamer-out.c (output_function): Likewise.
2642 * tree-inline.c (initialize_cfun): Do not copy it.
2643 * c-decl.c (store_parm_decls): Do not set it.
2644 * omp-low.c (create_task_copyfn): Likewise.
2645 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2647 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2649 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2651 (*movdf_internal): Ditto.
2652 (*movdf_internal_nointeger): Ditto.
2653 (*movsf_internal): Ditto.
2655 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2657 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2658 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2659 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2660 (c_variable_size): Remove.
2661 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2662 call put_pending_sizes.
2663 (get_parm_info): Add parameter expr. Use it to set
2664 arg_info->pending_sizes.
2665 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2667 * c-parser.c (c_parser_parms_declarator): Update call to
2668 c_parser_parms_list_declarator.
2669 (c_parser_parms_list_declarator): Take parameter expr. Update
2670 call to push_parm_decl. Update recursive call. Don't call
2671 get_pending_sizes. Update calls to get_parm_info.
2672 (c_parser_objc_method_definition): Update calls to
2673 c_parser_objc_method_decl and objc_start_method_definition.
2674 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2675 (c_parser_objc_method_decl): Add parameter expr. Update call to
2677 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2678 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2679 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2681 2011-05-05 Michael Hope <michael.hope@linaro.org>
2684 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2687 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2689 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2690 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2691 (spu_output_mi_thunk): New function.
2693 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2695 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2696 targetm.asm_out.print_operand.
2697 * config/sol2.c: Include target.h.
2699 2011-05-04 Jan Hubicka <jh@suse.cz>
2701 * ipa-inline.c (reset_edge_caches): New function.
2702 (update_caller_keys): Add check_inlinablity_for; do not
2703 reset edge caches; remove now unnecesary loop.
2704 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2705 (update_all_callee_keys): Likewise.
2706 (inline_small_functions): Sanity check cache; update code
2709 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2711 PR rtl-optimization/47612
2712 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2713 as the last insn of the sequence to be moved.
2715 2011-05-04 Tobias Burnus <burnus@net-b.de>
2718 * doc/invoke.texi (Ofast): Document that it
2719 enables Fortran's -fno-protect-parens.
2721 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2723 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2725 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2727 * stor-layout.c (variable_size): Do not issue errors.
2729 2011-05-04 Richard Guenther <rguenther@suse.de>
2731 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2732 for array-ref indices.
2733 (tree_coverage_counter_addr): Likewise.
2734 (build_fn_info_type): Use size_int for index types.
2735 (build_gcov_info): Likewise.
2737 2011-05-04 Richard Guenther <rguenther@suse.de>
2739 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2741 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2742 for constructor indices.
2743 (push_init_level): Likewise.
2745 2011-05-04 Richard Guenther <rguenther@suse.de>
2747 * explow.c (promote_mode): Move variable declarations before code.
2749 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2751 * tree.h (build_function_type_array): Declare.
2752 (build_varargs_function_type_array): Declare.
2753 (build_function_type_vec, build_varargs_function_type_vec): Define.
2754 * tree.c (build_function_type_array_1): New function.
2755 (build_function_type_array): New function.
2756 (build_varargs_function_type_array): New function.
2758 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2760 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2761 before setting STMT_VINFO_TYPE.
2763 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2765 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2766 instead of spu_pass_by_reference.
2768 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2770 * calls.c (emit_library_call_value_1): Invoke
2771 promote_function_mode hook on libcall arguments.
2772 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2773 argument being NULL.
2774 * targhooks.c (default_promote_function_mode): Lisewise.
2775 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2776 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2778 * doc/tm.texi: Document that TYPE argument might be NULL.
2780 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2782 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2784 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2787 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2789 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2791 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2792 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2794 * mips-tfile.c: ... here.
2795 Don't include coretypes.h, tm.h, filenames.h.
2796 (saber_stop): Remove definition and all calls.
2797 [__SABER__]: Remove.
2798 (__LINE__): Remove default.
2799 (Size_t, Ptrdiff_t): Remove definitions.
2800 Replace by size_t, ptrdiff_t.
2801 [!MIPS_DEBUGGING_INFO]: Remove.
2802 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2803 (progname): Add const.
2805 Replace all uses by static.
2806 (ALIGN_SYMTABLE_OFFSET): Remove default.
2807 * mips-tdump.c: Don't include coretypes.h, tm.h.
2808 Remove !MIPS_IS_STAB guard.
2809 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2810 $(TM_H), filenames.h dependencies.
2811 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2813 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2816 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2817 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2819 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2822 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2823 account and save/restore RETS.
2824 (PROFILE_BEFORE_PROLOGUE): Define.
2825 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2826 the push insn to use predecrement.
2828 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2831 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2833 2011-05-04 Nick Clifton <nickc@redhat.com>
2835 * config/mn10300/mn10300.c: Include cfgloop.h.
2837 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2838 Lcc or a FLcc insn into the instruction stream.
2839 (mn10300_block_contains_call): New function. Returns true if the
2840 given basic block contains a CALL insn.
2841 (mn10300_loop_contains_call_insn): New function. Returns true if
2842 the given loop contains a CALL insn.
2843 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2844 to use the SETLB and Lcc or FLcc insns.
2845 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2846 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2847 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2848 disable the SETLB optimization.
2849 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2850 __SETLB__ or __NO_SETLB__.
2851 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2852 (movsf_internal): Handle MDR register.
2853 (cmpsi): Make visible.
2854 (setlb): New pattern.
2856 (FLcc): New pattern.
2858 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2861 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2862 for reg<->xmm moves.
2863 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2864 (vec_concatv2di_rex64_sse): Ditto.
2865 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2866 (*vec_extractv2di_1_rex64): Ditto.
2869 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2871 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2873 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2875 2011-05-04 Richard Guenther <rguenther@suse.de>
2877 * tree.h (int_const_binop): Remove notrunc argument.
2878 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2879 create integer constants that are properly truncated.
2880 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2881 (const_binop): Remove zero notrunc argument to int_const_binop.
2882 (size_binop_loc): Likewise.
2883 (fold_div_compare): Likewise.
2884 (maybe_canonicalize_comparison_1): Likewise.
2885 (fold_comparison): Likewise.
2886 (fold_binary_loc): Likewise.
2887 (multiple_of_p): Likewise.
2888 * expr.c (store_constructor): Likewise.
2889 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2890 (maybe_fold_stmt_addition): Likewise.
2891 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2892 * stor-layout.c (layout_type): Likewise.
2893 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2894 * tree-sra.c (build_ref_for_offset): Likewise.
2895 (build_user_friendly_ref_for_offset): Likewise.
2896 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2897 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2898 * tree-ssa-loop-niter.c (inverse): Likewise.
2899 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2900 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2901 * tree-switch-conversion.c (check_range): Likewise.
2902 (build_constructors): Likewise.
2903 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2904 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2905 (extract_range_from_assert): Likewise.
2906 (vrp_int_const_binop): Likewise.
2907 (extract_range_from_binary_expr): Likewise.
2908 (extract_range_from_unary_expr): Likewise.
2909 (check_array_ref): Likewise.
2910 (find_case_label_range): Likewise.
2911 (simplify_div_or_mod_using_ranges): Likewise.
2912 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2913 comparing case labels for merging.
2915 2011-05-03 Mark Wielaard <mjw@redhat.com>
2917 * dwarf2out.c (debug_str_hash_forced): Removed.
2918 (gen_label_for_indirect_string): Removed.
2919 (get_debug_string_label): Removed.
2920 (AT_string_form): Generate label directly.
2921 (output_indirect_string): Test indirect_string_node for
2922 DW_FORM_strp instead of checking label and refcount.
2923 (prune_indirect_string): Removed.
2924 (prune_unused_types): Don't check debug_str_hash_forced or
2925 call prune_indirect_string.
2927 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2930 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2932 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2936 * combine.c (try_combine): Skip debug insns at m_split tests.
2938 2011-04-26 Mark Wielaard <mjw@redhat.com>
2941 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2942 when info_section_emitted.
2944 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2946 * config/mips/mips-opts.h: New.
2947 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2949 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2950 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2951 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2953 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2955 (mips_abi, mips_code_readable): Don't declare.
2956 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2957 (mabi=): Use Enum and Var.
2958 (mips_abi): New Enum and EnumValue entries.
2959 (mcode-readable=): Use Enum and Var.
2960 (mips_code_readable_setting): New Enum and EnumValue entries.
2961 (mr10k-cache-barrier=): Use Enum and Var.
2962 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2964 2011-05-03 Jan Hubicka <jh@suse.cz>
2966 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2967 replace hash by pointer map.
2968 (cgraph_node_set_element_def, cgraph_node_set_element,
2969 const_cgraph_node_set_element, varpool_node_set_element_def,
2970 varpool_node_set_element, const_varpool_node_set_element): Remove.
2971 (free_cgraph_node_set, free_varpool_node_set): New function.
2972 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2973 * tree-emutls.c: Free varpool node set.
2974 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2975 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2976 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2977 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2978 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2979 Move here from ipa.c; implement using pointer_map
2980 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2981 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2982 debug_cgraph_node_set, varpool_node_set_new,
2983 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2984 dump_varpool_node_set, debug_varpool_node_set):
2985 Move to ipa-uitls.c.
2986 * passes.c (ipa_write_summaries): Update.
2988 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2990 From Mike Frysinger:
2991 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2992 bf542/bf544/bf547/bf548/bf549.
2994 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2996 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2998 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3001 * config/bfin/bfin.md (MOVCC): New mode_macro.
3002 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3003 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3004 comments from generated assembly.
3006 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3009 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3010 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3011 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3012 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3013 * config/bfin/lib1funcs.asm (___muldi3): New function.
3015 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3017 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3018 build_function_type_list instead of build_function_type.
3019 Rearrange initialization of `args' to do so.
3021 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3023 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3024 instead of build_function_type.
3026 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3028 * config/rs6000/rs6000.c (spe_init_builtins): Call
3029 build_function_type_list instead of build_function_type.
3030 (paired_init_builtins, altivec_init_builtins): Likewise.
3031 (builtin_function_type): Likewise.
3033 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3035 * config/sh/sh.c (sh_media_init_builtins): Call
3036 build_function_type_list instead of build_function_type.
3038 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3040 * config/sparc/sparc.c (sparc_file_end): Call
3041 build_function_type_list instead of build_function_type.
3043 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3045 * config/alpha/alpha.c (alpha_init_builtins): Call
3046 build_function_type_list instead of build_function_type.
3048 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3050 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3051 build_function_type_list instead of build_function_type.
3053 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3055 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3056 build_function_type_list instead of build_function_type.
3057 Delete `endlink' variable.
3059 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3061 * config/avr/avr.c (avr_init_builtins): Call
3062 build_function_type_list instead of build_function_type.
3064 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3066 * config/picochip/picochip.c (picochip_init_builtins): Call
3067 build_function_type_list instead of build_function_type.
3068 Delete `endlink' variable.
3070 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3072 * config/bfin/bfin.c (bfin_init_builtins): Call
3073 build_function_type_list instead of build_function_type.
3075 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3078 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3079 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3081 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3084 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3085 libbffastfp overrides libgcc when -mfast-fp.
3087 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3089 Originally from Bernd Schmidt
3090 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3091 * config/bfin/bfin.c (override_options): Test it and error if
3094 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3096 Originally From Bernd Schmidt
3097 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3100 2011-05-03 Jeff Law <law@redhat.com>
3102 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3103 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3104 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3105 than accessing AUX field directly. Free the AUX field before
3107 (thread_block, thread_through_loop_header): Likewise.
3108 (thread_single_edge, mark_threaded_blocks): Likewise.
3109 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3110 (register_jump_thread): Do not attempt to thread to a NULL edge.
3112 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3114 * function.c (init_function_start): Call decide_function_section.
3115 * varasm.c (decide_function_section): New function.
3116 (assemble_start_function): When not using
3117 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3118 or first_function_block_is_cold.
3119 * rtl.h (decide_function_section): Declare.
3121 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3122 Jakub Jelinek <jakub@redhat.com>
3125 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3126 only succeed if req_mode is the same as set_mode.
3128 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3130 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3131 * genemit.c (gen_exp): Handle RETURN.
3132 * emit-rtl.c (verify_rtx_sharing): Likewise.
3133 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3134 * rtl.c (copy_rtx): RETURN is shared.
3135 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3137 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3138 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3139 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3140 * config/cris/cris.c (cris_expand_return): Likewise.
3141 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3142 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3143 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3144 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3145 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3147 * config/v850/v850.c (expand_epilogue): Likewise.
3148 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3149 * config/arm/arm.md (epilogue): Likewise.
3150 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3151 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3152 variable to ret_reg.
3154 2011-05-03 Richard Guenther <rguenther@suse.de>
3157 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3158 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3159 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3161 2011-05-03 Richard Guenther <rguenther@suse.de>
3163 * c-decl.c (grokdeclarator): Instead of looking at
3164 TREE_OVERFLOW check if the constant fits in the index type.
3166 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3168 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3169 (vec_store_lanes<mode><mode>): Likewise.
3171 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3173 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3174 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3175 convert_optab_index values.
3176 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3177 * genopinit.c (optabs): Initialize the new optabs.
3178 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3179 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3180 (expand_STORE_LANES): New functions.
3181 * tree.h (build_array_type_nelts): Declare.
3182 * tree.c (build_array_type_nelts): New function.
3183 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3184 (vect_model_load_cost): Likewise.
3185 (vect_store_lanes_supported, vect_load_lanes_supported)
3186 (vect_record_strided_load_vectors): Declare.
3187 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3188 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3189 (vect_transform_strided_load): Split out statement recording into...
3190 (vect_record_strided_load_vectors): ...this new function.
3191 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3192 (write_vector_array, create_array_ref): New functions.
3193 (vect_model_store_cost): Add store_lanes_p argument.
3194 (vect_model_load_cost): Add load_lanes_p argument.
3195 (vectorizable_store): Try to use store-lanes functions for
3197 (vectorizable_load): Likewise load-lanes and loads.
3198 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3199 to vect_model_store_cost.
3200 (vect_build_slp_tree): Likewise vect_model_load_cost.
3202 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3204 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3205 * hooks.c (hook_bool_mode_uhwi_false): New function.
3206 * target.def (array_mode_supported_p): New hook.
3207 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3208 * doc/tm.texi: Regenerate.
3209 * stor-layout.c (mode_for_array): New function.
3210 (layout_type): Use it.
3211 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3212 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3214 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3217 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3218 for -fstack-check if the size to allocate is negative.
3220 2011-05-02 Lawrence Crowl <crowl@google.com>
3222 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3223 (timevar_cond_start): New for starting a timer only when it is not
3225 (timevar_cond_stop): New for stopping a timer when it was not already
3228 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3229 (timevar_cond_start): New as above.
3230 (timevar_cond_stop): New as above.
3232 * timevar.def: Add start/stop timers for compiler phases,
3233 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3234 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3235 and TV_PHASE_FINALIZE.
3236 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3237 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3238 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3239 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3240 Make unused TV_OVERLOAD into a start/stop timer.
3242 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3243 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3244 to indicate that they are start/stop timers.
3246 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3247 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3248 Move initialization to do_compile.
3249 (do_compile): Add initialization from above.
3250 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3252 * c-decl.c (c_write_global_declarations): Add start/stop of
3253 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3255 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3256 or TV_PARSE_INLINE, as appropriate.
3257 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3258 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3260 2011-05-02 Jason Merrill <jason@redhat.com>
3263 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3265 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3268 * c-decl.c (finish_decl): Only create a composite if the types are
3271 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3273 * config/fr30/fr30-protos.h (Mmode): Don't define.
3274 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3275 definition where used.
3276 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3277 define. Expand definitions where used.
3278 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3279 Expand definitions where used.
3280 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3281 rx_function_arg, rx_function_arg_advance,
3282 rx_function_arg_boundary): Expand definitions of those macros.
3283 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3284 definition where used.
3286 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3288 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3290 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3291 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3292 with *movv2sf_internal_rex64_avx.
3293 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3294 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3295 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3296 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3297 "vex" in "prefix" attribute calculation.
3298 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3300 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3303 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3304 inputs match the output.
3306 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3309 * config/m68k/m68k.c (m68k_expand_prologue): Set
3310 current_function_static_stack_size.
3312 2011-05-02 Jan Hubicka <jh@suse.cz>
3314 * lto-streamer.c (lto_streamer_cache_insert_1,
3315 lto_streamer_cache_lookup, lto_streamer_cache_create,
3316 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3317 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3319 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3321 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3322 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3323 config/m68k/t-opts: New files.
3324 * config/m68k/m68k-tables.opt: New file (generated).
3325 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3326 extra_options and m68k/t-opts to tmake_file.
3327 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3328 (all_isas): Initialize using m68k-isas.def.
3329 (all_microarchs): Initialize using m68k-microarchs.def.
3330 (m68k_find_selection): Remove.
3331 (m68k_handle_option): Don't assert that global structures are in
3332 use. Use error_at. Access variables via opts pointer. Don't
3333 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3334 directly for -m68020-40 and -m68020-60.
3335 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3336 m68k_tune_entry here.
3337 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3339 (m68k_library_id_string): Remove declaration.
3340 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3341 (m68k_library_id_string): New Variable.
3342 (march=, mcpu=, mtune=): Use Enum and Var.
3344 2011-05-02 Richard Guenther <rguenther@suse.de>
3346 * varasm.c (output_constructor_regular_field): Compute zero-based
3347 index with double-ints. Make sure to ICE instead of producing
3349 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3350 in asserts. Properly use a signed type.
3352 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3354 * config/i386/sse.md (V): New mode iterator.
3355 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3357 (V_256): Rename from AVX256MODE.
3358 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3359 condition to all users.
3361 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3362 condition to all users.
3363 (VF_128): Make V4SF mode unconditional.
3364 (VF_256): Rename from AVX256MODEF2P.
3365 (VI4F_128): Rename from SSEMODE4S.
3366 (VI8F_128): Rename from SSEMODE2D.
3367 (VI4F_256): Rename from AVX256MODE8P.
3368 (VI8F_256): Rename from AVX256MODE4P.
3369 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3370 (ssescalarmodesuffix): Remove SF and DF modes.
3371 (SSEMODE124): Remove.
3372 (SSEMODE1248): Ditto.
3373 (SSEMODEF2P): Ditto.
3374 (AVXMODEF2P): Ditto.
3375 (AVXMODEFDP): Ditto.
3376 (AVXMODEFSP): Ditto.
3377 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3379 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3381 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3382 xop_pcmov_<mode>256. Use V mode iterator.
3384 Adjust RTX patterns globally for renamed mode attributes.
3386 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3388 * haifa-sched.c (sched_emit_insn): Emit insn before first
3389 non-scheduled insn. Inform back-end about new insn. Add
3390 new insn to scheduled_insns list.
3392 2011-05-02 Richard Guenther <rguenther@suse.de>
3394 PR tree-optimization/48822
3395 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3396 (process_scc): Indicate which iteration we start.
3398 2011-05-02 Jan Hubicka <jh@suse.cz>
3400 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3401 (lto_section_overrun): New.
3402 * lto-section-out.c (append_block): Rename to ...
3403 (lto_append_block): ... this one; export.
3404 (lto_output_1_stream): Move lto lto-streamer.h
3405 (lto_output_data_stream): Update.
3406 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3407 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3410 2011-05-02 Richard Guenther <rguenther@suse.de>
3412 * tree.c (tree_code_counts): New global array.
3413 (record_node_allocation_statistics): Count individual tree codes.
3414 (dump_tree_statistics): Dump individual code stats.
3416 2011-05-01 Jan Hubicka <jh@suse.cz>
3418 * ipa-inline.c (caller_growth_limits): Fix thinko when
3419 looking for largest stack frame.
3420 * ipa-inline.h (dump_inline_summary): Declare.
3421 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3423 (dump_inline_summary): Export.
3424 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3426 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3428 * reginfo.c (memory_move_cost): Change rclass argument type form
3429 'enum reg_class' to reg_class_t.
3430 * reload.h (memory_move_cost): Update prototype.
3431 * postreload.c reload_cse_simplify_set): Change type dclass var to
3433 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3435 (ira_allocate_and_set_costs): Change aclass argument type form
3436 'enum reg_class' to reg_class_t.
3437 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3438 Change aclass argument type to reg_class_t.
3439 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3441 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3442 memory_move_cost call.
3444 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3445 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3446 Change type tmp var to reg_class_t.
3448 2011-04-30 Jan Hubicka <jh@suse.cz>
3450 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3451 inlining into function with flatten attribute.
3452 (want_inline_small_function_p): Be more realistic about inlining
3453 cold calls where callee size grows.
3455 2011-04-30 Jan Hubicka <jh@suse.cz>
3457 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3460 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3462 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3463 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3464 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3465 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3466 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3467 (print_operand): Rename to...
3468 (sparc_print_operand): ...this. Make static. Adjust
3469 sparc_print_operand function call.
3470 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3473 2011-04-30 Jan Hubicka <jh@suse.cz>
3476 * ipa-inline.c (early_inliner): Disable when doing late
3477 addition of function.
3479 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3481 * dwarf2out.c (get_address_mode): New inline.
3482 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3483 if not dwarf_strict emit
3484 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3485 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3486 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3487 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3488 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3489 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3490 mem_loc_descriptor callers.
3491 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3492 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3493 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3494 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3495 (base_types): New variable.
3496 (get_base_type_offset, calc_base_type_die_sizes,
3497 base_type_for_mode, mark_base_types, base_type_cmp,
3498 move_marked_base_types): New functions.
3499 (calc_die_sizes): Assert that die_offset is 0 or equal to
3501 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3502 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3503 callers. If not dwarf_strict, call mem_loc_descriptor even for
3504 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3505 (gen_subprogram_die): Don't give up on call site parameters
3506 with non-integral or large integral modes. Adjust
3507 mem_loc_descriptor callers.
3508 (prune_unused_types): Call prune_unused_types_mark on base_types
3510 (resolve_addr): Call mark_base_types.
3511 (dwarf2out_finish): Call move_marked_base_types.
3513 PR tree-optimization/48809
3514 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3516 (gen_inbound_check): Don't compute index_expr - range_min in utype
3517 again, instead reuse SSA_NAME initialized in build_arrays.
3518 Remove two useless gsi_for_stmt calls.
3520 2011-04-29 Jeff Law <law@redhat.com>
3522 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3524 2011-04-29 Martin Jambor <mjambor@suse.cz>
3526 * cgraph.h (cgraph_postorder): Remove declaration.
3527 * ipa-utils.h (ipa_free_postorder_info): Declare.
3528 (ipa_reverse_postorder): Likewise.
3529 * cgraphunit.c: Include ipa-utils.h.
3530 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3531 * ipa-inline.c: Include ipa-utils.h.
3532 (ipa_inline): Update call to ipa_reverse_postorder.
3533 * ipa-pure-const.c (propagate_pure_const): Update call to
3534 ipa_reduced_postorder and ipa_print_order. Call
3535 ipa_free_postorder_info to clean up.
3536 (propagate_nothrow): Likewise.
3537 * ipa-reference.c (propagate): Removed a useless call to
3538 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3539 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3540 * ipa.c: Include ipa-utils.h.
3541 (ipa_profile): Update call to ipa_reverse_postorder.
3542 (cgraph_postorder): Moved to...
3543 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3544 (ipa_utils_print_order): Renamed to ipa_print_order.
3545 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3547 (ipa_free_postorder_info): New function.
3548 * passes.c: Include ipa-utils.h.
3549 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3550 (ipa_write_summaries): Likewise.
3551 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3552 (cgraphunit.o): Likewise.
3554 (ipa-inline.o): Likewise.
3556 2011-04-29 Jan Hubicka <jh@suse.cz>
3558 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3559 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3560 * ipa-inline.h (clause_t): Turn into unsigned int.
3561 * ipa-inline-analysis.c (add_clause): Do more simplification.
3562 (and_predicates): Shortcut more cases.
3563 (predicates_equal_p): Move forward; check that clauses are properly
3565 (or_predicates): Shortcut more cases.
3566 (edge_execution_predicate): Rewrite as...
3567 (set_cond_stmt_execution_predicate): ... this function; handle
3568 __builtin_constant_p.
3569 (set_switch_stmt_execution_predicate): New .
3570 (compute_bb_predicates): New.
3571 (will_be_nonconstant_predicate): Update TODO.
3572 (estimate_function_body_sizes): Use compute_bb_predicates
3573 and free them later, always try to estimate if stmt is constant.
3574 (estimate_time_after_inlining, estimate_size_after_inlining):
3575 Gracefully handle optimized out edges.
3576 (read_predicate): Fix off by one error.
3578 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3580 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3582 2011-04-27 Xinliang David Li <davidxl@google.com>
3584 * tree-profile.c (init_ic_make_global_vars): Set
3585 tls attribute on ic vars.
3586 * coverage.c (coverage_end_function): Initialize
3587 function_list with zero.
3589 2011-04-29 Richard Guenther <rguenther@suse.de>
3591 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3592 for the type of the result.
3593 (fold_builtin_isascii): Likewise.
3594 (fold_builtin_toascii): Use integer_type_node where appropriate.
3595 (fold_builtin_logb): Likewise.
3596 (fold_builtin_frexp): Likewise.
3597 (fold_builtin_strstr): Likewise.
3598 (fold_builtin_strpbrk): Likewise.
3599 (fold_builtin_fputs): Likewise.
3600 (fold_builtin_sprintf): Likewise.
3601 (fold_builtin_snprintf): Likewise.
3602 (fold_builtin_printf): Likewise.
3603 (do_mpfr_remquo): Use a proper type for the assigned constant.
3604 (do_mpfr_lgamma_r): Likewise.
3605 * dwarf2out.c (resolve_one_addr): Use size_int.
3606 * except.c (init_eh): Likewise.
3607 (assign_filter_values): Use integer_type_node for filter values.
3608 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3610 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3611 for EH region numbers.
3612 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3613 for the shift amount.
3615 2011-04-29 Richard Guenther <rguenther@suse.de>
3617 * expr.h (expand_shift): Rename to ...
3618 (expand_variable_shift): ... this.
3619 (expand_shift): Take a constant shift amount.
3620 * expmed.c (expand_shift): Rename to ...
3621 (expand_variable_shift): ... this.
3622 (expand_shift): New wrapper around expand_variable_shift.
3623 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3624 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3625 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3626 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3627 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3628 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3629 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3630 emit_store_flag_1, emit_store_flag): Likewise.
3631 * builtins.c (expand_builtin_signbit): Likewise.
3632 * calls.c (load_register_parameters): Likewise.
3633 * function.c (assign_parm_setup_block): Likewise.
3634 * lower-subreg.c (resolve_shift_zext): Likewise.
3635 * optabs.c (widen_bswap, expand_abs_nojump,
3636 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3637 * spu/spu.c (spu_expand_extv): Likewise.
3638 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3640 2011-04-29 Richard Guenther <rguenther@suse.de>
3642 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3643 for the remapped region number.
3644 * predict.c (build_predict_expr): Use integer_type_node for the
3646 * fold-const.c (fold_binary_loc): Use integer_type_node for
3647 the shift amount. Use a proper type for the PLUS_EXPR operand.
3649 2011-04-29 Michael Matz <matz@suse.de>
3651 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3652 other trees that just builtins.
3653 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3655 2011-04-29 Richard Guenther <rguenther@suse.de>
3657 * tree-nested.c (get_trampoline_type): Use size_int.
3658 (get_nl_goto_field): Likewise.
3659 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3661 (lower_eh_constructs_2): Likewise.
3662 (lower_resx): Likewise.
3663 (lower_eh_dispatch): Likewise.
3664 * tree-mudflap.c (mf_build_string): Use size_int.
3665 (mudflap_register_call): Use integer_type_node for the flag.
3666 (mudflap_enqueue_constant): Use size_int.
3667 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3668 instead of rebuilding it.
3670 2011-04-29 Richard Guenther <rguenther@suse.de>
3672 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3673 Handle OBJ_TYPE_REF.
3674 (find_func_aliases_for_call): Use it more consistently.
3676 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3678 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3679 (rank_for_schedule): Use it.
3680 (schedule_block): Set it.
3682 2011-04-28 David Li <davidxl@google.com>
3684 * tree.c (crc32_string): Use crc32_byte.
3685 (crc32_byte): New function.
3686 * tree.h (crc32_byte): New function.
3687 * gcov.c (read_graph_file): Handle new cfg_cksum.
3688 (read_count_file): Ditto.
3689 * profile.c (instrument_values): Ditto.
3690 (get_exec_counts): Ditto.
3691 (read_profile_edge_counts): Ditto.
3692 (compute_branch_probabilities): Ditto.
3693 (compute_value_histograms): Ditto.
3694 (branch_prob): Ditto.
3695 (end_branch_prob): Ditto.
3696 * coverage.c (read_counts_file): Ditto.
3697 (get_coverage_counts): Ditto.
3698 (tree_coverage_counter_addr): Ditto.
3699 (coverage_checksum_string): Ditto.
3700 (coverage_begin_output): Ditto.
3701 (coverage_end_function): Ditto.
3702 (build_fn_info_type): Ditto.
3703 (build_fn_info_value): Ditto.
3704 * libgcov.c (gcov_exit): Ditto.
3705 * gcov-dump.c (tag_function): Ditto.
3706 (compute_checksum): Remove.
3708 2011-04-29 Alan Modra <amodra@gmail.com>
3710 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3711 unspec plus offset. Tidy macho code.
3713 2011-04-29 Martin Jambor <mjambor@suse.cz>
3715 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3716 node instead of a decl. Update all callers.
3717 * cgraph.h: Update declaration.
3719 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3721 PR tree-optimization/48765
3722 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3723 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3724 to indicate if loop aware SLP is being used. Scan the statements
3725 and update the vectorization factor according to the type of
3726 vectorization before statement analysis.
3727 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3728 pass it to vect_analyze_loop_operations.
3729 (vectorizable_reduction): Set number of copies to 1 in case of pure
3731 * tree-vect-stmts.c (vectorizable_conversion,
3732 vectorizable_assignment, vectorizable_shift,
3733 vectorizable_operation, vectorizable_type_demotion,
3734 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3736 (vectorizable_condition): Move the check that it is not SLP
3737 vectorization before the number of copies check.
3738 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3739 to vectorize the loop using SLP.
3741 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3744 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3747 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3749 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3750 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3751 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3752 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3753 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3755 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3756 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3757 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3758 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3759 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3760 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3762 * config/i386/linux.h (REG_NAME): Don't define.
3763 * config/i386/linux64.h (REG_NAME): Don't define.
3764 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3765 Undefine before defining.
3767 2011-04-28 Jan Hubicka <jh@suse.cz>
3769 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3770 nonconstant_names array.
3771 (estimate_function_body_sizes): Build nonconstant_names array; handle
3772 BUILT_IN_CONSTANT_P.
3774 2011-04-28 Richard Guenther <rguenther@suse.de>
3778 2011-04-28 Richard Guenther <rguenther@suse.de>
3780 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3781 as late as possible.
3783 2011-04-28 Richard Guenther <rguenther@suse.de>
3785 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3786 (debug_constraint): Do it here.
3787 (dump_constraints): And here.
3788 (rewrite_constraints): And here.
3789 (dump_constraint_edge): Remove.
3790 (dump_constraint_graph): Rewrite to produce DOT output.
3791 (solve_constraints): Build succ graph as late as possible.
3792 Dump constraint graphs before and after solving.
3794 2011-04-28 Richard Guenther <rguenther@suse.de>
3796 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3797 New function split out from ...
3798 (find_func_aliases): ... here. Call it.
3799 (find_func_aliases_for_call): Likewise.
3801 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3803 * internal-fn.h (internal_fn_name_array): Declare.
3804 (internal_fn_flags_array): Likewise.
3806 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3808 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3809 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3811 (ssemodefsuffix): Remove.
3812 (ssevecmodesuffix): New mode attribute.
3813 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3814 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3815 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3816 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3817 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3818 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3819 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3820 ssemodesuffix mode attribute.
3821 (float splitters): Use ssevecmodesuffix mode attribute.
3822 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3823 (sseinsmode): Rename from avxvecmode.
3824 (avxsizesuffix): Rename from avxmodesuffix.
3825 (sseintvecmode): Rename from avxpermvecmode.
3826 (ssedoublevecmode): Rename from ssedoublesizemode.
3827 (ssehalfvecmode): Rename from avxhalfvecmode.
3828 (ssescalarmode): Rename from avxscalarmode.
3829 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3830 templates for ssemodesuffix mode attribute.
3831 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3834 Adjust RTX patterns globally for renamed mode attributes.
3836 2011-04-27 Jan Hubcika <jh@suse.cz>
3838 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3839 * ipa-inline-analysis.c: Include alloc-pool.h.
3840 (edge_predicate_pool): New.
3841 (trye_predicate_p): New function
3842 (false_predicate_p): New function.
3843 (add_clause): Sanity check that false clauses are "optimized";
3844 never add clauses to predicate that is already known to be false.
3845 (and_predicate): Use flase_predicate_p.
3846 (evaulate_predicate): Rename to ...
3847 (evaluate_predicate): ... this one; update all callers; assert
3848 that false is not listed among possible truths.
3849 (dump_predicate): Use true_predicate_p.
3850 (account_size_time): Use false_predicate_p.
3851 (evaulate_conditions_for_edge): Rename to ...
3852 (evaluate_conditions_for_edge) ... this one.
3853 (edge_set_predicate): New function.
3854 (inline_edge_duplication_hook): Duplicate edge predicates.
3855 (inline_edge_removal_hook): Free edge predicates.
3856 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3857 (dump_inline_summary): Update.
3858 (estimate_function_body_sizes): Set edge predicates.
3859 (estimate_calls_size_and_time): Handle predicates.
3860 (estimate_callee_size_and_time): Update.
3861 (remap_predicate): Add toplev_predicate; update comment.
3862 (remap_edge_predicates): New function.
3863 (inline_merge_summary): Compute toplev predicate; update.
3864 (read_predicate): New function.
3865 (read_inline_edge_summary): Use it.
3866 (inline_read_section): Likewise.
3867 (write_predicate): New function.
3868 (write_inline_edge_summary): Use it.
3869 (inline_write_summary): Likewise.
3870 (inline_free_summary): Free alloc pool and edge summary vec.
3872 2011-04-27 Richard Guenther <rguenther@suse.de>
3874 * tree-ssa-structalias.c (changed_count): Remove.
3875 (changed): Use a bitmap.
3876 (unify_nodes): Adjust.
3877 (do_sd_constraint): Likewise.
3878 (do_ds_constraint): Likewise.
3879 (do_complex_constraint): Likewise.
3880 (solve_graph): Likewise.
3882 2011-04-27 Jan Hubicka <jh@suse.cz>
3884 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3886 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3888 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3889 (avx_vperm2f128_*_operand): Ditto.
3890 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3891 Use avx_vpermilp_parallel in insn condition.
3892 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3893 Use avx_vperm2f128_parallel in insn condition.
3895 2011-04-27 Richard Guenther <rguenther@suse.de>
3897 * Makefile.in (tree-ssa-structalias.o): Remove
3898 gt-tree-ssa-structalias.h dependency.
3899 (GTFILES): Remove tree-ssa-structalias.c.
3900 * tree.c (allocate_decl_uid): New function.
3901 (make_node_stat): Use it.
3902 (copy_node_stat): Likewise.
3903 * tree.h (allocate_decl_uid): Declare.
3904 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3905 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3906 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3907 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3908 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3909 (struct heapvar_map): Likewise.
3910 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3911 heapvar_insert): Likewise.
3912 (make_heapvar_for): Rename to ...
3913 (make_heapvar): ... this. Simplify.
3914 (fake_var_decl_obstack): New global var.
3915 (build_fake_var_decl): New function.
3916 (make_constraint_from_heapvar): Adjust.
3917 (handle_lhs_call): Likewise.
3918 (create_function_info_for): Likewise.
3919 (intra_create_variable_infos): Likewise.
3920 (init_alias_vars): Allocate fake_var_decl_obstack.
3921 (init_alias_heapvars, delete_alias_heapvars): Remove.
3922 (compute_points_to_sets): Do not call init_alias_heapvars.
3923 (ipa_pta_execute): Likewise.
3924 (delete_points_to_sets): Free fake_var_decl_obstack.
3926 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3928 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3929 (si_from_UTItype, si_to_UTItype): New functions.
3930 (__udivmodti4): Use them to implement type-punning.
3931 * config/spu/multi3.c (union qword_TItype): New data type.
3932 (si_from_TItype, si_to_TItype): New functions.
3933 (__multi3): Use them to implement type-punning.
3935 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3937 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3939 2011-04-27 Jan Hubicka <jh@suse.cz>
3941 * ipa-prop.c (function_insertion_hook_holder): New holder.
3942 (ipa_add_new_function): New function.
3943 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3944 Register/deregister holder.
3946 2011-04-27 Richard Guenther <rguenther@suse.de>
3948 PR tree-optimization/48772
3949 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3951 2011-04-27 Richard Guenther <rguenther@suse.de>
3953 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3954 TARGET_MEM_REF handling.
3956 2011-04-27 Nick Clifton <nickc@redhat.com>
3958 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3959 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3960 (REG_CLASS_NAMES): Likewise.
3961 (REG_CLASS_CONTENTS): Likewise.
3962 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3963 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3964 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3965 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3966 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3967 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3968 duplicate register classes.
3969 (frv_class_likely_spilled_p): Likewise.
3970 (frv_register_move_cost): Likewise.
3972 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3973 end of the regno_reg_class array.
3975 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3978 * c-typeck.c (build_binary_op): Don't wrap arguments if
3979 int_operands is true.
3981 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3984 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3985 targetm.calls.must_pass_in_stack for void type.
3987 2011-04-26 Jan Hubicka <jh@suse.cz>
3989 * cgraphbuild.c (build_cgraph_edges): Update call
3990 of cgraph_create_edge and cgraph_create_indirect_edge.
3991 * cgraph.c (cgraph_create_edge_including_clones,
3992 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3993 cgraph_update_edges_for_call_stmt_node): Do not take nest
3994 argument; do not initialize call_stmt_size/time.
3995 (dump_cgraph_node): Do not dump nest.
3996 (cgraph_clone_edge): Do not take loop_nest argument;
3997 do not propagate it; do not clone call_stmt_size/time.
3998 (cgraph_clone_node): Likewise.
3999 (cgraph_create_virtual_clone): Update.
4000 * cgraph.h (struct cgraph_edge): Remove
4001 call_stmt_size/call_stmt_time/loop_nest.
4002 (cgraph_create_edge, cgraph_create_indirect_edge,
4003 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4005 * tree-emutls.c (gen_emutls_addr): Update.
4006 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4007 loop_nest; handle indirect calls, too.
4008 (clone_inlined_nodes): Do not care about updating inline summaries.
4009 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4010 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4011 stream call_stmt_size/call_stmt_time/loop_nest.
4012 * ipa-inline.c (edge_badness): Update.
4013 (ipa_inline): dump summaries after inlining.
4014 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4016 (inline_edge_summary): New function.
4017 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4018 (inline_edge_removal_hook): Handle edge summaries.
4019 (inline_edge_duplication_hook): New hook.
4020 (inline_summary_alloc): Alloc hooks.
4021 (initialize_growth_caches): Do not register removal hooks.
4022 (free_growth_caches); Do not free removal hook.
4023 (dump_inline_edge_summary): New function.
4024 (dump_inline_summary): Use it.
4025 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4026 (inline_update_callee_summaries): New function.
4027 (inline_merge_summary): Use it.
4028 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4029 (read_inline_edge_summary): New function.
4030 (inline_read_section): Use it.
4031 (write_inline_edge_summary): New function.
4032 (inline_write_summary): Use it.
4033 (inline_free_summary): Free edge new holders.
4034 * tree-inline.c (copy_bb): Update.
4036 2011-04-26 Jason Merrill <jason@redhat.com>
4038 * tree-eh.c (lower_try_finally_switch): Create the label along with
4039 the CASE_LABEL_EXPR.
4041 2011-04-26 David S. Miller <davem@davemloft.net>
4042 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4044 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4045 * configure: Regenerate.
4047 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4050 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4052 (VEC_reduc): New code iterator and splitters for vector reduction.
4053 (VEC_reduc_name): Ditto.
4054 (VEC_reduc_rtx): Ditto.
4055 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4056 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4058 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4059 support for extracting SF on VSX.
4061 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4062 generating xscvspdp.
4063 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4064 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4065 double add, minimum, maximum vector reduction.
4066 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4067 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4068 optimize double vector reduction.
4069 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4071 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4073 * config/fr30/fr30.h (inhibit_libc): Don't define.
4074 * config/m32r/m32r-protos.h: Correct comment.
4075 * config/v850/v850.h (GHS_default_section_names,
4076 GHS_current_section_names): Use tree, not union tree_node *.
4078 2011-04-26 Xinliang David Li <davidxl@google.com>
4080 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4081 * c-family/c-opts.c (c_common_handle_option): Set
4082 warn_maybe_uninitialized.
4083 * opts.c (common_handle_option): Ditto.
4084 * common.opt: New option.
4085 * tree-ssa.c (warn_uninit): Add one more parameter.
4086 (warn_uninitialized_var): Pass warning code.
4087 * tree-flow.h: Interface change.
4090 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4092 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4093 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4094 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4096 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4098 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4099 * config/mips/mips.opt (mmips-tfile): Remove.
4101 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4102 mips-tdump reference to ...
4103 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4104 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4105 reference by Tru64 UNIX.
4107 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4110 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4111 is error_mark_node, set value to NULL.
4113 PR tree-optimization/48734
4114 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4115 if return value from maybe_fold_*_comparsions isn't something
4116 the code is prepared to handle.
4118 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4120 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4122 (ext_QIreg_nomode_operands): Remove.
4123 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4127 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4129 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4131 2011-04-26 Richard Guenther <rguenther@suse.de>
4133 * c-typeck.c (build_unary_op): Do not expand array-refs via
4134 pointer arithmetic. Only adjust qualifiers for function types.
4136 2011-04-26 Richard Guenther <rguenther@suse.de>
4139 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4140 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4141 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4142 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4144 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4146 * doc/extend.texi: Document __underlying_type.
4148 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4150 * config/rs6000/titan.md (automata_option "progress"): Remove.
4152 2011-04-25 Jeff Law <law@redhat.com>
4154 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4156 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4158 * system.h (ENUM_BITFIELD): Remove.
4160 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4161 Eric Botcazou <ebotcazou@adacore.com>
4163 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4164 for STORE_FLAG_VALUE==-1 case.
4166 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4169 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4170 LEGITIMATE_PIC_OPERAND_P.
4172 2011-04-24 Jan Hubicka <jh@suse.cz>
4174 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4176 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4177 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4178 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4179 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4180 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4181 Sanity check predicate length.
4182 (remap_predicate): Likewise; sanity check jump functions.
4183 (inline_read_section, inline_write_summary): Sanity check
4186 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4189 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4190 __is_literal_type, and __is_trivial; update throughout about
4191 possibly cv-qualified void types.
4193 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4195 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4196 testsuite and make it version agnostic.
4198 2011-04-22 Jan Hubicka <jh@suse.cz>
4200 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4202 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4205 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4206 to VOID_TYPE even around MODIFY_EXPR.
4208 2011-04-22 Mike Stump <mikestump@comcast.net>
4210 * gensupport.c (read_md_rtx): Fix typo in comment.
4211 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4214 2011-04-22 Jan Hubicka <jh@suse.cz>
4216 * gengtype.c (open_base_files): Add ipa-inline.h include.
4217 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4218 ipa-prop.c; update all uses.
4219 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4220 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4221 merge summary of inlined function into former caller.
4222 * ipa-inline.c (max_benefit): Remove.
4223 (edge_badness): Compensate for removal of benefits.
4224 (update_caller_keys): Use
4225 reset_node_growth_cache/reset_edge_growth_cache.
4226 (update_callee_keys): Likewise.
4227 (update_all_callee_keys): Likewise.
4228 (inline_small_functions): Do not collect max_benefit; do not reset
4229 estimated_growth; call free_growth_caches and initialize_growth_caches.
4230 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4231 struct size_time_entry): New structures.
4232 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4233 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4234 and estimated_growth.
4235 (edge_growth_cache_entry): New structure.
4236 (node_growth_cache, edge_growth_cache): New global vars.
4237 (estimate_growth): Turn into inline.
4238 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4239 initialize_growth_caches, free_growth_caches): Declare.
4240 (estimate_edge_growth): Rewrite.
4241 (estimate_edge_time): Implement as inline cache lookup.
4242 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4244 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4245 (NUM_CONDITIONS): New constant.
4246 (predicate_conditions): New enum.
4247 (IS_NOT_CONSTANT): New constant.
4248 (edge_removal_hook_holder): New var.
4249 (node_growth_cache, edge_growth_cache): New global vars.
4250 (true_predicate, single_cond_predicate, false_predicate,
4251 not_inlined_predicate, add_condition, add_clause, and_predicates,
4252 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4253 dump_clause, dump_predicate, account_size_time,
4254 evaulate_conditions_for_edge): New functions.
4255 (inline_summary_alloc): Move to heap.
4256 (inline_node_removal_hook): Clear condition and entry vectors.
4257 (inline_edge_removal_hook): New function.
4258 (initialize_growth_caches, free_growth_caches): New function.
4259 (dump_inline_summary): Update.
4260 (edge_execution_predicate): New function.
4261 (will_be_nonconstant_predicate): New function.
4262 (estimate_function_body_sizes): Compute BB and constantness predicates.
4263 (compute_inline_parameters): Do not clear estimated_growth.
4264 (estimate_edge_size_and_time): New function.
4265 (estimate_calls_size_and_time): New function.
4266 (estimate_callee_size_and_time): New function.
4267 (remap_predicate): New function.
4268 (inline_merge_summary): New function.
4269 (do_estimate_edge_time): New function based on...
4270 (estimate_edge_time): ... this one.
4271 (do_estimate_edge_growth): New function.
4272 (do_estimate_growth): New function based on....
4273 (estimate_growth): ... this one.
4274 (inline_analyze_function): Analyze after deciding on jump functions.
4275 (inline_read_section): New function.
4276 (inline_read_summary): Use it.
4277 (inline_write_summary): Write all the new data.
4278 * ipa-prop.c (ipa_get_param_decl_index): Export.
4279 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4280 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4282 (ipa_get_lattice): Move here from ipa-cp.c
4283 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4284 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4285 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4286 cgraph_edge_inlinable_p): Remove.
4287 * cgraphunit.c: Include ipainline.h
4288 (cgraph_process_new_functions): Update call of
4289 compute_inline_parameters.
4291 2011-04-22 Richard Guenther <rguenther@suse.de>
4293 * tree.c (build_int_cst): Properly create canonicalized integer
4295 (build_int_cst_type): Remove scary comments.
4297 2011-04-22 Xinliang David Li <davidxl@google.com>
4299 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4300 by default when -Wno-error is not specified.
4301 * opts-global.c (decode_options): Remove call to
4302 control_warning_options.
4304 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4306 PR tree-optimization/48717
4307 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4308 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4310 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4312 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4313 definition where used.
4315 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4318 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4319 TREE_STATIC variables declared inside of some OpenMP construct.
4321 2011-04-22 Martin Jambor <mjambor@suse.cz>
4324 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4326 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4329 * c-typeck.c (pop_init_level): Do not warn about initializing
4332 2011-04-22 Alan Modra <amodra@gmail.com>
4334 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4335 when returning call_cookie.
4336 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4337 pointers, to functions with no more vector args than the current
4338 function, and some non-local calls for ABI_V4.
4339 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4340 sibcall_nonlocal_aix64): Combine to ..
4341 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4342 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4343 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4344 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4345 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4347 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4348 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4349 sibcall_value_symbolic_64): Delete.
4351 2011-04-21 Xinliang David Li <davidxl@google.com>
4353 * cgraph.h: Remove pid.
4354 * cgraph.c: Remove pid.
4355 * value-prof.c (init_node_map): New function.
4356 (del_node_map): New function.
4357 (find_func_by_funcdef_no): New function.
4358 (gimple_ic_transform): Call new function.
4359 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4360 * function.c (get_last_funcdef_no): New function.
4361 * function.h (get_last_funcdef_no): New function.
4362 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4363 to libgcov function.
4364 (tree-profiling): Call node map init and delete function.
4366 2011-04-21 Ian Lance Taylor <iant@google.com>
4368 * godump.c (go_format_type): Use exported Go name for anonymous
4371 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4373 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4374 Call builtin_function_type_list instead of builtin_function_type.
4375 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4377 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4379 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4380 build_function_type_list instead of build_function_type.
4381 Delete variable `endlink'.
4383 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4385 * config/s390/s390.c (s390_init_builtins): Call
4386 build_function_type_list instead of build_function_type.
4388 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4390 * config/ia64/ia64.c (ia64_init_builtins): Call
4391 build_function_type_list instead of builtin_function_type.
4393 2011-04-21 Easwaran Raman <eraman@google.com>
4395 * cfgexpand.c (stack_var): Remove OFFSET...
4396 (add_stack_var): ...and its reference here...
4397 (expand_stack_vars): ...and here.
4398 (stack_var_cmp): Sort by descending order of size.
4399 (partition_stack_vars): Change heuristic.
4400 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4401 (dump_stack_var_partition): Add newline after each partition.
4403 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4404 Jeff Law <law@redhat.com>
4406 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4407 * gengtype.c (matching_file_name_substitute): Likewise.
4409 2011-04-21 Richard Guenther <rguenther@suse.de>
4412 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4414 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4416 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4418 2011-04-21 Richard Guenther <rguenther@suse.de>
4420 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4423 2011-04-21 Richard Guenther <rguenther@suse.de>
4425 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4426 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4427 Use DECL_P, not SSA_VAR_P.
4428 (ptr_derefs_may_alias_p): Likewise.
4429 (ptr_deref_may_alias_ref_p_1): Likewise.
4430 (decl_refs_may_alias_p): Likewise.
4431 (refs_may_alias_p_1): Likewise.
4432 (ref_maybe_used_by_call_p_1): Likewise.
4433 (call_may_clobber_ref_p_1): Likewise.
4434 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4435 are either MEM_REF or TARGET_MEM_REF.
4436 (indirect_refs_may_alias_p): Likewise.
4437 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4438 for MEM_EXPR of indirect calls.
4440 2011-04-21 Tristan Gingold <gingold@adacore.com>
4442 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4443 (dst_file_info_struct): Remove flen field.
4444 (lookup_filename): Remove code that set flen field.
4446 2011-04-21 Tristan Gingold <gingold@adacore.com>
4448 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4450 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4453 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4454 vec_extract and vec_concat for non-SSE4_1 targets.
4456 2011-04-21 Richard Guenther <rguenther@suse.de>
4458 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4461 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4463 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4465 (FILE): Don't undefine.
4467 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4469 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4471 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4473 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4474 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4475 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4477 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4478 definitions where used.
4479 * config/microblaze/microblaze.h (struct microblaze_args): Use
4480 rtx, not struct rtx_def *.
4481 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4483 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4484 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4485 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4486 not struct rtx_def *.
4487 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4489 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4491 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4493 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4495 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4496 operand_equal_p to compare DR_BASE_ADDRESSes.
4497 (vect_check_interleaving): Likewise.
4499 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4502 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4503 for all Neon struct constants.
4505 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4507 * target.def (legitimate_constant_p): New hook.
4508 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4509 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4510 * doc/tm.texi: Regenerate.
4511 * hooks.h (hook_bool_mode_rtx_true): Declare.
4512 * hooks.c (hook_bool_mode_rtx_true): Define.
4513 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4514 * calls.c (precompute_register_parameters): Replace uses of
4515 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4516 (emit_library_call_value_1): Likewise.
4517 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4518 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4519 * ira-costs.c (scan_one_insn): Likewise.
4520 * recog.c (general_operand, immediate_operand): Likewise.
4521 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4522 * reload1.c (init_eliminable_invariants): Likewise.
4524 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4526 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4527 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4529 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4530 * config/alpha/predicates.md (input_operand): Update call to
4531 alpha_legitimate_constant_p.
4533 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4534 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4535 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4536 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4537 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4538 (arm_legitimate_constant_p): New functions.
4539 (arm_cannot_force_const_mem): Make static.
4541 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4543 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4544 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4545 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4546 instead of bfin_legitimate_constant_p.
4547 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4548 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4550 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4552 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4554 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4555 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4556 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4557 (frv_legitimate_constant_p): Make static. Add a mode argument.
4559 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4560 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4561 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4563 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4564 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4565 * config/i386/i386.c (legitimate_constant_p): Rename to...
4566 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4568 (ix86_cannot_force_const_mem): Update accordingly.
4569 (ix86_legitimate_address_p): Likewise.
4570 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4571 * config/i386/i386.md: Update commentary.
4573 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4574 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4575 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4576 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4578 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4580 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4581 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4582 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4583 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4585 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4586 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4587 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4589 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4590 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4591 (m32r_legitimate_constant_p): New function.
4593 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4594 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4595 LEGITIMATE_CONSTANT_P.
4596 (LEGITIMATE_CONSTANT_P): Delete.
4597 * config/m68k/m68k.c (m68k_expand_prologue): Call
4598 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4599 (m68k_legitimate_constant_p): New function.
4600 * config/m68k/m68k.md: Update comments.
4602 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4603 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4604 (mcore_legitimate_constant_p): New function.
4606 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4607 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4608 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4609 Add a mode argument.
4610 (mep_legitimate_address): Update accordingly.
4611 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4613 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4615 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4616 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4617 static. Check OP's mode for VOIDmode.
4618 (microblaze_legitimate_constant_p): New function.
4619 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4621 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4622 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4623 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4624 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4625 * config/mips/predicates.md: Update comments.
4627 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4628 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4629 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4630 (mmix_legitimate_constant_p): Make static, return a bool, and take
4632 (mmix_print_operand_address): Update accordingly.
4634 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4636 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4637 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4638 static. Add a mode argument.
4639 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4641 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4643 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4644 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4645 (pa_legitimate_constant_p): New function.
4647 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4649 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4650 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4651 (pdp11_legitimate_constant_p): New function.
4653 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4654 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4655 (rs6000_legitimate_constant_p): New function.
4657 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4658 (rx_legitimate_constant_p): ...this.
4659 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4660 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4661 (rx_legitimate_constant_p): ...this.
4662 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4663 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4665 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4666 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4667 * config/s390/s390.c (legitimate_constant_p): Rename to...
4668 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4669 and add a mode argument.
4670 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4672 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4674 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4675 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4676 (sh_legitimate_constant_p): New function.
4678 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4679 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4680 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4681 (legitimate_constant_p): Rename to...
4682 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4684 (constant_address_p): Update accordingly.
4686 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4687 argument and return a bool.
4688 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4689 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4690 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4691 (spu_rtx_costs): Update accordingly.
4692 * config/spu/predicates.md (vec_imm_operand): Likewise.
4694 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4696 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4697 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4698 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4700 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4701 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4702 * config/vax/vax.c (legitimate_constant_p): Likewise.
4704 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4705 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4706 (xtensa_legitimate_constant_p): New function.
4708 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4710 * target.def (cannot_force_const_mem): Add a mode argument.
4711 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4712 * doc/tm.texi: Regenerate.
4713 * hooks.h (hook_bool_mode_rtx_false): Declare.
4714 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4715 (hook_bool_mode_const_rtx_true): Likewise.
4716 (hook_bool_mode_rtx_false): New function.
4717 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4718 to be non-VOID. Update call to cannot_force_const_mem.
4719 (find_reloads): Update accordingly.
4720 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4721 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4723 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4724 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4725 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4726 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4727 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4728 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4729 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4730 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4731 (m68k_cannot_force_const_mem): ...this new function.
4732 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4734 (mips_const_insns, mips_legitimize_const_move): Update calls.
4735 (mips_secondary_reload_class): Likewise.
4736 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4737 (pa_cannot_force_const_mem): ...this new function.
4738 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4739 (rs6000_cannot_force_const_mem): ...this new function.
4740 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4742 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4743 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4745 (xtensa_cannot_force_const_mem): ...this new function.
4747 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4749 * config/mips/mips.c (mips16_build_function_stub): Call
4750 build_function_type_list instead of build_function_type.
4751 (mips16_build_call_stub): Likewise.
4753 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4755 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4756 instead of build_function_type.
4758 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4760 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4761 instead of build_function_type.
4763 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4766 * config/i386/i386.md (insv): Change operand 0 constraint to
4767 "register_operand". Change operand 1 and 2 constraint to
4768 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4769 * config/i386/sse.md (sse4_1_pinsrb): Export.
4770 (sse2_pinsrw): Ditto.
4771 (sse4_1_pinsrd): Ditto.
4772 (sse4_1_pinsrq): Ditto.
4773 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4774 * config/i386/i386.c (ix86_expand_pinsr): New.
4776 2011-04-20 Easwaran Raman <eraman@google.com>
4778 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4779 containing union type only with -fstrict-aliasing.
4781 2011-04-20 Jim Meyering <meyering@redhat.com>
4783 Remove useless if-before-free tests.
4784 * calls.c (expand_call, save_area): Likewise.
4785 * cfgcleanup.c (try_forward_edges): Likewise.
4786 * collect2.c (collect_execute): Likewise.
4787 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4788 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4789 * coverage.c (coverage_checksum_string): Likewise.
4790 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4791 * cselib.c (cselib_init): Likewise.
4792 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4793 (df_set_clean_cfg): Likewise.
4794 * function.c (free_after_compilation): Likewise.
4795 * gcc.c (do_spec_1, main): Likewise.
4796 * gcov.c (create_file_names): Likewise.
4797 * gensupport.c (identify_predicable_attribute): Likewise.
4798 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4799 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4800 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4801 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4802 * ipa-pure-const.c (local_pure_const): Likewise.
4803 * ipa-reference.c (propagate): Likewise.
4804 * ira-costs.c (free_ira_costs): Likewise.
4805 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4806 * matrix-reorg.c (mat_free): Likewise.
4807 * prefix.c (get_key_value): Likewise.
4808 * profile.c (compute_value_histograms): Likewise.
4809 * reload1.c (free_reg_equiv): Likewise.
4810 * sched-deps.c (free_deps): Likewise.
4811 * sel-sched-ir.c (fence_clear): Likewise.
4812 * sese.c (set_rename, if_region_set_false_region): Likewise.
4813 * tree-data-ref.c (free_rdg): Likewise.
4814 * tree-eh.c (lower_try_finally): Likewise.
4815 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4816 * tree-ssa-live.c (delete_var_map): Likewise.
4817 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4818 * tree-ssa-pre.c (phi_trans_add): Likewise.
4820 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4822 PR tree-optimization/48611
4823 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4824 beyond ERT_MUST_NOT_THROW region.
4826 2011-04-20 Catherine Moore <clm@codesourcery.com>
4828 * config/mips/mips.opt (mfix-24k): New.
4829 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4830 * config/mips/mips.md (length): Increase by 4 for stores if
4832 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4833 all noreorder if fixing 24K errata.
4834 * doc/invoke.texi: Document mfix-24k.
4836 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4838 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4839 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4841 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4843 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4844 (const_ok_for_op): ... to here.
4846 2011-04-20 Kai Tietz <ktietz@redhat.com>
4848 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4849 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4851 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4853 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4855 2011-04-20 Richard Guenther <rguenther@suse.de>
4857 PR tree-optimization/47892
4858 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4861 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4863 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4865 2011-04-20 Tristan Gingold <gingold@adacore.com>
4867 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4869 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4873 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4874 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4875 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4876 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4877 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4879 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4882 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4883 (avr_asm_named_section, avr_asm_output_aligned_common,
4884 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4885 New functions to update...
4886 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4887 (avr_asm_init_sections): Overwrite section callbacks for
4888 data_section, bss_section.
4889 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4891 (avr_file_end): ...here.
4893 2011-04-20 Richard Guenther <rguenther@suse.de>
4896 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4897 objects and types here. Adjust for their offset before comparing.
4899 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4901 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4904 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4906 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4907 (GIMPLE_H): Include $(INTERNAL_FN_H).
4908 (OBJS-common): Add internal-fn.o.
4909 (internal-fn.o): New rule.
4910 * internal-fn.def: New file.
4911 * internal-fn.h: Likewise.
4912 * internal-fn.c: Likewise.
4913 * gimple.h: Include internal-fn.h.
4914 (GF_CALL_INTERNAL): New gf_mask.
4915 (gimple_statement_call): Put fntype into a union with a new
4917 (gimple_build_call_internal): Declare.
4918 (gimple_build_call_internal_vec): Likewise.
4919 (gimple_call_same_target_p): Likewise.
4920 (gimple_call_internal_p): New function.
4921 (gimple_call_internal_fn): Likewise.
4922 (gimple_call_fntype): Return null for internal calls.
4923 (gimple_call_set_fntype): Assert that the function is not internal.
4924 (gimple_call_set_fn): Likewise.
4925 (gimple_call_set_fndecl): Likewise.
4926 (gimple_call_set_internal_fn): New function.
4927 (gimple_call_addr_fndecl): Handle null functions.
4928 (gimple_call_return_type): Likewise null types.
4929 * gimple.c (gimple_build_call_internal_1): New function.
4930 (gimple_build_call_internal): Likewise.
4931 (gimple_build_call_internal_vec): Likewise.
4932 (gimple_call_same_target_p): Likewise.
4933 (gimple_call_flags): Handle calls to internal functions.
4934 (gimple_call_fnspec): New function.
4935 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4936 (gimple_has_side_effects): Handle null functions.
4937 (gimple_rhs_has_side_effects): Likewise.
4938 (gimple_call_copy_skip_args): Handle calls to internal functions.
4939 * cfgexpand.c (expand_call_stmt): Likewise.
4940 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4941 * gimple-fold.c (gimple_fold_call): Handle null functions.
4942 (gimple_fold_stmt_to_constant_1): Don't fold
4943 calls to internal functions.
4944 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4946 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4947 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4948 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4949 (do_warn_unused_result): Likewise.
4950 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4951 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4952 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4953 the target of a call.
4954 (initialize_hash_element): Update accordingly.
4955 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4956 (iterative_hash_hashable_expr): Handle calls to internal functions.
4957 (print_expr_hash_elt): Likewise.
4958 * tree-ssa-pre.c (can_value_number_call): Likewise.
4959 (eliminate): Handle null functions.
4960 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4961 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4962 (find_func_aliases): Likewise.
4963 * value-prof.c (gimple_ic_transform): Likewise.
4964 (gimple_indirect_call_to_profile): Likewise.
4965 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4966 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4968 2011-04-19 Jan Hubicka <jh@suse.cz>
4970 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4971 * ipa-inline.c (inline_small_functions): Compute summaries first,
4972 populate heap later.
4974 2011-04-19 Jan Hubicka <jh@suse.cz>
4976 * cgraph.h (save_inline_function_body): Remove.
4977 * ipa-inline-transform.c: New file, broke out of...
4978 * ipa-inline.c: ... this one; Update toplevel comment.
4979 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4981 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4982 (cgraph_mark_inline_edge): Rename to inline_call; move to
4983 ipa-inline-transform.c.
4984 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4985 move to ipa-inline-transform.c
4986 (recursive_inlining, inline_small_functions, flatten_function,
4987 ipa_inline, inline_always_inline_functions,
4988 early_inline_small_functions): Update.
4989 (inline_transform): Move to ipa-inline-transform.c.
4990 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4992 * Makefile.in (ipa-inline-transform.o): New file.
4993 * cgraphunit.c (save_inline_function_body): Move to
4994 ipa-inline-transform.c
4996 2011-04-19 DJ Delorie <dj@redhat.com>
4998 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4999 registers if we already know there aren't any.
5000 (m32c_emit_epilogue): Don't emit a barrier here.
5001 (m32c_emit_eh_epilogue): Likewise.
5002 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5003 operands at expand time.
5004 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5006 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5007 duplicates. Provide aliases instead.
5008 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5009 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5012 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5014 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5015 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5016 (general_or_i64_p, sparc_register_move_cost): New function.
5018 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5020 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5021 Add lynx, mipssde. Sort table.
5023 2011-04-19 Xinliang David Li <davidxl@google.com>
5025 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5028 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5031 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5032 is a SUBREG with non-MODE_INT mode inside of it.
5034 2011-04-19 Martin Jambor <mjambor@suse.cz>
5036 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5037 also according to actual contants.
5038 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5039 (gimple_fold_call): Use it.
5040 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5042 2011-04-19 Martin Jambor <mjambor@suse.cz>
5044 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5045 non-pointer assignments.
5047 2011-04-19 Martin Jambor <mjambor@suse.cz>
5049 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5050 account anc_offset and otr_type from the indirect edge info.
5051 * ipa-prop.c (get_ancestor_addr_info): New function.
5052 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5053 get_ancestor_addr_info, call it.
5054 (ipa_note_param_call): Do not initialize information about polymorphic
5055 calls, return the indirect call graph edge. Remove the last
5056 parameter, adjust all callers.
5057 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5058 parameters. Initialize polymorphic information in the indirect edge.
5060 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5063 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5064 the types if they have different enumeration identifiers.
5066 2011-04-19 Jan Hubicka <jh@suse.cz>
5068 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5069 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5070 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5071 (optimize_function_for_size_p) ... here.
5073 2011-04-19 Richard Guenther <rguenther@suse.de>
5076 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5079 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5081 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5082 if DECL_NO_INLINE_WARNING_P is set on the function.
5084 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5087 * reload1.c (inc_for_reload): Return void. All callers changed.
5088 (emit_input_reload_insns): Don't try to delete previous output
5089 reloads to a register, or record spill_reg_store for autoincs.
5091 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5093 * gengtype.h: Updated copyright year.
5094 (struct input_file_st): Add inpisplugin field.
5095 (type_fileloc): New function.
5097 (write_typed_struct_alloc_def): Add gcc_assert.
5098 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5099 (write_typed_alloc_defns): Don't output for plugin files.
5100 (input_file_by_name): Clear inpisplugin field.
5101 (main): Set inpisplugin field for plugin files.
5103 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5105 * gengtype-state.c (string_eq): New.
5106 (read_state): Use string_eq instead of strcmp when creating the
5109 2011-04-19 Wei Guozhi <carrot@google.com>
5112 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5113 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5115 * config/arm/constraints.md (Uu): New constraint.
5116 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5118 2011-04-19 Tristan Gingold <gingold@adacore.com>
5120 * config.gcc (-*-*-*vms): Added.
5121 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5123 * config/vms/vms-ld.c: New file.
5124 * config/vms/vms-ar.c: New file.
5125 * config/vms/t-vmsnative: New file.
5127 2011-04-18 Xinliang David Li <davidxl@google.com>
5129 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5131 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5134 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5135 if TREE_TYPE (v) is non-NULL.
5137 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5138 gimple_get_virt_mehtod_for_binfo.
5139 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5140 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5142 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5144 2011-04-18 Michael Matz <matz@suse.de>
5145 Steve Ellcey <sje@cup.hp.com>
5147 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5148 use its mode as source mode if it isn't VOIDmode.
5150 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5152 * doc/passes.texi: Fill crossref nodes.
5154 2011-04-18 Jim Meyering <meyering@redhat.com>
5156 Fix doubled-word typos in comments and strings
5157 * config/alpha/vms-unwind.h: s/for for/for/
5158 * config/arm/unwind-arm.h: Likewise.
5159 * config/microblaze/microblaze.c: Likewise.
5160 * config/sh/constraints.md: s/in in/in/
5161 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5163 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5165 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5166 (AVX_FLOAT_MODE_P): Ditto.
5167 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5168 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5169 (AVX_VEC_FLOAT_MODE_P): Ditto.
5170 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5171 (UNSPEC_MASKSTORE): Ditto.
5172 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5173 Merge from <sse>_movmsk<ssemodesuffix> and
5174 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5175 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5177 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5178 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5179 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5181 2011-04-18 Jan Hubicka <jh@suse.cz>
5183 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5185 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5186 (want_inline_function_called_once_p): Break out the logic from
5188 (edge_badness): Ensure that profile is not misupdated.
5189 (lookup_recursive_calls): Prioritize by call frequencies.
5190 (inline_small_functions): Move program size estimates here;
5191 actually process whole queue even when unit growth has been
5192 met. (to properly compute inline_failed reasons and for the
5193 case unit size decrease.) Revisit comments on recursive inlining.
5194 (ipa_inline): Remove unit summary code; first inline hot calls
5195 of functions called once, cold calls next.
5196 (order, nnodes): Remove unused variables.
5197 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5198 (GTFILES): Remove ipa-inline.c
5199 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5201 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5203 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5205 2011-04-18 Jie Zhang <jie@codesourcery.com>
5206 Richard Earnshaw <rearnsha@arm.com>
5208 * arm.c (neon_builtin_type_bits): Remove.
5209 (typedef enum neon_builtin_mode): New.
5210 (T_MAX): Don't define.
5211 (typedef enum neon_builtin_datum): Remove bits, codes[],
5212 num_vars and base_fcode. Add mode, code and fcode.
5213 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5214 VAR10): Change accordingly.
5215 (neon_builtin_data[]): Change accordingly
5216 (arm_init_neon_builtins): Change accordingly.
5217 (neon_builtin_compare): Remove.
5218 (locate_neon_builtin_icode): Remove.
5219 (arm_expand_neon_builtin): Change accordingly.
5221 * arm.h (enum arm_builtins): Move to ...
5222 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5224 * arm.c (arm_builtin_decl): Declare.
5225 (TARGET_BUILTIN_DECL): Define.
5226 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5227 (arm_builtin_decls[]): New.
5228 (arm_init_neon_builtins): Store builtin declarations in
5229 arm_builtin_decls[].
5230 (arm_init_tls_builtins): Likewise.
5231 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5232 (arm_builtin_decl): New.
5234 2011-04-18 Richard Guenther <rguenther@suse.de>
5236 * tree.c (upper_bound_in_type): Build properly canonicalized
5238 (lower_bound_in_type): Likewise.
5240 2011-04-18 Richard Guenther <rguenther@suse.de>
5242 * gimple.h (gimple_call_addr_fndecl): New function.
5243 (gimple_call_fndecl): Use it.
5244 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5246 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5247 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5249 2011-04-18 Richard Guenther <rguenther@suse.de>
5252 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5254 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5257 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5258 DECL_IN_CONSTANT_POOL without RTL.
5260 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5261 Ira Rosen <ira.rosen@linaro.org>
5264 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5265 to match neon_vzip/vuzp/vtrn_internal.
5266 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5267 outputs explicitly dependent on both inputs.
5268 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5270 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5272 PR tree-optimization/48616
5273 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5274 whether the shift is by scalar or vector based on whether all SLP
5275 scalar stmts have the same rhs.
5277 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5279 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5282 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5285 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5288 2011-04-17 Jan Hubicka <jh@suse.cz>
5290 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5291 * cgrpahunit.c (cgraph_finalize_function): Do not set
5292 finalized_by_frontend.
5293 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5294 finalized_by_frontend.
5296 2011-04-17 Jan Hubicka <jh@suse.cz>
5298 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5299 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5300 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5301 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5303 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5305 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5307 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5310 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5311 is non-null before accessing it.
5312 (input_cgraph): Remove trailing spaces.
5314 2011-04-17 Revital Eres <revital.eres@linaro.org>
5316 * params.def (sms-min-sc): New param flag.
5317 * modulo-sched.c (sms_schedule): Use it.
5318 * doc/invoke.texi (sms-min-sc): Document it.
5320 2011-04-17 Jan Hubicka <jh@suse.cz>
5322 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5323 present, also set gimple_call_set_cannot_inline.
5324 * ipa-inline.c: Update toplevel comment.
5326 (cgraph_clone_inlined_nodes): Fix linebreaks.
5327 (cgraph_check_inline_limits): Restructure to ...
5328 (caller_growth_limits): ... this one; be more tolerant
5329 on growth in nested inline chains; add explanatory comment;
5330 fix stack accounting thinko introduced by previous patch.
5331 (cgraph_default_inline_p): Remove.
5332 (report_inline_failed_reason): New function.
5333 (can_inline_edge_p): New function.
5334 (can_early_inline_edge_p): New function.
5335 (leaf_node_p): Move upwards in file.
5336 (want_early_inline_function_p): New function.
5337 (want_inline_small_function_p): New function.
5338 (want_inline_self_recursive_call_p): New function.
5339 (cgraph_edge_badness): Rename to ...
5340 (edge_badness) ... this one; fix linebreaks.
5341 (update_edge_key): Update call of edge_baddness; add
5342 detailed dump about queue updates.
5343 (update_caller_keys): Use can_inline_edge_p and
5344 want_inline_small_function_p.
5345 (cgraph_decide_recursive_inlining): Rename to...
5346 (recursive_inlining): Use can_inline_edge_p and
5347 want_inline_self_recursive_call_p; simplify and remove no longer
5349 (cgraph_set_inline_failed): Remove.
5350 (add_new_edges_to_heap): Use can_inline_edge_p and
5351 want_inline_small_function_p.
5352 (cgraph_decide_inlining_of_small_functions): Rename to ...
5353 (inline_small_functions): ... this one; cleanup; use
5354 can/want predicates; cleanup debug ouput; work edges till fibheap
5355 is exhausted and do not stop once unit growth is reached; remove
5356 later loop processing remaining edges.
5357 (cgraph_flatten): Rename to ...
5358 (flatten_function): ... this one; use can_inline_edge_p
5359 and can_early_inline_edge_p predicates.
5360 (cgraph_decide_inlining): Rename to ...
5361 (ipa_inline): ... this one; remove unreachable nodes before
5362 inlining functions called once; simplify the pass.
5363 (cgraph_perform_always_inlining): Rename to ...
5364 (inline_always_inline_functions): ... this one; use
5365 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5366 (cgraph_decide_inlining_incrementally): Rename to ...
5367 (early_inline_small_functions): ... this one; simplify
5368 using new predicates; cleanup; make dumps prettier.
5369 (cgraph_early_inlining): Rename to ...
5370 (early_inliner): newer inline regular functions into always-inlines;
5371 fix updating of call stmt summaries.
5372 (pass_early_inline): Update for new names.
5373 (inline_transform): Fix formating.
5374 (gate_cgraph_decide_inlining): Rename to ...
5375 (pass_ipa_inline): ... this one.
5376 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5377 * ipa-inline-analysis.c (dump_inline_summary): Update.
5378 (compute_inline_parameters): Do not compute disregard_inline_limits;
5379 look for mismatching arguments.
5380 (estimate_growth): Fix handlig of non-trivial self recursion.
5381 (inline_read_summary): Do not read info->disregard_inline_limits.
5382 (inline_write_summary): Do not write info->disregard_inline_limits.
5383 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5384 and move all checks into can_inline_edge_p predicate; re-enable code
5385 comparing optimization levels.
5386 (expand_call_inline): Do not test inline_forbidden_into_p.
5387 * Makefile.in (ipa-inline.o): Update arguments.
5389 2011-04-17 Revital Eres <revital.eres@linaro.org>
5391 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5393 2011-04-17 Revital Eres <revital.eres@linaro.org>
5395 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5397 2011-04-17 Michael Matz <matz@suse.de>
5399 PR tree-optimization/48622
5401 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5402 in same order as they're written.
5404 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5406 * config/pa/predicates.md: Reorganize and simplify predicates.
5407 Eliminate duplicate code checks.
5408 (arith_operand): Rename to arith14_operand
5409 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5410 * config/pa/pa.md: Use renamed operands.
5411 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5412 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5413 arith11_operand, adddi3_operand, indexed_memory_operand,
5414 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5415 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5416 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5417 move_dest_operand, move_src_operand, prefetch_cc_operand,
5418 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5419 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5420 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5421 div_operand, int5_operand, movb_comparison_operator,
5422 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5423 arith_double_operand, ireg_operand, lhs_lshift_operand,
5424 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5425 integer_store_memory_operand): Likewise.
5426 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5427 (integer_store_memory_operand, read_only_operand,
5428 function_label_operand, borx_reg_operand,
5429 non_hard_reg_operand): Likewise.
5430 (eq_neq_comparison_operator): Delete unused operator.
5431 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5432 function_label_operand.
5433 (emit_move_sequence): Likewise.
5435 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5437 * config/i386/sse.md (sseunpackmode): New mode attribute.
5438 (ssepackmode): Ditto.
5439 (vec_pack_trunc_<mode>): Macroize expander from
5440 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5441 (vec_unpacks_lo_<mode>): Macroize expander from
5442 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5443 (vec_unpacks_hi_<mode>): Macroize expander from
5444 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5445 (vec_unpacku_lo_<mode>): Macroize expander from
5446 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5447 (vec_unpacku_hi_<mode>): Macroize expander from
5448 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5449 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5450 ix86_expand_sse4_unpack.
5451 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5453 2011-04-16 Jan Hubicka <jh@suse.cz>
5455 * cgraphbuild.c: Include ipa-inline.h.
5456 (reset_inline_failed): Use initialize_inline_failed.
5457 * cgraph.c: Include ipa-inline.h.
5458 (cgraph_create_node_1): Do not initialize estimated_growth.
5459 (initialize_inline_failed): More to ipa-inline-analysis.c
5460 (dump_cgraph_node): Do not dump inline flags.
5461 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5462 and disregard_inline_limits flags.
5463 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5464 time, size, estimated_growth.
5465 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5467 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5468 DECL_DISREGARD_INLINE_LIMITS.
5469 (cgraph_analyze_function): Do not initialize
5470 node->local.disregard_inline_limits.
5471 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5472 inlinable, versionable and disregard_inline_limits.
5473 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5474 cgraph_check_inline_limits, cgraph_default_inline_p,
5475 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5476 add_new_edges_to_heap): Update.
5477 (cgraph_decide_inlining_of_small_function): Update; set
5478 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5479 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5480 cgraph_decide_inlining_incrementally): Update.
5481 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5482 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5483 time, size and estimated_growth parameters.
5484 (estimate_edge_growth): Update.
5485 (initialize_inline_failed): Declare.
5486 * ipa-split.c: Include ipa-inline.h
5487 (execute_split_functions): Update.
5488 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5489 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5490 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5491 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5492 estimated_growth to INT_MIN.
5493 (inline_node_duplication_hook): Likewise.
5494 (dump_inline_summary): Dump new fields.
5495 (compute_inline_parameters): Update.
5496 (estimate_edge_time, estimate_time_after_inlining,
5497 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5498 inline_write_summary):
5499 (initialize_inline_failed): Move here from cgraph.c.
5500 * tree-sra.c: Include ipa-inline.h.
5501 (ipa_sra_preliminary_function_checks): Update.
5502 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5505 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5507 * config/i386/sse.md (V16): New mode iterator.
5509 (AVXMODEQI, AVXMODEDI): Remove.
5510 (sse2, sse3): New mode attribute.
5511 (mov<mode>): Use V16 mode iterator.
5512 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5513 (push<mode>1): Use V16 mode iterator.
5514 (movmisalign<mode>): Ditto.
5515 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5516 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5517 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5518 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5519 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5520 avx_movdqu<avxmodesuffix>.
5521 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5522 *avx_movdqu<avxmodesuffix>.
5523 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5524 avx_lddqu<avxmodesuffix>.
5525 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5526 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5527 avx_movnt<AVXMODEDI:mode>.
5528 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5529 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5531 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5534 * haifa-sched.c (prune_ready_list, schedule_block): Use
5535 sched_pressure_p rather than flag_sched_pressure.
5537 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5539 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5540 cgraph_get_node instead of cgraph_get_create_node.
5542 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5544 * cfgexpand.c (expand_debug_expr): Use
5545 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5547 2011-04-15 Michael Matz <matz@suse.de>
5549 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5550 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5551 * function.c (gimplify_parameters): Ditto.
5552 * gimplify.c (gimplify_vla_decl): Ditto.
5554 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5555 (gimple_call_set_alloca_for_var): New inline function.
5556 (gimple_call_alloca_for_var_p): Ditto.
5557 * gimple.c (gimple_build_call_from_tree): Remember
5558 CALL_ALLOCA_FOR_VAR_P state.
5559 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5561 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5562 calls if they were for VLA objects.
5564 2011-04-15 Martin Jambor <mjambor@suse.cz>
5566 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5569 2011-04-15 Martin Jambor <mjambor@suse.cz>
5572 * tree-emutls.c (lower_emutls_function_body): Call
5573 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5576 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5578 * c-decl.c (detect_field_duplicates): Call
5579 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5581 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5583 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5584 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5585 * ipa-pure-const.c (check_stmt): Call it.
5586 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5588 2011-04-15 Richard Guenther <rguenther@suse.de>
5590 PR tree-optimization/48290
5591 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5592 Properly decide inhibiting propagation based on the valueized
5593 operand. Do loop-closed SSA form preserving here ...
5594 (init_copy_prop): ... not here.
5596 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5599 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5600 (*ieee_smax<mode>3): Likewise.
5602 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5604 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5605 Replace match_operand with match_dup for the third operand in
5608 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5610 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5611 to track processing of conditionals. Update all callers.
5612 (try_combine, simplify_if_then_else): Update.
5614 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5616 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5619 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5621 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5622 instead of match_operand for operand 3.
5624 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5626 * recog.h (insn_operand_data): Add an "allows_mem" field.
5627 * genoutput.c (output_operand_data): Initialize it.
5628 * optabs.c (maybe_legitimize_operand_same_code): New function.
5629 (maybe_legitimize_operand): Use it when matching the original
5632 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5634 * gimplify.c: Fix issues in comments throughout.
5635 (voidify_wrapper_expr): Fix long line.
5636 (build_stack_save_restore): Likewise.
5637 (gimplify_loop_expr): Likewise.
5638 (gimplify_compound_lval): Likewise.
5639 (gimplify_init_ctor_eval): Likewise.
5640 (gimplify_modify_expr_rhs): Likewise.
5641 (omp_notice_threadprivate_variable): Likewise.
5643 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5645 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5646 original one if this is not a builtin function.
5648 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5651 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5652 offset it as needed based on top 2 bits in operands[3], change
5653 MEM mode to SFmode and mask those 2 bits away from operands[3].
5655 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5657 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5658 change from objc_declare_protocols() to objc_declare_protocol().
5660 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5662 * config/i386/sse.md (sse4_1): New mode attribute.
5663 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5664 avx_blend<ssemodesuffix><avxmodesuffix> and
5665 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5666 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5667 avx_blendv<ssemodesuffix><avxmodesuffix> and
5668 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5669 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5670 avx_dp<ssemodesuffix><avxmodesuffix> and
5671 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5672 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5673 (sse4_1_packusdw): Merge with *avx_packusdw.
5674 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5675 (sse4_1_pblendw): Merge with *avx_pblendw.
5676 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5677 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5678 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5680 (sse4_1_round<ssescalarmodesuffix>): Merge with
5681 *avx_round<ssescalarmodesuffix>.
5682 (aesenc): Merge with *avx_aesenc.
5683 (aesenclast): Merge with *avx_aesenclast.
5684 (aesdec): Merge with *avx_aesdec.
5685 (aesdeclast): Merge with *avx_aesdeclast.
5686 (pclmulqdq): Merge with *pclmulqdq.
5687 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5689 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5691 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5694 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5695 (align_local_variable): This. Update DECL_ALIGN.
5696 (add_stack_var): Updated.
5697 (expand_one_stack_var): Likewise.
5699 2011-04-14 Richard Guenther <rguenther@suse.de>
5701 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5703 (dse_initialize_block_local_data, dse_leave_block,
5704 record_voperand_set, get_stmt_uid): Likewise.
5705 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5706 (dse_optimize_stmt): Remove voperand set handling code.
5707 Simplify and improve to handle any kind of killing stmt.
5708 (dse_record_phi): Remove.
5709 (dse_enter_block): Simplify.
5710 (tree_ssa_dse): Likewise.
5711 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5713 2011-04-14 Jan Hubicka <jh@suse.cz>
5715 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5716 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5717 (cgraph_local_info): Remove inline_summary.
5718 * ipa-cp.c: Include ipa-inline.h.
5719 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5720 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5722 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5723 (input_overwrite_node): Do not set inline summary.
5724 (input_node): Do not stream inline summary.
5725 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5726 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5727 growth; we do not have inline parameters computed for that anyway.
5728 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5729 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5730 (inline_summary_t): New type and VECtor.
5731 (debug_inline_summary, dump_inline_summaries): Declare.
5732 (inline_summary): Use VOCtor.
5733 (estimate_edge_growth): Kill hack computing call stmt size directly.
5734 * lto-section-in.c (lto_section_name): Add inline section.
5735 * ipa-inline-analysis.c: Include lto-streamer.h
5736 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5737 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5738 (inline_summary_vec): Define.
5739 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5740 dump_inline_summaries): New functions.
5741 (estimate_function_body_sizes): Properly compute size/time of outgoing
5743 (compute_inline_parameters): Alloc inline_summary; do not compute
5744 size/time of incomming calls.
5745 (estimate_edge_time): Avoid missing time summary hack.
5746 (inline_read_summary): Read inline summary info.
5747 (inline_write_summary): Write inline summary info.
5748 (inline_free_summary): Free all hooks and inline summary vector.
5749 * lto-streamer.h: Add LTO_section_inline_summary section.
5750 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5751 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5753 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5755 * tree-vectorizer.h (vect_strided_store_supported): Add a
5756 HOST_WIDE_INT argument.
5757 (vect_strided_load_supported): Likewise.
5758 (vect_permute_store_chain): Return void.
5759 (vect_transform_strided_load): Likewise.
5760 (vect_permute_load_chain): Delete.
5761 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5762 count argument. Check that the count is a power of two.
5763 (vect_strided_load_supported): Likewise.
5764 (vect_permute_store_chain): Return void. Update after above changes.
5765 Assert that the access is supported.
5766 (vect_permute_load_chain): Likewise.
5767 (vect_transform_strided_load): Return void.
5768 * tree-vect-stmts.c (vectorizable_store): Update calls after
5769 above interface changes.
5770 (vectorizable_load): Likewise.
5771 (vect_analyze_stmt): Don't check for strided powers of two here.
5773 2011-04-14 Richard Guenther <rguenther@suse.de>
5775 PR tree-optimization/48590
5776 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5777 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5778 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5779 BUILT_IN_STACK_SAVE.
5780 * tree-ssa-dce.c (propagate_necessity): Handle
5781 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5783 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5785 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5788 2011-04-14 Richard Guenther <rguenther@suse.de>
5790 * tree.h (get_object_alignment_1): Declare.
5791 * builtins.c (get_object_alignment_1): Split out worker from ...
5792 (get_object_alignment): ... here.
5793 * fold-const.c (get_pointer_modulus_and_residue): Use
5794 get_object_alignment_1.
5796 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5798 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5800 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5801 parameter. Generalise code to handle arrays as well as vectors.
5802 (vect_setup_realignment): Update accordingly.
5803 * tree-vect-stmts.c (vectorizable_store): Likewise.
5804 (vectorizable_load): Likewise.
5806 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5808 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5809 within the per-copy loop.
5811 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5813 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5816 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5818 * doc/options.texi (Negative): Explicitly mention that the
5819 Negative chain must be circular.
5821 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5823 * function.h (block_chainon): Declare.
5824 * function.c (block_chainon): Define.
5826 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5827 Eric Weddington <eric.weddington@atmel.com>
5828 Georg-Johann Lay <avr@gjlay.de>
5830 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5832 (avr_init_builtins, avr_expand_builtin,
5833 avr_expand_delay_cycles, avr_expand_unop_builtin,
5834 avr_expand_binop_builtin ): New functions.
5835 (avr_builtin_id): New enum
5836 (struct avr_builtin_description): New struct
5837 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5838 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5840 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5841 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5842 UNSPECV_DELAY_CYCLES): new enumeration values
5843 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5844 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5845 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5846 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5847 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5848 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5849 "fmulsu"): New insns
5851 * config/avr/avr-c.c: fix line endings
5852 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5853 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5854 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5855 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5856 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5858 * doc/extend.texi (AVR Built-in Functions): New node
5859 (Target Builtins): Add documentation of AVR
5862 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5865 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5866 alone. Error if non-const data has attribute progmem.
5868 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5870 * tree.h (struct tree_constructor): Include tree_typed instead of
5872 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5873 TS_TYPED instead of TS_COMMON.
5875 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5877 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5878 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5879 (sse2_psadbw): Merge with *avx_psadbw.
5880 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5881 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5882 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5883 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5884 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5885 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5886 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5887 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5888 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5889 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5890 (ssse3_palignrti): Merge with *avx_palignrti.
5892 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5894 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5895 * tree-ssanames.c (fini_ssanames): VEC_free it.
5896 (make_ssa_name_fn): Update for VECness of free_ssanames.
5897 (release_ssa_name, release_dead_ssa_names): Likewise.
5898 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5900 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5901 TS_TYPED instead of TS_COMMON.
5903 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5905 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5906 statistics_counter_event.
5907 * tree-ssa-copyrename.c (stats): Define.
5908 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5909 statistics_counter_event.
5910 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5911 (bswap_stats, widen_mul_stats): Define.
5912 (insert_reciprocals): Increment rdivs_inserted.
5913 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5914 rfuncs_inserted. Add calls to statistics_counter_event.
5915 (execute_cse_sincos_1): Increment inserted.
5916 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5917 statistics_counter_event.
5918 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5919 of bswap_stats. Add calls to statistics_counter_event.
5920 (convert_mult_to_widen): Increment widen_mults_inserted.
5921 (convert_plusminus_to_widen): Increment maccs_inserted.
5922 (convert_mult_to_fma): Increment fmas_inserted.
5923 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5924 calls to statistics_counter_event.
5926 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5928 PR rtl-optimization/48455
5929 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5930 `temp_costs->mem_cost'.
5932 2011-04-13 Jan Hubicka <jh@suse.cz>
5934 * ipa-inline.h: New file.
5935 * ipa-inline-analysis.c: New file. Broken out of ...
5936 * ipa-inline.c: ... this file; update toplevel comment;
5937 include ipa-inline.h
5938 (inline_summary): Move to ipa-inline.h
5939 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5940 ipa-inline-analysis.c.
5941 (cgraph_estimate_time_after_inlining): Rename to
5942 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5943 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5944 to estimate_edge_growth.
5945 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5946 rename to estimate_size_after_inlining.
5947 (cgraph_mark_inline_edge): Update for new naming convention.
5948 (cgraph_check_inline_limits): Likewise.
5949 (cgraph_edge_badness): Likewise.
5950 (cgraph_decide_recursive_inlining): Likewise.
5951 (cgraph_decide_inlining_of_small_functions): Likewise.
5952 (cgraph_decide_inlining_incrementally): Likewise.
5953 (cgraph_estimate_growth): Rename to estimate_growth; move to
5954 ipa-inline-analysis.c.
5955 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5956 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5957 (compute_inline_parameters): Likewise.
5958 (compute_inline_parameters_for_current): Likewise.
5959 (pass_inline_parameters): Likewise.
5960 (inline_indirect_intraprocedural_analysis): Likewise.
5961 (analyze_function): Rename to inline_analyze_function; likewise.
5962 (add_new_function): Move to ipa-inline-analysis.c.
5963 (inline_generate_summary): Likewise.
5964 (inline_read_summary): Likewise.
5965 (inline_write_summary): Likewise.
5966 * Makefile.in (ipa-inline-analysis.c): New file.
5968 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5970 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5971 * configure: Regenerate.
5973 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5975 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5976 instead of tree_common.
5977 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5979 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5980 TS_TYPED rather than TS_COMMON.
5981 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5983 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5986 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5987 r20 around calls of __tablejump_elpm__
5989 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5992 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5994 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5996 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5998 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5999 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6000 (cfi_vec): New typedef.
6001 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6002 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6003 (cie_cfi_vec): New static variable.
6004 (cie_cfi_head): Delete.
6005 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6006 declaration changed. Use vector rather than list operations.
6007 (new_cfi): Don't initialize the dw_cfi_next field.
6008 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6009 rather than list operations.
6010 (lookup_cfa): Use vector rather than list operations.
6011 (output_cfis): New argument upto. Accept a cfi_vec rather than
6012 a dw_cfi_ref list head as argument. All callers changed.
6013 Iterate over the vector using upto as a maximum index.
6014 (output_all_cfis): New static function.
6015 (output_fde): Use vector rather than list operations. Use the
6016 new upto argument for output_cfis rather than manipulating a
6018 (dwarf2out_begin_prologue): Change initializations to match
6020 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6021 from the vector length rather than searching for the end of a list.
6022 Use output_all_cfis.
6023 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6025 2011-04-13 Nick Clifton <nickc@redhat.com>
6027 * config/rx/rx.md (movmemsi): Do not use this pattern when
6028 volatile pointers are involved.
6030 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6032 * config/i386/sse.md (pinsrbits): Remove.
6033 (sse2_packsswb): Merge with *avx_packsswb.
6034 (sse2_packssdw): Merge with *avx_packssdw.
6035 (sse2_packuswb): Merge with *avx_packuswb.
6036 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6037 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6038 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6039 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6040 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6041 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6042 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6043 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6044 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6045 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6046 (sse2_loadld): Merge with *avx_loadld.
6047 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6048 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6049 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6050 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6051 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6053 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6055 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6057 * print-tree.c (print_node): Likewise.
6058 * tree-inline.c (copy_tree_r): Likewise.
6059 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6060 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6061 instead of TS_COMMON.
6062 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6063 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6064 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6065 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6066 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6068 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6070 (TREE_CHAIN): Check for a TS_COMMON structure.
6071 (TREE_TYPE): Check for a TS_TYPED structure.
6073 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6075 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6076 cgraph_get_create_node instead of cgraph_node.
6078 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6080 * c-parser.c (c_parser_initelt): Updated call to
6081 objc_build_message_expr.
6082 (c_parser_postfix_expression): Likewise.
6084 2011-04-12 Kai Tietz <ktietz@redhat.com>
6086 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6087 MASK_MS_BITFIELD_LAYOUT bit.
6089 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6091 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6092 assert it is always true.
6093 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6096 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6098 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6099 compiling Objective-C to be more efficient.
6101 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6103 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6106 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6108 * recog.h, genoutput.c, optabs.c: Revert last patch.
6110 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6113 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6115 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6117 * recog.h (insn_operand_data): Add an "allows_mem" field.
6118 * genoutput.c (output_operand_data): Initialize it.
6119 * optabs.c (maybe_legitimize_operand_same_code): New function.
6120 (maybe_legitimize_operand): Use it when matching the original
6123 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6125 * genpreds.c (process_define_predicate): Move most processing
6126 to gensupport.c. Continue to validate the expression.
6127 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6128 (process_define_predicate): Move processing to gensupport.c.
6129 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6130 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6131 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6133 (valid_predicate_name_p): New function, split out from old
6134 genpreds.c:process_define_predicate.
6135 (process_define_predicate): New function, combining code from
6136 old genpreds.c and genrecog.c functions.
6137 (process_rtx): Call it for DEFINE_PREDICATE and
6138 DEFINE_SPECIAL_PREDICATE.
6140 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6142 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6143 size of a '%A' memory reference.
6144 (T_DREG, T_QREG): New neon_builtin_type_bits.
6145 (arm_init_neon_builtins): Assert that the load and store operands
6146 are neon_struct_operands.
6147 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6148 (NEON_ARG_MEMORY): New builtin_arg.
6149 (neon_dereference_pointer): New function.
6150 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6151 Handle NEON_ARG_MEMORY.
6152 (arm_expand_neon_builtin): Update after above interface changes.
6153 Use NEON_ARG_MEMORY for loads and stores.
6154 * config/arm/predicates.md (neon_struct_operand): New predicate.
6155 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6156 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6157 (V_four_elem): Tweak formatting.
6158 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6159 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6160 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6161 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6162 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6163 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6164 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6165 Use %A in the output template.
6166 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6167 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6168 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6169 the width of the memory access. Remove post-increment.
6170 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6172 2011-04-12 Nick Clifton <nickc@redhat.com>
6174 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6175 instruction for interrupt handlers if the target is the basic V850
6177 (expand_epilogue): Likewise.
6179 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6181 PR rtl-optimization/48549
6182 * combine.c (propagate_for_debug): Also stop after BB_END of
6183 this_basic_block. Process LAST and just stop processing after it.
6184 (combine_instructions): If last_combined_insn has been deleted,
6185 set last_combined_insn to its PREV_INSN.
6187 2011-04-12 Richard Guenther <rguenther@suse.de>
6189 PR tree-optimization/46076
6190 * gimple.h (struct gimple_statement_call): Add fntype field.
6191 (gimple_call_fntype): Adjust.
6192 (gimple_call_set_fntype): New function.
6193 * gimple.c (gimple_build_call_1): Set the call function type.
6194 * gimplify.c (gimplify_call_expr): Preserve the function
6195 type the frontend used for the call.
6196 (gimplify_modify_expr): Likewise.
6197 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6199 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6201 * tree-ssa.c (useless_type_conversion_p): Function pointer
6202 conversions are useless.
6204 2011-04-12 Martin Jambor <mjambor@suse.cz>
6206 * cgraph.h (cgraph_node): Remove function declaration.
6207 (cgraph_create_node): Declare.
6208 (cgraph_get_create_node): Likewise.
6209 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6210 Updated all callers.
6211 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6212 the decl does not already exist. Call cgraph_get_create_node instead
6214 (cgraph_get_create_node): New function.
6215 (cgraph_same_body_alias): Update comment.
6216 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6217 assert it does not return NULL.
6218 (cgraph_update_edges_for_call_stmt): Likewise.
6219 (cgraph_clone_edge): Likewise.
6220 (cgraph_create_virtual_clone): Likewise.
6221 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6222 instead of cgraph_node.
6223 (cgraph_add_new_function): Call cgraph_create_node or
6224 cgraph_get_create_node instead of cgraph_node.
6225 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6226 instead of cgraph_node.
6227 (record_eh_tables): Likewise.
6228 (mark_address): Likewise.
6229 (mark_load): Likewise.
6230 (build_cgraph_edges): Call cgraph_get_create_node instead
6232 (rebuild_cgraph_edges): Likewise.
6233 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6234 instead of cgraph_node.
6235 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6237 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6238 cgraph_create_node instead of cgraph_node.
6239 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6241 * lto-cgraph.c (input_node): Likewise.
6242 * lto-streamer-in.c (input_function): Likewise.
6243 * varasm.c (mark_decl_referenced): Likewise.
6244 (assemble_alias): Likewise.
6246 2011-04-12 Martin Jambor <mjambor@suse.cz>
6248 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6249 instead of cgraph_node and assert it does not return NULL.
6250 * lto-streamer-in.c (lto_read_body): Likewise.
6251 * omp-low.c (new_omp_context): Likewise.
6252 (create_task_copyfn): Likewise.
6253 * tree-emutls.c (lower_emutls_function_body): Likewise.
6254 * matrix-reorg.c (transform_allocation_sites): Likewise.
6256 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6259 * c-typeck.c (build_asm_expr): Error out on attempts to use
6260 void type outputs or inputs for constraints that allow reg or
6263 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6264 Richard Earnshaw <rearnsha@arm.com>
6267 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6268 to use sign-magnitude offsets. Reject unsupported unaligned
6269 cases. Add detailed description in comments.
6270 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6271 condition from TARGET_32BIT to TARGET_ARM.
6273 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6275 * tree.h (struct typed_tree): New.
6276 (struct tree_common): Include it instead of tree_base.
6277 (TREE_TYPE): Update for new location of type field.
6278 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6279 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6280 (union tree_node): Add typed field.
6281 * treestruct.def (TS_TYPED): New.
6282 * lto-streamer.c (check_handled_ts_structures): Handle it.
6283 * tree.c (MARK_TS_TYPED): New macro.
6284 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6286 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6288 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6289 (force_nonfallthru): Do not alter the loop nest if no basic block
6292 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6294 * config/i386/sse.md (VI): New mode iterator.
6296 (AVX256MODEI): Ditto.
6297 (AVXMODEF4P): Ditto.
6298 (avxvecpsmode): Ditto.
6299 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6300 (sse2_andnot<mode>3): New expander.
6301 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6302 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6303 (<any_logic:code><mode>3): Use VI mode iterator.
6304 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6305 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6306 (*andnottf3): Handle AVX three-operand constraints.
6307 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6309 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6310 Robert Millan <rmh@gnu.org>
6312 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6313 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6314 GNU_USER_DYNAMIC_LINKER64): Define.
6315 (REG_NAME): Don't undefine.
6316 (MD_UNWIND_SUPPORT): Undefine.
6317 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6318 (REG_NAME): Don't undefine.
6319 (MD_UNWIND_SUPPORT): Undefine.
6320 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6322 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6324 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6325 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6327 2011-04-11 Xinliang David Li <davidxl@google.com>
6329 * value-profile.c (check_ic_target): New function.
6330 (gimple_ic_transform): Sanity check indirect call target.
6331 * gimple-low.c (gimple_check_call_args): Interface change.
6332 (gimple_check_call_matching_types): New function.
6333 * tree-inline.c (tree_can_inline_p): Call new function.
6335 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6337 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6338 tree-pretty-print.h & realmpfr.h.
6340 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6343 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6344 (setup_allocno_and_important_classes): Ditto.
6346 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6348 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6349 GNU_USER_DYNAMIC_LINKER.
6350 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6351 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6352 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6353 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6354 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6355 GNU_USER_TARGET_OS_CPP_BUILTINS.
6356 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6357 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6358 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6360 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6361 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6362 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6363 GNU_USER_TARGET_OS_CPP_BUILTINS.
6364 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6365 GNU_USER_DYNAMIC_LINKER.
6366 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6367 GNU_USER_TARGET_OS_CPP_BUILTINS.
6368 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6369 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6370 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6371 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6372 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6373 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6374 GNU_USER_DYNAMIC_LINKER64): Remove.
6375 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6376 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6377 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6378 GNU_USER_DYNAMIC_LINKER.
6379 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6380 GNU_USER_TARGET_OS_CPP_BUILTINS.
6381 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6382 GNU_USER_TARGET_OS_CPP_BUILTINS.
6383 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6384 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6385 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6386 GNU_USER_TARGET_OS_CPP_BUILTINS.
6387 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6388 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6389 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6390 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6391 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6392 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6393 GNU_USER_DYNAMIC_LINKER.
6394 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6395 GNU_USER_TARGET_OS_CPP_BUILTINS.
6396 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6397 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6398 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6399 GNU_USER_DYNAMIC_LINKER.
6400 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6401 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6402 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6403 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6404 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6405 GNU_USER_DYNAMIC_LINKER.
6406 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6407 GNU_USER_DYNAMIC_LINKERN32.
6408 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6409 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6410 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6411 GNU_USER_DYNAMIC_LINKER32.
6412 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6413 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6414 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6415 GNU_USER_DYNAMIC_LINKER.
6416 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6417 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6418 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6419 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6420 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6421 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6422 GNU_USER_DYNAMIC_LINKER32.
6423 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6424 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6425 GNU_USER_DYNAMIC_LINKER.
6426 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6427 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6428 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6429 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6430 GNU_USER_DYNAMIC_LINKER64.
6431 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6432 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6433 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6434 GNU_USER_DYNAMIC_LINKER.
6435 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6436 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6437 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6438 GNU_USER_DYNAMIC_LINKER.
6439 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6440 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6441 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6442 GNU_USER_DYNAMIC_LINKER32.
6443 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6444 GNU_USER_DYNAMIC_LINKER64.
6445 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6446 GNU_USER_DYNAMIC_LINKER64.
6447 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6448 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6449 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6450 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6451 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6453 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6455 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6456 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6457 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6458 GNU_USER_DYNAMIC_LINKER.
6459 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6460 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6461 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6462 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6463 GNU_USER_DYNAMIC_LINKER64.
6464 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6465 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6466 GNU_USER_LINK_EMULATION.
6467 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6468 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6469 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6470 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6471 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6472 CPP_SPEC, CC1_SPEC): Remove.
6473 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6474 (GNU_USER_DYNAMIC_LINKER): Define.
6475 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6476 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6477 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6478 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6479 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6480 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6481 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6482 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6483 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6484 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6485 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6486 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6487 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6488 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6489 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6490 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6491 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6492 GNU_USER_DYNAMIC_LINKER.
6493 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6494 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6495 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6496 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6497 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6498 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6499 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6500 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6501 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6502 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6504 2011-04-11 Kai Tietz <ktietz@redhat.com>
6508 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6509 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6511 (ix86_is_msabi_thiscall): Removed.
6512 (ix86_is_type_thiscall): Likewise.
6513 (ix86_get_callcvt): New function.
6514 (ix86_comp_type_attributes): Simplify check.
6515 (ix86_function_regparm): Use ix86_get_callcvt for calling
6516 convention attribute checks.
6517 (ix86_return_pops_args): Likewise.
6518 (ix86_static_chain): Likewise.
6519 (x86_this_parameter): Likewise.
6520 (x86_output_mi_thunk): Likewise.
6521 (ix86_function_type_abi): Optimize check for types without attributes.
6522 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6523 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6524 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6526 (IX86_BASE_CALLCVT): Helper macro.
6527 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6528 Use ix86_get_callcvt for calling convention attribute checks and avoid
6529 symbol-decoration for stdcall in TARGET_RTD case.
6530 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6532 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6535 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6537 * config/i386/sse.md (VI_128): New mode iterator.
6538 (VI12_128): Rename from SSEMODE12.
6539 (VI14_128): Rename from SSEMODE14.
6540 (VI124_128): New mode iterator.
6541 (VI24_128): Rename from SSEMODE248.
6542 (VI248_128): Rename from SSEMODE248.
6543 (SSEMODE124C8): Remove.
6544 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6545 (*sse2_<plusminus_insn><mode>3): Merge with
6546 *avx_<plusminus_insn><mode>3.
6547 (*mulv8hi3): Merge with *avx_mulv8hi3.
6548 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6549 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6550 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6551 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6552 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6553 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6554 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6555 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6556 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6557 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6558 (*<smaxmin:code>v8hi3): Ditto.
6559 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6560 (*<smaxmin:code>v16qi3): Ditto.
6561 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6562 (*sse2_eq<mode>3): Ditto.
6563 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6564 (*sse2_gt<mode>3): Ditto.
6565 (vcondv2di): Split out of vcond<mode>.
6566 (vconduv2di): Split out of vcondu<mode>.
6568 2011-04-11 Richard Guenther <rguenther@suse.de>
6570 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6571 before calling tree_low_cst.
6573 2011-04-11 Richard Guenther <rguenther@suse.de>
6575 * stor-layout.c (layout_type): Compute all array index size operations
6576 in the original type.
6577 (initialize_sizetypes): Add comment.
6578 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6580 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6582 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6584 2011-04-11 Martin Jambor <mjambor@suse.cz>
6586 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6587 of cgraph_node, handle NULL return value.
6588 (cgraph_global_info): Likewise.
6589 (cgraph_rtl_info): Likewise.
6590 * tree-inline.c (estimate_num_insns): Likewise.
6591 * gimplify.c (unshare_body): Likewise.
6592 (unvisit_body): Likewise.
6593 (gimplify_body): Likewise.
6594 * predict.c (optimize_function_for_size_p): Likewise.
6595 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6596 (call_may_clobber_ref_p_1): Likewise.
6597 * varasm.c (function_section_1): Likewise.
6598 (assemble_start_function): Likewise.
6600 2011-04-11 Martin Jambor <mjambor@suse.cz>
6602 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6604 * final.c (rest_of_clean_state): Likewise.
6605 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6606 * passes.c (pass_init_dump_file): Likewise.
6607 (execute_all_ipa_transforms): Likewise.
6608 (function_called_by_processed_nodes_p): Likewise.
6609 * predict.c (maybe_hot_frequency_p): Likewise.
6610 (probably_never_executed_bb_p): Likewise.
6611 (compute_function_frequency): Likewise.
6612 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6613 (unnest_nesting_tree_1): Likewise.
6614 (lower_nested_functions): Likewise.
6615 * tree-optimize.c (execute_fixup_cfg): Likewise.
6616 (tree_rest_of_compilation): Likewise.
6617 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6618 * tree-sra.c (ipa_early_sra): Likewise.
6619 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6620 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6621 * ipa.c (record_cdtor_fn): Likewise.
6622 * ipa-inline.c (cgraph_early_inlining): Likewise.
6623 (compute_inline_parameters_for_current): Likewise.
6624 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6625 * ipa-pure-const.c (local_pure_const): Likewise.
6626 * ipa-split.c (split_function): Likewise.
6627 (execute_split_functions): Likewise.
6628 * cgraphbuild.c (build_cgraph_edges): Likewise.
6629 (rebuild_cgraph_edges): Likewise.
6630 (cgraph_rebuild_references): Likewise.
6631 (remove_cgraph_callee_edges): Likewise.
6632 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6633 (verify_cgraph_node): Likewise.
6634 (cgraph_analyze_functions): Likewise.
6635 (cgraph_preserve_function_body_p): Likewise.
6636 (save_inline_function_body): Likewise.
6637 (save_inline_function_body): Likewise.
6638 * tree-inline.c (copy_bb): Likewise.
6639 (optimize_inline_calls): Likewise.
6641 2011-04-11 Martin Jambor <mjambor@suse.cz>
6643 PR tree-optimization/48195
6644 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6645 ipa_check_create_edge_args.
6646 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6647 ipa_check_create_edge_args.
6648 * ipa-inline.c (inline_generate_summary): Do not call
6649 ipa_check_create_node_params and ipa_check_create_edge_args.
6650 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6651 ipa_check_create_edge_args.
6653 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6655 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6657 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6658 * function.c (record_hard_reg_sets): Likewise.
6659 * ira.c (compute_regs_asm_clobbered): Likewise.
6660 * sched-deps.c (sched_analyze_1): Likewise.
6661 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6663 2011-04-09 Xinliang David Li <davidxl@google.com>
6665 PR tree-optimization/PR48484
6666 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6667 has_valid_pred lazily
6669 2011-04-09 Duncan Sands <baldrick@free.fr>
6671 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6673 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6675 * combine.c (combine_validate_cost): Adjust comments. Set registered
6676 cost of I0 to zero at the end, if any.
6678 2011-04-08 Xinliang David Li <davidxl@google.com>
6680 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6681 to insane profile data.
6683 2011-04-08 Xinliang David Li <davidxl@google.com>
6685 * ipa-cp.c (ipcp_update_profiling): Correct
6686 negative scale factor due to insane profile data.
6688 2011-04-08 Xinliang David Li <davidxl@google.com>
6690 * final.c (dump_basic_block_info): New function.
6691 (final): Dump basic block.
6692 (final_scan_insn): Remove old dump.
6694 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6697 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6700 2011-04-08 Michael Matz <matz@suse.de>
6703 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6705 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6706 * rtl.h (rebuild_jump_labels_chain): Declare.
6707 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6708 insns inserted on edges.
6710 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6712 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6713 * config/arm/arm-arches.def: New.
6714 * config/arm/arm-opts.h: New.
6715 * config/arm/genopt.sh: New.
6716 * config/arm/arm-tables.opt: New (generated).
6717 * config/arm/arm.c (arm_handle_option, arm_target_help,
6718 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6719 (all_architectures): Get most table contents from arm-arches.def.
6720 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6721 arm_selected_tune here.
6722 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6723 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6724 (march=, mcpu=, mtune=): Use Enum and Var.
6725 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6726 (arm.o): Update dependencies.
6728 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6730 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6732 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6733 (write_typed_alloc_defns): Likewise.
6734 (main): Calls write_typed_alloc_defns with output_header.
6736 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6739 * ira-color.c (setup_profitable_hard_regs): Add comments.
6740 Don't take prohibited hard regs into account.
6741 (setup_conflict_profitable_regs): Rename to
6742 get_conflict_profitable_regs.
6743 (check_hard_reg_p): Check prohibited hard regs.
6745 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6747 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6748 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6749 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6751 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6754 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6755 move from floating point to shift amount register.
6756 (emit_move_sequence): Remove secondary reload support for floating
6757 point to shift amount amount register copies.
6758 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6759 amount register copies.
6760 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6761 register, return false if mode isn't a scalar integer mode.
6762 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6764 2011-04-08 Richard Guenther <rguenther@suse.de>
6766 * gimple.c (gimple_call_flags): Remove kludge.
6768 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6770 * sel-sched.c (sel_region_init): Move call to
6771 sel_setup_region_sched_flags after setup_current_loop_nest.
6773 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6775 PR rtl-optimization/48272
6776 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6777 init_insn_reg_pressure_info. Adjust a caller.
6778 * sched-int.h (init_insn_reg_pressure_info): Declare.
6779 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6780 when sched-pressure is enabled.
6782 2011-04-08 Richard Guenther <rguenther@suse.de>
6784 * gimple.c (gimple_set_modified): Do not queue calls to
6785 MODIFIED_NORETURN_CALLS here ...
6786 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6788 2011-04-08 Richard Guenther <rguenther@suse.de>
6791 * toplev.c (lang_dependent_init): Do not open asm_out_file
6792 in WPA mode, nor perform debug machinery initialization.
6793 (finalize): Do not unlink asm_out_file in WPA mode.
6795 2011-04-08 Richard Guenther <rguenther@suse.de>
6797 * gimple.h (gimple_call_fntype): New function.
6798 (gimple_call_return_type): Use it.
6799 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6800 * gimple-low.c (gimple_check_call_args): Likewise.
6801 * gimple.c (gimple_call_flags): Likewise.
6802 (gimple_call_arg_flags): Likewise.
6803 (gimple_call_return_flags): Likewise.
6804 * tree-cfg.c (verify_gimple_call): Likewise.
6805 (do_warn_unused_result): Likewise.
6806 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6807 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6809 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6811 PR rtl-optimization/48235
6812 * sel-sched.c (code_motion_process_successors): Recompute the last
6813 insn in basic block if control flow changed.
6814 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6815 Update condition for ilist_remove.
6817 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6819 PR rtl-optimization/48302
6820 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6821 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6822 it to record added preheader blocks.
6823 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6824 on to sel_add_loop_preheaders.
6825 (sel_region_init): Move call to setup_current_loop_nest after
6828 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6831 * cfgloop.h (loop_has_exit_edges): New helper.
6832 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6834 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6835 that have no exit edges.
6837 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6839 PR rtl-optimization/48442
6840 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6841 all callers. Adjust assert.
6843 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6845 PR tree-optimization/48377
6846 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6847 is_packed to true even for types with smaller TYPE_ALIGN than
6850 2011-04-08 Richard Guenther <rguenther@suse.de>
6853 * doc/tm.texi: Re-generate.
6855 2011-04-08 Wei Guozhi <carrot@google.com>
6858 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6859 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6860 * config/arm/arm.md (*push_multi): Change the length computation to
6863 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6865 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6866 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6867 * doc/tm.texi: Regenerate.
6868 * system.h (ASM_OUTPUT_BSS): Poison.
6869 * varasm.c (asm_output_bss): Remove function.
6870 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6872 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6873 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6874 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6875 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6877 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6879 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6881 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6883 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6885 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6888 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6890 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6891 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6892 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6894 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6895 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6896 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6897 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6898 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6899 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6900 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6901 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6902 options. Don't map other m68k options manually. Don't handle
6903 old-style options as canonical.
6904 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6905 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6907 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6909 * basic-block.h (force_nonfallthru): Move to...
6910 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6911 (force_nonfallthru): ...here.
6912 * cfghooks.c (force_nonfallthru): New function.
6913 * cfgrtl.c (force_nonfallthru): Rename into...
6914 (rtl_force_nonfallthru): ...this.
6915 (commit_one_edge_insertion): Do not set AUX field.
6916 (commit_edge_insertions): Do not discover new basic blocks.
6917 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6918 (cfg_layout_rtl_cfg_hooks): Likewise.
6919 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6920 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6921 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6923 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6925 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6928 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6930 * config/i386/sse.md: Update copyright year.
6931 (avxcvtvecmode): Remove.
6932 (sse_movhlps): Merge with *avx_movhlps.
6933 (sse_movlhps): Merge with *avx_movlhps.
6934 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6935 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6936 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6937 (sse_loadhps): Merge with *avx_loadhps.
6938 (sse_storelps): Merge with *avx_storelps.
6939 (sse_loadlps): Merge with *avx_loadlps.
6940 (sse_movss): Merge with *avx_movss.
6941 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6942 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6943 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6944 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6945 (vec_set<mode>_0): Ditto.
6946 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6947 (sse4_1_insertps): Merge with *avx_insertps.
6948 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6949 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6950 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6951 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6952 (sse2_storehpd): Merge with *avx_storehpd.
6953 (sse2_loadhpd): Merge with *avx_loadhpd.
6954 (sse2_loadlpd): Merge with *avx_loadlpd.
6955 (sse2_movsd): Merge with *avx_movsd.
6956 (*vec_concatv2df): Merge with *vec_concatv2df.
6958 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6961 * combine.c (combine_instructions): Add last_combined_insn,
6962 update it if insn is after it, pass it to all try_combine calls.
6963 (try_combine): Add last_combined_insn parameter, pass it instead of
6964 i3 to propagate_for_debug.
6966 2011-04-07 Nick Clifton <nickc@redhat.com>
6968 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6969 to handle MDR <-> data register transfers.
6970 (movhi_internal): Likewise.
6972 2011-04-07 Alan Modra <amodra@gmail.com>
6974 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6975 previous stack info.
6977 2011-04-07 Tom de Vries <tom@codesourcery.com>
6980 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6981 flow_find_cross_jump. Swap variables to implement backward replacement.
6982 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6984 2011-04-07 Tom de Vries <tom@codesourcery.com>
6987 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6988 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6990 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6991 src1 or src2. Redirect edges to the last basic block. Update
6992 frequency and count on multiple basic blocks in case of fallthru.
6994 2011-04-07 Tom de Vries <tom@codesourcery.com>
6997 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6999 (old_insns_match_p): Change return type. Replace return false/true
7000 with return dir_none/dir_both. Use can_replace_by.
7001 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7002 direction from dir_p. Register replacement direction in dir, last_dir
7003 and afterlast_dir. Handle new return type of old_insns_match_p using
7004 merge_dir. Return replacement direction in dir_p.
7005 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7006 return type of old_insns_match_p.
7007 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7008 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7009 flow_find_cross_jump.
7010 * basic-block.h (enum replace_direction): New type.
7011 (flow_find_cross_jump): Add parameter to declaration.
7013 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7015 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7016 (AVXMODEDCVTPS2DQ): Ditto.
7017 (VEC_FLOAT_MODE): Ditto.
7018 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7019 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7020 (<any_logic:code><mode>3): Use VF mode iterator.
7021 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7022 Use VF mode iterator.
7023 (copysign<mode>3): Use VF mode iterator.
7024 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7025 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7026 (*<any_logic:code><MODEF:mode>3): Merge with
7027 *avx_<any_logic:code><MODEF:mode>3.
7028 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7029 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7030 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7031 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7032 (sse2_cvtdq2ps): Use %v modifier.
7033 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7034 (avx_cvtps2dq<avxmodesuffix>): Remove.
7035 (sse2_cvtps2dq): Use %v modifier.
7036 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7037 (avx_cvttps2dq<avxmodesuffix>): Remove.
7038 (sse2_cvttps2dq): Use %v modifier.
7039 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7040 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7041 (sse2_cvtsd2siq): Fix insn template.
7042 (sse2_cvtsd2siq_2): Ditto.
7043 (sse2_cvttsd2siq): Ditto.
7044 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7045 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7047 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7049 * gcov-io.c: Use GCC Runtime Library Exception.
7051 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7054 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7055 as base_reg whatever register reg has been eliminated to, instead
7056 of hardcoding STACK_POINTER_REGNUM.
7058 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7060 * doc/tm.texi.in: Document C target hooks as separate from general
7062 * doc/tm.texi: Regenerate.
7063 * genhooks.c (struct hook_desc): Add docname field.
7064 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7066 (hook_array): Include c-target.def.
7067 (emit_documentation): Use docname field in output.
7068 (emit_init_macros): Take docname argument. Only emit definitions
7069 for hooks matching docname.
7070 (main): Expect additional arguments in all cases. Pass argument
7071 to emit_init_macros.
7072 * target.def: Move initial macro definitions and comments to
7073 target-hooks-macros.h.
7074 (gcc_targetcm): Move to c-family/c-target.def.
7075 * target.h (targetcm): Move declaration to c-family/c-target.h.
7076 * targhooks.c (default_handle_c_option): Move to
7078 * targhooks.h (default_handle_c_option): Move declaration to
7079 c-family/c-common.h.
7080 * target-hooks-macros.h: New file.
7081 * config.gcc (target_has_targetcm): Define and use to add to
7082 c_target_objs and cxx_target_objs.
7083 * config/default-c.c: New file.
7084 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7085 of target.h and target-def.h.
7086 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7087 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7088 darwin_check_cfstring_format_arg): Make static.
7089 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7090 TARGET_STRING_OBJECT_REF_TYPE_P,
7091 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7092 * config/darwin-protos.h (darwin_objc_construct_string,
7093 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7095 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7096 TARGET_STRING_OBJECT_REF_TYPE_P,
7097 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7098 * config/t-darwin (darwin-c.o): Update dependencies.
7099 * system.h (TARGET_HAS_TARGETCM): Poison.
7100 * Makefile.in (TARGET_H): Update.
7101 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7102 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7103 (default-c.o): New target.
7104 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7105 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7106 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7108 (build/genhooks.o): Update dependencies.
7110 2011-04-06 Richard Guenther <rguenther@suse.de>
7112 * ipa-inline.c (enum inlining_mode): Remove.
7113 (cgraph_flatten): Use some other token.
7114 (cgraph_edge_early_inlinable_p): New function, split out from ...
7115 (cgraph_perform_always_inlining): New function, split out from ...
7116 (cgraph_decide_inlining_incrementally): ... here.
7117 (cgraph_mark_inline_edge): Adjust.
7118 (cgraph_early_inlining): Re-structure.
7119 (pass_early_inline): Require SSA form.
7121 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7122 Julian Brown <julian@codesourcery.com>
7123 Mark Shinwell <shinwell@codesourcery.com>
7125 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7126 LO_REGS only for Thumb-1.
7127 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7128 be used in short instructions when optimising for size on Thumb-2.
7130 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7132 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7133 associated with user returns to be preserved.
7135 2011-04-06 Tristan Gingold <gingold@adacore.com>
7137 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7138 symbol_queue_size, DBXOUT_DECR_NESTING,
7139 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7140 if XCOFF_DEBUGGING_INFO.
7142 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7144 * config/i386/i386.md (attribute isa): New.
7145 (attribute enabled): New.
7146 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7147 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7148 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7149 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7150 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7151 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7152 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7153 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7155 * config/i386/sse.md (VF): New mode iterator.
7159 (SSEMODEF4): Remove.
7160 (attribute sse): Handle V8SF and V4DF modes.
7161 (<absneg:code><mode>2): Use VF mode iterator.
7162 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7164 (<plusminus_insn><mode>3): Use VF mode iterator.
7165 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7166 Use VF mode iterator.
7167 (<sse>_vm<plusminus_insn><mode>3): Merge with
7168 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7169 (mul<mode>3): Use VF mode iterator.
7170 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7171 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7173 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7174 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7175 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7176 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7178 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7179 Use VF1 mode iterator.
7180 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7181 (sqrt<VF2:mode>2): New expander.
7182 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7183 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7184 and sqrtv2df2. Use VF mode iterator.
7185 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7187 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7188 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7189 Use VF1 mode iterator.
7190 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7191 (<smaxmin:code><mode>3): Use VF mode iterator.
7192 (*<smaxmin:code><mode>3_finite): Merge with
7193 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7194 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7195 (<sse>_vm<smaxmin:code><mode>2): Merge with
7196 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7197 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7199 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7201 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7202 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7203 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7204 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7205 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7207 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7208 Use VF_128 mode iterator.
7209 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7211 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7212 VF_128 mode iterator.
7213 (vcond<mode>): Use VF mode iterator.
7214 * config/i386/predicates.md (sse_comparison_operator): Merge with
7215 avx_comparison_float_operator. Do not declare as special_predicate.
7216 * config/i386/i386.c (struct builtin_description): Update for renamed
7218 (ix86_expand_args_builtin): Ditto.
7219 (ix86_expand_sse_compare_mask): Ditto.
7221 2011-04-06 Richard Guenther <rguenther@suse.de>
7223 * tree-inline.c (estimate_num_insns): For calls simply account
7224 for all passed arguments and a used return value.
7226 2011-04-06 Richard Guenther <rguenther@suse.de>
7228 PR tree-optimization/47663
7229 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7230 call_stmt_time fields.
7231 (cgraph_edge_inlinable_p): Declare.
7232 (cgraph_edge_recursive_p): New inline function.
7233 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7234 (cgraph_clone_edge): Copy it.
7235 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7236 Account for call stmt time.
7237 (cgraph_estimate_time_after_inlining): Take edge argument.
7238 (cgraph_estimate_edge_growth): Account call stmt size.
7239 (cgraph_estimate_size_after_inlining): Take edge argument.
7240 (cgraph_mark_inline_edge): Adjust.
7241 (cgraph_check_inline_limits): Likewise.
7242 (cgraph_recursive_inlining_p): Remove.
7243 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7244 (cgraph_decide_recursive_inlining): Take edge argument and
7246 (cgraph_decide_inlining_of_small_functions): Do not avoid
7247 diags for recursive inlining here.
7248 (cgraph_flatten): Adjust.
7249 (cgraph_decide_inlining_incrementally): Likewise.
7250 (estimate_function_body_sizes): Remove call cost handling.
7251 (compute_inline_parameters): Initialize caller edge call costs.
7252 (cgraph_estimate_edge_growth): New function.
7253 (cgraph_estimate_growth): Use it.
7254 (cgraph_edge_badness): Likewise.
7255 (cgraph_check_inline_limits): Take an edge argument.
7256 (cgraph_decide_inlining_of_small_functions): Adjust.
7257 (cgraph_decide_inlining): Likewise.
7258 * tree-inline.c (estimate_num_insns): Only account for call
7259 return value if it is used.
7260 (expand_call_inline): Avoid diagnostics on recursive inline
7262 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7263 (input_edge): Input edge call costs.
7265 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7267 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7269 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7271 * doc/invoke.texi (Spec Files): Fix typo.
7273 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7275 * profile.c (branch_prob): Move declaration of local variable. Remove
7276 obsolete ??? comment. Expand the location explicitly instead of using
7277 the LOCATION_FILE and LOCATION_LINE macros.
7279 2011-04-06 Wei Guozhi <carrot@google.com>
7282 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7283 (arm_cond_branch): Likewise.
7284 (arm_cond_branch_reversed): Likewise.
7285 (arm_jump): Likewise.
7286 (push_multi): Likewise.
7287 * config/arm/constraints.md (Py): New constraint.
7289 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7292 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7294 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7295 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7296 #ifdef DBX_DEBUGGING_INFO.
7298 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7301 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7302 if old and new states differ.
7304 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7306 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7307 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7308 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7309 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7310 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7312 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7313 ColdFire options to -mcpu= options.
7315 2011-04-05 Jeff Law <law@redhat.com>
7317 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7318 check if BB is a successor of LOOP->header and return
7319 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7321 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7323 * cprop.c (struct reg_use): Remove.
7324 (reg_use_table): Make an array of RTX.
7325 (find_used_regs, constprop_register, local_cprop_pass,
7326 bypass_block): Simplify users of reg_use_table.
7327 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7328 on one of the uses found by find_used_regs.
7330 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7333 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7336 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7338 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7340 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7342 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7345 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7347 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7349 * combine.c: Include obstack.h.
7350 (struct insn_link): Define.
7351 (uid_log_links): Adjust type.
7352 (FOR_EACH_LOG_LINK): New macro.
7353 (insn_link_obstack): Declare.
7354 (alloc_insn_link): Define.
7355 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7356 type of link variables.
7357 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7358 (try_combine, record_promoted_values, distribute_notes): Likewise.
7359 (distribute_links): Likewise. Tweak prototype.
7360 (clear_log_links): Delete.
7361 (adjust_for_new_dest): Call alloc_insn_link.
7362 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7364 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7366 * gcse.c (modify_mem_list): Convert to an array of VECs.
7367 (canon_modify_mem_list, compute_transp): Tweak formatting.
7368 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7369 (load_killed_in_block_p): Likewise.
7370 (record_last_mem_set_info): Likewise.
7371 (clear_modify_mem_tables): Likewise.
7373 2011-04-05 Tom de Vries <tom@codesourcery.com>
7376 * function.c (emit_use_return_register_into_block): Only define if
7379 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7381 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7383 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7385 * config/rx/rx-opts.h: New.
7386 * config/rx/rx.c (rx_cpu_type): Remove.
7387 (rx_handle_option): Don't assert that global structures are in
7388 use. Access variables via opts pointer. Defer most handling of
7389 OPT_mint_register_. Use error_at.
7390 (rx_option_override): Handle deferred OPT_mint_register_ here.
7391 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7392 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7393 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7394 (rx_cpu_types): New Enum and EnumValue entries.
7395 (mint-register=): Use Defer and use Var accordingly.
7397 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7399 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7400 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7401 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7403 (debug_free_queue, debug_nesting, symbol_queue_index):
7405 * dbxout.c: ...to here. Make static.
7407 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7409 * gcse.c (modify_pair): Define. Define a VEC of it.
7410 (canon_modify_mem_list): Convert to an array of VECs.
7411 (free_insn_expr_list_list): Delete.
7412 (clear_modify_mem_tables): Call VEC_free instead.
7413 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7414 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7415 (canon_list_insert, compute_transp): Likewise.
7417 2011-04-05 Tom de Vries <tom@codesourcery.com>
7420 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7423 2011-04-05 Tom de Vries <tom@codesourcery.com>
7426 * function.c (emit_use_return_register_into_block): New function.
7427 (thread_prologue_and_epilogue_insns): Use
7428 emit_use_return_register_into_block.
7430 2011-04-05 Tom de Vries <tom@codesourcery.com>
7433 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7436 2011-04-05 Tom de Vries <tom@codesourcery.com>
7438 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7440 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7442 * config/arm/arm.md (define_constants for unspec): Replace with
7444 (define_constants for unspecv): Replace with define_c_enum.
7445 * config/arm/neon.md (define_constants for unspec): Replace with
7448 2011-04-04 Richard Henderson <rth@redhat.com>
7451 * dwarf2out.c (output_line_info): Always emit line info from
7452 at least one section.
7453 (dwarf2out_init): Create text_section_line_info here ...
7454 (set_cur_line_info_table): ... not here.
7456 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7459 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7462 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7464 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7466 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7467 (expr_equiv_p): Remove.
7468 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7469 (hash_scan_set): Update call to insert_set_in_table.
7470 (dump_hash_table): Dump <dest, src> pair.
7471 (lookup_set): Simplify. Lookup <dest, src> pair.
7472 (compute_transp): Remove, fold heavily simplified code into...
7473 (compute_local_properties): ...here. Expect COMP and TRANSP
7475 (find_avail_set): Take set directly from struct expr.
7476 (find_bypass-set): Likewise.
7477 (bypass_block): Likewise.
7478 (cprop_insn): Likewise. Remove redundant INSN_P test.
7480 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7481 checks on form of COND from find_implicit_sets to here.
7482 (find_implicit_sets): Cleanup control flow. Split critical edges
7483 if it exposes implicit sets. Allocate/resize implicit_sets as
7485 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7486 changed something. Run df_analyze after find_implicit_sets if any
7487 edges were split. Do not allocate implicit_sets here.
7489 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7490 (gcse_obstack): Renamed to cprop_obstack.
7491 (GNEW, GNEWVEC, GNEWVAR): Remove.
7493 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7494 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7495 (gcse_alloc): Likewise, and rename to cprop_alloc.
7496 (alloc_gcse_men, free_gcse_mem): Remove.
7497 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7498 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7499 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7501 * cprop.c (oprs_not_set_p): Remove.
7502 (mark_set, mark_clobber): Remove.
7503 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7504 (reg_not_set_p): New function.
7505 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7506 (cprop_insn): Likewise.
7507 (cprop_jump): Use FOR_EACH_EDGE.
7509 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7512 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7513 (rank_for_schedule): Use scheduled_insns vector instead of
7514 last_scheduled_insn.
7515 (ok_for_early_queue_removal): Likewise.
7516 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7518 (choose_ready): Likewise.
7519 (commit_schedule): Use VEC_iterate.
7520 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7521 a dbg_cnt, use it and ensure the first insn is in the ready list.
7522 (haifa_sched_init): Allocate scheduled_insns.
7523 (sched_extend_ready_list): Don't allocate it; reserve space.
7524 (haifa_sched_finish): Free it.
7526 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7528 * optc-gen.awk: Always remove type from Variable entry before
7529 recording in var_seen.
7531 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7533 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7534 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7535 call to tidy_fallthru_edges.
7537 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7539 * doc/options.texi (ToLower): Document.
7540 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7541 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7542 * opts.h (cl_option): Add cl_tolower field.
7543 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7544 arguments with lowercase strings.
7545 * config/rx/rx.opt (mcpu=): Add ToLower.
7546 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7549 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7551 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7553 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7555 * config/vax/vax.c: Include reload.h.
7557 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7559 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7560 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7561 (sparc_preferred_reload_class): New function.
7563 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7566 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7567 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7569 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7571 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7572 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7574 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7576 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7577 (ASM_OUTPUT_ALIGNED_BSS): Define.
7579 2011-04-03 Michael Matz <matz@suse.de>
7581 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7582 and next_slot members.
7583 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7584 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7585 (lto_streamer_cache_append): Declare.
7586 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7587 unsigned index, remove offset parameter, ensure that we append
7588 or update existing entries.
7589 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7590 parameter, update next_slot for append.
7591 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7593 (lto_streamer_cache_insert_at): Likewise.
7594 (lto_streamer_cache_append): New function.
7595 (lto_streamer_cache_lookup): Use unsigned index.
7596 (lto_streamer_cache_get): Likewise.
7597 (lto_record_common_node): Don't test tree_node_can_be_shared.
7598 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7599 (lto_streamer_cache_delete): Don't free offsets member.
7600 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7601 (lto_output_string_with_length): Use lto_output_data_stream.
7602 (lto_output_tree_header): Remove ix parameter, don't write it.
7603 (lto_output_builtin_tree): Likewise.
7604 (lto_write_tree): Adjust callers to above, don't track and write
7605 offset, write unsigned index.
7606 (output_unreferenced_globals): Don't emit all global vars.
7607 (write_global_references): Use unsigned indices.
7608 (lto_output_decl_state_refs): Likewise.
7609 (write_symbol): Likewise.
7610 * lto-streamer-in.c (lto_input_chain): Move earlier.
7611 (input_function): Use unsigned index.
7612 (input_alias_pairs): Don't read and then ignore all global vars.
7613 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7614 don't pass it back, use lto_streamer_cache_append.
7615 (lto_register_var_decl_in_symtab): Use unsigned index.
7616 (lto_register_function_decl_in_symtab): Likewise.
7617 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7619 (lto_get_builtin_tree): Don't read index, use
7620 lto_streamer_cache_append.
7621 (lto_read_tree): Adjust call to lto_materialize_tree.
7623 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7624 don't use function calls in arguments to MIN.
7626 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7629 * gimple.c (gimple_type_leader_entry): Mark deletable.
7631 2011-04-03 Alan Modra <amodra@gmail.com>
7633 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7635 2011-04-03 Michael Matz <matz@suse.de>
7637 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7639 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7641 2011-04-03 Michael Matz <matz@suse.de>
7643 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7644 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7645 without function context.
7646 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7647 current_function_decl and cfun.
7649 2011-04-03 Michael Matz <matz@suse.de>
7651 * tree.c (decl_init_priority_insert): Don't create entry for
7653 (decl_fini_priority_insert): Ditto.
7654 (fields_compatible_p, find_compatible_field): Remove.
7655 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7656 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7658 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7660 * combine.c (try_combine): Remove useless local variable.
7662 2011-04-03 Richard Guenther <rguenther@suse.de>
7663 Ira Rosen <ira.rosen@linaro.org>
7665 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7666 non-variable offsets and compare the remaining bases of the two
7667 accesses instead of looking for exact same data-ref.
7669 2011-04-02 Kai Tietz <ktietz@redhat.com>
7672 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7674 * i386.c (ix86_is_msabi_thiscall): New helper function.
7675 (ix86_is_type_thiscall): New helper function.
7676 (ix86_comp_type_attributes): Handle thiscall for method-functions
7678 (init_cumulative_args): Likewise.
7679 (find_drap_reg): Likewise.
7680 (ix86_static_chain): Likewise.
7681 (x86_this_parameter): Likewise.
7682 (x86_output_mi_thunk): Likewise.
7684 2011-04-01 Olivier Hainque <hainque@adacore.com>
7685 Nicolas Setton <setton@adacore.com>
7686 Eric Botcazou <ebotcazou@adacore.com>
7688 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7689 (add_gnat_descriptive_type_attribute): New function.
7690 (gen_array_type_die): Call it.
7691 (gen_enumeration_type_die): Likewise.
7692 (gen_struct_or_union_type_die): Likewise.
7693 (modified_type_die): Likewise.
7694 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7695 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7696 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7698 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7701 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7702 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7705 2011-03-17 Richard Guenther <rguenther@suse.de>
7708 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7709 origin for decls in other ltrans units.
7710 (input_varpool_node): Likewise.
7712 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7715 * expr.c (expand_assignment): Handle all possibilities
7716 if TO_RTX is CONCAT.
7717 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7718 (store_split_bit_field): If SUBREG_REG (op0) or
7719 op0 itself has smaller mode than word, return it
7720 for offset 0 and const0_rtx for out-of-bounds stores.
7721 If word is const0_rtx, skip it.
7723 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7725 * config/h8300/h8300.c (print_operand_address): Rename to...
7726 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7727 Call h8300_print_operand and h8300_print_operand_address instead of
7728 print_operand and print_operand_address. Declare.
7729 (print_operand): Renake to...
7730 (h8300_print_operand): ...this. Make static. Adjust comments.
7731 Call h8300_print_operand instead of print_operand. Declare.
7732 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7733 (h8300_register_move_cost): Likewise.
7734 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7735 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7736 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7737 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7738 * config/h8300/h8300-protos.h (print_operand): Delete.
7739 (print_operand_address): Delete.
7741 2011-04-01 Richard Henderson <rth@redhat.com>
7744 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7745 in strict mode before dwarf4. Re-order tests to early out
7746 before switching sections.
7748 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7750 * config/h8300/constraints.md: New file.
7751 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7752 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7753 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7754 * config/h8300/predicates.md (bit_operand): Likewise.
7755 (incdec_operand): Use satisfies_constraint_M and
7756 satisfies_constraint_O. Don't use C code block.
7757 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7758 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7759 (compute_mov_length): Use satisfies_constraint_G.
7760 (fix_bit_operand): Use satisfies_constraint_U.
7761 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7762 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7763 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7764 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7765 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7766 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7767 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7768 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7769 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7770 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7771 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7772 (EXTRA_MEMORY_CONSTRAINT): Delete.
7774 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7775 Michael Meissner <meissner@linux.vnet.ibm.com>
7778 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7779 operands, as per the specifications.
7781 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7782 (vec_extract_evenv4sf): Ditto.
7783 (vec_extract_evenv8hi): Ditto.
7784 (vec_extract_evenv16qi): Ditto.
7785 (vec_extract_oddv4si): Ditto.
7787 2011-03-31 Mark Wielaard <mjw@redhat.com>
7789 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7790 high_pc attribute if the CU has no associated code. Only output
7791 DW_AT_entry_pc for CU if not generating strict dwarf and
7794 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7796 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7797 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7799 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7800 * final.c (final_start_function): Call the new function rather
7801 than using a NULL argument for dwarf2out_frame_debug.
7803 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7804 that contains the prologue.
7806 * haifa-sched.c (queue_insn): New arg REASON. All callers
7807 changed. Print it in debugging output.
7809 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7811 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7812 Split most of the code into...
7813 (begin_move_insn): ... here. New function.
7814 (ebb_sched_info): Add a pointer to it.
7815 * haifa-sched.c (scheduled_insns): New static variable.
7816 (sched_extend_ready_list): Allocate it.
7817 (schedule_block): Use it to record the order of scheduled insns.
7818 Perform RTL changes to move insns only after all scheduling
7819 decisions have been made.
7820 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7821 begin_move_insn field.
7822 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7823 * sched-int.h (struct haifa_sched_info): Remove second argument
7824 from begin_schedule_ready hook. Add new member begin_move_insn.
7825 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7826 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7828 * haifa-sched.c (prune_ready_list): New function, broken out of
7830 (schedule_block): Use it.
7832 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7834 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7836 2011-04-01 Kai Tietz <ktietz@redhat.com>
7838 * config.gcc (*-*-mingw*): Allow as option the
7839 posix threading model.
7840 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7841 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7843 (CPP_SPEC): Add pthread/no-pthread handling.
7844 (LIB_SPEC): Likewise.
7845 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7846 (LIB_SPEC): Likewise.
7847 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7848 flag to pass -pthread option for shared libgcc build.
7849 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7850 for shared libgcc build.
7851 * config/i386/t-mingw-pthread: New file.
7852 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7853 New define to enable use of library pthread by default.
7854 * config/i386/mingw.opt (pthread): New driver option.
7855 (no-pthread): New driver option.
7856 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7857 * config/i386/mingw-w64.opt: Likewise.
7859 2011-04-01 Gary Funck <gary@intrepid.com>
7861 * c-decl.c (grokdeclarator): Fix formatting.
7863 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7865 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7866 instead of n_operands.
7867 (set_storage_via_setmem): Likewise.
7868 * optabs.c (maybe_gen_insn): Likewise.
7869 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7870 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7871 (mips_expand_builtin_direct): Likewise.
7872 * config/spu/spu.c (expand_builtin_args): Likewise.
7874 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7876 * recog.h (insn_data_d): Add n_generator_args.
7877 * genoutput.c (data): Likewise.
7878 (output_insn_data): Print it.
7879 (max_opno, num_dups): Delete.
7880 (scan_operands): Just fill in "d->operand[...]".
7881 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7883 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7885 * gensupport.h (pattern_stats): New structure.
7886 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7887 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7888 (max_operand_1, max_operand_vec): Delete.
7889 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7891 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7893 * emit-rtl.c (emit_pattern_after_setloc): New function.
7894 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7895 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7896 (emit_pattern_after): New function.
7897 (emit_insn_after, emit_jump_insn_after): Call it.
7898 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7899 (emit_pattern_before_setloc): New function.
7900 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7901 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7903 (emit_pattern_before): New function.
7904 (emit_insn_before, emit_jump_insn_before): Call it.
7905 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7907 2011-03-31 Richard Henderson <rth@redhat.com>
7909 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7910 (dw_separate_line_info_entry): Remove.
7911 (enum dw_line_info_opcode): New.
7912 (dw_line_info_entry): Use it.
7913 (dw_line_info_table, dw_line_info_table_p): New.
7914 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7915 (line_info_table, line_info_label_num): Remove.
7916 (line_info_table_in_use): Remove.
7917 (separate_line_info_table): Remove.
7918 (separate_line_info_table_allocated): Remove.
7919 (separate_line_info_table_in_use): Remove.
7920 (LINE_INFO_TABLE_INCREMENT): Remove.
7921 (line_info_label_num): New.
7922 (cur_line_info_table): New.
7923 (text_section_line_info, cold_text_section_line_info): New.
7924 (separate_line_info): New.
7925 (SEPARATE_LINE_CODE_LABEL): Remove.
7926 (print_dwarf_line_table): Remove.
7927 (debug_dwarf): Don't dump it.
7928 (output_one_line_info_table): New.
7929 (output_line_info): Use it.
7930 (new_line_info_table): New.
7931 (set_cur_line_info_table): New.
7932 (dwarf2out_switch_text_section): Use it.
7933 (dwarf2out_begin_function): Likewise.
7934 (push_dw_line_info_entry): New.
7935 (dwarf2out_source_line): Rewrite for new line info tables.
7936 (dwarf2out_init): Remove dead initailizations.
7938 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7940 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7942 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7943 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7944 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7945 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7946 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7947 * opt-functions.awk (flag_init, switch_bit_fields): New.
7948 (switch_flags): Don't handle flags moved to bit-fields. Don't
7949 generate CL_MISSING_OK or CL_SAVE.
7950 * optc-gen.awk: Update to generate bit-field output as well as
7952 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7953 bit-field instead of CL_REJECT_DRIVER flag.
7954 * opts-common.c (generate_canonical_option,
7955 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7956 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7957 instead of CL_REJECT_NEGATIVE flag.
7958 * toplev.c (print_switch_values): Use cl_report bit-field instead
7961 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7963 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7964 a zero minimum index only if it is redundant.
7966 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7968 PR rtl-optimization/48381
7969 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7970 instead of ira_class_hard_reg_index for calculating conflicting
7973 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7975 * cprop.c: Clean up hash table building.
7976 (reg_avail_info): Remove.
7977 (oprs_available_p): Remove.
7978 (record_last_reg_set_info): Remove.
7979 (record_last_set_info): Remove.
7980 (reg_available_p): New function.
7981 (gcse_constant_p): Do not treat unfolded conditions as constants.
7982 (make_set_regs_unavailable): New function.
7983 (hash_scan_set): Simplify with new reg_available_p.
7984 (compute_hash_table_work): Traverse insns stream only once.
7985 Do not compute reg_avail_info. Traverse insns in reverse order.
7986 Record implicit sets after recording explicit sets from the block.
7988 2011-03-31 Michael Matz <matz@suse.de>
7990 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7992 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7994 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7995 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7996 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7997 (h8300_mode_dependent_address_p): New function.
7998 (h8300_get_index): Make static.
8000 2011-03-31 Jeff Law <law@redhat.com>
8002 * reload1.c (elimination_effects): Fix typo in recent change.
8004 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8005 typo potentially leading to null pointer dereference.
8007 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8008 (setup_save_areas): Corresponding changes to avoid useless
8011 * jump.c (reversed_comparison_code_parts): Avoid successive return
8012 statements when REVERSE_CONDITION is defined.
8014 * expr.c (expand_assignment): Avoid useless assignments.
8015 (expand_expr_real_1): Likewise.
8016 (expand_expr_real_2): Avoid useless statements.
8018 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8020 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8022 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8025 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8027 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8030 * doc/tm.texi.in (TARGET_VERSION): Remove.
8031 * doc/tm.texi: Regenerate.
8032 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8033 * collect2.c (main): Don't use TARGET_VERSION.
8034 * mips-tdump.c (main): Don't use TARGET_VERSION.
8035 * mips-tfile.c (main): Don't use TARGET_VERSION.
8036 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8037 * config/rs6000/vxworksae.h: Remove.
8038 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8039 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8040 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8041 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8042 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8043 * config/arm/arm.h (TARGET_VERSION): Remove.
8044 * config/arm/coff.h (TARGET_VERSION): Remove.
8045 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8046 * config/arm/elf.h (TARGET_VERSION): Remove.
8047 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8048 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8049 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8050 * config/arm/pe.h (TARGET_VERSION): Remove.
8051 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8052 * config/arm/semi.h (TARGET_VERSION): Remove.
8053 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8054 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8055 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8056 * config/avr/avr.h (TARGET_VERSION): Remove.
8057 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8058 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8059 * config/frv/frv.h (TARGET_VERSION): Remove.
8060 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8061 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8062 * config/i386/darwin.h (TARGET_VERSION): Remove.
8063 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8064 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8065 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8066 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8067 * config/i386/gnu.h (TARGET_VERSION): Remove.
8068 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8069 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8070 * config/i386/linux.h (TARGET_VERSION): Remove.
8071 * config/i386/linux64.h (TARGET_VERSION): Remove.
8072 * config/i386/lynx.h (TARGET_VERSION): Remove.
8073 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8074 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8075 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8076 * config/i386/netware.h (TARGET_VERSION): Remove.
8077 * config/i386/nto.h (TARGET_VERSION): Remove.
8078 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8079 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8080 * config/ia64/elf.h (TARGET_VERSION): Remove.
8081 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8082 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8083 * config/ia64/linux.h (TARGET_VERSION): Remove.
8084 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8085 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8086 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8087 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8088 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8089 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8090 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8091 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8092 * config/m68k/linux.h (TARGET_VERSION): Remove.
8093 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8094 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8095 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8096 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8097 * config/mep/mep.h (TARGET_VERSION): Remove.
8098 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8099 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8100 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8101 * config/mips/linux.h (TARGET_VERSION): Remove.
8102 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8103 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8104 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8105 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8106 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8107 * config/pa/pa.h (TARGET_VERSION): Remove.
8108 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8109 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8110 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8111 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8112 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8113 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8114 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8115 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8116 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8117 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8118 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8119 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8120 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8121 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8122 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8123 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8124 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8125 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8126 * config/s390/linux.h (TARGET_VERSION): Remove.
8127 * config/s390/s390.h (TARGET_VERSION): Remove.
8128 * config/s390/tpf.h (TARGET_VERSION): Remove.
8129 * config/score/score.h (TARGET_VERSION): Remove.
8130 * config/sh/linux.h (TARGET_VERSION): Remove.
8131 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8132 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8133 * config/sh/sh.h (TARGET_VERSION): Remove.
8134 * config/sh/sh64.h (TARGET_VERSION): Remove.
8135 * config/sh/superh.h (TARGET_VERSION): Remove.
8136 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8137 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8138 * config/sparc/linux.h (TARGET_VERSION): Remove.
8139 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8140 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8141 TARGET_NAME32, TARGET_NAME): Remove.
8142 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8143 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8144 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8145 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8146 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8147 * config/spu/spu.h (TARGET_VERSION): Remove.
8148 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8149 * config/v850/v850.h (TARGET_VERSION): Remove.
8150 * config/vax/linux.h (TARGET_VERSION): Remove.
8151 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8152 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8153 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8155 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8158 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8159 frame-related from frame-unrelated adjustments to the stack pointer.
8161 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8163 * common.opt (fdebug-types-section): Move earlier.
8164 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8166 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8168 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8171 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8173 * tree.h (CASE_CHAIN): Define.
8174 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8175 (gimple_redirect_edge_and_branch): Likewise.
8177 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8180 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8183 2011-03-30 Jeff Law <law@redhat.com>
8185 * PR bootstrap/48371
8186 * reload1.c (reload): Fix botch in last change.
8188 * reload.h (struct reload): Fix typo introduced in last change.
8190 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8192 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8193 Undocumented. Remove help text.
8194 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8197 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8199 * doc/options.texi (NegativeAlias): Document.
8200 (Alias): Mention NegativeAlias.
8201 * opt-functions.awk: Handle NegativeAlias.
8202 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8203 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8204 * opts.h (CL_NEGATIVE_ALIAS): Define.
8205 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8206 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8208 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8210 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8211 mno-spe and mno-isel instead of mspe=no and -misel=no.
8213 2011-03-29 Mark Wielaard <mjw@redhat.com>
8215 * common.opt (fdebug-types-section): New flag.
8216 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8217 * dwarf2out.c (use_debug_types): New define.
8218 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8219 (print_die): Guard output of type unit signatures using
8221 (build_abbrev_table): Replace assert of dwarf_version >= 4
8222 with assert on use_debug_types.
8223 (size_of_die): Likewise.
8224 (unmark_dies): Likewise.
8225 (value_format): Decide AT_ref_external form on use_debug_types.
8226 (output_die): Replace dwarf_version version check guard with
8227 use_debug_types where appropriate.
8228 (modified_type_die): Likewise.
8229 (gen_reference_type_die): Likewise.
8230 (dwarf2out_start_source_file): Likewise.
8231 (dwarf2out_end_source_file): Likewise.
8232 (prune_unused_types_walk_attribs): Likewise.
8233 (dwarf2out_finish): Likewise.
8235 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8237 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8239 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8241 PR rtl-optimization/48332
8242 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8243 mode of input operand N and modeN to its actual mode.
8245 2011-03-30 Jeff Law <law@redhat.com>
8247 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8248 define accessor macro.
8249 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8250 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8251 (reg_equiv_init): Likewise.
8252 (reg_equivs_size): New variable.
8253 (reg_equiv_init_size): Remove.
8254 (allocate_initial_values): Move prototype to here from....
8255 * integrate.h (allocate_initial_values): Remove prototype.
8256 * integrate.c: Include reload.h.
8257 (allocate_initial_values): Corresponding changes.
8258 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8259 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8260 (update_equiv_regs): Corresponding changes.
8261 (ira): Corresponding changes.
8262 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8263 (push_secondary_reload): Corresponding changes.
8264 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8265 (make_memloc, find_reloads_address): Corresponding changes.
8266 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8267 (find_reloads_address_1): Corresponding changes.
8268 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8269 (refers_to_regno_for_reload_p): Corresponding changes.
8270 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8271 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8272 * reload1.c: Include ggc.h.
8273 (grow_reg_equivs): New function.
8274 (replace_pseudos_in, reload): Corresponding changes.
8275 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8276 (eliminate_regs_1, elimination_effects): Corresponding changes.
8277 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8278 (delete_output_reload): Likewise.
8279 * caller-save.c (mark_referenced_regs): Corresponding changes.
8280 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8281 * frv/predicates.md (frv_load_operand): Corresponding changes.
8282 * microblaze/microblaze.c (double_memory_operand): Corresponding
8284 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8285 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8286 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8287 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8288 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8290 * pa/pa.c (emit_move_sequence): Corresponding changes.
8291 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8293 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8296 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8297 structure modes. Don't check neon_vector_mem_operand for
8298 vector or structure modes.
8300 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8301 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8304 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8305 operand 1 and reshuffle the operands to match.
8306 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8308 2011-03-30 Christian Schüler <cschueler@gmx.de>
8311 * config/c.opt (F): Added 'Driver' to -F option.
8314 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8316 * config/darwin.opt: Added '-arch' option.
8318 2011-03-30 Nick Clifton <nickc@redhat.com>
8320 * config/rx/rx.md: Add peepholes and patterns to combine
8321 extending loads and simple arithmetic instructions.
8322 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8323 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8324 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8325 modes to use pre-decrement and post-increment addressing.
8326 (rx_is_restricted_memory_address): Add range checking of REG+INT
8328 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8329 (rx_memory_move_cost): Adjust cost of stores.
8330 (rx_adjust_insn_length): New function.
8332 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8335 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8336 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8337 matching arg00/arg01 types.
8339 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8341 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8342 last_location to UNKNOWN_LOCATION.
8344 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8347 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8350 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8351 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8354 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8356 (sparc_cpu): Likewise.
8357 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8360 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8364 PR rtl-optimization/48345
8365 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8366 hard regs for given mode from profitable regs when doing secondary
8369 2011-03-29 Jeff Law <law@redhat.com>
8372 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8373 do_not_duplicate field.
8374 (lookup_redirection_data): Corresponding changes.
8375 (create_duplicates): Always create a template block.
8376 (redirect_edges): Remove code which reused the original block
8377 when it was going to become unreachable code.
8378 (thread_block): Don't set do_not_duplicate field.
8380 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8382 * lto-opts.c (register_user_option_p, lto_register_user_option):
8383 Make type argument unsigned.
8384 * lto-streamer.h (lto_register_user_option): Make type argument
8386 * opth-gen.awk: Make CL_* macros unsigned.
8387 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8388 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8389 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8390 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8391 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8392 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8393 (find_opt): Make lang_mask argument unsigned.
8395 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8397 PR rtl-optimization/48331
8398 PR rtl-optimization/48334
8399 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8400 for any used algorithm.
8402 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8404 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8407 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8409 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8410 (alpha_option_override): Don't set alpha_sr_alias_set.
8411 (emit_frame_store_1): Use gen_frame_mem rather than calling
8413 (alpha_expand_epilogue): Ditto.
8415 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8417 PR tree-optimization/48290
8418 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8419 vectorization, check that relevant phis in the basic block after
8420 the inner loop are really inner loop's exit phis.
8422 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8425 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8426 (cached_dw_loc_list_def): New structure.
8427 (cached_dw_loc_list): New typedef.
8428 (cached_dw_loc_list_table): New variable.
8429 (cached_dw_loc_list_table_hash): New function.
8430 (cached_dw_loc_list_table_eq): Likewise.
8431 (add_location_or_const_value_attribute): Take a bool cache_p.
8432 Cache the list when the parameter is true.
8433 (gen_formal_parameter_die): Update caller.
8434 (gen_variable_die): Likewise.
8435 (dwarf2out_finish): Likewise.
8436 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8437 while generating debug info for the decl.
8438 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8439 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8440 (resolve_addr): Cache the result of resolving a chain of
8443 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8445 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8446 conflict object hard regset nodes have intersecting hard reg sets.
8448 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8449 after regstat_init_n_sets_and_refs.
8451 * ira.c: Add more comments at the top.
8452 (setup_stack_reg_pressure_class, setup_pressure_classes):
8453 Add comments how we compute the register pressure classes.
8454 (setup_allocno_and_important_classes): Add more comments.
8455 (setup_class_translate_array, reorder_important_classes)
8456 (setup_reg_class_relations): Add comments.
8458 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8461 * ira-color.c: Add 2011 to the Copyright line.
8462 (assign_hard_reg): Add more comments.
8463 (improve_allocation): Ditto.
8465 * ira-costs.c: Add 2011 to the Copyright line.
8466 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8468 (setup_regno_cost_classes_by_mode): Ditto.
8470 Initial patches from ira-improv branch:
8472 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8474 * ira-build.c (ira_create_object): Remove initialization of
8475 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8476 (ira_create_allocno): Remove initialization of
8477 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8478 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8479 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8480 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8481 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8482 Initialize ALLOCNO_ADD_DATA.
8483 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8484 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8486 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8487 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8489 * ira.c (ira_reallocate): Remove.
8490 (setup_pressure_classes): Call
8491 ira_init_register_move_cost_if_necessary. Use
8492 ira_register_move_cost instead of ira_get_register_move_cost.
8493 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8494 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8496 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8497 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8498 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8499 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8500 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8501 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8503 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8504 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8505 (struct allocno_color_data): New.
8506 (allocno_color_data_t): New typedef.
8507 (allocno_color_data): New definition.
8508 (ALLOCNO_COLOR_DATA): New macro.
8509 (struct object_color_data): New.
8510 (object_color_data_t): New typedef.
8511 (object_color_data): New definition.
8512 (OBJECT_COLOR_DATA): New macro.
8513 (update_copy_costs, calculate_allocno_spill_cost): Call
8514 ira_init_register_move_cost_if_necessary. Use
8515 ira_register_move_cost instead of ira_get_register_move_cost.
8516 (move_spill_restore, update_curr_costs): Ditto.
8517 (allocno_spill_priority): Make it inline.
8518 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8519 (struct coalesce_data, coalesce_data_t): New.
8520 (allocno_coalesce_data): New definition.
8521 (ALLOCNO_COALESCE_DATA): New macro.
8522 (merge_allocnos, coalesced_allocno_conflict_p): Use
8523 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8524 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8525 (coalesce_allocnos): Ditto.
8526 (setup_coalesced_allocno_costs_and_nums): Ditto.
8527 (collect_spilled_coalesced_allocnos): Ditto.
8528 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8529 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8530 (coalesce_spill_slots): Ditto.
8531 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8532 free allocno_coalesce_data.
8534 * ira-conflicts.c: Fix formatting.
8535 (process_regs_for_copy): Call
8536 ira_init_register_move_cost_if_necessary. Use
8537 ira_register_move_cost instead of ira_get_register_move_cost.
8538 (build_object_conflicts): Optimize.
8540 * ira-costs.c (record_reg_classes): Optimize. Call
8541 ira_init_register_move_cost_if_necessary. Use
8542 ira_register_move_cost, ira_may_move_in_cost, and
8543 ira_may_move_out_cost instead of ira_get_register_move_cost and
8544 ira_get_may_move_cost.
8545 (record_address_regs): Ditto.
8546 (scan_one_insn): Optimize.
8547 (find_costs_and_classes): Optimize.
8548 (process_bb_node_for_hard_reg_moves): Call
8549 ira_init_register_move_cost_if_necessary. Use
8550 ira_register_move_cost instead of ira_get_register_move_cost.
8552 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8553 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8554 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8555 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8557 (ira_initiate_emit_data, ira_finish_emit_data)
8558 (create_new_allocno): New functions.
8559 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8560 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8561 Use ira_register_move_cost instead of ira_get_register_move_cost.
8563 * ira-int.h: Fix some comments.
8564 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8565 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8566 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8567 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8569 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8570 bitfield after mode. Make hard_regno a short int. Make
8571 hard_regno short. Remove first_coalesced_allocno and
8572 next_coalesced_allocno. Move mem_optimized_dest_p,
8573 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8574 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8575 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8576 temp, colorable_p. Add new member add_data.
8577 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8578 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8579 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8580 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8581 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8582 (ALLOCNO_ADD_DATA): New macro.
8583 (ira_emit_data_t): New typedef.
8584 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8585 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8586 from struct ira_allocno.
8587 (ALLOCNO_EMIT_DATA): New macro.
8588 (ira_allocno_emit_data, allocno_emit_reg): New.
8589 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8590 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8591 (OBJECT_ADD_DATA): New macro.
8592 (ira_reallocate): Remove.
8593 (ira_initiate_emit_data, ira_finish_emit_data): New.
8594 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8595 (ira_init_register_move_cost_if_necessary): New.
8596 (ira_object_conflict_iter_next): Merge into
8597 ira_object_conflict_iter_cond.
8598 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8600 * ira-live.c (process_single_reg_class_operands): Call
8601 ira_init_register_move_cost_if_necessary. Use
8602 ira_register_move_cost instead of ira_get_register_move_cost.
8604 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8606 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8608 * ira-costs.c: Fix formatting.
8609 (cost_classes, cost_classes_num): Remove.
8610 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8611 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8612 (cost_classes_del, cost_classes_htab): New.
8613 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8614 (initiate_regno_cost_classes, setup_cost_classes): New.
8615 (setup_regno_cost_classes_by_aclass): New.
8616 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8617 (record_reg_classes): Use regno_cost_classes instead of
8618 cost_classes. Move checking opposite operand up.
8619 (record_address_regs): Use regno_cost_classes
8620 instead of cost_classes.
8621 (scan_one_insn): Ditto. Use always general register.
8622 (print_allocno_costs): Use regno_cost_classes instead of
8624 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8625 (find_costs_and_classes): Set up cost classes for each registers.
8626 Use also their mode for this. Use regno_cost_classes instead of
8628 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8630 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8631 (ira_costs, ira_set_pseudo_classes): Call
8632 initiate_regno_cost_classes and finish_regno_cost_classes.
8634 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8636 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8638 * target.def (ira_cover_classes): Remove.
8640 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8642 * doc/tm.texi.in: Ditto.
8644 * ira-conflicts.c: Remove mentioning cover classes from the file.
8645 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8646 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8648 * targhooks.c (default_ira_cover_classes): Remove.
8650 * targhooks.h (default_ira_cover_classes): Ditto.
8652 * haifa-sched.c: Remove mentioning cover classes from the file.
8653 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8654 ira_pressure_classes and ira_pressure_classes_num instead of
8655 ira_reg_class_cover_size and ira_reg_class_cover. Use
8656 sched_regno_pressure_class instead of sched_regno_cover_class.
8657 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8658 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8660 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8661 classes from the file.
8662 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8663 (struct object_hard_regs, struct object_hard_regs_node): New.
8664 (struct ira_object): New members profitable_hard_regs,
8665 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8666 (struct ira_allocno): Rename cover_class to aclass. Rename
8667 cover_class_cost and updated_cover_class_cost to class_cost and
8668 updated_class_cost. Remove splay_removed_p and
8669 left_conflict_size. Add new members colorable_p.
8670 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8671 (ALLOCNO_COLORABLE_P): New macro.
8672 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8673 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8674 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8675 (OBJECT_...): Rename parameter C to O.
8676 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8677 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8678 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8679 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8680 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8681 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8682 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8683 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8684 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8685 x_ira_reg_class_subunion.
8686 (ira_max_memory_move_cost, ira_max_register_move_cost)
8687 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8688 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8689 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8690 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8691 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8692 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8693 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8694 (ira_tune_allocno_costs_and_cover_classes): Rename to
8695 ira_tune_allocno_costs.
8696 (ira_debug_hard_regs_forest): New.
8697 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8698 (ira_object_conflict_iter_next): Fix comments.
8699 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8700 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8701 cover_class to aclass.
8702 (ira_allocate_and_accumulate_costs): Ditto.
8703 (ira_allocate_and_set_or_copy_costs): Ditto.
8705 * opts.c (decode_options): Remove ira_cover_class check.
8707 * ira-color.c: Remove mentioning cover classes from the file. Use
8708 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8709 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8710 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8711 (splay-tree.h): Remove include.
8712 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8713 before copy_freq_compare_func.
8714 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8715 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8717 (hard_regs_roots, hard_regs_node_vec): Ditto.
8718 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8719 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8720 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8721 (create_new_object_hard_regs_node): Ditto.
8722 (add_new_object_hard_regs_node_to_forest): Ditto.
8723 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8724 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8726 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8727 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8728 (remove_unused_object_hard_regs_nodes): Ditto.
8729 (enumerate_object_hard_regs_nodes): Ditto.
8730 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8731 (object_hard_regs_subnode_t): Ditto.
8732 (struct object_hard_regs_subnode): Ditto.
8733 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8734 (setup_object_hard_regs_subnode_index): Ditto.
8735 (get_object_hard_regs_subnodes_num): Ditto.
8736 (form_object_hard_regs_nodes_forest): Ditto.
8737 (finish_object_hard_regs_nodes_tree): Ditto.
8738 (finish_object_hard_regs_nodes_forest): Ditto.
8739 (allocnos_have_intersected_live_ranges_p): Rename to
8740 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8741 (pseudos_have_intersected_live_ranges_p): Rename to
8742 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8743 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8744 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8745 (update_copy_costs): Remove assert. Skip cost update if the hard
8746 reg does not belong the class.
8747 (assign_hard_reg): Process only profitable hard regs.
8748 (uncolorable_allocnos_num): Make it scalar.
8749 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8750 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8751 and ira_reg_class_max_nregs.
8752 (bucket_allocno_compare_func): Check frequency first.
8753 (sort_bucket): Add compare function as a parameter.
8754 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8755 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8756 (push_allocno_to_stack): Rewrite for checking new allocno
8758 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8759 (push_only_colorable): Pass new parameter to sort_bucket.
8760 (push_allocno_to_spill): Remove.
8761 (allocno_spill_priority_compare): Make it inline and rewrite.
8762 (splay_tree_allocate, splay_tree_free): Remove.
8763 (allocno_spill_sort_compare): New function.
8764 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8765 build and use splay tree. Choose first allocno in uncolorable
8766 allocno bucket to spill. Remove setting spill cost.
8767 (all_conflicting_hard_regs): Remove.
8768 (setup_allocno_available_regs_num): Check only profitable hard
8769 regs. Print info about hard regs nodes.
8770 (setup_allocno_left_conflicts_size): Remove.
8771 (put_allocno_into_bucket): Don't call
8772 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8773 (improve_allocation): New.
8774 (color_allocnos): Call setup_profitable_hard_regs,
8775 form_object_hard_regs_nodes_forest, improve_allocation,
8776 finish_object_hard_regs_nodes_forest. Setup spill cost.
8777 (print_loop_title): Use pressure classes.
8778 (color_allocnso): Ditto.
8779 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8780 and allocnos_for_spilling.
8781 (ira_sort_regnos_for_alter_reg): Don't setup members
8782 {first,next}_coalesced_allocno.
8783 (color): Remove allocating and freeing removed_splay_allocno_vec.
8784 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8785 prohibited_class_mode_regs.
8787 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8789 (update_allocno_pressure_excess_length): Use pressure classes.
8790 (inc_register_pressure, dec_register_pressure): Check for pressure
8792 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8793 pressure class. Use ira_reg_class_nregs instead of
8794 ira_reg_class_max_nregs.
8795 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8796 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8797 (single_reg_class): Use ira_reg_class_nregs instead of
8798 ira_reg_class_max_nregs.
8799 (process_bb_node_lives): Use pressure classes.
8801 * ira-emit.c: Remove mentioning cover classes from the file. Use
8802 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8803 (change_loop): Use pressure classes.
8804 (modify_move_list): Call ira_set_allocno_class instead of
8805 ira_set_allocno_cover_class.
8807 * ira-build.c: Remove mentioning cover classes from the file. Use
8808 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8809 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8810 ALLOCNO_UPDATED_CLASS_COST instead of
8811 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8812 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8813 (ira_create_allocno): Remove initialization of
8814 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8815 ALLOCNO_COLORABLE_P.
8816 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8817 Update conflict regs for the objects.
8818 (create_cap_allocno): Remove assert. Don't propagate
8819 ALLOCNO_AVAILABLE_REGS_NUM.
8820 (ira_free_allocno_costs): New function.
8821 (finish_allocno): Change a part of code into call of
8822 ira_free_allocno_costs.
8823 (low_pressure_loop_node_p): Use pressure classes.
8824 (object_range_compare_func): Don't compare classes.
8825 (setup_min_max_conflict_allocno_ids): Ditto.
8827 * loop-invariant.c: Remove mentioning cover classes from the file.
8828 Use ira_pressure_classes and ira_pressure_classes_num instead of
8829 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8830 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8831 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8832 Use reg_allocno_class instead of reg_cover_class.
8833 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8834 STACK_REG_COVER_CLASS.
8835 (get_regno_cover_class): Rename to get_regno_pressure_class.
8836 (move_loop_invariants): Initialize and finalize regstat.
8838 * ira.c: Remove mentioning cover classes from the file. Add
8839 comments about coloring without cover classes. Use ALLOCNO_CLASS
8840 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8841 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8842 setup_class_subset_and_memory_move_costs.
8843 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8844 (setup_cover_and_important_classes): Rename to
8845 setup_allocno_and_important_classes.
8846 (setup_class_translate_array): New.
8847 (setup_class_translate): Call it for allocno and pressure classes.
8848 (cover_class_order): Rename to allocno_class_order.
8849 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8850 of ira_class_translate.
8851 (reorder_important_classes): Set up ira_important_class_nums.
8852 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8853 (print_class_cover): Rename to print_classes. Add parameter.
8854 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8855 Print pressure classes too.
8856 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8857 setup_reg_subclasses.
8858 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8859 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8860 (setup_prohibited_class_mode_regs): Use
8861 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8862 (clarify_prohibited_class_mode_regs): New function.
8863 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8864 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8865 (ira_init_once): Initialize them.
8866 (free_register_move_costs): Process them.
8867 (ira_init): Move calls of find_reg_classes and
8868 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8869 Call clarify_prohibited_class_mode_regs.
8870 (ira_no_alloc_reg): Remove.
8871 (too_high_register_pressure_p): Use pressure classes.
8873 * sched-deps.c: Remove mentioning cover classes from the file.
8874 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8875 ira_pressure_classes and ira_pressure_classes_num instead of
8876 ira_reg_class_cover_size and ira_reg_class_cover.
8877 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8878 sched_regno_pressure_class instead of sched_regno_cover_class.
8879 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8880 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8882 * ira.h: Add 2010 to Copyright.
8883 (ira_no_alloc_reg): Remove external.
8884 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8885 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8886 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8887 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8888 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8889 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8890 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8891 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8892 x_ira_no_alloc_regs.
8893 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8894 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8895 ira_allocno_classes_num and ira_allocno_classes.
8896 (ira_class_translate): Rename to ira_allocno_class_translate.
8897 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8898 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8899 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8900 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8901 (ira_no_alloc_regs): New.
8903 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8904 classes from the file. Use ALLOCNO_CLASS instead of
8905 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8906 ALLOCNO_COVER_CLASS_COST.
8907 (regno_cover_class): Rename to regno_aclass.
8908 (record_reg_classes): Use ira_reg_class_subunion instead of
8909 ira_reg_class_union.
8910 (record_address_regs): Check overflow.
8911 (scan_one_insn): Ditto.
8912 (print_allocno_costs): Print total mem cost fore regional allocation.
8913 (print_pseudo_costs): Use REG_N_REFS.
8914 (find_costs_and_classes): Use classes intersected with them on the
8915 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8916 ira_reg_class_union. Use ira_allocno_class_translate and
8917 regno_aclass instead of ira_class_translate and regno_cover_class.
8918 Modify code for finding regno_aclass. Setup preferred classes for
8920 (setup_allocno_cover_class_and_costs): Rename to
8921 setup_allocno_class_and_costs. Use regno_aclass instead of
8922 regno_cover_class. Use ira_set_allocno_class instead of
8923 ira_set_allocno_cover_class.
8924 (init_costs, finish_costs): Use regno_aclass instead of
8926 (ira_costs): Use setup_allocno_class_and_costs instead of
8927 setup_allocno_cover_class_and_costs.
8928 (ira_tune_allocno_costs_and_cover_classes): Rename to
8929 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8930 by processing objects. Use ira_reg_class_max_nregs instead of
8931 ira_reg_class_nregs.
8933 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8935 * sched-int.h: Remove mentioning cover classes from the file.
8936 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8938 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8939 classes from the file.
8940 (struct reg_pref): Rename coverclass into allocnoclass.
8941 (reg_cover_class): Rename to reg_allocno_class.
8943 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8945 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8947 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8949 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8951 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8953 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8955 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8957 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8959 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8961 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8963 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8964 (i386_ira_cover_classes): Ditto.
8966 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8968 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8970 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8972 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8974 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8976 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8978 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8979 (mips_ira_cover_classes): Ditto.
8981 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8983 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8985 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8987 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8989 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8991 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8992 (IRA_COVER_CLASSES_VSX): Ditto.
8994 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8995 (rs6000_ira_cover_classes): Ditto.
8997 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8999 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9001 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9003 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9005 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9007 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9009 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9011 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9013 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9015 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9017 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9020 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9021 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9022 dw_fde_unlikely_section_end_label, cold_in_std_section,
9023 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9024 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9026 (output_fde): Use dw_fde_second_{begin,end} if second is
9027 true, otherwise dw_fde_{begin,end}.
9028 (output_call_frame_info): Test dw_fde_second_begin != NULL
9029 instead of dw_fde_switched_sections.
9030 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9031 fields, initialize new fields. Initialize in_std_section
9032 unconditionally from the first partition.
9033 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9034 dw_fde_second_begin is non-NULL.
9035 (dwarf2out_switch_text_section): Stop initializing removed
9036 dw_fde_struct fields, initialize new fields, initialize
9037 also dw_fde_end here. Set dw_fde_switch_cfi even when
9038 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9039 (struct var_loc_list_def): Add last_before_switch field.
9040 (arange_table, arange_table_allocated, arange_table_in_use,
9041 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9042 (size_of_aranges): Count !in_std_section and !second_in_std_section
9043 hunks in fdes, instead of looking at arange_table_in_use.
9044 (output_aranges): Add aranges_length argument, don't call
9045 size_of_aranges here. Instead of using aranges_table*
9046 emit ranges for fdes when !in_std_section resp.
9047 !second_in_std_section.
9048 (dw_loc_list): Break ranges crossing section switch.
9049 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9050 use dw_fde_second_end instead of dw_fde_end as end of last range.
9051 (gen_subprogram_die): Don't call add_arange. Use
9052 dw_fde_{begin,end} for first partition and if switched
9053 section dw_fde_second_{begin,end} for the second.
9054 (var_location_switch_text_section_1,
9055 var_location_switch_text_section): New functions.
9056 (dwarf2out_begin_function): Initialize cold_text_section even
9057 when function_section () isn't text_section.
9058 (prune_unused_types): Don't walk arange_table.
9059 (dwarf2out_finish): Don't needlessly test
9060 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9061 If info_section_emitted, call size_of_aranges and if it indicates
9062 non-empty .debug_aranges, call output_aranges with the computed
9063 size. Stop using removed dw_fde_struct fields, use
9064 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9068 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9069 create ENTRY_VALUE if incoming or address of incoming's MEM
9071 * dwarf2out.c (mem_loc_descriptor): Don't emit
9072 DW_OP_GNU_entry_value of DW_OP_fbreg.
9073 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9074 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9075 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9076 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9078 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9079 is a REG_P or MEM_P with REG_P address, compute hash directly
9080 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9081 (preserve_only_constants): Don't clear VALUES forwaring
9082 ENTRY_VALUE to some other VALUE.
9084 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9086 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9089 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9091 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9092 block before expanding the statement.
9093 (expand_gimple_stmt_1): Likewise. Set them here...
9094 (expand_gimple_stmt): ...and not here. Tidy.
9095 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9098 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9100 * Makefile.in: New rule for cprop.o.
9101 * gcse.c: Move constant/copy propagation to cprop.c.
9102 (compute_local_properties): Only handle expression tables.
9103 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9104 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9105 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9106 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9107 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9108 compute_cprop_data, find_used_regs, try_replace_reg,
9109 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9110 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9111 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9112 find_bypass_set, reg_killed_on_edge, bypass_block,
9113 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9114 execute_rtl_cprop, pass_rtl_cprop): Move to...
9115 * cprop.c: ...here. New file, constant/copy propagation for RTL
9116 moved from gcse.c to here with minor cleanups in duplicated code.
9118 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9120 * config/i386/i386.c (flag_opts): Fix a typo in
9121 -mavx256-split-unaligned-store.
9123 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9125 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9126 LIBCALL_VALUE): Remove macros.
9127 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9128 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9129 (h8300_function_value, h8300_libcall_value,
9130 h8300_function_value_regno_p): New functions.
9132 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9134 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9136 2011-03-28 Jeff Law <law@redhat.com>
9138 * tree-ssa-threadupdate.c (redirect_edges): Call
9139 create_edge_and_update_destination_phis as needed.
9140 (create_edge_and_update_destination_phis): Accept new BB argument.
9141 All callers updated.
9142 (thread_block): Do not update the profile when threading around
9143 intermediate blocks.
9144 (thread_single_edge): Likewise.
9145 (determine_bb_domination_status): If BB is not a successor of the
9146 loop header, return NONDOMINATING.
9147 (register_jump_thread): Note when we register a jump thread around
9148 an intermediate block.
9149 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9150 (thread_across_edge): Use it.
9152 2011-03-28 Tristan Gingold <gingold@adacore.com>
9154 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9155 when for_return is 2.
9157 2011-03-28 Jeff Law <law@redhat.com>
9159 * var-tracking.c (canonicalize_values_mark): Delete unused
9161 (canonicalize_values_star, set_variable_part): Likewise.
9162 (clobber_variable_part, delete_variable_part): Likewise.
9164 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9166 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9168 2011-03-28 Martin Jambor <mjambor@suse.cz>
9170 * tree-inline.c (expand_call_inline): Do not check that destination
9172 (optimize_inline_calls): Assert that destination node is analyzed.
9173 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9174 not call tree_lowering_passes.
9175 * cgraph.h (cgraph_analyze_function): Declare.
9176 * cgraphunit.c (cgraph_analyze_function): Make public.
9178 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9180 * config/sparc/sparc-opts.h: New.
9181 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9182 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9183 (sparc_option_override): Store processor_type enumeration rather
9184 than string in cpu_default. Remove name and enumeration from
9185 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9186 without using sparc_select. Use target_flags_explicit instead of
9188 * config/sparc/sparc.h (enum processor_type): Move to
9190 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9191 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9192 HeaderInclude entry.
9193 (mcpu=, mtune=): Use Var and Enum.
9194 (sparc_processor_type): New Enum and EnumValue entries.
9196 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9197 Iain Sandoe <iains@gcc.gnu.org>
9200 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9202 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9204 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9205 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9206 Insert new statements at it in lieu of STMT.
9207 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9208 * tree-vect-stmts.c (vectorizable_store): Likewise.
9209 (vectorizable_load): Likewise.
9211 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9213 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9218 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9220 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9221 unaligned 256bit load/store.
9222 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9223 (*avx_movdqu<avxmodesuffix>): Likewise.
9225 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9228 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9229 * config/pa/pa.md (iordi3): Use new predicate in expander.
9232 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9234 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9235 FUNCTION_VALUE_REGNO_P): Remove macros.
9236 * config/mips/mips-protos.h (mips_function_value): Remove.
9237 * config/mips/mips.c (mips_function_value): Rename to...
9238 (mips_function_value_1): ... this. Make static. Handle receiving
9239 the function type in 'fn_decl_or_type' argument.
9240 (mips_function_value, mips_libcall_value,
9241 mips_function_value_regno_p): New function.
9242 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9243 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9245 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9247 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9248 and -mavx256-split-unaligned-store.
9249 (ix86_option_override_internal): Split 32-byte AVX unaligned
9250 load/store by default.
9251 (ix86_avx256_split_vector_move_misalign): New.
9252 (ix86_expand_vector_move_misalign): Use it.
9254 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9255 -mavx256-split-unaligned-store.
9257 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9258 256bit load/store. Generate unaligned store on misaligned memory
9260 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9262 (*avx_movdqu<avxmodesuffix>): Likewise.
9264 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9265 -mavx256-split-unaligned-store.
9267 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9270 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9273 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9275 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9276 opno arguments with an expand_operand. Use create_input_operand.
9277 (mips_prepare_builtin_target): Delete.
9278 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9280 (mips_expand_builtin_direct): Use create_output_operand and
9281 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9282 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9283 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9285 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9287 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9289 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9291 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9293 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9294 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9295 basic blocks and call commit_edge_insertions directly.
9296 (fixup_abnormal_edges): Move from here to...
9297 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9298 on the edges and return whether some have actually been inserted.
9299 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9302 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9304 PR rtl-optimization/48144
9305 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9306 (merge_expr_data): ... here.
9307 (av_set_intersect): Rename to av_set_code_motion_filter.
9308 Update all callers. Call merge_history_vect when an expression
9309 is found in both sets.
9310 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9312 2011-03-26 Alan Modra <amodra@gmail.com>
9314 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9315 cmodel medium addresses.
9316 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9317 64-bit gpr loads and stores.
9318 (rs6000_secondary_reload_ppc64): New function.
9319 * config/rs6000/rs6000-protos.h: Declare it.
9320 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9322 2011-03-26 Alan Modra <amodra@gmail.com>
9325 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9326 GNU Go in traceback table.
9328 2011-03-25 Richard Henderson <rth@redhat.com>
9330 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9331 if there are exactly 6 operands.
9332 (set_storage_via_setmem): Similarly.
9334 2011-03-25 Kai Tietz <ktietz@redhat.com>
9336 * collect2.c (write_c_file_stat): Handle backslash
9337 as right-hand directory separator.
9338 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9339 checking just for slash.
9340 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9341 instead of checking for trailing slash.
9342 * gcc.c (record_temp_file): Use filename_cmp instead
9344 (do_spec_1): Likewise.
9345 (replace_outfile_spec_function): Likewise.
9346 (is_directory): Use filename_ncmp instead of strncmp.
9347 (print_multilib_info): Likewise.
9348 * gcov.c (find_source): Use filename_cmp instead
9350 (make_gcov_file_name): Fix order of slash/backslash
9352 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9353 (add_standard_paths): Likewise.
9354 * mips-tfile.c (saber_stop): Handle backslash.
9355 * prefix.c (update_path): Use filename_ncmp instead of
9357 * profile.c (output_location): Use filename_cmp instead
9359 * read-md.c (handle_toplevel_file): Handle backslash.
9360 * tlink.c (frob_extension): Likewise.
9361 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9363 * tree-dump.c (dequeue_and_dump): Handle backslash.
9364 * tree.c (get_file_function_name): Likewise.
9365 * gengtype.c (read_input_list): Likewise.
9366 (get_file_realbasename): Likewise.
9367 (get_output_file_with_visibility): Use filename_cmp
9370 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9372 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9375 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9377 * fold-const.c (expr_location_or): New function.
9378 (fold_truth_not_expr): Call it.
9380 2011-03-25 Jeff Law <law@redhat.com>
9382 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9384 * c-family/c-common.c (def_fn_type): Likewise.
9385 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9386 * emit-rtl.c (gen_rtvec): Likewise.
9387 * lto/lto-lang.c (def_fn_type): Likewise.
9389 2011-03-25 Richard Guenther <rguenther@suse.de>
9391 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9392 also generate copies.
9393 (fini_copy_prop): Handle constant values properly.
9395 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9397 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9398 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9399 (hash_loc_operands, compare_loc_operands): Handle
9400 DW_OP_GNU_entry_value.
9402 2011-03-25 Kai Tietz <ktietz@redhat.com>
9404 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9405 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9406 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9407 comment and use macro TARGET_64BIT_MS_ABI instead.
9408 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9409 and change default behavior for 32-bit MS_ABI.
9410 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9411 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9413 (ix86_cfun_abi): Likewise.
9414 (ix86_maybe_switch_abi): Adjust comment.
9415 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9416 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9417 instead of checking for SYSV_ABI.
9418 (ix86_nsaved_sseregs): Likewise.
9419 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9421 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9422 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9423 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9424 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9425 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9427 2011-03-25 Richard Guenther <rguenther@suse.de>
9429 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9430 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9431 (verify_gimple): Remove.
9432 * tree-cfg.c (verify_gimple_call): Merge verification
9434 (verify_gimple_phi): Merge verification from verify_stmts.
9435 (verify_gimple_label): New function.
9436 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9437 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9438 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9439 (verify_stmts): Rename to verify_gimple_in_cfg.
9440 (verify_gimple_in_cfg): New function.
9441 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9442 * tree-ssa.c (verify_ssa): Likewise.
9443 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9445 2011-03-25 Richard Guenther <rguenther@suse.de>
9447 * passes.c (init_optimization_passes): Add FRE pass after
9450 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9451 Andrew Stubbs <ams@codesourcery.com>
9453 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9455 (arm_movdi_vfp_cortexa8): New pattern.
9456 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9457 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9458 instructions when tuning for Cortex-A8. Set attribute "arch".
9459 * config/arm/arm.md: Move include arm-tune.md up a bit.
9460 (define_attr "arch"): Add "onlya8" and "nota8" values.
9461 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9463 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9467 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9469 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9470 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9471 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9472 * passes.c (init_optimization_passes): Move
9473 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9475 2011-03-25 Kai Tietz <ktietz@redhat.com>
9477 * c-typeck.c (comptypes_internal): Replace target
9478 hook call of comp_type_attributes by version in tree.c file.
9479 * gimple.c (gimple_types_compatible_p_1): Likewise.
9480 * tree-ssa.c (useless_type_conversion_p): Likewise.
9481 * tree.c (build_type_attribute_qual_variant): Likewise.
9482 (attribute_value_equal): New static helper function.
9483 (comp_type_attributes): New function.
9484 (merge_attributes): Use attribute_value_equal for comparison.
9485 (attribute_list_contained): Likewise.
9486 * tree.h (comp_type_attributes): New prototype.
9488 2011-03-25 Richard Guenther <rguenther@suse.de>
9490 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9491 of complex types at -O0.
9492 (verify_gimple_assign_binary): Likewise.
9493 (verify_gimple_assign_ternary): Likewise.
9495 2011-03-24 Mark Wielaard <mjw@redhat.com>
9497 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9498 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9500 2011-03-24 Mark Wielaard <mjw@redhat.com>
9503 * dwarf2out.c (output_abbrev_section): Only write table when
9504 abbrev_die_table_in_use > 1.
9506 2011-02-24 Richard Henderson <rth@redhat.com>
9508 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9509 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9510 (alpha_expand_unaligned_load_words): Use extql.
9511 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9512 (emit_insxl): Handle all modes for consistency.
9514 2011-02-24 Richard Henderson <rth@redhat.com>
9516 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9517 (alpha_expand_unaligned_load): Likewise.
9518 (alpha_expand_unaligned_store): Likewise.
9519 (alpha_expand_unaligned_load_words): Likewise.
9520 (alpha_expand_unaligned_store_words): Likewise.
9521 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9522 (alpha_split_lock_test_and_set_12): Likewise.
9523 (print_operand, alpha_fold_builtin_extxx): Likewise.
9524 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9525 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9526 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9527 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9528 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9529 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9530 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9531 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9532 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9533 (extwl, extll, extql): Similarly.
9534 (inswh, inslh, insqh): Similarly.
9535 (mskbl, mskwl, mskll, mskql): Similarly.
9536 (mskwh, msklh, mskqh): Similarly.
9538 2011-02-24 Richard Henderson <rth@redhat.com>
9540 * config/alpha/alpha.md (attribute isa): Add er, ner.
9541 (attribute enabled): Handle them.
9542 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9544 2011-02-24 Richard Henderson <rth@redhat.com>
9546 * config/alpha/alpha.md (attribute isa): Add vms.
9547 (attribute enabled): Handle it.
9548 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9549 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9550 (*movtf): Rename from *movtf_internal for consistency.
9551 (*movsi): Merge with *movsi_nt_vms.
9552 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9553 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9554 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9555 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9557 2011-02-24 Richard Henderson <rth@redhat.com>
9559 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9560 (extendqisi2, extendhisi2): Likewise.
9561 (extendqidi2): Simplify BWX/non-BWX expansions.
9562 (extendhidi2): Similarly.
9564 2011-02-24 Richard Henderson <rth@redhat.com>
9566 * config/alpha/alpha.md (attribute isa): New.
9567 (attribute enabled): New.
9568 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9569 (zero_extendqisi2, zero_extendqidi2): Similarly.
9570 (zero_extendhisi2, zero_extendhidi2): Similarly.
9571 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9573 2011-02-24 Richard Henderson <rth@redhat.com>
9575 * config/alpha/predicates.md (input_operand): Revert last change;
9576 update comment to mention 32-bit VMS rather than Windows.
9578 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9580 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9581 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9582 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9583 * passes.c (init_optimization_passes): Move
9584 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9586 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9588 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9590 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9592 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9595 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9598 * simplify-rtx.c (simplify_const_unary_operation): Call
9599 real_convert when changing mode class with FLOAT_EXTEND.
9601 2011-03-24 Nick Clifton <nickc@redhat.com>
9603 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9604 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9605 * config/rx/rx.c (rx_option_override): Set align_jumps,
9606 align_loops and align_labels if not set by the user.
9607 (rx_align_for_label): New function.
9608 (rx_max_skip_for_label): New function.
9609 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9610 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9611 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9612 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9613 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9615 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9617 PR rtl-optimization/48263
9618 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9619 and original commutative_p handling. Use maybe_gen_insn.
9621 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9623 * reload.c (find_reloads_subreg_address): Add address_reloaded
9624 parameter and return true there if the full address has been
9626 (find_reloads_toplev): Pass address_reloaded flag.
9627 (find_reloads_address_1): Don't use address_reloaded parameter.
9629 2011-03-24 Jeff Law <law@redhat.com>
9631 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9632 unused variable "ann".
9633 (remove_unused_locals): Likewise.
9635 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9638 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9641 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9643 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9644 for invalid symbolic addresses.
9645 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9648 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9650 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9651 the argument in calls to fold_truth_not_expr.
9653 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9655 * tree.c (record_node_allocation_statistics): New function.
9656 (make_node_stat, copy_node_stat, build_string): Call it.
9657 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9658 (build1_stat, build_omp_clause): Likewise.
9660 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9662 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9665 2011-03-24 Richard Guenther <rguenther@suse.de>
9667 PR tree-optimization/48271
9668 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9669 blocks that still exist.
9671 2011-03-24 Richard Guenther <rguenther@suse.de>
9673 PR tree-optimization/48270
9674 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9675 not free datarefs before ddrs.
9677 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9679 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9680 from the address built for a reference with variable offset.
9682 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9685 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9686 alternatives that can be handled with movq or movabsq insn.
9687 (*movdf_internal): Disable for !TARGET_64BIT.
9688 (*movdf_internal_nointeger): Ditto.
9689 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9691 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9693 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9694 (FUNCTION_ARG_ADVANCE): Likewise.
9695 * tm.texi.in: Change references to them to hook references.
9696 * tm.texi: Regenerate.
9697 * targhooks.c (default_function_arg): Eliminate check for target macro.
9698 (default_function_incoming_arg): Likewise.
9699 (default_function_arg_advance): Likewise.
9700 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9701 (function_arg_advance): Likewise.
9702 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9704 2011-03-24 Richard Guenther <rguenther@suse.de>
9707 * tree-object-size.c (addr_object_size): Do not double-account
9708 for MEM_REF offsets.
9710 2011-03-24 Diego Novillo <dnovillo@google.com>
9712 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9713 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9714 (lto_input_data_block): Move from lto-opts.c. Make extern.
9716 (lto_input_string): Rename from input_string. Make extern.
9718 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9719 output_string_with_length.
9720 Output 0 to indicate a non-NULL string. Update all callers to
9722 (lto_output_string): Rename from output_string. Make extern.
9724 (lto_output_decl_state_streams): Make extern.
9725 (lto_output_decl_state_refs): Make extern.
9726 * lto-streamer.h (lto_input_string): Declare.
9727 (lto_input_data_block): Declare.
9728 (lto_output_string): Declare.
9729 (lto_output_string_with_length): Declare.
9730 (lto_output_decl_state_streams): Declare.
9731 (lto_output_decl_state_refs): Declare.
9733 2011-03-24 Richard Guenther <rguenther@suse.de>
9735 PR tree-optimization/46562
9736 * tree.c (build_invariant_address): New function.
9737 * tree.h (build_invariant_address): Declare.
9738 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9739 a renamed function moved ...
9740 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9741 Take valueization callback parameter.
9742 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9743 * gimple-fold.h: New file.
9744 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9745 (ccp_fold, fold_const_aggregate_ref,
9746 fold_ctor_reference, fold_nonarray_ctor_reference,
9747 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9748 get_base_constructor): Move ...
9749 * gimple-fold.c: ... here.
9750 (gimple_fold_stmt_to_constant_1): New function
9751 split out from ccp_fold. Take a valueization callback parameter.
9752 Valueize all operands.
9753 (gimple_fold_stmt_to_constant): New wrapper function.
9754 (fold_const_aggregate_ref_1): New function split out from
9755 fold_const_aggregate_ref. Take a valueization callback parameter.
9756 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9757 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9758 invariant POINTER_PLUS_EXPRs to invariant form.
9759 (vn_valueize): New function.
9760 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9761 * tree-vrp.c (vrp_valueize): New function.
9762 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9763 to fold statements to constants.
9764 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9765 function declarations.
9766 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9767 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9769 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9771 * config/h8300/predicates.md (jump_address_operand): Fix register
9774 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9776 * doc/invoke.texi (max-stores-to-sink): Document.
9777 * params.h (MAX_STORES_TO_SINK): Define.
9778 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9779 if either vectorization or if-conversion is disabled.
9780 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9781 tree-vect-data-refs.c vect_equal_offsets.
9782 (dr_equal_offsets_p): New function.
9783 (find_data_references_in_bb): Remove static.
9784 * tree-data-ref.h (find_data_references_in_bb): Declare.
9785 (dr_equal_offsets_p): Likewise.
9786 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9787 (vect_drs_dependent_in_basic_block): Update calls to
9789 (vect_check_interleaving): Likewise.
9790 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9791 (cond_if_else_store_replacement): Rename to...
9792 (cond_if_else_store_replacement_1): ... this. Change arguments and
9794 (cond_if_else_store_replacement): New function.
9795 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9796 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9798 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9801 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9802 to subtract lower bound instead of GEN_INT().
9804 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9809 * doc/extend.texi (Alignment): Move section to match order in TOC.
9810 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9811 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9813 2011-03-23 Jeff Law <law@redhat.com>
9815 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9816 before removing the edge.
9818 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9819 it may have been freed by redirect_branch_edge or
9820 redirect_edge_succ_nodup.
9822 2011-03-23 Richard Guenther <rguenther@suse.de>
9824 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9825 (check_va_list_escapes): Likewise.
9826 (check_all_va_list_escapes): Likewise.
9828 2011-03-23 Richard Guenther <rguenther@suse.de>
9830 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9831 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9832 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9833 (alias.o): Likewise.
9834 (ipa-type-escape.o): Remove.
9835 (ipa-struct-reorg.o): Likewise.
9836 (GTFILES): Remove ipa-struct-reorg.c.
9837 * alias.c: Do not include ipa-type-escape.h.
9838 * tree-ssa-alias.c: Likewise.
9839 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9840 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9841 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9842 and ipa-type-escape passes.
9843 * tree-pass.h (pass_ipa_type_escape): Remove.
9844 (pass_ipa_struct_reorg): Likewise.
9845 * ipa-struct-reorg.h: Remove.
9846 * ipa-struct-reorg.c: Likewise.
9847 * ipa-type-escape.h: Likewise.
9848 * ipa-type-escape.c: Likewise.
9849 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9850 (--param struct-reorg-cold-struct-ratio): Likewise.
9851 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9852 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9853 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9855 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9857 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9858 cpu attribute value.
9859 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9860 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9861 * config/s390/s390.c (processor_flags_table): New constant array.
9862 (s390_handle_arch_option): Remove.
9863 (s390_handle_option): Remove s390_handle_arch_option invocations
9864 and OPT_mwarn_framesize_ handling.
9865 (s390_option_override): Remove s390_handle_arch_option invocation.
9866 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9868 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9869 * config/s390/s390.opt (s390_tune, s390_arch)
9870 (march=): Replace s390_arch_option enum and values with
9871 processor_type. Set variable name to s390_arch. Set
9872 initialization value.
9873 (mtune=): Replace s390_arch_option with processor_type. Set
9874 variable name to s390_tune. Set initialization value.
9876 2011-03-23 Julian Brown <julian@codesourcery.com>
9878 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9879 accesses which are not naturally aligned.
9881 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9884 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9886 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9888 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9889 parameter from "int" to "enum insn_code".
9890 (expand_operand_type): New enum.
9891 (expand_operand): New structure.
9892 (create_expand_operand): New function.
9893 (create_fixed_operand, create_output_operand): Likewise
9894 (create_input_operand, create_convert_operand_to): Likewise.
9895 (create_convert_operand_from, create_address_operand): Likewise.
9896 (create_integer_operand): Likewise.
9897 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9898 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9899 (expand_insn, expand_jump_insn): Likewise.
9900 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9901 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9902 (expand_movstr, expand_builtin___clear_cache): Likewise.
9903 (expand_builtin_lock_release): Likewise.
9904 * explow.c (allocate_dynamic_stack_space): Likewise.
9905 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9906 and use the default handling in that case.
9907 * expmed.c (check_predicate_volatile_ok): Delete.
9908 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9909 (emit_cstore): Likewise.
9910 * expr.c (emit_block_move_via_movmem): Likewise.
9911 (set_storage_via_setmem, expand_assignment): Likewise.
9912 (emit_storent_insn, try_casesi): Likewise.
9913 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9914 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9915 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9916 (expand_twoval_unop, expand_twoval_binop): Likewise.
9917 (expand_unop_direct, emit_indirect_jump): Likewise.
9918 (emit_conditional_move, vector_compare_rtx): Likewise.
9919 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9920 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9921 (expand_sync_lock_test_and_set): Likewise.
9922 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9923 (emit_unop_insn): Likewise.
9924 (expand_copysign_absneg): Change icode to an insn_code.
9925 (create_convert_operand_from_type): New function.
9926 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9927 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9928 (expand_insn, expand_jump_insn): Likewise.
9929 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9930 than const_int_operand for operand 2.
9932 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9934 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9937 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9939 * emit-rtl.c (emit_pattern_before_noloc): New function.
9940 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9941 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9942 (emit_pattern_after_noloc): New function.
9943 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9944 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9946 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9948 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9949 (__ffsDI2): Likewise.
9951 2011-03-22 Richard Henderson <rth@redhat.com>
9953 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9954 of !TARGET_ABI_OPEN_VMS.
9955 (alpha_trampoline_init, alpha_start_function): Likewise.
9956 (alpha_expand_epilogue, alpha_file_start): Likewise.
9957 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9958 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9959 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9960 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9961 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9963 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9965 * config/s390/s390-opts.h: New.
9966 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9967 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9968 s390_stack_guard): Remove.
9969 (s390_handle_arch_option): Return void. Take enum
9970 s390_arch_option value instead of string and searching array.
9971 (s390_handle_option): Don't assert that global structures are in
9972 use. Access variables via opts pointer. Use error_at. Don't use
9973 sscanf for -mstack-guard= or -mstack-size=. Update call to
9974 s390_handle_arch_option.
9975 (s390_option_override): Update call to s390_handle_arch_option.
9976 (s390_emit_prologue): Use %d format for s390_stack_size in
9977 diagnostic. Use %wd for HOST_WIDE_INT.
9978 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9979 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9980 * config/s390/s390.opt (config/s390/s390-opts.h): New
9981 HeaderInclude entry.
9982 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9983 s390_arch_flags, s390_warn_framesize): New Variable entries.
9984 (s390_arch_option): New Enum and EnumValue entries.
9985 (march=): Use Enum instead of Var.
9986 (mstack-guard=, mstack-size=): Use UInteger and Var.
9989 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9991 * config/score/score.c (score_handle_option): Don't assert that
9992 global structures are in use. Access target_flags via opts
9993 pointer. Use value of -march= option to determine target_flags
9995 * config/score/score.opt (march=): Use Enum.
9996 (score_arch): New Enum and EnumValue entries.
9998 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10000 * config/mep/mep.c (option_mtiny_specified): Remove.
10001 (mep_option_override): Move register handling for -mivc2 from
10002 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10003 instead of option_mtiny_specified.
10004 (mep_handle_option): Access target_flags via opts pointer. Don't
10005 assert that global structures are in use. Defer part of -mivc2
10006 handling and move it to mep_option_override.
10007 * config/mep/mep.opt (IVC2): New Mask entry.
10008 (mivc2): Use Var and Defer instead of Mask.
10010 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10012 * config/v850/v850-opts.h: New.
10013 * config/v850/v850.c (small_memory): Replace with
10014 small_memory_physical_max array. Make that array static const.
10015 (v850_handle_memory_option): Take integer value of argument. Take
10016 gcc_options pointer, option text and location. Return void.
10017 Update for changes to small memory structures.
10018 (v850_handle_option): Access target_flags via opts pointer. Don't
10019 assert that global structures are in use. Update calls to
10020 v850_handle_memory_option.
10021 (v850_encode_data_area): Update references to small memory settings.
10022 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10023 (enum small_memory_type): Move to v850-opts.h.
10024 * config/v850/v850.opt (config/v850/v850-opts.h): New
10025 HeaderInclude entry.
10026 (small_memory_max): New Variable entry.
10027 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10028 (mtda, mzda): Likewise.
10030 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10032 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10033 pointer. Don't assert that global structures are in use.
10035 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10037 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10038 via opts pointer. Don't assert that global structures are in use.
10040 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10042 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10043 (munix=93): Use Var.
10044 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10045 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10046 * config/pa/pa-opts.h: New.
10047 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10048 (pa_handle_option): Don't assert that global structures are in
10049 use. Access target_flags via opts pointer. Don't handle
10050 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10052 (pa_option_override): Handle deferred OPT_mfixed_range_.
10054 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10056 * config/mn10300/mn10300-opts.h: New.
10057 * config/mn10300/mn10300.c (mn10300_processor,
10058 mn10300_tune_string): Remove.
10059 (mn10300_handle_option): Don't assert that global structures are
10060 in use. Access mn10300_processor via opts pointer. Don't handle
10062 * config/mn10300/mn10300.h (enum processor_type): Move to
10064 (mn10300_processor): Remove.
10065 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10066 HeaderInclude entry.
10067 (mn10300_processor): New Variable entry.
10070 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10072 * config/microblaze/microblaze.c: Don't include opts.h.
10073 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10074 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10075 (mno-clearbss): Use Var and Warn.
10077 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10079 * config/m32r/m32r-opts.h: New.
10080 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10081 (m32r_handle_option): Don't assert that global structures are in
10082 use. Access target_flags and m32r_cache_flush_func via opts
10083 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10084 OPT_mno_flush_trap here.
10085 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10086 include of m32r-opts.h.
10087 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10088 HeaderInclude entry.
10089 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10090 (mmodel=): Use Enum and Var.
10091 (m32r_model): New Enum and EnumValue entries.
10092 (mno-flush-trap): Use Var.
10093 (msdata=): Use Enum and Var.
10094 (m32r_sdata): New Enum and EnumValue entries.
10096 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10098 * config/m32c/m32c.c: Don't include opts.h.
10099 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10100 m32c_handle_option): Remove.
10101 (m32c_option_override): Check global_options_set.x_target_memregs
10102 instead of target_memregs_set.
10103 * config/m32c/m32c.h (target_memregs): Remove.
10104 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10107 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10109 * config/iq2000/iq2000-opts.h: New.
10110 * config/iq2000/iq2000.c: Don't include opts.h.
10111 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10112 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10113 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10114 HeaderInclude entry.
10115 (iq2000_tune): New Variable entry.
10116 (march=): Add comment. Use Enum.
10117 (iq2000_arch): New Enum and EnumValue entries.
10118 (mcpu=): Use Enum and Var.
10119 (iq2000_tune): New Enum and EnumValue entries.
10121 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10123 * config/ia64/ia64-opts.h: New.
10124 * config/ia64/ia64.c (ia64_tune): Remove.
10125 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10126 here. Use error_at.
10127 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10128 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10129 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10130 HeaderInclude entry.
10131 (ia64_tune): New Variable entry.
10132 (mfixed-range=): Use Defer and Var.
10133 (mtune=): Use Enum and Var.
10134 (ia64_tune): New Enum and EnumValue entries.
10136 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10138 * config/frv/frv-opts.h: New.
10139 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10141 (frv_cpu_type): Remove.
10142 * config/frv/frv.c: Don't include opts.h.
10143 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10144 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10145 (frv_cpu_type): New Variable entry.
10146 (frv_cpu): New Enum and EnumValue entries.
10148 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10150 * config/cris/cris.c (cris_handle_option): Access target_flags via
10151 opts pointer. Don't assert that global structures are in use.
10152 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10153 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10155 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10157 * config/bfin/bfin-opts.h: New.
10158 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10159 bfin_si_revision, bfin_workarounds): Remove.
10160 (bfin_cpus): Make static const.
10161 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10162 not bfin_lib_id_given.
10163 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10164 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10165 pointer. Use error_at. Don't assert that global structures are in use.
10166 * config/bfin/bfin.h: Include bfin-opts.h.
10167 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10168 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10169 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10170 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10173 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10175 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10176 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10177 or -msoft-float here.
10178 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10179 -msoft-float and -mhard-float.
10180 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10181 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10183 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10185 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10186 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10188 (LIBGCC_SPEC): Don't handle -msoft-float.
10189 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10191 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10193 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10194 -mfloat-abi=*, not -msoft-float and -mhard-float.
10195 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10197 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10198 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10199 mhard-float and msoft-float.
10200 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10201 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10202 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10203 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10205 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10206 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10208 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10210 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10213 2011-03-22 Richard Henderson <rth@redhat.com>
10215 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10216 TARGET_ABI_WINDOWS_NT.
10217 (alpha_output_function_end_prologue): Likewise.
10218 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10219 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10220 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10221 (trap, *movsi_nt_vms): Likewise.
10222 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10223 (*tablejump_osf_nt_internal): Remove.
10224 * config/alpha/predicates.md (input_operand): Only test Pmode.
10226 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10228 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10229 via opts pointer. Use error_at. Don't assert that global
10230 structures are in use.
10232 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10234 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10235 (ix86_handle_option): Access ix86_isa_flags and
10236 ix86_isa_flags_explicit via opts pointer. Don't assert that
10237 global structures are in use.
10238 (ix86_function_specific_save, ix86_function_specific_restore):
10239 Update ix86_isa_flags_explicit field name.
10240 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10241 (ix86_isa_flags_explicit): Rename TargetSave entry to
10242 x_ix86_isa_flags_explicit.
10244 2011-03-22 Richard Henderson <rth@redhat.com>
10246 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10247 (alpha_option_override, direct_return): Likewise.
10248 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10249 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10250 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10251 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10252 (alpha_expand_epilogue, alpha_end_function): Likewise.
10253 (alpha_init_libfuncs): Likewise.
10254 (struct machine_function): Remove unicosmk members.
10255 (print_operand) ['t']: Remove.
10256 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10257 unicosmk_output_module_name, unicosmk_output_common,
10258 current_section_align, unicosmk_output_text_section_asm_op,
10259 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10260 unicosmk_section_type_flags, unicosmk_unique_section,
10261 unicosmk_asm_named_section, unicosmk_insert_attributes,
10262 unicosmk_output_align, unicosmk_defer_case_vector,
10263 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10264 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10265 unicosmk_output_ssib, unicosmk_add_call_info_word,
10266 unicosmk_extern_head, unicosmk_output_default_externs,
10267 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10268 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10269 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10270 * config/alpha/alpha-protos.h: Update.
10271 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10272 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10273 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10274 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10275 (*mulsi_se, mulvsi3): Likewise.
10276 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10277 (*divmodsi_internal, call, call_value, realign): Likewise.
10278 (moddi3, umoddi3): Likewise; remove duplicate expander.
10279 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10280 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10281 (*movdi_nofix): Remove r/U alternative.
10282 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10283 * config/alpha/constraints.md ("U"): Remove.
10284 * config/alpha/predicates.md (call_operand"): Don't test
10285 TARGET_ABI_UNICOSMK.
10287 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10289 * target.def (handle_option): Take gcc_options and
10290 cl_decoded_option pointers and location_t.
10291 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10292 * doc/tm.texi: Regenerate.
10293 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10294 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10295 * lto-opts.c (lto_reissue_options): Generate option structure for
10296 targetm.handle_option call.
10297 * opts.c (target_handle_option): Update call to
10298 targetm.handle_option. Remove assertions about values now passed
10300 * targhooks.c (default_target_handle_option): New.
10301 * targhooks.h (default_target_handle_option): Declare.
10302 * config/alpha/alpha.c: Include opts.h.
10303 (alpha_handle_option): Update to new hook interface.
10304 * config/arm/arm.c: Include opts.h.
10305 (arm_handle_option): Update to new hook interface.
10306 * config/arm/t-arm (arm.o): Update dependencies.
10307 * config/bfin/bfin.c: Include opts.h.
10308 (bfin_handle_option): Update to new hook interface.
10309 * config/cris/cris.c: Include opts.h.
10310 (cris_handle_option): Update to new hook interface.
10311 * config/frv/frv.c: Include opts.h.
10312 (frv_handle_option): Update to new hook interface.
10313 * config/i386/i386.c: Include opts.h.
10314 (ix86_handle_option): Update to new hook interface.
10315 (ix86_valid_target_attribute_inner_p): Generate option structure
10316 for call to ix86_handle_option.
10317 * config/i386/t-i386 (i386.o): Update dependencies.
10318 * config/ia64/ia64.c: Include opts.h.
10319 (ia64_handle_option): Update to new hook interface.
10320 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10321 * config/iq2000/iq2000.c: Include opts.h.
10322 (iq2000_handle_option): Update to new hook interface.
10323 * config/m32c/m32c.c: Include opts.h.
10324 (m32c_handle_option): Update to new hook interface.
10325 * config/m32r/m32r.c: Include opts.h.
10326 (m32r_handle_option): Update to new hook interface.
10327 * config/m68k/m68k.c: Include opts.h.
10328 (m68k_handle_option): Update to new hook interface.
10329 * config/mep/mep.c: Include opts.h.
10330 (mep_handle_option): Update to new hook interface.
10331 * config/microblaze/microblaze.c: Include opts.h.
10332 (microblaze_handle_option): Update to new hook interface.
10333 * config/mips/mips.c: Include opts.h.
10334 (mips_handle_option): Update to new hook interface.
10335 * config/mn10300/mn10300.c: Include opts.h.
10336 (mn10300_handle_option): Update to new hook interface.
10337 * config/pa/pa.c: Include opts.h.
10338 (pa_handle_option): Update to new hook interface.
10339 * config/pdp11/pdp11.c: Include opts.h.
10340 (pdp11_handle_option): Update to new hook interface.
10341 * config/rs6000/rs6000.c: Include opts.h.
10342 (rs6000_handle_option): Update to new hook interface.
10343 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10344 * config/rx/rx.c: Include opts.h.
10345 (rx_handle_option): Update to new hook interface.
10346 * config/s390/s390.c: Include opts.h.
10347 (s390_handle_option): Update to new hook interface.
10348 * config/score/score.c: Include opts.h.
10349 (score_handle_option): Update to new hook interface.
10350 * config/sh/sh.c: Include opts.h.
10351 (sh_handle_option): Update to new hook interface.
10352 * config/sparc/sparc.c: Include opts.h.
10353 (sparc_handle_option): Update to new hook interface.
10354 * config/v850/v850.c: Include opts.h.
10355 (v850_handle_option): Update to new hook interface.
10357 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10359 * gcc.c (driver_unknown_option_callback): Only permit and save
10360 unknown -Wno- options.
10361 (driver_wrong_lang_callback): Save options directly instead of via
10362 driver_unknown_option_callback.
10364 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10366 * combine.c (simplify_set): Try harder to find the best CC mode when
10367 simplifying a nested COMPARE on the RHS.
10369 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10371 * config/alpha/gnu.h: Remove.
10372 * config/arc: Remove directory.
10373 * config/arm/netbsd.h: Remove.
10374 * config/arm/t-pe: Remove.
10375 * config/crx: Remove directory.
10376 * config/i386/netbsd.h: Remove.
10377 * config/m68hc11: Remove directory.
10378 * config/m68k/uclinux-oldabi.h: Remove.
10379 * config/mcore/mcore-pe.h: Remove.
10380 * config/mcore/t-mcore-pe: Remove.
10381 * config/netbsd-aout.h: Remove.
10382 * config/rs6000/gnu.h: Remove.
10383 * config/sh/sh-symbian.h: Remove.
10384 * config/sh/symbian-base.c: Remove.
10385 * config/sh/symbian-c.c: Remove.
10386 * config/sh/symbian-cxx.c: Remove.
10387 * config/sh/symbian-post.h: Remove.
10388 * config/sh/symbian-pre.h: Remove.
10389 * config/sh/t-symbian: Remove.
10390 * config/svr3.h: Remove.
10391 * config/vax/netbsd.h: Remove.
10392 * config.build: Don't handle i[34567]86-*-pe.
10393 * config.gcc: Remove handling of deprecations for most deprecated
10395 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10396 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10397 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10398 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10399 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10400 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10402 * config.host: Don't handle i[34567]86-*-pe.
10403 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10404 (ASM_SPEC32): Don't handle -mcall-gnu.
10405 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10407 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10408 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10409 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10410 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10411 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10412 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10413 conditional on SYMBIAN.
10414 * configure.ac: Don't handle powerpc*-*-gnu*.
10415 * configure: Regenerate.
10416 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10417 * doc/install-old.texi (m6811, m6812): Don't mention.
10418 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10419 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10420 (m68k-uclinuxoldabi): Don't mention.
10421 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10423 (-mcall-gnu): Remove.
10424 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10425 families): Remove constraint documentation.
10427 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10429 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10430 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10431 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10433 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10436 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10437 vector when peeking at the next token for vector, don't expand the
10440 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10442 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10443 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10444 * config/avr/avr.c (init_cumulative_args)
10445 (avr_function_arg_advance): Use it.
10446 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10448 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10449 (avr_function_ok_for_sibcall): ...this new function.
10450 (avr_lookup_function_attribute1): New static Function.
10451 (avr_naked_function_p, interrupt_function_p)
10452 (signal_function_p, avr_OS_task_function_p)
10453 (avr_OS_main_function_p): Use it.
10454 * config/avr/avr.md ("sibcall", "sibcall_value")
10455 ("sibcall_epilogue"): New expander.
10456 ("*call_insn", "*call_value_insn"): New insn.
10457 ("call_insn", "call_value_insn"): Remove
10458 ("call", "call_value", "epilogue"): Change expander to handle
10461 2011-03-21 Nick Clifton <nickc@redhat.com>
10463 * doc/invoke.texi (Overall Options): Move closing brace to end of
10465 (Optimization Options): Add missing @gol.
10466 (Directory Options): Likewise.
10467 (i386 and x86-64 Options): Likewise.
10468 (RS6000 and PowerPC Options): Likewise.
10469 (i386 and x86-64 Windows Options): Likewise.
10470 (V850 Options): Add text missing from descriptions.
10472 2011-03-22 Richard Henderson <rth@redhat.com>
10474 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10475 (avr_incoming_return_addr_rtx): New.
10476 (emit_push_byte): New.
10477 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10478 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10479 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10480 (emit_pop_byte): New.
10481 (expand_epilogue): Use it. Pop frame pointer by bytes.
10482 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10483 (INCOMING_RETURN_ADDR_RTX): New.
10484 (INCOMING_FRAME_SP_OFFSET): New.
10485 (ARG_POINTER_CFA_OFFSET): New.
10486 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10487 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10490 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10492 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10494 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10495 (FUNCTION_ARG_ADVANCE): Likewise.
10496 * tm.texi.in: Change references to them to hook references.
10497 * tm.texi: Regenerate.
10498 * targhooks.c (default_function_arg): Eliminate check for target
10500 (default_function_incoming_arg): Likewise.
10501 (default_function_arg_advance): Likewise.
10502 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10503 (function_arg_advance): Likewise.
10504 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10506 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10508 * tree.c (build_call_1): New function.
10509 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10511 2011-03-22 Richard Guenther <rguenther@suse.de>
10513 PR tree-optimization/48228
10514 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10515 for single-arg PHIs.
10517 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10519 PR rtl-optimization/48143
10520 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10521 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10522 sse2_cvtps2pd): Likewise.
10524 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10526 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10528 2011-03-22 Richard Guenther <rguenther@suse.de>
10530 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10531 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10532 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10533 and REALIGN_LOAD_EXPR.
10534 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10535 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10536 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10537 DOT_PROD_EXPR case ...
10538 (expand_expr_real_2): ... here.
10539 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10540 and REALIGN_LOAD_EXPR.
10541 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10542 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10543 (vect_create_epilog_for_reduction): Likewise.
10544 (vectorizable_reduction): Likewise.
10545 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10546 * tree-vect-stmts.c (vectorizable_load): Likewise.
10548 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10550 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10552 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10554 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10555 handling for PLTOFF/GOTOFF.
10557 2011-03-22 Nick Clifton <nickc@redhat.com>
10559 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10560 trailing backslash from the end of the macro definition.
10562 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10564 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10567 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10569 * expr.h (prepare_operand): Move to...
10570 * optabs.h (prepare_operand): ...here and change the insn code
10571 parameter from "int" to "enum insn_code".
10572 (insn_operand_matches): Declare.
10573 * expr.c (init_expr_target): Use insn_operand_matches.
10574 (compress_float_constant): Likewise.
10575 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10576 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10577 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10578 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10580 (gen_cond_trap): Likewise.
10581 (prepare_operand): Likewise. Change icode to an insn_code.
10582 (insn_operand_matches): New function.
10583 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10584 * reload1.c (gen_reload): Likewise.
10585 * targhooks.c (default_secondary_reload): Likewise.
10587 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10589 * config/alpha/alpha.md (unspec): New define_c_enum.
10592 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10595 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10596 between a call and its CALL_ARG_LOCATION note.
10598 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10600 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10602 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10606 * c-common.c (shorten_compare): If primopN is first sign-extended
10607 to opN and then zero-extended to result type, set primopN to opN.
10609 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10611 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10612 for barrier handlers.
10614 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10616 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10617 UNSPEC constants to be in the unspec enumeration, and redefine
10618 all UNSPECV constants to be in the unspecv enumeration, so that
10619 dumps print which unspec/unspec_volatile this is.
10620 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10621 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10622 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10623 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10624 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10626 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10627 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10628 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10629 * config/rs6000/sync.md (isync, lwsync): Ditto.
10631 2011-03-21 Richard Guenther <rguenther@suse.de>
10633 * params.def (lto-min-partition): Fix typo.
10635 2011-03-21 Richard Guenther <rguenther@suse.de>
10638 * c-decl.c (grokdeclarator): Drop to the main variant only
10639 for array types. Drop flag_gen_aux_info check.
10641 2011-03-21 Richard Guenther <rguenther@suse.de>
10643 PR translation/47911
10644 * params.def (lto-partitions): Fix typo.
10645 (lto-min-partition): Fix wording.
10647 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10649 * config/rs6000/t-freebsd: Remove duplication from file.
10651 2011-03-21 Richard Guenther <rguenther@suse.de>
10653 PR middle-end/47661
10654 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10656 2011-03-21 Richard Guenther <rguenther@suse.de>
10659 * params.def (lto-partitions): Require at least 1 partition.
10661 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10663 * gthr-solaris.h: Remove.
10664 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10665 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10666 (LIB_SPEC): Likewise.
10667 * config/sol2.opt (threads): Remove.
10668 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10669 (sparc*-*-solaris2*): Likewise.
10670 * configure.ac (enable_threads): Enable solaris support.
10671 * configure: Regenerate.
10672 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10673 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10676 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10678 * config.gcc: Obsolete *-*-solaris2.8*.
10679 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10681 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10684 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10685 reference. Solaris 8 perl works.
10687 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10690 * doc/install.texi (Prerequisites): Move jar etc. up.
10691 Explain support library version requirements.
10693 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10696 * doc/install.texi (Prerequisites): Move Perl to build
10697 requirements. Always necessary on Solaris 2 with Sun ld.
10699 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10701 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10703 (Specific, i?86-*-solaris2.[89]): Likewise.
10704 (Specific, i?86-*-solaris2.10): Likewise.
10705 (Specific, mips-sgi-irix6): Likewise.
10706 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10707 Update for binutils 2.21.
10709 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10711 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10712 Allow -fuse-linker-plugin for non-default plugin linker.
10713 * configure: Regenerate.
10715 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10718 * gengtype.c (files_rules): Added rule for cp/parser.h.
10720 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10723 * config/s390/s390.c (s390_delegitimize_address): Don't call
10724 lowpart_subreg if orig_x has BLKmode.
10726 2011-03-21 Kai Tietz <ktietz@redhat.com>
10729 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10730 * tree.h (attribute_spec): Add new member affects_type_identity.
10731 * attribs.c (empty_attribute_table): Adjust attribute_spec
10733 * config/alpha/alpha.c: Likewise.
10734 * config/arc/arc.c: Likewise.
10735 * config/arm/arm.c: Likewise.
10736 * config/avr/avr.c: Likewise.
10737 * config/bfin/bfin.c: Likewise.
10738 * config/crx/crx.c: Likewise.
10739 * config/darwin.h: Likewise.
10740 * config/h8300/h8300.c: Likewise.
10741 * config/i386/cygming.h: Likewise.
10742 * config/i386/i386.c: Likewise.
10743 * config/ia64/ia64.c: Likewise.
10744 * config/m32c/m32c.c: Likewise.
10745 * config/m32r/m32r.c: Likewise.
10746 * config/m68hc11/m68hc11.c: Likewise.
10747 * config/m68k/m68k.c: Likewise.
10748 * config/mcore/mcore.c: Likewise.
10749 * config/mep/mep.c: Likewise.
10750 * config/microblaze/microblaze.c: Likewise.
10751 * config/mips/mips.c: Likewise.
10752 * config/rs6000/rs6000.c: Likewise.
10753 * config/rx/rx.c: Likewise.
10754 * config/sh/sh.c: Likewise.
10755 * config/sol2.h: Likewise.
10756 * config/sparc/sparc.c: Likewise.
10757 * config/spu/spu.c: Likewise.
10758 * config/stormy16/stormy16.c: Likewise.
10759 * config/v850/v850.c: Likewise.
10761 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10763 * simplify-rtx.c (simplify_binary_operation_1): Handle
10764 (xor (and A B) C) case when B and C are both constants.
10766 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10768 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10770 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10773 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10775 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10777 PR rtl-optimization/48156
10778 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10779 assume df and df_lr are not NULL.
10781 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10784 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10785 between a call and its CALL_ARG_LOCATION note.
10787 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10790 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10791 between a call and its corresponding CALL_ARG_LOCATION note.
10793 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10795 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10796 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10797 * haifa-sched.c (setup_ref_regs): Ditto.
10798 * caller-save.c (add_used_regs_1): Ditto.
10799 * dse.c (look_for_hardregs): Ditto.
10800 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10801 * sched-rgn.c (check_live_1): Ditto.
10803 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10805 * c-decl.c (diagnose_mismatched_decls): Give an error for
10806 redefining a typedef with variably modified type.
10808 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10810 * c-decl.c (grokfield): Don't allow typedefs for structures or
10811 unions with no tag by default.
10812 * doc/extend.texi (Unnamed Fields): Update.
10814 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10816 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10817 Rewrite using indirect functions.
10818 (lwp_slwpcb): Ditto.
10819 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10820 (avx_vinsertf128<mode>): Ditto.
10822 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10824 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10827 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10829 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10830 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10832 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10834 PR rtl-optimization/48170
10835 * gcse.c (hoist_code): Remove bogus asserts.
10837 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10839 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10840 computation for prologue/epilogue.
10842 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10844 * Makefile.in (check-consistency): Remove.
10846 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10849 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10850 arange_table_in_use is 0, but either text_section_used or
10851 cold_text_section_used is true. Don't call it if
10852 !info_section_emitted.
10854 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10856 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10857 FUNCTION_VALUE_REGNO_P): Remove.
10858 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10860 * config/avr/avr.c (avr_ret_register): Make static inline.
10861 (avr_function_value_regno_p): New function.
10862 (avr_libcall_value): Make static. Add 'func' argument.
10863 (avr_function_value): Make static. Rename 'func' argument to
10864 'fn_decl_or_type', forward it to avr_libcall_value. Call
10865 avr_ret_register function instead of RET_REGISTER macro.
10866 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10868 2011-03-18 Jason Merrill <jason@redhat.com>
10871 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10873 2011-03-18 Richard Guenther <rguenther@suse.de>
10875 * doc/install.texi (--enable-gold): Remove.
10876 (--with-plugin-ld): Document.
10877 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10879 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10881 PR middle-end/47790
10882 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10883 again after expansion changes.
10885 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10887 * combine.c (try_combine): Do simplification only call of
10888 subst() on i2 even when i1 is present. Update comments.
10890 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10892 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10893 and UNSPEC_PCREL_SYMOFF.
10895 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10897 * config/s390/s390.md: Use define_c_enum for the unspec constant
10900 2011-03-18 Richard Henderson <rth@redhat.com>
10901 Jakub Jelinek <jakub@redhat.com>
10904 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10905 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10907 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10909 PR middle-end/47725
10910 * combine.c (cant_combine_insn_p): Don't check zero/sign
10911 extended hard registers.
10913 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10915 PR middle-end/47725
10916 * combine.c (cant_combine_insn_p): Check zero/sign extended
10919 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10921 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10922 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10923 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10924 Change return type to bool.
10925 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10927 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10930 * var-tracking.c (prepare_call_arguments): If CALL target
10931 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10932 pc instead of looking it up using cselib_lookup and use
10933 Pmode for it if x has VOIDmode.
10934 * dwarf2out.c (gen_subprogram_die): If also both first and
10935 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10938 * function.c (assign_parms): For data.passed_pointer parms
10939 use MEM of data.entry_parm instead of data.entry_parm itself
10940 as DECL_INCOMING_RTL.
10941 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10942 also when passed and declared mode is the same, DECL_RTL
10943 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10946 2011-03-16 Jeff Law <law@redhat.com>
10948 PR rtl-optimization/37273
10949 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10950 handle them like argument loads from stack slots. Do not double
10951 count memory for memory constants and argument loads from stack slots.
10953 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10956 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10958 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10961 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10963 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10966 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10968 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10969 Clear call_arg_locations and call_arg_loc_last always.
10971 PR middle-end/48152
10972 * var-tracking.c (prepare_call_arguments): If argument needs to be
10973 passed by reference, adjust argtype and mode.
10975 2011-03-17 Richard Guenther <rguenther@suse.de>
10977 PR middle-end/48134
10978 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10979 a value make sure to fold the statement.
10981 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10984 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10985 return condition with !cfun->calls_alloca.
10987 2011-03-17 Richard Guenther <rguenther@suse.de>
10990 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10991 origin for decls in other ltrans units.
10992 (input_varpool_node): Likewise.
10994 2011-03-17 Richard Guenther <rguenther@suse.de>
10996 PR middle-end/48165
10997 * tree-object-size.c (compute_object_offset): Properly return
10998 the offset operand of MEM_REFs as sizetype.
11000 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11002 PR rtl-optimization/48141
11003 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11004 * dse.c: Include params.h.
11005 (active_local_stores_len): New variable.
11006 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11008 (record_store, check_mem_read_rtx): Decrease it when removing
11010 (scan_insn): Likewise. Increase it when adding to chain, if it
11011 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11012 set active_local_stores to NULL before the addition.
11013 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11015 PR rtl-optimization/48141
11016 * dse.c (record_store): If no positions are needed in an insn
11017 that cannot be deleted, at least unchain it from active_local_stores.
11019 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11022 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11023 (lookup_type_die_strip_naming_typedef): ... here.
11024 (get_context_die): Use it.
11025 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11026 the anonymous struct named by the naming typedef.
11028 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11031 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11032 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11034 2011-03-16 Jeff Law <law@redhat.com>
11036 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11037 check for operands of conditional. Allow type to be a pointer.
11039 2011-03-16 Richard Guenther <rguenther@suse.de>
11041 PR tree-optimization/48149
11042 * fold-const.c (fold_binary_loc): Fold
11043 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11045 2011-03-16 Richard Guenther <rguenther@suse.de>
11047 PR tree-optimization/26134
11048 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11049 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11050 (non_rewritable_mem_ref_base): Handle complex type component
11051 accesses, constrain offsets for vector and complex extracts
11054 2011-03-16 Richard Guenther <rguenther@suse.de>
11056 PR tree-optimization/48146
11057 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11058 operands avoiding the need for renaming.
11060 2011-03-16 Richard Guenther <rguenther@suse.de>
11062 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11063 constant folding. Move MEM_REF canonicalization first.
11064 Rely on fold_const_aggregate_ref for initializer folding.
11065 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11067 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11069 PR middle-end/48136
11070 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11071 arg0/arg1 or their arguments are always fold converted to matching
11074 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11077 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11080 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11081 Handle in-tree gold.
11082 (ld_vers): Extract binutils version for gold.
11083 (gcc_cv_ld_hidden): Handle gold here.
11084 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11085 * configure: Regenerate.
11086 * config.in: Regenerate.
11087 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11088 -fuse-linker-plugin otherwise.
11089 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11090 (LINK_COMMAND_SPEC): Use it.
11091 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11093 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11095 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11096 * calls.c: Remove debug.h include.
11097 (emit_call_1): Don't call virtual_call_token debug hook.
11098 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11099 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11100 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11101 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11102 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11103 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11104 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11105 dwarf2out_virtual_call): Remove.
11106 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11107 copy_call_info and virtual_call hooks.
11108 (dwarf2out_init): Don't initialize vcall_insn_table,
11109 debug_dcall_section and debug_vcall_section.
11110 (prune_unused_types): Don't mark nodes from dcall_table.
11111 (dwarf2out_finish): Don't output dcall or vcall tables.
11112 * final.c (final_scan_insn): Don't call direct_call or
11113 virtual_call debug hooks.
11114 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11115 virtual_call_token, copy_call_info and virtual_call hooks.
11116 (debug_nothing_uid): Remove prototype.
11117 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11118 copy_call_info and virtual_call hooks.
11119 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11120 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11121 * debug.c (do_nothing_debug_hooks): Likewise.
11122 (debug_nothing_uid): Remove.
11123 * doc/invoke.texi (-fenable-icf-debug): Remove.
11124 * common.opt (-fenable-icf-debug): Likewise.
11126 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11127 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11128 call's MEM. Handle functions returning aggregate through a hidden
11129 first pointer. For virtual calls add clobbered pc to call arguments
11131 * dwarf2out.c (gen_subprogram_die): Emit
11132 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11136 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11137 * rtl.h (ENTRY_VALUE_EXP): Define.
11138 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11139 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11140 * print-rtl.c (print_rtx): Likewise.
11141 * gengtype.c (adjust_field_rtx_def): Likewise.
11142 * var-tracking.c (vt_add_function_parameter): Adjust
11143 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11144 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11145 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11146 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11147 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11149 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11150 Call var_location debug hook even on CALL_INSNs.
11151 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11152 * rtl.def (ENTRY_VALUE): New.
11153 * dwarf2out.c: Include cfglayout.h.
11154 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11155 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11156 (struct call_arg_loc_node): New type.
11157 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11158 tail_call_site_count): New variables.
11159 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11160 DW_TAG_GNU_call_site_parameter.
11161 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11162 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11163 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11164 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11165 and DW_AT_GNU_all_source_call_sites.
11166 (mem_loc_descriptor): Handle ENTRY_VALUE.
11167 (add_src_coords_attributes): Don't add enything if
11168 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11169 (dwarf2out_abstract_function): Save and clear call_arg_location,
11170 call_site_count and tail_call_site_count around dwarf2out_decl call.
11171 (gen_call_site_die): New function.
11172 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11173 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11174 (dwarf2out_function_decl): Clear call_arg_locations,
11175 call_arg_loc_last, set call_site_count and tail_call_site_count
11176 to -1 and free block_map.
11177 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11178 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11179 followed by any real instructions.
11180 (dwarf2out_begin_function): Set call_site_count and
11181 tail_call_site_count to 0.
11182 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11183 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11184 attempt to force a DIE for it and worst case remove the attribute.
11185 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11186 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11188 * var-tracking.c: Include tm_p.h.
11189 (vt_stack_adjustments): For calls call note_register_arguments.
11190 (argument_reg_set): New variable.
11191 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11192 ensure the VALUE is resolved.
11193 (call_arguments): New variable.
11194 (prepare_call_arguments): New function.
11195 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11196 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11197 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11198 always use the best expression.
11199 (vt_expand_loc): Add ignore_cur_loc argument.
11200 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11201 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11202 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11203 note for all calls.
11204 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11205 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11206 argument. Don't call cselib_preserve_only_values and
11207 cselib_reset_table.
11208 (note_register_arguments): New function.
11209 (vt_initialize): Compute argument_reg_set. Call
11210 vt_add_function_parameters before processing basic blocks instead of
11211 afterwards. For calls call prepare_call_arguments before calling
11212 cselib_process_insn.
11213 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11214 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11215 (var-tracking.o): Depend on $(TM_P_H).
11216 * cfglayout.h (insn_scope): New prototype.
11217 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11218 * cfglayout.c (insn_scope): No longer static.
11219 * insn-notes.def (CALL_ARG_LOCATION): New.
11220 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11221 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11222 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11223 nothing for DECL_EXTERNAL BLOCK_VARS.
11225 2011-03-16 Alan Modra <amodra@gmail.com>
11228 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11229 create invalid offset address for vsx splat insn.
11230 * config/rs6000/predicates.md (splat_input_operand): New.
11231 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11233 2011-03-15 Xinliang David Li <davidxl@google.com>
11236 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11237 (normalize_preds): New function.
11238 (is_use_properly_guarded): Normalize def predicates.
11240 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11243 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11244 in the output template.
11246 2011-03-15 Richard Guenther <rguenther@suse.de>
11248 PR middle-end/47650
11249 * tree-pretty-print.c (dump_function_declaration): Properly
11250 dump unprototyped and varargs function types.
11252 2011-03-15 Richard Guenther <rguenther@suse.de>
11254 PR tree-optimization/13954
11255 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11258 2011-03-15 Richard Guenther <rguenther@suse.de>
11260 PR tree-optimization/48037
11261 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11262 selects into BIT_FIELD_REFs.
11263 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11266 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11268 PR tree-optimization/48129
11269 * builtins.c (fold_builtin_snprintf): Convert to type of
11270 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11271 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11273 2011-03-15 Richard Guenther <rguenther@suse.de>
11275 PR tree-optimization/41490
11276 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11277 value but with VUSE.
11278 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11280 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11281 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11282 * tree-tailcall.c (find_tail_calls): Ignore returns.
11284 2011-03-15 Richard Guenther <rguenther@suse.de>
11286 PR middle-end/48031
11287 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11288 or variable-indexed array accesses when in gimple form.
11290 2011-03-15 Richard Guenther <rguenther@suse.de>
11292 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11294 2011-03-15 Alan Modra <amodra@gmail.com>
11297 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11298 presume symbol_refs without a symbol_ref_decl are suitably
11299 aligned, nor other trees we may see here. Handle anchor symbols.
11300 (legitimate_constant_pool_address_p): Comment. Add mode param.
11301 Check cmodel=medium addresses. Adjust all calls.
11302 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11303 creating cmodel=medium optimized access to locals.
11304 * config/rs6000/constraints.md (R): Pass QImode to
11305 legitimate_constant_pool_address_p.
11306 * config/rs6000/predicates.md (input_operand): Pass mode to
11307 legitimate_constant_pool_address_p.
11308 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11311 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11314 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11315 64-bit constants being loaded into registers other than GPRs such
11316 as loading 0 into a VSX register.
11318 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11320 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11322 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11324 PR middle-end/47917
11325 * builtins.c (fold_builtin_snprintf): New function.
11326 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11327 (fold_builtin_4): Likewise.
11329 PR middle-end/38878
11330 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11331 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11332 and C - X == X also strip nops from +/-/p+ operand.
11333 When optimizing -X == C, fold C to arg0's type.
11336 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11337 emit it as add_AT_int instead of add_AT_unsigned.
11339 2011-03-14 Tom Tromey <tromey@redhat.com>
11341 * unwind-dw2.c: Include sys/sdt.h if it exists.
11342 (_Unwind_DebugHook): Use STAP_PROBE2.
11343 * config.in, configure: Rebuild.
11344 * configure.ac: Check for sys/sdt.h.
11346 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11348 * config/i386/i386.md (ROUND_FLOOR): New constant.
11349 (ROUND_CEIL): Ditto.
11350 (ROUND_TRUNC): Ditto.
11351 (ROUND_MXCSR): Ditto.
11352 (ROUND_NO_EXC): Ditto.
11353 (rint<mode>2): Use new defines instead of numerical constants.
11354 (floor<mode>2): Ditto.
11355 (ceil<mode>2): Ditto.
11356 (btrunc<mode>2): Ditto.
11357 * config/i386/i386-builtin-types.def: Define ROUND function type
11359 * config/i386/i386.c (enum ix86_builtins): Add
11360 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11361 (struct builtin_description): Add
11362 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11363 (ix86_expand_sse_round): New static function.
11364 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11366 (ix86_builtin_vectorized_function): Handle
11367 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11369 2011-03-14 Tom Tromey <tromey@redhat.com>
11371 * c-parser.c (c_parser_asm_string_literal): Clear
11372 warn_overlength_strings.
11374 2011-03-14 Tom Tromey <tromey@redhat.com>
11376 * c-parser.c (disable_extension_diagnostics): Save
11377 warn_overlength_strings.
11378 (restore_extension_diagnostics): Restore warn_overlength_strings.
11380 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11382 * BASE-VER: Change to 4.7.0.
11384 2011-03-14 Richard Guenther <rguenther@suse.de>
11386 PR middle-end/48098
11387 * tree.c (build_vector_from_val): Adjust assert to requirements
11390 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11393 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11395 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11397 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11398 terms of target_flags_explicit. Adjust copyright year.
11400 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11401 * config/rs6000/t-freebsd: New file. Add override for
11404 2011-03-13 Chris Demetriou <cgd@google.com>
11406 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11407 (-fno-diagnostics-show-option): this, to reflect current default.
11408 (-Werror=): Update text about -fno-diagnostics-show-option.
11410 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11413 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11414 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11415 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11416 mode is not V2DImode or V2DFmode.
11417 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11418 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11419 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11421 (movdi_internal64): Likewise.
11423 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11425 PR tree-optimization/47127
11426 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11428 (set_cloog_options): Same.
11429 (scop_to_clast): Same.
11430 (print_clast_stmt): Do not call cloog_state_malloc and
11432 (print_generated_program): Same.
11434 * graphite-clast-to-gimple.h (cloog_state): Declared.
11435 (scop_to_clast): Adjust declaration.
11436 * graphite.c (cloog_state): Defined here.
11437 (graphite_initialize): Call cloog_state_malloc.
11438 (graphite_finalize): Call cloog_state_free.
11440 2011-03-11 Jason Merrill <jason@redhat.com>
11442 * attribs.c (lookup_attribute_spec): Take const_tree.
11445 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11447 * config/sparc/sparc.c (sparc_option_override): Use
11448 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11450 2011-03-11 Richard Guenther <rguenther@suse.de>
11452 PR tree-optimization/48067
11453 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11454 multiplication result will be only used once on the target
11457 2011-03-11 Richard Guenther <rguenther@suse.de>
11459 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11461 2011-03-11 Richard Guenther <rguenther@suse.de>
11464 * tree.c (find_decls_types_r): Do not walk types only reachable
11465 from IDENTIFIER_NODEs.
11467 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11469 PR middle-end/48044
11470 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11471 all vnode->force_output nodes as needed.
11473 2011-03-11 Jason Merrill <jason@redhat.com>
11476 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11477 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11479 2011-03-11 Martin Jambor <mjambor@suse.cz>
11481 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11484 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11486 PR tree-optimization/48063
11487 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11488 inline functions called once if !tree_can_inline_p (node->callers).
11490 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11492 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11494 * config/score/score3.c: Delete.
11495 * config/score/score3.h: Delete.
11496 * config/score/mul-div.S: Delete.
11497 * config/score/sfp-machine.h: Add new file.
11498 * config/score/constraints.md: Add new file.
11499 * config/score/t-score-softfp: Add new file.
11500 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11501 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11502 (score7_extra_constraint): Delete.
11503 (score7_option_override): Remove unused code.
11504 * config/score/score.c: Remove score3 and score5 define and code.
11505 * config/score/score.h: Remove score3 and score5 define and code.
11506 * config/score/score.md: Remove score3 template and unusual insn.
11507 * config/score/score.opt: Remove score3 and score5 options.
11509 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11511 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11512 when _HPUX_SOURCE is defined.
11513 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11515 2011-03-10 Jason Merrill <jason@redhat.com>
11518 * stor-layout.c (layout_type): Don't set structural equality
11519 on arrays of incomplete type.
11520 * tree.c (type_hash_eq): Handle comparing them properly.
11522 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11525 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11526 result mode matches original rtl mode.
11528 2011-03-10 Nick Clifton <nickc@redhat.com>
11530 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11531 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11533 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11535 PR rtl-optimization/47866
11536 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11537 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11538 if target wasn't scalar.
11539 * function.c (assign_stack_temp_for_type): Assert that neither
11540 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11541 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11543 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11545 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11547 * config/s390/s390-protos.h (s390_label_align): New prototype.
11548 * config/s390/s390.c (s390_label_align): New function.
11549 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11551 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11554 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11555 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11556 (output_vec_const_move): Ditto.
11558 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11560 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11561 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11562 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11563 Change 'rclass' argument and result type to reg_class_t.
11564 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11566 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11568 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11569 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11570 (TARGET_MEMORY_MOVE_COST): Define.
11571 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11573 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11576 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11579 PR tree-optimization/48022
11580 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11583 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11586 * var-tracking.c (find_use_val): Return NULL for
11587 cui->sets && cui->store_p BLKmode MEMs.
11589 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11591 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11593 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11594 xstormy16_print_operand_address): Remove.
11595 * config/stormy16/stormy16.c (xstormy16_print_operand,
11596 xstormy16_print_operand_address): Make static.
11597 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11599 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11602 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11603 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11606 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11609 * cfgloopmanip.c (fix_bb_placements): Return immediately
11610 if FROM is BASE_LOOP's header.
11612 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11614 * gimplify.c (gimplify_function_tree): Fix building calls
11615 to __builtin_return_address.
11617 2011-03-07 Alan Modra <amodra@gmail.com>
11619 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11620 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11621 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11622 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11624 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11625 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11626 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11627 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11628 * config/rs6000/rs6000.c
11629 (rs6000_elf_end_indicate_exec_stack): Rename to..
11630 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11631 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11632 (rs6000_file_start): ..here.
11633 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11634 file scope variables.
11635 (call_ABI_of_interest): New function.
11636 (init_cumulative_args): Set above vars when function return value
11637 is a float, vector, or small struct.
11638 (rs6000_function_arg_advance_1): Likewise for function args.
11639 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11640 references float args.
11642 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11644 * doc/cfg.texi: Remove "See" before @ref.
11645 * doc/invoke.texi: Likewise.
11647 2011-03-05 Jason Merrill <jason@redhat.com>
11649 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11651 2011-03-05 Anthony Green <green@moxielogic.com>
11653 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11655 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11657 PR rtl-optimization/47899
11658 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11659 to flow_loop_nested_p when moving the loop upward.
11661 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11664 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11666 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11668 PR tree-optimization/47967
11669 * ipa-cp.c (build_const_val): Return NULL instead of creating
11670 VIEW_CONVERT_EXPR for mismatching sizes.
11671 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11672 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11673 give up on versioning.
11675 2011-03-05 Alan Modra <amodra@gmail.com>
11678 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11679 full cmodel medium/large lo_sum + high addresses.
11681 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11683 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11684 pool references in UNSPEC_LTREL_OFFSET.
11686 2011-03-04 Jan Hubicka <jh@suse.cz>
11689 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11690 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11691 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11693 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11694 cgraph_add_thunk): Add node pointers.
11695 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11696 associated to right node.
11697 (input_node): Update use of cgraph_same_body_alias
11698 and cgraph_add_thunk.
11700 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11702 * config/i386/i386.opt (mprefer-avx128): New flag.
11703 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11704 modes when the flag -mprefer-avx128 is on.
11706 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11708 * dwarf2out.c (compare_loc_operands): Fix address handling.
11710 2011-03-04 Alan Modra <amodra@gmail.com>
11712 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11714 2011-03-04 Richard Guenther <rguenther@suse.de>
11716 PR middle-end/47968
11717 * expmed.c (extract_bit_field_1): Prefer vector modes that
11718 vec_extract patterns can handle.
11720 2011-03-04 Richard Guenther <rguenther@suse.de>
11722 PR middle-end/47975
11723 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11725 2011-03-04 Richard Henderson <rth@redhat.com>
11727 * explow.c (emit_stack_save): Remove 'after' parameter.
11728 (emit_stack_restore): Likewise.
11729 * expr.h: Update to match.
11730 * builtins.c, calls.c, stmt.c: Likewise.
11731 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11732 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11733 * function.c (expand_function_end): Insert the emit_stack_save
11734 sequence before parm_birth_insn instead of after.
11736 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11738 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11739 (ssse3_pmaddubsw128): Ditto.
11740 (ssse3_pmaddubsw): Ditto.
11742 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11744 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11746 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11749 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11750 on TYPE_SIZE_UNIT if it is a DECL.
11753 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11754 first operand is not is_gimple_mem_ref_addr, try to fold it.
11755 If the operand still isn't is_gimple_mem_ref_addr, clear
11758 2011-03-03 Richard Guenther <rguenther@suse.de>
11760 PR middle-end/47283
11761 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11763 (refs_may_alias_p_1): For release branches return true if
11764 we are confused by our input.
11766 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11768 * config/s390/s390.c (s390_function_value): Rename to ...
11769 (s390_function_and_libcall_value): ... this.
11770 (s390_function_value): New function.
11771 (s390_libcall_value): New function.
11772 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11773 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11774 target macro definitions.
11775 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11777 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11779 * config/i386/freebsd64.h (CC1_SPEC): Define.
11780 * config/i386/linux64.h (CC1_SPEC): Define.
11781 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11783 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11785 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11787 * config/stormy16/stormy16.c: Include reload.h.
11788 (xstormy16_memory_move_cost): New function.
11789 (TARGET_MEMORY_MOVE_COST): Define.
11791 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11793 PR rtl-optimization/47925
11794 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11795 with side effects. Remove the more-specific check for volatile asms.
11797 2011-03-02 Alan Modra <amodra@gmail.com>
11800 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11801 toc relative addresses for valid offsets.
11803 2011-03-01 Richard Guenther <rguenther@suse.de>
11805 PR tree-optimization/47890
11806 * tree-vect-loop.c (get_initial_def_for_induction): Set
11807 related stmt properly.
11809 2011-03-01 Richard Guenther <rguenther@suse.de>
11812 * lto-streamer.c (lto_record_common_node): Also register
11813 the canonical type.
11815 2011-03-01 Richard Guenther <rguenther@suse.de>
11818 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11819 Do not stream DECL_ABSTRACT_ORIGIN.
11820 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11821 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11822 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11823 Do not stream DECL_ABSTRACT_ORIGIN.
11824 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11825 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11827 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11829 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11830 FUNCTION_VALUE_REGNO_P): Remove.
11831 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11832 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11833 Add 'outgoing' argument.
11834 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11836 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11837 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11839 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11842 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11843 (lookup_filename): Likewise.
11844 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11846 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11847 Jakub Jelinek <jakub@redhat.com>
11849 PR middle-end/47893
11850 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11851 (assign_stack_local_1): Change last argument type to int.
11852 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11853 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11854 don't record padding space into frame_space_list nor use those areas.
11855 (assign_stack_local): Adjust caller.
11856 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11857 of assign_stack_local, pass 0 as last argument.
11858 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11861 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11864 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11865 Use target address_mode and pointer_mode hooks instead of hardcoded
11866 Pmode and ptr_mode. Handle some simple cases of extending if
11867 POINTERS_EXTEND_UNSIGNED < 0.
11868 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11869 Call convert_debug_memory_address.
11870 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11871 convert_debug_memory_address.
11873 PR middle-end/46790
11874 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11875 * configure: Regenerated.
11876 * config.in: Regenerated.
11877 * varasm.c (default_function_section): Return NULL
11878 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11880 2011-02-28 Martin Jambor <mjambor@suse.cz>
11882 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11883 the description to match the printed values.
11885 2011-02-28 Richard Guenther <rguenther@suse.de>
11887 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11888 of the copied scope tree.
11890 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11892 * doc/extend.texi (Function Attributes): Avoid deeply (and
11893 wrongly) nested tables.
11895 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11897 PR middle-end/47903
11898 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11899 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11900 r isn't op0 nor op1.
11902 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11904 * config/avr/avr.md: Remove magic comment for emacs.
11906 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11909 * config/avr/avr.c (avr_option_override): Use error on bad options.
11910 (avr_help): New function.
11911 (TARGET_HELP): Define.
11913 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11916 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11917 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11919 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11921 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11922 (ARM Options): Ditto.
11923 (i386 and x86-64 Options): Ditto.
11924 (RX Options): Ditto.
11925 (SPARC Options): Ditto.
11927 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11929 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11930 FreeBSD 6 and later. Generally use cpu generic.
11932 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11934 * doc/cpp.texi: Update copyright years.
11936 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11939 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11941 2011-02-25 Jon Beniston <jon@beniston.com>
11944 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11945 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11946 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11947 (lm32_block_move_inline): Add type cast to remove warning.
11948 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11949 (gen_int_relational): Move declarations to start of function.
11951 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11953 PR tree-optimization/45470
11954 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11955 can throw internally only.
11956 * tree-vect-stmts.c (vectorizable_call): Likewise.
11958 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11960 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11961 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11962 * config/stormy16/stormy16-protos.h
11963 (xstormy16_preferred_reload_class): Remove.
11964 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11965 static. Change 'rclass' argument and return type to reg_class_t.
11966 (TARGET_PREFERRED_RELOAD_CLASS,
11967 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11969 2011-02-24 Richard Guenther <rguenther@suse.de>
11971 * lto-streamer-in.c (input_bb): Do not find referenced vars
11972 in debug statements.
11974 2011-02-23 Jason Merrill <jason@redhat.com>
11976 * common.opt (fabi-version): Document v5 and v6.
11978 2011-02-23 Richard Guenther <rguenther@suse.de>
11980 PR tree-optimization/47849
11981 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11983 2011-02-23 Jie Zhang <jie@codesourcery.com>
11985 * opts-common.c (decode_cmdline_option): Print empty string
11986 argument as "" in decoded->orig_option_with_args_text.
11987 * gcc.c (execute): Print empty string argument as ""
11988 in the verbose output.
11989 (do_spec_1): Keep empty string argument.
11991 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11993 * config.gcc: Declare score-* and crx-* obsolete.
11995 2011-02-23 Jie Zhang <jie@codesourcery.com>
11997 PR rtl-optimization/47763
11998 * web.c (web_main): Ignore naked clobber when replacing register.
12000 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12002 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12005 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12008 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12010 2011-02-22 Mike Stump <mikestump@comcast.net>
12012 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12014 * configure: Regenerate.
12016 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12018 PR rtl-optimization/46002
12019 * ira-color.c (update_copy_costs): Change class intersection
12020 test to reg_class_contents[] test of 'hard_regno'.
12022 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12024 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12025 than Driver option.
12026 * config/hpux11.opt (mt): Likewise.
12027 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12028 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12029 * config/vax/elf.opt (mno-asm-pic): Likewise.
12030 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12032 2011-02-21 Mike Stump <mikestump@comcast.net>
12035 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12036 tree so we can get save the type.
12037 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12038 for CFString instead of trying to use past the end of the builtins.
12039 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12040 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12041 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12042 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12043 Rename to darwin_builtin_cfstring.
12044 (darwin_init_cfstring_builtins): Return the built type.
12046 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12049 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12050 (_mm256_insert_epi64): Use _mm_insert_epi64.
12052 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12054 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12055 * config/stormy16/stormy16-protos.h
12056 (xstormy16_mode_dependent_address_p): Remove.
12057 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12058 Make static. Change return type to bool. Change argument type to
12059 const_rtx. Remove dead code.
12060 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12062 2011-02-21 Richard Guenther <rguenther@suse.de>
12065 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12066 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12067 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12069 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12070 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12072 2011-02-20 Richard Guenther <rguenther@suse.de>
12075 * tree.c (free_lang_data_in_decl): Clean builtins from
12076 the TU decl BLOCK_VARS.
12078 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12082 * haifa-sched.c (fix_tick_ready): Skip tick computation
12085 2011-02-19 Richard Guenther <rguenther@suse.de>
12088 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12089 Remove lazy BLOCK_VARS streaming.
12090 (lto_input_ts_block_tree_pointers): Likewise.
12091 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12093 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12095 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12097 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12099 * config/i386/biarch32.h, config/i386/mach.h,
12100 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12102 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12105 * config/i386/i386.md (peephole2 for shift and plus): Use
12106 operands[1] original mode in the first insn.
12108 2011-02-18 Mike Stump <mikestump@comcast.net>
12110 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12112 2011-02-18 Jan Hubicka <jh@suse.cz>
12114 PR middle-end/47788
12115 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12116 to zero when the function is not inlinable at all.
12118 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12120 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12121 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12122 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12123 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12124 * config/pa/t-pa64: Likewise.
12125 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12127 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12130 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12132 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12135 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12137 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12139 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12140 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12141 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12142 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12143 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12144 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12145 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12146 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12147 m32r_legitimate_address_p): New functions.
12148 * config/m32r/constraints.md (constraint "S"): Don't use
12149 STORE_PREINC_PREDEC_P.
12150 (constraint "U"): Don't use LOAD_POSTINC_P.
12152 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12154 PR rtl-optimization/46178
12155 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12156 compute ira_hard_regno_cover_class[].
12158 2011-02-18 Richard Guenther <rguenther@suse.de>
12161 * lto-streamer.h (lto_global_var_decls): Declare.
12162 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12163 statics for global var processing.
12165 2011-02-18 Richard Guenther <rguenther@suse.de>
12167 PR tree-optimization/47737
12168 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12169 edge dominance check.
12171 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12174 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12175 avoid invalid rtx sharing.
12177 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12179 * doc/cpp.texi (Obsolete Features): Add background on the
12180 origin of assertions.
12182 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12184 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12186 * config/darwin.c (output_objc_section_asm_op): Added support for
12188 (is_objc_metadata): New.
12189 (darwin_objc2_section): New.
12190 (darwin_objc1_section): New.
12191 (machopic_select_section): Added support for ABI v1 and v2.
12192 (darwin_emit_objc_zeroed): New.
12193 (darwin_output_aligned_bss): Detect objc metadata and treat it
12195 (darwin_asm_output_aligned_decl_common): Same.
12196 (darwin_asm_output_aligned_decl_local): Same.
12197 * config/darwin-sections.def: Updated for ABI v1 and v2.
12198 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12199 compiling Objective-C code for the NeXT runtime, default to using
12200 ABI version 0 for 32-bit, and version 2 for 64-bit.
12202 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12204 * common.opt (optimize_fast): New Variable.
12205 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12206 instead of local variable ofast.
12208 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12210 * doc/invoke.texi (fobjc-abi-version): Documented.
12211 (fobjc-nilcheck): Documented.
12212 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12215 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12218 * common.opt (export-dynamic): New Driver option.
12219 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12221 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12223 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12225 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12226 Jan Hubicka <jh@suse.cz>
12230 * cfgexpand.c (account_used_vars_for_block): Remove.
12231 (estimated_stack_frame_size): Use referenced vars.
12232 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12233 that were referenced in the original function. Test src_fn
12234 rather than cfun. Drop redundant get_var_ann.
12235 (setup_one_parameter): Drop redundant get_var_ann.
12236 (declare_return_variable): Likewise.
12237 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12238 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12239 * ipa-inline.c (compute_inline_parameters): Do not compute
12240 disregard_inline_limits here.
12241 (compute_inlinable_for_current, pass_inlinable): New.
12242 (pass_inline_parameters): Require PROP_referenced_vars.
12243 * cgraphunit.c (cgraph_process_new_functions): Don't run
12244 compute_inline_parameters explicitly unless function is in SSA form.
12245 (cgraph_analyze_function): Set .disregard_inline_limits.
12246 * tree-sra.c (convert_callers): Compute inliner parameters
12247 only for functions already in SSA form.
12249 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12251 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12252 -mlittle-endian-data.
12254 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12256 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12257 -mno-fpu, not -fpu and -no-fpu.
12258 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12259 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12261 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12264 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12265 input reload with PLUS RTX.
12267 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12269 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12270 of InverseVar(MDMX).
12272 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12274 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12277 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12279 * config/mn10300/mn10300.opt (mno-crt0): New.
12281 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12283 * config/m68k/uclinux.opt (static-libc): New Driver option.
12285 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12287 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12289 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12291 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12292 %{muser-extend-enabled}.
12294 2011-02-16 Richard Guenther <rguenther@suse.de>
12296 PR tree-optimization/47738
12297 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12298 the TODO from tree_predictive_commoning.
12300 2011-02-15 Jeff Law <law@redhat.com>
12303 2011-01-25 Jeff Law <law@redhat.com>
12305 PR rtl-optimization/37273
12306 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12307 handle them like argument loads from stack slots. Do not double
12308 count memory for memory constants and argument loads from stack slots.
12310 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12312 PR middle-end/47725
12313 * combine.c (cant_combine_insn_p): Revert the last change.
12315 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12318 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12319 mode for vector constants. Remove code that checks for TImode.
12321 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12325 * cgraph.h (compute_inline_parameters): Return void.
12326 * ipa-inline.c (compute_inline_parameters): Adjust.
12328 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12332 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12334 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12335 * ipa-inline.c (compute_inline_parameters): Adjust.
12337 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12341 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12342 Adjust all users. Pass FN to...
12343 * tree-flow-inline.h (first_referenced_var): ... this. Add
12345 * ipa-struct-reorg.c: Adjust.
12346 * tree-dfa.c: Adjust.
12347 * tree-into-ssa.c: Adjust.
12348 * tree-sra.c: Adjust.
12349 * tree-ssa-alias.c: Adjust.
12350 * tree-ssa-live.c: Adjust.
12351 * tree-ssa.c: Adjust.
12352 * tree-ssanames.c: Adjust.
12353 * tree-tailcall.c: Adjust.
12355 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12359 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12360 Adjust all callers.
12361 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12362 * tree-flow-inline.h: Adjust.
12363 * gimple-pretty-print.c: Adjust.
12364 * tree-into-ssa.c: Adjust.
12365 * tree-ssa.c: Adjust.
12366 * cfgexpand.c: Adjust.
12368 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12370 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12371 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12372 (EXTRA_CONSTRAINT): Delete.
12373 * config/iq2000/constraints.md: New file.
12374 * config/iq2000/iq2000.md: Include it.
12375 (define_insn ""): Delete.
12376 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12377 unsupported constraint letters from patterns.
12378 (call_value, call_value_internal1): Likewise.
12379 (call_value_multiple_internal1): Likewise.
12381 2011-02-15 Nick Clifton <nickc@redhat.com>
12383 * config/mn10300/mn10300.c: Include tm-constrs.h.
12384 (struct liw_data): New data structure describing an LIW candidate
12386 (extract_bundle): Use struct liw_data. Allow small integer
12387 operands for some instructions.
12388 (check_liw_constraints): Use struct liw_data. Remove swapped
12389 parameter. Add comments describing the checks. Fix bug when
12390 assigning the source of liw1 to the source of liw2.
12391 (liw_candidate): Delete. Code moved into extract_bundle.
12392 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12394 * config/mn10300/predicates.md (liw_operand): New predicate.
12395 Allows registers and small integer constants.
12396 * config/mn10300/constraints.md (O): New constraint. Accetps
12397 integers in the range -8 to +7 inclusive.
12398 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12399 for moving a small integer into a register. Give this alternative
12401 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12402 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12403 using the J,K,L and M constraints,
12404 (liw): Remove SI mode on second operands to allow for HI and QI
12406 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12409 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12411 PR middle-end/47725
12412 * combine.c (cant_combine_insn_p): Check zero/sign extended
12415 2011-02-15 Richard Guenther <rguenther@suse.de>
12417 PR tree-optimization/47743
12418 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12419 for a non-type-compatible VN lookup bail out.
12421 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12423 * config/fr30/constraints.md: New file.
12424 * config/fr30/fr30.md: Include it.
12425 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12426 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12427 (EXTRA_CONSTRAINT): Delete.
12429 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12431 * config/frv/constraints.md: New file.
12432 * config/frv/predicates.md: Include it.
12433 * config/frv/frv.c (reg_class_from_letter): Delete.
12434 (frv_option_override): Don't initialize it.
12435 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12436 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12437 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12438 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12439 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12440 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12441 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12442 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12443 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12444 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12445 (REG_CLASS_FROM_CONSTRAINT): Delete.
12447 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12449 PR middle-end/47581
12450 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12451 if frame size is 0 in a leaf function.
12453 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12456 * config/alpha/host-osf.c: New file.
12457 * config/alpha/x-osf: New file.
12458 * config.host (alpha*-dec-osf*): Use it.
12460 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12462 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12463 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12464 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12465 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12467 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12469 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12471 * config/stormy16/constraints.md: New file.
12472 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12473 Use satisfies_constraint_Q and satisfies_constraint_R.
12474 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12476 (xstormy16_legitiamte_address_p): Declare.
12477 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12478 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12479 (EXTRA_CONSTRAINT): Delete.
12480 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12482 (xstormy16_extra_constraint_p): Delete.
12484 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12486 PR tree-optimization/46494
12487 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12488 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12489 (pass_rtl_loop_done): Add TODO_verify_flow.
12490 * fwprop.c (pass_rtl_fwprop): Likewise.
12491 * modulo-sched.c (pass_sms): Likewise.
12492 * tree-ssa-dom.c (pass_dominator): Likewise.
12493 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12494 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12495 (pass_tree_loop_done): Likewise.
12496 * tree-ssa-pre.c (execute_pre): Likewise.
12497 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12498 * tree-ssa-sink.c (pass_sink_code): Likewise.
12499 * tree-vrp.c (pass_vrp): Likewise.
12501 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12503 * config/v850/constraints.md: New file.
12504 * config/v850/v850.md: Include it.
12505 * config/v850/predicates.md (reg_or_0_operand): Use
12506 satisfies_constraint_G.
12507 (special_symbolref_operand): Use satisfies_constraint_K.
12508 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12509 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12510 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12511 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12512 (EXTRA_CONSTRAINT): Delete.
12513 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12514 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12515 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12517 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12520 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12523 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12525 * config/mcore/constraints.md: New file.
12526 * config/mcore/mcore.md: Include it.
12527 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12528 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12529 (REG_CLASS_FROM_LETTER): Delete.
12530 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12531 insn_const_int_ok_for_constraint.
12532 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12533 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12534 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12535 (EXTRA_CONSTRAINT): Delete.
12537 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12540 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12541 (IS_SIGHANDLER): Define.
12542 (sparc64_is_sighandler): New function, split off from
12543 sparc64_fallback_frame_state.
12544 (sparc_is_sighandler): New function, split off from
12545 sparc_fallback_frame_state.
12546 (sparc64_fallback_frame_state): Merge with ...
12547 (sparc_fallback_frame_state): ... this into ...
12548 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12549 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12550 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12551 stack instead of hardcoded offsets.
12553 2011-02-14 Andriy Gapon <avg@freebsd.org>
12556 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12558 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12560 * configure: Regenerate.
12562 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12565 * gcc.c (asm_options): Correct spec matching --target-help.
12567 2011-02-12 Martin Jambor <mjambor@suse.cz>
12569 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12570 to gimple call error.
12572 2011-02-12 Mike Stump <mikestump@comcast.net>
12574 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12575 comments in backslash regions.
12577 2011-02-12 Mike Stump <mikestump@comcast.net>
12578 Jakub Jelinek <jakub@redhat.com>
12579 Iain Sandoe <iains@gcc.gnu.org>
12582 * dwarf2out.c (output_cfa_loc): When required, apply the
12583 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12584 (output_loc_sequence): Likewise.
12585 (output_loc_operands_raw): Likewise.
12586 (output_loc_sequence_raw): Likewise.
12587 (output_cfa_loc): Likewise.
12588 (output_loc_list): Suppress register number adjustment when
12589 calling output_loc_sequence()
12590 (output_die): Likewise.
12592 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12594 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12596 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12597 xtensa_memory_move_cost): New functions.
12598 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12600 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12603 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12604 in the current directory.
12605 * configure: Rebuilt.
12607 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12609 * config/darwin.c (darwin_override_options): Add a hunk missed
12610 from the commit of r168571. Trim comment line lengths and
12611 correct indents of the preceding block.
12613 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12615 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12618 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12620 * common.opt (nostartfiles): New Driver option.
12622 2011-02-11 Xinliang David Li <davidxl@google.com>
12624 PR tree-optimization/47707
12625 * tree-chrec.c (convert_affine_scev): Keep type precision.
12627 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12629 PR tree-optimization/47420
12630 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12632 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12634 PR rtl-optimization/47614
12635 * rtl.h (check_for_inc_dec): Declare.
12636 * dse.c (check_for_inc_dec): Externalize...
12637 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12638 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12640 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12643 * gcc.c (main): Do not compile inputs if there were errors in
12645 * opts-common.c (read_cmdline_option): Check for wrong language
12646 after other error checks.
12648 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12650 * cgraph.c: Fix comment typos.
12651 * cgraph.h: Likewise.
12652 * cgraphunit.c: Likewise.
12653 * ipa-cp.c: Likewise.
12654 * ipa-inline.c: Likewise.
12655 * ipa-prop.c: Likewise.
12656 * ipa-pure-const.c: Likewise.
12657 * ipa-ref.c: Likewise.
12658 * ipa-reference.c: Likewise.
12660 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12663 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12665 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12668 * doc/sourcebuild.texi (Require Support): Document
12669 dg-require-ascii-locale.
12671 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12673 * doc/lto.texi (Write summary): Fix missing parentheses.
12675 2011-02-10 DJ Delorie <dj@redhat.com>
12677 * config/m32c/m32c.c (m32c_option_override): Disable
12678 -fcombine-stack-adjustments until flag value tracking and compare
12679 optimization can be rewritten.
12681 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12683 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12685 (PROCESSOR_DEFAULT64): Likewise.
12687 2011-02-10 Richard Henderson <rth@redhat.com>
12689 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12690 change from 2011-02-03.
12691 * config/rx/rx.c (flags_from_code): Likewise.
12692 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12693 is valid, n/pz otherwise.
12694 (rx_select_cc_mode): Return CCmode if Y is not zero.
12696 2011-02-10 Richard Guenther <rguenther@suse.de>
12698 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12700 2011-02-10 Richard Guenther <rguenther@suse.de>
12702 PR tree-optimization/47677
12703 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12705 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12708 * combine.c (make_compound_operation): Only change shifts into
12709 multiplication for SCALAR_INT_MODE_P.
12711 2011-02-10 Jie Zhang <jie@codesourcery.com>
12715 2011-02-05 Jie Zhang <jie@codesourcery.com>
12717 * web.c (entry_register): Don't clobber the number of the
12718 first uninitialized reference in used[].
12720 2011-02-09 Richard Guenther <rguenther@suse.de>
12722 PR tree-optimization/47664
12723 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12726 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12730 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12732 (PROCESSOR_DEFAULT64): Same.
12733 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12735 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12737 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12739 2011-02-09 Martin Jambor <mjambor@suse.cz>
12741 PR middle-end/45505
12742 * tree-sra.c (struct access): New flags grp_scalar_read and
12743 grp_scalar_write. Changed description of assignment read and write
12745 (dump_access): Dump new flags, reorder all of them.
12746 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12747 to detect multiple scalar reads.
12748 (analyze_access_subtree): Use the new scalar read write flags instead
12749 of the old flags. Adjusted comments.
12751 2011-02-08 DJ Delorie <dj@redhat.com>
12754 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12757 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12759 * config/m68k/uclinux.opt: New.
12760 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12762 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12764 * config/cris/elf.opt (sim): New Driver option.
12766 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12768 * config/xtensa/elf.opt: New.
12769 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12771 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12773 * config/vax/elf.opt: New.
12774 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12776 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12778 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12780 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12782 * config/gnu-user.opt: New.
12783 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12784 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12785 *-*-uclinux*): Use gnu-user.opt.
12787 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12789 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12790 * config/i386/gnu.h (CPP_SPEC): Likewise.
12792 2011-02-08 Ian Lance Taylor <iant@google.com>
12794 * common.opt (fcx-limited-range): Add SetByCombined flag.
12795 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12796 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12797 (fassociative-math, freciprocal-math): Likewise.
12798 (funsafe-math-optimizations): Likewise.
12799 * opth-gen.awk: Handle SetByCombined.
12800 * optc-gen.awk: Likewise.
12801 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12802 (set_unsafe_math_optimizations_flags): Likewise.
12803 * doc/options.texi (Option properties): Document SetByCombined.
12805 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12807 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12808 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12809 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12810 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12811 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12813 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12815 PR tree-optimization/46834
12816 PR tree-optimization/46994
12817 PR tree-optimization/46995
12818 * graphite-sese-to-poly.c (used_outside_reduction): New.
12819 (detect_commutative_reduction): Call used_outside_reduction.
12820 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12821 translate_scalar_reduction_to_array only when at least one
12822 loop-phi/close-phi tuple has been detected.
12824 2011-02-08 Richard Guenther <rguenther@suse.de>
12826 PR middle-end/47639
12827 * tree-vect-generic.c (expand_vector_operations_1): Update
12829 (expand_vector_operations): ... not here. Cleanup EH info
12830 and the CFG if required.
12832 2011-02-08 Richard Guenther <rguenther@suse.de>
12834 PR tree-optimization/47641
12835 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12836 require type compatibility.
12838 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12840 * gimple-low.c (lower_function_body): Don't remove the location of
12841 the return statement here.
12842 (lower_gimple_return): Do it here instead but only if the return
12843 statement is actually used twice.
12845 2011-02-08 Richard Guenther <rguenther@suse.de>
12847 PR tree-optimization/47632
12848 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12849 unused up_to_stmt parameter, return whether cfg-cleanup is
12850 necessary, remove EH info properly.
12851 (forward_propagate_into_gimple_cond): Adjust caller.
12852 (forward_propagate_into_cond): Likewise.
12853 (forward_propagate_comparison): Likewise.
12854 (tree_ssa_forward_propagate_single_use_vars): Make
12855 forward_propagate_comparison case similar to the two others.
12857 2011-02-08 Nick Clifton <nickc@redhat.com>
12859 * config/mn10300/mn10300.opt (mliw): New command line option.
12860 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12861 (liw_bundling): New automaton.
12862 (liw): New attribute.
12863 (liw_op): New attribute.
12864 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12865 (movsi_internal): Add LIW attributes.
12866 (andsi3): Likewise.
12867 (iorsi3): Likewise.
12868 (xorsi3): Likewise.
12869 (addsi3): Separate register and immediate alternatives.
12870 Add LIW attributes.
12871 (subsi3): Likewise.
12873 (aslsi3): Likewise.
12874 (lshrsi3): Likewise.
12875 (ashrsi3): Likewise.
12876 (liw): New pattern.
12877 * config/mn10300/mn10300.c (liw_op_names): New
12878 (mn10300_print_operand): Handle 'W' operand descriptor.
12879 (extract_bundle): New function.
12880 (check_liw_constraints): New function.
12881 (liw_candidate): New function.
12882 (mn10300_bundle_liw): New function.
12883 (mn10300_reorg): New function.
12884 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12885 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12886 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12887 __LIW__ or __NO_LIW__.
12888 * doc/invoke.texi: Describe the -mliw command line option.
12890 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12892 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12893 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12894 pthread_mutex_unlock): Remove.
12895 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12896 * config/pa/t-pa64: Likewise.
12897 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12898 shared libc if not linking against libpthread.
12899 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12901 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12904 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12905 on 10.6 and later to ensure that we always use the unwinder from
12906 the system. Only add -no_compact_unwind when tarteting darwin
12909 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12912 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12913 (vec_interleave_lowv2sf): Ditto.
12914 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12915 (vec_extract_oddv2sf): Ditto.
12917 2011-02-07 Mike Stump <mikestump@comcast.net>
12920 Add __ieee_divdc3 entry point.
12921 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12923 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12924 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12925 * config/darwin.c (darwin_rename_builtins): Add.
12926 * config/darwin-protos.h (darwin_rename_builtins): Add.
12928 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12931 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12934 2011-02-07 Mike Stump <mikestump@comcast.net>
12936 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12938 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12941 * config/avr/libgcc.S (exit): Move .endfunc
12943 2011-02-07 Richard Guenther <rguenther@suse.de>
12945 PR tree-optimization/47615
12946 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12947 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12948 (run_scc_vn): Initialize it.
12949 (visit_reference_op_load): Use it.
12950 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12952 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12954 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12955 DImode trapping arithmetic libfuncs.
12957 2011-02-07 Richard Guenther <rguenther@suse.de>
12959 PR tree-optimization/47621
12960 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12962 (execute_update_addresses_taken): ... here. Make it more
12963 conservative in what we accept.
12965 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12967 * config/sparc/freebsd.h (ASM_SPEC): Define.
12968 * config/sparc/vxworks.h (ASM_SPEC): Define.
12970 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12972 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12974 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12976 * doc/invoke.texi: Remove reference to compiler internals from
12977 user documentation.
12979 * reg-notes.def: Remove REG_VALUE_PROFILE.
12980 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12982 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12984 PR middle-end/47610
12985 * varasm.c (default_section_type_flags): If decl is NULL,
12986 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12988 2011-02-05 Jie Zhang <jie@codesourcery.com>
12991 * web.c (entry_register): Don't clobber the number of the
12992 first uninitialized reference in used[].
12994 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12996 PR tree-optimization/46194
12997 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12998 (build_classic_dist_vector_1): Do not represent classic distance
12999 vectors when the access functions are variating in different loops.
13001 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13003 * config/mips/iris6.opt: New.
13004 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13006 2011-02-04 Richard Henderson <rth@redhat.com>
13007 Steve Ellcey <sje@cup.hp.com>
13010 * config/ia64/predicates.md (mux1_brcst_element): New.
13011 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13012 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13013 (ia64_unpack_sign): New.
13014 (ia64_expand_unpack): Rewrite using new routines.
13015 (ia64_expand_widen_sum): Ditto.
13016 (ia64_expand_dot_prod_v8qi): Ditto.
13017 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13018 routines, add endian check.
13019 (pmpy2_even): Rename from pmpy2_r, add endian check.
13020 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13021 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13022 (vec_widen_smult_hi_v4hi): Ditto.
13023 (vec_widen_umult_lo_v4hi): Ditto.
13024 (vec_widen_umult_hi_v4hi): Ditto.
13025 (mulv2si3): Change endian checks.
13026 (sdot_prodv4hi): Rewrite with new calls.
13027 (udot_prodv4hi): New.
13028 (vec_pack_ssat_v4hi): Add endian check.
13029 (vec_pack_usat_v4hi): Ditto.
13030 (vec_pack_ssat_v2si): Ditto.
13031 (max1_even): Rename from max1_r, add endian check.
13032 (max1_odd): Rename from max1_l, add endian check.
13033 (*mux1_rev): Format change.
13034 (*mux1_mix): Ditto.
13035 (*mux1_shuf): Ditto.
13036 (*mux1_alt): Ditto.
13037 (*mux1_brcst_v8qi): Use new predicate.
13038 (vec_extract_evenv8qi): Remove endian check.
13039 (vec_extract_oddv8qi): Ditto.
13040 (vec_interleave_lowv4hi): Format change.
13041 (vec_interleave_highv4hi): Ditto.
13042 (mix2_even): Rename from mix2_r, add endian check.
13043 (mix2_odd): Rename from mux2_l, add endian check.
13044 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13045 (vec_extract_evenodd_helper): Format change.
13046 (vec_extract_evenv4hi): Remove endian check.
13047 (vec_extract_oddv4hi): Remove endian check.
13048 (vec_interleave_lowv2si): Format change.
13049 (vec_interleave_highv2si): Format change.
13050 (vec_initv2si): Remove endian check.
13051 (vecinit_v2si): Add endian check.
13052 (reduc_splus_v2sf): Add endian check.
13053 (reduc_smax_v2sf): Ditto.
13054 (reduc_smin_v2sf): Ditto.
13055 (vec_initv2sf): Remove endian check.
13056 (fpack): Add endian check.
13057 (fswap): Add endian check.
13058 (vec_interleave_highv2sf): Add endian check.
13059 (vec_interleave_lowv2sf): Add endian check.
13060 (fmix_lr): Add endian check.
13061 (vec_setv2sf): Format change.
13062 (*vec_extractv2sf_0_be): Use shift to extract operand.
13063 (*vec_extractv2sf_1_be): New.
13064 (vec_pack_trunc_v4hi): Add endian check.
13065 (vec_pack_trunc_v2si): Format change.
13067 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13069 PR inline-asm/23200
13070 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13071 do bb, locus and block comparison and disallow loads if it is not set.
13072 (stmt_is_replaceable_p): New function.
13073 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13075 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13076 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13078 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13080 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13082 * config/rs6000/xilinx.opt: New.
13083 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13085 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13087 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13089 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13091 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13092 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13093 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13094 secondary_reload_info, xtensa_secondary_reload): Remove.
13095 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13096 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13097 (xtensa_preferred_reload_class): Make static. Change return and
13098 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13099 Use CONST_DOUBLE_P predicate.
13100 (xtensa_preferred_output_reload_class): New function.
13101 (xtensa_secondary_reload): Make static.
13103 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13105 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13106 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13107 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13109 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13111 PR middle-end/31490
13112 * output.h (SECTION_RELRO): Define.
13113 (SECTION_MACH_DEP): Adjust.
13114 (get_variable_section): New prototype.
13115 * varpool.c (varpool_finalize_named_section_flags): New function.
13116 (varpool_assemble_pending_decls): Call it.
13117 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13118 * cgraphunit.c (cgraph_output_in_order): Call
13119 varpool_finalize_named_section_flags.
13120 * varasm.c (get_section): Allow section flags conflicts between
13121 relro and read-only sections if the section hasn't been declared yet.
13122 Set SECTION_OVERRIDE after diagnosing section type conflict.
13123 (get_variable_section): No longer static.
13124 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13125 readonly sections that need relocations.
13126 (decl_readonly_section_1): New function.
13127 (decl_readonly_section): Use it.
13130 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13131 Steve Ellcey <sje@cup.hp.com>
13133 PR middle-end/31490
13134 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13135 if section attribute used.
13137 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13139 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13140 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13141 (darwin_init_sections): Remove assertion.
13143 2011-02-03 Nick Clifton <nickc@redhat.com>
13145 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13147 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13148 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13149 instead of "n" and "pz".
13150 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13153 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13156 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13157 fma, expand FMA_EXPR as fma{,f,l} call.
13160 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13161 copy them into a unsigned char variable and pass address of it to
13162 lto_output_data_stream.
13165 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13166 around backend_init_target and lang_dependent_init_target calls.
13167 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13168 (verify_cgraph_node): Don't call set_cfun here. Use
13169 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13170 Set error_found for incorrectly represented calls to thunks.
13172 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13175 PR rtl-optimization/43494
13176 * rtl.h (for_each_inc_dec_fn): New type.
13177 (for_each_inc_dec): Declare.
13178 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13179 (for_each_inc_dec_find_inc_dec): New fn.
13180 (for_each_inc_dec_find_mem): New fn.
13181 (for_each_inc_dec): New fn.
13182 * dse.c (struct insn_size): Remove.
13183 (replace_inc_dec, replace_inc_dec_mem): Remove.
13184 (emit_inc_dec_insn_before): New fn.
13185 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13186 (canon_address): Pass mem modes to cselib_lookup.
13187 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13188 (cselib_lookup_from_insn): Likewise.
13189 (cselib_subst_to_values): Likewise.
13190 * cselib.c (find_slot_memmode): New var.
13191 (cselib_find_slot): New fn. Use it instead of
13192 htab_find_slot_with_hash everywhere.
13193 (entry_and_rtx_equal_p): Use find_slot_memmode.
13194 (autoinc_split): New fn.
13195 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13196 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13197 Deal with autoinc. Special-case recursion into MEMs.
13198 (cselib_hash_rtx): Likewise.
13199 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13200 address and MEM modes.
13201 (cselib_subst_to_values): Add memmode, pass it on.
13203 (cselib_lookup): Add memmode argument, pass it on.
13204 (cselib_lookup_from_insn): Add memmode.
13205 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13206 (struct cselib_record_autoinc_data): New.
13207 (cselib_record_autoinc_cb): New fn.
13208 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13209 mode to cselib_lookup. Reset autoinced REGs here instead of...
13210 (cselib_process_insn): ... here.
13211 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13213 (add_uses): Likewise, also to cselib_subst_to_values.
13214 (add_stores): Likewise.
13215 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13216 cselib_subst_to_values.
13217 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13218 * gcse.c (do_local_cprop): Adjusted.
13219 * postreload.c (reload_cse_simplify_set): Adjusted.
13220 (reload_cse_simplify_operands): Adjusted.
13221 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13223 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13225 PR tree-optimization/45122
13226 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13227 unsafe assumptions when there's more than one loop exit.
13229 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13232 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13233 Document using vector double with the load/store builtins, and
13234 that the load/store builtins always use Altivec instructions.
13236 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13237 to use altivec memory instructions, even on VSX.
13238 (vector_altivec_store_<mode>): Ditto.
13240 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13243 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13244 V2DF, V2DI support to load/store overloaded builtins.
13246 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13247 altivec load/store builtins for V2DF/V2DI types.
13249 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13250 set avoid indexed addresses on power6 if -maltivec.
13251 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13252 vector_altivec_load/vector_altivec_store builtins.
13253 (altivec_expand_st_builtin): Ditto.
13254 (altivec_expand_builtin): Add VSX memory builtins.
13255 (rs6000_init_builtins): Add V2DI types to internal types.
13256 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13257 load/store builtins.
13258 (rs6000_address_for_altivec): Insure memory address is appropriate
13261 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13262 vec_vsx_ld and vec_vsx_st.
13263 (vsx_store_<mode>): Ditto.
13265 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13266 variables to hold long long types for VSX vector memory builtins.
13267 (RS6000_BTI_unsigned_long_long): Ditto.
13268 (long_long_integer_type_internal_node): Ditti.
13269 (long_long_unsigned_type_internal_node): Ditti.
13271 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13272 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13273 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13275 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13277 (vec_vsx_st): Ditto.
13279 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13281 * config/pa/pa-hpux10.opt: New.
13282 * config/hpux11.opt (pthread): New Driver option.
13283 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13284 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13286 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13288 * config/ia64/vms.opt: New.
13289 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13291 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13294 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13295 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13296 generator functions.
13297 (vsx_floatuns<VSi><mode>2): Ditto.
13298 (vsx_fix_trunc<mode><VSi>2): Ditto.
13299 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13301 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13303 * config/i386/djgpp.opt (posix): New Driver option.
13305 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13307 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13308 Move to the unsupported targets list.
13310 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13312 PR rtl-optimization/47525
13313 * df-scan.c: Update copyright years.
13314 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13315 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13317 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13319 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13320 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13321 (ASM_OUTPUT_ASCII): Remove.
13322 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13324 2011-02-02 Jeff Law <law@redhat.com>
13326 PR middle-end/47543
13327 * reload.c (find_reloads_address): Handle reg+d address where both
13328 components are invalid by reloading the entire address.
13330 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13331 Richard Guenther <rguenther@suse.de>
13333 PR tree-optimization/40979
13335 * passes.c (init_optimization_passes): After LIM call copy_prop
13336 and DCE to clean up.
13337 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13339 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13341 PR tree-optimization/47576
13342 PR tree-optimization/47555
13343 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13344 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13345 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13346 * tree-scalar-evolution.c (follow_ssa_edge): Use
13347 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13349 2011-02-02 Richard Guenther <rguenther@suse.de>
13351 PR tree-optimization/47566
13352 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13354 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13358 * tree-inline.c (declare_return_variable): Remove unused caller
13363 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13364 * cfgexpand.c (account_used_vars_for_block): Use them.
13365 * tree-nrv.c (tree_nrv): Likewise.
13366 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13367 (dump_scope_block): Likewise.
13368 (remove_unused_locals): Likewise.
13372 * tree-inline.c (declare_return_variable): Add result decl to
13373 local decls only once.
13374 * gimple-low.c (record_vars_into): Mark newly-created variables
13377 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13383 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13385 (no_real_insns_p, schedule_block, set_priorities): Drop special
13386 treatment of boundary debug insns.
13387 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13388 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13389 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13390 (BOUNDARY_DEBUG_INSN_P): Likewise.
13391 (SCHEDULE_DEBUG_INSN_P): Likewise.
13392 * sched-rgn.c (init_ready_list): Drop special treatment of
13393 boundary debug insns.
13394 * final.c (rest_of_clean_state): Clear notes' BB.
13396 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13398 * config/openbsd.opt (assert=): New Driver option.
13400 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13402 * config/i386/nto.opt: New.
13403 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13405 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13407 * config/i386/netware.opt: New.
13408 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13410 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13412 * config/interix.opt (posix): New Driver option.
13414 2011-02-01 DJ Delorie <dj@redhat.com>
13416 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13418 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13421 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13423 PR tree-optimization/47561
13424 * toplev.c (process_options): Print the Graphite flags. Add
13425 flag_loop_flatten to the list of options requiring Graphite.
13427 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13429 * config/i386/cygming.opt (posix): New Driver option.
13431 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13433 * config/arm/vxworks.opt: New.
13434 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13436 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13438 * config/alpha/elf.opt: New.
13439 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13440 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13442 2011-02-01 Richard Guenther <rguenther@suse.de>
13444 PR tree-optimization/47559
13445 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13446 store-motion on references that can throw.
13448 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13450 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13451 * tree-pass.h (TDF_CSELIB): New macro.
13452 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13453 cselib_lookup): Check for it rather than for TDF_DETAILS.
13455 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13458 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13459 is HOST_BIT_BUCKET.
13461 * opts.c (finish_options): Don't add x_aux_base_name if it is
13464 2011-02-01 Richard Guenther <rguenther@suse.de>
13466 PR tree-optimization/47555
13468 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13470 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13472 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13475 * config/lm32/t-lm32: Add multilib for all CPU options.
13477 2011-02-01 Richard Guenther <rguenther@suse.de>
13479 PR tree-optimization/47541
13480 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13481 sure to have a field at offset zero.
13483 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13485 * config/arc/arc.opt (EB, EL): New Driver options.
13487 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13489 * config/alpha/osf5.opt: New.
13490 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13492 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13494 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13496 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13498 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13499 -floop-interchange.
13500 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13501 is an alias of -floop-interchange and that it requires the
13502 Graphite infrastructure.
13503 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13504 flag_loop_interchange based on the value of flag_tree_loop_linear.
13506 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13507 Richard Guenther <rguenther@suse.de>
13509 PR tree-optimization/47538
13510 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13511 type instead of r1type, except for comparisons. For right
13512 shifts and comparisons punt if there are mismatches in
13513 sizetype vs. non-sizetype types.
13515 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13517 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13520 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13522 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13524 * configure: Regenerate.
13526 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13528 * configure.ac (gcc_cv_ld_static_option): Define.
13529 (gcc_cv_ld_dynamic_option): Define.
13530 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13532 (HAVE_LD_STATIC_DYNAMIC): Update message.
13533 (LD_STATIC_OPTION): Define.
13534 (LD_DYNAMIC_OPTION): Define.
13535 * configure: Regenerate.
13536 * config.in: Regenerate.
13537 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13538 HAVE_LD_STATIC_DYNAMIC]: Use them.
13540 2011-01-31 Nick Clifton <nickc@redhat.com>
13542 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13543 registers inside interrupt handlers if the handler is not a leaf
13546 2011-01-31 Nick Clifton <nickc@redhat.com>
13548 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13549 reg_renumber returning an INVALID_REGNUM.
13551 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13554 * doc/install.texi: Document host options discarded when cross
13555 configuring target libraries.
13557 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13560 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13563 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13565 (no_real_insns_p, schedule_block, set_priorities): Drop special
13566 treatment of boundary debug insns.
13567 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13568 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13569 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13570 (BOUNDARY_DEBUG_INSN_P): Likewise.
13571 (SCHEDULE_DEBUG_INSN_P): Likewise.
13572 * sched-rgn.c (init_ready_list): Drop special treatment of
13573 boundary debug insns.
13574 * final.c (rest_of_clean-state): Clear notes' BB.
13576 2011-01-31 Alan Modra <amodra@gmail.com>
13578 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13579 toc relative expressions as we do in print_operand_address.
13581 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13583 * doc/extend.texi: Follow spelling conventions.
13584 * doc/invoke.texi: Fix a typo.
13586 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13588 * config/hpux11.opt: New.
13589 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13590 ia64*-*-hpux*): Use hpux11.opt.
13592 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13594 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13597 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13599 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13602 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13604 * doc/install.texi (Binaries): Remove outdated reference for
13605 Motorola 68HC11/68HC12 downloads.
13607 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13609 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13612 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13615 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13618 2011-01-28 Ahmad Sharif <asharif@google.com>
13620 * value-prof.c (check_counter): Corrected error message.
13622 2011-01-29 Jie Zhang <jie@codesourcery.com>
13624 * config/arm/arm.c (arm_legitimize_reload_address): New.
13625 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13626 arm_legitimize_reload_address.
13627 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13629 2011-01-28 Ian Lance Taylor <iant@google.com>
13631 * godump.c (go_define): Ignore macros whose definitions include
13632 two adjacent operands.
13634 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13637 * varasm.c (force_const_mem): Store copy of x in desc->constant
13638 instead of x itself.
13639 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13640 itself into REG_EQUAL note.
13642 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13644 * config/freebsd.opt (posix, rdynamic): New Driver options.
13646 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13648 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13649 -Bstatic/-Bdynamic.
13650 * configure: Regenerate.
13652 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13654 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13655 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13657 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13659 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13660 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13661 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13662 (s390_preferred_reload_class): Make static. Change return and
13663 'rclass' argument type to reg_class_t.
13665 2011-01-27 Jan Hubicka <jh@suse.cz>
13667 PR middle-end/46949
13668 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13669 (process_function_and_variable_attributes): Check defined weakrefs.
13671 2011-01-27 Martin Jambor <mjambor@suse.cz>
13673 PR tree-optimization/47228
13674 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13675 build_ref_for_offset.
13677 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13679 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13681 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13683 PR rtl-optimization/46856
13684 * postreload.c (reload_combine_recognize_const_pattern): Do not
13685 separate cc0 setter and user on cc0 targets.
13687 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13690 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13691 passed a VOID_TYPE expression, immediately emit an error and
13692 return error_mark_node.
13694 2011-01-26 Jeff Law <law@redhat.com>
13696 PR rtl-optimization/47464
13697 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13698 rather than may_trap_p as needed.
13700 2011-01-26 DJ Delorie <dj@redhat.com>
13702 PR rtl-optimization/46878
13703 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13704 setter/user dependency as well.
13706 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13708 PR rtl-optimization/44469
13709 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13710 after removing trivially dead basic blocks.
13712 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13714 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13715 * config/frv/frv.h (LINK_SPEC): Likewise.
13716 * config/i386/netware.h (LINK_SPEC): Likewise.
13717 * config/m68k/linux.h (ASM_SPEC): Likewise.
13718 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13719 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13720 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13721 * config/sparc/linux.h (ASM_SPEC): Likewise.
13722 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13723 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13725 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13727 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13728 * config/frv/frv.h (ASM_SPEC): Likewise.
13729 * config/m68k/linux.h (ASM_SPEC): Likewise.
13730 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13731 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13732 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13733 * config/sparc/linux.h (ASM_SPEC): Likewise.
13734 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13735 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13737 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13739 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13740 * config/frv/frv.h (LINK_SPEC): Likewise.
13741 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13743 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13745 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13746 * config/frv/frv.h (ASM_SPEC): Likewise.
13747 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13748 * config/m68k/linux.h (ASM_SPEC): Likewise.
13749 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13750 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13751 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13752 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13753 * config/sparc/linux.h (ASM_SPEC): Likewise.
13754 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13755 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13756 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13758 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13761 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13763 (vec_extract_evenodd_help): Ditto.
13764 (vec_extract_evenv4hi): Ditto.
13765 (vec_extract_oddv4hi): Ditto.
13766 (vec_interleave_lowv2si): Ditto.
13767 (vec_interleave_highv2si): Ditto.
13768 (vec_extract_evenv2si): Ditto.
13769 (vec_extract_oddv2si: Ditto.
13770 (vec_pack_trunc_v2si): Ditto.
13772 2011-01-22 Jan Hubicka <jh@suse.cz>
13775 * cgraph.h (cgraph_local_info): New field can_change_signature.
13776 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13777 signature can change.
13778 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13780 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13781 (cgraph_function_versioning): We can not change signature of functions
13782 that don't allow that.
13783 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13784 (lto_input_node): Likewise.
13785 * ipa-inline.c (compute_inline_parameters): Compute
13786 local.can_change_signature.
13787 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13788 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13789 functions that can not change signature.
13790 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13791 init_cumulative_args): Do not use local calling conventions
13792 for functions that can not change signature.
13794 2011-01-22 Jan Hubicka <jh@suse.cz>
13796 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13798 2011-01-26 Richard Guenther <rguenther@suse.de>
13800 PR tree-optimization/47190
13801 * cgraphunit.c (process_common_attributes): New function.
13802 (process_function_and_variable_attributes): Use it.
13804 2011-01-26 Richard Guenther <rguenther@suse.de>
13807 * cgraphbuild.c (record_eh_tables): Record reference to personality
13810 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13813 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13814 non-debug insns from moving up.
13816 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13819 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13820 t-dlldir{,-x} fragment for build and add it to tmake_file.
13821 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13822 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13823 * config/i386/t-dlldir: New file.
13824 (SHLIB_DLLDIR): Define.
13825 * config/i386/t-dlldir-x: New file.
13826 (SHLIB_DLLDIR): Define.
13827 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13828 (SHLIB_INSTALL): Use it.
13830 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13833 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13834 lower bound of the allowed Thumb-2 coprocessor load/store
13835 index range to -256. Add explaining comment.
13837 2011-01-25 Ian Lance Taylor <iant@google.com>
13839 * godump.c (go_define): Improve lexing of macro expansion to only
13840 accept expressions which match Go spec.
13842 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13845 * tree.c (handle_dll_attribute): Handle it.
13846 * doc/extend.texi (@item dllexport): Mention it.
13847 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13849 2011-01-25 Ian Lance Taylor <iant@google.com>
13851 PR tree-optimization/26854
13852 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13853 (decl_jump_unsafe): Move higher in file, with no other change.
13854 (bind): Set has_jump_unsafe_decl if appropriate.
13855 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13856 (check_earlier_gotos): Likewise.
13857 (c_check_switch_jump_warnings): Likewise.
13859 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13861 * doc/invoke.texi (Warning Options): Add missing hyphen.
13862 (-fprofile-dir): Minor grammatical fixes.
13863 (-fbranch-probabilities): Likewise.
13865 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13869 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13871 (no_real_insns_p, schedule_block, set_priorities): Drop special
13872 treatment of boundary debug insns.
13873 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13874 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13875 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13876 (BOUNDARY_DEBUG_INSN_P): Likewise.
13877 (SCHEDULE_DEBUG_INSN_P): Likewise.
13878 * sched-rgn.c (init_ready_list): Drop special treatment of
13879 boundary debug insns.
13880 * final.c (rest_of_clean-state): Clear notes' BB.
13882 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13884 * Makefile.in (LAMBDA_H): Removed.
13885 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13886 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13887 lambda-trans.o, and tree-loop-linear.o.
13888 (lto-symtab.o): Remove dependence on LAMBDA_H.
13889 (tree-loop-linear.o): Remove rule.
13890 (lambda-mat.o): Same.
13891 (lambda-trans.o): Same.
13892 (lambda-code.o): Same.
13893 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13894 (tree-vect-slp.o): Same.
13895 * hwint.h (gcd): Moved here.
13896 (least_common_multiple): Same.
13897 * lambda-code.c: Removed.
13898 * lambda-mat.c: Removed.
13899 * lambda-trans.c: Removed.
13900 * lambda.h: Removed.
13901 * tree-loop-linear.c: Removed.
13902 * lto-symtab.c: Do not include lambda.h.
13903 * omega.c (gcd): Removed.
13904 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13905 * tree-data-ref.c (print_lambda_vector): Moved here.
13906 (lambda_vector_copy): Same.
13907 (lambda_matrix_copy): Same.
13908 (lambda_matrix_id): Same.
13909 (lambda_vector_first_nz): Same.
13910 (lambda_matrix_row_add): Same.
13911 (lambda_matrix_row_exchange): Same.
13912 (lambda_vector_mult_const): Same.
13913 (lambda_vector_negate): Same.
13914 (lambda_matrix_row_negate): Same.
13915 (lambda_vector_equal): Same.
13916 (lambda_matrix_right_hermite): Same.
13917 * tree-data-ref.h: Do not include lambda.h.
13918 (lambda_vector): Moved here.
13919 (lambda_matrix): Same.
13920 (dependence_level): Same.
13921 (lambda_transform_legal_p): Removed declaration.
13922 (lambda_collect_parameters): Same.
13923 (lambda_compute_access_matrices): Same.
13924 (lambda_vector_gcd): Same.
13925 (lambda_vector_new): Same.
13926 (lambda_vector_clear): Same.
13927 (lambda_vector_lexico_pos): Same.
13928 (lambda_vector_zerop): Same.
13929 (lambda_matrix_new): Same.
13930 * tree-flow.h (least_common_multiple): Removed declaration.
13931 * tree-parloops.c (lambda_trans_matrix): Moved here.
13932 (LTM_MATRIX): Same.
13933 (LTM_ROWSIZE): Same.
13934 (LTM_COLSIZE): Same.
13935 (LTM_DENOMINATOR): Same.
13936 (lambda_trans_matrix_new): Same.
13937 (lambda_matrix_vector_mult): Same.
13938 (lambda_transform_legal_p): Same.
13939 * tree-pass.h (pass_linear_transform): Removed declaration.
13940 * tree-ssa-loop.c (tree_linear_transform): Removed.
13941 (gate_tree_linear_transform): Removed.
13942 (pass_linear_transform): Removed.
13943 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13944 flag_loop_interchange.
13946 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13948 PR tree-optimization/47265
13949 PR tree-optimization/47443
13950 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13951 if name still has some uses.
13953 2011-01-25 Martin Jambor <mjambor@suse.cz>
13955 PR tree-optimization/47382
13956 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13957 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13959 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13961 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13962 sjlj_except_unwind_info.
13964 2011-01-25 Richard Guenther <rguenther@suse.de>
13966 PR tree-optimization/47426
13967 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13968 visible functions results escape.
13970 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13973 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13974 (arm_get_frame_offsets): Use it.
13976 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13977 Jakub Jelinek <jakub@redhat.com>
13979 PR tree-optimization/47271
13980 * tree-if-conv.c (bb_postdominates_preds): New.
13981 (if_convertible_bb_p): Call bb_postdominates_preds.
13982 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13983 (predicate_scalar_phi): Call bb_postdominates_preds.
13985 2011-01-25 Nick Clifton <nickc@redhat.com>
13987 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13988 * config/rx/rx.c (rx_function_value): Likewise.
13989 (rx_promote_function_mode): Likewise.
13990 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13991 in order to make it legitimate.
13992 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13993 make sure that the first operand is the same as the result register.
13994 (addsi3_unspec): Delete.
13995 (subdi3): Do not accept immediate operands.
13996 (subdi3_internal): Likewise.
13998 2011-01-25 Jeff Law <law@redhat.com>
14000 PR rtl-optimization/37273
14001 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14002 handle them like argument loads from stack slots. Do not double
14003 count memory for memory constants and argument loads from stack slots.
14005 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14007 PR tree-optimization/47427
14008 PR tree-optimization/47428
14009 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14010 coalesce if the new root var would be TREE_READONLY.
14012 2011-01-25 Richard Guenther <rguenther@suse.de>
14014 PR middle-end/47414
14015 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14016 correct type for TBAA.
14018 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14020 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14021 (close_phi_written_to_memory): Call for_each_index with
14022 dr_indices_valid_in_loop.
14024 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14026 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14027 when it is initialized.
14029 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14031 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14032 call to graphite_find_data_references_in_stmt.
14033 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14034 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14035 call to graphite_find_data_references_in_stmt.
14036 (analyze_drs_in_stmts): Same.
14037 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14038 in which the scalar analysis of indices is performed.
14039 (create_data_ref): Same. Update call to dr_analyze_indices.
14040 (find_data_references_in_stmt): Update call to create_data_ref.
14041 (graphite_find_data_references_in_stmt): Same.
14042 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14044 (create_data_ref): Same.
14045 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14046 call to create_data_ref.
14048 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14050 * graphite-sese-to-poly.c (build_poly_scop): Move
14051 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14053 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14055 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14056 VAR_DECL, PARM_DECL, and RESULT_DECL.
14058 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14060 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14061 in a reduction PBB.
14062 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14063 that have already been marked as PBB_IS_REDUCTION.
14065 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14067 * graphite-scop-detection.c (same_close_phi_node): New.
14068 (remove_duplicate_close_phi): New.
14069 (make_close_phi_nodes_unique): New.
14070 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14072 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14074 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14075 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14076 of both data references to be the same.
14078 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14080 * graphite-dependences.c (build_lexicographical_constraint): Remove
14081 the gdim parameter.
14082 (build_lexicographical_constraint): Adjust call to
14083 ppl_powerset_is_empty.
14084 (dependence_polyhedron): Same.
14085 (graphite_legal_transform_dr): Same.
14086 (graphite_carried_dependence_level_k): Same.
14087 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14089 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14091 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14093 * graphite-sese-to-poly.c
14094 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14095 (close_phi_written_to_memory): New.
14096 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14099 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14101 * doc/install.texi: Update the expected version number of PPL to 0.11.
14102 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14103 #if PPL_VERSION_MINOR < 11.
14105 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14107 * graphite-dependences.c: Include graphite-cloog-util.h.
14108 (new_poly_ddr): Inlined into dependence_polyhedron.
14109 (free_poly_ddr): Moved close by new_poly_ddr.
14110 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14111 Early return NULL when ppl_powerset_is_empty returns true.
14112 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14113 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14114 (graphite_legal_transform_dr): Call new_poly_ddr.
14115 (graphite_carried_dependence_level_k): Same.
14116 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14117 (dot_transformed_deps_stmt_1): Removed.
14118 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14119 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14120 (dot_deps_1): Call dot_deps_2.
14121 * Makefile.in (graphite-dependences.o): Add missing dependence on
14122 graphite-cloog-util.h.
14124 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14126 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14127 (build_lexicographical_constraint): Same.
14128 (dependence_polyhedron_1): Same.
14129 (graphite_legal_transform_dr): Same.
14130 (graphite_carried_dependence_level_k): Same.
14131 * graphite-ppl.c (ppl_powerset_is_empty): New.
14132 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14133 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14135 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14137 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14138 the "a followed by b" relation and document it.
14140 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14142 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14143 iteration when the bag of constraints is empty.
14145 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14147 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14149 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14151 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14152 nest and two loop depths as parameters.
14153 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14154 lst_perfect_nestify.
14156 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14158 * graphite-dependences.c (print_pddr): Call
14159 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14161 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14163 * graphite-ppl.c (debug_gmp_value): New.
14164 * graphite-ppl.h (debug_gmp_value): Declared.
14166 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14168 * doc/install.texi: Document availability of cloog-0.16.
14170 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14172 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14173 invalid postdominance info.
14175 2011-01-24 Jan Hubicka <jh@suse.cz>
14178 * doc/extend.texi (weak pragma): Drop claim that it must
14179 appear before definition.
14180 * varasm.c (merge_weak, declare_weak): Only sanity check
14181 that DECL is not output at a time it is declared weak.
14183 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14185 * machmode.def: Fixed comments.
14187 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14189 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14191 2011-01-24 Paul Koning <ni1d@arrl.net>
14193 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14196 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14199 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14200 (block_info): Add scanned and prev.
14201 (move_or_delete_vzeroupper_2): Return if the basic block
14202 has been scanned and the upper 128bit state is unchanged
14203 from the last scan.
14204 (move_or_delete_vzeroupper_1): Return true if the exit
14206 (move_or_delete_vzeroupper): Visit basic blocks using the
14207 work-list based algorithm based on vt_find_locations in
14210 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14212 2011-01-24 Nick Clifton <nickc@redhat.com>
14214 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14215 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14216 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14217 then define __v850e1__.
14218 * doc/invoke.texi: Document -mv850es.
14220 2011-01-24 Richard Henderson <rth@redhat.com>
14222 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14223 compound unordered comparisons.
14224 * config/rx/rx.c (rx_split_fp_compare): Remove.
14225 * config/rx/rx-protos.h: Update.
14226 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14227 (cbranchsf4): Don't call rx_split_fp_compare.
14228 (*cbranchsf4): Use rx_split_cbranch.
14229 (*cmpsf): Don't accept "i" constraint.
14230 (*conditional_branch): Only valid after reload.
14231 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14233 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14236 * config/rs6000/altivec.md (vector constant splitters): Add
14237 support for creating vector single precision constants if -mvsx is
14238 used and we would create the constant using Altivec primitives.
14240 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14241 Richard Sandiford <rdsandiford@googlemail.com>
14243 PR rtl-optimization/47166
14244 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14245 mechanism for PRE_MODIFY and POST_MODIFY.
14246 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14249 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14251 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14253 2011-01-22 Jan Hubicka <jh@suse.cz>
14256 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14258 2011-01-22 Jan Hubicka <jh@suse.cz>
14260 PR tree-optimization/43884
14262 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14263 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14265 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14267 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14268 * config/s390/s390.c (s390_register_move_cost,
14269 s390_memory_move_cost): New.
14270 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14272 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14274 PR middle-end/47401
14275 * except.c (sjlj_assign_call_site_values): Move setting the
14276 crtl->uses_eh_lsda flag to ...
14277 (sjlj_mark_call_sites): ... here.
14278 (sjlj_emit_function_enter): Support NULL dispatch label.
14279 (sjlj_build_landing_pads): In a function with no landing pads
14280 that still has must-not-throw regions, generate code to register
14281 a personality function with empty LSDA.
14283 2011-01-21 Richard Henderson <rth@redhat.com>
14285 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14287 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14289 * compare-elim.c: New file.
14290 * Makefile.in (OBJS-common): Add it.
14291 (compare-elim.o): New.
14292 * common.opt (fcompare-elim): New.
14293 * opts.c (default_options_table): Add OPT_fcompare_elim.
14294 * tree-pass.h (pass_compare_elim_after_reload): New.
14295 * passes.c (init_optimization_passes): Add it.
14296 * recog.h: Protect against re-inclusion.
14297 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14298 * doc/invoke.texi (-fcompare-elim): Document it.
14299 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14300 * doc/tm.texi: Rebuild.
14302 2011-01-22 Nick Clifton <nickc@redhat.com>
14304 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14305 rx_split_fp_compare.
14307 2011-01-22 Nick Clifton <nickc@redhat.com>
14309 * config/rx/rx.md (UNSPEC_CONST): New.
14310 (deallocate_and_return): Wrap the amount popped off the stack in
14311 an UNSPEC_CONST in order to stop it being rejected by
14312 -mmax-constant-size.
14313 (pop_and_return): Add a "(return)" rtx.
14314 (call): Drop the immediate operand.
14315 (call_internal): Likewise.
14316 (call_value): Likewise.
14317 (call_value_internal): Likewise.
14318 (sibcall_internal): Likewise.
14319 (sibcall_value_internal): Likewise.
14320 (sibcall): Likewise. Generate an explicit call using
14322 (sibcall_value): Likewise.
14323 (mov<>): FAIL if a constant operand is not legitimate.
14324 (addsi3_unpsec): New pattern.
14326 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14327 (ok_for_max_constant): New function.
14328 (gen_safe_add): New function.
14329 (rx_expand_prologue): Use gen_safe_add.
14330 (rx_expand_epilogue): Likewise.
14331 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14334 2011-01-21 Jeff Law <law@redhat.com>
14336 PR tree-optimization/47053
14337 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14338 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14339 statements are deleted.
14340 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14341 is nonempty, then purge dead edges and cleanup the CFG.
14343 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14346 Temporarily revert:
14347 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14349 * tree-dfa.c (create_var_ann): Mark variable as used.
14351 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14353 PR middle-end/45566
14354 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14355 notes from other section in hot/cold partitioning even if
14356 last_action is -3. Increment call_site_base.
14358 PR rtl-optimization/47366
14359 * fwprop.c (forward_propagate_into): Return bool. If
14360 any changes are made, -fnon-call-exceptions is used and
14361 REG_EH_REGION note is present, call purge_dead_edges
14362 and return true if it purged anything.
14363 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14364 any EH edges were purged.
14366 2011-01-21 Jeff Law <law@redhat.com>
14368 PR rtl-optimization/41619
14369 * caller-save.c (setup_save_areas): Break out code to determine
14370 which hard regs are live across calls by examining the reload chains
14371 so that it is always used.
14372 Eliminate code which checked REG_N_CALLS_CROSSED.
14374 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14376 PR tree-optimization/47355
14377 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14378 NOP has non-debug uses beyond PHIs in new_bb.
14380 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14383 * cfgexpand.c (account_used_vars_for_block): Only account vars
14384 that are annotated as used.
14385 (estimated_stack_frame_size): Don't set TREE_USED.
14386 * tree-dfa.c (create_var_ann): Mark variable as used.
14388 2011-01-21 Richard Guenther <rguenther@suse.de>
14390 PR middle-end/47395
14391 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14393 2011-01-21 Richard Guenther <rguenther@suse.de>
14395 PR tree-optimization/47365
14396 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14397 (vn_reference_lookup_pieces): Adjust.
14398 (vn_reference_lookup): Likewise.
14399 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14400 (vn_reference_lookup_3): Only look through kills if in
14401 VN_WALKREWRITE mode.
14402 (vn_reference_lookup_pieces): Adjust.
14403 (vn_reference_lookup): Likewise.
14404 (visit_reference_op_load): Likewise.
14405 (visit_reference_op_store): Likewise.
14406 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14407 (compute_avail): Likewise.
14408 (eliminate): Likewise.
14410 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14412 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14413 DECL_IGNORED_P non-reg vars if they are used.
14415 PR tree-optimization/47391
14416 * varpool.c (const_value_known_p): Return false if
14419 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14422 * config/i386/i386.c (ix86_local_alignment): Handle
14423 case for va_list_type_node is nil.
14424 (ix86_canonical_va_list_type): Likewise.
14426 2011-01-21 Alan Modra <amodra@gmail.com>
14428 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14429 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14431 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14433 * config/arm/arm.md (define_attr type): Rename f_load
14434 and f_store to f_fpa_load and f_fpa_store. Update.
14435 (write_conflict): Deal with rename fallout.
14436 (*push_fp_multi): Likewise.
14437 * config/arm/fpa.md (f_load): Use f_fpa_load.
14438 (f_store): Use f_fpa_store.
14439 (*movsf_fpa): Likewise.
14440 (*movdf_fpa): Likewise.
14441 (*movxf_fpa): Likewise.
14442 (*thumb2_movsf_fpa): Likewise.
14443 (*thumb2_movdf_fpa): Likewise.
14444 (*thumb2_movxf_fpa): Likewise.
14445 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14446 f_loadd and f_stored.
14447 (*thumb2_movdi_vfp): Likewise.
14448 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14449 (*thumb2_movsi_vfp): Likewise.
14450 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14451 Use f_loads instead of f_load.
14452 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14454 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14456 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14457 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14458 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14459 (xtensa_mode_dependent_address_p): New function.
14460 (constantpool_address_p): Make static. Change return type to bool.
14461 Change argument type to const_rtx. Use CONST_INT_P predicate.
14463 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14466 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14468 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14471 * cfgexpand.c (expand_debug_expr): Instead of generating
14472 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14475 2011-01-20 Richard Guenther <rguenther@suse.de>
14477 PR middle-end/47370
14478 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14479 the pointer operand of MEM_REFs.
14481 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14483 PR tree-optimization/46130
14484 * ipa-split.c (consider_split): If return_bb contains non-virtual
14485 PHIs other than for retval or if split_function would not adjust it,
14488 2011-01-20 Richard Guenther <rguenther@suse.de>
14490 PR tree-optimization/47167
14491 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14492 Revert previous change, only avoid enumeral type changes.
14494 2011-01-19 Mike Stump <mikestump@comcast.net>
14496 * doc/tm.texi.in (BRANCH_COST): Englishify.
14497 * doc/tm.texi (BRANCH_COST): Likewise.
14499 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14502 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14503 (gen_scheduled_generic_parms_dies): New functions.
14504 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14505 generation for the end of CU compilation.
14506 (dwarf2out_finish): Generate template parameters DIEs here.
14508 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14511 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14512 debug bind stmt on merge edges.
14514 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14518 * function.c (instantiate_expr): Instantiate incoming rtl of
14519 implicit arguments, and recurse on VALUE_EXPRs.
14520 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14521 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14523 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14525 * c-parser.c (c_parser_for_statement): Initialize
14526 collection_expression.
14528 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14530 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14532 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14534 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14535 (LINK_SHLIB_SPEC): Don't use %(link_path).
14536 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14538 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14540 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14541 (NO_SHARED_LIB_SUPPORT): Remove.
14542 (LINK_SHLIB_SPEC): Remove one conditional definition.
14544 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14546 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14548 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14549 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14550 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14551 %{call_shared} and conditionals on these options not being passed.
14552 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14555 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14557 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14560 * ipa-split.c: Spelling fixes.
14562 2011-01-19 Richard Henderson <rth@redhat.com>
14564 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14565 (*mulsi3): Likewise.
14567 * longlong.h [__mn10300__] (count_leading_zeros): New.
14568 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14569 [__mn10300__] (add_ssaaaa, subddmmss): New.
14570 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14571 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14573 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14575 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14577 2011-01-19 Richard Henderson <rth@redhat.com>
14579 * config/mn10300/mn10300.md (addsi3_flags): New.
14580 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14581 (subsi3_flags, subc_internal, subdi3): New.
14582 (subdi3_internal, *subdi3_degenerate): New.
14583 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14585 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14586 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14587 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14588 * config/mn10300/mn10300-protos.h: Update.
14589 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14590 (return_ret): Likewise. Rename from return_internal_regs.
14591 (return_internal): Remove.
14593 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14594 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14595 (mn10300_legitimate_constant_p): Likewise.
14596 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14597 (mn10300_frame_size): New.
14598 (mn10300_expand_prologue): Use it.
14599 (mn10300_expand_epilogue): Likewise.
14600 (mn10300_initial_offset): Likewise.
14601 * config/mn10300/mn10300-protos.h: Update.
14602 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14603 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14604 (prologue, epilogue, return_internal): Tidy output code.
14605 (mn10300_store_multiple_operation, return): Likewise.
14606 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14607 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14608 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14609 (load_pic, am33_load_pic): New.
14610 (mn10300_load_pic0, mn10300_load_pic1): New.
14612 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14613 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14614 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14615 (cc_flags_for_mode, cc_flags_for_code): New.
14616 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14617 overflow flag is not valid. Validate that the flags we need
14618 for the comparison are valid.
14619 (mn10300_output_cmp): Remove.
14620 (mn10300_output_add): New.
14621 (mn10300_select_cc_mode): Use cc_flags_for_code.
14622 (mn10300_split_cbranch): New.
14623 (mn10300_match_ccmode): New.
14624 (mn10300_split_and_operand_count): New.
14625 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14627 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14628 (addsi3): ... here. Use mn10300_output_add.
14629 (*addsi3_flags): New.
14630 (*am33_subsi3, *mn10300_subsi3): Merge...
14631 (subsi3): ... here. Use attribute isa.
14632 (*subsi3_flags): New.
14633 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14635 (*am33_andsi3, *mn10300_andsi3): Merge...
14636 (andsi3): ... here.
14637 (*andsi3_flags): New.
14638 (andsi3 splitters): New.
14639 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14640 (iorsi3): ... here.
14641 (*iorsi3_flags): New.
14642 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14643 (xorsi3): ... here.
14644 (*xorsi3_flags): New.
14645 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14646 (one_cmplsi2): ... here.
14647 (*one_cmplsi2_flags): New.
14648 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14649 instead of "dax" in constraints. Use mn10300_split_cbranch.
14650 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14651 use matching constraints to eliminate a self-comparison.
14652 (*integer_conditional_branch): Rename from integer_conditional_branch.
14653 Use int_mode_flags to match CC_REG.
14654 (*cbranchsi4_btst, *btstsi): New.
14655 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14656 mn10300_split_cbranch.
14657 (*am33_cmpsf): Rename from am33_cmpsf.
14658 (*float_conditional_branch): Rename from float_conditional_branch.
14659 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14660 (zero_extendqisi2): ... here.
14661 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14662 (zero_extendhisi2): ... here.
14663 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14664 (extendqisi2): ... here.
14665 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14666 (extendhisi2): ... here.
14667 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14668 (ashlsi3): ... here.
14669 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14670 (lshrsi3): ... here.
14671 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14672 (ashrsi3): ... here.
14673 (consecutive add peephole): Remove.
14674 * config/mn10300/predicates.md (label_ref_operand): New.
14675 (int_mode_flags): New.
14676 (CCZN_comparison_operator): New.
14678 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14679 (throughput_42_latency_43): New reservation.
14680 (mulsidi3, umulsidi3): New expanders.
14681 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14682 the MDR register to allocation; separately allocate the low and
14683 high parts of the DImode result.
14684 (umulsidi3_internal): Similarly.
14685 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14686 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14687 (udivsi3, umodsi3): Remove.
14688 (udivmodsi4, divmodsi4): New expanders.
14689 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14690 (*divmodsi4): Simiarly.
14691 (ext_internal): New.
14693 * config/mn10300/constraints.md ("z"): New constraint.
14694 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14695 (FIXED_REGISTERS): Don't fix MDR.
14696 (CALL_USED_REGSITERS): Reformat nicely.
14697 (REG_ALLOC_ORDER): Add MDR.
14698 (enum regclass): Add MDR_REGS.
14699 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14700 (IRA_COVER_CLASSES): Add MDR_REGS.
14701 (REGNO_REG_CLASS): Handle MDR_REG.
14702 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14703 (mn10300_register_move_cost): Likewise.
14704 * config/mn10300/mn10300.md (MDR_REG): New.
14705 (*movsi_internal): Handle moves to/from MDR_REGS.
14707 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14709 (mn10300_secondary_reload): Tidy combination reload classes.
14710 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14711 addresses for AM33. Allow symbolic offsets for reg+imm.
14712 (mn10300_regno_in_class_p): New.
14713 (mn10300_legitimize_reload_address): New.
14714 * config/mn10300/mn10300.h (enum reg_class): Remove
14715 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14716 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14717 SP_OR_GENERAL_REGS.
14718 (REG_CLASS_NAMES): Update to match.
14719 (REG_CLASS_CONTENTS): Likewise.
14720 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14721 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14722 (REGNO_IN_RANGE_P): Remove.
14723 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14724 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14725 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14726 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14727 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14728 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14729 (REGNO_GENERAL_P): New.
14730 (HAVE_POST_MODIFY_DISP): New.
14731 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14732 (LEGITIMIZE_RELOAD_ADDRESS): New.
14733 * config/mn10300/mn10300-protos.h: Update.
14735 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14736 DATA_REGS for AM33 stack-pointer destination.
14737 (mn10300_preferred_output_reload_class): Likewise.
14738 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14739 into a form appropriate for ...
14740 (TARGET_SECONDARY_RELOAD): New.
14741 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14742 * config/mn10300/mn10300-protos.h: Update.
14743 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14744 reload_insi; use the "A" constraint for the scratch; handle AM33
14745 moves of sp to non-address registers.
14747 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14748 (*movqi_internal): ... here.
14749 (*am33_movhi, *mn10300_movhi): Merge into...
14750 (*movhi_internal): ... here.
14751 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14752 as the source/destination of moves from/to SP.
14753 (movsf): Only allow for AM33-2.
14754 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14755 any integer constant constraint. Only allow for AM33-2. Tidy
14756 all of the alternative outputs.
14757 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14758 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14760 (udivsi3, umodsi3): New patterns for MN103 only.
14762 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14764 * doc/tm.texi.in: Spell out that a lack of register class unions
14766 * doc/tm.texi: Regenerate.
14768 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14770 PR rtl-optimization/47337
14771 * dce.c (check_argument_store): New function.
14772 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14774 PR tree-optimization/47290
14775 * tree-eh.c (infinite_empty_loop_p): New function.
14776 (cleanup_empty_eh): Use it.
14778 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14781 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14782 (a64_expand_widen_sum): Ditto.
14783 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14784 (vec_extract_evenodd_help): Ditto.
14785 (vec_extract_evenv4hi): Ditto.
14786 (vec_extract_oddv4hi): Ditto.
14787 (vec_extract_evenv2si): Ditto.
14788 (vec_extract_oddv2si): Ditto.
14789 (vec_extract_evenv2sf): Ditto.
14790 (vec_extract_oddv2sf): Ditto.
14791 (vec_pack_trunc_v4hi: Ditto.
14792 (vec_pack_trunc_v2si): Ditto.
14793 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14794 (vec_interleave_highv8qi): Ditto.
14796 (vec_extract_oddv8qi): Ditto.
14797 (vec_interleave_lowv4hi): Ditto.
14798 (vec_interleave_highv4hi): Ditto.
14799 (vec_interleave_lowv2si): Ditto.
14800 (vec_interleave_highv2si): Ditto.
14802 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14804 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14805 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14806 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14807 (pa_c_mode_for_suffix): New.
14808 (TARGET_EXPAND_BUILTIN): Define.
14809 (TARGET_C_MODE_FOR_SUFFIX): Define.
14810 (pa_builtins): Define.
14811 (pa_init_builtins): Register __float128 type and init new support
14813 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14814 * config/pa/quadlib.c (_U_Qfcopysign): New.
14816 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14818 PR middle-end/46894
14819 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14820 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14823 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14825 PR tree-optimization/47179
14826 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14827 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14829 2011-01-18 Richard Guenther <rguenther@suse.de>
14831 PR rtl-optimization/47216
14832 * emit-rtl.c: Include tree-flow.h.
14833 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14834 of replicating it with different semantics.
14835 * Makefile.in (emit-rtl.o): Adjust.
14837 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14839 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14840 (cortex_a9_dp): Handle neon types correctly.
14842 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14844 PR rtl-optimization/47299
14845 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14846 subtarget. Use normal multiplication if both operands are constants.
14847 * expmed.c (expand_widening_mult): Don't try to optimize constant
14848 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14851 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14853 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14854 spacing after 'e.g.', typos, comma, hyphenation.
14856 2011-01-17 Richard Henderson <rth@redhat.com>
14858 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14859 (rx_restricted_mem_operand): New.
14860 (rx_shift_operand): Use register_operand.
14861 (rx_source_operand, rx_compare_operand): Likewise.
14862 * config/rx/rx.md (addsi3_flags): New expander.
14863 (adddi3): Rewrite as expander.
14864 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14865 (subsi3_flags): New expander.
14866 (subdi3): Rewrite as expander.
14867 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14869 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14870 (rx_init_builtins): Remove sat builtin.
14871 (rx_expand_builtin): Likewise.
14872 * config/rx/rx.md (ssaddsi3): New.
14873 (*sat): Rename from sat. Represent the CC_REG input.
14875 * config/rx/predicates.md (rshift_operator): New.
14876 * config/rx/rx.c (rx_expand_insv): Remove.
14877 * config/rx/rx-protos.h: Update.
14878 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14879 operand to the canonical position.
14880 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14881 (*bitclr, *bitclr_in_memory): Similarly.
14882 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14883 (insv): Retain the zero_extract in the expansion.
14885 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14886 (bswaphi2, bitinvert, revw): Likewise.
14888 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14889 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14890 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14891 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14892 (bitset, bitset_in_memory): Likewise.
14893 (bitinvert, bitinvert_in_memory): Likewise.
14894 (bitclr, bitclr_in_memory): Likewise.
14895 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14896 (rx_strend, rx_cmpstrn): Likewise.
14897 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14898 (bitop peep2 patterns): Remove.
14900 * config/rx/rx.c (rx_match_ccmode): New.
14901 * config/rx/rx-protos.h: Update.
14902 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14903 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14904 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14905 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14906 (fix_truncsfsi2, floatsisf2): Likewise.
14907 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14908 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14909 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14910 (*subsi3_flags, *xorsi3_flags): New.
14912 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14914 * config/rx/rx.c (rx_print_operand): Remove workaround for
14915 unsplit comparison operations.
14917 * config/rx/rx.md (movsicc): Split after reload.
14918 (*movsicc): Merge *movsieq and *movsine via match_operator.
14919 (*stcc): New pattern.
14921 * config/rx/rx.c (rx_float_compare_mode): Remove.
14922 * config/rx/rx.h (rx_float_compare_mode): Remove.
14923 * config/rx/rx.md (cstoresi4): Split after reload.
14924 (*sccc): New pattern.
14926 * config/rx/predicates.md (label_ref_operand): New.
14927 (rx_z_comparison_operator): New.
14928 (rx_zs_comparison_operator): New.
14929 (rx_fp_comparison_operator): New.
14930 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14931 Validate that the flags are set properly for the comparison.
14932 (rx_gen_cond_branch_template): Remove.
14933 (rx_cc_modes_compatible): Remove.
14934 (mode_from_flags): New.
14935 (flags_from_code): Rename from flags_needed_for_conditional.
14936 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14937 (rx_select_cc_mode): Likewise.
14938 (rx_split_fp_compare): New.
14939 (rx_split_cbranch): New.
14940 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14941 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14942 (*cbranchsf4): Similarly.
14943 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14944 match_operator and rx_split_cbranch.
14945 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14946 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14947 (*cmpsi): Rename from cmpsi.
14948 (*tstsi): Rename from tstsi.
14949 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14950 (*conditional_branch): Rename from conditional_branch.
14951 (*reveresed_conditional_branch): Remove.
14952 (b<code>): Remove expander.
14953 * config/rx/rx-protos.h: Update.
14955 * config/rx/rx.c (rx_compare_redundant): Remove.
14956 * config/rx/rx.md (cmpsi): Don't use it.
14957 * config/rx/rx-protos.h: Update.
14959 * config/rx/rx-modes.def (CC_F): New mode.
14960 * config/rx/rx.c (rx_select_cc_mode): New.
14961 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14962 * config/rx/rx-protos.h: Update.
14964 2011-01-17 Richard Henderson <rth@redhat.com>
14966 * except.c (dump_eh_tree): Fix stray ; after for statement.
14968 2011-01-17 Richard Guenther <rguenther@suse.de>
14970 PR tree-optimization/47313
14971 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14972 handling before copying the body. Properly deal with
14973 by-reference result in SSA form.
14975 2011-01-17 Ian Lance Taylor <iant@google.com>
14978 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14979 (struct_value_alias_set): Don't define.
14980 (sparc_option_override): Don't set sparc_sr_alias_set and
14981 struct_value_alias_set.
14982 (save_or_restore_regs): Use gen_frame_mem rather than calling
14984 (sparc_struct_value_rtx): Likewise.
14986 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14989 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14990 (_mm_maskstore_pd): Likewise.
14991 (_mm_maskload_ps): Likewise.
14992 (_mm_maskstore_ps): Likewise.
14993 (_mm256_maskload_pd): Change mask to __m256i.
14994 (_mm256_maskstore_pd): Likewise.
14995 (_mm256_maskload_ps): Likewise.
14996 (_mm256_maskstore_ps): Likewise.
14998 * config/i386/i386-builtin-types.def: Updated.
14999 (ix86_expand_special_args_builtin): Likewise.
15001 * config/i386/i386.c (bdesc_special_args): Update
15002 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15003 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15004 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15005 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15007 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15008 Use <avxpermvecmode> on mask register.
15009 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15011 2011-01-17 Olivier Hainque <hainque@adacore.com>
15012 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15013 Eric Botcazou <ebotcazou@adacore.com>
15016 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15017 if <= USHRT_MAX in 32-bit mode.
15019 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15021 * doc/install.texi (Configuration, Specific): Wrap long
15022 lines in examples. Allow line wrapping in long options
15023 and URLs where beneficial for PDF output.
15025 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15027 * config/mips/mips.c (mips_classify_symbol): Don't return
15028 SYMBOL_PC_RELATIVE for nonlocal labels.
15030 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15032 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15034 2011-01-15 Jan Hubicka <jh@suse.cz>
15036 PR tree-optimization/47276
15037 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15038 declarations as needed.
15040 2011-01-15 Martin Jambor <mjambor@suse.cz>
15042 * common.opt (fdevirtualize): New flag.
15043 * doc/invoke.texi (Option Summary): Document it.
15044 * opts.c (default_options_table): Add devirtualize flag.
15045 * ipa-prop.c (detect_type_change): Return immediately if
15046 devirtualize flag is not set.
15047 (detect_type_change_ssa): Likewise.
15048 (compute_known_type_jump_func): Likewise.
15049 (ipa_analyze_virtual_call_uses): Likewise.
15051 2011-01-14 Martin Jambor <mjambor@suse.cz>
15053 PR tree-optimization/45934
15054 PR tree-optimization/46302
15055 * ipa-prop.c (type_change_info): New type.
15056 (stmt_may_be_vtbl_ptr_store): New function.
15057 (check_stmt_for_type_change): Likewise.
15058 (detect_type_change): Likewise.
15059 (detect_type_change_ssa): Likewise.
15060 (compute_complex_assign_jump_func): Check for dynamic type change.
15061 (compute_complex_ancestor_jump_func): Likewise.
15062 (compute_known_type_jump_func): Likewise.
15063 (compute_scalar_jump_functions): Likewise.
15064 (ipa_analyze_virtual_call_uses): Likewise.
15065 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15067 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15069 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15070 * config/i386/i386.opt (msse5): New Alias.
15072 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15074 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15075 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15076 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15077 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15079 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15081 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15083 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15084 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15085 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15086 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15088 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15092 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15094 2011-01-14 Mike Stump <mikestump@comcast.net>
15096 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15097 * config/fr30/fr30.md: Likweise
15098 (movsi_push): Likewise.
15099 (movsi_pop): Likewise.
15100 (enter_func): Likewise.
15101 * config/moxie/moxie.md (movsi_push): Likewise.
15102 (movsi_pop): Likewise.
15104 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15106 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15107 %{no_archive} %{exact_version}.
15108 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15109 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15110 %{no_archive} %{exact_version}.
15111 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15112 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15113 * config/mips/vxworks.h: Likewise.
15115 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15117 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15119 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15121 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15122 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15124 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15126 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15129 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15131 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15133 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15134 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15136 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15137 Don't handle -shlib.
15139 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15141 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15142 (CC1_SPEC): Don't handle -profile.
15144 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15146 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15147 * config/mips/mips.h (CC1_SPEC): Likewise.
15149 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15151 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15152 * config/mips/mips.h (CC1_SPEC): Likewise.
15154 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15156 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15157 * config/m32r/linux.h (LINK_SPEC): Likewise.
15158 * config/mips/linux.h (LINK_SPEC): Likewise.
15159 * config/mips/linux64.h (LINK_SPEC): Likewise.
15160 * config/sparc/linux.h (LINK_SPEC): Likewise.
15161 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15162 LINK_SPEC): Likewise.
15163 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15165 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15167 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15169 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15171 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15173 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15174 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15176 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15178 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15180 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15182 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15183 supports -Bstatic/-Bdynamic.
15184 * configure: Regenerate.
15186 2011-01-14 Jan Hubicka <jh@suse.cz>
15187 Jack Howarth <howarth@bromo.med.uc.edu>
15190 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15191 when checking debug_info_level. Test write_symbols instead of
15192 debug_hooks->var_location when setting flag_var_tracking_uninit.
15194 2011-01-14 Richard Guenther <rguenther@suse.de>
15196 PR tree-optimization/47179
15197 * target.def (ref_may_alias_errno): New target hook.
15198 * targhooks.h (default_ref_may_alias_errno): Declare.
15199 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15200 (default_ref_may_alias_errno): New function.
15201 * target.h (struct ao_ref_s): Declare.
15202 * tree-ssa-alias.c: Include target.h.
15203 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15204 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15205 (targhooks.o): Likewise.
15206 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15207 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15209 2011-01-14 Richard Guenther <rguenther@suse.de>
15211 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15213 2011-01-14 Richard Guenther <rguenther@suse.de>
15215 PR tree-optimization/47280
15216 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15217 return CFG changes.
15218 (tree_ssa_forward_propagate_single_use_vars): Deal with
15219 CFG changes from associate_plusminus.
15221 2011-01-14 Richard Guenther <rguenther@suse.de>
15223 PR middle-end/47281
15225 2011-01-11 Richard Guenther <rguenther@suse.de>
15227 PR tree-optimization/46076
15228 * tree-ssa.c (useless_type_conversion_p): Conversions from
15229 unprototyped to empty argument list function types are useless.
15231 2011-01-14 Richard Guenther <rguenther@suse.de>
15233 PR tree-optimization/47286
15234 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15236 2011-01-14 Martin Jambor <mjambor@suse.cz>
15238 PR middle-end/46823
15239 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15241 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15243 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15244 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15245 * config/xtensa/xtensa.c (xtensa_libcall_value,
15246 xtensa_function_value_regno_p): New functions.
15247 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15249 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15252 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15254 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15255 New function prototype.
15256 * config/i386/winnt.c (i386_pe_assemble_visibility):
15257 Warn only if attribute was specified by user.
15259 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15262 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15264 (floatunsdidf2_fcfidu): Ditto.
15266 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15268 * config/s390/s390.c (print_operand_address): Replace 'error' with
15269 'output_operand_lossage'.
15270 (print_operand): Likewise.
15272 2011-01-13 Jeff Law <law@redhat.com>
15274 PR rtl-optimization/39077
15275 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15276 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15277 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15278 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15279 * gcse.c (prune_insertions_deletions): New function.
15280 (compute_pre_data): Use it.
15282 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15285 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15287 (prune_unused_types_mark): Use it.
15289 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15291 PR rtl-optimization/45352
15292 * sel-sched.c: Update copyright years.
15293 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15294 in the advancing loop when we have issued issue_rate insns.
15296 2011-01-12 Richard Henderson <rth@redhat.com>
15298 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15299 (TARGET_MD_ASM_CLOBBERS): New.
15301 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15302 (TARGET_DELEGITIMIZE_ADDRESS): New.
15304 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15305 (clzsi2, *bsch): New patterns.
15307 * config/mn10300/mn10300.md (INT): New mode iterator.
15308 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15310 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15311 flag_split_wide_types.
15313 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15314 (mn10300_trampoline_init): Rewrite without a template, an immediate
15315 load and a direct branch.
15316 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15318 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15320 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15321 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15322 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15323 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15325 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15328 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15331 2011-01-12 Jan Hubicka <jh@suse.cz>
15334 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15335 (PLUGIN_COND_CLOSE): New macro.
15336 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15338 2011-01-12 Richard Guenther <rguenther@suse.de>
15341 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15342 register variables in a MEM_REF.
15344 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15346 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15347 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15348 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15349 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15350 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15351 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15352 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15353 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15354 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15355 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15356 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15357 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15358 * config/gnu-user.h: New. Copied from linux.h.
15359 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15360 GNU_USER_TARGET_STARTFILE_SPEC.
15361 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15362 GNU_USER_TARGET_ENDFILE_SPEC.
15363 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15364 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15365 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15366 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15367 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15368 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15369 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15370 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15371 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15372 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15373 * config/arm/linux-eabi.h (CC1_SPEC): Use
15374 GNU_USER_TARGET_CC1_SPEC.
15375 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15376 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15377 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15378 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15379 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15380 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15381 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15382 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15384 2011-01-12 Richard Guenther <rguenther@suse.de>
15387 * doc/invoke.texi (ffast-math): Document it is turned on
15390 2011-01-12 Jan Hubicka <jh@suse.cz>
15392 PR tree-optimization/47233
15393 * opts.c (common_handle_option): Disable ipa-reference with profile
15396 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15398 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15401 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15403 * c-parser.c (c_lex_one_token): Updated and reindented some
15404 comments. No changes in code.
15406 2011-01-11 Ian Lance Taylor <iant@google.com>
15408 * godump.c (go_output_var): Don't output the variable if there is
15409 already a type with the same name.
15411 2011-01-11 Ian Lance Taylor <iant@google.com>
15413 * godump.c (go_format_type): Don't generate float80.
15415 2011-01-11 Richard Henderson <rth@redhat.com>
15417 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15418 declaration. Rewrite for both speed and size.
15419 (mn10300_address_cost_1): Remove.
15420 (mn10300_register_move_cost): New.
15421 (mn10300_memory_move_cost): New.
15422 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15423 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15424 extensions, shifts, BSWAP, CLZ.
15425 (mn10300_wide_const_load_uses_clr): Remove.
15426 (TARGET_REGISTER_MOVE_COST): New.
15427 (TARGET_MEMORY_MOVE_COST): New.
15428 * config/mn10300/mn10300-protos.h: Update.
15429 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15431 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15432 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15433 * config/mn10300/mn10300-protos.h: Update.
15434 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15435 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15436 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15437 (*test_int_bitfield, *test_byte_bitfield): Remove.
15438 (*bit_test, *subreg_bit_test): Remove.
15439 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15441 * config/mn10300/constraints.md ("c"): Rename from "A".
15442 ("A", "D"): New constraint letters.
15443 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15444 (fmssf4, fnmasf4, fnmssf4): Likewise.
15446 * config/mn10300/mn10300.md (isa): New attribute.
15447 (enabled): New attribute.
15449 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15450 (abssf2, negsf2): Define only for hardware fp.
15451 (sqrtsf2): Reformat.
15452 (addsf3, subsf3, mulsf3): Merge expander and insn.
15454 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15455 (DEBUGGER_AUTO_OFFSET): Remove.
15456 (DEBUGGER_ARG_OFFSET): Remove.
15458 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15459 Emit register stores with the same offsets as the hardware.
15460 (mn10300_store_multiple_operation): Don't check that the register
15461 save offsets are monotonic.
15462 * config/mn10300/mn10300-protos.h: Update.
15464 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15466 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15467 in terms of the value on the stack, not the MDR register.
15469 2011-01-11 Jan Hubicka <jh@suse.cz>
15473 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15474 (symbol_alias_set_destroy, symbol_alias_set_contains,
15475 propagate_aliases_backward): Declare.
15476 * lto-streamer-out.c (struct sets): New sturcture.
15477 (trivally_defined_alias): New function.
15478 (output_alias_pair_p): Rewrite.
15479 (output_unreferenced_globals): Fix output of alias pairs.
15480 (produce_symtab): Likewise.
15481 * ipa.c (function_and_variable_visibility): Set weak alias destination
15483 * varasm.c (symbol_alias_set_t): Remove.
15484 (symbol_alias_set_destroy): Export.
15485 (propagate_aliases_forward, propagate_aliases_backward): New functions
15487 (compute_visible_aliases): ... this one; remove.
15488 (trivially_visible_alias): New
15489 (trivially_defined_alias): New.
15490 (remove_unreachable_alias_pairs): Rewrite.
15491 (finish_aliases_1): Reorganize code checking if alias is defined.
15492 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15495 2011-01-11 Richard Guenther <rguenther@suse.de>
15497 PR tree-optimization/46076
15498 * tree-ssa.c (useless_type_conversion_p): Conversions from
15499 unprototyped to empty argument list function types are useless.
15501 2011-01-11 Richard Guenther <rguenther@suse.de>
15503 PR middle-end/45235
15504 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15505 volatile MEMs as MEM_READONLY_P.
15507 2011-01-11 Richard Guenther <rguenther@suse.de>
15509 PR tree-optimization/47239
15510 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15512 2011-01-11 Jeff Law <law@redhat.com>
15514 PR tree-optimization/47086
15515 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15516 IVs from statements that might throw.
15518 2011-01-10 Jan Hubicka <jh@suse.cz>
15521 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15523 2011-01-10 Jan Hubicka <jh@suse.cz>
15526 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15527 when correcting profile.
15529 2011-01-10 Jan Hubicka <jh@suse.cz>
15532 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15533 DECL_FINI_PRIORITY.
15534 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15535 Restore DECL_FINI_PRIORITY.
15537 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15539 * doc/gimple.texi: Fix quoting of multi-word return values in
15540 @deftypefn statements. Ensure presence of return value. Wrap
15541 overlong @deftypefn lines.
15542 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15543 descriptions of removed functions.
15544 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15545 of multi-word return value in @deftypefn statement.
15547 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15549 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15550 (Conditional Expressions, Logical Operators)
15551 (Statement and operand traversals): Do not indent smallexample
15552 code. Fix duplicate function argument in example.
15554 2011-01-10 Jeff Law <law@redhat.com>
15556 PR tree-optimization/47141
15557 * ipa-split.c (split_function): Handle case where we are
15558 returning a value and the return block has a virtual operand phi.
15560 2011-01-10 Jan Hubicka <jh@suse.cz>
15562 PR tree-optimization/47234
15563 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15564 (pass_feedback_split_functions): Declare.
15565 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15567 * ipa-split.c (gate_split_functions): Update comments; disable
15568 split-functions for profile_arc_flag and branch_probabilities.
15569 (gate_feedback_split_functions): New function.
15570 (execute_feedback_split_functions): New function.
15571 (pass_feedback_split_functions): New global var.
15573 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15576 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15577 calling gimple_call_set_cannot_inline.
15579 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15581 * config/darwin-sections.def: Remove unused section.
15583 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15586 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15588 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15591 * c-parser.c (c_parser_declaration_or_fndef): Improved
15594 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15596 * config/i386/winnt.c (i386_pe_start_function): Make sure
15597 to switch back to function's section.
15599 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15603 * plugin.c: Move include of dlfcn.h from here...
15604 * system.h: ... to here.
15606 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15608 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15610 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15611 two extra empty pages in PDF output.
15613 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15616 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15617 for error recovery purposes behave as if it was not specified so
15618 that the default type is usd.
15620 2011-01-07 Jan Hubicka <jh@suse.cz>
15622 PR tree-optmization/46469
15623 * ipa.c (function_and_variable_visibility): Clear needed flags on
15624 nodes with external decls; handle weakrefs merging correctly.
15626 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15628 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15631 2011-01-07 Jan Hubicka <jh@suse.cz>
15633 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15634 and no longer claim that gold is required for linker plugin.
15635 * configure: Regenerate.
15636 * gcc.c (PLUGIN_COND): New macro.
15637 (LINK_COMMAND_SPEC): Use it.
15638 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15639 * config.in (HAVE_LTO_PLUGIN): New.
15640 * configure.ac (--with-lto-plugin): New parameter; autodetect
15643 2011-01-07 Jan Hubicka <jh@suse.cz>
15645 PR tree-optimization/46367
15646 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15647 when we can update original.
15648 (cgraph_mark_inline_edge): Sanity check.
15649 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15651 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15653 * config/spu/spu.h (ASM_COMMENT_START): Define.
15655 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15658 * gcc.c (%>S): New.
15659 (SWITCH_KEEP_FOR_GCC): Likewise.
15660 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15661 (do_spec_1): Handle "%>".
15663 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15665 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15668 * config/i386/i386.c (ix86_delegitimize_address): If
15669 simplify_gen_subreg fails, return orig_x.
15672 * value-prof.c (gimple_stringop_fixed_value): Handle
15673 lhs of the call properly.
15675 2011-01-07 Jan Hubicka <jh@suse.cz>
15678 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15680 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15682 * target.def (function_switched_text_sections): New hook.
15683 * doc/tm.texi: Regenerated.
15684 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15685 * final.c (default_function_switched_text_sections): New.
15686 (final_scan_insn): Call function_switched_text_sections when a
15687 mid-function section change occurs.
15688 * output.h (default_function_switched_text_sections): Declare.
15689 * config/darwin-protos.h (darwin_function_switched_text_sections):
15691 * config/darwin.c (darwin_function_switched_text_sections): New.
15692 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15694 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15696 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15697 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15698 the secondary code fragment when outputting for DWARF == 2.
15700 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15702 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15703 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15705 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15706 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15708 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15711 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15712 when it is not empty.
15714 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15717 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15718 (case ${target}): Add btver1.
15719 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15720 -march=native recognize btver1 processors.
15721 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15722 btver1 def_and_undef
15723 * config/i386/i386.c (struct processor_costs btver1_cost): New
15725 (m_BTVER1): New definition.
15726 (m_AMD_MULTIPLE): Includes m_BTVER1.
15727 (initial_ix86_tune_features): Add btver1 tune.
15728 (processor_target_table): Add btver1 entry.
15729 (static const char *const cpu_names): Add btver1 entry.
15730 (software_prefetching_beneficial_p): Add btver1.
15731 (ix86_option_override_internal): Add btver1 instruction sets.
15732 (ix86_issue_rate): Add btver1.
15733 (ix86_adjust_cost): Add btver1.
15734 * config/i386/i386.h (TARGET_BTVER1): New definition.
15735 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15736 (enum processor_type): Add PROCESSOR_BTVER1.
15737 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15739 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15742 * config/i386/i386.c (legitimize_tls_address)
15743 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15744 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15745 (tls_initial_exec_64_sun): New pattern.
15747 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15749 * doc/invoke.texi (Overall Options): Improve wording and markup
15750 of the description of -wrapper.
15752 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15754 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15755 rdynamic, threads): New Driver options.
15757 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15760 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15761 if coming from .tdata.
15762 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15764 2011-01-06 Jan Hubicka <jh@suse.cz>
15767 * collect2.c (main): Do not enable LTOmode when plugin is active.
15769 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15772 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15773 --version output if supported.
15774 * configure: Regenerate.
15776 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15778 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15781 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15784 * c-convert.c (convert): When converting a complex expression
15785 other than COMPLEX_EXPR to a different complex type, ensure
15786 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15787 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15788 when converting COMPLEX_TYPE.
15790 2011-01-06 Ira Rosen <irar@il.ibm.com>
15792 PR tree-optimization/47139
15793 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15794 only the last reduction value is used outside the loop. Update
15797 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15799 * config/rtems.opt: New.
15800 * config.gcc (*-*-rtems*): Use rtems.opt.
15802 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15804 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15805 processors do not support 3DNow instructions.
15807 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15809 * config/spu/spu.c (spu_option_override): Set parameter
15810 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15812 2011-01-05 Jan Hubicka <jh@suse.cz>
15814 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15815 at the command line.
15817 2011-01-05 Martin Jambor <mjambor@suse.cz>
15820 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15821 deltas on streamed outgoing edges.
15822 (output_node_opt_summary): Output info for outgoing edges only when
15823 the node is in new parameter set.
15824 (output_cgraph_opt_summary): New parameter set, passed to the two
15825 aforementioned functions. Update its forward declaration and its
15828 2011-01-05 Tom Tromey <tromey@redhat.com>
15830 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15831 operator to c_finish_omp_atomic.
15832 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15833 (build_unary_op): Update.
15834 (build_modify_expr): Update.
15835 (build_asm_expr): Update.
15837 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15839 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15840 newly inserted insns.
15841 (pad_bb): Likewise.
15842 (spu_emit_branch_hint): Likewise.
15843 (insert_hbrp_for_ilb_runout): Likewise.
15844 (spu_machine_dependent_reorg): Call df_finish_pass after
15845 schedule_insns returns.
15847 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15849 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15851 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15853 PR tree-optimization/47005
15854 * tree-sra.c (struct access): Add 'non_addressable' bit.
15855 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15856 (decide_one_param_reduction): Return 0 if the parameter is passed by
15857 reference and one of the accesses in the group is non_addressable.
15859 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15861 PR tree-optimization/47056
15862 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15863 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15864 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15866 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15868 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15869 initializer. Skip view conversions from aggregate types.
15871 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15874 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15876 2011-01-04 Philipp Thomas <pth@suse.de>
15878 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15881 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15883 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15884 on empty epilogue sequences.
15886 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15888 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15889 non-static): New Driver options.
15891 2011-01-04 Jie Zhang <jie@codesourcery.com>
15894 * gcc.c (default_compilers[]): Set combinable field to 0
15895 for all assembly languages.
15897 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15899 * config/mips/loongson3a.md: New file.
15900 * config/mips/mips.md: Include loongson3a.md.
15901 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15904 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15906 PR middle-end/47017
15907 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15908 instead of convert_memory_address_addr_space on the base expression.
15910 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15912 * config/spu/spu.c (spu_option_override): Update error text
15913 for bad -march= / -mtune= values.
15915 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15917 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15918 if branch-hint optimization will be performed.
15920 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15922 PR tree-optimization/47148
15923 * ipa-split.c (split_function): Convert arguments to
15924 DECL_ARG_TYPE if possible.
15926 PR tree-optimization/47155
15927 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15928 when computing uns.
15930 PR rtl-optimization/47157
15931 * combine.c (try_combine): If undobuf.other_insn becomes
15932 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15933 and set *new_direct_jump_p too.
15935 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15937 PR tree-optimization/47021
15938 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15940 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15942 * gcc.c (process_command): Update copyright notice dates.
15943 * gcov.c (print_version): Likewise.
15944 * gcov-dump.c (print_version): Likewise.
15945 * mips-tfile.c (main): Likewise.
15946 * mips-tdump.c (main): Likewise.
15948 2011-01-03 Martin Jambor <mjambor@suse.cz>
15950 PR tree-optimization/46801
15951 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15952 aggregate fields start at byte boundary instead of the bit-field flag.
15954 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15957 * gcc.c (main): Revert revision 168407.
15959 2011-01-03 Martin Jambor <mjambor@suse.cz>
15961 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15963 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15965 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15966 vector optab to expand vector/scalar shift, update gimple to vector.
15968 2011-01-03 Martin Jambor <mjambor@suse.cz>
15970 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15973 2011-01-03 Martin Jambor <mjambor@suse.cz>
15975 PR tree-optimization/46984
15976 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15978 (cgraph_create_indirect_edge): Fixed line length.
15979 (cgraph_indirect_call_info): Declare.
15980 (cgraph_make_edge_direct) Update declaration.
15981 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15982 (cgraph_create_indirect_edge): Use it.
15983 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15985 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15986 the new thunk_delta representation.
15987 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15989 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15990 (ipa_read_indirect_edge_info): Likewise.
15991 * lto-cgraph.c (output_edge_opt_summary): New function.
15992 (output_node_opt_summary): Call it on all outgoing edges.
15993 (input_edge_opt_summary): New function.
15994 (input_node_opt_summary): Call it on all outgoing edges.
15996 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15999 * gcc.c (main): Don't check have_o when settting combine_inputs.
16001 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16003 * regrename.c: Add general comment describing the pass.
16004 (struct du_head): Remove 'length' field.
16005 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16006 (regrename_optimize): Do not sort chains. Rework comments, add others.
16007 Force renaming to the preferred class (if any) in the first pass and do
16008 not consider registers that belong to it in the second pass.
16009 (create_new_chain): Do not set 'length' field.
16010 (scan_rtx_reg): Likewise.
16012 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16014 PR tree-optimization/47140
16015 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16016 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16017 to bit_value_binop.
16019 PR rtl-optimization/47028
16020 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16021 parm_birth_insn instead of at the beginning of first bb.
16023 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16025 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16026 Remove the word "see" before "@pxref".
16027 * doc/rtl.texi: Remove the word "see" before "@pxref".
16029 2011-01-01 Jan Hubicka <jh@suse.cz>
16031 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16034 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16037 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16040 Copyright (C) 2011 Free Software Foundation, Inc.
16042 Copying and distribution of this file, with or without modification,
16043 are permitted in any medium without royalty provided the copyright
16044 notice and this notice are preserved.