1 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
3 PR tree-optimization/49199
4 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
5 non-reduction operands are either defined in the loop or
8 2011-05-29 Xinliang David Li <davidxl@google.com>
10 * opts-global.c (handle_common_deferred_options): Handle new options.
11 * passes.c (register_one_dump_file): Call register_pass_name.
12 (execute_one_pass): Check explicit enable/disable flag.
13 (passr_hash): New function.
15 (register_pass_name): Ditto.
16 (get_pass_by_name): Ditto.
20 (disable_pass): Ditto.
21 (is_pass_explicitly_enabled_or_disabled): Ditto.
23 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
25 * config/i386/i386.md (*movoi_internal_avx): Use
26 standard_sse_constant_opcode for alternative 0.
27 (*movti_internal_sse): Ditto.
28 (*movti_internal_rex64): Use standard_sse_constant_opcode for
30 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
32 (*movsi_internal): Ditto.
33 (*movdi_internal): Ditto. Add ssecvt type moves.
35 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
38 * rtlanal.c (simplify_subreg_regno): Adjust comment.
40 2011-05-29 Jakub Jelinek <jakub@redhat.com>
42 PR rtl-optimization/49095
43 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
44 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
46 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
49 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
50 recurse_p argument. Only follow register copies if it is set,
51 and prevent mips_find_pic_call_symbol from recursing.
52 (mips_find_pic_call_symbol): Add a recurse_p argument.
53 Pass it to mips_pic_call_symbol_from_set.
54 (mips_annotate_pic_calls): Update accordingly.
56 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
58 * emit-rtl.c (try_split): Use a loop to search for
59 NOTE_INSN_CALL_ARG_LOCATIONs.
61 2011-05-29 Richard Guenther <rguenther@suse.de>
63 PR tree-optimization/49217
64 * ipa-pure-const.c (propagate_pure_const): Fix typos.
66 2011-05-28 Jan Hubicka <jh@suse.cz>
68 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
70 (string_slot_free): Remove
71 (create_output_block): Initialize obstack.
72 (destroy_output_block): Free obstack.
73 (lto_string_index): Add PERSISTENT parameter; do not duplicate
74 the string unless it needs to be added into the hash.
75 (lto_output_string_with_length): Add persistent attribute;
77 (lto_output_string): Add PERSISTENT parameter.
78 (output_string_cst, output_identifier): Simplify.
79 (lto_output_location_bitpack): Update.
80 (lto_output_builtin_tree): Update.
81 * lto-streamer.h (struct output_block): Add obstack.
82 (lto_output_string, lto_output_string_with_length): Remove
83 declarations; functions are static now.
85 2011-05-28 Jan Hubicka <jh@suse.cz>
87 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
88 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
89 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
90 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
91 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
92 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
93 unpack_ts_decl_with_vis_value_fields,
94 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
95 lto_get_builtin_tree): Use enum and variable length i/o.
96 * basic-block.h (profile_status_d): Add PROFILE_LAST.
97 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
99 (bp_pack_enum, bp_unpack_enum): New macros.
101 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
103 * genrecog.c: Remove redundant forward declarations.
105 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
107 * config.gcc: Deprecate mips*-*-openbsd*.
109 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
112 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
115 2011-05-27 Andrew Pinski <pinskia@gmail.com>
118 * gengtype.c (vec_prefix_type): New function.
119 (note_def_vec): Use vec_prefix_type and change the length
120 attribute to be based on the prefix.
121 * vec.c: Include coretypes.h before vec.h.
122 (struct vec_prefix): Remove.
123 (vec_gc_p_reserve): Change the offsetof to sizeof.
124 (vec_gc_p_reserve_exact): Likewise.
125 (vec_heap_p_reserve): Likewise.
126 (vec_heap_p_reserve_exact): Likewise.
127 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
128 (vec_stack_p_reserve): Change the offsetof to sizeof.
129 (vec_stack_p_reserve_exact): Likewise.
130 * vec.h (struct vec_prefix): New struct definition.
131 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
132 (VEC_T_GTY(T,B)): Likewise.
133 (DEF_VEC_FUNC_P(T)): Use prefix field.
134 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
135 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
137 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
139 PR tree-optimization/46728
140 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
141 (powi_as_mults): Add gimple_set_location.
142 (build_and_insert_call): New.
143 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
144 0.5, 0.25, 0.75, 1./3., or 1./6.
146 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
148 * doc/contrib.texi: Update copyright years.
149 (Contributors): Add Zdenek Sojka.
151 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
153 * c-decl.c (c_push_function_context): Copy the current statement
155 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
156 (finish_struct): Call building_stmt_list_p instead of checking
158 * c-parser.c (c_parser_postfix_expression): Likewise.
159 * c-typeck.c (c_end_compound_stmt): Likewise.
160 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
161 * tree-iterator.c (stmt_list_cache): Change to a VEC.
162 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
163 (free_stmt_list): Likewise.
164 * tree.h (struct tree_statement_list): Include typed_tree instead
166 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
167 as TS_TYPED instead of TS_COMMON.
169 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
170 Uros Bizjak <ubizjak@gmail.com>
172 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
173 (HAVE_AS_IX86_TLSGDPTL): Define.
174 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
175 (HAVE_AS_IX86_TLSLDMPLT): Define.
176 * configure: Regenerate.
177 * config.in: Regenerate.
178 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
179 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
180 TARGET_SUN_TLS, use @tlsgdplt or @plt.
181 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
182 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
184 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
186 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
188 * sched-int.h (struct _haifa_deps_insn_data): New members cond
190 (INSN_COND, INSN_REVERSE_COND): New macros.
191 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
193 (sched_get_condition_with_rev): Cache the results, and look them up
195 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
196 are clobbered by the current insn.
197 * target.def (exposed_pipline): New sched data hook.
198 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
199 * doc/tm.texi: Regenerate.
201 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
203 PR tree-optimization/49170
204 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
207 2011-05-27 Richard Guenther <rguenther@suse.de>
210 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
213 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
215 * haifa-sched.c (sched_scan_info): Remove.
216 (schedule_block): Call sched_extend_luids rather than sched_init_luids
218 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
220 (sched_scan): Remove.
221 (sched_extend_luids): Renamed from luids_extend_insn and no longer
222 static. All callers changed.
223 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
224 static. All callers changed.
225 (sched_init_luids): Remove all arguments except the first. All
226 callers changed. Don't use sched_scan.
227 (haifa_init_h_i_d): Likewise.
228 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
229 manually rather than using sched_init_luids. Likewise with
230 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
231 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
232 rather than sched_init_luids with NULL args.
233 * sel-sched-ir.c (new_insns): Remove variable.
234 (sched_scan): New static function, previously in haifa-sched.c. Remove
235 all arguments but the first two; all callers changed.
236 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
237 rather than sched_init_luids.
238 (sel_init_bbs): Remove second argument. All callers changed.
239 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
241 (create_insn_rtx_from_pattern): Likewise.
242 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
243 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
244 (sched_init_insn_luid, sched_extend_luids): Declare.
245 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
248 2011-05-27 Richard Guenther <rguenther@suse.de>
251 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
252 A CMP B ? (T) true : (T) false for non-integral types T again.
254 2011-05-27 Jan Hubicka <jh@suse.cz>
256 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
257 so 0 means NULL string.
258 (lto_output_string_with_length): ... here.
259 (lto_output_string, output_string_cst, output_identifier): Update
260 handling of NULL strings.
261 (lto_output_location_bitpack): New function.
262 (lto_output_location): Use it.
263 (lto_output_tree_ref): Use output_record_start.
264 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
266 * lto-streamer-in.c (string_for_index): Break out from ...; offset
268 (input_string_internal): ... here;
269 (input_string_cst, input_identifier, lto_input_string): Update handling
271 (lto_input_location_bitpack): New function
272 (lto_input_location): Use it.
273 (unpack_ts_type_common_value_fields): Pack align & alias in var len
275 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
276 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
277 (bp_pack_value): Sanity check the value range.
278 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
280 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
283 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
285 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
286 call_arg_location instructions down the floor.
288 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
290 PR rtl-optimization/49154
291 * ira.c (setup_pressure_classes): Process class without sublcasses
292 as a candidate for pressure classes.
294 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
296 PR rtl-optimization/48575
297 * genrecog.c (position_type): New enum.
298 (position): New structure.
299 (decision): Use position structure instead of a string.
300 (root_pos, peep2_insn_pos_list): New variables.
301 (next_position, compare_positions): New functions.
302 (new_decision): Use position structures instead of strings.
303 (maybe_both_true): Likewise.
304 (change_state): Likewise.
305 (write_tree): Likewise.
306 (make_insn_sequence): Likewise.
308 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
310 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
311 TS_BASE instead of TS_COMMON.
312 (find_decls_types_r): Check for TS_TYPED structure before looking at
314 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
316 (BLOCK_CHAIN): Use new chain field.
318 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
320 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
321 moves expensive on Power7 also.
323 2011-05-26 Richard Guenther <rguenther@suse.de>
325 * fold-const.c (fold_unary_loc): Remove bogus code.
327 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
329 * tree.h (struct tree_identifier): Inherit from tree_typed, not
331 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
332 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
333 TS_BASE instead of TS_COMMON.
334 * varasm.c (assemble_name): Remove assert.
336 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
338 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
340 * libgcc-std.ver: Delete file.
342 2011-05-26 Richard Guenther <rguenther@suse.de>
344 PR tree-optimization/48702
345 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
346 only when we know the base address is within bounds.
347 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
348 assume the base address of TARGET_MEM_REFs is in bounds.
350 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
353 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
354 declaration in TARGET_SOLARIS.
356 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
358 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
359 The instruction is then expanded explicitly.
360 (supported_compare): Callable instruction.
363 2011-05-26 Jakub Jelinek <jakub@redhat.com>
366 * gimplify.c (shortcut_cond_r): Don't special case
367 COND_EXPRs if they have void type on one of their arms.
369 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
371 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
372 to reduce duplication, and to achieve a slightly more logical order
375 2011-05-26 Jakub Jelinek <jakub@redhat.com>
377 PR tree-optimization/49161
378 * tree-vrp.c (struct case_info): New type.
379 (compare_case_labels): Sort case_info structs instead of
380 trees, and not primarily by CASE_LABEL uids but by
381 label_for_block indexes.
382 (find_switch_asserts): Put case labels into struct case_info
383 array instead of TREE_VEC, adjust sorting, compare label_for_block
384 values instead of CASE_LABELs.
386 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
388 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
389 ("orndi3_neon"): Likewise.
390 ("bic<mode>3_neon"): Likewise.
392 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
394 PR tree-optimization/49038
395 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
396 Ensure at least one epilogue iteration if required by data
398 * tree-vectorizer.h (struct _loop_vec_info): Add new field
399 to mark loops that require peeling for gaps.
400 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
401 (vect_get_known_peeling_cost): Take peeling for gaps into
403 (vect_transform_loop): Generate epilogue if required by data
405 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
406 loop as requiring an epilogue if there are gaps in the end of
409 2011-05-25 Ian Lance Taylor <iant@google.com>
411 * godump.c (go_format_type): Output the first field with a usable
414 2011-05-25 Ian Lance Taylor <iant@google.com>
416 * godump.c (go_format_type): Check for invalid type names, pointer
417 target types, and struct field types.
419 2011-05-25 Jason Merrill <jason@redhat.com>
421 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
423 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
425 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
427 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
429 * config/i386/i386.md (*movqi_extv_1)): Put back
430 "register_operand" check in "type" calculation.
431 (*movqi_extzv_2): Likewise.
433 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
435 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
437 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
440 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
441 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
442 __divxc3, __divtc3): Wrap definitions in #ifndef.
444 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
447 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
448 "register_operand" check and replace q_regs_operand with
449 QIreg_operand in "type" calculation.
450 (*movqi_extv_1): Likewise.
451 (*movqi_extzv_2_rex64): Likewise.
452 (*movqi_extzv_2): Likewise.
454 * config/i386/predicates.md (QIreg_operand): New.
456 2011-05-25 Richard Guenther <rguenther@suse.de>
458 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
459 type-based offset disambiguation, streamline MEM_REF and
460 TARGET_MEM_REF handling.
462 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
464 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
465 (bdesc_special_args): Add pause intrinsic.
467 * config/i386/i386.md (UNSPEC_PAUSE): New.
470 * config/i386/ia32intrin.h (__pause): Likewise.
472 * doc/extend.texi (X86 Built-in Functions): Add documentation for
475 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
477 PR tree-optimization/46728
478 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
479 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
481 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
483 * tree.h (struct tree_exp): Inherit from struct tree_typed.
484 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
485 instead of TS_COMMON.
487 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
489 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
490 LIBGCC2_GNU_PREFIX is defined.
492 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
493 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
494 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
495 __clz_tab): Define using __N.
496 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
497 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
498 * target.def (libfunc_gnu_prefix): New hook.
499 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
500 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
501 * doc/tm.texi: Regenerate.
502 * system.h (LIBGCC2_GNU_PREFIX): Poison.
503 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
505 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
506 (init_optabs): Likewise for the bswap libfuncs.
507 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
509 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
510 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
511 * libgcc-std.ver: Remove.
512 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
513 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
515 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
516 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
517 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
518 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
519 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
520 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
521 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
522 * config/fixed-bit.h (FIXED_OP): Define differently depending on
523 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
524 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
526 2011-05-25 Jan Hubicka <jh@suse.cz>
528 * lto-streamer-out.c (output_record_start): Use lto_output_enum
529 (lto_output_tree): Use output_record_start.
530 * lto-streamer-in.c (input_record_start): Use lto_input_enum
531 (lto_get_pickled_tree): Use input_record_start.
532 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
533 (lto_value_range_error): New function.
534 * lto-streamer.h (lto_value_range_error): Declare.
535 (lto_output_int_in_range, lto_input_int_in_range): New functions.
536 (lto_output_enum, lto_input_enum): New macros.
538 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
540 * common.opt (flag_stack_usage_info): New variable.
541 (-Wstack-usage): New option.
542 * doc/invoke.texi (Warning options): Document -Wstack-usage.
543 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
544 <OPT_fstack_usage>: Likewise.
545 * toplev.c (output_stack_usage): Handle -Wstack-usage.
546 * calls.c (expand_call): Test flag_stack_usage_info variable instead
548 (emit_library_call_value_1): Likewise.
549 * explow.c (allocate_dynamic_stack_space): Likewise.
550 * function.c (instantiate_virtual_regs ): Likewise.
551 (prepare_function_start): Likewise.
552 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
553 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
554 * config/arm/arm.c (arm_expand_prologue): Likewise.
555 (thumb1_expand_prologue): Likewise.
556 * config/avr/avr.c (expand_prologue): Likewise.
557 * config/i386/i386.c (ix86_expand_prologue): Likewise.
558 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
559 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
560 * config/mips/mips.c (mips_expand_prologue): Likewise.
561 * config/pa/pa.c (hppa_expand_prologue): Likewise.
562 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
563 * config/s390/s390.c (s390_emit_prologue): Likewise.
564 * config/sh/sh.c (sh_expand_prologue): Likewise.
565 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
566 * config/spu/spu.c (spu_expand_prologue): Likewise.
568 2011-05-25 Richard Guenther <rguenther@suse.de>
570 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
571 (gimple_canonical_types_compatible_p): Likewise.
573 2011-05-25 Jan Hubicka <jh@suse.cz>
576 * ipa.c (function_and_variable_visibility): Only add to same
577 comdat group list if DECL_ONE_ONLY.
579 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
581 PR rtl-optimization/49014
582 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
584 2011-05-25 Jakub Jelinek <jakub@redhat.com>
587 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
589 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
591 PR rtl-optimization/48757
592 * ira-build.c (loop_with_eh_edge_p): Rename to
593 loop_with_complex_edge_p, check edges on complexity, make function
595 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
598 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
600 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
601 force flag_ira_share_save_slots to 0.
603 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
605 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
606 (vt_initialize): Set PROLOGUE_BB unconditionally.
607 Add block comment about CFA_BASE_RTX machinery.
608 Reset FP_CFA_OFFSET to -1 on all invalid paths.
609 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
611 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
614 * c-parser.c (c_parser_objc_class_instance_variables): More robust
615 parsing of syntax error in ObjC instance variable lists. In
616 particular, avoid an infinite loop if there is a stray ']'.
617 Updated error message.
619 2011-05-24 Ian Lance Taylor <iant@google.com>
621 * godump.c (go_define): Don't accept a string immediately after
624 2011-05-24 Ian Lance Taylor <iant@google.com>
626 * godump.c (struct godump_container): Add invalid_hash field.
627 (go_format_type): Return false if type is found in invalid_hash.
628 (go_output_typedef): Add invalid type to invalid_hash.
629 (go_finish): Create and delete invalid_hash.
631 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
633 PR tree-optimization/46728
634 * tree-ssa-math-opts.c (powi_table): New.
635 (powi_lookup_cost): New.
637 (powi_as_mults_1): New.
638 (powi_as_mults): New.
639 (gimple_expand_builtin_powi): New.
640 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
641 (gate_cse_sincos): Remove sincos/cexp restriction.
643 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
646 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
648 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
649 * mips-tdump.c: Likewise.
651 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
654 * config/i386/driver-i386.c (host_detect_local_cpu): Always
655 add -mno-XXX. Handle FMA.
657 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
659 PR rtl-optimization/48633
660 * ira-build.c (loop_with_eh_edge_p): New function.
661 (mark_loops_for_removal): Use it.
663 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
665 PR rtl-optimization/48971
666 * ira.c (setup_pressure_classes): Don't check register move cost
667 for classes with one registers. Don't add pressure class if there
668 is a pressure class with the same available hard registers.
669 Check contains_reg_of_mode. Fix a typo in collecting
670 temp_hard_regset. Ignore hard registers not belonging to a class.
672 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
675 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
677 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
678 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
680 PR gcov-profile/48845
681 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
683 2011-05-24 Richard Guenther <rguenther@suse.de>
685 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
686 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
687 (gimple_types_compatible_p_1): Adjust.
688 (iterative_hash_canonical_type): Do not bother about complete vs.
690 (gimple_canonical_types_compatible_p): Likewise.
692 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
694 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
696 2011-05-24 Richard Guenther <rguenther@suse.de>
699 * gimple.c (gimple_register_canonical_type): Revert
701 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
702 does not for a tree for the case where it matters. Cache
703 pointer-type alias-sets.
705 2011-05-24 Joseph Myers <joseph@codesourcery.com>
707 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
708 (OBJS): Remove options.o, opts-common.o and prefix.o.
709 (OBJS-libcommon-target): New.
710 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
711 (BACKEND): Include libcommon-target.a.
712 (MOSTLYCLEANFILES): Include libcommon-target.a.
713 (libcommon-target.a): New.
714 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
717 2011-05-23 Joseph Myers <joseph@codesourcery.com>
719 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
720 parts of output shared with the driver.
721 * optc-gen.awk: Don't generate parts of output not shared with the
723 * opth-gen.awk: Remove GCC_DRIVER conditionals.
724 * doc/options.texi (SourcerInclude): Mention options-save.c.
725 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
726 (OBJS): Add options-save.o.
727 (options-save.c, options-save.o): New.
728 (options.o): Update dependencies.
729 (gcc-options.o): Remove.
730 (mostlyclean): Remove options-save.c.
732 2011-05-23 Jakub Jelinek <jakub@redhat.com>
735 * dbxout.c: Include cgraph.h.
736 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
737 and without value expr, return NULL if no varpool node exists for
738 it or if it is not needed.
739 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
742 * c-decl.c (start_decl): Convert expr to void_type_node.
744 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
746 PR rtl-optimization/48826
747 * emit-rtl.c (try_split): When splitting a call that is followed
748 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
750 2011-05-23 Jakub Jelinek <jakub@redhat.com>
752 * cfgexpand.c (expand_debug_expr): For unused non-addressable
753 parameters passed in memory prefer using DECL_INCOMING_RTL over
754 the pseudos it will be copied into.
756 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
759 * config/i386/i386.c (ix86_option_override_internal): Save the
760 initial options after checking vzeroupper.
762 2011-05-23 David Li <davidxl@google.com>
764 PR tree-optimization/48988
765 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
766 Initialize has_valid_pred for each pred chain.
768 2011-05-23 Richard Guenther <rguenther@suse.de>
770 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
771 (iterative_hash_gimple_type): Always hash type names.
773 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
775 * c-typeck.c (build_function_call_vec): Tweak call to
776 check_function_arguments.
778 2011-05-23 Richard Guenther <rguenther@suse.de>
780 PR tree-optimization/49115
781 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
782 is not necessarily carried out, do not claim it kills the ref.
783 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
785 2011-05-23 Richard Guenther <rguenther@suse.de>
788 * builtins.c (fold_builtin_memory_op): Be less restrictive about
789 what pointer types we accept for folding.
791 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
793 * gthr-gnat.c: Remove.
794 * gthr-gnat.h: Remove.
795 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
796 * config/t-freebsd (LIB2ADDEH): Likewise.
797 * config/t-linux (LIB2ADDEH): Likewise.
798 * config/t-sol2 (LIB2ADDEH): Likewise.
799 * config/ia64/t-vms (LIB2ADDEH): Likewise.
800 * configure.ac (target_thread_file): Remove gnat handling.
801 * configure: Regenerate.
802 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
804 2011-05-23 Tristan Gingold <gingold@adacore.com>
805 Eric Botcazou <ebotcazou@adacore.com>
807 * gcov.c (create_file_names): If no object directory is specified,
808 keep the directory of the file.
810 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
812 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
813 * configure: Regenerate.
815 2011-05-23 Jakub Jelinek <jakub@redhat.com>
818 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
819 failed and the comparison has a single bit signed type, use
820 constm1_rtx instead of const1_rtx for true value.
821 (do_store_flag): If ops->type is single bit signed type, disable
822 signel bit test optimization and pass -1 instead of 1 as last
823 parameter to emit_store_flag_force.
825 2011-05-23 Tom de Vries <tom@codesourcery.com>
828 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
830 (infer_loop_bounds_from_undefined): Use new function.
832 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
834 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
835 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
836 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
838 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
840 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
842 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
843 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
846 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
848 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
850 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
852 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
853 UNSPEC_MOVE_PIC pattern.
855 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
857 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
858 (sparc-*-rtems*): Likewise.
859 (sparc64-*-elf*): Likewise.
860 (sparc64-*-rtems*): Likewise.
861 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
862 * config/sparc/t-crtin: New file.
863 * config/sparc/t-sol2 (crti.o): Delete rule.
865 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
866 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
867 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
868 (ENDFILE_SPEC): Add crtn.o.
870 2011-05-22 Tom de Vries <tom@codesourcery.com>
873 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
874 CODE_CONTAINS_STRUCT (TS_COMMON).
876 2011-05-22 Jakub Jelinek <jakub@redhat.com>
879 * expmed.c (extract_fixed_bit_field): Test whether target can be used
880 only after deciding which mode to use.
882 2011-05-22 Tom de Vries <tom@codesourcery.com>
885 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
886 for call to get_shiftadd_cost.
888 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
891 * config/i386/cpuid.h (bit_MMXEXT): New define.
893 2011-05-22 Nick Clifton <nickc@redhat.com>
895 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
896 initialisation of non-existant args[2] element. Use args[] array
897 not arg[] array to pass arguments to build_function_type_list.
899 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
901 PR tree-optimization/49087
902 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
904 2011-05-21 Jason Merrill <jason@redhat.com>
907 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
908 static storage duration.
910 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
912 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
915 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
917 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
918 false if there are call-saved registers here...
919 (sparc_can_use_return_insn_p): ...but here instead.
920 (save_or_restore_regs): Fix thinko.
921 (sparc_expand_prologue): Use current_function_is_leaf.
922 (sparc_frame_pointer_required): Likewise.
924 2011-05-21 Nick Clifton <nickc@redhat.com>
927 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
929 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
931 * gengtype.c (walk_type): Implemented "atomic" GTY option.
932 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
934 2011-05-21 Joseph Myers <joseph@codesourcery.com>
936 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
937 * optc-gen.awk: Move common code to opt-read.awk.
938 * opth-gen.awk: Likewise.
939 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
941 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
943 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
945 2011-05-20 Tom de Vries <tom@codesourcery.com>
948 * tree-ssa-loop-ivopts.c: Include expmed.h.
949 (get_shiftadd_cost): New function.
950 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
952 2011-05-20 Jakub Jelinek <jakub@redhat.com>
955 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
956 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
958 2011-05-20 Joseph Myers <joseph@codesourcery.com>
960 * Makefile.in: Update comment referring to $(OBJS-common).
962 2011-05-20 Ian Lance Taylor <iant@google.com>
964 * godump.c (go_output_typedef): Put enum constants in the macro
965 hash table to avoid duplicate Go const definitions.
967 2011-05-20 Joseph Myers <joseph@codesourcery.com>
969 * Makefile.in (LIBDEPS): Add libcommon.a.
971 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
972 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
973 pretty-print.o and version.o.
974 (OBJS-libcommon): New.
975 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
976 (BACKEND): Add libcommon.a.
977 (MOSTLYCLEANFILES): Likewise.
979 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
980 (cpp$(exeext)): Likewise.
981 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
982 pretty-print.o and input.o.
983 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
984 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
986 (mips-tfile): Don't explicitly use version.o.
987 (mips-tdump): Likewise.
988 (gcov.o): Depend on $(DIAGNOSTIC_H).
989 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
990 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
991 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
992 * gcov-dump.c: Include intl.h and diagnostic.h.
993 (main): Initialize diagnostics.
994 * gcov.c: Include diagnostic.h.
996 (main): Initialize diagnostics.
997 * lto-wrapper.c: Include diagnostic.h.
998 (main): Initialize diagnostics.
1000 2011-05-20 Michael Matz <matz@suse.de>
1002 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1004 2011-05-20 Michael Matz <matz@suse.de>
1005 Richard Guenther <rguenther@suse.de>
1007 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1008 use lto_streamer_cache_append directly instead of returning a VEC.
1009 (preload_common_node): Remove.
1010 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1012 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1014 2011-05-20 Richard Guenther <rguenther@suse.de>
1016 PR tree-optimization/49079
1017 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1018 MEM_REFs correctly for the trailing array access detection.
1019 Special case constants the same way as decls for overall size
1022 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1024 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1027 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1029 PR tree-optimization/49073
1030 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1031 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1032 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1034 2011-05-20 Richard Guenther <rguenther@suse.de>
1037 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1038 of pointer types the same way the middle-end does.
1040 2011-05-20 Richard Guenther <rguenther@suse.de>
1042 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1043 or pointer-to chains. Delay all fixup to uniquify_nodes.
1045 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1047 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1048 (fma4_fmaddsub): Likewise
1050 2011-05-19 Jan Hubicka <jh@suse.cz>
1052 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1053 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1054 (type_pair_cache): New static var.
1055 (lookup_type_pair): Use fixed sized custom hash; make inline.
1056 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1057 calls of lookup_type_pair.
1058 (print_gimple_types_stats): Remove cache stats.
1059 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1062 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1064 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1065 when TARGET_RDRND is active.
1066 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1067 Generate dummy SImode target register when target is NULL.
1069 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1071 * config/arm/arm-fpus.def: New.
1072 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1074 * config/arm/arm-tables.opt: Regenerate.
1075 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1076 (arm_option_override): Don't decode FPU name to string here.
1077 * config/arm/arm.opt (mfpu=): Use Enum.
1078 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1079 Update dependencies.
1081 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1083 * collect2.c: Include diagnostic.h.
1084 (fatal_perror, fatal, error, fancy_abort): Remove.
1085 (main): Set progname. Call xmalloc_set_program_name and
1086 diagnostic_initialize.
1087 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1088 scan_libraries, resolve_lib_name): Call fatal_error instead of
1089 fatal and fatal_perror.
1090 * collect2.h (error, fatal, fatal_perror): Don't declare.
1091 * tlink.c: Include diagnostic-core.h.
1092 (recompile_files): Call fatal_error instead of fatal_perror.
1093 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1094 pretty-print.o and input.o.
1095 (collect2.o, tlink.o): Update dependencies.
1097 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1099 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1101 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1104 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1105 COMDAT group syntax, both SPARC and x86 variants.
1106 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1107 * configure: Regenerate.
1108 * config/sol2.h (TARGET_SOLARIS): Define.
1109 (PUSHSECTION_FORMAT): Remove.
1110 (SECTION_NAME_FORMAT): Define.
1111 * config/sol2.c: Include hashtab.h.
1112 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1113 expansion, using SECTION_NAME_FORMAT.
1114 (solaris_comdat_htab): New variable.
1115 (struct comdat_entry): Define.
1116 (comdat_hash): New function.
1117 (comdat_eq): New function.
1118 (solaris_elf_asm_comdat_section): New function.
1119 (solaris_define_comdat_signature): New function.
1120 (solaris_code_end): New function.
1121 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1122 (solaris_code_end): Declare.
1123 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1124 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1126 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1127 Remove ATTRIBUTE_UNUSED.
1128 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1129 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1130 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1131 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1132 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1133 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1134 (PUSHSECTION_FORMAT): Remove.
1135 (SECTION_NAME_FORMAT): Redefine.
1137 2011-05-19 Kai Tietz <ktietz@redhat.com>
1139 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1140 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1141 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1143 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1144 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1146 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1148 2011-05-19 Richard Guenther <rguenther@suse.de>
1151 * tree-object-size.c (addr_object_size): If the pointed-to
1152 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1154 2011-05-19 Richard Guenther <rguenther@suse.de>
1156 * gimple.c (gimple_types_compatible_p_1): Compare names of
1157 the types themselves.
1158 (iterative_hash_gimple_type): And hash them that way.
1159 (gimple_register_type_1): If we register a main variant properly
1160 initialize the leader to ourselves.
1162 2011-05-19 Tom de Vries <tom@codesourcery.com>
1165 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1166 get_loop_invariant_expr_id.
1167 (get_loop_invariant_expr_id): Use get_expr_id.
1168 (parm_decl_cost): New function.
1169 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1170 Improve bound cost estimation. Use different inv_expr_id for elim and
1173 2011-05-19 Tom de Vries <tom@codesourcery.com>
1176 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1177 cost_base.cost == 0.
1179 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1182 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1183 Properly handle load cast.
1185 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1187 PR tree-optimization/49039
1188 * tree-vrp.c (extract_range_from_binary_expr): For
1189 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1190 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1192 2011-05-18 Tom de Vries <tom@codesourcery.com>
1195 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1197 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1199 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1200 (*tls_global_dynamic_64): Ditto.
1201 (*tls_local_dynamic_base_32_gnu): Ditto.
1202 (*tls_local_dynamic_base_64): Ditto.
1203 (tls_initial_exec_64_sun): Ditto.
1205 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1207 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1208 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1210 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1211 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1212 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1213 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1214 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1215 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1216 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1218 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1220 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1221 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1222 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1223 target_thread_pointer, arm_structure_size_boundary, struct
1224 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1225 struct abi_name, arm_all_abis): Remove.
1226 (arm_option_override) Don't process most enumerated option values here.
1227 Don't process target_fpe_name here. Work with integer not string for
1228 structure size boundary; use separate diagnostics for each case.
1229 * config/arm/arm.h (enum float_abi_type, enum
1230 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1232 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1233 arm_structure_size_boundary): Remove.
1234 * config/arm/arm.opt (mabi=): Use Enum and Init.
1235 (arm_abi_type): New Enum and EnumValue entries.
1236 (mfloat-abi=): Use Enum and Init.
1237 (float_abi_type): New Enum and EnumValue entries.
1238 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1239 (mfp16-format=): Use Enum and Init.
1240 (arm_fp16_format_type): New Enum and EnumValue entries.
1241 (mstructure-size-boundary=): Use UInteger and Init.
1242 (mtp=): Use Enum and Init.
1243 (arm_tp_type): New Enum and EnumValue entries.
1245 2011-05-18 Richard Guenther <rguenther@suse.de>
1247 PR tree-optimization/49018
1248 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1249 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1250 gimple_has_side_effects.
1252 2011-05-18 Richard Guenther <rguenther@suse.de>
1254 * gimple.c (gimple_register_type_1): New function, split out from ...
1255 (gimple_register_type): ... here. Avoid infinite recursion.
1257 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1259 PR tree-optimization/41881
1260 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1261 reduction_chains along with a macro for its access.
1262 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1263 (destroy_loop_vec_info): Free reduction chains.
1264 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1265 (vect_is_slp_reduction): New function.
1266 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1267 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1268 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1269 definition types for reduction chains.
1270 (vect_supported_load_permutation_p): Don't allow permutations for
1272 (vect_analyze_slp_instance): Support reduction chains.
1273 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1274 (vect_get_constant_vectors): Handle reduction chains.
1275 (vect_schedule_slp_instance): Mark the first statement of the
1276 reduction chain as reduction.
1278 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1280 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1281 names for group elements access.
1282 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1283 reduction chains as well. Remove data reference and interleaving
1284 related words from the fields names.
1285 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1287 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1288 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1289 vect_update_interleaving_chain, vect_same_range_drs,
1290 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1291 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1292 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1293 vect_analyze_group_access, vect_analyze_data_ref_access,
1294 vect_create_data_ref_ptr, vect_transform_strided_load,
1295 vect_record_strided_load_vectors): Likewise.
1296 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1297 vect_model_load_cost, vectorizable_store, vectorizable_load,
1298 vect_remove_stores, new_stmt_vec_info): Likewise.
1299 * tree-vect-slp.c (vect_build_slp_tree,
1300 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1302 2011-05-18 Richard Guenther <rguenther@suse.de>
1305 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1306 operand verification.
1307 (verify_gimple_assign_binary): Likewise.
1308 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1309 to non-1-precision BOOLEAN_TYPEs.
1311 2011-05-18 Tom de Vries <tom@codesourcery.com>
1314 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1316 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1318 PR tree-optimization/49000
1319 * tree-ssa.c (execute_update_addresses_taken): Call
1320 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1321 be rewritten and decl has been marked for renaming, reset
1324 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1326 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1327 enum_opts_set when testing if attributes have set -mfpmath=.
1329 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1331 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1333 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1335 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1337 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1338 id.transform_lang_insert_block with NULL.
1340 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1342 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1343 (output_fp_compare): Change args 3 and 4 to bool.
1344 (ix86_expand_call): Change arg 6 to bool.
1345 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1346 (ix86_attr_length_vex_default): Change arg 3 to bool.
1347 * config/i386/i386.md: Update all uses.
1348 * config/i386/i386.c: Ditto.
1349 (ix86_flags_dependent): Change return type to bool.
1351 2011-05-17 Richard Guenther <rguenther@suse.de>
1353 * gimple.c (type_hash_pair_compare): Fix comparison.
1355 2011-05-17 Richard Guenther <rguenther@suse.de>
1357 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1358 case some more, fix final hash value of the non-singleton case.
1360 2011-05-17 Richard Guenther <rguenther@suse.de>
1364 2011-05-16 Richard Guenther <rguenther@suse.de>
1366 * gimple.c (gimple_types_compatible_p_1): Use names of the
1367 type itself, not its main variant.
1368 (iterative_hash_gimple_type): Likewise.
1370 2011-05-17 Richard Guenther <rguenther@suse.de>
1372 * gimple.c (gimple_register_canonical_type): Use the main-variant
1373 leader for computing the canonical type.
1375 2011-05-17 Nick Clifton <nickc@redhat.com>
1377 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1380 * config/rx/rx.md: Add peephole to remove redundant extensions
1382 (bitset_in_memory): Use rx_restricted_mem_operand.
1383 (bitinvert_in_memory): Likewise.
1384 (bitclr_in_memory): Likewise.
1386 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1387 Nick Clifton <nickc@redhat.com>
1389 * config/rx/rx.md: Add peepholes to match a register move followed
1390 by a comparison of the moved register. Replace these with an
1391 addition of zero that does both actions in one instruction.
1393 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1396 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1397 predicate to allow CONST_INT.
1398 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1400 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1402 * opts-common.c (opt_enum_arg_to_value): New.
1403 * opts.h (opt_enum_arg_to_value): Declare.
1404 * config/i386/i386.opt (fpmath): Remove.
1405 (mfpmath=): Use Enum, Init and Save.
1406 (fpmath_unit): New Enum and EnumValue entries.
1407 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1408 name for function fpmath state.
1409 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1410 * config/i386/i386.c: Include diagnostic.h.
1411 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1412 (ix86_target_string): Take enum fpmath_unit value instead of string.
1413 (ix86_debug_options): Update call to ix86_target_string.
1414 (ix86_option_override_internal): Don't process fpmath strings here.
1415 (x86_function_specific_save, ix86_function_specific_restore):
1416 Don't handle fpmath state specially.
1417 (ix86_function_specific_print): Pass fpmath state to
1418 ix86_target_string instead of printing in this function.
1419 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1420 Handle enum attributes.
1421 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1422 (ix86_valid_target_attribute_tree): Update option_strings
1423 handling. Handle fpmath as enum option.
1424 (ix86_can_inline_p): Update field names for function fpmath state.
1425 (ix86_expand_builtin): Update call to ix86_target_string.
1426 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1427 (ix86_fpmath): Remove.
1428 * config/i386/t-i386 (i386.o): Update dependencies.
1430 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1432 PR preprocessor/48677
1433 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1434 from decoded_options[0], not from itself.
1436 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1438 * config/i386/constraints.md (z): New constraint.
1439 * config/i386/i386.c (c): New mode attribute.
1440 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1441 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1442 constraint for operand 0.
1443 (*call_vzeroupper): Ditto.
1444 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1445 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1446 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1447 Use "lzm" constraint for operand 0.
1448 (*call_pop_vzeroupper): Ditto.
1449 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1450 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1451 constraint for operand 0.
1452 (*sibcall_vzeroupper): Ditto.
1453 (*sibcall_rex64_ms_sysv): Ditto.
1454 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1455 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1456 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1457 (*sibcall_pop_vzeroupper): Ditto.
1458 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1459 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1460 mode iterator. Use "<c>zm" constraint for operand 1.
1461 (*call_value_vzeroupper): Ditto.
1462 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1464 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1465 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1466 *call_value_pop_1. Use "lzm" constraint for operand 1.
1467 (*call_value_pop_vzeroupper): Ditto.
1468 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1469 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1470 mode iterator. Use "Uz" constraint for operand 1.
1471 (*sibcall_value_vzeroupper): Ditto.
1472 (*sibcall_value_rex64_ms_sysv): Ditto.
1473 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1474 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1475 constraint for operand 1.
1476 (*sibcall_value_pop_vzeroupper): Ditto.
1477 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1478 and "z" constraint for operand 2.
1479 (*tls_global_dynamic_32_gnu): Ditto.
1480 (*tls_local_dynamic_base_32_gnu): Ditto.
1481 (*tls_local_dynamic_base_64): Ditto.
1482 (*tls_local_dynamic_32_once): Ditto.
1483 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1485 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1487 2011-05-16 Richard Guenther <rguenther@suse.de>
1489 * gimple.c (gimple_types_compatible_p_1): Use names of the
1490 type itself, not its main variant.
1491 (iterative_hash_gimple_type): Likewise.
1493 2011-05-16 Richard Guenther <rguenther@suse.de>
1495 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1496 always visit pointer target and function result and argument types.
1498 2011-05-16 Jason Merrill <jason@redhat.com>
1501 * tree-inline.c (copy_statement_list): Put back recursion.
1503 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1507 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1508 * config/avr/avr.md ("*ior<mode>qi.byte0",
1509 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1511 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1514 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1515 register is needed for a function argument.
1517 2011-05-16 Richard Guenther <rguenther@suse.de>
1519 * gimple.c (struct type_hash_pair): New type.
1520 (type_hash_pair_compare): New function.
1521 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1523 2011-05-16 Revital Eres <revital.eres@linaro.org>
1525 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1527 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1529 * config/i386/i386.md (floating point move splitters): Fix
1530 usage of standard_80387_constant_p.
1531 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1533 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1535 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1537 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1539 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1540 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1541 (tree_ssa_lim_finalize): Likewise.
1543 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1545 * config/i386/constraint.md (Yd, Yx): New register constraints.
1546 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1547 Yd conditional register constraint.
1548 (*movtf_internal): Use standard_sse_constant_opcode.
1549 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1550 Yx conditional register constraint.
1551 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1552 Yd conditional register constraint. Use standard_sse_constant_p to
1553 check for valid SSE constants and call standard_sse_constant_opcode to
1555 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1556 constants and call standard_sse_constant_opcode to output SSE insn.
1557 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1558 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1559 optimize_size is set.
1560 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1562 2011-05-14 Tobias Burnus <burnus@net-b.de>
1564 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1566 2011-05-13 Martin Jambor <mjambor@suse.cz>
1568 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1569 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1570 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1571 (evaluate_conditions_for_ipcp_clone): Removed.
1572 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1573 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1574 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1576 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1578 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1579 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1580 lieu of MAY_HAVE_DEBUG_STMTS.
1581 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1582 debug statements if !MAY_HAVE_DEBUG_STMTS.
1584 2011-05-13 Martin Thuresson <martint@google.com>
1586 PR gcov-profile/47793
1587 * libgcov.c (gcov_exit): Support relative profile paths.
1588 * doc/invoke.texi (-fprofile-dir): Update for above change.
1590 2011-05-13 Richard Guenther <rguenther@suse.de>
1592 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1593 type-pair caching, do not compare hashes.
1595 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1598 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1599 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1601 2011-05-13 Kai Tietz <ktietz@redhat.com>
1603 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1604 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1605 compatible type for TRUTH_NOT_EXPR.
1607 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1609 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1610 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1611 can_create_pseudo_p ().
1613 2011-05-13 Richard Guenther <rguenther@suse.de>
1616 * gimple.c (iterative_hash_gimple_type): Revert change in
1617 pointer target and function result and argument hashing.
1619 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1621 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1622 (*movxf_internal_nointeger): Ditto.
1623 (*movdf_internal_rex64): Ditto.
1624 (*movdf_internal): Ditto.
1625 (*movdf_internal_nointeger): Ditto.
1626 (*movsf_internal): Ditto.
1627 (sincos splitters): Use can_create_pseudo ().
1629 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1631 * config/i386/i386-opts.h: New.
1632 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1633 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1634 ix86_section_threshold): Remove.
1635 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1636 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1638 (ix86_option_override_internal): Don't decode strings for options
1639 other than -march=, -mtune= and -mfpmath=. Don't allow for
1640 __attribute__ uses in remaining diagnostics for options with
1641 string arguments. Don't check for integer arguments being negative.
1642 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1643 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1644 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1645 ix86_branch_cost, ix86_section_threshold): Remove.
1646 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1648 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1650 (masm=): Use Enum and Init.
1651 (asm_dialect): New Enum and EnumValue entries.
1652 (mbranch-cost=): Use UInteger.
1653 (mlarge-data-threshold=): Use UInteger and Init.
1654 (mcmodel=): Use Enum and Init.
1655 (cmodel): New Enum and EnumValue entries.
1656 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1657 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1658 mregparm=): Use UInteger.
1659 (mstringop-strategy=): Use Enum and Init.
1660 (stringop_alg): New Enum and EnumValue entries.
1661 (mtls-dialect=): Use Enum and Init.
1662 (tls_dialect): New Enum and EnumValue entries.
1663 (mabi=): Use Enum and Init.
1664 (calling_abi): New Enum and EnumValue entries.
1665 (mveclibabi=): Use Enum and Init.
1666 (ix86_veclibabi): New Enum and EnumValue entries.
1668 2011-05-13 Nick Clifton <nickc@redhat.com>
1670 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1671 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1673 2011-05-13 Kai Tietz <ktietz@redhat.com>
1676 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1677 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1678 (gimple_boolify): Check for cast for boolean_type_node instead for
1681 2011-05-13 Richard Guenther <rguenther@suse.de>
1683 PR tree-optimization/48172
1684 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1685 multiplying by number of iterations for equal step.
1686 (vect_create_cond_for_alias_checks): Likewise.
1688 2011-05-13 Andreas Schwab <schwab@redhat.com>
1690 * configure.ac: Use AS_HELP_STRING throughout.
1691 * configure: Regenerate.
1693 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1695 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1696 (ix86_emit_restore_regs_using_mov): Likewise.
1697 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1699 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1701 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1702 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1703 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1704 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1705 RTX_OK_FOR_OLO10_P): ...here.
1706 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1709 2011-05-12 Kai Tietz <ktietz@redhat.com>
1711 * gimplify.c (gimple_boolify): Re-boolify expression
1712 arguments even if expression type is of kind BOOLEAN_TYPE.
1713 (gimplify_boolean_expr): Removed.
1714 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1715 and XOR. Additional take care that we keep expression's type.
1716 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1717 of TRUTH_AND|OR|XOR_EXPR.
1719 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1721 PR tree-optimization/48975
1722 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1723 on all bbs here and free and clear ifc_bbs at the end.
1725 2011-05-12 Richard Guenther <rguenther@suse.de>
1727 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1728 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1729 until after simple checks.
1730 (gimple_types_compatible_p): Likewise.
1731 (iterative_hash_gimple_type): Always hash pointer targets
1732 and function return and argument types.
1733 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1734 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1735 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1736 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1737 completely in the simple compare section.
1738 (gimple_register_canonical_type): Query the cache again after
1741 2011-05-12 Richard Guenther <rguenther@suse.de>
1743 PR tree-optimization/48172
1744 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1745 the number of iterations from the segment size calculation.
1746 (vect_create_cond_for_alias_checks): Adjust.
1748 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1751 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1752 if validate_subreg fails.
1754 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1756 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1757 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1760 2011-05-12 DJ Delorie <dj@redhat.com>
1762 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1763 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1764 created builtin into rx_builtins array.
1765 (rx_builtin_decl): New function.
1766 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1768 2011-05-12 DJ Delorie <dj@redhat.com>
1769 Nick Clifton <nickc@redhat.com>
1771 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1772 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1773 (rx_is_legitimate_address): Add pre-decrement and post-increment
1774 addressing in HImode and QImode. Fix test for out of range
1776 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1777 (rx_align_for_label): Test label before extracting its usage count.
1778 (rx_adjust_insn_lengths): Fix selection of insn codes.
1779 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1781 2011-05-11 Jason Merrill <jason@redhat.com>
1783 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1785 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1787 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1788 reindent the subsequent block.
1790 2011-05-11 Satoru Takabayashi <satorux@google.com>
1791 Paul Pluzhnikov <ppluzhnikov@google.com>
1793 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1794 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1795 * config.in: Add LINKER_HASH_STYLE.
1796 * configure.ac: Add --with-linker-hash-style.
1797 * configure: Regenerate.
1799 2011-05-11 Richard Guenther <rguenther@suse.de>
1802 * gimple.c (iterative_hash_canonical_type): Fix typo.
1804 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1806 * config/i386/i386.c (legitimize_tls_address)
1807 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1808 expanders directly for TARGET_GNU2_TLS. Determine pic and
1809 __tls_get_addr symbol reference here. Update call to
1810 gen_tls_global_dynamic_{32,64} for added arguments.
1811 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1812 expanders directly for TARGET_GNU2_TLS. Determine
1813 __tls_get_addr symbol reference here. Update call to
1814 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1815 unique UNSPEC REG_EQUIV to libcall block.
1816 (ix86_tls_get_addr): Declare static.
1817 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1818 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1819 Do not determine pic and __tls_get_addr symbol reference here. Do not
1820 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1821 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1822 (tls_global_dynamic_64): Add operand 2. Do not determine
1823 __tls_get_addr symbol reference here. Do not call
1824 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1825 (tls_local_dynamic_base64): Ditto for operand 1.
1827 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1829 * function.c (expand_function_start): Initialize stack_check_probe_note
1830 only if the generic stack checking mechanism is used.
1832 2011-05-11 Richard Guenther <rguenther@suse.de>
1834 PR tree-optimization/15256
1835 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1836 (A & B) | C, combine (A op CST1) op CST2.
1837 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1838 visit assigns that have uses.
1840 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1842 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1843 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1844 (unpack_ts_type_common_value_fields): ...this. Update comment.
1845 (unpack_value_fields): Adjust for renaming.
1846 (lto_input_ts_type_tree_pointers): Split into...
1847 (lto_input_ts_type_common_tree_pointer): ...this and...
1848 (lto_input_ts_type_non_common_tree_pointers): ...this.
1849 (lto_input_tree_pointers): Adjust for above split.
1850 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1851 (pack_ts_type_common_value_fields): ...this. Update comment.
1852 (lto_output_ts_type_tree_pointers): Split into...
1853 (lto_output_ts_type_common_tree_pointers): ...this and...
1854 (lto_output_ts_type_non_common_tree_pointers): ...this.
1855 (lto_output_tree_pointers): Adjust for above split.
1856 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1857 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1858 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1859 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1861 (struct tree_type): Split into...
1862 (struct tree_type_common: ...this and...
1863 (struct tree_type_with_lang_specific): ...this and...
1864 (struct tree_type_non_common): ...this. Adjust accessor macros
1866 (TYPE_VALUES_RAW): Define.
1867 (union tree_node): Update for above changes.
1868 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1870 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1871 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1872 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1873 * treestructu.def (TS_TYPE): Remove.
1874 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1877 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1880 * tree-ssa.c (reset_debug_uses): New function.
1881 * tree-flow.h (reset_debug_uses): New prototype.
1882 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1883 * tree-loop-distribution.c (generate_loops_for_partition): Call
1884 reset_debug_uses on the stmts that will be removed. Keep around
1885 all debug stmts, don't count them as bits in partition bitmap.
1886 (generate_builtin): Don't count debug stmts or labels as bits in
1889 2011-05-11 Richard Guenther <rguenther@suse.de>
1891 * gimple.c (gimple_type_hash_1): Merge with ...
1892 (gimple_type_hash): ... this.
1893 (gtc_visit): Remove mode parameter and simplify accordingly.
1894 (gimple_types_compatible_p_1): Likewise.
1895 (gimple_types_compatible_p): Likewise.
1896 (iterative_hash_gimple_type): Likewise.
1898 (gimple_type_eq): Adjust.
1900 2011-05-11 Revital Eres <revital.eres@linaro.org>
1902 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1903 enters the branch create an anti edge in the opposite direction
1904 to prevent the creation of reg-moves.
1905 * modulo-sched.c: Adjust comment to reflect the fact we are
1906 scheduling closing branch.
1907 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1908 (stage_count): New field in struct partial_schedule.
1909 (calculate_stage_count): New function.
1910 (normalize_sched_times): Rename to reset_sched_times and handle
1911 incrementing the sched time of the nodes by a constant value
1912 passed as parameter.
1913 (duplicate_insns_of_cycles): Skip closing branch.
1914 (sms_schedule_by_order): Schedule closing branch.
1915 (ps_insn_find_column): Handle closing branch.
1916 (sms_schedule): Call reset_sched_times and adjust the code to
1917 support scheduling of the closing branch.
1918 (ps_insert_empty_row): Update calls to normalize_sched_times
1919 and rotate_partial_schedule functions.
1921 2011-05-11 Richard Guenther <rguenther@suse.de>
1924 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1926 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1928 * opts.c (finish_options): Move warning settings from process_options.
1929 * toplev.c (process_options): Move warning settings to finish_options.
1931 2011-05-11 Richard Guenther <rguenther@suse.de>
1933 PR tree-optimization/18041
1934 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1935 (simplify_bitwise_binary): ... this. Handle operand conversions
1936 by applying them to the result instead.
1937 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1939 2011-05-11 Richard Guenther <rguenther@suse.de>
1941 * gimple.c (gimple_canonical_types_compatible_p): Split out
1942 from gimple_types_compatible_p and friends. Do not recurse
1943 to pointed-to types.
1944 (gimple_canonical_type_eq): Use it.
1945 (iterative_hash_canonical_type): Split out from
1946 iterative_hash_gimple_type and friends. Do not recurse
1947 to pointed-to types.
1948 (gimple_canonical_type_hash): Use it, allocate the hash here.
1950 2011-05-11 Revital Eres <revital.eres@linaro.org>
1952 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1955 2011-05-11 Revital Eres <revital.eres@linaro.org>
1957 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1958 instead of PREV_INSN.
1960 2011-05-11 Revital Eres <revital.eres@linaro.org>
1962 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1963 * loop-doloop.c (doloop_condition_get): Likewise.
1964 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1966 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1968 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1970 * tree.def (CASE_LABEL_EXPR): Add an operand.
1971 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1973 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1975 * c-decl.c (c_override_global_bindings_to_false): Remove.
1976 (global_bindings_p): Don't check
1977 c_override_global_bindings_to_false.
1978 * c-tree.h (c_override_global_bindings_to_false): Remove.
1979 * c-typeck.c (composite_type): Don't set
1980 c_override_global_bindings_to_false.
1982 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1984 PR target/48857, 48495
1985 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1987 (VSX_MOVE_MODE): Ditto.
1988 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1989 VSX vector types. Add V2DImode.
1990 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1991 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1992 (MODES_TIEABLE_P): Ditto.
1994 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1995 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1997 (init_cumulative_args): Ditto.
1998 (rs6000_function_arg_boundary): Ditto.
1999 (rs6000_function_arg_advance_1): Ditto.
2000 (rs6000_function_arg): Ditto.
2001 (rs6000_function_ok_for_sibcall): Ditto.
2002 (emit_frame_save): Ditto.
2003 (rs6000_function_value): Ditto.
2004 (rs6000_libcall_value): Ditto.
2006 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2008 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2009 i386/darwin-lib.h to $libgcc_tm_file.
2010 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2012 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2014 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2016 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2018 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2019 * config/rs6000/rs6000-tables.opt: New file (generated).
2020 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2021 rs6000/rs6000-tables.opt to extra_options.
2022 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2023 * config/rs6000/rs6000.c (rs6000_select): Remove.
2024 (processor_target_table): Move contents to rs6000-cpus.def.
2025 (darwin_rs6000_override_options): Check
2026 global_options_set.x_rs6000_cpu_index instead of
2027 rs6000_select[1].string.
2028 (rs6000_option_override_internal): Likewise.
2029 (rs6000_handle_option): Don't assert that global structures are in
2030 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2031 (rs6000_default_cpu): New variable.
2032 (rs6000_file_start): Set it instead of local default_cpu. Check
2033 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2034 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2035 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2036 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2037 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2038 rs6000_select): Remove.
2039 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2041 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2042 * config/rs6000/t-rs6000
2043 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2044 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2045 global_options_set.x_rs6000_cpu_index instead of
2046 rs6000_select[1].string.
2047 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2048 global_options_set.x_rs6000_cpu_index instead of
2049 rs6000_select[1].string.
2051 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2053 * config.gcc (libgcc_tm_file): Define instead of including files
2054 from ../../libgcc/config/ in tm_file.
2055 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2056 * configure: Regenerate.
2057 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2058 libgcc_tm.h, cs-libgcc_tm.h): New.
2059 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2060 (clean): Remove libgcc_tm.h.
2061 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2062 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2063 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2065 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2068 * config/avr/avr.c (avr_ret_register): Return unsigned int
2070 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2071 it to avr_libcall_value.
2072 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2074 (avr_expand_binop_builtin): Ditto.
2075 (avr_expand_unop_builtin): Ditto.
2077 2011-05-10 DJ Delorie <dj@redhat.com>
2079 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2080 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2081 * config/rx/rx.c (rx_align_for_label): Add label and
2082 uses_threshold parameters. Do not align when the label is not
2084 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2086 2011-05-10 Richard Guenther <rguenther@suse.de>
2088 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2089 a series of conversions and apply foldings similar to what
2091 (tree_ssa_forward_propagate_single_use_vars): Call it.
2093 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2095 PR tree-optimization/48611
2096 PR tree-optimization/48794
2097 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2098 referenced from RESX or EH_DISPATCH arguments.
2101 * dfp.c (decimal_to_decnumber): Handle conversion from
2102 dconst{1,2,m1,half}.
2104 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2106 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2107 for !flag_prefer_avx128.
2108 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2110 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2112 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2113 (fold_ternary_loc): Use expr_location_or.
2115 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2118 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2119 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2120 Pmode and mem_mode is not VOIDmode.
2122 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2124 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2125 TYPE_QUAL_RESTRICT): Convert to enum.
2127 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2129 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2130 (const_pow2_1_to_8_operand): Ditto.
2131 (const_pow2_1_to_128_operand): Ditto.
2132 (const_pow2_1_to_32768_operand): Ditto.
2133 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2134 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2135 in insn constraint to check integer value of operand 3.
2136 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2138 (PINSR_MODE): New mode iterator.
2139 (sse2p4_1): New mode attribute.
2140 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2141 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2142 iterator. Use const_int_operand instead of
2143 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2144 exact_log2 in insn constraint to check integer value of operand 3.
2146 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2148 * config/i386/sse.md (blendbits): Remove mode attribute.
2149 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2150 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2151 Check integer value of operand 3 in insn constraint.
2153 2011-05-09 Richard Guenther <rguenther@suse.de>
2155 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2157 (lto_symtab_merge): Likewise. Do not register types here.
2158 (lto_symtab_merge_decls_2): Likewise.
2159 (lto_symtab_merge_decls_1): Likewise.
2160 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2161 * gimple.c (enum gtc_mode): Declare.
2162 (gimple_types_compatible_p): Make static.
2164 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2166 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2167 temporary register to match Pmode.
2169 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2171 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2172 and *vec_concatv4si_1_avx.
2174 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2176 PR rtl-optimization/48927
2177 * ira-conflicts.c (commutative_constraint_p): Use
2178 recog_data.alternative_enabled_p to disable alternatives where
2179 "enabled" attribute is false.
2180 (get_dup_num): Ditto.
2181 * ira-lives.c (single_reg_class): Ditto.
2182 (ira_implicitly_set_insn_hard_regs): Ditto.
2184 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2186 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2187 (dataflow_set_preserve_mem_locs): Likewise.
2189 2011-05-09 Philipp Thomas <pth@suse.de>
2191 * config/mep/mep.c (mep_validate_vliw): Syntax description
2192 should not be translated.
2194 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2196 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2197 * config/mips/mips-tables.opt: New file (generated).
2198 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2199 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2200 MIPS_ARCH_OPTION_NATIVE): Define.
2201 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2203 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2204 mips_parse_cpu): Remove.
2205 (mips_cpu_info_from_opt, mips_default_arch): New.
2206 (mips_handle_option): Don't assert that global structures are in
2207 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2208 (mips_option_override): Use new variables and functions to set
2209 state of these options. Use strcmp to check for individual CPU names.
2210 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2212 * config/mips/mips.opt (march=): Use ToLower and Enum.
2213 (mips): Use ToLower, Enum and Var.
2214 (mtune=): Use ToLower and Enum.
2215 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2217 2011-05-08 Jan Hubicka <jh@suse.cz>
2219 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2220 Arrange type pairs to be UID ordered.
2221 (gimple_lookup_type_leader): Make inline.
2223 2011-05-09 Nick Clifton <nickc@redhat.com>
2226 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2230 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2233 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2235 * combine.c (simplify_comparison): Abstract out parts into...
2236 (simplify_compare_const): ... new function.
2237 (try_combine): Generalize parallel arithmetic/compare combining
2238 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2240 2011-05-08 Jan Hubicka <jh@suse.cz>
2242 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2243 (cgraph_create_virtual_clone): Call hooks once virtual clone
2245 * cgraph.h (cgraph_clone_node): Update prototype.
2246 * ipa-cp.c (ipcp_estimate_growth): Use
2247 estimate_ipcp_clone_size_and_time.
2248 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2249 * lto-cgraph.c (input_node): Update.
2250 * ipa-inline.c (recursive_inlining): Update.
2251 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2252 (evaluate_conditions_for_known_args): Break out from ...
2253 (evaluate_conditions_for_edge): ... here.
2254 (evaluate_conditions_for_ipcp_clone): New function.
2255 (inline_node_duplication_hook): Update clone summary based
2257 (estimate_callee_size_and_time): Rename to ...
2258 (estimate_node_size_and_time): take NODE instead of EDGE;
2259 take POSSIBLE_TRUTHS as argument.
2260 (estimate_callee_size_and_time): Update.
2261 (estimate_ipcp_clone_size_and_time): New function.
2262 (do_estimate_edge_time): Update.
2264 2011-05-08 Richard Guenther <rguenther@suse.de>
2268 * expmed.c (expand_shift_1): Compute adjusted constant shift
2271 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2273 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2275 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2277 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2279 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2281 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2283 2011-05-07 Jan Hubicka <jh@suse.cz>
2285 * ipa-inline-transform.c (inline_call): Account when program size
2287 * ipa-inline.c (relative_time_benefit): New function.
2288 (edge_badness): Reorganize to be power 2 based; fix thinko when
2289 computing badness for negative growth; update comments to match
2290 reality; better dumps.
2292 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2294 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2295 type to bool and adjust comment.
2296 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2297 (fold_mathfn_compare): Remove calls to global_bindings_p.
2298 (fold_inf_compare): Likewise.
2299 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2300 * c-tree.h (global_bindings_p): Adjust prototype.
2301 * c-decl.c (global_bindings_p): Return bool and simplify.
2303 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2305 PR tree-optimization/48837
2306 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2307 when accumulator transformation is performed.
2309 2011-05-06 Jan Hubicka <jh@suse.cz>
2311 * i386.h (ix86_tune_indices): Add
2312 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2313 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2314 * i386.c (initial_ix86_tune_features): Add
2315 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2316 (software_prefetching_beneficial_p): Remove predicate.
2317 (ix86_option_override_internal): Use new macro.
2319 2011-05-06 Jan Hubicka <jh@suse.cz>
2321 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2323 2011-05-06 Jan Hubicka <jh@suse.cz>
2325 * cgraph.c (cgraph_add_thunk): Create real function node instead
2326 of alias node; finalize it and mark needed/reachale; arrange visibility
2327 to be right and add it into the corresponding same comdat group list.
2328 (dump_cgraph_node): Dump thunks.
2329 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2330 cgraph_function_with_gimple_body_p,
2331 cgraph_first_function_with_gimple_body,
2332 cgraph_next_function_with_gimple_body): New functions.
2333 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2335 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2336 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2337 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2338 devirtualization when optimizing.
2339 (verify_cgraph_node): Verify thunks.
2340 (cgraph_analyze_function): Analyze thunks.
2341 (cgraph_mark_functions_to_output): Output thunks only in combination
2342 with function they are assigned to.
2343 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2344 alias into normal node.
2345 (assemble_thunks): New functoin.
2346 (cgraph_expand_function): Use it.
2347 * lto-cgraph.c (lto_output_node): Stream thunks.
2348 (input_overwrite_node): Stream in thunks.
2349 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2350 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2351 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2352 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2353 (inline_analyze_function): Do not care about thunk jump functions.
2354 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2355 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2356 cgraph_function_with_gimple_body_p.
2357 * passes.c (do_per_function_toporder): Use
2358 cgraph_function_with_gimple_body_p.
2359 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2360 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2361 (function_called_by_processed_nodes_p): Likewise.
2363 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2365 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2366 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2368 (mabi=): Replace with separate entries for mabi=altivec,
2369 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2370 mabi=ieeelongdouble and mabi=ibmlongdouble.
2371 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2372 check for -mabi=spe without SPE ABI support here.
2373 (rs6000_handle_option): Replace OPT_mabi_ handling with
2374 OPT_mabi_altivec and OPT_mabi_spe handling.
2376 2011-05-06 Cary Coutant <ccoutant@google.com>
2378 * dwarf2out.c (contains_subprogram_definition): New function.
2379 (should_move_die_to_comdat): Call it.
2381 2011-05-06 Jeff Law <law@redhat.com>
2383 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2384 remove_ctrl_stmt_and_useless_edges.
2385 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2386 (fixup_template_block, thread_single_edge): Likewise.
2387 (mark_threaded_blocks): Use THREAD_TARGET.
2389 2011-05-06 Alan Modra <amodra@gmail.com>
2392 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2393 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2395 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2397 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2398 constraint modifier to "r".
2400 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2402 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2403 fall through for OPT_mcmodel_.
2405 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2407 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2409 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2411 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2414 * config/arm/arm.opt (marm): Document it.
2415 (mthumb): Reject negative variant.
2417 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2420 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2421 Fix typo in "ccvt" variable name.
2423 2011-05-06 Tristan Gingold <gingold@adacore.com>
2426 * config/vms/vms-ar.c (main): Remove cwd variable.
2428 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2431 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2433 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2435 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2436 * gimplify.c (gimplify_switch_expr): Likewise.
2437 * omp-low.c (expand_omp_sections): Likewise.
2438 * tree-eh.c (lower_try_finally_switch): Likewise.
2439 (lower_eh_dispatch): Likewise.
2440 * tree.h (build_case_label): Declare.
2441 * tree.c (build_case_label): Define.
2443 2011-05-05 Jason Merrill <jason@redhat.com>
2446 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2447 (copy_statement_list): Don't recurse.
2448 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2451 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2453 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2454 through from -mfpu= handling.
2455 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2457 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2459 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2462 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2464 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2466 (hppa[12]*-*-hpux11*): Ditto.
2467 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2468 * config/ia64/hpux-unix2003.h: New.
2469 * config/pa/pa-hpux1131.opt: New.
2470 * config/pa/pa-hpux1131.h: New.
2471 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2472 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2473 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2475 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2478 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2479 instead of mode as 3rd argument to recursive call.
2480 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2481 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2483 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2484 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2485 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2486 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2488 2011-05-05 Julian Brown <julian@codesourcery.com>
2490 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2491 parenthesis in D-register case.
2493 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2495 * opt-functions.awk (var_type_struct): Handle Enum options.
2496 * optc-gen.awk: Don't check range of variables of character type.
2497 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2498 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2499 rs6000_sdata_name, rs6000_explicit_options): Remove.
2500 (rs6000_option_override_internal): Check for -malign-power here.
2501 Use global_options_set instead of rs6000_explicit_options.
2502 (rs6000_parse_fpu_option): Remove.
2503 (rs6000_handle_option): Access variables via opts and opts_set
2504 pointers. Use error_at and warning_at. Add fall-through
2505 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2506 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2507 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2508 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2509 here. Don't use rs6000_parse_fpu_option.
2510 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2511 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2512 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2514 (mspe): Use Var and Save.
2515 (mtraceback=): Use Enum and Var.
2516 (rs6000_traceback_type): New Enum and EnumValue entries.
2517 (mfloat-gprs=): Use Enum, Var and Save.
2518 (rs6000_float_gprs): New Enum and EnumValue entries.
2519 (mlong-double-): use Var and Save.
2520 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2521 (malign-): Use Enum and Var.
2522 (rs6000_alignment_flags): New Enum and EnumValue entries.
2524 (fpu_type_t): New Enum and EnumValue entries.
2525 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2526 global_options_set instead of rs6000_explicit_options.
2527 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2528 global_options_set instead of rs6000_explicit_options.
2529 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2530 global_options_set instead of rs6000_explicit_options.
2531 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2532 global_options_set instead of rs6000_explicit_options.
2533 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2534 global_options_set instead of rs6000_explicit_options.
2535 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2536 global_options_set instead of rs6000_explicit_options.
2537 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2539 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2540 global_options_set instead of rs6000_explicit_options.
2541 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2542 (rs6000_cmodel): New Enum and EnumValue entries.
2543 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2544 global_options_set instead of rs6000_explicit_options.
2545 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2546 (mtls-size=): Use Enum and Var.
2547 (rs6000_tls_size): New Enum and EnumValue entries.
2549 2011-05-05 Michael Matz <matz@suse.de>
2551 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2552 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2553 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2554 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2555 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2556 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2557 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2558 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2559 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2560 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2561 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2562 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2563 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2564 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2565 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2566 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2568 2011-05-05 Richard Guenther <rguenther@suse.de>
2570 * expmed.c (expand_variable_shift): Rename to ...
2571 (expand_shift_1): ... this. Take an expanded shift amount.
2572 For rotates recurse directly not building trees for the shift amount.
2573 (expand_variable_shift): Wrap around expand_shift_1.
2574 (expand_shift): Adjust.
2576 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2578 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2580 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2582 * tree.h (get_pending_sizes): Remove prototype.
2583 (put_pending_size): Likewise.
2584 (put_pending_sizes): Likewise.
2585 * stor-layout.c (pending_sizes): Delete.
2586 (get_pending_sizes): Likewise.
2587 (put_pending_size): Likewise.
2588 (put_pending_sizes): Likewise.
2589 (variable_size): Do not call put_pending_size and tidy up.
2590 * function.h (struct function): Remove dont_save_pending_sizes_p.
2591 * lto-streamer-in.c (input_function): Do not stream it.
2592 * lto-streamer-out.c (output_function): Likewise.
2593 * tree-inline.c (initialize_cfun): Do not copy it.
2594 * c-decl.c (store_parm_decls): Do not set it.
2595 * omp-low.c (create_task_copyfn): Likewise.
2596 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2598 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2600 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2602 (*movdf_internal): Ditto.
2603 (*movdf_internal_nointeger): Ditto.
2604 (*movsf_internal): Ditto.
2606 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2608 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2609 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2610 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2611 (c_variable_size): Remove.
2612 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2613 call put_pending_sizes.
2614 (get_parm_info): Add parameter expr. Use it to set
2615 arg_info->pending_sizes.
2616 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2618 * c-parser.c (c_parser_parms_declarator): Update call to
2619 c_parser_parms_list_declarator.
2620 (c_parser_parms_list_declarator): Take parameter expr. Update
2621 call to push_parm_decl. Update recursive call. Don't call
2622 get_pending_sizes. Update calls to get_parm_info.
2623 (c_parser_objc_method_definition): Update calls to
2624 c_parser_objc_method_decl and objc_start_method_definition.
2625 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2626 (c_parser_objc_method_decl): Add parameter expr. Update call to
2628 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2629 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2630 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2632 2011-05-05 Michael Hope <michael.hope@linaro.org>
2635 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2638 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2640 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2641 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2642 (spu_output_mi_thunk): New function.
2644 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2646 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2647 targetm.asm_out.print_operand.
2648 * config/sol2.c: Include target.h.
2650 2011-05-04 Jan Hubicka <jh@suse.cz>
2652 * ipa-inline.c (reset_edge_caches): New function.
2653 (update_caller_keys): Add check_inlinablity_for; do not
2654 reset edge caches; remove now unnecesary loop.
2655 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2656 (update_all_callee_keys): Likewise.
2657 (inline_small_functions): Sanity check cache; update code
2660 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2662 PR rtl-optimization/47612
2663 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2664 as the last insn of the sequence to be moved.
2666 2011-05-04 Tobias Burnus <burnus@net-b.de>
2669 * doc/invoke.texi (Ofast): Document that it
2670 enables Fortran's -fno-protect-parens.
2672 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2674 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2676 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2678 * stor-layout.c (variable_size): Do not issue errors.
2680 2011-05-04 Richard Guenther <rguenther@suse.de>
2682 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2683 for array-ref indices.
2684 (tree_coverage_counter_addr): Likewise.
2685 (build_fn_info_type): Use size_int for index types.
2686 (build_gcov_info): Likewise.
2688 2011-05-04 Richard Guenther <rguenther@suse.de>
2690 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2692 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2693 for constructor indices.
2694 (push_init_level): Likewise.
2696 2011-05-04 Richard Guenther <rguenther@suse.de>
2698 * explow.c (promote_mode): Move variable declarations before code.
2700 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2702 * tree.h (build_function_type_array): Declare.
2703 (build_varargs_function_type_array): Declare.
2704 (build_function_type_vec, build_varargs_function_type_vec): Define.
2705 * tree.c (build_function_type_array_1): New function.
2706 (build_function_type_array): New function.
2707 (build_varargs_function_type_array): New function.
2709 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2711 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2712 before setting STMT_VINFO_TYPE.
2714 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2716 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2717 instead of spu_pass_by_reference.
2719 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2721 * calls.c (emit_library_call_value_1): Invoke
2722 promote_function_mode hook on libcall arguments.
2723 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2724 argument being NULL.
2725 * targhooks.c (default_promote_function_mode): Lisewise.
2726 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2727 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2729 * doc/tm.texi: Document that TYPE argument might be NULL.
2731 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2733 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2735 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2738 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2740 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2742 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2743 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2745 * mips-tfile.c: ... here.
2746 Don't include coretypes.h, tm.h, filenames.h.
2747 (saber_stop): Remove definition and all calls.
2748 [__SABER__]: Remove.
2749 (__LINE__): Remove default.
2750 (Size_t, Ptrdiff_t): Remove definitions.
2751 Replace by size_t, ptrdiff_t.
2752 [!MIPS_DEBUGGING_INFO]: Remove.
2753 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2754 (progname): Add const.
2756 Replace all uses by static.
2757 (ALIGN_SYMTABLE_OFFSET): Remove default.
2758 * mips-tdump.c: Don't include coretypes.h, tm.h.
2759 Remove !MIPS_IS_STAB guard.
2760 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2761 $(TM_H), filenames.h dependencies.
2762 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2764 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2767 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2768 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2770 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2773 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2774 account and save/restore RETS.
2775 (PROFILE_BEFORE_PROLOGUE): Define.
2776 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2777 the push insn to use predecrement.
2779 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2782 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2784 2011-05-04 Nick Clifton <nickc@redhat.com>
2786 * config/mn10300/mn10300.c: Include cfgloop.h.
2788 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2789 Lcc or a FLcc insn into the instruction stream.
2790 (mn10300_block_contains_call): New function. Returns true if the
2791 given basic block contains a CALL insn.
2792 (mn10300_loop_contains_call_insn): New function. Returns true if
2793 the given loop contains a CALL insn.
2794 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2795 to use the SETLB and Lcc or FLcc insns.
2796 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2797 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2798 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2799 disable the SETLB optimization.
2800 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2801 __SETLB__ or __NO_SETLB__.
2802 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2803 (movsf_internal): Handle MDR register.
2804 (cmpsi): Make visible.
2805 (setlb): New pattern.
2807 (FLcc): New pattern.
2809 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2812 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2813 for reg<->xmm moves.
2814 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2815 (vec_concatv2di_rex64_sse): Ditto.
2816 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2817 (*vec_extractv2di_1_rex64): Ditto.
2820 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2822 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2824 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2826 2011-05-04 Richard Guenther <rguenther@suse.de>
2828 * tree.h (int_const_binop): Remove notrunc argument.
2829 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2830 create integer constants that are properly truncated.
2831 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2832 (const_binop): Remove zero notrunc argument to int_const_binop.
2833 (size_binop_loc): Likewise.
2834 (fold_div_compare): Likewise.
2835 (maybe_canonicalize_comparison_1): Likewise.
2836 (fold_comparison): Likewise.
2837 (fold_binary_loc): Likewise.
2838 (multiple_of_p): Likewise.
2839 * expr.c (store_constructor): Likewise.
2840 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2841 (maybe_fold_stmt_addition): Likewise.
2842 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2843 * stor-layout.c (layout_type): Likewise.
2844 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2845 * tree-sra.c (build_ref_for_offset): Likewise.
2846 (build_user_friendly_ref_for_offset): Likewise.
2847 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2848 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2849 * tree-ssa-loop-niter.c (inverse): Likewise.
2850 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2851 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2852 * tree-switch-conversion.c (check_range): Likewise.
2853 (build_constructors): Likewise.
2854 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2855 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2856 (extract_range_from_assert): Likewise.
2857 (vrp_int_const_binop): Likewise.
2858 (extract_range_from_binary_expr): Likewise.
2859 (extract_range_from_unary_expr): Likewise.
2860 (check_array_ref): Likewise.
2861 (find_case_label_range): Likewise.
2862 (simplify_div_or_mod_using_ranges): Likewise.
2863 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2864 comparing case labels for merging.
2866 2011-05-03 Mark Wielaard <mjw@redhat.com>
2868 * dwarf2out.c (debug_str_hash_forced): Removed.
2869 (gen_label_for_indirect_string): Removed.
2870 (get_debug_string_label): Removed.
2871 (AT_string_form): Generate label directly.
2872 (output_indirect_string): Test indirect_string_node for
2873 DW_FORM_strp instead of checking label and refcount.
2874 (prune_indirect_string): Removed.
2875 (prune_unused_types): Don't check debug_str_hash_forced or
2876 call prune_indirect_string.
2878 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2881 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2883 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2887 * combine.c (try_combine): Skip debug insns at m_split tests.
2889 2011-04-26 Mark Wielaard <mjw@redhat.com>
2892 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2893 when info_section_emitted.
2895 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2897 * config/mips/mips-opts.h: New.
2898 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2900 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2901 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2902 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2904 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2906 (mips_abi, mips_code_readable): Don't declare.
2907 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2908 (mabi=): Use Enum and Var.
2909 (mips_abi): New Enum and EnumValue entries.
2910 (mcode-readable=): Use Enum and Var.
2911 (mips_code_readable_setting): New Enum and EnumValue entries.
2912 (mr10k-cache-barrier=): Use Enum and Var.
2913 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2915 2011-05-03 Jan Hubicka <jh@suse.cz>
2917 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2918 replace hash by pointer map.
2919 (cgraph_node_set_element_def, cgraph_node_set_element,
2920 const_cgraph_node_set_element, varpool_node_set_element_def,
2921 varpool_node_set_element, const_varpool_node_set_element): Remove.
2922 (free_cgraph_node_set, free_varpool_node_set): New function.
2923 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2924 * tree-emutls.c: Free varpool node set.
2925 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2926 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2927 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2928 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2929 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2930 Move here from ipa.c; implement using pointer_map
2931 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2932 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2933 debug_cgraph_node_set, varpool_node_set_new,
2934 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2935 dump_varpool_node_set, debug_varpool_node_set):
2936 Move to ipa-uitls.c.
2937 * passes.c (ipa_write_summaries): Update.
2939 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2941 From Mike Frysinger:
2942 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2943 bf542/bf544/bf547/bf548/bf549.
2945 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2947 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2949 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2952 * config/bfin/bfin.md (MOVCC): New mode_macro.
2953 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2954 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2955 comments from generated assembly.
2957 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2960 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2961 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2962 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2963 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2964 * config/bfin/lib1funcs.asm (___muldi3): New function.
2966 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2968 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2969 build_function_type_list instead of build_function_type.
2970 Rearrange initialization of `args' to do so.
2972 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2974 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2975 instead of build_function_type.
2977 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2979 * config/rs6000/rs6000.c (spe_init_builtins): Call
2980 build_function_type_list instead of build_function_type.
2981 (paired_init_builtins, altivec_init_builtins): Likewise.
2982 (builtin_function_type): Likewise.
2984 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2986 * config/sh/sh.c (sh_media_init_builtins): Call
2987 build_function_type_list instead of build_function_type.
2989 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2991 * config/sparc/sparc.c (sparc_file_end): Call
2992 build_function_type_list instead of build_function_type.
2994 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2996 * config/alpha/alpha.c (alpha_init_builtins): Call
2997 build_function_type_list instead of build_function_type.
2999 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3001 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3002 build_function_type_list instead of build_function_type.
3004 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3006 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3007 build_function_type_list instead of build_function_type.
3008 Delete `endlink' variable.
3010 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3012 * config/avr/avr.c (avr_init_builtins): Call
3013 build_function_type_list instead of build_function_type.
3015 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3017 * config/picochip/picochip.c (picochip_init_builtins): Call
3018 build_function_type_list instead of build_function_type.
3019 Delete `endlink' variable.
3021 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3023 * config/bfin/bfin.c (bfin_init_builtins): Call
3024 build_function_type_list instead of build_function_type.
3026 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3029 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3030 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3032 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3035 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3036 libbffastfp overrides libgcc when -mfast-fp.
3038 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3040 Originally from Bernd Schmidt
3041 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3042 * config/bfin/bfin.c (override_options): Test it and error if
3045 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3047 Originally From Bernd Schmidt
3048 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3051 2011-05-03 Jeff Law <law@redhat.com>
3053 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3054 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3055 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3056 than accessing AUX field directly. Free the AUX field before
3058 (thread_block, thread_through_loop_header): Likewise.
3059 (thread_single_edge, mark_threaded_blocks): Likewise.
3060 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3061 (register_jump_thread): Do not attempt to thread to a NULL edge.
3063 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3065 * function.c (init_function_start): Call decide_function_section.
3066 * varasm.c (decide_function_section): New function.
3067 (assemble_start_function): When not using
3068 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3069 or first_function_block_is_cold.
3070 * rtl.h (decide_function_section): Declare.
3072 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3073 Jakub Jelinek <jakub@redhat.com>
3076 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3077 only succeed if req_mode is the same as set_mode.
3079 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3081 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3082 * genemit.c (gen_exp): Handle RETURN.
3083 * emit-rtl.c (verify_rtx_sharing): Likewise.
3084 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3085 * rtl.c (copy_rtx): RETURN is shared.
3086 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3088 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3089 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3090 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3091 * config/cris/cris.c (cris_expand_return): Likewise.
3092 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3093 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3094 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3095 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3096 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3098 * config/v850/v850.c (expand_epilogue): Likewise.
3099 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3100 * config/arm/arm.md (epilogue): Likewise.
3101 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3102 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3103 variable to ret_reg.
3105 2011-05-03 Richard Guenther <rguenther@suse.de>
3108 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3109 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3110 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3112 2011-05-03 Richard Guenther <rguenther@suse.de>
3114 * c-decl.c (grokdeclarator): Instead of looking at
3115 TREE_OVERFLOW check if the constant fits in the index type.
3117 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3119 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3120 (vec_store_lanes<mode><mode>): Likewise.
3122 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3124 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3125 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3126 convert_optab_index values.
3127 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3128 * genopinit.c (optabs): Initialize the new optabs.
3129 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3130 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3131 (expand_STORE_LANES): New functions.
3132 * tree.h (build_array_type_nelts): Declare.
3133 * tree.c (build_array_type_nelts): New function.
3134 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3135 (vect_model_load_cost): Likewise.
3136 (vect_store_lanes_supported, vect_load_lanes_supported)
3137 (vect_record_strided_load_vectors): Declare.
3138 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3139 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3140 (vect_transform_strided_load): Split out statement recording into...
3141 (vect_record_strided_load_vectors): ...this new function.
3142 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3143 (write_vector_array, create_array_ref): New functions.
3144 (vect_model_store_cost): Add store_lanes_p argument.
3145 (vect_model_load_cost): Add load_lanes_p argument.
3146 (vectorizable_store): Try to use store-lanes functions for
3148 (vectorizable_load): Likewise load-lanes and loads.
3149 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3150 to vect_model_store_cost.
3151 (vect_build_slp_tree): Likewise vect_model_load_cost.
3153 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3155 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3156 * hooks.c (hook_bool_mode_uhwi_false): New function.
3157 * target.def (array_mode_supported_p): New hook.
3158 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3159 * doc/tm.texi: Regenerate.
3160 * stor-layout.c (mode_for_array): New function.
3161 (layout_type): Use it.
3162 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3163 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3165 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3168 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3169 for -fstack-check if the size to allocate is negative.
3171 2011-05-02 Lawrence Crowl <crowl@google.com>
3173 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3174 (timevar_cond_start): New for starting a timer only when it is not
3176 (timevar_cond_stop): New for stopping a timer when it was not already
3179 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3180 (timevar_cond_start): New as above.
3181 (timevar_cond_stop): New as above.
3183 * timevar.def: Add start/stop timers for compiler phases,
3184 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3185 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3186 and TV_PHASE_FINALIZE.
3187 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3188 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3189 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3190 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3191 Make unused TV_OVERLOAD into a start/stop timer.
3193 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3194 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3195 to indicate that they are start/stop timers.
3197 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3198 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3199 Move initialization to do_compile.
3200 (do_compile): Add initialization from above.
3201 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3203 * c-decl.c (c_write_global_declarations): Add start/stop of
3204 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3206 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3207 or TV_PARSE_INLINE, as appropriate.
3208 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3209 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3211 2011-05-02 Jason Merrill <jason@redhat.com>
3214 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3216 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3219 * c-decl.c (finish_decl): Only create a composite if the types are
3222 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3224 * config/fr30/fr30-protos.h (Mmode): Don't define.
3225 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3226 definition where used.
3227 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3228 define. Expand definitions where used.
3229 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3230 Expand definitions where used.
3231 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3232 rx_function_arg, rx_function_arg_advance,
3233 rx_function_arg_boundary): Expand definitions of those macros.
3234 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3235 definition where used.
3237 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3239 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3241 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3242 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3243 with *movv2sf_internal_rex64_avx.
3244 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3245 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3246 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3247 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3248 "vex" in "prefix" attribute calculation.
3249 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3251 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3254 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3255 inputs match the output.
3257 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3260 * config/m68k/m68k.c (m68k_expand_prologue): Set
3261 current_function_static_stack_size.
3263 2011-05-02 Jan Hubicka <jh@suse.cz>
3265 * lto-streamer.c (lto_streamer_cache_insert_1,
3266 lto_streamer_cache_lookup, lto_streamer_cache_create,
3267 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3268 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3270 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3272 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3273 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3274 config/m68k/t-opts: New files.
3275 * config/m68k/m68k-tables.opt: New file (generated).
3276 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3277 extra_options and m68k/t-opts to tmake_file.
3278 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3279 (all_isas): Initialize using m68k-isas.def.
3280 (all_microarchs): Initialize using m68k-microarchs.def.
3281 (m68k_find_selection): Remove.
3282 (m68k_handle_option): Don't assert that global structures are in
3283 use. Use error_at. Access variables via opts pointer. Don't
3284 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3285 directly for -m68020-40 and -m68020-60.
3286 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3287 m68k_tune_entry here.
3288 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3290 (m68k_library_id_string): Remove declaration.
3291 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3292 (m68k_library_id_string): New Variable.
3293 (march=, mcpu=, mtune=): Use Enum and Var.
3295 2011-05-02 Richard Guenther <rguenther@suse.de>
3297 * varasm.c (output_constructor_regular_field): Compute zero-based
3298 index with double-ints. Make sure to ICE instead of producing
3300 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3301 in asserts. Properly use a signed type.
3303 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3305 * config/i386/sse.md (V): New mode iterator.
3306 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3308 (V_256): Rename from AVX256MODE.
3309 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3310 condition to all users.
3312 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3313 condition to all users.
3314 (VF_128): Make V4SF mode unconditional.
3315 (VF_256): Rename from AVX256MODEF2P.
3316 (VI4F_128): Rename from SSEMODE4S.
3317 (VI8F_128): Rename from SSEMODE2D.
3318 (VI4F_256): Rename from AVX256MODE8P.
3319 (VI8F_256): Rename from AVX256MODE4P.
3320 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3321 (ssescalarmodesuffix): Remove SF and DF modes.
3322 (SSEMODE124): Remove.
3323 (SSEMODE1248): Ditto.
3324 (SSEMODEF2P): Ditto.
3325 (AVXMODEF2P): Ditto.
3326 (AVXMODEFDP): Ditto.
3327 (AVXMODEFSP): Ditto.
3328 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3330 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3332 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3333 xop_pcmov_<mode>256. Use V mode iterator.
3335 Adjust RTX patterns globally for renamed mode attributes.
3337 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3339 * haifa-sched.c (sched_emit_insn): Emit insn before first
3340 non-scheduled insn. Inform back-end about new insn. Add
3341 new insn to scheduled_insns list.
3343 2011-05-02 Richard Guenther <rguenther@suse.de>
3345 PR tree-optimization/48822
3346 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3347 (process_scc): Indicate which iteration we start.
3349 2011-05-02 Jan Hubicka <jh@suse.cz>
3351 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3352 (lto_section_overrun): New.
3353 * lto-section-out.c (append_block): Rename to ...
3354 (lto_append_block): ... this one; export.
3355 (lto_output_1_stream): Move lto lto-streamer.h
3356 (lto_output_data_stream): Update.
3357 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3358 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3361 2011-05-02 Richard Guenther <rguenther@suse.de>
3363 * tree.c (tree_code_counts): New global array.
3364 (record_node_allocation_statistics): Count individual tree codes.
3365 (dump_tree_statistics): Dump individual code stats.
3367 2011-05-01 Jan Hubicka <jh@suse.cz>
3369 * ipa-inline.c (caller_growth_limits): Fix thinko when
3370 looking for largest stack frame.
3371 * ipa-inline.h (dump_inline_summary): Declare.
3372 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3374 (dump_inline_summary): Export.
3375 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3377 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3379 * reginfo.c (memory_move_cost): Change rclass argument type form
3380 'enum reg_class' to reg_class_t.
3381 * reload.h (memory_move_cost): Update prototype.
3382 * postreload.c reload_cse_simplify_set): Change type dclass var to
3384 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3386 (ira_allocate_and_set_costs): Change aclass argument type form
3387 'enum reg_class' to reg_class_t.
3388 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3389 Change aclass argument type to reg_class_t.
3390 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3392 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3393 memory_move_cost call.
3395 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3396 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3397 Change type tmp var to reg_class_t.
3399 2011-04-30 Jan Hubicka <jh@suse.cz>
3401 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3402 inlining into function with flatten attribute.
3403 (want_inline_small_function_p): Be more realistic about inlining
3404 cold calls where callee size grows.
3406 2011-04-30 Jan Hubicka <jh@suse.cz>
3408 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3411 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3413 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3414 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3415 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3416 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3417 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3418 (print_operand): Rename to...
3419 (sparc_print_operand): ...this. Make static. Adjust
3420 sparc_print_operand function call.
3421 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3424 2011-04-30 Jan Hubicka <jh@suse.cz>
3427 * ipa-inline.c (early_inliner): Disable when doing late
3428 addition of function.
3430 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3432 * dwarf2out.c (get_address_mode): New inline.
3433 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3434 if not dwarf_strict emit
3435 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3436 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3437 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3438 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3439 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3440 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3441 mem_loc_descriptor callers.
3442 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3443 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3444 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3445 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3446 (base_types): New variable.
3447 (get_base_type_offset, calc_base_type_die_sizes,
3448 base_type_for_mode, mark_base_types, base_type_cmp,
3449 move_marked_base_types): New functions.
3450 (calc_die_sizes): Assert that die_offset is 0 or equal to
3452 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3453 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3454 callers. If not dwarf_strict, call mem_loc_descriptor even for
3455 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3456 (gen_subprogram_die): Don't give up on call site parameters
3457 with non-integral or large integral modes. Adjust
3458 mem_loc_descriptor callers.
3459 (prune_unused_types): Call prune_unused_types_mark on base_types
3461 (resolve_addr): Call mark_base_types.
3462 (dwarf2out_finish): Call move_marked_base_types.
3464 PR tree-optimization/48809
3465 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3467 (gen_inbound_check): Don't compute index_expr - range_min in utype
3468 again, instead reuse SSA_NAME initialized in build_arrays.
3469 Remove two useless gsi_for_stmt calls.
3471 2011-04-29 Jeff Law <law@redhat.com>
3473 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3475 2011-04-29 Martin Jambor <mjambor@suse.cz>
3477 * cgraph.h (cgraph_postorder): Remove declaration.
3478 * ipa-utils.h (ipa_free_postorder_info): Declare.
3479 (ipa_reverse_postorder): Likewise.
3480 * cgraphunit.c: Include ipa-utils.h.
3481 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3482 * ipa-inline.c: Include ipa-utils.h.
3483 (ipa_inline): Update call to ipa_reverse_postorder.
3484 * ipa-pure-const.c (propagate_pure_const): Update call to
3485 ipa_reduced_postorder and ipa_print_order. Call
3486 ipa_free_postorder_info to clean up.
3487 (propagate_nothrow): Likewise.
3488 * ipa-reference.c (propagate): Removed a useless call to
3489 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3490 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3491 * ipa.c: Include ipa-utils.h.
3492 (ipa_profile): Update call to ipa_reverse_postorder.
3493 (cgraph_postorder): Moved to...
3494 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3495 (ipa_utils_print_order): Renamed to ipa_print_order.
3496 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3498 (ipa_free_postorder_info): New function.
3499 * passes.c: Include ipa-utils.h.
3500 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3501 (ipa_write_summaries): Likewise.
3502 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3503 (cgraphunit.o): Likewise.
3505 (ipa-inline.o): Likewise.
3507 2011-04-29 Jan Hubicka <jh@suse.cz>
3509 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3510 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3511 * ipa-inline.h (clause_t): Turn into unsigned int.
3512 * ipa-inline-analysis.c (add_clause): Do more simplification.
3513 (and_predicates): Shortcut more cases.
3514 (predicates_equal_p): Move forward; check that clauses are properly
3516 (or_predicates): Shortcut more cases.
3517 (edge_execution_predicate): Rewrite as...
3518 (set_cond_stmt_execution_predicate): ... this function; handle
3519 __builtin_constant_p.
3520 (set_switch_stmt_execution_predicate): New .
3521 (compute_bb_predicates): New.
3522 (will_be_nonconstant_predicate): Update TODO.
3523 (estimate_function_body_sizes): Use compute_bb_predicates
3524 and free them later, always try to estimate if stmt is constant.
3525 (estimate_time_after_inlining, estimate_size_after_inlining):
3526 Gracefully handle optimized out edges.
3527 (read_predicate): Fix off by one error.
3529 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3531 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3533 2011-04-27 Xinliang David Li <davidxl@google.com>
3535 * tree-profile.c (init_ic_make_global_vars): Set
3536 tls attribute on ic vars.
3537 * coverage.c (coverage_end_function): Initialize
3538 function_list with zero.
3540 2011-04-29 Richard Guenther <rguenther@suse.de>
3542 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3543 for the type of the result.
3544 (fold_builtin_isascii): Likewise.
3545 (fold_builtin_toascii): Use integer_type_node where appropriate.
3546 (fold_builtin_logb): Likewise.
3547 (fold_builtin_frexp): Likewise.
3548 (fold_builtin_strstr): Likewise.
3549 (fold_builtin_strpbrk): Likewise.
3550 (fold_builtin_fputs): Likewise.
3551 (fold_builtin_sprintf): Likewise.
3552 (fold_builtin_snprintf): Likewise.
3553 (fold_builtin_printf): Likewise.
3554 (do_mpfr_remquo): Use a proper type for the assigned constant.
3555 (do_mpfr_lgamma_r): Likewise.
3556 * dwarf2out.c (resolve_one_addr): Use size_int.
3557 * except.c (init_eh): Likewise.
3558 (assign_filter_values): Use integer_type_node for filter values.
3559 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3561 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3562 for EH region numbers.
3563 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3564 for the shift amount.
3566 2011-04-29 Richard Guenther <rguenther@suse.de>
3568 * expr.h (expand_shift): Rename to ...
3569 (expand_variable_shift): ... this.
3570 (expand_shift): Take a constant shift amount.
3571 * expmed.c (expand_shift): Rename to ...
3572 (expand_variable_shift): ... this.
3573 (expand_shift): New wrapper around expand_variable_shift.
3574 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3575 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3576 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3577 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3578 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3579 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3580 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3581 emit_store_flag_1, emit_store_flag): Likewise.
3582 * builtins.c (expand_builtin_signbit): Likewise.
3583 * calls.c (load_register_parameters): Likewise.
3584 * function.c (assign_parm_setup_block): Likewise.
3585 * lower-subreg.c (resolve_shift_zext): Likewise.
3586 * optabs.c (widen_bswap, expand_abs_nojump,
3587 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3588 * spu/spu.c (spu_expand_extv): Likewise.
3589 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3591 2011-04-29 Richard Guenther <rguenther@suse.de>
3593 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3594 for the remapped region number.
3595 * predict.c (build_predict_expr): Use integer_type_node for the
3597 * fold-const.c (fold_binary_loc): Use integer_type_node for
3598 the shift amount. Use a proper type for the PLUS_EXPR operand.
3600 2011-04-29 Michael Matz <matz@suse.de>
3602 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3603 other trees that just builtins.
3604 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3606 2011-04-29 Richard Guenther <rguenther@suse.de>
3608 * tree-nested.c (get_trampoline_type): Use size_int.
3609 (get_nl_goto_field): Likewise.
3610 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3612 (lower_eh_constructs_2): Likewise.
3613 (lower_resx): Likewise.
3614 (lower_eh_dispatch): Likewise.
3615 * tree-mudflap.c (mf_build_string): Use size_int.
3616 (mudflap_register_call): Use integer_type_node for the flag.
3617 (mudflap_enqueue_constant): Use size_int.
3618 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3619 instead of rebuilding it.
3621 2011-04-29 Richard Guenther <rguenther@suse.de>
3623 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3624 Handle OBJ_TYPE_REF.
3625 (find_func_aliases_for_call): Use it more consistently.
3627 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3629 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3630 (rank_for_schedule): Use it.
3631 (schedule_block): Set it.
3633 2011-04-28 David Li <davidxl@google.com>
3635 * tree.c (crc32_string): Use crc32_byte.
3636 (crc32_byte): New function.
3637 * tree.h (crc32_byte): New function.
3638 * gcov.c (read_graph_file): Handle new cfg_cksum.
3639 (read_count_file): Ditto.
3640 * profile.c (instrument_values): Ditto.
3641 (get_exec_counts): Ditto.
3642 (read_profile_edge_counts): Ditto.
3643 (compute_branch_probabilities): Ditto.
3644 (compute_value_histograms): Ditto.
3645 (branch_prob): Ditto.
3646 (end_branch_prob): Ditto.
3647 * coverage.c (read_counts_file): Ditto.
3648 (get_coverage_counts): Ditto.
3649 (tree_coverage_counter_addr): Ditto.
3650 (coverage_checksum_string): Ditto.
3651 (coverage_begin_output): Ditto.
3652 (coverage_end_function): Ditto.
3653 (build_fn_info_type): Ditto.
3654 (build_fn_info_value): Ditto.
3655 * libgcov.c (gcov_exit): Ditto.
3656 * gcov-dump.c (tag_function): Ditto.
3657 (compute_checksum): Remove.
3659 2011-04-29 Alan Modra <amodra@gmail.com>
3661 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3662 unspec plus offset. Tidy macho code.
3664 2011-04-29 Martin Jambor <mjambor@suse.cz>
3666 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3667 node instead of a decl. Update all callers.
3668 * cgraph.h: Update declaration.
3670 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3672 PR tree-optimization/48765
3673 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3674 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3675 to indicate if loop aware SLP is being used. Scan the statements
3676 and update the vectorization factor according to the type of
3677 vectorization before statement analysis.
3678 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3679 pass it to vect_analyze_loop_operations.
3680 (vectorizable_reduction): Set number of copies to 1 in case of pure
3682 * tree-vect-stmts.c (vectorizable_conversion,
3683 vectorizable_assignment, vectorizable_shift,
3684 vectorizable_operation, vectorizable_type_demotion,
3685 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3687 (vectorizable_condition): Move the check that it is not SLP
3688 vectorization before the number of copies check.
3689 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3690 to vectorize the loop using SLP.
3692 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3695 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3698 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3700 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3701 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3702 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3703 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3704 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3706 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3707 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3708 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3709 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3710 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3711 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3713 * config/i386/linux.h (REG_NAME): Don't define.
3714 * config/i386/linux64.h (REG_NAME): Don't define.
3715 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3716 Undefine before defining.
3718 2011-04-28 Jan Hubicka <jh@suse.cz>
3720 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3721 nonconstant_names array.
3722 (estimate_function_body_sizes): Build nonconstant_names array; handle
3723 BUILT_IN_CONSTANT_P.
3725 2011-04-28 Richard Guenther <rguenther@suse.de>
3729 2011-04-28 Richard Guenther <rguenther@suse.de>
3731 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3732 as late as possible.
3734 2011-04-28 Richard Guenther <rguenther@suse.de>
3736 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3737 (debug_constraint): Do it here.
3738 (dump_constraints): And here.
3739 (rewrite_constraints): And here.
3740 (dump_constraint_edge): Remove.
3741 (dump_constraint_graph): Rewrite to produce DOT output.
3742 (solve_constraints): Build succ graph as late as possible.
3743 Dump constraint graphs before and after solving.
3745 2011-04-28 Richard Guenther <rguenther@suse.de>
3747 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3748 New function split out from ...
3749 (find_func_aliases): ... here. Call it.
3750 (find_func_aliases_for_call): Likewise.
3752 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3754 * internal-fn.h (internal_fn_name_array): Declare.
3755 (internal_fn_flags_array): Likewise.
3757 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3759 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3760 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3762 (ssemodefsuffix): Remove.
3763 (ssevecmodesuffix): New mode attribute.
3764 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3765 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3766 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3767 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3768 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3769 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3770 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3771 ssemodesuffix mode attribute.
3772 (float splitters): Use ssevecmodesuffix mode attribute.
3773 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3774 (sseinsmode): Rename from avxvecmode.
3775 (avxsizesuffix): Rename from avxmodesuffix.
3776 (sseintvecmode): Rename from avxpermvecmode.
3777 (ssedoublevecmode): Rename from ssedoublesizemode.
3778 (ssehalfvecmode): Rename from avxhalfvecmode.
3779 (ssescalarmode): Rename from avxscalarmode.
3780 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3781 templates for ssemodesuffix mode attribute.
3782 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3785 Adjust RTX patterns globally for renamed mode attributes.
3787 2011-04-27 Jan Hubcika <jh@suse.cz>
3789 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3790 * ipa-inline-analysis.c: Include alloc-pool.h.
3791 (edge_predicate_pool): New.
3792 (trye_predicate_p): New function
3793 (false_predicate_p): New function.
3794 (add_clause): Sanity check that false clauses are "optimized";
3795 never add clauses to predicate that is already known to be false.
3796 (and_predicate): Use flase_predicate_p.
3797 (evaulate_predicate): Rename to ...
3798 (evaluate_predicate): ... this one; update all callers; assert
3799 that false is not listed among possible truths.
3800 (dump_predicate): Use true_predicate_p.
3801 (account_size_time): Use false_predicate_p.
3802 (evaulate_conditions_for_edge): Rename to ...
3803 (evaluate_conditions_for_edge) ... this one.
3804 (edge_set_predicate): New function.
3805 (inline_edge_duplication_hook): Duplicate edge predicates.
3806 (inline_edge_removal_hook): Free edge predicates.
3807 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3808 (dump_inline_summary): Update.
3809 (estimate_function_body_sizes): Set edge predicates.
3810 (estimate_calls_size_and_time): Handle predicates.
3811 (estimate_callee_size_and_time): Update.
3812 (remap_predicate): Add toplev_predicate; update comment.
3813 (remap_edge_predicates): New function.
3814 (inline_merge_summary): Compute toplev predicate; update.
3815 (read_predicate): New function.
3816 (read_inline_edge_summary): Use it.
3817 (inline_read_section): Likewise.
3818 (write_predicate): New function.
3819 (write_inline_edge_summary): Use it.
3820 (inline_write_summary): Likewise.
3821 (inline_free_summary): Free alloc pool and edge summary vec.
3823 2011-04-27 Richard Guenther <rguenther@suse.de>
3825 * tree-ssa-structalias.c (changed_count): Remove.
3826 (changed): Use a bitmap.
3827 (unify_nodes): Adjust.
3828 (do_sd_constraint): Likewise.
3829 (do_ds_constraint): Likewise.
3830 (do_complex_constraint): Likewise.
3831 (solve_graph): Likewise.
3833 2011-04-27 Jan Hubicka <jh@suse.cz>
3835 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3837 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3839 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3840 (avx_vperm2f128_*_operand): Ditto.
3841 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3842 Use avx_vpermilp_parallel in insn condition.
3843 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3844 Use avx_vperm2f128_parallel in insn condition.
3846 2011-04-27 Richard Guenther <rguenther@suse.de>
3848 * Makefile.in (tree-ssa-structalias.o): Remove
3849 gt-tree-ssa-structalias.h dependency.
3850 (GTFILES): Remove tree-ssa-structalias.c.
3851 * tree.c (allocate_decl_uid): New function.
3852 (make_node_stat): Use it.
3853 (copy_node_stat): Likewise.
3854 * tree.h (allocate_decl_uid): Declare.
3855 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3856 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3857 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3858 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3859 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3860 (struct heapvar_map): Likewise.
3861 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3862 heapvar_insert): Likewise.
3863 (make_heapvar_for): Rename to ...
3864 (make_heapvar): ... this. Simplify.
3865 (fake_var_decl_obstack): New global var.
3866 (build_fake_var_decl): New function.
3867 (make_constraint_from_heapvar): Adjust.
3868 (handle_lhs_call): Likewise.
3869 (create_function_info_for): Likewise.
3870 (intra_create_variable_infos): Likewise.
3871 (init_alias_vars): Allocate fake_var_decl_obstack.
3872 (init_alias_heapvars, delete_alias_heapvars): Remove.
3873 (compute_points_to_sets): Do not call init_alias_heapvars.
3874 (ipa_pta_execute): Likewise.
3875 (delete_points_to_sets): Free fake_var_decl_obstack.
3877 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3879 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3880 (si_from_UTItype, si_to_UTItype): New functions.
3881 (__udivmodti4): Use them to implement type-punning.
3882 * config/spu/multi3.c (union qword_TItype): New data type.
3883 (si_from_TItype, si_to_TItype): New functions.
3884 (__multi3): Use them to implement type-punning.
3886 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3888 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3890 2011-04-27 Jan Hubicka <jh@suse.cz>
3892 * ipa-prop.c (function_insertion_hook_holder): New holder.
3893 (ipa_add_new_function): New function.
3894 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3895 Register/deregister holder.
3897 2011-04-27 Richard Guenther <rguenther@suse.de>
3899 PR tree-optimization/48772
3900 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3902 2011-04-27 Richard Guenther <rguenther@suse.de>
3904 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3905 TARGET_MEM_REF handling.
3907 2011-04-27 Nick Clifton <nickc@redhat.com>
3909 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3910 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3911 (REG_CLASS_NAMES): Likewise.
3912 (REG_CLASS_CONTENTS): Likewise.
3913 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3914 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3915 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3916 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3917 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3918 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3919 duplicate register classes.
3920 (frv_class_likely_spilled_p): Likewise.
3921 (frv_register_move_cost): Likewise.
3923 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3924 end of the regno_reg_class array.
3926 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3929 * c-typeck.c (build_binary_op): Don't wrap arguments if
3930 int_operands is true.
3932 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3935 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3936 targetm.calls.must_pass_in_stack for void type.
3938 2011-04-26 Jan Hubicka <jh@suse.cz>
3940 * cgraphbuild.c (build_cgraph_edges): Update call
3941 of cgraph_create_edge and cgraph_create_indirect_edge.
3942 * cgraph.c (cgraph_create_edge_including_clones,
3943 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3944 cgraph_update_edges_for_call_stmt_node): Do not take nest
3945 argument; do not initialize call_stmt_size/time.
3946 (dump_cgraph_node): Do not dump nest.
3947 (cgraph_clone_edge): Do not take loop_nest argument;
3948 do not propagate it; do not clone call_stmt_size/time.
3949 (cgraph_clone_node): Likewise.
3950 (cgraph_create_virtual_clone): Update.
3951 * cgraph.h (struct cgraph_edge): Remove
3952 call_stmt_size/call_stmt_time/loop_nest.
3953 (cgraph_create_edge, cgraph_create_indirect_edge,
3954 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3956 * tree-emutls.c (gen_emutls_addr): Update.
3957 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3958 loop_nest; handle indirect calls, too.
3959 (clone_inlined_nodes): Do not care about updating inline summaries.
3960 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3961 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3962 stream call_stmt_size/call_stmt_time/loop_nest.
3963 * ipa-inline.c (edge_badness): Update.
3964 (ipa_inline): dump summaries after inlining.
3965 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3967 (inline_edge_summary): New function.
3968 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3969 (inline_edge_removal_hook): Handle edge summaries.
3970 (inline_edge_duplication_hook): New hook.
3971 (inline_summary_alloc): Alloc hooks.
3972 (initialize_growth_caches): Do not register removal hooks.
3973 (free_growth_caches); Do not free removal hook.
3974 (dump_inline_edge_summary): New function.
3975 (dump_inline_summary): Use it.
3976 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3977 (inline_update_callee_summaries): New function.
3978 (inline_merge_summary): Use it.
3979 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3980 (read_inline_edge_summary): New function.
3981 (inline_read_section): Use it.
3982 (write_inline_edge_summary): New function.
3983 (inline_write_summary): Use it.
3984 (inline_free_summary): Free edge new holders.
3985 * tree-inline.c (copy_bb): Update.
3987 2011-04-26 Jason Merrill <jason@redhat.com>
3989 * tree-eh.c (lower_try_finally_switch): Create the label along with
3990 the CASE_LABEL_EXPR.
3992 2011-04-26 David S. Miller <davem@davemloft.net>
3993 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3995 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3996 * configure: Regenerate.
3998 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4001 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4003 (VEC_reduc): New code iterator and splitters for vector reduction.
4004 (VEC_reduc_name): Ditto.
4005 (VEC_reduc_rtx): Ditto.
4006 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4007 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4009 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4010 support for extracting SF on VSX.
4012 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4013 generating xscvspdp.
4014 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4015 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4016 double add, minimum, maximum vector reduction.
4017 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4018 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4019 optimize double vector reduction.
4020 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4022 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4024 * config/fr30/fr30.h (inhibit_libc): Don't define.
4025 * config/m32r/m32r-protos.h: Correct comment.
4026 * config/v850/v850.h (GHS_default_section_names,
4027 GHS_current_section_names): Use tree, not union tree_node *.
4029 2011-04-26 Xinliang David Li <davidxl@google.com>
4031 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4032 * c-family/c-opts.c (c_common_handle_option): Set
4033 warn_maybe_uninitialized.
4034 * opts.c (common_handle_option): Ditto.
4035 * common.opt: New option.
4036 * tree-ssa.c (warn_uninit): Add one more parameter.
4037 (warn_uninitialized_var): Pass warning code.
4038 * tree-flow.h: Interface change.
4041 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4043 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4044 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4045 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4047 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4049 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4050 * config/mips/mips.opt (mmips-tfile): Remove.
4052 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4053 mips-tdump reference to ...
4054 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4055 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4056 reference by Tru64 UNIX.
4058 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4061 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4062 is error_mark_node, set value to NULL.
4064 PR tree-optimization/48734
4065 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4066 if return value from maybe_fold_*_comparsions isn't something
4067 the code is prepared to handle.
4069 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4071 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4073 (ext_QIreg_nomode_operands): Remove.
4074 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4078 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4080 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4082 2011-04-26 Richard Guenther <rguenther@suse.de>
4084 * c-typeck.c (build_unary_op): Do not expand array-refs via
4085 pointer arithmetic. Only adjust qualifiers for function types.
4087 2011-04-26 Richard Guenther <rguenther@suse.de>
4090 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4091 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4092 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4093 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4095 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4097 * doc/extend.texi: Document __underlying_type.
4099 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4101 * config/rs6000/titan.md (automata_option "progress"): Remove.
4103 2011-04-25 Jeff Law <law@redhat.com>
4105 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4107 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4109 * system.h (ENUM_BITFIELD): Remove.
4111 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4112 Eric Botcazou <ebotcazou@adacore.com>
4114 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4115 for STORE_FLAG_VALUE==-1 case.
4117 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4120 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4121 LEGITIMATE_PIC_OPERAND_P.
4123 2011-04-24 Jan Hubicka <jh@suse.cz>
4125 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4127 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4128 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4129 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4130 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4131 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4132 Sanity check predicate length.
4133 (remap_predicate): Likewise; sanity check jump functions.
4134 (inline_read_section, inline_write_summary): Sanity check
4137 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4140 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4141 __is_literal_type, and __is_trivial; update throughout about
4142 possibly cv-qualified void types.
4144 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4146 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4147 testsuite and make it version agnostic.
4149 2011-04-22 Jan Hubicka <jh@suse.cz>
4151 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4153 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4156 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4157 to VOID_TYPE even around MODIFY_EXPR.
4159 2011-04-22 Mike Stump <mikestump@comcast.net>
4161 * gensupport.c (read_md_rtx): Fix typo in comment.
4162 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4165 2011-04-22 Jan Hubicka <jh@suse.cz>
4167 * gengtype.c (open_base_files): Add ipa-inline.h include.
4168 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4169 ipa-prop.c; update all uses.
4170 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4171 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4172 merge summary of inlined function into former caller.
4173 * ipa-inline.c (max_benefit): Remove.
4174 (edge_badness): Compensate for removal of benefits.
4175 (update_caller_keys): Use
4176 reset_node_growth_cache/reset_edge_growth_cache.
4177 (update_callee_keys): Likewise.
4178 (update_all_callee_keys): Likewise.
4179 (inline_small_functions): Do not collect max_benefit; do not reset
4180 estimated_growth; call free_growth_caches and initialize_growth_caches.
4181 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4182 struct size_time_entry): New structures.
4183 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4184 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4185 and estimated_growth.
4186 (edge_growth_cache_entry): New structure.
4187 (node_growth_cache, edge_growth_cache): New global vars.
4188 (estimate_growth): Turn into inline.
4189 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4190 initialize_growth_caches, free_growth_caches): Declare.
4191 (estimate_edge_growth): Rewrite.
4192 (estimate_edge_time): Implement as inline cache lookup.
4193 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4195 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4196 (NUM_CONDITIONS): New constant.
4197 (predicate_conditions): New enum.
4198 (IS_NOT_CONSTANT): New constant.
4199 (edge_removal_hook_holder): New var.
4200 (node_growth_cache, edge_growth_cache): New global vars.
4201 (true_predicate, single_cond_predicate, false_predicate,
4202 not_inlined_predicate, add_condition, add_clause, and_predicates,
4203 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4204 dump_clause, dump_predicate, account_size_time,
4205 evaulate_conditions_for_edge): New functions.
4206 (inline_summary_alloc): Move to heap.
4207 (inline_node_removal_hook): Clear condition and entry vectors.
4208 (inline_edge_removal_hook): New function.
4209 (initialize_growth_caches, free_growth_caches): New function.
4210 (dump_inline_summary): Update.
4211 (edge_execution_predicate): New function.
4212 (will_be_nonconstant_predicate): New function.
4213 (estimate_function_body_sizes): Compute BB and constantness predicates.
4214 (compute_inline_parameters): Do not clear estimated_growth.
4215 (estimate_edge_size_and_time): New function.
4216 (estimate_calls_size_and_time): New function.
4217 (estimate_callee_size_and_time): New function.
4218 (remap_predicate): New function.
4219 (inline_merge_summary): New function.
4220 (do_estimate_edge_time): New function based on...
4221 (estimate_edge_time): ... this one.
4222 (do_estimate_edge_growth): New function.
4223 (do_estimate_growth): New function based on....
4224 (estimate_growth): ... this one.
4225 (inline_analyze_function): Analyze after deciding on jump functions.
4226 (inline_read_section): New function.
4227 (inline_read_summary): Use it.
4228 (inline_write_summary): Write all the new data.
4229 * ipa-prop.c (ipa_get_param_decl_index): Export.
4230 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4231 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4233 (ipa_get_lattice): Move here from ipa-cp.c
4234 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4235 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4236 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4237 cgraph_edge_inlinable_p): Remove.
4238 * cgraphunit.c: Include ipainline.h
4239 (cgraph_process_new_functions): Update call of
4240 compute_inline_parameters.
4242 2011-04-22 Richard Guenther <rguenther@suse.de>
4244 * tree.c (build_int_cst): Properly create canonicalized integer
4246 (build_int_cst_type): Remove scary comments.
4248 2011-04-22 Xinliang David Li <davidxl@google.com>
4250 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4251 by default when -Wno-error is not specified.
4252 * opts-global.c (decode_options): Remove call to
4253 control_warning_options.
4255 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4257 PR tree-optimization/48717
4258 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4259 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4261 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4263 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4264 definition where used.
4266 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4269 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4270 TREE_STATIC variables declared inside of some OpenMP construct.
4272 2011-04-22 Martin Jambor <mjambor@suse.cz>
4275 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4277 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4280 * c-typeck.c (pop_init_level): Do not warn about initializing
4283 2011-04-22 Alan Modra <amodra@gmail.com>
4285 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4286 when returning call_cookie.
4287 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4288 pointers, to functions with no more vector args than the current
4289 function, and some non-local calls for ABI_V4.
4290 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4291 sibcall_nonlocal_aix64): Combine to ..
4292 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4293 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4294 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4295 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4296 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4298 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4299 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4300 sibcall_value_symbolic_64): Delete.
4302 2011-04-21 Xinliang David Li <davidxl@google.com>
4304 * cgraph.h: Remove pid.
4305 * cgraph.c: Remove pid.
4306 * value-prof.c (init_node_map): New function.
4307 (del_node_map): New function.
4308 (find_func_by_funcdef_no): New function.
4309 (gimple_ic_transform): Call new function.
4310 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4311 * function.c (get_last_funcdef_no): New function.
4312 * function.h (get_last_funcdef_no): New function.
4313 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4314 to libgcov function.
4315 (tree-profiling): Call node map init and delete function.
4317 2011-04-21 Ian Lance Taylor <iant@google.com>
4319 * godump.c (go_format_type): Use exported Go name for anonymous
4322 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4324 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4325 Call builtin_function_type_list instead of builtin_function_type.
4326 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4328 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4330 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4331 build_function_type_list instead of build_function_type.
4332 Delete variable `endlink'.
4334 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4336 * config/s390/s390.c (s390_init_builtins): Call
4337 build_function_type_list instead of build_function_type.
4339 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4341 * config/ia64/ia64.c (ia64_init_builtins): Call
4342 build_function_type_list instead of builtin_function_type.
4344 2011-04-21 Easwaran Raman <eraman@google.com>
4346 * cfgexpand.c (stack_var): Remove OFFSET...
4347 (add_stack_var): ...and its reference here...
4348 (expand_stack_vars): ...and here.
4349 (stack_var_cmp): Sort by descending order of size.
4350 (partition_stack_vars): Change heuristic.
4351 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4352 (dump_stack_var_partition): Add newline after each partition.
4354 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4355 Jeff Law <law@redhat.com>
4357 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4358 * gengtype.c (matching_file_name_substitute): Likewise.
4360 2011-04-21 Richard Guenther <rguenther@suse.de>
4363 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4365 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4367 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4369 2011-04-21 Richard Guenther <rguenther@suse.de>
4371 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4374 2011-04-21 Richard Guenther <rguenther@suse.de>
4376 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4377 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4378 Use DECL_P, not SSA_VAR_P.
4379 (ptr_derefs_may_alias_p): Likewise.
4380 (ptr_deref_may_alias_ref_p_1): Likewise.
4381 (decl_refs_may_alias_p): Likewise.
4382 (refs_may_alias_p_1): Likewise.
4383 (ref_maybe_used_by_call_p_1): Likewise.
4384 (call_may_clobber_ref_p_1): Likewise.
4385 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4386 are either MEM_REF or TARGET_MEM_REF.
4387 (indirect_refs_may_alias_p): Likewise.
4388 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4389 for MEM_EXPR of indirect calls.
4391 2011-04-21 Tristan Gingold <gingold@adacore.com>
4393 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4394 (dst_file_info_struct): Remove flen field.
4395 (lookup_filename): Remove code that set flen field.
4397 2011-04-21 Tristan Gingold <gingold@adacore.com>
4399 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4401 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4404 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4405 vec_extract and vec_concat for non-SSE4_1 targets.
4407 2011-04-21 Richard Guenther <rguenther@suse.de>
4409 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4412 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4414 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4416 (FILE): Don't undefine.
4418 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4420 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4422 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4424 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4425 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4426 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4428 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4429 definitions where used.
4430 * config/microblaze/microblaze.h (struct microblaze_args): Use
4431 rtx, not struct rtx_def *.
4432 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4434 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4435 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4436 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4437 not struct rtx_def *.
4438 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4440 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4442 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4444 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4446 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4447 operand_equal_p to compare DR_BASE_ADDRESSes.
4448 (vect_check_interleaving): Likewise.
4450 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4453 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4454 for all Neon struct constants.
4456 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4458 * target.def (legitimate_constant_p): New hook.
4459 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4460 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4461 * doc/tm.texi: Regenerate.
4462 * hooks.h (hook_bool_mode_rtx_true): Declare.
4463 * hooks.c (hook_bool_mode_rtx_true): Define.
4464 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4465 * calls.c (precompute_register_parameters): Replace uses of
4466 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4467 (emit_library_call_value_1): Likewise.
4468 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4469 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4470 * ira-costs.c (scan_one_insn): Likewise.
4471 * recog.c (general_operand, immediate_operand): Likewise.
4472 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4473 * reload1.c (init_eliminable_invariants): Likewise.
4475 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4477 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4478 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4480 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4481 * config/alpha/predicates.md (input_operand): Update call to
4482 alpha_legitimate_constant_p.
4484 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4485 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4486 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4487 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4488 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4489 (arm_legitimate_constant_p): New functions.
4490 (arm_cannot_force_const_mem): Make static.
4492 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4494 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4495 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4496 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4497 instead of bfin_legitimate_constant_p.
4498 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4499 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4501 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4503 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4505 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4506 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4507 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4508 (frv_legitimate_constant_p): Make static. Add a mode argument.
4510 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4511 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4512 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4514 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4515 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4516 * config/i386/i386.c (legitimate_constant_p): Rename to...
4517 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4519 (ix86_cannot_force_const_mem): Update accordingly.
4520 (ix86_legitimate_address_p): Likewise.
4521 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4522 * config/i386/i386.md: Update commentary.
4524 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4525 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4526 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4527 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4529 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4531 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4532 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4533 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4534 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4536 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4537 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4538 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4540 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4541 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4542 (m32r_legitimate_constant_p): New function.
4544 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4545 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4546 LEGITIMATE_CONSTANT_P.
4547 (LEGITIMATE_CONSTANT_P): Delete.
4548 * config/m68k/m68k.c (m68k_expand_prologue): Call
4549 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4550 (m68k_legitimate_constant_p): New function.
4551 * config/m68k/m68k.md: Update comments.
4553 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4554 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4555 (mcore_legitimate_constant_p): New function.
4557 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4558 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4559 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4560 Add a mode argument.
4561 (mep_legitimate_address): Update accordingly.
4562 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4564 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4566 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4567 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4568 static. Check OP's mode for VOIDmode.
4569 (microblaze_legitimate_constant_p): New function.
4570 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4572 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4573 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4574 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4575 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4576 * config/mips/predicates.md: Update comments.
4578 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4579 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4580 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4581 (mmix_legitimate_constant_p): Make static, return a bool, and take
4583 (mmix_print_operand_address): Update accordingly.
4585 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4587 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4588 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4589 static. Add a mode argument.
4590 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4592 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4594 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4595 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4596 (pa_legitimate_constant_p): New function.
4598 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4600 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4601 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4602 (pdp11_legitimate_constant_p): New function.
4604 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4605 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4606 (rs6000_legitimate_constant_p): New function.
4608 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4609 (rx_legitimate_constant_p): ...this.
4610 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4611 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4612 (rx_legitimate_constant_p): ...this.
4613 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4614 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4616 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4617 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4618 * config/s390/s390.c (legitimate_constant_p): Rename to...
4619 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4620 and add a mode argument.
4621 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4623 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4625 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4626 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4627 (sh_legitimate_constant_p): New function.
4629 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4630 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4631 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4632 (legitimate_constant_p): Rename to...
4633 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4635 (constant_address_p): Update accordingly.
4637 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4638 argument and return a bool.
4639 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4640 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4641 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4642 (spu_rtx_costs): Update accordingly.
4643 * config/spu/predicates.md (vec_imm_operand): Likewise.
4645 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4647 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4648 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4649 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4651 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4652 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4653 * config/vax/vax.c (legitimate_constant_p): Likewise.
4655 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4656 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4657 (xtensa_legitimate_constant_p): New function.
4659 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4661 * target.def (cannot_force_const_mem): Add a mode argument.
4662 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4663 * doc/tm.texi: Regenerate.
4664 * hooks.h (hook_bool_mode_rtx_false): Declare.
4665 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4666 (hook_bool_mode_const_rtx_true): Likewise.
4667 (hook_bool_mode_rtx_false): New function.
4668 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4669 to be non-VOID. Update call to cannot_force_const_mem.
4670 (find_reloads): Update accordingly.
4671 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4672 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4674 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4675 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4676 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4677 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4678 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4679 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4680 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4681 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4682 (m68k_cannot_force_const_mem): ...this new function.
4683 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4685 (mips_const_insns, mips_legitimize_const_move): Update calls.
4686 (mips_secondary_reload_class): Likewise.
4687 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4688 (pa_cannot_force_const_mem): ...this new function.
4689 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4690 (rs6000_cannot_force_const_mem): ...this new function.
4691 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4693 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4694 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4696 (xtensa_cannot_force_const_mem): ...this new function.
4698 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4700 * config/mips/mips.c (mips16_build_function_stub): Call
4701 build_function_type_list instead of build_function_type.
4702 (mips16_build_call_stub): Likewise.
4704 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4706 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4707 instead of build_function_type.
4709 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4711 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4712 instead of build_function_type.
4714 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4717 * config/i386/i386.md (insv): Change operand 0 constraint to
4718 "register_operand". Change operand 1 and 2 constraint to
4719 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4720 * config/i386/sse.md (sse4_1_pinsrb): Export.
4721 (sse2_pinsrw): Ditto.
4722 (sse4_1_pinsrd): Ditto.
4723 (sse4_1_pinsrq): Ditto.
4724 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4725 * config/i386/i386.c (ix86_expand_pinsr): New.
4727 2011-04-20 Easwaran Raman <eraman@google.com>
4729 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4730 containing union type only with -fstrict-aliasing.
4732 2011-04-20 Jim Meyering <meyering@redhat.com>
4734 Remove useless if-before-free tests.
4735 * calls.c (expand_call, save_area): Likewise.
4736 * cfgcleanup.c (try_forward_edges): Likewise.
4737 * collect2.c (collect_execute): Likewise.
4738 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4739 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4740 * coverage.c (coverage_checksum_string): Likewise.
4741 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4742 * cselib.c (cselib_init): Likewise.
4743 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4744 (df_set_clean_cfg): Likewise.
4745 * function.c (free_after_compilation): Likewise.
4746 * gcc.c (do_spec_1, main): Likewise.
4747 * gcov.c (create_file_names): Likewise.
4748 * gensupport.c (identify_predicable_attribute): Likewise.
4749 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4750 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4751 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4752 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4753 * ipa-pure-const.c (local_pure_const): Likewise.
4754 * ipa-reference.c (propagate): Likewise.
4755 * ira-costs.c (free_ira_costs): Likewise.
4756 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4757 * matrix-reorg.c (mat_free): Likewise.
4758 * prefix.c (get_key_value): Likewise.
4759 * profile.c (compute_value_histograms): Likewise.
4760 * reload1.c (free_reg_equiv): Likewise.
4761 * sched-deps.c (free_deps): Likewise.
4762 * sel-sched-ir.c (fence_clear): Likewise.
4763 * sese.c (set_rename, if_region_set_false_region): Likewise.
4764 * tree-data-ref.c (free_rdg): Likewise.
4765 * tree-eh.c (lower_try_finally): Likewise.
4766 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4767 * tree-ssa-live.c (delete_var_map): Likewise.
4768 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4769 * tree-ssa-pre.c (phi_trans_add): Likewise.
4771 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4773 PR tree-optimization/48611
4774 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4775 beyond ERT_MUST_NOT_THROW region.
4777 2011-04-20 Catherine Moore <clm@codesourcery.com>
4779 * config/mips/mips.opt (mfix-24k): New.
4780 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4781 * config/mips/mips.md (length): Increase by 4 for stores if
4783 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4784 all noreorder if fixing 24K errata.
4785 * doc/invoke.texi: Document mfix-24k.
4787 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4789 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4790 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4792 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4794 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4795 (const_ok_for_op): ... to here.
4797 2011-04-20 Kai Tietz <ktietz@redhat.com>
4799 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4800 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4802 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4804 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4806 2011-04-20 Richard Guenther <rguenther@suse.de>
4808 PR tree-optimization/47892
4809 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4812 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4814 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4816 2011-04-20 Tristan Gingold <gingold@adacore.com>
4818 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4820 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4824 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4825 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4826 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4827 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4828 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4830 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4833 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4834 (avr_asm_named_section, avr_asm_output_aligned_common,
4835 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4836 New functions to update...
4837 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4838 (avr_asm_init_sections): Overwrite section callbacks for
4839 data_section, bss_section.
4840 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4842 (avr_file_end): ...here.
4844 2011-04-20 Richard Guenther <rguenther@suse.de>
4847 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4848 objects and types here. Adjust for their offset before comparing.
4850 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4852 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4855 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4857 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4858 (GIMPLE_H): Include $(INTERNAL_FN_H).
4859 (OBJS-common): Add internal-fn.o.
4860 (internal-fn.o): New rule.
4861 * internal-fn.def: New file.
4862 * internal-fn.h: Likewise.
4863 * internal-fn.c: Likewise.
4864 * gimple.h: Include internal-fn.h.
4865 (GF_CALL_INTERNAL): New gf_mask.
4866 (gimple_statement_call): Put fntype into a union with a new
4868 (gimple_build_call_internal): Declare.
4869 (gimple_build_call_internal_vec): Likewise.
4870 (gimple_call_same_target_p): Likewise.
4871 (gimple_call_internal_p): New function.
4872 (gimple_call_internal_fn): Likewise.
4873 (gimple_call_fntype): Return null for internal calls.
4874 (gimple_call_set_fntype): Assert that the function is not internal.
4875 (gimple_call_set_fn): Likewise.
4876 (gimple_call_set_fndecl): Likewise.
4877 (gimple_call_set_internal_fn): New function.
4878 (gimple_call_addr_fndecl): Handle null functions.
4879 (gimple_call_return_type): Likewise null types.
4880 * gimple.c (gimple_build_call_internal_1): New function.
4881 (gimple_build_call_internal): Likewise.
4882 (gimple_build_call_internal_vec): Likewise.
4883 (gimple_call_same_target_p): Likewise.
4884 (gimple_call_flags): Handle calls to internal functions.
4885 (gimple_call_fnspec): New function.
4886 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4887 (gimple_has_side_effects): Handle null functions.
4888 (gimple_rhs_has_side_effects): Likewise.
4889 (gimple_call_copy_skip_args): Handle calls to internal functions.
4890 * cfgexpand.c (expand_call_stmt): Likewise.
4891 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4892 * gimple-fold.c (gimple_fold_call): Handle null functions.
4893 (gimple_fold_stmt_to_constant_1): Don't fold
4894 calls to internal functions.
4895 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4897 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4898 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4899 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4900 (do_warn_unused_result): Likewise.
4901 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4902 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4903 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4904 the target of a call.
4905 (initialize_hash_element): Update accordingly.
4906 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4907 (iterative_hash_hashable_expr): Handle calls to internal functions.
4908 (print_expr_hash_elt): Likewise.
4909 * tree-ssa-pre.c (can_value_number_call): Likewise.
4910 (eliminate): Handle null functions.
4911 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4912 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4913 (find_func_aliases): Likewise.
4914 * value-prof.c (gimple_ic_transform): Likewise.
4915 (gimple_indirect_call_to_profile): Likewise.
4916 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4917 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4919 2011-04-19 Jan Hubicka <jh@suse.cz>
4921 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4922 * ipa-inline.c (inline_small_functions): Compute summaries first,
4923 populate heap later.
4925 2011-04-19 Jan Hubicka <jh@suse.cz>
4927 * cgraph.h (save_inline_function_body): Remove.
4928 * ipa-inline-transform.c: New file, broke out of...
4929 * ipa-inline.c: ... this one; Update toplevel comment.
4930 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4932 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4933 (cgraph_mark_inline_edge): Rename to inline_call; move to
4934 ipa-inline-transform.c.
4935 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4936 move to ipa-inline-transform.c
4937 (recursive_inlining, inline_small_functions, flatten_function,
4938 ipa_inline, inline_always_inline_functions,
4939 early_inline_small_functions): Update.
4940 (inline_transform): Move to ipa-inline-transform.c.
4941 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4943 * Makefile.in (ipa-inline-transform.o): New file.
4944 * cgraphunit.c (save_inline_function_body): Move to
4945 ipa-inline-transform.c
4947 2011-04-19 DJ Delorie <dj@redhat.com>
4949 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4950 registers if we already know there aren't any.
4951 (m32c_emit_epilogue): Don't emit a barrier here.
4952 (m32c_emit_eh_epilogue): Likewise.
4953 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4954 operands at expand time.
4955 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4957 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4958 duplicates. Provide aliases instead.
4959 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4960 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4963 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4965 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4966 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4967 (general_or_i64_p, sparc_register_move_cost): New function.
4969 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4971 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4972 Add lynx, mipssde. Sort table.
4974 2011-04-19 Xinliang David Li <davidxl@google.com>
4976 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4979 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4982 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4983 is a SUBREG with non-MODE_INT mode inside of it.
4985 2011-04-19 Martin Jambor <mjambor@suse.cz>
4987 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4988 also according to actual contants.
4989 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4990 (gimple_fold_call): Use it.
4991 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4993 2011-04-19 Martin Jambor <mjambor@suse.cz>
4995 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4996 non-pointer assignments.
4998 2011-04-19 Martin Jambor <mjambor@suse.cz>
5000 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5001 account anc_offset and otr_type from the indirect edge info.
5002 * ipa-prop.c (get_ancestor_addr_info): New function.
5003 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5004 get_ancestor_addr_info, call it.
5005 (ipa_note_param_call): Do not initialize information about polymorphic
5006 calls, return the indirect call graph edge. Remove the last
5007 parameter, adjust all callers.
5008 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5009 parameters. Initialize polymorphic information in the indirect edge.
5011 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5014 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5015 the types if they have different enumeration identifiers.
5017 2011-04-19 Jan Hubicka <jh@suse.cz>
5019 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5020 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5021 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5022 (optimize_function_for_size_p) ... here.
5024 2011-04-19 Richard Guenther <rguenther@suse.de>
5027 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5030 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5032 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5033 if DECL_NO_INLINE_WARNING_P is set on the function.
5035 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5038 * reload1.c (inc_for_reload): Return void. All callers changed.
5039 (emit_input_reload_insns): Don't try to delete previous output
5040 reloads to a register, or record spill_reg_store for autoincs.
5042 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5044 * gengtype.h: Updated copyright year.
5045 (struct input_file_st): Add inpisplugin field.
5046 (type_fileloc): New function.
5048 (write_typed_struct_alloc_def): Add gcc_assert.
5049 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5050 (write_typed_alloc_defns): Don't output for plugin files.
5051 (input_file_by_name): Clear inpisplugin field.
5052 (main): Set inpisplugin field for plugin files.
5054 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5056 * gengtype-state.c (string_eq): New.
5057 (read_state): Use string_eq instead of strcmp when creating the
5060 2011-04-19 Wei Guozhi <carrot@google.com>
5063 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5064 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5066 * config/arm/constraints.md (Uu): New constraint.
5067 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5069 2011-04-19 Tristan Gingold <gingold@adacore.com>
5071 * config.gcc (-*-*-*vms): Added.
5072 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5074 * config/vms/vms-ld.c: New file.
5075 * config/vms/vms-ar.c: New file.
5076 * config/vms/t-vmsnative: New file.
5078 2011-04-18 Xinliang David Li <davidxl@google.com>
5080 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5082 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5085 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5086 if TREE_TYPE (v) is non-NULL.
5088 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5089 gimple_get_virt_mehtod_for_binfo.
5090 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5091 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5093 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5095 2011-04-18 Michael Matz <matz@suse.de>
5096 Steve Ellcey <sje@cup.hp.com>
5098 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5099 use its mode as source mode if it isn't VOIDmode.
5101 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5103 * doc/passes.texi: Fill crossref nodes.
5105 2011-04-18 Jim Meyering <meyering@redhat.com>
5107 Fix doubled-word typos in comments and strings
5108 * config/alpha/vms-unwind.h: s/for for/for/
5109 * config/arm/unwind-arm.h: Likewise.
5110 * config/microblaze/microblaze.c: Likewise.
5111 * config/sh/constraints.md: s/in in/in/
5112 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5114 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5116 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5117 (AVX_FLOAT_MODE_P): Ditto.
5118 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5119 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5120 (AVX_VEC_FLOAT_MODE_P): Ditto.
5121 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5122 (UNSPEC_MASKSTORE): Ditto.
5123 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5124 Merge from <sse>_movmsk<ssemodesuffix> and
5125 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5126 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5128 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5129 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5130 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5132 2011-04-18 Jan Hubicka <jh@suse.cz>
5134 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5136 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5137 (want_inline_function_called_once_p): Break out the logic from
5139 (edge_badness): Ensure that profile is not misupdated.
5140 (lookup_recursive_calls): Prioritize by call frequencies.
5141 (inline_small_functions): Move program size estimates here;
5142 actually process whole queue even when unit growth has been
5143 met. (to properly compute inline_failed reasons and for the
5144 case unit size decrease.) Revisit comments on recursive inlining.
5145 (ipa_inline): Remove unit summary code; first inline hot calls
5146 of functions called once, cold calls next.
5147 (order, nnodes): Remove unused variables.
5148 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5149 (GTFILES): Remove ipa-inline.c
5150 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5152 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5154 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5156 2011-04-18 Jie Zhang <jie@codesourcery.com>
5157 Richard Earnshaw <rearnsha@arm.com>
5159 * arm.c (neon_builtin_type_bits): Remove.
5160 (typedef enum neon_builtin_mode): New.
5161 (T_MAX): Don't define.
5162 (typedef enum neon_builtin_datum): Remove bits, codes[],
5163 num_vars and base_fcode. Add mode, code and fcode.
5164 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5165 VAR10): Change accordingly.
5166 (neon_builtin_data[]): Change accordingly
5167 (arm_init_neon_builtins): Change accordingly.
5168 (neon_builtin_compare): Remove.
5169 (locate_neon_builtin_icode): Remove.
5170 (arm_expand_neon_builtin): Change accordingly.
5172 * arm.h (enum arm_builtins): Move to ...
5173 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5175 * arm.c (arm_builtin_decl): Declare.
5176 (TARGET_BUILTIN_DECL): Define.
5177 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5178 (arm_builtin_decls[]): New.
5179 (arm_init_neon_builtins): Store builtin declarations in
5180 arm_builtin_decls[].
5181 (arm_init_tls_builtins): Likewise.
5182 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5183 (arm_builtin_decl): New.
5185 2011-04-18 Richard Guenther <rguenther@suse.de>
5187 * tree.c (upper_bound_in_type): Build properly canonicalized
5189 (lower_bound_in_type): Likewise.
5191 2011-04-18 Richard Guenther <rguenther@suse.de>
5193 * gimple.h (gimple_call_addr_fndecl): New function.
5194 (gimple_call_fndecl): Use it.
5195 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5197 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5198 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5200 2011-04-18 Richard Guenther <rguenther@suse.de>
5203 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5205 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5208 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5209 DECL_IN_CONSTANT_POOL without RTL.
5211 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5212 Ira Rosen <ira.rosen@linaro.org>
5215 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5216 to match neon_vzip/vuzp/vtrn_internal.
5217 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5218 outputs explicitly dependent on both inputs.
5219 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5221 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5223 PR tree-optimization/48616
5224 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5225 whether the shift is by scalar or vector based on whether all SLP
5226 scalar stmts have the same rhs.
5228 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5230 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5233 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5236 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5239 2011-04-17 Jan Hubicka <jh@suse.cz>
5241 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5242 * cgrpahunit.c (cgraph_finalize_function): Do not set
5243 finalized_by_frontend.
5244 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5245 finalized_by_frontend.
5247 2011-04-17 Jan Hubicka <jh@suse.cz>
5249 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5250 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5251 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5252 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5254 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5256 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5258 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5261 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5262 is non-null before accessing it.
5263 (input_cgraph): Remove trailing spaces.
5265 2011-04-17 Revital Eres <revital.eres@linaro.org>
5267 * params.def (sms-min-sc): New param flag.
5268 * modulo-sched.c (sms_schedule): Use it.
5269 * doc/invoke.texi (sms-min-sc): Document it.
5271 2011-04-17 Jan Hubicka <jh@suse.cz>
5273 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5274 present, also set gimple_call_set_cannot_inline.
5275 * ipa-inline.c: Update toplevel comment.
5277 (cgraph_clone_inlined_nodes): Fix linebreaks.
5278 (cgraph_check_inline_limits): Restructure to ...
5279 (caller_growth_limits): ... this one; be more tolerant
5280 on growth in nested inline chains; add explanatory comment;
5281 fix stack accounting thinko introduced by previous patch.
5282 (cgraph_default_inline_p): Remove.
5283 (report_inline_failed_reason): New function.
5284 (can_inline_edge_p): New function.
5285 (can_early_inline_edge_p): New function.
5286 (leaf_node_p): Move upwards in file.
5287 (want_early_inline_function_p): New function.
5288 (want_inline_small_function_p): New function.
5289 (want_inline_self_recursive_call_p): New function.
5290 (cgraph_edge_badness): Rename to ...
5291 (edge_badness) ... this one; fix linebreaks.
5292 (update_edge_key): Update call of edge_baddness; add
5293 detailed dump about queue updates.
5294 (update_caller_keys): Use can_inline_edge_p and
5295 want_inline_small_function_p.
5296 (cgraph_decide_recursive_inlining): Rename to...
5297 (recursive_inlining): Use can_inline_edge_p and
5298 want_inline_self_recursive_call_p; simplify and remove no longer
5300 (cgraph_set_inline_failed): Remove.
5301 (add_new_edges_to_heap): Use can_inline_edge_p and
5302 want_inline_small_function_p.
5303 (cgraph_decide_inlining_of_small_functions): Rename to ...
5304 (inline_small_functions): ... this one; cleanup; use
5305 can/want predicates; cleanup debug ouput; work edges till fibheap
5306 is exhausted and do not stop once unit growth is reached; remove
5307 later loop processing remaining edges.
5308 (cgraph_flatten): Rename to ...
5309 (flatten_function): ... this one; use can_inline_edge_p
5310 and can_early_inline_edge_p predicates.
5311 (cgraph_decide_inlining): Rename to ...
5312 (ipa_inline): ... this one; remove unreachable nodes before
5313 inlining functions called once; simplify the pass.
5314 (cgraph_perform_always_inlining): Rename to ...
5315 (inline_always_inline_functions): ... this one; use
5316 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5317 (cgraph_decide_inlining_incrementally): Rename to ...
5318 (early_inline_small_functions): ... this one; simplify
5319 using new predicates; cleanup; make dumps prettier.
5320 (cgraph_early_inlining): Rename to ...
5321 (early_inliner): newer inline regular functions into always-inlines;
5322 fix updating of call stmt summaries.
5323 (pass_early_inline): Update for new names.
5324 (inline_transform): Fix formating.
5325 (gate_cgraph_decide_inlining): Rename to ...
5326 (pass_ipa_inline): ... this one.
5327 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5328 * ipa-inline-analysis.c (dump_inline_summary): Update.
5329 (compute_inline_parameters): Do not compute disregard_inline_limits;
5330 look for mismatching arguments.
5331 (estimate_growth): Fix handlig of non-trivial self recursion.
5332 (inline_read_summary): Do not read info->disregard_inline_limits.
5333 (inline_write_summary): Do not write info->disregard_inline_limits.
5334 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5335 and move all checks into can_inline_edge_p predicate; re-enable code
5336 comparing optimization levels.
5337 (expand_call_inline): Do not test inline_forbidden_into_p.
5338 * Makefile.in (ipa-inline.o): Update arguments.
5340 2011-04-17 Revital Eres <revital.eres@linaro.org>
5342 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5344 2011-04-17 Revital Eres <revital.eres@linaro.org>
5346 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5348 2011-04-17 Michael Matz <matz@suse.de>
5350 PR tree-optimization/48622
5352 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5353 in same order as they're written.
5355 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5357 * config/pa/predicates.md: Reorganize and simplify predicates.
5358 Eliminate duplicate code checks.
5359 (arith_operand): Rename to arith14_operand
5360 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5361 * config/pa/pa.md: Use renamed operands.
5362 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5363 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5364 arith11_operand, adddi3_operand, indexed_memory_operand,
5365 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5366 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5367 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5368 move_dest_operand, move_src_operand, prefetch_cc_operand,
5369 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5370 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5371 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5372 div_operand, int5_operand, movb_comparison_operator,
5373 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5374 arith_double_operand, ireg_operand, lhs_lshift_operand,
5375 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5376 integer_store_memory_operand): Likewise.
5377 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5378 (integer_store_memory_operand, read_only_operand,
5379 function_label_operand, borx_reg_operand,
5380 non_hard_reg_operand): Likewise.
5381 (eq_neq_comparison_operator): Delete unused operator.
5382 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5383 function_label_operand.
5384 (emit_move_sequence): Likewise.
5386 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5388 * config/i386/sse.md (sseunpackmode): New mode attribute.
5389 (ssepackmode): Ditto.
5390 (vec_pack_trunc_<mode>): Macroize expander from
5391 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5392 (vec_unpacks_lo_<mode>): Macroize expander from
5393 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5394 (vec_unpacks_hi_<mode>): Macroize expander from
5395 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5396 (vec_unpacku_lo_<mode>): Macroize expander from
5397 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5398 (vec_unpacku_hi_<mode>): Macroize expander from
5399 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5400 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5401 ix86_expand_sse4_unpack.
5402 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5404 2011-04-16 Jan Hubicka <jh@suse.cz>
5406 * cgraphbuild.c: Include ipa-inline.h.
5407 (reset_inline_failed): Use initialize_inline_failed.
5408 * cgraph.c: Include ipa-inline.h.
5409 (cgraph_create_node_1): Do not initialize estimated_growth.
5410 (initialize_inline_failed): More to ipa-inline-analysis.c
5411 (dump_cgraph_node): Do not dump inline flags.
5412 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5413 and disregard_inline_limits flags.
5414 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5415 time, size, estimated_growth.
5416 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5418 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5419 DECL_DISREGARD_INLINE_LIMITS.
5420 (cgraph_analyze_function): Do not initialize
5421 node->local.disregard_inline_limits.
5422 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5423 inlinable, versionable and disregard_inline_limits.
5424 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5425 cgraph_check_inline_limits, cgraph_default_inline_p,
5426 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5427 add_new_edges_to_heap): Update.
5428 (cgraph_decide_inlining_of_small_function): Update; set
5429 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5430 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5431 cgraph_decide_inlining_incrementally): Update.
5432 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5433 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5434 time, size and estimated_growth parameters.
5435 (estimate_edge_growth): Update.
5436 (initialize_inline_failed): Declare.
5437 * ipa-split.c: Include ipa-inline.h
5438 (execute_split_functions): Update.
5439 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5440 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5441 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5442 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5443 estimated_growth to INT_MIN.
5444 (inline_node_duplication_hook): Likewise.
5445 (dump_inline_summary): Dump new fields.
5446 (compute_inline_parameters): Update.
5447 (estimate_edge_time, estimate_time_after_inlining,
5448 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5449 inline_write_summary):
5450 (initialize_inline_failed): Move here from cgraph.c.
5451 * tree-sra.c: Include ipa-inline.h.
5452 (ipa_sra_preliminary_function_checks): Update.
5453 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5456 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5458 * config/i386/sse.md (V16): New mode iterator.
5460 (AVXMODEQI, AVXMODEDI): Remove.
5461 (sse2, sse3): New mode attribute.
5462 (mov<mode>): Use V16 mode iterator.
5463 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5464 (push<mode>1): Use V16 mode iterator.
5465 (movmisalign<mode>): Ditto.
5466 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5467 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5468 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5469 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5470 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5471 avx_movdqu<avxmodesuffix>.
5472 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5473 *avx_movdqu<avxmodesuffix>.
5474 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5475 avx_lddqu<avxmodesuffix>.
5476 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5477 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5478 avx_movnt<AVXMODEDI:mode>.
5479 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5480 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5482 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5485 * haifa-sched.c (prune_ready_list, schedule_block): Use
5486 sched_pressure_p rather than flag_sched_pressure.
5488 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5490 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5491 cgraph_get_node instead of cgraph_get_create_node.
5493 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5495 * cfgexpand.c (expand_debug_expr): Use
5496 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5498 2011-04-15 Michael Matz <matz@suse.de>
5500 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5501 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5502 * function.c (gimplify_parameters): Ditto.
5503 * gimplify.c (gimplify_vla_decl): Ditto.
5505 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5506 (gimple_call_set_alloca_for_var): New inline function.
5507 (gimple_call_alloca_for_var_p): Ditto.
5508 * gimple.c (gimple_build_call_from_tree): Remember
5509 CALL_ALLOCA_FOR_VAR_P state.
5510 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5512 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5513 calls if they were for VLA objects.
5515 2011-04-15 Martin Jambor <mjambor@suse.cz>
5517 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5520 2011-04-15 Martin Jambor <mjambor@suse.cz>
5523 * tree-emutls.c (lower_emutls_function_body): Call
5524 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5527 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5529 * c-decl.c (detect_field_duplicates): Call
5530 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5532 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5534 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5535 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5536 * ipa-pure-const.c (check_stmt): Call it.
5537 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5539 2011-04-15 Richard Guenther <rguenther@suse.de>
5541 PR tree-optimization/48290
5542 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5543 Properly decide inhibiting propagation based on the valueized
5544 operand. Do loop-closed SSA form preserving here ...
5545 (init_copy_prop): ... not here.
5547 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5550 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5551 (*ieee_smax<mode>3): Likewise.
5553 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5555 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5556 Replace match_operand with match_dup for the third operand in
5559 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5561 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5562 to track processing of conditionals. Update all callers.
5563 (try_combine, simplify_if_then_else): Update.
5565 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5567 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5570 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5572 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5573 instead of match_operand for operand 3.
5575 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5577 * recog.h (insn_operand_data): Add an "allows_mem" field.
5578 * genoutput.c (output_operand_data): Initialize it.
5579 * optabs.c (maybe_legitimize_operand_same_code): New function.
5580 (maybe_legitimize_operand): Use it when matching the original
5583 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5585 * gimplify.c: Fix issues in comments throughout.
5586 (voidify_wrapper_expr): Fix long line.
5587 (build_stack_save_restore): Likewise.
5588 (gimplify_loop_expr): Likewise.
5589 (gimplify_compound_lval): Likewise.
5590 (gimplify_init_ctor_eval): Likewise.
5591 (gimplify_modify_expr_rhs): Likewise.
5592 (omp_notice_threadprivate_variable): Likewise.
5594 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5596 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5597 original one if this is not a builtin function.
5599 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5602 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5603 offset it as needed based on top 2 bits in operands[3], change
5604 MEM mode to SFmode and mask those 2 bits away from operands[3].
5606 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5608 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5609 change from objc_declare_protocols() to objc_declare_protocol().
5611 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5613 * config/i386/sse.md (sse4_1): New mode attribute.
5614 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5615 avx_blend<ssemodesuffix><avxmodesuffix> and
5616 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5617 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5618 avx_blendv<ssemodesuffix><avxmodesuffix> and
5619 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5620 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5621 avx_dp<ssemodesuffix><avxmodesuffix> and
5622 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5623 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5624 (sse4_1_packusdw): Merge with *avx_packusdw.
5625 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5626 (sse4_1_pblendw): Merge with *avx_pblendw.
5627 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5628 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5629 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5631 (sse4_1_round<ssescalarmodesuffix>): Merge with
5632 *avx_round<ssescalarmodesuffix>.
5633 (aesenc): Merge with *avx_aesenc.
5634 (aesenclast): Merge with *avx_aesenclast.
5635 (aesdec): Merge with *avx_aesdec.
5636 (aesdeclast): Merge with *avx_aesdeclast.
5637 (pclmulqdq): Merge with *pclmulqdq.
5638 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5640 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5642 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5645 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5646 (align_local_variable): This. Update DECL_ALIGN.
5647 (add_stack_var): Updated.
5648 (expand_one_stack_var): Likewise.
5650 2011-04-14 Richard Guenther <rguenther@suse.de>
5652 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5654 (dse_initialize_block_local_data, dse_leave_block,
5655 record_voperand_set, get_stmt_uid): Likewise.
5656 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5657 (dse_optimize_stmt): Remove voperand set handling code.
5658 Simplify and improve to handle any kind of killing stmt.
5659 (dse_record_phi): Remove.
5660 (dse_enter_block): Simplify.
5661 (tree_ssa_dse): Likewise.
5662 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5664 2011-04-14 Jan Hubicka <jh@suse.cz>
5666 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5667 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5668 (cgraph_local_info): Remove inline_summary.
5669 * ipa-cp.c: Include ipa-inline.h.
5670 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5671 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5673 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5674 (input_overwrite_node): Do not set inline summary.
5675 (input_node): Do not stream inline summary.
5676 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5677 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5678 growth; we do not have inline parameters computed for that anyway.
5679 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5680 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5681 (inline_summary_t): New type and VECtor.
5682 (debug_inline_summary, dump_inline_summaries): Declare.
5683 (inline_summary): Use VOCtor.
5684 (estimate_edge_growth): Kill hack computing call stmt size directly.
5685 * lto-section-in.c (lto_section_name): Add inline section.
5686 * ipa-inline-analysis.c: Include lto-streamer.h
5687 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5688 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5689 (inline_summary_vec): Define.
5690 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5691 dump_inline_summaries): New functions.
5692 (estimate_function_body_sizes): Properly compute size/time of outgoing
5694 (compute_inline_parameters): Alloc inline_summary; do not compute
5695 size/time of incomming calls.
5696 (estimate_edge_time): Avoid missing time summary hack.
5697 (inline_read_summary): Read inline summary info.
5698 (inline_write_summary): Write inline summary info.
5699 (inline_free_summary): Free all hooks and inline summary vector.
5700 * lto-streamer.h: Add LTO_section_inline_summary section.
5701 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5702 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5704 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5706 * tree-vectorizer.h (vect_strided_store_supported): Add a
5707 HOST_WIDE_INT argument.
5708 (vect_strided_load_supported): Likewise.
5709 (vect_permute_store_chain): Return void.
5710 (vect_transform_strided_load): Likewise.
5711 (vect_permute_load_chain): Delete.
5712 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5713 count argument. Check that the count is a power of two.
5714 (vect_strided_load_supported): Likewise.
5715 (vect_permute_store_chain): Return void. Update after above changes.
5716 Assert that the access is supported.
5717 (vect_permute_load_chain): Likewise.
5718 (vect_transform_strided_load): Return void.
5719 * tree-vect-stmts.c (vectorizable_store): Update calls after
5720 above interface changes.
5721 (vectorizable_load): Likewise.
5722 (vect_analyze_stmt): Don't check for strided powers of two here.
5724 2011-04-14 Richard Guenther <rguenther@suse.de>
5726 PR tree-optimization/48590
5727 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5728 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5729 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5730 BUILT_IN_STACK_SAVE.
5731 * tree-ssa-dce.c (propagate_necessity): Handle
5732 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5734 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5736 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5739 2011-04-14 Richard Guenther <rguenther@suse.de>
5741 * tree.h (get_object_alignment_1): Declare.
5742 * builtins.c (get_object_alignment_1): Split out worker from ...
5743 (get_object_alignment): ... here.
5744 * fold-const.c (get_pointer_modulus_and_residue): Use
5745 get_object_alignment_1.
5747 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5749 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5751 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5752 parameter. Generalise code to handle arrays as well as vectors.
5753 (vect_setup_realignment): Update accordingly.
5754 * tree-vect-stmts.c (vectorizable_store): Likewise.
5755 (vectorizable_load): Likewise.
5757 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5759 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5760 within the per-copy loop.
5762 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5764 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5767 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5769 * doc/options.texi (Negative): Explicitly mention that the
5770 Negative chain must be circular.
5772 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5774 * function.h (block_chainon): Declare.
5775 * function.c (block_chainon): Define.
5777 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5778 Eric Weddington <eric.weddington@atmel.com>
5779 Georg-Johann Lay <avr@gjlay.de>
5781 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5783 (avr_init_builtins, avr_expand_builtin,
5784 avr_expand_delay_cycles, avr_expand_unop_builtin,
5785 avr_expand_binop_builtin ): New functions.
5786 (avr_builtin_id): New enum
5787 (struct avr_builtin_description): New struct
5788 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5789 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5791 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5792 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5793 UNSPECV_DELAY_CYCLES): new enumeration values
5794 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5795 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5796 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5797 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5798 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5799 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5800 "fmulsu"): New insns
5802 * config/avr/avr-c.c: fix line endings
5803 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5804 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5805 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5806 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5807 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5809 * doc/extend.texi (AVR Built-in Functions): New node
5810 (Target Builtins): Add documentation of AVR
5813 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5816 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5817 alone. Error if non-const data has attribute progmem.
5819 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5821 * tree.h (struct tree_constructor): Include tree_typed instead of
5823 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5824 TS_TYPED instead of TS_COMMON.
5826 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5828 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5829 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5830 (sse2_psadbw): Merge with *avx_psadbw.
5831 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5832 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5833 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5834 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5835 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5836 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5837 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5838 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5839 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5840 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5841 (ssse3_palignrti): Merge with *avx_palignrti.
5843 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5845 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5846 * tree-ssanames.c (fini_ssanames): VEC_free it.
5847 (make_ssa_name_fn): Update for VECness of free_ssanames.
5848 (release_ssa_name, release_dead_ssa_names): Likewise.
5849 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5851 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5852 TS_TYPED instead of TS_COMMON.
5854 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5856 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5857 statistics_counter_event.
5858 * tree-ssa-copyrename.c (stats): Define.
5859 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5860 statistics_counter_event.
5861 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5862 (bswap_stats, widen_mul_stats): Define.
5863 (insert_reciprocals): Increment rdivs_inserted.
5864 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5865 rfuncs_inserted. Add calls to statistics_counter_event.
5866 (execute_cse_sincos_1): Increment inserted.
5867 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5868 statistics_counter_event.
5869 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5870 of bswap_stats. Add calls to statistics_counter_event.
5871 (convert_mult_to_widen): Increment widen_mults_inserted.
5872 (convert_plusminus_to_widen): Increment maccs_inserted.
5873 (convert_mult_to_fma): Increment fmas_inserted.
5874 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5875 calls to statistics_counter_event.
5877 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5879 PR rtl-optimization/48455
5880 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5881 `temp_costs->mem_cost'.
5883 2011-04-13 Jan Hubicka <jh@suse.cz>
5885 * ipa-inline.h: New file.
5886 * ipa-inline-analysis.c: New file. Broken out of ...
5887 * ipa-inline.c: ... this file; update toplevel comment;
5888 include ipa-inline.h
5889 (inline_summary): Move to ipa-inline.h
5890 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5891 ipa-inline-analysis.c.
5892 (cgraph_estimate_time_after_inlining): Rename to
5893 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5894 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5895 to estimate_edge_growth.
5896 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5897 rename to estimate_size_after_inlining.
5898 (cgraph_mark_inline_edge): Update for new naming convention.
5899 (cgraph_check_inline_limits): Likewise.
5900 (cgraph_edge_badness): Likewise.
5901 (cgraph_decide_recursive_inlining): Likewise.
5902 (cgraph_decide_inlining_of_small_functions): Likewise.
5903 (cgraph_decide_inlining_incrementally): Likewise.
5904 (cgraph_estimate_growth): Rename to estimate_growth; move to
5905 ipa-inline-analysis.c.
5906 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5907 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5908 (compute_inline_parameters): Likewise.
5909 (compute_inline_parameters_for_current): Likewise.
5910 (pass_inline_parameters): Likewise.
5911 (inline_indirect_intraprocedural_analysis): Likewise.
5912 (analyze_function): Rename to inline_analyze_function; likewise.
5913 (add_new_function): Move to ipa-inline-analysis.c.
5914 (inline_generate_summary): Likewise.
5915 (inline_read_summary): Likewise.
5916 (inline_write_summary): Likewise.
5917 * Makefile.in (ipa-inline-analysis.c): New file.
5919 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5921 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5922 * configure: Regenerate.
5924 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5926 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5927 instead of tree_common.
5928 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5930 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5931 TS_TYPED rather than TS_COMMON.
5932 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5934 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5937 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5938 r20 around calls of __tablejump_elpm__
5940 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5943 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5945 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5947 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5949 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5950 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5951 (cfi_vec): New typedef.
5952 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5953 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5954 (cie_cfi_vec): New static variable.
5955 (cie_cfi_head): Delete.
5956 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5957 declaration changed. Use vector rather than list operations.
5958 (new_cfi): Don't initialize the dw_cfi_next field.
5959 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5960 rather than list operations.
5961 (lookup_cfa): Use vector rather than list operations.
5962 (output_cfis): New argument upto. Accept a cfi_vec rather than
5963 a dw_cfi_ref list head as argument. All callers changed.
5964 Iterate over the vector using upto as a maximum index.
5965 (output_all_cfis): New static function.
5966 (output_fde): Use vector rather than list operations. Use the
5967 new upto argument for output_cfis rather than manipulating a
5969 (dwarf2out_begin_prologue): Change initializations to match
5971 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5972 from the vector length rather than searching for the end of a list.
5973 Use output_all_cfis.
5974 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5976 2011-04-13 Nick Clifton <nickc@redhat.com>
5978 * config/rx/rx.md (movmemsi): Do not use this pattern when
5979 volatile pointers are involved.
5981 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5983 * config/i386/sse.md (pinsrbits): Remove.
5984 (sse2_packsswb): Merge with *avx_packsswb.
5985 (sse2_packssdw): Merge with *avx_packssdw.
5986 (sse2_packuswb): Merge with *avx_packuswb.
5987 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5988 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5989 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5990 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5991 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5992 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5993 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5994 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5995 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5996 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5997 (sse2_loadld): Merge with *avx_loadld.
5998 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5999 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6000 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6001 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6002 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6004 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6006 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6008 * print-tree.c (print_node): Likewise.
6009 * tree-inline.c (copy_tree_r): Likewise.
6010 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6011 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6012 instead of TS_COMMON.
6013 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6014 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6015 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6016 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6017 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6019 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6021 (TREE_CHAIN): Check for a TS_COMMON structure.
6022 (TREE_TYPE): Check for a TS_TYPED structure.
6024 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6026 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6027 cgraph_get_create_node instead of cgraph_node.
6029 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6031 * c-parser.c (c_parser_initelt): Updated call to
6032 objc_build_message_expr.
6033 (c_parser_postfix_expression): Likewise.
6035 2011-04-12 Kai Tietz <ktietz@redhat.com>
6037 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6038 MASK_MS_BITFIELD_LAYOUT bit.
6040 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6042 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6043 assert it is always true.
6044 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6047 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6049 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6050 compiling Objective-C to be more efficient.
6052 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6054 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6057 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6059 * recog.h, genoutput.c, optabs.c: Revert last patch.
6061 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6064 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6066 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6068 * recog.h (insn_operand_data): Add an "allows_mem" field.
6069 * genoutput.c (output_operand_data): Initialize it.
6070 * optabs.c (maybe_legitimize_operand_same_code): New function.
6071 (maybe_legitimize_operand): Use it when matching the original
6074 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6076 * genpreds.c (process_define_predicate): Move most processing
6077 to gensupport.c. Continue to validate the expression.
6078 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6079 (process_define_predicate): Move processing to gensupport.c.
6080 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6081 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6082 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6084 (valid_predicate_name_p): New function, split out from old
6085 genpreds.c:process_define_predicate.
6086 (process_define_predicate): New function, combining code from
6087 old genpreds.c and genrecog.c functions.
6088 (process_rtx): Call it for DEFINE_PREDICATE and
6089 DEFINE_SPECIAL_PREDICATE.
6091 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6093 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6094 size of a '%A' memory reference.
6095 (T_DREG, T_QREG): New neon_builtin_type_bits.
6096 (arm_init_neon_builtins): Assert that the load and store operands
6097 are neon_struct_operands.
6098 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6099 (NEON_ARG_MEMORY): New builtin_arg.
6100 (neon_dereference_pointer): New function.
6101 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6102 Handle NEON_ARG_MEMORY.
6103 (arm_expand_neon_builtin): Update after above interface changes.
6104 Use NEON_ARG_MEMORY for loads and stores.
6105 * config/arm/predicates.md (neon_struct_operand): New predicate.
6106 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6107 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6108 (V_four_elem): Tweak formatting.
6109 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6110 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6111 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6112 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6113 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6114 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6115 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6116 Use %A in the output template.
6117 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6118 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6119 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6120 the width of the memory access. Remove post-increment.
6121 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6123 2011-04-12 Nick Clifton <nickc@redhat.com>
6125 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6126 instruction for interrupt handlers if the target is the basic V850
6128 (expand_epilogue): Likewise.
6130 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6132 PR rtl-optimization/48549
6133 * combine.c (propagate_for_debug): Also stop after BB_END of
6134 this_basic_block. Process LAST and just stop processing after it.
6135 (combine_instructions): If last_combined_insn has been deleted,
6136 set last_combined_insn to its PREV_INSN.
6138 2011-04-12 Richard Guenther <rguenther@suse.de>
6140 PR tree-optimization/46076
6141 * gimple.h (struct gimple_statement_call): Add fntype field.
6142 (gimple_call_fntype): Adjust.
6143 (gimple_call_set_fntype): New function.
6144 * gimple.c (gimple_build_call_1): Set the call function type.
6145 * gimplify.c (gimplify_call_expr): Preserve the function
6146 type the frontend used for the call.
6147 (gimplify_modify_expr): Likewise.
6148 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6150 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6152 * tree-ssa.c (useless_type_conversion_p): Function pointer
6153 conversions are useless.
6155 2011-04-12 Martin Jambor <mjambor@suse.cz>
6157 * cgraph.h (cgraph_node): Remove function declaration.
6158 (cgraph_create_node): Declare.
6159 (cgraph_get_create_node): Likewise.
6160 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6161 Updated all callers.
6162 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6163 the decl does not already exist. Call cgraph_get_create_node instead
6165 (cgraph_get_create_node): New function.
6166 (cgraph_same_body_alias): Update comment.
6167 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6168 assert it does not return NULL.
6169 (cgraph_update_edges_for_call_stmt): Likewise.
6170 (cgraph_clone_edge): Likewise.
6171 (cgraph_create_virtual_clone): Likewise.
6172 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6173 instead of cgraph_node.
6174 (cgraph_add_new_function): Call cgraph_create_node or
6175 cgraph_get_create_node instead of cgraph_node.
6176 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6177 instead of cgraph_node.
6178 (record_eh_tables): Likewise.
6179 (mark_address): Likewise.
6180 (mark_load): Likewise.
6181 (build_cgraph_edges): Call cgraph_get_create_node instead
6183 (rebuild_cgraph_edges): Likewise.
6184 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6185 instead of cgraph_node.
6186 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6188 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6189 cgraph_create_node instead of cgraph_node.
6190 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6192 * lto-cgraph.c (input_node): Likewise.
6193 * lto-streamer-in.c (input_function): Likewise.
6194 * varasm.c (mark_decl_referenced): Likewise.
6195 (assemble_alias): Likewise.
6197 2011-04-12 Martin Jambor <mjambor@suse.cz>
6199 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6200 instead of cgraph_node and assert it does not return NULL.
6201 * lto-streamer-in.c (lto_read_body): Likewise.
6202 * omp-low.c (new_omp_context): Likewise.
6203 (create_task_copyfn): Likewise.
6204 * tree-emutls.c (lower_emutls_function_body): Likewise.
6205 * matrix-reorg.c (transform_allocation_sites): Likewise.
6207 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6210 * c-typeck.c (build_asm_expr): Error out on attempts to use
6211 void type outputs or inputs for constraints that allow reg or
6214 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6215 Richard Earnshaw <rearnsha@arm.com>
6218 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6219 to use sign-magnitude offsets. Reject unsupported unaligned
6220 cases. Add detailed description in comments.
6221 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6222 condition from TARGET_32BIT to TARGET_ARM.
6224 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6226 * tree.h (struct typed_tree): New.
6227 (struct tree_common): Include it instead of tree_base.
6228 (TREE_TYPE): Update for new location of type field.
6229 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6230 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6231 (union tree_node): Add typed field.
6232 * treestruct.def (TS_TYPED): New.
6233 * lto-streamer.c (check_handled_ts_structures): Handle it.
6234 * tree.c (MARK_TS_TYPED): New macro.
6235 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6237 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6239 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6240 (force_nonfallthru): Do not alter the loop nest if no basic block
6243 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6245 * config/i386/sse.md (VI): New mode iterator.
6247 (AVX256MODEI): Ditto.
6248 (AVXMODEF4P): Ditto.
6249 (avxvecpsmode): Ditto.
6250 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6251 (sse2_andnot<mode>3): New expander.
6252 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6253 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6254 (<any_logic:code><mode>3): Use VI mode iterator.
6255 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6256 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6257 (*andnottf3): Handle AVX three-operand constraints.
6258 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6260 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6261 Robert Millan <rmh@gnu.org>
6263 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6264 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6265 GNU_USER_DYNAMIC_LINKER64): Define.
6266 (REG_NAME): Don't undefine.
6267 (MD_UNWIND_SUPPORT): Undefine.
6268 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6269 (REG_NAME): Don't undefine.
6270 (MD_UNWIND_SUPPORT): Undefine.
6271 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6273 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6275 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6276 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6278 2011-04-11 Xinliang David Li <davidxl@google.com>
6280 * value-profile.c (check_ic_target): New function.
6281 (gimple_ic_transform): Sanity check indirect call target.
6282 * gimple-low.c (gimple_check_call_args): Interface change.
6283 (gimple_check_call_matching_types): New function.
6284 * tree-inline.c (tree_can_inline_p): Call new function.
6286 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6288 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6289 tree-pretty-print.h & realmpfr.h.
6291 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6294 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6295 (setup_allocno_and_important_classes): Ditto.
6297 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6299 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6300 GNU_USER_DYNAMIC_LINKER.
6301 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6302 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6303 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6304 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6305 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6306 GNU_USER_TARGET_OS_CPP_BUILTINS.
6307 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6308 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6309 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6310 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6311 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6312 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6313 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6314 GNU_USER_TARGET_OS_CPP_BUILTINS.
6315 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6316 GNU_USER_DYNAMIC_LINKER.
6317 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6318 GNU_USER_TARGET_OS_CPP_BUILTINS.
6319 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6320 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6321 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6322 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6323 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6324 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6325 GNU_USER_DYNAMIC_LINKER64): Remove.
6326 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6327 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6328 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6329 GNU_USER_DYNAMIC_LINKER.
6330 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6331 GNU_USER_TARGET_OS_CPP_BUILTINS.
6332 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6333 GNU_USER_TARGET_OS_CPP_BUILTINS.
6334 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6335 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6336 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6337 GNU_USER_TARGET_OS_CPP_BUILTINS.
6338 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6339 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6340 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6341 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6342 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6343 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6344 GNU_USER_DYNAMIC_LINKER.
6345 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6346 GNU_USER_TARGET_OS_CPP_BUILTINS.
6347 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6348 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6349 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6350 GNU_USER_DYNAMIC_LINKER.
6351 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6352 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6353 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6354 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6355 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6356 GNU_USER_DYNAMIC_LINKER.
6357 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6358 GNU_USER_DYNAMIC_LINKERN32.
6359 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6360 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6361 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6362 GNU_USER_DYNAMIC_LINKER32.
6363 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6364 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6365 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6366 GNU_USER_DYNAMIC_LINKER.
6367 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6368 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6369 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6370 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6371 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6372 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6373 GNU_USER_DYNAMIC_LINKER32.
6374 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6375 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6376 GNU_USER_DYNAMIC_LINKER.
6377 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6378 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6379 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6380 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6381 GNU_USER_DYNAMIC_LINKER64.
6382 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6383 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6384 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6385 GNU_USER_DYNAMIC_LINKER.
6386 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6387 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6388 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6389 GNU_USER_DYNAMIC_LINKER.
6390 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6391 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6392 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6393 GNU_USER_DYNAMIC_LINKER32.
6394 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6395 GNU_USER_DYNAMIC_LINKER64.
6396 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6397 GNU_USER_DYNAMIC_LINKER64.
6398 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6399 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6400 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6401 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6402 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6404 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6406 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6407 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6408 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6409 GNU_USER_DYNAMIC_LINKER.
6410 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6411 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6412 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6413 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6414 GNU_USER_DYNAMIC_LINKER64.
6415 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6416 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6417 GNU_USER_LINK_EMULATION.
6418 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6419 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6420 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6421 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6422 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6423 CPP_SPEC, CC1_SPEC): Remove.
6424 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6425 (GNU_USER_DYNAMIC_LINKER): Define.
6426 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6427 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6428 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6429 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6430 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6431 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6432 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6433 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6434 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6435 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6436 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6437 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6438 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6439 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6440 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6441 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6442 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6443 GNU_USER_DYNAMIC_LINKER.
6444 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6445 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6446 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6447 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6448 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6449 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6450 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6451 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6452 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6453 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6455 2011-04-11 Kai Tietz <ktietz@redhat.com>
6459 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6460 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6462 (ix86_is_msabi_thiscall): Removed.
6463 (ix86_is_type_thiscall): Likewise.
6464 (ix86_get_callcvt): New function.
6465 (ix86_comp_type_attributes): Simplify check.
6466 (ix86_function_regparm): Use ix86_get_callcvt for calling
6467 convention attribute checks.
6468 (ix86_return_pops_args): Likewise.
6469 (ix86_static_chain): Likewise.
6470 (x86_this_parameter): Likewise.
6471 (x86_output_mi_thunk): Likewise.
6472 (ix86_function_type_abi): Optimize check for types without attributes.
6473 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6474 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6475 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6477 (IX86_BASE_CALLCVT): Helper macro.
6478 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6479 Use ix86_get_callcvt for calling convention attribute checks and avoid
6480 symbol-decoration for stdcall in TARGET_RTD case.
6481 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6483 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6486 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6488 * config/i386/sse.md (VI_128): New mode iterator.
6489 (VI12_128): Rename from SSEMODE12.
6490 (VI14_128): Rename from SSEMODE14.
6491 (VI124_128): New mode iterator.
6492 (VI24_128): Rename from SSEMODE248.
6493 (VI248_128): Rename from SSEMODE248.
6494 (SSEMODE124C8): Remove.
6495 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6496 (*sse2_<plusminus_insn><mode>3): Merge with
6497 *avx_<plusminus_insn><mode>3.
6498 (*mulv8hi3): Merge with *avx_mulv8hi3.
6499 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6500 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6501 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6502 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6503 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6504 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6505 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6506 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6507 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6508 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6509 (*<smaxmin:code>v8hi3): Ditto.
6510 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6511 (*<smaxmin:code>v16qi3): Ditto.
6512 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6513 (*sse2_eq<mode>3): Ditto.
6514 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6515 (*sse2_gt<mode>3): Ditto.
6516 (vcondv2di): Split out of vcond<mode>.
6517 (vconduv2di): Split out of vcondu<mode>.
6519 2011-04-11 Richard Guenther <rguenther@suse.de>
6521 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6522 before calling tree_low_cst.
6524 2011-04-11 Richard Guenther <rguenther@suse.de>
6526 * stor-layout.c (layout_type): Compute all array index size operations
6527 in the original type.
6528 (initialize_sizetypes): Add comment.
6529 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6531 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6533 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6535 2011-04-11 Martin Jambor <mjambor@suse.cz>
6537 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6538 of cgraph_node, handle NULL return value.
6539 (cgraph_global_info): Likewise.
6540 (cgraph_rtl_info): Likewise.
6541 * tree-inline.c (estimate_num_insns): Likewise.
6542 * gimplify.c (unshare_body): Likewise.
6543 (unvisit_body): Likewise.
6544 (gimplify_body): Likewise.
6545 * predict.c (optimize_function_for_size_p): Likewise.
6546 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6547 (call_may_clobber_ref_p_1): Likewise.
6548 * varasm.c (function_section_1): Likewise.
6549 (assemble_start_function): Likewise.
6551 2011-04-11 Martin Jambor <mjambor@suse.cz>
6553 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6555 * final.c (rest_of_clean_state): Likewise.
6556 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6557 * passes.c (pass_init_dump_file): Likewise.
6558 (execute_all_ipa_transforms): Likewise.
6559 (function_called_by_processed_nodes_p): Likewise.
6560 * predict.c (maybe_hot_frequency_p): Likewise.
6561 (probably_never_executed_bb_p): Likewise.
6562 (compute_function_frequency): Likewise.
6563 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6564 (unnest_nesting_tree_1): Likewise.
6565 (lower_nested_functions): Likewise.
6566 * tree-optimize.c (execute_fixup_cfg): Likewise.
6567 (tree_rest_of_compilation): Likewise.
6568 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6569 * tree-sra.c (ipa_early_sra): Likewise.
6570 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6571 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6572 * ipa.c (record_cdtor_fn): Likewise.
6573 * ipa-inline.c (cgraph_early_inlining): Likewise.
6574 (compute_inline_parameters_for_current): Likewise.
6575 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6576 * ipa-pure-const.c (local_pure_const): Likewise.
6577 * ipa-split.c (split_function): Likewise.
6578 (execute_split_functions): Likewise.
6579 * cgraphbuild.c (build_cgraph_edges): Likewise.
6580 (rebuild_cgraph_edges): Likewise.
6581 (cgraph_rebuild_references): Likewise.
6582 (remove_cgraph_callee_edges): Likewise.
6583 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6584 (verify_cgraph_node): Likewise.
6585 (cgraph_analyze_functions): Likewise.
6586 (cgraph_preserve_function_body_p): Likewise.
6587 (save_inline_function_body): Likewise.
6588 (save_inline_function_body): Likewise.
6589 * tree-inline.c (copy_bb): Likewise.
6590 (optimize_inline_calls): Likewise.
6592 2011-04-11 Martin Jambor <mjambor@suse.cz>
6594 PR tree-optimization/48195
6595 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6596 ipa_check_create_edge_args.
6597 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6598 ipa_check_create_edge_args.
6599 * ipa-inline.c (inline_generate_summary): Do not call
6600 ipa_check_create_node_params and ipa_check_create_edge_args.
6601 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6602 ipa_check_create_edge_args.
6604 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6606 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6608 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6609 * function.c (record_hard_reg_sets): Likewise.
6610 * ira.c (compute_regs_asm_clobbered): Likewise.
6611 * sched-deps.c (sched_analyze_1): Likewise.
6612 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6614 2011-04-09 Xinliang David Li <davidxl@google.com>
6616 PR tree-optimization/PR48484
6617 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6618 has_valid_pred lazily
6620 2011-04-09 Duncan Sands <baldrick@free.fr>
6622 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6624 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6626 * combine.c (combine_validate_cost): Adjust comments. Set registered
6627 cost of I0 to zero at the end, if any.
6629 2011-04-08 Xinliang David Li <davidxl@google.com>
6631 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6632 to insane profile data.
6634 2011-04-08 Xinliang David Li <davidxl@google.com>
6636 * ipa-cp.c (ipcp_update_profiling): Correct
6637 negative scale factor due to insane profile data.
6639 2011-04-08 Xinliang David Li <davidxl@google.com>
6641 * final.c (dump_basic_block_info): New function.
6642 (final): Dump basic block.
6643 (final_scan_insn): Remove old dump.
6645 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6648 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6651 2011-04-08 Michael Matz <matz@suse.de>
6654 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6656 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6657 * rtl.h (rebuild_jump_labels_chain): Declare.
6658 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6659 insns inserted on edges.
6661 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6663 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6664 * config/arm/arm-arches.def: New.
6665 * config/arm/arm-opts.h: New.
6666 * config/arm/genopt.sh: New.
6667 * config/arm/arm-tables.opt: New (generated).
6668 * config/arm/arm.c (arm_handle_option, arm_target_help,
6669 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6670 (all_architectures): Get most table contents from arm-arches.def.
6671 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6672 arm_selected_tune here.
6673 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6674 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6675 (march=, mcpu=, mtune=): Use Enum and Var.
6676 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6677 (arm.o): Update dependencies.
6679 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6681 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6683 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6684 (write_typed_alloc_defns): Likewise.
6685 (main): Calls write_typed_alloc_defns with output_header.
6687 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6690 * ira-color.c (setup_profitable_hard_regs): Add comments.
6691 Don't take prohibited hard regs into account.
6692 (setup_conflict_profitable_regs): Rename to
6693 get_conflict_profitable_regs.
6694 (check_hard_reg_p): Check prohibited hard regs.
6696 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6698 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6699 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6700 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6702 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6705 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6706 move from floating point to shift amount register.
6707 (emit_move_sequence): Remove secondary reload support for floating
6708 point to shift amount amount register copies.
6709 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6710 amount register copies.
6711 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6712 register, return false if mode isn't a scalar integer mode.
6713 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6715 2011-04-08 Richard Guenther <rguenther@suse.de>
6717 * gimple.c (gimple_call_flags): Remove kludge.
6719 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6721 * sel-sched.c (sel_region_init): Move call to
6722 sel_setup_region_sched_flags after setup_current_loop_nest.
6724 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6726 PR rtl-optimization/48272
6727 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6728 init_insn_reg_pressure_info. Adjust a caller.
6729 * sched-int.h (init_insn_reg_pressure_info): Declare.
6730 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6731 when sched-pressure is enabled.
6733 2011-04-08 Richard Guenther <rguenther@suse.de>
6735 * gimple.c (gimple_set_modified): Do not queue calls to
6736 MODIFIED_NORETURN_CALLS here ...
6737 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6739 2011-04-08 Richard Guenther <rguenther@suse.de>
6742 * toplev.c (lang_dependent_init): Do not open asm_out_file
6743 in WPA mode, nor perform debug machinery initialization.
6744 (finalize): Do not unlink asm_out_file in WPA mode.
6746 2011-04-08 Richard Guenther <rguenther@suse.de>
6748 * gimple.h (gimple_call_fntype): New function.
6749 (gimple_call_return_type): Use it.
6750 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6751 * gimple-low.c (gimple_check_call_args): Likewise.
6752 * gimple.c (gimple_call_flags): Likewise.
6753 (gimple_call_arg_flags): Likewise.
6754 (gimple_call_return_flags): Likewise.
6755 * tree-cfg.c (verify_gimple_call): Likewise.
6756 (do_warn_unused_result): Likewise.
6757 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6758 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6760 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6762 PR rtl-optimization/48235
6763 * sel-sched.c (code_motion_process_successors): Recompute the last
6764 insn in basic block if control flow changed.
6765 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6766 Update condition for ilist_remove.
6768 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6770 PR rtl-optimization/48302
6771 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6772 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6773 it to record added preheader blocks.
6774 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6775 on to sel_add_loop_preheaders.
6776 (sel_region_init): Move call to setup_current_loop_nest after
6779 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6782 * cfgloop.h (loop_has_exit_edges): New helper.
6783 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6785 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6786 that have no exit edges.
6788 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6790 PR rtl-optimization/48442
6791 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6792 all callers. Adjust assert.
6794 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6796 PR tree-optimization/48377
6797 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6798 is_packed to true even for types with smaller TYPE_ALIGN than
6801 2011-04-08 Richard Guenther <rguenther@suse.de>
6804 * doc/tm.texi: Re-generate.
6806 2011-04-08 Wei Guozhi <carrot@google.com>
6809 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6810 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6811 * config/arm/arm.md (*push_multi): Change the length computation to
6814 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6816 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6817 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6818 * doc/tm.texi: Regenerate.
6819 * system.h (ASM_OUTPUT_BSS): Poison.
6820 * varasm.c (asm_output_bss): Remove function.
6821 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6823 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6824 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6825 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6826 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6828 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6830 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6832 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6834 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6836 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6839 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6841 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6842 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6843 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6845 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6846 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6847 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6848 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6849 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6850 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6851 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6852 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6853 options. Don't map other m68k options manually. Don't handle
6854 old-style options as canonical.
6855 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6856 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6858 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6860 * basic-block.h (force_nonfallthru): Move to...
6861 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6862 (force_nonfallthru): ...here.
6863 * cfghooks.c (force_nonfallthru): New function.
6864 * cfgrtl.c (force_nonfallthru): Rename into...
6865 (rtl_force_nonfallthru): ...this.
6866 (commit_one_edge_insertion): Do not set AUX field.
6867 (commit_edge_insertions): Do not discover new basic blocks.
6868 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6869 (cfg_layout_rtl_cfg_hooks): Likewise.
6870 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6871 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6872 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6874 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6876 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6879 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6881 * config/i386/sse.md: Update copyright year.
6882 (avxcvtvecmode): Remove.
6883 (sse_movhlps): Merge with *avx_movhlps.
6884 (sse_movlhps): Merge with *avx_movlhps.
6885 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6886 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6887 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6888 (sse_loadhps): Merge with *avx_loadhps.
6889 (sse_storelps): Merge with *avx_storelps.
6890 (sse_loadlps): Merge with *avx_loadlps.
6891 (sse_movss): Merge with *avx_movss.
6892 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6893 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6894 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6895 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6896 (vec_set<mode>_0): Ditto.
6897 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6898 (sse4_1_insertps): Merge with *avx_insertps.
6899 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6900 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6901 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6902 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6903 (sse2_storehpd): Merge with *avx_storehpd.
6904 (sse2_loadhpd): Merge with *avx_loadhpd.
6905 (sse2_loadlpd): Merge with *avx_loadlpd.
6906 (sse2_movsd): Merge with *avx_movsd.
6907 (*vec_concatv2df): Merge with *vec_concatv2df.
6909 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6912 * combine.c (combine_instructions): Add last_combined_insn,
6913 update it if insn is after it, pass it to all try_combine calls.
6914 (try_combine): Add last_combined_insn parameter, pass it instead of
6915 i3 to propagate_for_debug.
6917 2011-04-07 Nick Clifton <nickc@redhat.com>
6919 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6920 to handle MDR <-> data register transfers.
6921 (movhi_internal): Likewise.
6923 2011-04-07 Alan Modra <amodra@gmail.com>
6925 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6926 previous stack info.
6928 2011-04-07 Tom de Vries <tom@codesourcery.com>
6931 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6932 flow_find_cross_jump. Swap variables to implement backward replacement.
6933 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6935 2011-04-07 Tom de Vries <tom@codesourcery.com>
6938 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6939 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6941 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6942 src1 or src2. Redirect edges to the last basic block. Update
6943 frequency and count on multiple basic blocks in case of fallthru.
6945 2011-04-07 Tom de Vries <tom@codesourcery.com>
6948 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6950 (old_insns_match_p): Change return type. Replace return false/true
6951 with return dir_none/dir_both. Use can_replace_by.
6952 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6953 direction from dir_p. Register replacement direction in dir, last_dir
6954 and afterlast_dir. Handle new return type of old_insns_match_p using
6955 merge_dir. Return replacement direction in dir_p.
6956 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6957 return type of old_insns_match_p.
6958 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6959 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6960 flow_find_cross_jump.
6961 * basic-block.h (enum replace_direction): New type.
6962 (flow_find_cross_jump): Add parameter to declaration.
6964 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6966 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6967 (AVXMODEDCVTPS2DQ): Ditto.
6968 (VEC_FLOAT_MODE): Ditto.
6969 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6970 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6971 (<any_logic:code><mode>3): Use VF mode iterator.
6972 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6973 Use VF mode iterator.
6974 (copysign<mode>3): Use VF mode iterator.
6975 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6976 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6977 (*<any_logic:code><MODEF:mode>3): Merge with
6978 *avx_<any_logic:code><MODEF:mode>3.
6979 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6980 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6981 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6982 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6983 (sse2_cvtdq2ps): Use %v modifier.
6984 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6985 (avx_cvtps2dq<avxmodesuffix>): Remove.
6986 (sse2_cvtps2dq): Use %v modifier.
6987 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6988 (avx_cvttps2dq<avxmodesuffix>): Remove.
6989 (sse2_cvttps2dq): Use %v modifier.
6990 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6991 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6992 (sse2_cvtsd2siq): Fix insn template.
6993 (sse2_cvtsd2siq_2): Ditto.
6994 (sse2_cvttsd2siq): Ditto.
6995 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6996 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6998 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7000 * gcov-io.c: Use GCC Runtime Library Exception.
7002 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7005 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7006 as base_reg whatever register reg has been eliminated to, instead
7007 of hardcoding STACK_POINTER_REGNUM.
7009 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7011 * doc/tm.texi.in: Document C target hooks as separate from general
7013 * doc/tm.texi: Regenerate.
7014 * genhooks.c (struct hook_desc): Add docname field.
7015 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7017 (hook_array): Include c-target.def.
7018 (emit_documentation): Use docname field in output.
7019 (emit_init_macros): Take docname argument. Only emit definitions
7020 for hooks matching docname.
7021 (main): Expect additional arguments in all cases. Pass argument
7022 to emit_init_macros.
7023 * target.def: Move initial macro definitions and comments to
7024 target-hooks-macros.h.
7025 (gcc_targetcm): Move to c-family/c-target.def.
7026 * target.h (targetcm): Move declaration to c-family/c-target.h.
7027 * targhooks.c (default_handle_c_option): Move to
7029 * targhooks.h (default_handle_c_option): Move declaration to
7030 c-family/c-common.h.
7031 * target-hooks-macros.h: New file.
7032 * config.gcc (target_has_targetcm): Define and use to add to
7033 c_target_objs and cxx_target_objs.
7034 * config/default-c.c: New file.
7035 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7036 of target.h and target-def.h.
7037 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7038 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7039 darwin_check_cfstring_format_arg): Make static.
7040 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7041 TARGET_STRING_OBJECT_REF_TYPE_P,
7042 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7043 * config/darwin-protos.h (darwin_objc_construct_string,
7044 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7046 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7047 TARGET_STRING_OBJECT_REF_TYPE_P,
7048 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7049 * config/t-darwin (darwin-c.o): Update dependencies.
7050 * system.h (TARGET_HAS_TARGETCM): Poison.
7051 * Makefile.in (TARGET_H): Update.
7052 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7053 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7054 (default-c.o): New target.
7055 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7056 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7057 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7059 (build/genhooks.o): Update dependencies.
7061 2011-04-06 Richard Guenther <rguenther@suse.de>
7063 * ipa-inline.c (enum inlining_mode): Remove.
7064 (cgraph_flatten): Use some other token.
7065 (cgraph_edge_early_inlinable_p): New function, split out from ...
7066 (cgraph_perform_always_inlining): New function, split out from ...
7067 (cgraph_decide_inlining_incrementally): ... here.
7068 (cgraph_mark_inline_edge): Adjust.
7069 (cgraph_early_inlining): Re-structure.
7070 (pass_early_inline): Require SSA form.
7072 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7073 Julian Brown <julian@codesourcery.com>
7074 Mark Shinwell <shinwell@codesourcery.com>
7076 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7077 LO_REGS only for Thumb-1.
7078 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7079 be used in short instructions when optimising for size on Thumb-2.
7081 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7083 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7084 associated with user returns to be preserved.
7086 2011-04-06 Tristan Gingold <gingold@adacore.com>
7088 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7089 symbol_queue_size, DBXOUT_DECR_NESTING,
7090 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7091 if XCOFF_DEBUGGING_INFO.
7093 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7095 * config/i386/i386.md (attribute isa): New.
7096 (attribute enabled): New.
7097 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7098 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7099 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7100 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7101 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7102 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7103 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7104 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7106 * config/i386/sse.md (VF): New mode iterator.
7110 (SSEMODEF4): Remove.
7111 (attribute sse): Handle V8SF and V4DF modes.
7112 (<absneg:code><mode>2): Use VF mode iterator.
7113 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7115 (<plusminus_insn><mode>3): Use VF mode iterator.
7116 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7117 Use VF mode iterator.
7118 (<sse>_vm<plusminus_insn><mode>3): Merge with
7119 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7120 (mul<mode>3): Use VF mode iterator.
7121 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7122 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7124 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7125 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7126 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7127 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7129 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7130 Use VF1 mode iterator.
7131 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7132 (sqrt<VF2:mode>2): New expander.
7133 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7134 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7135 and sqrtv2df2. Use VF mode iterator.
7136 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7138 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7139 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7140 Use VF1 mode iterator.
7141 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7142 (<smaxmin:code><mode>3): Use VF mode iterator.
7143 (*<smaxmin:code><mode>3_finite): Merge with
7144 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7145 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7146 (<sse>_vm<smaxmin:code><mode>2): Merge with
7147 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7148 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7150 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7152 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7153 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7154 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7155 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7156 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7158 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7159 Use VF_128 mode iterator.
7160 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7162 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7163 VF_128 mode iterator.
7164 (vcond<mode>): Use VF mode iterator.
7165 * config/i386/predicates.md (sse_comparison_operator): Merge with
7166 avx_comparison_float_operator. Do not declare as special_predicate.
7167 * config/i386/i386.c (struct builtin_description): Update for renamed
7169 (ix86_expand_args_builtin): Ditto.
7170 (ix86_expand_sse_compare_mask): Ditto.
7172 2011-04-06 Richard Guenther <rguenther@suse.de>
7174 * tree-inline.c (estimate_num_insns): For calls simply account
7175 for all passed arguments and a used return value.
7177 2011-04-06 Richard Guenther <rguenther@suse.de>
7179 PR tree-optimization/47663
7180 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7181 call_stmt_time fields.
7182 (cgraph_edge_inlinable_p): Declare.
7183 (cgraph_edge_recursive_p): New inline function.
7184 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7185 (cgraph_clone_edge): Copy it.
7186 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7187 Account for call stmt time.
7188 (cgraph_estimate_time_after_inlining): Take edge argument.
7189 (cgraph_estimate_edge_growth): Account call stmt size.
7190 (cgraph_estimate_size_after_inlining): Take edge argument.
7191 (cgraph_mark_inline_edge): Adjust.
7192 (cgraph_check_inline_limits): Likewise.
7193 (cgraph_recursive_inlining_p): Remove.
7194 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7195 (cgraph_decide_recursive_inlining): Take edge argument and
7197 (cgraph_decide_inlining_of_small_functions): Do not avoid
7198 diags for recursive inlining here.
7199 (cgraph_flatten): Adjust.
7200 (cgraph_decide_inlining_incrementally): Likewise.
7201 (estimate_function_body_sizes): Remove call cost handling.
7202 (compute_inline_parameters): Initialize caller edge call costs.
7203 (cgraph_estimate_edge_growth): New function.
7204 (cgraph_estimate_growth): Use it.
7205 (cgraph_edge_badness): Likewise.
7206 (cgraph_check_inline_limits): Take an edge argument.
7207 (cgraph_decide_inlining_of_small_functions): Adjust.
7208 (cgraph_decide_inlining): Likewise.
7209 * tree-inline.c (estimate_num_insns): Only account for call
7210 return value if it is used.
7211 (expand_call_inline): Avoid diagnostics on recursive inline
7213 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7214 (input_edge): Input edge call costs.
7216 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7218 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7220 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7222 * doc/invoke.texi (Spec Files): Fix typo.
7224 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7226 * profile.c (branch_prob): Move declaration of local variable. Remove
7227 obsolete ??? comment. Expand the location explicitly instead of using
7228 the LOCATION_FILE and LOCATION_LINE macros.
7230 2011-04-06 Wei Guozhi <carrot@google.com>
7233 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7234 (arm_cond_branch): Likewise.
7235 (arm_cond_branch_reversed): Likewise.
7236 (arm_jump): Likewise.
7237 (push_multi): Likewise.
7238 * config/arm/constraints.md (Py): New constraint.
7240 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7243 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7245 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7246 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7247 #ifdef DBX_DEBUGGING_INFO.
7249 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7252 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7253 if old and new states differ.
7255 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7257 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7258 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7259 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7260 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7261 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7263 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7264 ColdFire options to -mcpu= options.
7266 2011-04-05 Jeff Law <law@redhat.com>
7268 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7269 check if BB is a successor of LOOP->header and return
7270 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7272 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7274 * cprop.c (struct reg_use): Remove.
7275 (reg_use_table): Make an array of RTX.
7276 (find_used_regs, constprop_register, local_cprop_pass,
7277 bypass_block): Simplify users of reg_use_table.
7278 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7279 on one of the uses found by find_used_regs.
7281 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7284 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7287 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7289 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7291 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7293 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7296 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7298 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7300 * combine.c: Include obstack.h.
7301 (struct insn_link): Define.
7302 (uid_log_links): Adjust type.
7303 (FOR_EACH_LOG_LINK): New macro.
7304 (insn_link_obstack): Declare.
7305 (alloc_insn_link): Define.
7306 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7307 type of link variables.
7308 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7309 (try_combine, record_promoted_values, distribute_notes): Likewise.
7310 (distribute_links): Likewise. Tweak prototype.
7311 (clear_log_links): Delete.
7312 (adjust_for_new_dest): Call alloc_insn_link.
7313 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7315 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7317 * gcse.c (modify_mem_list): Convert to an array of VECs.
7318 (canon_modify_mem_list, compute_transp): Tweak formatting.
7319 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7320 (load_killed_in_block_p): Likewise.
7321 (record_last_mem_set_info): Likewise.
7322 (clear_modify_mem_tables): Likewise.
7324 2011-04-05 Tom de Vries <tom@codesourcery.com>
7327 * function.c (emit_use_return_register_into_block): Only define if
7330 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7332 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7334 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7336 * config/rx/rx-opts.h: New.
7337 * config/rx/rx.c (rx_cpu_type): Remove.
7338 (rx_handle_option): Don't assert that global structures are in
7339 use. Access variables via opts pointer. Defer most handling of
7340 OPT_mint_register_. Use error_at.
7341 (rx_option_override): Handle deferred OPT_mint_register_ here.
7342 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7343 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7344 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7345 (rx_cpu_types): New Enum and EnumValue entries.
7346 (mint-register=): Use Defer and use Var accordingly.
7348 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7350 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7351 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7352 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7354 (debug_free_queue, debug_nesting, symbol_queue_index):
7356 * dbxout.c: ...to here. Make static.
7358 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7360 * gcse.c (modify_pair): Define. Define a VEC of it.
7361 (canon_modify_mem_list): Convert to an array of VECs.
7362 (free_insn_expr_list_list): Delete.
7363 (clear_modify_mem_tables): Call VEC_free instead.
7364 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7365 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7366 (canon_list_insert, compute_transp): Likewise.
7368 2011-04-05 Tom de Vries <tom@codesourcery.com>
7371 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7374 2011-04-05 Tom de Vries <tom@codesourcery.com>
7377 * function.c (emit_use_return_register_into_block): New function.
7378 (thread_prologue_and_epilogue_insns): Use
7379 emit_use_return_register_into_block.
7381 2011-04-05 Tom de Vries <tom@codesourcery.com>
7384 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7387 2011-04-05 Tom de Vries <tom@codesourcery.com>
7389 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7391 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7393 * config/arm/arm.md (define_constants for unspec): Replace with
7395 (define_constants for unspecv): Replace with define_c_enum.
7396 * config/arm/neon.md (define_constants for unspec): Replace with
7399 2011-04-04 Richard Henderson <rth@redhat.com>
7402 * dwarf2out.c (output_line_info): Always emit line info from
7403 at least one section.
7404 (dwarf2out_init): Create text_section_line_info here ...
7405 (set_cur_line_info_table): ... not here.
7407 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7410 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7413 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7415 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7417 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7418 (expr_equiv_p): Remove.
7419 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7420 (hash_scan_set): Update call to insert_set_in_table.
7421 (dump_hash_table): Dump <dest, src> pair.
7422 (lookup_set): Simplify. Lookup <dest, src> pair.
7423 (compute_transp): Remove, fold heavily simplified code into...
7424 (compute_local_properties): ...here. Expect COMP and TRANSP
7426 (find_avail_set): Take set directly from struct expr.
7427 (find_bypass-set): Likewise.
7428 (bypass_block): Likewise.
7429 (cprop_insn): Likewise. Remove redundant INSN_P test.
7431 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7432 checks on form of COND from find_implicit_sets to here.
7433 (find_implicit_sets): Cleanup control flow. Split critical edges
7434 if it exposes implicit sets. Allocate/resize implicit_sets as
7436 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7437 changed something. Run df_analyze after find_implicit_sets if any
7438 edges were split. Do not allocate implicit_sets here.
7440 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7441 (gcse_obstack): Renamed to cprop_obstack.
7442 (GNEW, GNEWVEC, GNEWVAR): Remove.
7444 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7445 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7446 (gcse_alloc): Likewise, and rename to cprop_alloc.
7447 (alloc_gcse_men, free_gcse_mem): Remove.
7448 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7449 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7450 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7452 * cprop.c (oprs_not_set_p): Remove.
7453 (mark_set, mark_clobber): Remove.
7454 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7455 (reg_not_set_p): New function.
7456 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7457 (cprop_insn): Likewise.
7458 (cprop_jump): Use FOR_EACH_EDGE.
7460 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7463 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7464 (rank_for_schedule): Use scheduled_insns vector instead of
7465 last_scheduled_insn.
7466 (ok_for_early_queue_removal): Likewise.
7467 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7469 (choose_ready): Likewise.
7470 (commit_schedule): Use VEC_iterate.
7471 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7472 a dbg_cnt, use it and ensure the first insn is in the ready list.
7473 (haifa_sched_init): Allocate scheduled_insns.
7474 (sched_extend_ready_list): Don't allocate it; reserve space.
7475 (haifa_sched_finish): Free it.
7477 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7479 * optc-gen.awk: Always remove type from Variable entry before
7480 recording in var_seen.
7482 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7484 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7485 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7486 call to tidy_fallthru_edges.
7488 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7490 * doc/options.texi (ToLower): Document.
7491 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7492 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7493 * opts.h (cl_option): Add cl_tolower field.
7494 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7495 arguments with lowercase strings.
7496 * config/rx/rx.opt (mcpu=): Add ToLower.
7497 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7500 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7502 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7504 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7506 * config/vax/vax.c: Include reload.h.
7508 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7510 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7511 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7512 (sparc_preferred_reload_class): New function.
7514 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7517 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7518 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7520 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7522 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7523 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7525 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7527 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7528 (ASM_OUTPUT_ALIGNED_BSS): Define.
7530 2011-04-03 Michael Matz <matz@suse.de>
7532 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7533 and next_slot members.
7534 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7535 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7536 (lto_streamer_cache_append): Declare.
7537 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7538 unsigned index, remove offset parameter, ensure that we append
7539 or update existing entries.
7540 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7541 parameter, update next_slot for append.
7542 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7544 (lto_streamer_cache_insert_at): Likewise.
7545 (lto_streamer_cache_append): New function.
7546 (lto_streamer_cache_lookup): Use unsigned index.
7547 (lto_streamer_cache_get): Likewise.
7548 (lto_record_common_node): Don't test tree_node_can_be_shared.
7549 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7550 (lto_streamer_cache_delete): Don't free offsets member.
7551 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7552 (lto_output_string_with_length): Use lto_output_data_stream.
7553 (lto_output_tree_header): Remove ix parameter, don't write it.
7554 (lto_output_builtin_tree): Likewise.
7555 (lto_write_tree): Adjust callers to above, don't track and write
7556 offset, write unsigned index.
7557 (output_unreferenced_globals): Don't emit all global vars.
7558 (write_global_references): Use unsigned indices.
7559 (lto_output_decl_state_refs): Likewise.
7560 (write_symbol): Likewise.
7561 * lto-streamer-in.c (lto_input_chain): Move earlier.
7562 (input_function): Use unsigned index.
7563 (input_alias_pairs): Don't read and then ignore all global vars.
7564 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7565 don't pass it back, use lto_streamer_cache_append.
7566 (lto_register_var_decl_in_symtab): Use unsigned index.
7567 (lto_register_function_decl_in_symtab): Likewise.
7568 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7570 (lto_get_builtin_tree): Don't read index, use
7571 lto_streamer_cache_append.
7572 (lto_read_tree): Adjust call to lto_materialize_tree.
7574 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7575 don't use function calls in arguments to MIN.
7577 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7580 * gimple.c (gimple_type_leader_entry): Mark deletable.
7582 2011-04-03 Alan Modra <amodra@gmail.com>
7584 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7586 2011-04-03 Michael Matz <matz@suse.de>
7588 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7590 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7592 2011-04-03 Michael Matz <matz@suse.de>
7594 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7595 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7596 without function context.
7597 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7598 current_function_decl and cfun.
7600 2011-04-03 Michael Matz <matz@suse.de>
7602 * tree.c (decl_init_priority_insert): Don't create entry for
7604 (decl_fini_priority_insert): Ditto.
7605 (fields_compatible_p, find_compatible_field): Remove.
7606 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7607 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7609 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7611 * combine.c (try_combine): Remove useless local variable.
7613 2011-04-03 Richard Guenther <rguenther@suse.de>
7614 Ira Rosen <ira.rosen@linaro.org>
7616 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7617 non-variable offsets and compare the remaining bases of the two
7618 accesses instead of looking for exact same data-ref.
7620 2011-04-02 Kai Tietz <ktietz@redhat.com>
7623 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7625 * i386.c (ix86_is_msabi_thiscall): New helper function.
7626 (ix86_is_type_thiscall): New helper function.
7627 (ix86_comp_type_attributes): Handle thiscall for method-functions
7629 (init_cumulative_args): Likewise.
7630 (find_drap_reg): Likewise.
7631 (ix86_static_chain): Likewise.
7632 (x86_this_parameter): Likewise.
7633 (x86_output_mi_thunk): Likewise.
7635 2011-04-01 Olivier Hainque <hainque@adacore.com>
7636 Nicolas Setton <setton@adacore.com>
7637 Eric Botcazou <ebotcazou@adacore.com>
7639 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7640 (add_gnat_descriptive_type_attribute): New function.
7641 (gen_array_type_die): Call it.
7642 (gen_enumeration_type_die): Likewise.
7643 (gen_struct_or_union_type_die): Likewise.
7644 (modified_type_die): Likewise.
7645 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7646 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7647 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7649 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7652 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7653 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7656 2011-03-17 Richard Guenther <rguenther@suse.de>
7659 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7660 origin for decls in other ltrans units.
7661 (input_varpool_node): Likewise.
7663 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7666 * expr.c (expand_assignment): Handle all possibilities
7667 if TO_RTX is CONCAT.
7668 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7669 (store_split_bit_field): If SUBREG_REG (op0) or
7670 op0 itself has smaller mode than word, return it
7671 for offset 0 and const0_rtx for out-of-bounds stores.
7672 If word is const0_rtx, skip it.
7674 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7676 * config/h8300/h8300.c (print_operand_address): Rename to...
7677 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7678 Call h8300_print_operand and h8300_print_operand_address instead of
7679 print_operand and print_operand_address. Declare.
7680 (print_operand): Renake to...
7681 (h8300_print_operand): ...this. Make static. Adjust comments.
7682 Call h8300_print_operand instead of print_operand. Declare.
7683 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7684 (h8300_register_move_cost): Likewise.
7685 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7686 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7687 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7688 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7689 * config/h8300/h8300-protos.h (print_operand): Delete.
7690 (print_operand_address): Delete.
7692 2011-04-01 Richard Henderson <rth@redhat.com>
7695 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7696 in strict mode before dwarf4. Re-order tests to early out
7697 before switching sections.
7699 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7701 * config/h8300/constraints.md: New file.
7702 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7703 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7704 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7705 * config/h8300/predicates.md (bit_operand): Likewise.
7706 (incdec_operand): Use satisfies_constraint_M and
7707 satisfies_constraint_O. Don't use C code block.
7708 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7709 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7710 (compute_mov_length): Use satisfies_constraint_G.
7711 (fix_bit_operand): Use satisfies_constraint_U.
7712 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7713 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7714 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7715 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7716 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7717 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7718 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7719 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7720 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7721 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7722 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7723 (EXTRA_MEMORY_CONSTRAINT): Delete.
7725 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7726 Michael Meissner <meissner@linux.vnet.ibm.com>
7729 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7730 operands, as per the specifications.
7732 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7733 (vec_extract_evenv4sf): Ditto.
7734 (vec_extract_evenv8hi): Ditto.
7735 (vec_extract_evenv16qi): Ditto.
7736 (vec_extract_oddv4si): Ditto.
7738 2011-03-31 Mark Wielaard <mjw@redhat.com>
7740 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7741 high_pc attribute if the CU has no associated code. Only output
7742 DW_AT_entry_pc for CU if not generating strict dwarf and
7745 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7747 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7748 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7750 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7751 * final.c (final_start_function): Call the new function rather
7752 than using a NULL argument for dwarf2out_frame_debug.
7754 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7755 that contains the prologue.
7757 * haifa-sched.c (queue_insn): New arg REASON. All callers
7758 changed. Print it in debugging output.
7760 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7762 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7763 Split most of the code into...
7764 (begin_move_insn): ... here. New function.
7765 (ebb_sched_info): Add a pointer to it.
7766 * haifa-sched.c (scheduled_insns): New static variable.
7767 (sched_extend_ready_list): Allocate it.
7768 (schedule_block): Use it to record the order of scheduled insns.
7769 Perform RTL changes to move insns only after all scheduling
7770 decisions have been made.
7771 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7772 begin_move_insn field.
7773 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7774 * sched-int.h (struct haifa_sched_info): Remove second argument
7775 from begin_schedule_ready hook. Add new member begin_move_insn.
7776 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7777 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7779 * haifa-sched.c (prune_ready_list): New function, broken out of
7781 (schedule_block): Use it.
7783 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7785 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7787 2011-04-01 Kai Tietz <ktietz@redhat.com>
7789 * config.gcc (*-*-mingw*): Allow as option the
7790 posix threading model.
7791 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7792 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7794 (CPP_SPEC): Add pthread/no-pthread handling.
7795 (LIB_SPEC): Likewise.
7796 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7797 (LIB_SPEC): Likewise.
7798 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7799 flag to pass -pthread option for shared libgcc build.
7800 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7801 for shared libgcc build.
7802 * config/i386/t-mingw-pthread: New file.
7803 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7804 New define to enable use of library pthread by default.
7805 * config/i386/mingw.opt (pthread): New driver option.
7806 (no-pthread): New driver option.
7807 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7808 * config/i386/mingw-w64.opt: Likewise.
7810 2011-04-01 Gary Funck <gary@intrepid.com>
7812 * c-decl.c (grokdeclarator): Fix formatting.
7814 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7816 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7817 instead of n_operands.
7818 (set_storage_via_setmem): Likewise.
7819 * optabs.c (maybe_gen_insn): Likewise.
7820 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7821 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7822 (mips_expand_builtin_direct): Likewise.
7823 * config/spu/spu.c (expand_builtin_args): Likewise.
7825 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7827 * recog.h (insn_data_d): Add n_generator_args.
7828 * genoutput.c (data): Likewise.
7829 (output_insn_data): Print it.
7830 (max_opno, num_dups): Delete.
7831 (scan_operands): Just fill in "d->operand[...]".
7832 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7834 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7836 * gensupport.h (pattern_stats): New structure.
7837 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7838 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7839 (max_operand_1, max_operand_vec): Delete.
7840 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7842 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7844 * emit-rtl.c (emit_pattern_after_setloc): New function.
7845 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7846 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7847 (emit_pattern_after): New function.
7848 (emit_insn_after, emit_jump_insn_after): Call it.
7849 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7850 (emit_pattern_before_setloc): New function.
7851 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7852 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7854 (emit_pattern_before): New function.
7855 (emit_insn_before, emit_jump_insn_before): Call it.
7856 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7858 2011-03-31 Richard Henderson <rth@redhat.com>
7860 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7861 (dw_separate_line_info_entry): Remove.
7862 (enum dw_line_info_opcode): New.
7863 (dw_line_info_entry): Use it.
7864 (dw_line_info_table, dw_line_info_table_p): New.
7865 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7866 (line_info_table, line_info_label_num): Remove.
7867 (line_info_table_in_use): Remove.
7868 (separate_line_info_table): Remove.
7869 (separate_line_info_table_allocated): Remove.
7870 (separate_line_info_table_in_use): Remove.
7871 (LINE_INFO_TABLE_INCREMENT): Remove.
7872 (line_info_label_num): New.
7873 (cur_line_info_table): New.
7874 (text_section_line_info, cold_text_section_line_info): New.
7875 (separate_line_info): New.
7876 (SEPARATE_LINE_CODE_LABEL): Remove.
7877 (print_dwarf_line_table): Remove.
7878 (debug_dwarf): Don't dump it.
7879 (output_one_line_info_table): New.
7880 (output_line_info): Use it.
7881 (new_line_info_table): New.
7882 (set_cur_line_info_table): New.
7883 (dwarf2out_switch_text_section): Use it.
7884 (dwarf2out_begin_function): Likewise.
7885 (push_dw_line_info_entry): New.
7886 (dwarf2out_source_line): Rewrite for new line info tables.
7887 (dwarf2out_init): Remove dead initailizations.
7889 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7891 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7893 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7894 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7895 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7896 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7897 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7898 * opt-functions.awk (flag_init, switch_bit_fields): New.
7899 (switch_flags): Don't handle flags moved to bit-fields. Don't
7900 generate CL_MISSING_OK or CL_SAVE.
7901 * optc-gen.awk: Update to generate bit-field output as well as
7903 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7904 bit-field instead of CL_REJECT_DRIVER flag.
7905 * opts-common.c (generate_canonical_option,
7906 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7907 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7908 instead of CL_REJECT_NEGATIVE flag.
7909 * toplev.c (print_switch_values): Use cl_report bit-field instead
7912 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7914 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7915 a zero minimum index only if it is redundant.
7917 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7919 PR rtl-optimization/48381
7920 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7921 instead of ira_class_hard_reg_index for calculating conflicting
7924 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7926 * cprop.c: Clean up hash table building.
7927 (reg_avail_info): Remove.
7928 (oprs_available_p): Remove.
7929 (record_last_reg_set_info): Remove.
7930 (record_last_set_info): Remove.
7931 (reg_available_p): New function.
7932 (gcse_constant_p): Do not treat unfolded conditions as constants.
7933 (make_set_regs_unavailable): New function.
7934 (hash_scan_set): Simplify with new reg_available_p.
7935 (compute_hash_table_work): Traverse insns stream only once.
7936 Do not compute reg_avail_info. Traverse insns in reverse order.
7937 Record implicit sets after recording explicit sets from the block.
7939 2011-03-31 Michael Matz <matz@suse.de>
7941 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7943 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7945 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7946 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7947 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7948 (h8300_mode_dependent_address_p): New function.
7949 (h8300_get_index): Make static.
7951 2011-03-31 Jeff Law <law@redhat.com>
7953 * reload1.c (elimination_effects): Fix typo in recent change.
7955 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7956 typo potentially leading to null pointer dereference.
7958 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7959 (setup_save_areas): Corresponding changes to avoid useless
7962 * jump.c (reversed_comparison_code_parts): Avoid successive return
7963 statements when REVERSE_CONDITION is defined.
7965 * expr.c (expand_assignment): Avoid useless assignments.
7966 (expand_expr_real_1): Likewise.
7967 (expand_expr_real_2): Avoid useless statements.
7969 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7971 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7973 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7976 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7978 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7981 * doc/tm.texi.in (TARGET_VERSION): Remove.
7982 * doc/tm.texi: Regenerate.
7983 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7984 * collect2.c (main): Don't use TARGET_VERSION.
7985 * mips-tdump.c (main): Don't use TARGET_VERSION.
7986 * mips-tfile.c (main): Don't use TARGET_VERSION.
7987 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7988 * config/rs6000/vxworksae.h: Remove.
7989 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7990 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7991 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7992 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7993 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7994 * config/arm/arm.h (TARGET_VERSION): Remove.
7995 * config/arm/coff.h (TARGET_VERSION): Remove.
7996 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7997 * config/arm/elf.h (TARGET_VERSION): Remove.
7998 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7999 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8000 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8001 * config/arm/pe.h (TARGET_VERSION): Remove.
8002 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8003 * config/arm/semi.h (TARGET_VERSION): Remove.
8004 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8005 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8006 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8007 * config/avr/avr.h (TARGET_VERSION): Remove.
8008 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8009 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8010 * config/frv/frv.h (TARGET_VERSION): Remove.
8011 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8012 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8013 * config/i386/darwin.h (TARGET_VERSION): Remove.
8014 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8015 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8016 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8017 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8018 * config/i386/gnu.h (TARGET_VERSION): Remove.
8019 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8020 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8021 * config/i386/linux.h (TARGET_VERSION): Remove.
8022 * config/i386/linux64.h (TARGET_VERSION): Remove.
8023 * config/i386/lynx.h (TARGET_VERSION): Remove.
8024 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8025 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8026 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8027 * config/i386/netware.h (TARGET_VERSION): Remove.
8028 * config/i386/nto.h (TARGET_VERSION): Remove.
8029 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8030 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8031 * config/ia64/elf.h (TARGET_VERSION): Remove.
8032 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8033 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8034 * config/ia64/linux.h (TARGET_VERSION): Remove.
8035 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8036 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8037 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8038 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8039 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8040 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8041 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8042 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8043 * config/m68k/linux.h (TARGET_VERSION): Remove.
8044 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8045 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8046 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8047 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8048 * config/mep/mep.h (TARGET_VERSION): Remove.
8049 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8050 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8051 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8052 * config/mips/linux.h (TARGET_VERSION): Remove.
8053 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8054 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8055 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8056 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8057 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8058 * config/pa/pa.h (TARGET_VERSION): Remove.
8059 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8060 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8061 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8062 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8063 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8064 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8065 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8066 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8067 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8068 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8069 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8070 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8071 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8072 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8073 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8074 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8075 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8076 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8077 * config/s390/linux.h (TARGET_VERSION): Remove.
8078 * config/s390/s390.h (TARGET_VERSION): Remove.
8079 * config/s390/tpf.h (TARGET_VERSION): Remove.
8080 * config/score/score.h (TARGET_VERSION): Remove.
8081 * config/sh/linux.h (TARGET_VERSION): Remove.
8082 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8083 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8084 * config/sh/sh.h (TARGET_VERSION): Remove.
8085 * config/sh/sh64.h (TARGET_VERSION): Remove.
8086 * config/sh/superh.h (TARGET_VERSION): Remove.
8087 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8088 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8089 * config/sparc/linux.h (TARGET_VERSION): Remove.
8090 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8091 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8092 TARGET_NAME32, TARGET_NAME): Remove.
8093 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8094 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8095 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8096 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8097 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8098 * config/spu/spu.h (TARGET_VERSION): Remove.
8099 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8100 * config/v850/v850.h (TARGET_VERSION): Remove.
8101 * config/vax/linux.h (TARGET_VERSION): Remove.
8102 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8103 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8104 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8106 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8109 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8110 frame-related from frame-unrelated adjustments to the stack pointer.
8112 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8114 * common.opt (fdebug-types-section): Move earlier.
8115 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8117 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8119 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8122 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8124 * tree.h (CASE_CHAIN): Define.
8125 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8126 (gimple_redirect_edge_and_branch): Likewise.
8128 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8131 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8134 2011-03-30 Jeff Law <law@redhat.com>
8136 * PR bootstrap/48371
8137 * reload1.c (reload): Fix botch in last change.
8139 * reload.h (struct reload): Fix typo introduced in last change.
8141 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8143 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8144 Undocumented. Remove help text.
8145 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8148 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8150 * doc/options.texi (NegativeAlias): Document.
8151 (Alias): Mention NegativeAlias.
8152 * opt-functions.awk: Handle NegativeAlias.
8153 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8154 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8155 * opts.h (CL_NEGATIVE_ALIAS): Define.
8156 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8157 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8159 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8161 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8162 mno-spe and mno-isel instead of mspe=no and -misel=no.
8164 2011-03-29 Mark Wielaard <mjw@redhat.com>
8166 * common.opt (fdebug-types-section): New flag.
8167 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8168 * dwarf2out.c (use_debug_types): New define.
8169 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8170 (print_die): Guard output of type unit signatures using
8172 (build_abbrev_table): Replace assert of dwarf_version >= 4
8173 with assert on use_debug_types.
8174 (size_of_die): Likewise.
8175 (unmark_dies): Likewise.
8176 (value_format): Decide AT_ref_external form on use_debug_types.
8177 (output_die): Replace dwarf_version version check guard with
8178 use_debug_types where appropriate.
8179 (modified_type_die): Likewise.
8180 (gen_reference_type_die): Likewise.
8181 (dwarf2out_start_source_file): Likewise.
8182 (dwarf2out_end_source_file): Likewise.
8183 (prune_unused_types_walk_attribs): Likewise.
8184 (dwarf2out_finish): Likewise.
8186 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8188 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8190 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8192 PR rtl-optimization/48332
8193 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8194 mode of input operand N and modeN to its actual mode.
8196 2011-03-30 Jeff Law <law@redhat.com>
8198 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8199 define accessor macro.
8200 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8201 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8202 (reg_equiv_init): Likewise.
8203 (reg_equivs_size): New variable.
8204 (reg_equiv_init_size): Remove.
8205 (allocate_initial_values): Move prototype to here from....
8206 * integrate.h (allocate_initial_values): Remove prototype.
8207 * integrate.c: Include reload.h.
8208 (allocate_initial_values): Corresponding changes.
8209 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8210 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8211 (update_equiv_regs): Corresponding changes.
8212 (ira): Corresponding changes.
8213 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8214 (push_secondary_reload): Corresponding changes.
8215 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8216 (make_memloc, find_reloads_address): Corresponding changes.
8217 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8218 (find_reloads_address_1): Corresponding changes.
8219 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8220 (refers_to_regno_for_reload_p): Corresponding changes.
8221 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8222 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8223 * reload1.c: Include ggc.h.
8224 (grow_reg_equivs): New function.
8225 (replace_pseudos_in, reload): Corresponding changes.
8226 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8227 (eliminate_regs_1, elimination_effects): Corresponding changes.
8228 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8229 (delete_output_reload): Likewise.
8230 * caller-save.c (mark_referenced_regs): Corresponding changes.
8231 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8232 * frv/predicates.md (frv_load_operand): Corresponding changes.
8233 * microblaze/microblaze.c (double_memory_operand): Corresponding
8235 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8236 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8237 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8238 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8239 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8241 * pa/pa.c (emit_move_sequence): Corresponding changes.
8242 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8244 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8247 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8248 structure modes. Don't check neon_vector_mem_operand for
8249 vector or structure modes.
8251 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8252 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8255 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8256 operand 1 and reshuffle the operands to match.
8257 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8259 2011-03-30 Christian Schüler <cschueler@gmx.de>
8262 * config/c.opt (F): Added 'Driver' to -F option.
8265 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8267 * config/darwin.opt: Added '-arch' option.
8269 2011-03-30 Nick Clifton <nickc@redhat.com>
8271 * config/rx/rx.md: Add peepholes and patterns to combine
8272 extending loads and simple arithmetic instructions.
8273 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8274 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8275 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8276 modes to use pre-decrement and post-increment addressing.
8277 (rx_is_restricted_memory_address): Add range checking of REG+INT
8279 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8280 (rx_memory_move_cost): Adjust cost of stores.
8281 (rx_adjust_insn_length): New function.
8283 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8286 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8287 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8288 matching arg00/arg01 types.
8290 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8292 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8293 last_location to UNKNOWN_LOCATION.
8295 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8298 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8301 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8302 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8305 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8307 (sparc_cpu): Likewise.
8308 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8311 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8315 PR rtl-optimization/48345
8316 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8317 hard regs for given mode from profitable regs when doing secondary
8320 2011-03-29 Jeff Law <law@redhat.com>
8323 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8324 do_not_duplicate field.
8325 (lookup_redirection_data): Corresponding changes.
8326 (create_duplicates): Always create a template block.
8327 (redirect_edges): Remove code which reused the original block
8328 when it was going to become unreachable code.
8329 (thread_block): Don't set do_not_duplicate field.
8331 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8333 * lto-opts.c (register_user_option_p, lto_register_user_option):
8334 Make type argument unsigned.
8335 * lto-streamer.h (lto_register_user_option): Make type argument
8337 * opth-gen.awk: Make CL_* macros unsigned.
8338 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8339 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8340 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8341 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8342 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8343 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8344 (find_opt): Make lang_mask argument unsigned.
8346 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8348 PR rtl-optimization/48331
8349 PR rtl-optimization/48334
8350 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8351 for any used algorithm.
8353 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8355 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8358 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8360 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8361 (alpha_option_override): Don't set alpha_sr_alias_set.
8362 (emit_frame_store_1): Use gen_frame_mem rather than calling
8364 (alpha_expand_epilogue): Ditto.
8366 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8368 PR tree-optimization/48290
8369 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8370 vectorization, check that relevant phis in the basic block after
8371 the inner loop are really inner loop's exit phis.
8373 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8376 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8377 (cached_dw_loc_list_def): New structure.
8378 (cached_dw_loc_list): New typedef.
8379 (cached_dw_loc_list_table): New variable.
8380 (cached_dw_loc_list_table_hash): New function.
8381 (cached_dw_loc_list_table_eq): Likewise.
8382 (add_location_or_const_value_attribute): Take a bool cache_p.
8383 Cache the list when the parameter is true.
8384 (gen_formal_parameter_die): Update caller.
8385 (gen_variable_die): Likewise.
8386 (dwarf2out_finish): Likewise.
8387 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8388 while generating debug info for the decl.
8389 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8390 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8391 (resolve_addr): Cache the result of resolving a chain of
8394 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8396 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8397 conflict object hard regset nodes have intersecting hard reg sets.
8399 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8400 after regstat_init_n_sets_and_refs.
8402 * ira.c: Add more comments at the top.
8403 (setup_stack_reg_pressure_class, setup_pressure_classes):
8404 Add comments how we compute the register pressure classes.
8405 (setup_allocno_and_important_classes): Add more comments.
8406 (setup_class_translate_array, reorder_important_classes)
8407 (setup_reg_class_relations): Add comments.
8409 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8412 * ira-color.c: Add 2011 to the Copyright line.
8413 (assign_hard_reg): Add more comments.
8414 (improve_allocation): Ditto.
8416 * ira-costs.c: Add 2011 to the Copyright line.
8417 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8419 (setup_regno_cost_classes_by_mode): Ditto.
8421 Initial patches from ira-improv branch:
8423 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8425 * ira-build.c (ira_create_object): Remove initialization of
8426 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8427 (ira_create_allocno): Remove initialization of
8428 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8429 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8430 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8431 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8432 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8433 Initialize ALLOCNO_ADD_DATA.
8434 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8435 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8437 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8438 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8440 * ira.c (ira_reallocate): Remove.
8441 (setup_pressure_classes): Call
8442 ira_init_register_move_cost_if_necessary. Use
8443 ira_register_move_cost instead of ira_get_register_move_cost.
8444 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8445 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8447 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8448 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8449 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8450 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8451 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8452 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8454 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8455 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8456 (struct allocno_color_data): New.
8457 (allocno_color_data_t): New typedef.
8458 (allocno_color_data): New definition.
8459 (ALLOCNO_COLOR_DATA): New macro.
8460 (struct object_color_data): New.
8461 (object_color_data_t): New typedef.
8462 (object_color_data): New definition.
8463 (OBJECT_COLOR_DATA): New macro.
8464 (update_copy_costs, calculate_allocno_spill_cost): Call
8465 ira_init_register_move_cost_if_necessary. Use
8466 ira_register_move_cost instead of ira_get_register_move_cost.
8467 (move_spill_restore, update_curr_costs): Ditto.
8468 (allocno_spill_priority): Make it inline.
8469 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8470 (struct coalesce_data, coalesce_data_t): New.
8471 (allocno_coalesce_data): New definition.
8472 (ALLOCNO_COALESCE_DATA): New macro.
8473 (merge_allocnos, coalesced_allocno_conflict_p): Use
8474 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8475 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8476 (coalesce_allocnos): Ditto.
8477 (setup_coalesced_allocno_costs_and_nums): Ditto.
8478 (collect_spilled_coalesced_allocnos): Ditto.
8479 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8480 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8481 (coalesce_spill_slots): Ditto.
8482 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8483 free allocno_coalesce_data.
8485 * ira-conflicts.c: Fix formatting.
8486 (process_regs_for_copy): Call
8487 ira_init_register_move_cost_if_necessary. Use
8488 ira_register_move_cost instead of ira_get_register_move_cost.
8489 (build_object_conflicts): Optimize.
8491 * ira-costs.c (record_reg_classes): Optimize. Call
8492 ira_init_register_move_cost_if_necessary. Use
8493 ira_register_move_cost, ira_may_move_in_cost, and
8494 ira_may_move_out_cost instead of ira_get_register_move_cost and
8495 ira_get_may_move_cost.
8496 (record_address_regs): Ditto.
8497 (scan_one_insn): Optimize.
8498 (find_costs_and_classes): Optimize.
8499 (process_bb_node_for_hard_reg_moves): Call
8500 ira_init_register_move_cost_if_necessary. Use
8501 ira_register_move_cost instead of ira_get_register_move_cost.
8503 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8504 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8505 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8506 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8508 (ira_initiate_emit_data, ira_finish_emit_data)
8509 (create_new_allocno): New functions.
8510 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8511 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8512 Use ira_register_move_cost instead of ira_get_register_move_cost.
8514 * ira-int.h: Fix some comments.
8515 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8516 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8517 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8518 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8520 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8521 bitfield after mode. Make hard_regno a short int. Make
8522 hard_regno short. Remove first_coalesced_allocno and
8523 next_coalesced_allocno. Move mem_optimized_dest_p,
8524 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8525 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8526 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8527 temp, colorable_p. Add new member add_data.
8528 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8529 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8530 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8531 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8532 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8533 (ALLOCNO_ADD_DATA): New macro.
8534 (ira_emit_data_t): New typedef.
8535 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8536 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8537 from struct ira_allocno.
8538 (ALLOCNO_EMIT_DATA): New macro.
8539 (ira_allocno_emit_data, allocno_emit_reg): New.
8540 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8541 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8542 (OBJECT_ADD_DATA): New macro.
8543 (ira_reallocate): Remove.
8544 (ira_initiate_emit_data, ira_finish_emit_data): New.
8545 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8546 (ira_init_register_move_cost_if_necessary): New.
8547 (ira_object_conflict_iter_next): Merge into
8548 ira_object_conflict_iter_cond.
8549 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8551 * ira-live.c (process_single_reg_class_operands): Call
8552 ira_init_register_move_cost_if_necessary. Use
8553 ira_register_move_cost instead of ira_get_register_move_cost.
8555 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8557 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8559 * ira-costs.c: Fix formatting.
8560 (cost_classes, cost_classes_num): Remove.
8561 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8562 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8563 (cost_classes_del, cost_classes_htab): New.
8564 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8565 (initiate_regno_cost_classes, setup_cost_classes): New.
8566 (setup_regno_cost_classes_by_aclass): New.
8567 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8568 (record_reg_classes): Use regno_cost_classes instead of
8569 cost_classes. Move checking opposite operand up.
8570 (record_address_regs): Use regno_cost_classes
8571 instead of cost_classes.
8572 (scan_one_insn): Ditto. Use always general register.
8573 (print_allocno_costs): Use regno_cost_classes instead of
8575 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8576 (find_costs_and_classes): Set up cost classes for each registers.
8577 Use also their mode for this. Use regno_cost_classes instead of
8579 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8581 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8582 (ira_costs, ira_set_pseudo_classes): Call
8583 initiate_regno_cost_classes and finish_regno_cost_classes.
8585 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8587 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8589 * target.def (ira_cover_classes): Remove.
8591 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8593 * doc/tm.texi.in: Ditto.
8595 * ira-conflicts.c: Remove mentioning cover classes from the file.
8596 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8597 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8599 * targhooks.c (default_ira_cover_classes): Remove.
8601 * targhooks.h (default_ira_cover_classes): Ditto.
8603 * haifa-sched.c: Remove mentioning cover classes from the file.
8604 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8605 ira_pressure_classes and ira_pressure_classes_num instead of
8606 ira_reg_class_cover_size and ira_reg_class_cover. Use
8607 sched_regno_pressure_class instead of sched_regno_cover_class.
8608 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8609 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8611 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8612 classes from the file.
8613 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8614 (struct object_hard_regs, struct object_hard_regs_node): New.
8615 (struct ira_object): New members profitable_hard_regs,
8616 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8617 (struct ira_allocno): Rename cover_class to aclass. Rename
8618 cover_class_cost and updated_cover_class_cost to class_cost and
8619 updated_class_cost. Remove splay_removed_p and
8620 left_conflict_size. Add new members colorable_p.
8621 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8622 (ALLOCNO_COLORABLE_P): New macro.
8623 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8624 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8625 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8626 (OBJECT_...): Rename parameter C to O.
8627 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8628 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8629 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8630 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8631 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8632 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8633 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8634 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8635 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8636 x_ira_reg_class_subunion.
8637 (ira_max_memory_move_cost, ira_max_register_move_cost)
8638 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8639 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8640 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8641 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8642 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8643 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8644 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8645 (ira_tune_allocno_costs_and_cover_classes): Rename to
8646 ira_tune_allocno_costs.
8647 (ira_debug_hard_regs_forest): New.
8648 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8649 (ira_object_conflict_iter_next): Fix comments.
8650 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8651 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8652 cover_class to aclass.
8653 (ira_allocate_and_accumulate_costs): Ditto.
8654 (ira_allocate_and_set_or_copy_costs): Ditto.
8656 * opts.c (decode_options): Remove ira_cover_class check.
8658 * ira-color.c: Remove mentioning cover classes from the file. Use
8659 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8660 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8661 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8662 (splay-tree.h): Remove include.
8663 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8664 before copy_freq_compare_func.
8665 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8666 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8668 (hard_regs_roots, hard_regs_node_vec): Ditto.
8669 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8670 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8671 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8672 (create_new_object_hard_regs_node): Ditto.
8673 (add_new_object_hard_regs_node_to_forest): Ditto.
8674 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8675 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8677 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8678 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8679 (remove_unused_object_hard_regs_nodes): Ditto.
8680 (enumerate_object_hard_regs_nodes): Ditto.
8681 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8682 (object_hard_regs_subnode_t): Ditto.
8683 (struct object_hard_regs_subnode): Ditto.
8684 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8685 (setup_object_hard_regs_subnode_index): Ditto.
8686 (get_object_hard_regs_subnodes_num): Ditto.
8687 (form_object_hard_regs_nodes_forest): Ditto.
8688 (finish_object_hard_regs_nodes_tree): Ditto.
8689 (finish_object_hard_regs_nodes_forest): Ditto.
8690 (allocnos_have_intersected_live_ranges_p): Rename to
8691 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8692 (pseudos_have_intersected_live_ranges_p): Rename to
8693 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8694 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8695 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8696 (update_copy_costs): Remove assert. Skip cost update if the hard
8697 reg does not belong the class.
8698 (assign_hard_reg): Process only profitable hard regs.
8699 (uncolorable_allocnos_num): Make it scalar.
8700 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8701 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8702 and ira_reg_class_max_nregs.
8703 (bucket_allocno_compare_func): Check frequency first.
8704 (sort_bucket): Add compare function as a parameter.
8705 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8706 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8707 (push_allocno_to_stack): Rewrite for checking new allocno
8709 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8710 (push_only_colorable): Pass new parameter to sort_bucket.
8711 (push_allocno_to_spill): Remove.
8712 (allocno_spill_priority_compare): Make it inline and rewrite.
8713 (splay_tree_allocate, splay_tree_free): Remove.
8714 (allocno_spill_sort_compare): New function.
8715 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8716 build and use splay tree. Choose first allocno in uncolorable
8717 allocno bucket to spill. Remove setting spill cost.
8718 (all_conflicting_hard_regs): Remove.
8719 (setup_allocno_available_regs_num): Check only profitable hard
8720 regs. Print info about hard regs nodes.
8721 (setup_allocno_left_conflicts_size): Remove.
8722 (put_allocno_into_bucket): Don't call
8723 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8724 (improve_allocation): New.
8725 (color_allocnos): Call setup_profitable_hard_regs,
8726 form_object_hard_regs_nodes_forest, improve_allocation,
8727 finish_object_hard_regs_nodes_forest. Setup spill cost.
8728 (print_loop_title): Use pressure classes.
8729 (color_allocnso): Ditto.
8730 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8731 and allocnos_for_spilling.
8732 (ira_sort_regnos_for_alter_reg): Don't setup members
8733 {first,next}_coalesced_allocno.
8734 (color): Remove allocating and freeing removed_splay_allocno_vec.
8735 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8736 prohibited_class_mode_regs.
8738 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8740 (update_allocno_pressure_excess_length): Use pressure classes.
8741 (inc_register_pressure, dec_register_pressure): Check for pressure
8743 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8744 pressure class. Use ira_reg_class_nregs instead of
8745 ira_reg_class_max_nregs.
8746 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8747 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8748 (single_reg_class): Use ira_reg_class_nregs instead of
8749 ira_reg_class_max_nregs.
8750 (process_bb_node_lives): Use pressure classes.
8752 * ira-emit.c: Remove mentioning cover classes from the file. Use
8753 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8754 (change_loop): Use pressure classes.
8755 (modify_move_list): Call ira_set_allocno_class instead of
8756 ira_set_allocno_cover_class.
8758 * ira-build.c: Remove mentioning cover classes from the file. Use
8759 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8760 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8761 ALLOCNO_UPDATED_CLASS_COST instead of
8762 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8763 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8764 (ira_create_allocno): Remove initialization of
8765 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8766 ALLOCNO_COLORABLE_P.
8767 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8768 Update conflict regs for the objects.
8769 (create_cap_allocno): Remove assert. Don't propagate
8770 ALLOCNO_AVAILABLE_REGS_NUM.
8771 (ira_free_allocno_costs): New function.
8772 (finish_allocno): Change a part of code into call of
8773 ira_free_allocno_costs.
8774 (low_pressure_loop_node_p): Use pressure classes.
8775 (object_range_compare_func): Don't compare classes.
8776 (setup_min_max_conflict_allocno_ids): Ditto.
8778 * loop-invariant.c: Remove mentioning cover classes from the file.
8779 Use ira_pressure_classes and ira_pressure_classes_num instead of
8780 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8781 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8782 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8783 Use reg_allocno_class instead of reg_cover_class.
8784 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8785 STACK_REG_COVER_CLASS.
8786 (get_regno_cover_class): Rename to get_regno_pressure_class.
8787 (move_loop_invariants): Initialize and finalize regstat.
8789 * ira.c: Remove mentioning cover classes from the file. Add
8790 comments about coloring without cover classes. Use ALLOCNO_CLASS
8791 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8792 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8793 setup_class_subset_and_memory_move_costs.
8794 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8795 (setup_cover_and_important_classes): Rename to
8796 setup_allocno_and_important_classes.
8797 (setup_class_translate_array): New.
8798 (setup_class_translate): Call it for allocno and pressure classes.
8799 (cover_class_order): Rename to allocno_class_order.
8800 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8801 of ira_class_translate.
8802 (reorder_important_classes): Set up ira_important_class_nums.
8803 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8804 (print_class_cover): Rename to print_classes. Add parameter.
8805 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8806 Print pressure classes too.
8807 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8808 setup_reg_subclasses.
8809 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8810 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8811 (setup_prohibited_class_mode_regs): Use
8812 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8813 (clarify_prohibited_class_mode_regs): New function.
8814 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8815 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8816 (ira_init_once): Initialize them.
8817 (free_register_move_costs): Process them.
8818 (ira_init): Move calls of find_reg_classes and
8819 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8820 Call clarify_prohibited_class_mode_regs.
8821 (ira_no_alloc_reg): Remove.
8822 (too_high_register_pressure_p): Use pressure classes.
8824 * sched-deps.c: Remove mentioning cover classes from the file.
8825 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8826 ira_pressure_classes and ira_pressure_classes_num instead of
8827 ira_reg_class_cover_size and ira_reg_class_cover.
8828 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8829 sched_regno_pressure_class instead of sched_regno_cover_class.
8830 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8831 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8833 * ira.h: Add 2010 to Copyright.
8834 (ira_no_alloc_reg): Remove external.
8835 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8836 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8837 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8838 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8839 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8840 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8841 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8842 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8843 x_ira_no_alloc_regs.
8844 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8845 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8846 ira_allocno_classes_num and ira_allocno_classes.
8847 (ira_class_translate): Rename to ira_allocno_class_translate.
8848 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8849 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8850 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8851 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8852 (ira_no_alloc_regs): New.
8854 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8855 classes from the file. Use ALLOCNO_CLASS instead of
8856 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8857 ALLOCNO_COVER_CLASS_COST.
8858 (regno_cover_class): Rename to regno_aclass.
8859 (record_reg_classes): Use ira_reg_class_subunion instead of
8860 ira_reg_class_union.
8861 (record_address_regs): Check overflow.
8862 (scan_one_insn): Ditto.
8863 (print_allocno_costs): Print total mem cost fore regional allocation.
8864 (print_pseudo_costs): Use REG_N_REFS.
8865 (find_costs_and_classes): Use classes intersected with them on the
8866 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8867 ira_reg_class_union. Use ira_allocno_class_translate and
8868 regno_aclass instead of ira_class_translate and regno_cover_class.
8869 Modify code for finding regno_aclass. Setup preferred classes for
8871 (setup_allocno_cover_class_and_costs): Rename to
8872 setup_allocno_class_and_costs. Use regno_aclass instead of
8873 regno_cover_class. Use ira_set_allocno_class instead of
8874 ira_set_allocno_cover_class.
8875 (init_costs, finish_costs): Use regno_aclass instead of
8877 (ira_costs): Use setup_allocno_class_and_costs instead of
8878 setup_allocno_cover_class_and_costs.
8879 (ira_tune_allocno_costs_and_cover_classes): Rename to
8880 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8881 by processing objects. Use ira_reg_class_max_nregs instead of
8882 ira_reg_class_nregs.
8884 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8886 * sched-int.h: Remove mentioning cover classes from the file.
8887 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8889 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8890 classes from the file.
8891 (struct reg_pref): Rename coverclass into allocnoclass.
8892 (reg_cover_class): Rename to reg_allocno_class.
8894 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8896 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8898 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8900 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8902 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8904 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8906 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8908 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8910 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8912 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8914 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8915 (i386_ira_cover_classes): Ditto.
8917 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8919 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8921 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8923 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8925 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8927 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8929 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8930 (mips_ira_cover_classes): Ditto.
8932 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8934 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8936 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8938 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8940 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8942 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8943 (IRA_COVER_CLASSES_VSX): Ditto.
8945 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8946 (rs6000_ira_cover_classes): Ditto.
8948 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8950 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8952 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8954 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8956 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8958 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8960 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8962 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8964 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8966 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8968 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8971 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8972 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8973 dw_fde_unlikely_section_end_label, cold_in_std_section,
8974 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8975 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8977 (output_fde): Use dw_fde_second_{begin,end} if second is
8978 true, otherwise dw_fde_{begin,end}.
8979 (output_call_frame_info): Test dw_fde_second_begin != NULL
8980 instead of dw_fde_switched_sections.
8981 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8982 fields, initialize new fields. Initialize in_std_section
8983 unconditionally from the first partition.
8984 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8985 dw_fde_second_begin is non-NULL.
8986 (dwarf2out_switch_text_section): Stop initializing removed
8987 dw_fde_struct fields, initialize new fields, initialize
8988 also dw_fde_end here. Set dw_fde_switch_cfi even when
8989 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8990 (struct var_loc_list_def): Add last_before_switch field.
8991 (arange_table, arange_table_allocated, arange_table_in_use,
8992 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8993 (size_of_aranges): Count !in_std_section and !second_in_std_section
8994 hunks in fdes, instead of looking at arange_table_in_use.
8995 (output_aranges): Add aranges_length argument, don't call
8996 size_of_aranges here. Instead of using aranges_table*
8997 emit ranges for fdes when !in_std_section resp.
8998 !second_in_std_section.
8999 (dw_loc_list): Break ranges crossing section switch.
9000 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9001 use dw_fde_second_end instead of dw_fde_end as end of last range.
9002 (gen_subprogram_die): Don't call add_arange. Use
9003 dw_fde_{begin,end} for first partition and if switched
9004 section dw_fde_second_{begin,end} for the second.
9005 (var_location_switch_text_section_1,
9006 var_location_switch_text_section): New functions.
9007 (dwarf2out_begin_function): Initialize cold_text_section even
9008 when function_section () isn't text_section.
9009 (prune_unused_types): Don't walk arange_table.
9010 (dwarf2out_finish): Don't needlessly test
9011 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9012 If info_section_emitted, call size_of_aranges and if it indicates
9013 non-empty .debug_aranges, call output_aranges with the computed
9014 size. Stop using removed dw_fde_struct fields, use
9015 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9019 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9020 create ENTRY_VALUE if incoming or address of incoming's MEM
9022 * dwarf2out.c (mem_loc_descriptor): Don't emit
9023 DW_OP_GNU_entry_value of DW_OP_fbreg.
9024 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9025 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9026 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9027 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9029 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9030 is a REG_P or MEM_P with REG_P address, compute hash directly
9031 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9032 (preserve_only_constants): Don't clear VALUES forwaring
9033 ENTRY_VALUE to some other VALUE.
9035 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9037 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9040 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9042 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9043 block before expanding the statement.
9044 (expand_gimple_stmt_1): Likewise. Set them here...
9045 (expand_gimple_stmt): ...and not here. Tidy.
9046 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9049 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9051 * Makefile.in: New rule for cprop.o.
9052 * gcse.c: Move constant/copy propagation to cprop.c.
9053 (compute_local_properties): Only handle expression tables.
9054 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9055 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9056 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9057 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9058 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9059 compute_cprop_data, find_used_regs, try_replace_reg,
9060 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9061 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9062 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9063 find_bypass_set, reg_killed_on_edge, bypass_block,
9064 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9065 execute_rtl_cprop, pass_rtl_cprop): Move to...
9066 * cprop.c: ...here. New file, constant/copy propagation for RTL
9067 moved from gcse.c to here with minor cleanups in duplicated code.
9069 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9071 * config/i386/i386.c (flag_opts): Fix a typo in
9072 -mavx256-split-unaligned-store.
9074 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9076 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9077 LIBCALL_VALUE): Remove macros.
9078 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9079 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9080 (h8300_function_value, h8300_libcall_value,
9081 h8300_function_value_regno_p): New functions.
9083 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9085 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9087 2011-03-28 Jeff Law <law@redhat.com>
9089 * tree-ssa-threadupdate.c (redirect_edges): Call
9090 create_edge_and_update_destination_phis as needed.
9091 (create_edge_and_update_destination_phis): Accept new BB argument.
9092 All callers updated.
9093 (thread_block): Do not update the profile when threading around
9094 intermediate blocks.
9095 (thread_single_edge): Likewise.
9096 (determine_bb_domination_status): If BB is not a successor of the
9097 loop header, return NONDOMINATING.
9098 (register_jump_thread): Note when we register a jump thread around
9099 an intermediate block.
9100 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9101 (thread_across_edge): Use it.
9103 2011-03-28 Tristan Gingold <gingold@adacore.com>
9105 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9106 when for_return is 2.
9108 2011-03-28 Jeff Law <law@redhat.com>
9110 * var-tracking.c (canonicalize_values_mark): Delete unused
9112 (canonicalize_values_star, set_variable_part): Likewise.
9113 (clobber_variable_part, delete_variable_part): Likewise.
9115 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9117 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9119 2011-03-28 Martin Jambor <mjambor@suse.cz>
9121 * tree-inline.c (expand_call_inline): Do not check that destination
9123 (optimize_inline_calls): Assert that destination node is analyzed.
9124 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9125 not call tree_lowering_passes.
9126 * cgraph.h (cgraph_analyze_function): Declare.
9127 * cgraphunit.c (cgraph_analyze_function): Make public.
9129 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9131 * config/sparc/sparc-opts.h: New.
9132 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9133 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9134 (sparc_option_override): Store processor_type enumeration rather
9135 than string in cpu_default. Remove name and enumeration from
9136 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9137 without using sparc_select. Use target_flags_explicit instead of
9139 * config/sparc/sparc.h (enum processor_type): Move to
9141 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9142 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9143 HeaderInclude entry.
9144 (mcpu=, mtune=): Use Var and Enum.
9145 (sparc_processor_type): New Enum and EnumValue entries.
9147 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9148 Iain Sandoe <iains@gcc.gnu.org>
9151 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9153 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9155 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9156 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9157 Insert new statements at it in lieu of STMT.
9158 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9159 * tree-vect-stmts.c (vectorizable_store): Likewise.
9160 (vectorizable_load): Likewise.
9162 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9164 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9169 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9171 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9172 unaligned 256bit load/store.
9173 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9174 (*avx_movdqu<avxmodesuffix>): Likewise.
9176 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9179 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9180 * config/pa/pa.md (iordi3): Use new predicate in expander.
9183 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9185 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9186 FUNCTION_VALUE_REGNO_P): Remove macros.
9187 * config/mips/mips-protos.h (mips_function_value): Remove.
9188 * config/mips/mips.c (mips_function_value): Rename to...
9189 (mips_function_value_1): ... this. Make static. Handle receiving
9190 the function type in 'fn_decl_or_type' argument.
9191 (mips_function_value, mips_libcall_value,
9192 mips_function_value_regno_p): New function.
9193 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9194 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9196 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9198 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9199 and -mavx256-split-unaligned-store.
9200 (ix86_option_override_internal): Split 32-byte AVX unaligned
9201 load/store by default.
9202 (ix86_avx256_split_vector_move_misalign): New.
9203 (ix86_expand_vector_move_misalign): Use it.
9205 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9206 -mavx256-split-unaligned-store.
9208 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9209 256bit load/store. Generate unaligned store on misaligned memory
9211 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9213 (*avx_movdqu<avxmodesuffix>): Likewise.
9215 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9216 -mavx256-split-unaligned-store.
9218 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9221 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9224 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9226 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9227 opno arguments with an expand_operand. Use create_input_operand.
9228 (mips_prepare_builtin_target): Delete.
9229 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9231 (mips_expand_builtin_direct): Use create_output_operand and
9232 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9233 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9234 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9236 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9238 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9240 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9242 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9244 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9245 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9246 basic blocks and call commit_edge_insertions directly.
9247 (fixup_abnormal_edges): Move from here to...
9248 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9249 on the edges and return whether some have actually been inserted.
9250 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9253 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9255 PR rtl-optimization/48144
9256 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9257 (merge_expr_data): ... here.
9258 (av_set_intersect): Rename to av_set_code_motion_filter.
9259 Update all callers. Call merge_history_vect when an expression
9260 is found in both sets.
9261 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9263 2011-03-26 Alan Modra <amodra@gmail.com>
9265 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9266 cmodel medium addresses.
9267 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9268 64-bit gpr loads and stores.
9269 (rs6000_secondary_reload_ppc64): New function.
9270 * config/rs6000/rs6000-protos.h: Declare it.
9271 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9273 2011-03-26 Alan Modra <amodra@gmail.com>
9276 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9277 GNU Go in traceback table.
9279 2011-03-25 Richard Henderson <rth@redhat.com>
9281 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9282 if there are exactly 6 operands.
9283 (set_storage_via_setmem): Similarly.
9285 2011-03-25 Kai Tietz <ktietz@redhat.com>
9287 * collect2.c (write_c_file_stat): Handle backslash
9288 as right-hand directory separator.
9289 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9290 checking just for slash.
9291 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9292 instead of checking for trailing slash.
9293 * gcc.c (record_temp_file): Use filename_cmp instead
9295 (do_spec_1): Likewise.
9296 (replace_outfile_spec_function): Likewise.
9297 (is_directory): Use filename_ncmp instead of strncmp.
9298 (print_multilib_info): Likewise.
9299 * gcov.c (find_source): Use filename_cmp instead
9301 (make_gcov_file_name): Fix order of slash/backslash
9303 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9304 (add_standard_paths): Likewise.
9305 * mips-tfile.c (saber_stop): Handle backslash.
9306 * prefix.c (update_path): Use filename_ncmp instead of
9308 * profile.c (output_location): Use filename_cmp instead
9310 * read-md.c (handle_toplevel_file): Handle backslash.
9311 * tlink.c (frob_extension): Likewise.
9312 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9314 * tree-dump.c (dequeue_and_dump): Handle backslash.
9315 * tree.c (get_file_function_name): Likewise.
9316 * gengtype.c (read_input_list): Likewise.
9317 (get_file_realbasename): Likewise.
9318 (get_output_file_with_visibility): Use filename_cmp
9321 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9323 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9326 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9328 * fold-const.c (expr_location_or): New function.
9329 (fold_truth_not_expr): Call it.
9331 2011-03-25 Jeff Law <law@redhat.com>
9333 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9335 * c-family/c-common.c (def_fn_type): Likewise.
9336 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9337 * emit-rtl.c (gen_rtvec): Likewise.
9338 * lto/lto-lang.c (def_fn_type): Likewise.
9340 2011-03-25 Richard Guenther <rguenther@suse.de>
9342 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9343 also generate copies.
9344 (fini_copy_prop): Handle constant values properly.
9346 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9348 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9349 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9350 (hash_loc_operands, compare_loc_operands): Handle
9351 DW_OP_GNU_entry_value.
9353 2011-03-25 Kai Tietz <ktietz@redhat.com>
9355 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9356 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9357 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9358 comment and use macro TARGET_64BIT_MS_ABI instead.
9359 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9360 and change default behavior for 32-bit MS_ABI.
9361 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9362 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9364 (ix86_cfun_abi): Likewise.
9365 (ix86_maybe_switch_abi): Adjust comment.
9366 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9367 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9368 instead of checking for SYSV_ABI.
9369 (ix86_nsaved_sseregs): Likewise.
9370 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9372 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9373 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9374 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9375 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9376 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9378 2011-03-25 Richard Guenther <rguenther@suse.de>
9380 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9381 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9382 (verify_gimple): Remove.
9383 * tree-cfg.c (verify_gimple_call): Merge verification
9385 (verify_gimple_phi): Merge verification from verify_stmts.
9386 (verify_gimple_label): New function.
9387 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9388 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9389 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9390 (verify_stmts): Rename to verify_gimple_in_cfg.
9391 (verify_gimple_in_cfg): New function.
9392 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9393 * tree-ssa.c (verify_ssa): Likewise.
9394 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9396 2011-03-25 Richard Guenther <rguenther@suse.de>
9398 * passes.c (init_optimization_passes): Add FRE pass after
9401 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9402 Andrew Stubbs <ams@codesourcery.com>
9404 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9406 (arm_movdi_vfp_cortexa8): New pattern.
9407 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9408 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9409 instructions when tuning for Cortex-A8. Set attribute "arch".
9410 * config/arm/arm.md: Move include arm-tune.md up a bit.
9411 (define_attr "arch"): Add "onlya8" and "nota8" values.
9412 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9414 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9418 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9420 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9421 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9422 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9423 * passes.c (init_optimization_passes): Move
9424 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9426 2011-03-25 Kai Tietz <ktietz@redhat.com>
9428 * c-typeck.c (comptypes_internal): Replace target
9429 hook call of comp_type_attributes by version in tree.c file.
9430 * gimple.c (gimple_types_compatible_p_1): Likewise.
9431 * tree-ssa.c (useless_type_conversion_p): Likewise.
9432 * tree.c (build_type_attribute_qual_variant): Likewise.
9433 (attribute_value_equal): New static helper function.
9434 (comp_type_attributes): New function.
9435 (merge_attributes): Use attribute_value_equal for comparison.
9436 (attribute_list_contained): Likewise.
9437 * tree.h (comp_type_attributes): New prototype.
9439 2011-03-25 Richard Guenther <rguenther@suse.de>
9441 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9442 of complex types at -O0.
9443 (verify_gimple_assign_binary): Likewise.
9444 (verify_gimple_assign_ternary): Likewise.
9446 2011-03-24 Mark Wielaard <mjw@redhat.com>
9448 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9449 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9451 2011-03-24 Mark Wielaard <mjw@redhat.com>
9454 * dwarf2out.c (output_abbrev_section): Only write table when
9455 abbrev_die_table_in_use > 1.
9457 2011-02-24 Richard Henderson <rth@redhat.com>
9459 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9460 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9461 (alpha_expand_unaligned_load_words): Use extql.
9462 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9463 (emit_insxl): Handle all modes for consistency.
9465 2011-02-24 Richard Henderson <rth@redhat.com>
9467 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9468 (alpha_expand_unaligned_load): Likewise.
9469 (alpha_expand_unaligned_store): Likewise.
9470 (alpha_expand_unaligned_load_words): Likewise.
9471 (alpha_expand_unaligned_store_words): Likewise.
9472 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9473 (alpha_split_lock_test_and_set_12): Likewise.
9474 (print_operand, alpha_fold_builtin_extxx): Likewise.
9475 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9476 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9477 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9478 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9479 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9480 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9481 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9482 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9483 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9484 (extwl, extll, extql): Similarly.
9485 (inswh, inslh, insqh): Similarly.
9486 (mskbl, mskwl, mskll, mskql): Similarly.
9487 (mskwh, msklh, mskqh): Similarly.
9489 2011-02-24 Richard Henderson <rth@redhat.com>
9491 * config/alpha/alpha.md (attribute isa): Add er, ner.
9492 (attribute enabled): Handle them.
9493 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9495 2011-02-24 Richard Henderson <rth@redhat.com>
9497 * config/alpha/alpha.md (attribute isa): Add vms.
9498 (attribute enabled): Handle it.
9499 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9500 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9501 (*movtf): Rename from *movtf_internal for consistency.
9502 (*movsi): Merge with *movsi_nt_vms.
9503 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9504 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9505 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9506 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9508 2011-02-24 Richard Henderson <rth@redhat.com>
9510 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9511 (extendqisi2, extendhisi2): Likewise.
9512 (extendqidi2): Simplify BWX/non-BWX expansions.
9513 (extendhidi2): Similarly.
9515 2011-02-24 Richard Henderson <rth@redhat.com>
9517 * config/alpha/alpha.md (attribute isa): New.
9518 (attribute enabled): New.
9519 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9520 (zero_extendqisi2, zero_extendqidi2): Similarly.
9521 (zero_extendhisi2, zero_extendhidi2): Similarly.
9522 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9524 2011-02-24 Richard Henderson <rth@redhat.com>
9526 * config/alpha/predicates.md (input_operand): Revert last change;
9527 update comment to mention 32-bit VMS rather than Windows.
9529 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9531 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9532 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9533 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9534 * passes.c (init_optimization_passes): Move
9535 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9537 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9539 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9541 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9543 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9546 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9549 * simplify-rtx.c (simplify_const_unary_operation): Call
9550 real_convert when changing mode class with FLOAT_EXTEND.
9552 2011-03-24 Nick Clifton <nickc@redhat.com>
9554 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9555 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9556 * config/rx/rx.c (rx_option_override): Set align_jumps,
9557 align_loops and align_labels if not set by the user.
9558 (rx_align_for_label): New function.
9559 (rx_max_skip_for_label): New function.
9560 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9561 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9562 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9563 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9564 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9566 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9568 PR rtl-optimization/48263
9569 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9570 and original commutative_p handling. Use maybe_gen_insn.
9572 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9574 * reload.c (find_reloads_subreg_address): Add address_reloaded
9575 parameter and return true there if the full address has been
9577 (find_reloads_toplev): Pass address_reloaded flag.
9578 (find_reloads_address_1): Don't use address_reloaded parameter.
9580 2011-03-24 Jeff Law <law@redhat.com>
9582 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9583 unused variable "ann".
9584 (remove_unused_locals): Likewise.
9586 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9589 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9592 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9594 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9595 for invalid symbolic addresses.
9596 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9599 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9601 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9602 the argument in calls to fold_truth_not_expr.
9604 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9606 * tree.c (record_node_allocation_statistics): New function.
9607 (make_node_stat, copy_node_stat, build_string): Call it.
9608 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9609 (build1_stat, build_omp_clause): Likewise.
9611 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9613 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9616 2011-03-24 Richard Guenther <rguenther@suse.de>
9618 PR tree-optimization/48271
9619 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9620 blocks that still exist.
9622 2011-03-24 Richard Guenther <rguenther@suse.de>
9624 PR tree-optimization/48270
9625 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9626 not free datarefs before ddrs.
9628 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9630 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9631 from the address built for a reference with variable offset.
9633 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9636 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9637 alternatives that can be handled with movq or movabsq insn.
9638 (*movdf_internal): Disable for !TARGET_64BIT.
9639 (*movdf_internal_nointeger): Ditto.
9640 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9642 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9644 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9645 (FUNCTION_ARG_ADVANCE): Likewise.
9646 * tm.texi.in: Change references to them to hook references.
9647 * tm.texi: Regenerate.
9648 * targhooks.c (default_function_arg): Eliminate check for target macro.
9649 (default_function_incoming_arg): Likewise.
9650 (default_function_arg_advance): Likewise.
9651 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9652 (function_arg_advance): Likewise.
9653 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9655 2011-03-24 Richard Guenther <rguenther@suse.de>
9658 * tree-object-size.c (addr_object_size): Do not double-account
9659 for MEM_REF offsets.
9661 2011-03-24 Diego Novillo <dnovillo@google.com>
9663 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9664 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9665 (lto_input_data_block): Move from lto-opts.c. Make extern.
9667 (lto_input_string): Rename from input_string. Make extern.
9669 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9670 output_string_with_length.
9671 Output 0 to indicate a non-NULL string. Update all callers to
9673 (lto_output_string): Rename from output_string. Make extern.
9675 (lto_output_decl_state_streams): Make extern.
9676 (lto_output_decl_state_refs): Make extern.
9677 * lto-streamer.h (lto_input_string): Declare.
9678 (lto_input_data_block): Declare.
9679 (lto_output_string): Declare.
9680 (lto_output_string_with_length): Declare.
9681 (lto_output_decl_state_streams): Declare.
9682 (lto_output_decl_state_refs): Declare.
9684 2011-03-24 Richard Guenther <rguenther@suse.de>
9686 PR tree-optimization/46562
9687 * tree.c (build_invariant_address): New function.
9688 * tree.h (build_invariant_address): Declare.
9689 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9690 a renamed function moved ...
9691 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9692 Take valueization callback parameter.
9693 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9694 * gimple-fold.h: New file.
9695 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9696 (ccp_fold, fold_const_aggregate_ref,
9697 fold_ctor_reference, fold_nonarray_ctor_reference,
9698 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9699 get_base_constructor): Move ...
9700 * gimple-fold.c: ... here.
9701 (gimple_fold_stmt_to_constant_1): New function
9702 split out from ccp_fold. Take a valueization callback parameter.
9703 Valueize all operands.
9704 (gimple_fold_stmt_to_constant): New wrapper function.
9705 (fold_const_aggregate_ref_1): New function split out from
9706 fold_const_aggregate_ref. Take a valueization callback parameter.
9707 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9708 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9709 invariant POINTER_PLUS_EXPRs to invariant form.
9710 (vn_valueize): New function.
9711 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9712 * tree-vrp.c (vrp_valueize): New function.
9713 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9714 to fold statements to constants.
9715 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9716 function declarations.
9717 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9718 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9720 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9722 * config/h8300/predicates.md (jump_address_operand): Fix register
9725 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9727 * doc/invoke.texi (max-stores-to-sink): Document.
9728 * params.h (MAX_STORES_TO_SINK): Define.
9729 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9730 if either vectorization or if-conversion is disabled.
9731 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9732 tree-vect-data-refs.c vect_equal_offsets.
9733 (dr_equal_offsets_p): New function.
9734 (find_data_references_in_bb): Remove static.
9735 * tree-data-ref.h (find_data_references_in_bb): Declare.
9736 (dr_equal_offsets_p): Likewise.
9737 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9738 (vect_drs_dependent_in_basic_block): Update calls to
9740 (vect_check_interleaving): Likewise.
9741 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9742 (cond_if_else_store_replacement): Rename to...
9743 (cond_if_else_store_replacement_1): ... this. Change arguments and
9745 (cond_if_else_store_replacement): New function.
9746 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9747 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9749 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9752 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9753 to subtract lower bound instead of GEN_INT().
9755 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9760 * doc/extend.texi (Alignment): Move section to match order in TOC.
9761 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9762 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9764 2011-03-23 Jeff Law <law@redhat.com>
9766 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9767 before removing the edge.
9769 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9770 it may have been freed by redirect_branch_edge or
9771 redirect_edge_succ_nodup.
9773 2011-03-23 Richard Guenther <rguenther@suse.de>
9775 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9776 (check_va_list_escapes): Likewise.
9777 (check_all_va_list_escapes): Likewise.
9779 2011-03-23 Richard Guenther <rguenther@suse.de>
9781 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9782 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9783 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9784 (alias.o): Likewise.
9785 (ipa-type-escape.o): Remove.
9786 (ipa-struct-reorg.o): Likewise.
9787 (GTFILES): Remove ipa-struct-reorg.c.
9788 * alias.c: Do not include ipa-type-escape.h.
9789 * tree-ssa-alias.c: Likewise.
9790 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9791 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9792 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9793 and ipa-type-escape passes.
9794 * tree-pass.h (pass_ipa_type_escape): Remove.
9795 (pass_ipa_struct_reorg): Likewise.
9796 * ipa-struct-reorg.h: Remove.
9797 * ipa-struct-reorg.c: Likewise.
9798 * ipa-type-escape.h: Likewise.
9799 * ipa-type-escape.c: Likewise.
9800 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9801 (--param struct-reorg-cold-struct-ratio): Likewise.
9802 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9803 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9804 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9806 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9808 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9809 cpu attribute value.
9810 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9811 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9812 * config/s390/s390.c (processor_flags_table): New constant array.
9813 (s390_handle_arch_option): Remove.
9814 (s390_handle_option): Remove s390_handle_arch_option invocations
9815 and OPT_mwarn_framesize_ handling.
9816 (s390_option_override): Remove s390_handle_arch_option invocation.
9817 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9819 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9820 * config/s390/s390.opt (s390_tune, s390_arch)
9821 (march=): Replace s390_arch_option enum and values with
9822 processor_type. Set variable name to s390_arch. Set
9823 initialization value.
9824 (mtune=): Replace s390_arch_option with processor_type. Set
9825 variable name to s390_tune. Set initialization value.
9827 2011-03-23 Julian Brown <julian@codesourcery.com>
9829 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9830 accesses which are not naturally aligned.
9832 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9835 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9837 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9839 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9840 parameter from "int" to "enum insn_code".
9841 (expand_operand_type): New enum.
9842 (expand_operand): New structure.
9843 (create_expand_operand): New function.
9844 (create_fixed_operand, create_output_operand): Likewise
9845 (create_input_operand, create_convert_operand_to): Likewise.
9846 (create_convert_operand_from, create_address_operand): Likewise.
9847 (create_integer_operand): Likewise.
9848 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9849 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9850 (expand_insn, expand_jump_insn): Likewise.
9851 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9852 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9853 (expand_movstr, expand_builtin___clear_cache): Likewise.
9854 (expand_builtin_lock_release): Likewise.
9855 * explow.c (allocate_dynamic_stack_space): Likewise.
9856 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9857 and use the default handling in that case.
9858 * expmed.c (check_predicate_volatile_ok): Delete.
9859 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9860 (emit_cstore): Likewise.
9861 * expr.c (emit_block_move_via_movmem): Likewise.
9862 (set_storage_via_setmem, expand_assignment): Likewise.
9863 (emit_storent_insn, try_casesi): Likewise.
9864 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9865 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9866 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9867 (expand_twoval_unop, expand_twoval_binop): Likewise.
9868 (expand_unop_direct, emit_indirect_jump): Likewise.
9869 (emit_conditional_move, vector_compare_rtx): Likewise.
9870 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9871 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9872 (expand_sync_lock_test_and_set): Likewise.
9873 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9874 (emit_unop_insn): Likewise.
9875 (expand_copysign_absneg): Change icode to an insn_code.
9876 (create_convert_operand_from_type): New function.
9877 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9878 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9879 (expand_insn, expand_jump_insn): Likewise.
9880 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9881 than const_int_operand for operand 2.
9883 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9885 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9888 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9890 * emit-rtl.c (emit_pattern_before_noloc): New function.
9891 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9892 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9893 (emit_pattern_after_noloc): New function.
9894 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9895 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9897 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9899 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9900 (__ffsDI2): Likewise.
9902 2011-03-22 Richard Henderson <rth@redhat.com>
9904 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9905 of !TARGET_ABI_OPEN_VMS.
9906 (alpha_trampoline_init, alpha_start_function): Likewise.
9907 (alpha_expand_epilogue, alpha_file_start): Likewise.
9908 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9909 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9910 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9911 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9912 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9914 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9916 * config/s390/s390-opts.h: New.
9917 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9918 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9919 s390_stack_guard): Remove.
9920 (s390_handle_arch_option): Return void. Take enum
9921 s390_arch_option value instead of string and searching array.
9922 (s390_handle_option): Don't assert that global structures are in
9923 use. Access variables via opts pointer. Use error_at. Don't use
9924 sscanf for -mstack-guard= or -mstack-size=. Update call to
9925 s390_handle_arch_option.
9926 (s390_option_override): Update call to s390_handle_arch_option.
9927 (s390_emit_prologue): Use %d format for s390_stack_size in
9928 diagnostic. Use %wd for HOST_WIDE_INT.
9929 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9930 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9931 * config/s390/s390.opt (config/s390/s390-opts.h): New
9932 HeaderInclude entry.
9933 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9934 s390_arch_flags, s390_warn_framesize): New Variable entries.
9935 (s390_arch_option): New Enum and EnumValue entries.
9936 (march=): Use Enum instead of Var.
9937 (mstack-guard=, mstack-size=): Use UInteger and Var.
9940 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9942 * config/score/score.c (score_handle_option): Don't assert that
9943 global structures are in use. Access target_flags via opts
9944 pointer. Use value of -march= option to determine target_flags
9946 * config/score/score.opt (march=): Use Enum.
9947 (score_arch): New Enum and EnumValue entries.
9949 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9951 * config/mep/mep.c (option_mtiny_specified): Remove.
9952 (mep_option_override): Move register handling for -mivc2 from
9953 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9954 instead of option_mtiny_specified.
9955 (mep_handle_option): Access target_flags via opts pointer. Don't
9956 assert that global structures are in use. Defer part of -mivc2
9957 handling and move it to mep_option_override.
9958 * config/mep/mep.opt (IVC2): New Mask entry.
9959 (mivc2): Use Var and Defer instead of Mask.
9961 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9963 * config/v850/v850-opts.h: New.
9964 * config/v850/v850.c (small_memory): Replace with
9965 small_memory_physical_max array. Make that array static const.
9966 (v850_handle_memory_option): Take integer value of argument. Take
9967 gcc_options pointer, option text and location. Return void.
9968 Update for changes to small memory structures.
9969 (v850_handle_option): Access target_flags via opts pointer. Don't
9970 assert that global structures are in use. Update calls to
9971 v850_handle_memory_option.
9972 (v850_encode_data_area): Update references to small memory settings.
9973 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9974 (enum small_memory_type): Move to v850-opts.h.
9975 * config/v850/v850.opt (config/v850/v850-opts.h): New
9976 HeaderInclude entry.
9977 (small_memory_max): New Variable entry.
9978 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9979 (mtda, mzda): Likewise.
9981 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9983 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9984 pointer. Don't assert that global structures are in use.
9986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9988 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9989 via opts pointer. Don't assert that global structures are in use.
9991 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9993 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9994 (munix=93): Use Var.
9995 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9996 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9997 * config/pa/pa-opts.h: New.
9998 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9999 (pa_handle_option): Don't assert that global structures are in
10000 use. Access target_flags via opts pointer. Don't handle
10001 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10003 (pa_option_override): Handle deferred OPT_mfixed_range_.
10005 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10007 * config/mn10300/mn10300-opts.h: New.
10008 * config/mn10300/mn10300.c (mn10300_processor,
10009 mn10300_tune_string): Remove.
10010 (mn10300_handle_option): Don't assert that global structures are
10011 in use. Access mn10300_processor via opts pointer. Don't handle
10013 * config/mn10300/mn10300.h (enum processor_type): Move to
10015 (mn10300_processor): Remove.
10016 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10017 HeaderInclude entry.
10018 (mn10300_processor): New Variable entry.
10021 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10023 * config/microblaze/microblaze.c: Don't include opts.h.
10024 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10025 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10026 (mno-clearbss): Use Var and Warn.
10028 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10030 * config/m32r/m32r-opts.h: New.
10031 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10032 (m32r_handle_option): Don't assert that global structures are in
10033 use. Access target_flags and m32r_cache_flush_func via opts
10034 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10035 OPT_mno_flush_trap here.
10036 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10037 include of m32r-opts.h.
10038 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10039 HeaderInclude entry.
10040 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10041 (mmodel=): Use Enum and Var.
10042 (m32r_model): New Enum and EnumValue entries.
10043 (mno-flush-trap): Use Var.
10044 (msdata=): Use Enum and Var.
10045 (m32r_sdata): New Enum and EnumValue entries.
10047 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10049 * config/m32c/m32c.c: Don't include opts.h.
10050 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10051 m32c_handle_option): Remove.
10052 (m32c_option_override): Check global_options_set.x_target_memregs
10053 instead of target_memregs_set.
10054 * config/m32c/m32c.h (target_memregs): Remove.
10055 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10058 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10060 * config/iq2000/iq2000-opts.h: New.
10061 * config/iq2000/iq2000.c: Don't include opts.h.
10062 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10063 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10064 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10065 HeaderInclude entry.
10066 (iq2000_tune): New Variable entry.
10067 (march=): Add comment. Use Enum.
10068 (iq2000_arch): New Enum and EnumValue entries.
10069 (mcpu=): Use Enum and Var.
10070 (iq2000_tune): New Enum and EnumValue entries.
10072 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10074 * config/ia64/ia64-opts.h: New.
10075 * config/ia64/ia64.c (ia64_tune): Remove.
10076 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10077 here. Use error_at.
10078 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10079 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10080 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10081 HeaderInclude entry.
10082 (ia64_tune): New Variable entry.
10083 (mfixed-range=): Use Defer and Var.
10084 (mtune=): Use Enum and Var.
10085 (ia64_tune): New Enum and EnumValue entries.
10087 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10089 * config/frv/frv-opts.h: New.
10090 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10092 (frv_cpu_type): Remove.
10093 * config/frv/frv.c: Don't include opts.h.
10094 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10095 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10096 (frv_cpu_type): New Variable entry.
10097 (frv_cpu): New Enum and EnumValue entries.
10099 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10101 * config/cris/cris.c (cris_handle_option): Access target_flags via
10102 opts pointer. Don't assert that global structures are in use.
10103 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10104 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10106 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10108 * config/bfin/bfin-opts.h: New.
10109 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10110 bfin_si_revision, bfin_workarounds): Remove.
10111 (bfin_cpus): Make static const.
10112 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10113 not bfin_lib_id_given.
10114 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10115 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10116 pointer. Use error_at. Don't assert that global structures are in use.
10117 * config/bfin/bfin.h: Include bfin-opts.h.
10118 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10119 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10120 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10121 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10124 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10126 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10127 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10128 or -msoft-float here.
10129 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10130 -msoft-float and -mhard-float.
10131 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10132 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10134 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10136 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10137 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10139 (LIBGCC_SPEC): Don't handle -msoft-float.
10140 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10142 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10144 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10145 -mfloat-abi=*, not -msoft-float and -mhard-float.
10146 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10148 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10149 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10150 mhard-float and msoft-float.
10151 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10152 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10153 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10154 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10156 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10157 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10159 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10161 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10164 2011-03-22 Richard Henderson <rth@redhat.com>
10166 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10167 TARGET_ABI_WINDOWS_NT.
10168 (alpha_output_function_end_prologue): Likewise.
10169 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10170 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10171 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10172 (trap, *movsi_nt_vms): Likewise.
10173 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10174 (*tablejump_osf_nt_internal): Remove.
10175 * config/alpha/predicates.md (input_operand): Only test Pmode.
10177 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10179 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10180 via opts pointer. Use error_at. Don't assert that global
10181 structures are in use.
10183 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10185 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10186 (ix86_handle_option): Access ix86_isa_flags and
10187 ix86_isa_flags_explicit via opts pointer. Don't assert that
10188 global structures are in use.
10189 (ix86_function_specific_save, ix86_function_specific_restore):
10190 Update ix86_isa_flags_explicit field name.
10191 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10192 (ix86_isa_flags_explicit): Rename TargetSave entry to
10193 x_ix86_isa_flags_explicit.
10195 2011-03-22 Richard Henderson <rth@redhat.com>
10197 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10198 (alpha_option_override, direct_return): Likewise.
10199 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10200 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10201 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10202 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10203 (alpha_expand_epilogue, alpha_end_function): Likewise.
10204 (alpha_init_libfuncs): Likewise.
10205 (struct machine_function): Remove unicosmk members.
10206 (print_operand) ['t']: Remove.
10207 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10208 unicosmk_output_module_name, unicosmk_output_common,
10209 current_section_align, unicosmk_output_text_section_asm_op,
10210 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10211 unicosmk_section_type_flags, unicosmk_unique_section,
10212 unicosmk_asm_named_section, unicosmk_insert_attributes,
10213 unicosmk_output_align, unicosmk_defer_case_vector,
10214 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10215 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10216 unicosmk_output_ssib, unicosmk_add_call_info_word,
10217 unicosmk_extern_head, unicosmk_output_default_externs,
10218 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10219 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10220 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10221 * config/alpha/alpha-protos.h: Update.
10222 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10223 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10224 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10225 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10226 (*mulsi_se, mulvsi3): Likewise.
10227 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10228 (*divmodsi_internal, call, call_value, realign): Likewise.
10229 (moddi3, umoddi3): Likewise; remove duplicate expander.
10230 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10231 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10232 (*movdi_nofix): Remove r/U alternative.
10233 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10234 * config/alpha/constraints.md ("U"): Remove.
10235 * config/alpha/predicates.md (call_operand"): Don't test
10236 TARGET_ABI_UNICOSMK.
10238 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10240 * target.def (handle_option): Take gcc_options and
10241 cl_decoded_option pointers and location_t.
10242 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10243 * doc/tm.texi: Regenerate.
10244 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10245 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10246 * lto-opts.c (lto_reissue_options): Generate option structure for
10247 targetm.handle_option call.
10248 * opts.c (target_handle_option): Update call to
10249 targetm.handle_option. Remove assertions about values now passed
10251 * targhooks.c (default_target_handle_option): New.
10252 * targhooks.h (default_target_handle_option): Declare.
10253 * config/alpha/alpha.c: Include opts.h.
10254 (alpha_handle_option): Update to new hook interface.
10255 * config/arm/arm.c: Include opts.h.
10256 (arm_handle_option): Update to new hook interface.
10257 * config/arm/t-arm (arm.o): Update dependencies.
10258 * config/bfin/bfin.c: Include opts.h.
10259 (bfin_handle_option): Update to new hook interface.
10260 * config/cris/cris.c: Include opts.h.
10261 (cris_handle_option): Update to new hook interface.
10262 * config/frv/frv.c: Include opts.h.
10263 (frv_handle_option): Update to new hook interface.
10264 * config/i386/i386.c: Include opts.h.
10265 (ix86_handle_option): Update to new hook interface.
10266 (ix86_valid_target_attribute_inner_p): Generate option structure
10267 for call to ix86_handle_option.
10268 * config/i386/t-i386 (i386.o): Update dependencies.
10269 * config/ia64/ia64.c: Include opts.h.
10270 (ia64_handle_option): Update to new hook interface.
10271 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10272 * config/iq2000/iq2000.c: Include opts.h.
10273 (iq2000_handle_option): Update to new hook interface.
10274 * config/m32c/m32c.c: Include opts.h.
10275 (m32c_handle_option): Update to new hook interface.
10276 * config/m32r/m32r.c: Include opts.h.
10277 (m32r_handle_option): Update to new hook interface.
10278 * config/m68k/m68k.c: Include opts.h.
10279 (m68k_handle_option): Update to new hook interface.
10280 * config/mep/mep.c: Include opts.h.
10281 (mep_handle_option): Update to new hook interface.
10282 * config/microblaze/microblaze.c: Include opts.h.
10283 (microblaze_handle_option): Update to new hook interface.
10284 * config/mips/mips.c: Include opts.h.
10285 (mips_handle_option): Update to new hook interface.
10286 * config/mn10300/mn10300.c: Include opts.h.
10287 (mn10300_handle_option): Update to new hook interface.
10288 * config/pa/pa.c: Include opts.h.
10289 (pa_handle_option): Update to new hook interface.
10290 * config/pdp11/pdp11.c: Include opts.h.
10291 (pdp11_handle_option): Update to new hook interface.
10292 * config/rs6000/rs6000.c: Include opts.h.
10293 (rs6000_handle_option): Update to new hook interface.
10294 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10295 * config/rx/rx.c: Include opts.h.
10296 (rx_handle_option): Update to new hook interface.
10297 * config/s390/s390.c: Include opts.h.
10298 (s390_handle_option): Update to new hook interface.
10299 * config/score/score.c: Include opts.h.
10300 (score_handle_option): Update to new hook interface.
10301 * config/sh/sh.c: Include opts.h.
10302 (sh_handle_option): Update to new hook interface.
10303 * config/sparc/sparc.c: Include opts.h.
10304 (sparc_handle_option): Update to new hook interface.
10305 * config/v850/v850.c: Include opts.h.
10306 (v850_handle_option): Update to new hook interface.
10308 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10310 * gcc.c (driver_unknown_option_callback): Only permit and save
10311 unknown -Wno- options.
10312 (driver_wrong_lang_callback): Save options directly instead of via
10313 driver_unknown_option_callback.
10315 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10317 * combine.c (simplify_set): Try harder to find the best CC mode when
10318 simplifying a nested COMPARE on the RHS.
10320 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10322 * config/alpha/gnu.h: Remove.
10323 * config/arc: Remove directory.
10324 * config/arm/netbsd.h: Remove.
10325 * config/arm/t-pe: Remove.
10326 * config/crx: Remove directory.
10327 * config/i386/netbsd.h: Remove.
10328 * config/m68hc11: Remove directory.
10329 * config/m68k/uclinux-oldabi.h: Remove.
10330 * config/mcore/mcore-pe.h: Remove.
10331 * config/mcore/t-mcore-pe: Remove.
10332 * config/netbsd-aout.h: Remove.
10333 * config/rs6000/gnu.h: Remove.
10334 * config/sh/sh-symbian.h: Remove.
10335 * config/sh/symbian-base.c: Remove.
10336 * config/sh/symbian-c.c: Remove.
10337 * config/sh/symbian-cxx.c: Remove.
10338 * config/sh/symbian-post.h: Remove.
10339 * config/sh/symbian-pre.h: Remove.
10340 * config/sh/t-symbian: Remove.
10341 * config/svr3.h: Remove.
10342 * config/vax/netbsd.h: Remove.
10343 * config.build: Don't handle i[34567]86-*-pe.
10344 * config.gcc: Remove handling of deprecations for most deprecated
10346 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10347 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10348 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10349 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10350 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10351 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10353 * config.host: Don't handle i[34567]86-*-pe.
10354 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10355 (ASM_SPEC32): Don't handle -mcall-gnu.
10356 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10358 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10359 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10360 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10361 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10362 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10363 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10364 conditional on SYMBIAN.
10365 * configure.ac: Don't handle powerpc*-*-gnu*.
10366 * configure: Regenerate.
10367 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10368 * doc/install-old.texi (m6811, m6812): Don't mention.
10369 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10370 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10371 (m68k-uclinuxoldabi): Don't mention.
10372 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10374 (-mcall-gnu): Remove.
10375 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10376 families): Remove constraint documentation.
10378 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10380 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10381 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10382 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10384 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10387 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10388 vector when peeking at the next token for vector, don't expand the
10391 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10393 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10394 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10395 * config/avr/avr.c (init_cumulative_args)
10396 (avr_function_arg_advance): Use it.
10397 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10399 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10400 (avr_function_ok_for_sibcall): ...this new function.
10401 (avr_lookup_function_attribute1): New static Function.
10402 (avr_naked_function_p, interrupt_function_p)
10403 (signal_function_p, avr_OS_task_function_p)
10404 (avr_OS_main_function_p): Use it.
10405 * config/avr/avr.md ("sibcall", "sibcall_value")
10406 ("sibcall_epilogue"): New expander.
10407 ("*call_insn", "*call_value_insn"): New insn.
10408 ("call_insn", "call_value_insn"): Remove
10409 ("call", "call_value", "epilogue"): Change expander to handle
10412 2011-03-21 Nick Clifton <nickc@redhat.com>
10414 * doc/invoke.texi (Overall Options): Move closing brace to end of
10416 (Optimization Options): Add missing @gol.
10417 (Directory Options): Likewise.
10418 (i386 and x86-64 Options): Likewise.
10419 (RS6000 and PowerPC Options): Likewise.
10420 (i386 and x86-64 Windows Options): Likewise.
10421 (V850 Options): Add text missing from descriptions.
10423 2011-03-22 Richard Henderson <rth@redhat.com>
10425 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10426 (avr_incoming_return_addr_rtx): New.
10427 (emit_push_byte): New.
10428 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10429 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10430 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10431 (emit_pop_byte): New.
10432 (expand_epilogue): Use it. Pop frame pointer by bytes.
10433 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10434 (INCOMING_RETURN_ADDR_RTX): New.
10435 (INCOMING_FRAME_SP_OFFSET): New.
10436 (ARG_POINTER_CFA_OFFSET): New.
10437 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10438 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10441 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10443 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10445 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10446 (FUNCTION_ARG_ADVANCE): Likewise.
10447 * tm.texi.in: Change references to them to hook references.
10448 * tm.texi: Regenerate.
10449 * targhooks.c (default_function_arg): Eliminate check for target
10451 (default_function_incoming_arg): Likewise.
10452 (default_function_arg_advance): Likewise.
10453 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10454 (function_arg_advance): Likewise.
10455 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10457 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10459 * tree.c (build_call_1): New function.
10460 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10462 2011-03-22 Richard Guenther <rguenther@suse.de>
10464 PR tree-optimization/48228
10465 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10466 for single-arg PHIs.
10468 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10470 PR rtl-optimization/48143
10471 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10472 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10473 sse2_cvtps2pd): Likewise.
10475 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10477 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10479 2011-03-22 Richard Guenther <rguenther@suse.de>
10481 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10482 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10483 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10484 and REALIGN_LOAD_EXPR.
10485 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10486 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10487 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10488 DOT_PROD_EXPR case ...
10489 (expand_expr_real_2): ... here.
10490 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10491 and REALIGN_LOAD_EXPR.
10492 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10493 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10494 (vect_create_epilog_for_reduction): Likewise.
10495 (vectorizable_reduction): Likewise.
10496 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10497 * tree-vect-stmts.c (vectorizable_load): Likewise.
10499 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10501 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10503 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10505 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10506 handling for PLTOFF/GOTOFF.
10508 2011-03-22 Nick Clifton <nickc@redhat.com>
10510 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10511 trailing backslash from the end of the macro definition.
10513 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10515 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10518 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10520 * expr.h (prepare_operand): Move to...
10521 * optabs.h (prepare_operand): ...here and change the insn code
10522 parameter from "int" to "enum insn_code".
10523 (insn_operand_matches): Declare.
10524 * expr.c (init_expr_target): Use insn_operand_matches.
10525 (compress_float_constant): Likewise.
10526 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10527 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10528 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10529 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10531 (gen_cond_trap): Likewise.
10532 (prepare_operand): Likewise. Change icode to an insn_code.
10533 (insn_operand_matches): New function.
10534 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10535 * reload1.c (gen_reload): Likewise.
10536 * targhooks.c (default_secondary_reload): Likewise.
10538 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10540 * config/alpha/alpha.md (unspec): New define_c_enum.
10543 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10546 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10547 between a call and its CALL_ARG_LOCATION note.
10549 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10551 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10553 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10557 * c-common.c (shorten_compare): If primopN is first sign-extended
10558 to opN and then zero-extended to result type, set primopN to opN.
10560 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10562 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10563 for barrier handlers.
10565 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10567 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10568 UNSPEC constants to be in the unspec enumeration, and redefine
10569 all UNSPECV constants to be in the unspecv enumeration, so that
10570 dumps print which unspec/unspec_volatile this is.
10571 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10572 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10573 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10574 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10575 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10577 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10578 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10579 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10580 * config/rs6000/sync.md (isync, lwsync): Ditto.
10582 2011-03-21 Richard Guenther <rguenther@suse.de>
10584 * params.def (lto-min-partition): Fix typo.
10586 2011-03-21 Richard Guenther <rguenther@suse.de>
10589 * c-decl.c (grokdeclarator): Drop to the main variant only
10590 for array types. Drop flag_gen_aux_info check.
10592 2011-03-21 Richard Guenther <rguenther@suse.de>
10594 PR translation/47911
10595 * params.def (lto-partitions): Fix typo.
10596 (lto-min-partition): Fix wording.
10598 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10600 * config/rs6000/t-freebsd: Remove duplication from file.
10602 2011-03-21 Richard Guenther <rguenther@suse.de>
10604 PR middle-end/47661
10605 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10607 2011-03-21 Richard Guenther <rguenther@suse.de>
10610 * params.def (lto-partitions): Require at least 1 partition.
10612 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10614 * gthr-solaris.h: Remove.
10615 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10616 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10617 (LIB_SPEC): Likewise.
10618 * config/sol2.opt (threads): Remove.
10619 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10620 (sparc*-*-solaris2*): Likewise.
10621 * configure.ac (enable_threads): Enable solaris support.
10622 * configure: Regenerate.
10623 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10624 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10627 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10629 * config.gcc: Obsolete *-*-solaris2.8*.
10630 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10632 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10635 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10636 reference. Solaris 8 perl works.
10638 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10641 * doc/install.texi (Prerequisites): Move jar etc. up.
10642 Explain support library version requirements.
10644 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10647 * doc/install.texi (Prerequisites): Move Perl to build
10648 requirements. Always necessary on Solaris 2 with Sun ld.
10650 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10652 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10654 (Specific, i?86-*-solaris2.[89]): Likewise.
10655 (Specific, i?86-*-solaris2.10): Likewise.
10656 (Specific, mips-sgi-irix6): Likewise.
10657 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10658 Update for binutils 2.21.
10660 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10662 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10663 Allow -fuse-linker-plugin for non-default plugin linker.
10664 * configure: Regenerate.
10666 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10669 * gengtype.c (files_rules): Added rule for cp/parser.h.
10671 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10674 * config/s390/s390.c (s390_delegitimize_address): Don't call
10675 lowpart_subreg if orig_x has BLKmode.
10677 2011-03-21 Kai Tietz <ktietz@redhat.com>
10680 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10681 * tree.h (attribute_spec): Add new member affects_type_identity.
10682 * attribs.c (empty_attribute_table): Adjust attribute_spec
10684 * config/alpha/alpha.c: Likewise.
10685 * config/arc/arc.c: Likewise.
10686 * config/arm/arm.c: Likewise.
10687 * config/avr/avr.c: Likewise.
10688 * config/bfin/bfin.c: Likewise.
10689 * config/crx/crx.c: Likewise.
10690 * config/darwin.h: Likewise.
10691 * config/h8300/h8300.c: Likewise.
10692 * config/i386/cygming.h: Likewise.
10693 * config/i386/i386.c: Likewise.
10694 * config/ia64/ia64.c: Likewise.
10695 * config/m32c/m32c.c: Likewise.
10696 * config/m32r/m32r.c: Likewise.
10697 * config/m68hc11/m68hc11.c: Likewise.
10698 * config/m68k/m68k.c: Likewise.
10699 * config/mcore/mcore.c: Likewise.
10700 * config/mep/mep.c: Likewise.
10701 * config/microblaze/microblaze.c: Likewise.
10702 * config/mips/mips.c: Likewise.
10703 * config/rs6000/rs6000.c: Likewise.
10704 * config/rx/rx.c: Likewise.
10705 * config/sh/sh.c: Likewise.
10706 * config/sol2.h: Likewise.
10707 * config/sparc/sparc.c: Likewise.
10708 * config/spu/spu.c: Likewise.
10709 * config/stormy16/stormy16.c: Likewise.
10710 * config/v850/v850.c: Likewise.
10712 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10714 * simplify-rtx.c (simplify_binary_operation_1): Handle
10715 (xor (and A B) C) case when B and C are both constants.
10717 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10719 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10721 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10724 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10726 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10728 PR rtl-optimization/48156
10729 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10730 assume df and df_lr are not NULL.
10732 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10735 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10736 between a call and its CALL_ARG_LOCATION note.
10738 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10741 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10742 between a call and its corresponding CALL_ARG_LOCATION note.
10744 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10746 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10747 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10748 * haifa-sched.c (setup_ref_regs): Ditto.
10749 * caller-save.c (add_used_regs_1): Ditto.
10750 * dse.c (look_for_hardregs): Ditto.
10751 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10752 * sched-rgn.c (check_live_1): Ditto.
10754 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10756 * c-decl.c (diagnose_mismatched_decls): Give an error for
10757 redefining a typedef with variably modified type.
10759 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10761 * c-decl.c (grokfield): Don't allow typedefs for structures or
10762 unions with no tag by default.
10763 * doc/extend.texi (Unnamed Fields): Update.
10765 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10767 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10768 Rewrite using indirect functions.
10769 (lwp_slwpcb): Ditto.
10770 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10771 (avx_vinsertf128<mode>): Ditto.
10773 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10775 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10778 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10780 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10781 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10783 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10785 PR rtl-optimization/48170
10786 * gcse.c (hoist_code): Remove bogus asserts.
10788 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10790 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10791 computation for prologue/epilogue.
10793 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10795 * Makefile.in (check-consistency): Remove.
10797 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10800 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10801 arange_table_in_use is 0, but either text_section_used or
10802 cold_text_section_used is true. Don't call it if
10803 !info_section_emitted.
10805 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10807 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10808 FUNCTION_VALUE_REGNO_P): Remove.
10809 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10811 * config/avr/avr.c (avr_ret_register): Make static inline.
10812 (avr_function_value_regno_p): New function.
10813 (avr_libcall_value): Make static. Add 'func' argument.
10814 (avr_function_value): Make static. Rename 'func' argument to
10815 'fn_decl_or_type', forward it to avr_libcall_value. Call
10816 avr_ret_register function instead of RET_REGISTER macro.
10817 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10819 2011-03-18 Jason Merrill <jason@redhat.com>
10822 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10824 2011-03-18 Richard Guenther <rguenther@suse.de>
10826 * doc/install.texi (--enable-gold): Remove.
10827 (--with-plugin-ld): Document.
10828 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10830 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10832 PR middle-end/47790
10833 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10834 again after expansion changes.
10836 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10838 * combine.c (try_combine): Do simplification only call of
10839 subst() on i2 even when i1 is present. Update comments.
10841 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10843 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10844 and UNSPEC_PCREL_SYMOFF.
10846 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10848 * config/s390/s390.md: Use define_c_enum for the unspec constant
10851 2011-03-18 Richard Henderson <rth@redhat.com>
10852 Jakub Jelinek <jakub@redhat.com>
10855 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10856 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10858 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10860 PR middle-end/47725
10861 * combine.c (cant_combine_insn_p): Don't check zero/sign
10862 extended hard registers.
10864 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10866 PR middle-end/47725
10867 * combine.c (cant_combine_insn_p): Check zero/sign extended
10870 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10872 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10873 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10874 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10875 Change return type to bool.
10876 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10878 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10881 * var-tracking.c (prepare_call_arguments): If CALL target
10882 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10883 pc instead of looking it up using cselib_lookup and use
10884 Pmode for it if x has VOIDmode.
10885 * dwarf2out.c (gen_subprogram_die): If also both first and
10886 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10889 * function.c (assign_parms): For data.passed_pointer parms
10890 use MEM of data.entry_parm instead of data.entry_parm itself
10891 as DECL_INCOMING_RTL.
10892 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10893 also when passed and declared mode is the same, DECL_RTL
10894 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10897 2011-03-16 Jeff Law <law@redhat.com>
10899 PR rtl-optimization/37273
10900 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10901 handle them like argument loads from stack slots. Do not double
10902 count memory for memory constants and argument loads from stack slots.
10904 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10907 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10909 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10912 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10914 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10917 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10919 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10920 Clear call_arg_locations and call_arg_loc_last always.
10922 PR middle-end/48152
10923 * var-tracking.c (prepare_call_arguments): If argument needs to be
10924 passed by reference, adjust argtype and mode.
10926 2011-03-17 Richard Guenther <rguenther@suse.de>
10928 PR middle-end/48134
10929 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10930 a value make sure to fold the statement.
10932 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10935 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10936 return condition with !cfun->calls_alloca.
10938 2011-03-17 Richard Guenther <rguenther@suse.de>
10941 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10942 origin for decls in other ltrans units.
10943 (input_varpool_node): Likewise.
10945 2011-03-17 Richard Guenther <rguenther@suse.de>
10947 PR middle-end/48165
10948 * tree-object-size.c (compute_object_offset): Properly return
10949 the offset operand of MEM_REFs as sizetype.
10951 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10953 PR rtl-optimization/48141
10954 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10955 * dse.c: Include params.h.
10956 (active_local_stores_len): New variable.
10957 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10959 (record_store, check_mem_read_rtx): Decrease it when removing
10961 (scan_insn): Likewise. Increase it when adding to chain, if it
10962 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10963 set active_local_stores to NULL before the addition.
10964 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10966 PR rtl-optimization/48141
10967 * dse.c (record_store): If no positions are needed in an insn
10968 that cannot be deleted, at least unchain it from active_local_stores.
10970 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10973 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10974 (lookup_type_die_strip_naming_typedef): ... here.
10975 (get_context_die): Use it.
10976 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10977 the anonymous struct named by the naming typedef.
10979 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10982 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10983 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10985 2011-03-16 Jeff Law <law@redhat.com>
10987 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10988 check for operands of conditional. Allow type to be a pointer.
10990 2011-03-16 Richard Guenther <rguenther@suse.de>
10992 PR tree-optimization/48149
10993 * fold-const.c (fold_binary_loc): Fold
10994 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10996 2011-03-16 Richard Guenther <rguenther@suse.de>
10998 PR tree-optimization/26134
10999 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11000 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11001 (non_rewritable_mem_ref_base): Handle complex type component
11002 accesses, constrain offsets for vector and complex extracts
11005 2011-03-16 Richard Guenther <rguenther@suse.de>
11007 PR tree-optimization/48146
11008 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11009 operands avoiding the need for renaming.
11011 2011-03-16 Richard Guenther <rguenther@suse.de>
11013 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11014 constant folding. Move MEM_REF canonicalization first.
11015 Rely on fold_const_aggregate_ref for initializer folding.
11016 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11018 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11020 PR middle-end/48136
11021 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11022 arg0/arg1 or their arguments are always fold converted to matching
11025 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11028 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11031 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11032 Handle in-tree gold.
11033 (ld_vers): Extract binutils version for gold.
11034 (gcc_cv_ld_hidden): Handle gold here.
11035 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11036 * configure: Regenerate.
11037 * config.in: Regenerate.
11038 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11039 -fuse-linker-plugin otherwise.
11040 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11041 (LINK_COMMAND_SPEC): Use it.
11042 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11044 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11046 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11047 * calls.c: Remove debug.h include.
11048 (emit_call_1): Don't call virtual_call_token debug hook.
11049 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11050 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11051 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11052 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11053 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11054 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11055 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11056 dwarf2out_virtual_call): Remove.
11057 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11058 copy_call_info and virtual_call hooks.
11059 (dwarf2out_init): Don't initialize vcall_insn_table,
11060 debug_dcall_section and debug_vcall_section.
11061 (prune_unused_types): Don't mark nodes from dcall_table.
11062 (dwarf2out_finish): Don't output dcall or vcall tables.
11063 * final.c (final_scan_insn): Don't call direct_call or
11064 virtual_call debug hooks.
11065 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11066 virtual_call_token, copy_call_info and virtual_call hooks.
11067 (debug_nothing_uid): Remove prototype.
11068 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11069 copy_call_info and virtual_call hooks.
11070 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11071 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11072 * debug.c (do_nothing_debug_hooks): Likewise.
11073 (debug_nothing_uid): Remove.
11074 * doc/invoke.texi (-fenable-icf-debug): Remove.
11075 * common.opt (-fenable-icf-debug): Likewise.
11077 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11078 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11079 call's MEM. Handle functions returning aggregate through a hidden
11080 first pointer. For virtual calls add clobbered pc to call arguments
11082 * dwarf2out.c (gen_subprogram_die): Emit
11083 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11087 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11088 * rtl.h (ENTRY_VALUE_EXP): Define.
11089 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11090 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11091 * print-rtl.c (print_rtx): Likewise.
11092 * gengtype.c (adjust_field_rtx_def): Likewise.
11093 * var-tracking.c (vt_add_function_parameter): Adjust
11094 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11095 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11096 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11097 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11098 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11100 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11101 Call var_location debug hook even on CALL_INSNs.
11102 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11103 * rtl.def (ENTRY_VALUE): New.
11104 * dwarf2out.c: Include cfglayout.h.
11105 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11106 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11107 (struct call_arg_loc_node): New type.
11108 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11109 tail_call_site_count): New variables.
11110 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11111 DW_TAG_GNU_call_site_parameter.
11112 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11113 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11114 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11115 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11116 and DW_AT_GNU_all_source_call_sites.
11117 (mem_loc_descriptor): Handle ENTRY_VALUE.
11118 (add_src_coords_attributes): Don't add enything if
11119 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11120 (dwarf2out_abstract_function): Save and clear call_arg_location,
11121 call_site_count and tail_call_site_count around dwarf2out_decl call.
11122 (gen_call_site_die): New function.
11123 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11124 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11125 (dwarf2out_function_decl): Clear call_arg_locations,
11126 call_arg_loc_last, set call_site_count and tail_call_site_count
11127 to -1 and free block_map.
11128 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11129 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11130 followed by any real instructions.
11131 (dwarf2out_begin_function): Set call_site_count and
11132 tail_call_site_count to 0.
11133 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11134 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11135 attempt to force a DIE for it and worst case remove the attribute.
11136 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11137 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11139 * var-tracking.c: Include tm_p.h.
11140 (vt_stack_adjustments): For calls call note_register_arguments.
11141 (argument_reg_set): New variable.
11142 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11143 ensure the VALUE is resolved.
11144 (call_arguments): New variable.
11145 (prepare_call_arguments): New function.
11146 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11147 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11148 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11149 always use the best expression.
11150 (vt_expand_loc): Add ignore_cur_loc argument.
11151 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11152 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11153 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11154 note for all calls.
11155 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11156 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11157 argument. Don't call cselib_preserve_only_values and
11158 cselib_reset_table.
11159 (note_register_arguments): New function.
11160 (vt_initialize): Compute argument_reg_set. Call
11161 vt_add_function_parameters before processing basic blocks instead of
11162 afterwards. For calls call prepare_call_arguments before calling
11163 cselib_process_insn.
11164 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11165 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11166 (var-tracking.o): Depend on $(TM_P_H).
11167 * cfglayout.h (insn_scope): New prototype.
11168 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11169 * cfglayout.c (insn_scope): No longer static.
11170 * insn-notes.def (CALL_ARG_LOCATION): New.
11171 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11172 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11173 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11174 nothing for DECL_EXTERNAL BLOCK_VARS.
11176 2011-03-16 Alan Modra <amodra@gmail.com>
11179 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11180 create invalid offset address for vsx splat insn.
11181 * config/rs6000/predicates.md (splat_input_operand): New.
11182 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11184 2011-03-15 Xinliang David Li <davidxl@google.com>
11187 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11188 (normalize_preds): New function.
11189 (is_use_properly_guarded): Normalize def predicates.
11191 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11194 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11195 in the output template.
11197 2011-03-15 Richard Guenther <rguenther@suse.de>
11199 PR middle-end/47650
11200 * tree-pretty-print.c (dump_function_declaration): Properly
11201 dump unprototyped and varargs function types.
11203 2011-03-15 Richard Guenther <rguenther@suse.de>
11205 PR tree-optimization/13954
11206 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11209 2011-03-15 Richard Guenther <rguenther@suse.de>
11211 PR tree-optimization/48037
11212 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11213 selects into BIT_FIELD_REFs.
11214 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11217 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11219 PR tree-optimization/48129
11220 * builtins.c (fold_builtin_snprintf): Convert to type of
11221 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11222 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11224 2011-03-15 Richard Guenther <rguenther@suse.de>
11226 PR tree-optimization/41490
11227 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11228 value but with VUSE.
11229 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11231 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11232 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11233 * tree-tailcall.c (find_tail_calls): Ignore returns.
11235 2011-03-15 Richard Guenther <rguenther@suse.de>
11237 PR middle-end/48031
11238 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11239 or variable-indexed array accesses when in gimple form.
11241 2011-03-15 Richard Guenther <rguenther@suse.de>
11243 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11245 2011-03-15 Alan Modra <amodra@gmail.com>
11248 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11249 presume symbol_refs without a symbol_ref_decl are suitably
11250 aligned, nor other trees we may see here. Handle anchor symbols.
11251 (legitimate_constant_pool_address_p): Comment. Add mode param.
11252 Check cmodel=medium addresses. Adjust all calls.
11253 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11254 creating cmodel=medium optimized access to locals.
11255 * config/rs6000/constraints.md (R): Pass QImode to
11256 legitimate_constant_pool_address_p.
11257 * config/rs6000/predicates.md (input_operand): Pass mode to
11258 legitimate_constant_pool_address_p.
11259 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11262 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11265 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11266 64-bit constants being loaded into registers other than GPRs such
11267 as loading 0 into a VSX register.
11269 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11271 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11273 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11275 PR middle-end/47917
11276 * builtins.c (fold_builtin_snprintf): New function.
11277 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11278 (fold_builtin_4): Likewise.
11280 PR middle-end/38878
11281 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11282 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11283 and C - X == X also strip nops from +/-/p+ operand.
11284 When optimizing -X == C, fold C to arg0's type.
11287 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11288 emit it as add_AT_int instead of add_AT_unsigned.
11290 2011-03-14 Tom Tromey <tromey@redhat.com>
11292 * unwind-dw2.c: Include sys/sdt.h if it exists.
11293 (_Unwind_DebugHook): Use STAP_PROBE2.
11294 * config.in, configure: Rebuild.
11295 * configure.ac: Check for sys/sdt.h.
11297 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11299 * config/i386/i386.md (ROUND_FLOOR): New constant.
11300 (ROUND_CEIL): Ditto.
11301 (ROUND_TRUNC): Ditto.
11302 (ROUND_MXCSR): Ditto.
11303 (ROUND_NO_EXC): Ditto.
11304 (rint<mode>2): Use new defines instead of numerical constants.
11305 (floor<mode>2): Ditto.
11306 (ceil<mode>2): Ditto.
11307 (btrunc<mode>2): Ditto.
11308 * config/i386/i386-builtin-types.def: Define ROUND function type
11310 * config/i386/i386.c (enum ix86_builtins): Add
11311 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11312 (struct builtin_description): Add
11313 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11314 (ix86_expand_sse_round): New static function.
11315 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11317 (ix86_builtin_vectorized_function): Handle
11318 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11320 2011-03-14 Tom Tromey <tromey@redhat.com>
11322 * c-parser.c (c_parser_asm_string_literal): Clear
11323 warn_overlength_strings.
11325 2011-03-14 Tom Tromey <tromey@redhat.com>
11327 * c-parser.c (disable_extension_diagnostics): Save
11328 warn_overlength_strings.
11329 (restore_extension_diagnostics): Restore warn_overlength_strings.
11331 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11333 * BASE-VER: Change to 4.7.0.
11335 2011-03-14 Richard Guenther <rguenther@suse.de>
11337 PR middle-end/48098
11338 * tree.c (build_vector_from_val): Adjust assert to requirements
11341 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11344 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11346 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11348 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11349 terms of target_flags_explicit. Adjust copyright year.
11351 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11352 * config/rs6000/t-freebsd: New file. Add override for
11355 2011-03-13 Chris Demetriou <cgd@google.com>
11357 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11358 (-fno-diagnostics-show-option): this, to reflect current default.
11359 (-Werror=): Update text about -fno-diagnostics-show-option.
11361 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11364 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11365 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11366 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11367 mode is not V2DImode or V2DFmode.
11368 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11369 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11370 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11372 (movdi_internal64): Likewise.
11374 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11376 PR tree-optimization/47127
11377 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11379 (set_cloog_options): Same.
11380 (scop_to_clast): Same.
11381 (print_clast_stmt): Do not call cloog_state_malloc and
11383 (print_generated_program): Same.
11385 * graphite-clast-to-gimple.h (cloog_state): Declared.
11386 (scop_to_clast): Adjust declaration.
11387 * graphite.c (cloog_state): Defined here.
11388 (graphite_initialize): Call cloog_state_malloc.
11389 (graphite_finalize): Call cloog_state_free.
11391 2011-03-11 Jason Merrill <jason@redhat.com>
11393 * attribs.c (lookup_attribute_spec): Take const_tree.
11396 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11398 * config/sparc/sparc.c (sparc_option_override): Use
11399 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11401 2011-03-11 Richard Guenther <rguenther@suse.de>
11403 PR tree-optimization/48067
11404 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11405 multiplication result will be only used once on the target
11408 2011-03-11 Richard Guenther <rguenther@suse.de>
11410 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11412 2011-03-11 Richard Guenther <rguenther@suse.de>
11415 * tree.c (find_decls_types_r): Do not walk types only reachable
11416 from IDENTIFIER_NODEs.
11418 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11420 PR middle-end/48044
11421 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11422 all vnode->force_output nodes as needed.
11424 2011-03-11 Jason Merrill <jason@redhat.com>
11427 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11428 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11430 2011-03-11 Martin Jambor <mjambor@suse.cz>
11432 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11435 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11437 PR tree-optimization/48063
11438 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11439 inline functions called once if !tree_can_inline_p (node->callers).
11441 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11443 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11445 * config/score/score3.c: Delete.
11446 * config/score/score3.h: Delete.
11447 * config/score/mul-div.S: Delete.
11448 * config/score/sfp-machine.h: Add new file.
11449 * config/score/constraints.md: Add new file.
11450 * config/score/t-score-softfp: Add new file.
11451 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11452 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11453 (score7_extra_constraint): Delete.
11454 (score7_option_override): Remove unused code.
11455 * config/score/score.c: Remove score3 and score5 define and code.
11456 * config/score/score.h: Remove score3 and score5 define and code.
11457 * config/score/score.md: Remove score3 template and unusual insn.
11458 * config/score/score.opt: Remove score3 and score5 options.
11460 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11462 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11463 when _HPUX_SOURCE is defined.
11464 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11466 2011-03-10 Jason Merrill <jason@redhat.com>
11469 * stor-layout.c (layout_type): Don't set structural equality
11470 on arrays of incomplete type.
11471 * tree.c (type_hash_eq): Handle comparing them properly.
11473 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11476 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11477 result mode matches original rtl mode.
11479 2011-03-10 Nick Clifton <nickc@redhat.com>
11481 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11482 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11484 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11486 PR rtl-optimization/47866
11487 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11488 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11489 if target wasn't scalar.
11490 * function.c (assign_stack_temp_for_type): Assert that neither
11491 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11492 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11494 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11496 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11498 * config/s390/s390-protos.h (s390_label_align): New prototype.
11499 * config/s390/s390.c (s390_label_align): New function.
11500 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11502 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11505 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11506 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11507 (output_vec_const_move): Ditto.
11509 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11511 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11512 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11513 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11514 Change 'rclass' argument and result type to reg_class_t.
11515 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11517 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11519 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11520 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11521 (TARGET_MEMORY_MOVE_COST): Define.
11522 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11524 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11527 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11530 PR tree-optimization/48022
11531 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11534 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11537 * var-tracking.c (find_use_val): Return NULL for
11538 cui->sets && cui->store_p BLKmode MEMs.
11540 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11542 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11544 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11545 xstormy16_print_operand_address): Remove.
11546 * config/stormy16/stormy16.c (xstormy16_print_operand,
11547 xstormy16_print_operand_address): Make static.
11548 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11550 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11553 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11554 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11557 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11560 * cfgloopmanip.c (fix_bb_placements): Return immediately
11561 if FROM is BASE_LOOP's header.
11563 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11565 * gimplify.c (gimplify_function_tree): Fix building calls
11566 to __builtin_return_address.
11568 2011-03-07 Alan Modra <amodra@gmail.com>
11570 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11571 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11572 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11573 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11575 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11576 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11577 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11578 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11579 * config/rs6000/rs6000.c
11580 (rs6000_elf_end_indicate_exec_stack): Rename to..
11581 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11582 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11583 (rs6000_file_start): ..here.
11584 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11585 file scope variables.
11586 (call_ABI_of_interest): New function.
11587 (init_cumulative_args): Set above vars when function return value
11588 is a float, vector, or small struct.
11589 (rs6000_function_arg_advance_1): Likewise for function args.
11590 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11591 references float args.
11593 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11595 * doc/cfg.texi: Remove "See" before @ref.
11596 * doc/invoke.texi: Likewise.
11598 2011-03-05 Jason Merrill <jason@redhat.com>
11600 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11602 2011-03-05 Anthony Green <green@moxielogic.com>
11604 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11606 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11608 PR rtl-optimization/47899
11609 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11610 to flow_loop_nested_p when moving the loop upward.
11612 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11615 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11617 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11619 PR tree-optimization/47967
11620 * ipa-cp.c (build_const_val): Return NULL instead of creating
11621 VIEW_CONVERT_EXPR for mismatching sizes.
11622 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11623 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11624 give up on versioning.
11626 2011-03-05 Alan Modra <amodra@gmail.com>
11629 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11630 full cmodel medium/large lo_sum + high addresses.
11632 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11634 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11635 pool references in UNSPEC_LTREL_OFFSET.
11637 2011-03-04 Jan Hubicka <jh@suse.cz>
11640 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11641 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11642 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11644 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11645 cgraph_add_thunk): Add node pointers.
11646 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11647 associated to right node.
11648 (input_node): Update use of cgraph_same_body_alias
11649 and cgraph_add_thunk.
11651 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11653 * config/i386/i386.opt (mprefer-avx128): New flag.
11654 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11655 modes when the flag -mprefer-avx128 is on.
11657 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11659 * dwarf2out.c (compare_loc_operands): Fix address handling.
11661 2011-03-04 Alan Modra <amodra@gmail.com>
11663 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11665 2011-03-04 Richard Guenther <rguenther@suse.de>
11667 PR middle-end/47968
11668 * expmed.c (extract_bit_field_1): Prefer vector modes that
11669 vec_extract patterns can handle.
11671 2011-03-04 Richard Guenther <rguenther@suse.de>
11673 PR middle-end/47975
11674 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11676 2011-03-04 Richard Henderson <rth@redhat.com>
11678 * explow.c (emit_stack_save): Remove 'after' parameter.
11679 (emit_stack_restore): Likewise.
11680 * expr.h: Update to match.
11681 * builtins.c, calls.c, stmt.c: Likewise.
11682 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11683 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11684 * function.c (expand_function_end): Insert the emit_stack_save
11685 sequence before parm_birth_insn instead of after.
11687 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11689 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11690 (ssse3_pmaddubsw128): Ditto.
11691 (ssse3_pmaddubsw): Ditto.
11693 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11695 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11697 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11700 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11701 on TYPE_SIZE_UNIT if it is a DECL.
11704 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11705 first operand is not is_gimple_mem_ref_addr, try to fold it.
11706 If the operand still isn't is_gimple_mem_ref_addr, clear
11709 2011-03-03 Richard Guenther <rguenther@suse.de>
11711 PR middle-end/47283
11712 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11714 (refs_may_alias_p_1): For release branches return true if
11715 we are confused by our input.
11717 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11719 * config/s390/s390.c (s390_function_value): Rename to ...
11720 (s390_function_and_libcall_value): ... this.
11721 (s390_function_value): New function.
11722 (s390_libcall_value): New function.
11723 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11724 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11725 target macro definitions.
11726 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11728 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11730 * config/i386/freebsd64.h (CC1_SPEC): Define.
11731 * config/i386/linux64.h (CC1_SPEC): Define.
11732 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11734 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11736 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11738 * config/stormy16/stormy16.c: Include reload.h.
11739 (xstormy16_memory_move_cost): New function.
11740 (TARGET_MEMORY_MOVE_COST): Define.
11742 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11744 PR rtl-optimization/47925
11745 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11746 with side effects. Remove the more-specific check for volatile asms.
11748 2011-03-02 Alan Modra <amodra@gmail.com>
11751 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11752 toc relative addresses for valid offsets.
11754 2011-03-01 Richard Guenther <rguenther@suse.de>
11756 PR tree-optimization/47890
11757 * tree-vect-loop.c (get_initial_def_for_induction): Set
11758 related stmt properly.
11760 2011-03-01 Richard Guenther <rguenther@suse.de>
11763 * lto-streamer.c (lto_record_common_node): Also register
11764 the canonical type.
11766 2011-03-01 Richard Guenther <rguenther@suse.de>
11769 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11770 Do not stream DECL_ABSTRACT_ORIGIN.
11771 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11772 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11773 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11774 Do not stream DECL_ABSTRACT_ORIGIN.
11775 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11776 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11778 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11780 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11781 FUNCTION_VALUE_REGNO_P): Remove.
11782 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11783 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11784 Add 'outgoing' argument.
11785 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11787 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11788 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11790 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11793 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11794 (lookup_filename): Likewise.
11795 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11797 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11798 Jakub Jelinek <jakub@redhat.com>
11800 PR middle-end/47893
11801 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11802 (assign_stack_local_1): Change last argument type to int.
11803 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11804 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11805 don't record padding space into frame_space_list nor use those areas.
11806 (assign_stack_local): Adjust caller.
11807 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11808 of assign_stack_local, pass 0 as last argument.
11809 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11812 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11815 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11816 Use target address_mode and pointer_mode hooks instead of hardcoded
11817 Pmode and ptr_mode. Handle some simple cases of extending if
11818 POINTERS_EXTEND_UNSIGNED < 0.
11819 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11820 Call convert_debug_memory_address.
11821 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11822 convert_debug_memory_address.
11824 PR middle-end/46790
11825 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11826 * configure: Regenerated.
11827 * config.in: Regenerated.
11828 * varasm.c (default_function_section): Return NULL
11829 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11831 2011-02-28 Martin Jambor <mjambor@suse.cz>
11833 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11834 the description to match the printed values.
11836 2011-02-28 Richard Guenther <rguenther@suse.de>
11838 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11839 of the copied scope tree.
11841 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11843 * doc/extend.texi (Function Attributes): Avoid deeply (and
11844 wrongly) nested tables.
11846 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11848 PR middle-end/47903
11849 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11850 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11851 r isn't op0 nor op1.
11853 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11855 * config/avr/avr.md: Remove magic comment for emacs.
11857 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11860 * config/avr/avr.c (avr_option_override): Use error on bad options.
11861 (avr_help): New function.
11862 (TARGET_HELP): Define.
11864 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11867 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11868 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11870 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11872 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11873 (ARM Options): Ditto.
11874 (i386 and x86-64 Options): Ditto.
11875 (RX Options): Ditto.
11876 (SPARC Options): Ditto.
11878 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11880 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11881 FreeBSD 6 and later. Generally use cpu generic.
11883 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11885 * doc/cpp.texi: Update copyright years.
11887 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11890 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11892 2011-02-25 Jon Beniston <jon@beniston.com>
11895 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11896 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11897 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11898 (lm32_block_move_inline): Add type cast to remove warning.
11899 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11900 (gen_int_relational): Move declarations to start of function.
11902 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11904 PR tree-optimization/45470
11905 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11906 can throw internally only.
11907 * tree-vect-stmts.c (vectorizable_call): Likewise.
11909 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11911 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11912 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11913 * config/stormy16/stormy16-protos.h
11914 (xstormy16_preferred_reload_class): Remove.
11915 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11916 static. Change 'rclass' argument and return type to reg_class_t.
11917 (TARGET_PREFERRED_RELOAD_CLASS,
11918 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11920 2011-02-24 Richard Guenther <rguenther@suse.de>
11922 * lto-streamer-in.c (input_bb): Do not find referenced vars
11923 in debug statements.
11925 2011-02-23 Jason Merrill <jason@redhat.com>
11927 * common.opt (fabi-version): Document v5 and v6.
11929 2011-02-23 Richard Guenther <rguenther@suse.de>
11931 PR tree-optimization/47849
11932 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11934 2011-02-23 Jie Zhang <jie@codesourcery.com>
11936 * opts-common.c (decode_cmdline_option): Print empty string
11937 argument as "" in decoded->orig_option_with_args_text.
11938 * gcc.c (execute): Print empty string argument as ""
11939 in the verbose output.
11940 (do_spec_1): Keep empty string argument.
11942 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11944 * config.gcc: Declare score-* and crx-* obsolete.
11946 2011-02-23 Jie Zhang <jie@codesourcery.com>
11948 PR rtl-optimization/47763
11949 * web.c (web_main): Ignore naked clobber when replacing register.
11951 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11953 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11956 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11959 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11961 2011-02-22 Mike Stump <mikestump@comcast.net>
11963 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11965 * configure: Regenerate.
11967 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11969 PR rtl-optimization/46002
11970 * ira-color.c (update_copy_costs): Change class intersection
11971 test to reg_class_contents[] test of 'hard_regno'.
11973 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11975 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11976 than Driver option.
11977 * config/hpux11.opt (mt): Likewise.
11978 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11979 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11980 * config/vax/elf.opt (mno-asm-pic): Likewise.
11981 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11983 2011-02-21 Mike Stump <mikestump@comcast.net>
11986 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11987 tree so we can get save the type.
11988 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11989 for CFString instead of trying to use past the end of the builtins.
11990 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11991 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11992 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11993 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11994 Rename to darwin_builtin_cfstring.
11995 (darwin_init_cfstring_builtins): Return the built type.
11997 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12000 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12001 (_mm256_insert_epi64): Use _mm_insert_epi64.
12003 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12005 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12006 * config/stormy16/stormy16-protos.h
12007 (xstormy16_mode_dependent_address_p): Remove.
12008 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12009 Make static. Change return type to bool. Change argument type to
12010 const_rtx. Remove dead code.
12011 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12013 2011-02-21 Richard Guenther <rguenther@suse.de>
12016 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12017 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12018 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12020 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12021 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12023 2011-02-20 Richard Guenther <rguenther@suse.de>
12026 * tree.c (free_lang_data_in_decl): Clean builtins from
12027 the TU decl BLOCK_VARS.
12029 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12033 * haifa-sched.c (fix_tick_ready): Skip tick computation
12036 2011-02-19 Richard Guenther <rguenther@suse.de>
12039 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12040 Remove lazy BLOCK_VARS streaming.
12041 (lto_input_ts_block_tree_pointers): Likewise.
12042 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12044 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12046 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12048 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12050 * config/i386/biarch32.h, config/i386/mach.h,
12051 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12053 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12056 * config/i386/i386.md (peephole2 for shift and plus): Use
12057 operands[1] original mode in the first insn.
12059 2011-02-18 Mike Stump <mikestump@comcast.net>
12061 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12063 2011-02-18 Jan Hubicka <jh@suse.cz>
12065 PR middle-end/47788
12066 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12067 to zero when the function is not inlinable at all.
12069 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12071 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12072 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12073 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12074 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12075 * config/pa/t-pa64: Likewise.
12076 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12078 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12081 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12083 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12086 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12088 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12090 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12091 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12092 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12093 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12094 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12095 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12096 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12097 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12098 m32r_legitimate_address_p): New functions.
12099 * config/m32r/constraints.md (constraint "S"): Don't use
12100 STORE_PREINC_PREDEC_P.
12101 (constraint "U"): Don't use LOAD_POSTINC_P.
12103 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12105 PR rtl-optimization/46178
12106 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12107 compute ira_hard_regno_cover_class[].
12109 2011-02-18 Richard Guenther <rguenther@suse.de>
12112 * lto-streamer.h (lto_global_var_decls): Declare.
12113 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12114 statics for global var processing.
12116 2011-02-18 Richard Guenther <rguenther@suse.de>
12118 PR tree-optimization/47737
12119 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12120 edge dominance check.
12122 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12125 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12126 avoid invalid rtx sharing.
12128 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12130 * doc/cpp.texi (Obsolete Features): Add background on the
12131 origin of assertions.
12133 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12135 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12137 * config/darwin.c (output_objc_section_asm_op): Added support for
12139 (is_objc_metadata): New.
12140 (darwin_objc2_section): New.
12141 (darwin_objc1_section): New.
12142 (machopic_select_section): Added support for ABI v1 and v2.
12143 (darwin_emit_objc_zeroed): New.
12144 (darwin_output_aligned_bss): Detect objc metadata and treat it
12146 (darwin_asm_output_aligned_decl_common): Same.
12147 (darwin_asm_output_aligned_decl_local): Same.
12148 * config/darwin-sections.def: Updated for ABI v1 and v2.
12149 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12150 compiling Objective-C code for the NeXT runtime, default to using
12151 ABI version 0 for 32-bit, and version 2 for 64-bit.
12153 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12155 * common.opt (optimize_fast): New Variable.
12156 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12157 instead of local variable ofast.
12159 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12161 * doc/invoke.texi (fobjc-abi-version): Documented.
12162 (fobjc-nilcheck): Documented.
12163 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12166 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12169 * common.opt (export-dynamic): New Driver option.
12170 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12172 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12174 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12176 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12177 Jan Hubicka <jh@suse.cz>
12181 * cfgexpand.c (account_used_vars_for_block): Remove.
12182 (estimated_stack_frame_size): Use referenced vars.
12183 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12184 that were referenced in the original function. Test src_fn
12185 rather than cfun. Drop redundant get_var_ann.
12186 (setup_one_parameter): Drop redundant get_var_ann.
12187 (declare_return_variable): Likewise.
12188 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12189 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12190 * ipa-inline.c (compute_inline_parameters): Do not compute
12191 disregard_inline_limits here.
12192 (compute_inlinable_for_current, pass_inlinable): New.
12193 (pass_inline_parameters): Require PROP_referenced_vars.
12194 * cgraphunit.c (cgraph_process_new_functions): Don't run
12195 compute_inline_parameters explicitly unless function is in SSA form.
12196 (cgraph_analyze_function): Set .disregard_inline_limits.
12197 * tree-sra.c (convert_callers): Compute inliner parameters
12198 only for functions already in SSA form.
12200 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12202 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12203 -mlittle-endian-data.
12205 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12207 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12208 -mno-fpu, not -fpu and -no-fpu.
12209 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12210 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12212 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12215 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12216 input reload with PLUS RTX.
12218 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12220 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12221 of InverseVar(MDMX).
12223 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12225 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12228 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12230 * config/mn10300/mn10300.opt (mno-crt0): New.
12232 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12234 * config/m68k/uclinux.opt (static-libc): New Driver option.
12236 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12238 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12240 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12242 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12243 %{muser-extend-enabled}.
12245 2011-02-16 Richard Guenther <rguenther@suse.de>
12247 PR tree-optimization/47738
12248 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12249 the TODO from tree_predictive_commoning.
12251 2011-02-15 Jeff Law <law@redhat.com>
12254 2011-01-25 Jeff Law <law@redhat.com>
12256 PR rtl-optimization/37273
12257 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12258 handle them like argument loads from stack slots. Do not double
12259 count memory for memory constants and argument loads from stack slots.
12261 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12263 PR middle-end/47725
12264 * combine.c (cant_combine_insn_p): Revert the last change.
12266 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12269 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12270 mode for vector constants. Remove code that checks for TImode.
12272 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12276 * cgraph.h (compute_inline_parameters): Return void.
12277 * ipa-inline.c (compute_inline_parameters): Adjust.
12279 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12283 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12285 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12286 * ipa-inline.c (compute_inline_parameters): Adjust.
12288 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12292 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12293 Adjust all users. Pass FN to...
12294 * tree-flow-inline.h (first_referenced_var): ... this. Add
12296 * ipa-struct-reorg.c: Adjust.
12297 * tree-dfa.c: Adjust.
12298 * tree-into-ssa.c: Adjust.
12299 * tree-sra.c: Adjust.
12300 * tree-ssa-alias.c: Adjust.
12301 * tree-ssa-live.c: Adjust.
12302 * tree-ssa.c: Adjust.
12303 * tree-ssanames.c: Adjust.
12304 * tree-tailcall.c: Adjust.
12306 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12310 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12311 Adjust all callers.
12312 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12313 * tree-flow-inline.h: Adjust.
12314 * gimple-pretty-print.c: Adjust.
12315 * tree-into-ssa.c: Adjust.
12316 * tree-ssa.c: Adjust.
12317 * cfgexpand.c: Adjust.
12319 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12321 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12322 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12323 (EXTRA_CONSTRAINT): Delete.
12324 * config/iq2000/constraints.md: New file.
12325 * config/iq2000/iq2000.md: Include it.
12326 (define_insn ""): Delete.
12327 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12328 unsupported constraint letters from patterns.
12329 (call_value, call_value_internal1): Likewise.
12330 (call_value_multiple_internal1): Likewise.
12332 2011-02-15 Nick Clifton <nickc@redhat.com>
12334 * config/mn10300/mn10300.c: Include tm-constrs.h.
12335 (struct liw_data): New data structure describing an LIW candidate
12337 (extract_bundle): Use struct liw_data. Allow small integer
12338 operands for some instructions.
12339 (check_liw_constraints): Use struct liw_data. Remove swapped
12340 parameter. Add comments describing the checks. Fix bug when
12341 assigning the source of liw1 to the source of liw2.
12342 (liw_candidate): Delete. Code moved into extract_bundle.
12343 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12345 * config/mn10300/predicates.md (liw_operand): New predicate.
12346 Allows registers and small integer constants.
12347 * config/mn10300/constraints.md (O): New constraint. Accetps
12348 integers in the range -8 to +7 inclusive.
12349 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12350 for moving a small integer into a register. Give this alternative
12352 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12353 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12354 using the J,K,L and M constraints,
12355 (liw): Remove SI mode on second operands to allow for HI and QI
12357 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12360 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12362 PR middle-end/47725
12363 * combine.c (cant_combine_insn_p): Check zero/sign extended
12366 2011-02-15 Richard Guenther <rguenther@suse.de>
12368 PR tree-optimization/47743
12369 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12370 for a non-type-compatible VN lookup bail out.
12372 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12374 * config/fr30/constraints.md: New file.
12375 * config/fr30/fr30.md: Include it.
12376 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12377 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12378 (EXTRA_CONSTRAINT): Delete.
12380 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12382 * config/frv/constraints.md: New file.
12383 * config/frv/predicates.md: Include it.
12384 * config/frv/frv.c (reg_class_from_letter): Delete.
12385 (frv_option_override): Don't initialize it.
12386 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12387 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12388 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12389 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12390 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12391 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12392 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12393 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12394 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12395 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12396 (REG_CLASS_FROM_CONSTRAINT): Delete.
12398 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12400 PR middle-end/47581
12401 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12402 if frame size is 0 in a leaf function.
12404 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12407 * config/alpha/host-osf.c: New file.
12408 * config/alpha/x-osf: New file.
12409 * config.host (alpha*-dec-osf*): Use it.
12411 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12413 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12414 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12415 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12416 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12418 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12420 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12422 * config/stormy16/constraints.md: New file.
12423 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12424 Use satisfies_constraint_Q and satisfies_constraint_R.
12425 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12427 (xstormy16_legitiamte_address_p): Declare.
12428 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12429 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12430 (EXTRA_CONSTRAINT): Delete.
12431 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12433 (xstormy16_extra_constraint_p): Delete.
12435 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12437 PR tree-optimization/46494
12438 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12439 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12440 (pass_rtl_loop_done): Add TODO_verify_flow.
12441 * fwprop.c (pass_rtl_fwprop): Likewise.
12442 * modulo-sched.c (pass_sms): Likewise.
12443 * tree-ssa-dom.c (pass_dominator): Likewise.
12444 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12445 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12446 (pass_tree_loop_done): Likewise.
12447 * tree-ssa-pre.c (execute_pre): Likewise.
12448 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12449 * tree-ssa-sink.c (pass_sink_code): Likewise.
12450 * tree-vrp.c (pass_vrp): Likewise.
12452 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12454 * config/v850/constraints.md: New file.
12455 * config/v850/v850.md: Include it.
12456 * config/v850/predicates.md (reg_or_0_operand): Use
12457 satisfies_constraint_G.
12458 (special_symbolref_operand): Use satisfies_constraint_K.
12459 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12460 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12461 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12462 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12463 (EXTRA_CONSTRAINT): Delete.
12464 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12465 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12466 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12468 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12471 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12474 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12476 * config/mcore/constraints.md: New file.
12477 * config/mcore/mcore.md: Include it.
12478 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12479 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12480 (REG_CLASS_FROM_LETTER): Delete.
12481 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12482 insn_const_int_ok_for_constraint.
12483 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12484 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12485 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12486 (EXTRA_CONSTRAINT): Delete.
12488 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12491 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12492 (IS_SIGHANDLER): Define.
12493 (sparc64_is_sighandler): New function, split off from
12494 sparc64_fallback_frame_state.
12495 (sparc_is_sighandler): New function, split off from
12496 sparc_fallback_frame_state.
12497 (sparc64_fallback_frame_state): Merge with ...
12498 (sparc_fallback_frame_state): ... this into ...
12499 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12500 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12501 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12502 stack instead of hardcoded offsets.
12504 2011-02-14 Andriy Gapon <avg@freebsd.org>
12507 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12509 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12511 * configure: Regenerate.
12513 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12516 * gcc.c (asm_options): Correct spec matching --target-help.
12518 2011-02-12 Martin Jambor <mjambor@suse.cz>
12520 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12521 to gimple call error.
12523 2011-02-12 Mike Stump <mikestump@comcast.net>
12525 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12526 comments in backslash regions.
12528 2011-02-12 Mike Stump <mikestump@comcast.net>
12529 Jakub Jelinek <jakub@redhat.com>
12530 Iain Sandoe <iains@gcc.gnu.org>
12533 * dwarf2out.c (output_cfa_loc): When required, apply the
12534 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12535 (output_loc_sequence): Likewise.
12536 (output_loc_operands_raw): Likewise.
12537 (output_loc_sequence_raw): Likewise.
12538 (output_cfa_loc): Likewise.
12539 (output_loc_list): Suppress register number adjustment when
12540 calling output_loc_sequence()
12541 (output_die): Likewise.
12543 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12545 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12547 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12548 xtensa_memory_move_cost): New functions.
12549 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12551 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12554 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12555 in the current directory.
12556 * configure: Rebuilt.
12558 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12560 * config/darwin.c (darwin_override_options): Add a hunk missed
12561 from the commit of r168571. Trim comment line lengths and
12562 correct indents of the preceding block.
12564 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12566 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12569 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12571 * common.opt (nostartfiles): New Driver option.
12573 2011-02-11 Xinliang David Li <davidxl@google.com>
12575 PR tree-optimization/47707
12576 * tree-chrec.c (convert_affine_scev): Keep type precision.
12578 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12580 PR tree-optimization/47420
12581 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12583 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12585 PR rtl-optimization/47614
12586 * rtl.h (check_for_inc_dec): Declare.
12587 * dse.c (check_for_inc_dec): Externalize...
12588 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12589 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12591 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12594 * gcc.c (main): Do not compile inputs if there were errors in
12596 * opts-common.c (read_cmdline_option): Check for wrong language
12597 after other error checks.
12599 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12601 * cgraph.c: Fix comment typos.
12602 * cgraph.h: Likewise.
12603 * cgraphunit.c: Likewise.
12604 * ipa-cp.c: Likewise.
12605 * ipa-inline.c: Likewise.
12606 * ipa-prop.c: Likewise.
12607 * ipa-pure-const.c: Likewise.
12608 * ipa-ref.c: Likewise.
12609 * ipa-reference.c: Likewise.
12611 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12614 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12616 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12619 * doc/sourcebuild.texi (Require Support): Document
12620 dg-require-ascii-locale.
12622 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12624 * doc/lto.texi (Write summary): Fix missing parentheses.
12626 2011-02-10 DJ Delorie <dj@redhat.com>
12628 * config/m32c/m32c.c (m32c_option_override): Disable
12629 -fcombine-stack-adjustments until flag value tracking and compare
12630 optimization can be rewritten.
12632 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12634 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12636 (PROCESSOR_DEFAULT64): Likewise.
12638 2011-02-10 Richard Henderson <rth@redhat.com>
12640 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12641 change from 2011-02-03.
12642 * config/rx/rx.c (flags_from_code): Likewise.
12643 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12644 is valid, n/pz otherwise.
12645 (rx_select_cc_mode): Return CCmode if Y is not zero.
12647 2011-02-10 Richard Guenther <rguenther@suse.de>
12649 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12651 2011-02-10 Richard Guenther <rguenther@suse.de>
12653 PR tree-optimization/47677
12654 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12656 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12659 * combine.c (make_compound_operation): Only change shifts into
12660 multiplication for SCALAR_INT_MODE_P.
12662 2011-02-10 Jie Zhang <jie@codesourcery.com>
12666 2011-02-05 Jie Zhang <jie@codesourcery.com>
12668 * web.c (entry_register): Don't clobber the number of the
12669 first uninitialized reference in used[].
12671 2011-02-09 Richard Guenther <rguenther@suse.de>
12673 PR tree-optimization/47664
12674 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12677 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12681 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12683 (PROCESSOR_DEFAULT64): Same.
12684 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12686 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12688 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12690 2011-02-09 Martin Jambor <mjambor@suse.cz>
12692 PR middle-end/45505
12693 * tree-sra.c (struct access): New flags grp_scalar_read and
12694 grp_scalar_write. Changed description of assignment read and write
12696 (dump_access): Dump new flags, reorder all of them.
12697 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12698 to detect multiple scalar reads.
12699 (analyze_access_subtree): Use the new scalar read write flags instead
12700 of the old flags. Adjusted comments.
12702 2011-02-08 DJ Delorie <dj@redhat.com>
12705 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12708 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12710 * config/m68k/uclinux.opt: New.
12711 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12713 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12715 * config/cris/elf.opt (sim): New Driver option.
12717 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12719 * config/xtensa/elf.opt: New.
12720 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12722 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12724 * config/vax/elf.opt: New.
12725 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12727 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12729 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12731 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12733 * config/gnu-user.opt: New.
12734 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12735 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12736 *-*-uclinux*): Use gnu-user.opt.
12738 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12740 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12741 * config/i386/gnu.h (CPP_SPEC): Likewise.
12743 2011-02-08 Ian Lance Taylor <iant@google.com>
12745 * common.opt (fcx-limited-range): Add SetByCombined flag.
12746 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12747 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12748 (fassociative-math, freciprocal-math): Likewise.
12749 (funsafe-math-optimizations): Likewise.
12750 * opth-gen.awk: Handle SetByCombined.
12751 * optc-gen.awk: Likewise.
12752 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12753 (set_unsafe_math_optimizations_flags): Likewise.
12754 * doc/options.texi (Option properties): Document SetByCombined.
12756 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12758 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12759 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12760 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12761 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12762 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12764 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12766 PR tree-optimization/46834
12767 PR tree-optimization/46994
12768 PR tree-optimization/46995
12769 * graphite-sese-to-poly.c (used_outside_reduction): New.
12770 (detect_commutative_reduction): Call used_outside_reduction.
12771 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12772 translate_scalar_reduction_to_array only when at least one
12773 loop-phi/close-phi tuple has been detected.
12775 2011-02-08 Richard Guenther <rguenther@suse.de>
12777 PR middle-end/47639
12778 * tree-vect-generic.c (expand_vector_operations_1): Update
12780 (expand_vector_operations): ... not here. Cleanup EH info
12781 and the CFG if required.
12783 2011-02-08 Richard Guenther <rguenther@suse.de>
12785 PR tree-optimization/47641
12786 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12787 require type compatibility.
12789 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12791 * gimple-low.c (lower_function_body): Don't remove the location of
12792 the return statement here.
12793 (lower_gimple_return): Do it here instead but only if the return
12794 statement is actually used twice.
12796 2011-02-08 Richard Guenther <rguenther@suse.de>
12798 PR tree-optimization/47632
12799 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12800 unused up_to_stmt parameter, return whether cfg-cleanup is
12801 necessary, remove EH info properly.
12802 (forward_propagate_into_gimple_cond): Adjust caller.
12803 (forward_propagate_into_cond): Likewise.
12804 (forward_propagate_comparison): Likewise.
12805 (tree_ssa_forward_propagate_single_use_vars): Make
12806 forward_propagate_comparison case similar to the two others.
12808 2011-02-08 Nick Clifton <nickc@redhat.com>
12810 * config/mn10300/mn10300.opt (mliw): New command line option.
12811 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12812 (liw_bundling): New automaton.
12813 (liw): New attribute.
12814 (liw_op): New attribute.
12815 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12816 (movsi_internal): Add LIW attributes.
12817 (andsi3): Likewise.
12818 (iorsi3): Likewise.
12819 (xorsi3): Likewise.
12820 (addsi3): Separate register and immediate alternatives.
12821 Add LIW attributes.
12822 (subsi3): Likewise.
12824 (aslsi3): Likewise.
12825 (lshrsi3): Likewise.
12826 (ashrsi3): Likewise.
12827 (liw): New pattern.
12828 * config/mn10300/mn10300.c (liw_op_names): New
12829 (mn10300_print_operand): Handle 'W' operand descriptor.
12830 (extract_bundle): New function.
12831 (check_liw_constraints): New function.
12832 (liw_candidate): New function.
12833 (mn10300_bundle_liw): New function.
12834 (mn10300_reorg): New function.
12835 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12836 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12837 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12838 __LIW__ or __NO_LIW__.
12839 * doc/invoke.texi: Describe the -mliw command line option.
12841 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12843 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12844 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12845 pthread_mutex_unlock): Remove.
12846 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12847 * config/pa/t-pa64: Likewise.
12848 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12849 shared libc if not linking against libpthread.
12850 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12852 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12855 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12856 on 10.6 and later to ensure that we always use the unwinder from
12857 the system. Only add -no_compact_unwind when tarteting darwin
12860 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12863 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12864 (vec_interleave_lowv2sf): Ditto.
12865 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12866 (vec_extract_oddv2sf): Ditto.
12868 2011-02-07 Mike Stump <mikestump@comcast.net>
12871 Add __ieee_divdc3 entry point.
12872 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12874 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12875 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12876 * config/darwin.c (darwin_rename_builtins): Add.
12877 * config/darwin-protos.h (darwin_rename_builtins): Add.
12879 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12882 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12885 2011-02-07 Mike Stump <mikestump@comcast.net>
12887 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12889 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12892 * config/avr/libgcc.S (exit): Move .endfunc
12894 2011-02-07 Richard Guenther <rguenther@suse.de>
12896 PR tree-optimization/47615
12897 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12898 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12899 (run_scc_vn): Initialize it.
12900 (visit_reference_op_load): Use it.
12901 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12903 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12905 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12906 DImode trapping arithmetic libfuncs.
12908 2011-02-07 Richard Guenther <rguenther@suse.de>
12910 PR tree-optimization/47621
12911 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12913 (execute_update_addresses_taken): ... here. Make it more
12914 conservative in what we accept.
12916 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12918 * config/sparc/freebsd.h (ASM_SPEC): Define.
12919 * config/sparc/vxworks.h (ASM_SPEC): Define.
12921 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12923 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12925 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12927 * doc/invoke.texi: Remove reference to compiler internals from
12928 user documentation.
12930 * reg-notes.def: Remove REG_VALUE_PROFILE.
12931 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12933 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12935 PR middle-end/47610
12936 * varasm.c (default_section_type_flags): If decl is NULL,
12937 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12939 2011-02-05 Jie Zhang <jie@codesourcery.com>
12942 * web.c (entry_register): Don't clobber the number of the
12943 first uninitialized reference in used[].
12945 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12947 PR tree-optimization/46194
12948 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12949 (build_classic_dist_vector_1): Do not represent classic distance
12950 vectors when the access functions are variating in different loops.
12952 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12954 * config/mips/iris6.opt: New.
12955 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12957 2011-02-04 Richard Henderson <rth@redhat.com>
12958 Steve Ellcey <sje@cup.hp.com>
12961 * config/ia64/predicates.md (mux1_brcst_element): New.
12962 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12963 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12964 (ia64_unpack_sign): New.
12965 (ia64_expand_unpack): Rewrite using new routines.
12966 (ia64_expand_widen_sum): Ditto.
12967 (ia64_expand_dot_prod_v8qi): Ditto.
12968 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12969 routines, add endian check.
12970 (pmpy2_even): Rename from pmpy2_r, add endian check.
12971 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12972 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12973 (vec_widen_smult_hi_v4hi): Ditto.
12974 (vec_widen_umult_lo_v4hi): Ditto.
12975 (vec_widen_umult_hi_v4hi): Ditto.
12976 (mulv2si3): Change endian checks.
12977 (sdot_prodv4hi): Rewrite with new calls.
12978 (udot_prodv4hi): New.
12979 (vec_pack_ssat_v4hi): Add endian check.
12980 (vec_pack_usat_v4hi): Ditto.
12981 (vec_pack_ssat_v2si): Ditto.
12982 (max1_even): Rename from max1_r, add endian check.
12983 (max1_odd): Rename from max1_l, add endian check.
12984 (*mux1_rev): Format change.
12985 (*mux1_mix): Ditto.
12986 (*mux1_shuf): Ditto.
12987 (*mux1_alt): Ditto.
12988 (*mux1_brcst_v8qi): Use new predicate.
12989 (vec_extract_evenv8qi): Remove endian check.
12990 (vec_extract_oddv8qi): Ditto.
12991 (vec_interleave_lowv4hi): Format change.
12992 (vec_interleave_highv4hi): Ditto.
12993 (mix2_even): Rename from mix2_r, add endian check.
12994 (mix2_odd): Rename from mux2_l, add endian check.
12995 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12996 (vec_extract_evenodd_helper): Format change.
12997 (vec_extract_evenv4hi): Remove endian check.
12998 (vec_extract_oddv4hi): Remove endian check.
12999 (vec_interleave_lowv2si): Format change.
13000 (vec_interleave_highv2si): Format change.
13001 (vec_initv2si): Remove endian check.
13002 (vecinit_v2si): Add endian check.
13003 (reduc_splus_v2sf): Add endian check.
13004 (reduc_smax_v2sf): Ditto.
13005 (reduc_smin_v2sf): Ditto.
13006 (vec_initv2sf): Remove endian check.
13007 (fpack): Add endian check.
13008 (fswap): Add endian check.
13009 (vec_interleave_highv2sf): Add endian check.
13010 (vec_interleave_lowv2sf): Add endian check.
13011 (fmix_lr): Add endian check.
13012 (vec_setv2sf): Format change.
13013 (*vec_extractv2sf_0_be): Use shift to extract operand.
13014 (*vec_extractv2sf_1_be): New.
13015 (vec_pack_trunc_v4hi): Add endian check.
13016 (vec_pack_trunc_v2si): Format change.
13018 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13020 PR inline-asm/23200
13021 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13022 do bb, locus and block comparison and disallow loads if it is not set.
13023 (stmt_is_replaceable_p): New function.
13024 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13026 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13027 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13029 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13031 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13033 * config/rs6000/xilinx.opt: New.
13034 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13036 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13038 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13040 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13042 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13043 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13044 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13045 secondary_reload_info, xtensa_secondary_reload): Remove.
13046 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13047 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13048 (xtensa_preferred_reload_class): Make static. Change return and
13049 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13050 Use CONST_DOUBLE_P predicate.
13051 (xtensa_preferred_output_reload_class): New function.
13052 (xtensa_secondary_reload): Make static.
13054 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13056 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13057 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13058 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13060 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13062 PR middle-end/31490
13063 * output.h (SECTION_RELRO): Define.
13064 (SECTION_MACH_DEP): Adjust.
13065 (get_variable_section): New prototype.
13066 * varpool.c (varpool_finalize_named_section_flags): New function.
13067 (varpool_assemble_pending_decls): Call it.
13068 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13069 * cgraphunit.c (cgraph_output_in_order): Call
13070 varpool_finalize_named_section_flags.
13071 * varasm.c (get_section): Allow section flags conflicts between
13072 relro and read-only sections if the section hasn't been declared yet.
13073 Set SECTION_OVERRIDE after diagnosing section type conflict.
13074 (get_variable_section): No longer static.
13075 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13076 readonly sections that need relocations.
13077 (decl_readonly_section_1): New function.
13078 (decl_readonly_section): Use it.
13081 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13082 Steve Ellcey <sje@cup.hp.com>
13084 PR middle-end/31490
13085 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13086 if section attribute used.
13088 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13090 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13091 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13092 (darwin_init_sections): Remove assertion.
13094 2011-02-03 Nick Clifton <nickc@redhat.com>
13096 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13098 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13099 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13100 instead of "n" and "pz".
13101 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13104 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13107 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13108 fma, expand FMA_EXPR as fma{,f,l} call.
13111 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13112 copy them into a unsigned char variable and pass address of it to
13113 lto_output_data_stream.
13116 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13117 around backend_init_target and lang_dependent_init_target calls.
13118 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13119 (verify_cgraph_node): Don't call set_cfun here. Use
13120 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13121 Set error_found for incorrectly represented calls to thunks.
13123 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13126 PR rtl-optimization/43494
13127 * rtl.h (for_each_inc_dec_fn): New type.
13128 (for_each_inc_dec): Declare.
13129 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13130 (for_each_inc_dec_find_inc_dec): New fn.
13131 (for_each_inc_dec_find_mem): New fn.
13132 (for_each_inc_dec): New fn.
13133 * dse.c (struct insn_size): Remove.
13134 (replace_inc_dec, replace_inc_dec_mem): Remove.
13135 (emit_inc_dec_insn_before): New fn.
13136 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13137 (canon_address): Pass mem modes to cselib_lookup.
13138 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13139 (cselib_lookup_from_insn): Likewise.
13140 (cselib_subst_to_values): Likewise.
13141 * cselib.c (find_slot_memmode): New var.
13142 (cselib_find_slot): New fn. Use it instead of
13143 htab_find_slot_with_hash everywhere.
13144 (entry_and_rtx_equal_p): Use find_slot_memmode.
13145 (autoinc_split): New fn.
13146 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13147 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13148 Deal with autoinc. Special-case recursion into MEMs.
13149 (cselib_hash_rtx): Likewise.
13150 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13151 address and MEM modes.
13152 (cselib_subst_to_values): Add memmode, pass it on.
13154 (cselib_lookup): Add memmode argument, pass it on.
13155 (cselib_lookup_from_insn): Add memmode.
13156 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13157 (struct cselib_record_autoinc_data): New.
13158 (cselib_record_autoinc_cb): New fn.
13159 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13160 mode to cselib_lookup. Reset autoinced REGs here instead of...
13161 (cselib_process_insn): ... here.
13162 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13164 (add_uses): Likewise, also to cselib_subst_to_values.
13165 (add_stores): Likewise.
13166 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13167 cselib_subst_to_values.
13168 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13169 * gcse.c (do_local_cprop): Adjusted.
13170 * postreload.c (reload_cse_simplify_set): Adjusted.
13171 (reload_cse_simplify_operands): Adjusted.
13172 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13174 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13176 PR tree-optimization/45122
13177 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13178 unsafe assumptions when there's more than one loop exit.
13180 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13183 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13184 Document using vector double with the load/store builtins, and
13185 that the load/store builtins always use Altivec instructions.
13187 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13188 to use altivec memory instructions, even on VSX.
13189 (vector_altivec_store_<mode>): Ditto.
13191 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13194 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13195 V2DF, V2DI support to load/store overloaded builtins.
13197 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13198 altivec load/store builtins for V2DF/V2DI types.
13200 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13201 set avoid indexed addresses on power6 if -maltivec.
13202 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13203 vector_altivec_load/vector_altivec_store builtins.
13204 (altivec_expand_st_builtin): Ditto.
13205 (altivec_expand_builtin): Add VSX memory builtins.
13206 (rs6000_init_builtins): Add V2DI types to internal types.
13207 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13208 load/store builtins.
13209 (rs6000_address_for_altivec): Insure memory address is appropriate
13212 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13213 vec_vsx_ld and vec_vsx_st.
13214 (vsx_store_<mode>): Ditto.
13216 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13217 variables to hold long long types for VSX vector memory builtins.
13218 (RS6000_BTI_unsigned_long_long): Ditto.
13219 (long_long_integer_type_internal_node): Ditti.
13220 (long_long_unsigned_type_internal_node): Ditti.
13222 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13223 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13224 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13226 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13228 (vec_vsx_st): Ditto.
13230 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13232 * config/pa/pa-hpux10.opt: New.
13233 * config/hpux11.opt (pthread): New Driver option.
13234 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13235 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13237 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13239 * config/ia64/vms.opt: New.
13240 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13242 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13245 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13246 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13247 generator functions.
13248 (vsx_floatuns<VSi><mode>2): Ditto.
13249 (vsx_fix_trunc<mode><VSi>2): Ditto.
13250 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13252 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13254 * config/i386/djgpp.opt (posix): New Driver option.
13256 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13258 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13259 Move to the unsupported targets list.
13261 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13263 PR rtl-optimization/47525
13264 * df-scan.c: Update copyright years.
13265 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13266 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13268 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13270 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13271 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13272 (ASM_OUTPUT_ASCII): Remove.
13273 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13275 2011-02-02 Jeff Law <law@redhat.com>
13277 PR middle-end/47543
13278 * reload.c (find_reloads_address): Handle reg+d address where both
13279 components are invalid by reloading the entire address.
13281 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13282 Richard Guenther <rguenther@suse.de>
13284 PR tree-optimization/40979
13286 * passes.c (init_optimization_passes): After LIM call copy_prop
13287 and DCE to clean up.
13288 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13290 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13292 PR tree-optimization/47576
13293 PR tree-optimization/47555
13294 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13295 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13296 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13297 * tree-scalar-evolution.c (follow_ssa_edge): Use
13298 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13300 2011-02-02 Richard Guenther <rguenther@suse.de>
13302 PR tree-optimization/47566
13303 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13305 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13309 * tree-inline.c (declare_return_variable): Remove unused caller
13314 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13315 * cfgexpand.c (account_used_vars_for_block): Use them.
13316 * tree-nrv.c (tree_nrv): Likewise.
13317 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13318 (dump_scope_block): Likewise.
13319 (remove_unused_locals): Likewise.
13323 * tree-inline.c (declare_return_variable): Add result decl to
13324 local decls only once.
13325 * gimple-low.c (record_vars_into): Mark newly-created variables
13328 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13334 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13336 (no_real_insns_p, schedule_block, set_priorities): Drop special
13337 treatment of boundary debug insns.
13338 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13339 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13340 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13341 (BOUNDARY_DEBUG_INSN_P): Likewise.
13342 (SCHEDULE_DEBUG_INSN_P): Likewise.
13343 * sched-rgn.c (init_ready_list): Drop special treatment of
13344 boundary debug insns.
13345 * final.c (rest_of_clean_state): Clear notes' BB.
13347 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13349 * config/openbsd.opt (assert=): New Driver option.
13351 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13353 * config/i386/nto.opt: New.
13354 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13356 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13358 * config/i386/netware.opt: New.
13359 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13361 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13363 * config/interix.opt (posix): New Driver option.
13365 2011-02-01 DJ Delorie <dj@redhat.com>
13367 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13369 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13372 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13374 PR tree-optimization/47561
13375 * toplev.c (process_options): Print the Graphite flags. Add
13376 flag_loop_flatten to the list of options requiring Graphite.
13378 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13380 * config/i386/cygming.opt (posix): New Driver option.
13382 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13384 * config/arm/vxworks.opt: New.
13385 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13387 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13389 * config/alpha/elf.opt: New.
13390 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13391 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13393 2011-02-01 Richard Guenther <rguenther@suse.de>
13395 PR tree-optimization/47559
13396 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13397 store-motion on references that can throw.
13399 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13401 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13402 * tree-pass.h (TDF_CSELIB): New macro.
13403 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13404 cselib_lookup): Check for it rather than for TDF_DETAILS.
13406 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13409 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13410 is HOST_BIT_BUCKET.
13412 * opts.c (finish_options): Don't add x_aux_base_name if it is
13415 2011-02-01 Richard Guenther <rguenther@suse.de>
13417 PR tree-optimization/47555
13419 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13421 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13423 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13426 * config/lm32/t-lm32: Add multilib for all CPU options.
13428 2011-02-01 Richard Guenther <rguenther@suse.de>
13430 PR tree-optimization/47541
13431 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13432 sure to have a field at offset zero.
13434 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13436 * config/arc/arc.opt (EB, EL): New Driver options.
13438 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13440 * config/alpha/osf5.opt: New.
13441 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13443 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13445 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13447 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13449 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13450 -floop-interchange.
13451 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13452 is an alias of -floop-interchange and that it requires the
13453 Graphite infrastructure.
13454 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13455 flag_loop_interchange based on the value of flag_tree_loop_linear.
13457 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13458 Richard Guenther <rguenther@suse.de>
13460 PR tree-optimization/47538
13461 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13462 type instead of r1type, except for comparisons. For right
13463 shifts and comparisons punt if there are mismatches in
13464 sizetype vs. non-sizetype types.
13466 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13468 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13471 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13473 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13475 * configure: Regenerate.
13477 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13479 * configure.ac (gcc_cv_ld_static_option): Define.
13480 (gcc_cv_ld_dynamic_option): Define.
13481 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13483 (HAVE_LD_STATIC_DYNAMIC): Update message.
13484 (LD_STATIC_OPTION): Define.
13485 (LD_DYNAMIC_OPTION): Define.
13486 * configure: Regenerate.
13487 * config.in: Regenerate.
13488 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13489 HAVE_LD_STATIC_DYNAMIC]: Use them.
13491 2011-01-31 Nick Clifton <nickc@redhat.com>
13493 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13494 registers inside interrupt handlers if the handler is not a leaf
13497 2011-01-31 Nick Clifton <nickc@redhat.com>
13499 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13500 reg_renumber returning an INVALID_REGNUM.
13502 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13505 * doc/install.texi: Document host options discarded when cross
13506 configuring target libraries.
13508 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13511 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13514 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13516 (no_real_insns_p, schedule_block, set_priorities): Drop special
13517 treatment of boundary debug insns.
13518 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13519 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13520 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13521 (BOUNDARY_DEBUG_INSN_P): Likewise.
13522 (SCHEDULE_DEBUG_INSN_P): Likewise.
13523 * sched-rgn.c (init_ready_list): Drop special treatment of
13524 boundary debug insns.
13525 * final.c (rest_of_clean-state): Clear notes' BB.
13527 2011-01-31 Alan Modra <amodra@gmail.com>
13529 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13530 toc relative expressions as we do in print_operand_address.
13532 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13534 * doc/extend.texi: Follow spelling conventions.
13535 * doc/invoke.texi: Fix a typo.
13537 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13539 * config/hpux11.opt: New.
13540 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13541 ia64*-*-hpux*): Use hpux11.opt.
13543 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13545 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13548 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13550 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13553 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13555 * doc/install.texi (Binaries): Remove outdated reference for
13556 Motorola 68HC11/68HC12 downloads.
13558 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13560 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13563 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13566 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13569 2011-01-28 Ahmad Sharif <asharif@google.com>
13571 * value-prof.c (check_counter): Corrected error message.
13573 2011-01-29 Jie Zhang <jie@codesourcery.com>
13575 * config/arm/arm.c (arm_legitimize_reload_address): New.
13576 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13577 arm_legitimize_reload_address.
13578 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13580 2011-01-28 Ian Lance Taylor <iant@google.com>
13582 * godump.c (go_define): Ignore macros whose definitions include
13583 two adjacent operands.
13585 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13588 * varasm.c (force_const_mem): Store copy of x in desc->constant
13589 instead of x itself.
13590 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13591 itself into REG_EQUAL note.
13593 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13595 * config/freebsd.opt (posix, rdynamic): New Driver options.
13597 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13599 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13600 -Bstatic/-Bdynamic.
13601 * configure: Regenerate.
13603 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13605 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13606 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13608 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13610 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13611 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13612 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13613 (s390_preferred_reload_class): Make static. Change return and
13614 'rclass' argument type to reg_class_t.
13616 2011-01-27 Jan Hubicka <jh@suse.cz>
13618 PR middle-end/46949
13619 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13620 (process_function_and_variable_attributes): Check defined weakrefs.
13622 2011-01-27 Martin Jambor <mjambor@suse.cz>
13624 PR tree-optimization/47228
13625 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13626 build_ref_for_offset.
13628 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13630 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13632 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13634 PR rtl-optimization/46856
13635 * postreload.c (reload_combine_recognize_const_pattern): Do not
13636 separate cc0 setter and user on cc0 targets.
13638 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13641 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13642 passed a VOID_TYPE expression, immediately emit an error and
13643 return error_mark_node.
13645 2011-01-26 Jeff Law <law@redhat.com>
13647 PR rtl-optimization/47464
13648 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13649 rather than may_trap_p as needed.
13651 2011-01-26 DJ Delorie <dj@redhat.com>
13653 PR rtl-optimization/46878
13654 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13655 setter/user dependency as well.
13657 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13659 PR rtl-optimization/44469
13660 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13661 after removing trivially dead basic blocks.
13663 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13665 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13666 * config/frv/frv.h (LINK_SPEC): Likewise.
13667 * config/i386/netware.h (LINK_SPEC): Likewise.
13668 * config/m68k/linux.h (ASM_SPEC): Likewise.
13669 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13670 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13671 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13672 * config/sparc/linux.h (ASM_SPEC): Likewise.
13673 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13674 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13676 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13678 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13679 * config/frv/frv.h (ASM_SPEC): Likewise.
13680 * config/m68k/linux.h (ASM_SPEC): Likewise.
13681 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13682 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13683 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13684 * config/sparc/linux.h (ASM_SPEC): Likewise.
13685 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13686 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13688 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13690 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13691 * config/frv/frv.h (LINK_SPEC): Likewise.
13692 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13694 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13696 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13697 * config/frv/frv.h (ASM_SPEC): Likewise.
13698 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13699 * config/m68k/linux.h (ASM_SPEC): Likewise.
13700 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13701 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13702 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13703 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13704 * config/sparc/linux.h (ASM_SPEC): Likewise.
13705 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13706 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13707 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13709 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13712 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13714 (vec_extract_evenodd_help): Ditto.
13715 (vec_extract_evenv4hi): Ditto.
13716 (vec_extract_oddv4hi): Ditto.
13717 (vec_interleave_lowv2si): Ditto.
13718 (vec_interleave_highv2si): Ditto.
13719 (vec_extract_evenv2si): Ditto.
13720 (vec_extract_oddv2si: Ditto.
13721 (vec_pack_trunc_v2si): Ditto.
13723 2011-01-22 Jan Hubicka <jh@suse.cz>
13726 * cgraph.h (cgraph_local_info): New field can_change_signature.
13727 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13728 signature can change.
13729 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13731 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13732 (cgraph_function_versioning): We can not change signature of functions
13733 that don't allow that.
13734 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13735 (lto_input_node): Likewise.
13736 * ipa-inline.c (compute_inline_parameters): Compute
13737 local.can_change_signature.
13738 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13739 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13740 functions that can not change signature.
13741 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13742 init_cumulative_args): Do not use local calling conventions
13743 for functions that can not change signature.
13745 2011-01-22 Jan Hubicka <jh@suse.cz>
13747 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13749 2011-01-26 Richard Guenther <rguenther@suse.de>
13751 PR tree-optimization/47190
13752 * cgraphunit.c (process_common_attributes): New function.
13753 (process_function_and_variable_attributes): Use it.
13755 2011-01-26 Richard Guenther <rguenther@suse.de>
13758 * cgraphbuild.c (record_eh_tables): Record reference to personality
13761 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13764 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13765 non-debug insns from moving up.
13767 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13770 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13771 t-dlldir{,-x} fragment for build and add it to tmake_file.
13772 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13773 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13774 * config/i386/t-dlldir: New file.
13775 (SHLIB_DLLDIR): Define.
13776 * config/i386/t-dlldir-x: New file.
13777 (SHLIB_DLLDIR): Define.
13778 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13779 (SHLIB_INSTALL): Use it.
13781 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13784 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13785 lower bound of the allowed Thumb-2 coprocessor load/store
13786 index range to -256. Add explaining comment.
13788 2011-01-25 Ian Lance Taylor <iant@google.com>
13790 * godump.c (go_define): Improve lexing of macro expansion to only
13791 accept expressions which match Go spec.
13793 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13796 * tree.c (handle_dll_attribute): Handle it.
13797 * doc/extend.texi (@item dllexport): Mention it.
13798 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13800 2011-01-25 Ian Lance Taylor <iant@google.com>
13802 PR tree-optimization/26854
13803 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13804 (decl_jump_unsafe): Move higher in file, with no other change.
13805 (bind): Set has_jump_unsafe_decl if appropriate.
13806 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13807 (check_earlier_gotos): Likewise.
13808 (c_check_switch_jump_warnings): Likewise.
13810 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13812 * doc/invoke.texi (Warning Options): Add missing hyphen.
13813 (-fprofile-dir): Minor grammatical fixes.
13814 (-fbranch-probabilities): Likewise.
13816 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13820 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13822 (no_real_insns_p, schedule_block, set_priorities): Drop special
13823 treatment of boundary debug insns.
13824 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13825 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13826 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13827 (BOUNDARY_DEBUG_INSN_P): Likewise.
13828 (SCHEDULE_DEBUG_INSN_P): Likewise.
13829 * sched-rgn.c (init_ready_list): Drop special treatment of
13830 boundary debug insns.
13831 * final.c (rest_of_clean-state): Clear notes' BB.
13833 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13835 * Makefile.in (LAMBDA_H): Removed.
13836 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13837 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13838 lambda-trans.o, and tree-loop-linear.o.
13839 (lto-symtab.o): Remove dependence on LAMBDA_H.
13840 (tree-loop-linear.o): Remove rule.
13841 (lambda-mat.o): Same.
13842 (lambda-trans.o): Same.
13843 (lambda-code.o): Same.
13844 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13845 (tree-vect-slp.o): Same.
13846 * hwint.h (gcd): Moved here.
13847 (least_common_multiple): Same.
13848 * lambda-code.c: Removed.
13849 * lambda-mat.c: Removed.
13850 * lambda-trans.c: Removed.
13851 * lambda.h: Removed.
13852 * tree-loop-linear.c: Removed.
13853 * lto-symtab.c: Do not include lambda.h.
13854 * omega.c (gcd): Removed.
13855 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13856 * tree-data-ref.c (print_lambda_vector): Moved here.
13857 (lambda_vector_copy): Same.
13858 (lambda_matrix_copy): Same.
13859 (lambda_matrix_id): Same.
13860 (lambda_vector_first_nz): Same.
13861 (lambda_matrix_row_add): Same.
13862 (lambda_matrix_row_exchange): Same.
13863 (lambda_vector_mult_const): Same.
13864 (lambda_vector_negate): Same.
13865 (lambda_matrix_row_negate): Same.
13866 (lambda_vector_equal): Same.
13867 (lambda_matrix_right_hermite): Same.
13868 * tree-data-ref.h: Do not include lambda.h.
13869 (lambda_vector): Moved here.
13870 (lambda_matrix): Same.
13871 (dependence_level): Same.
13872 (lambda_transform_legal_p): Removed declaration.
13873 (lambda_collect_parameters): Same.
13874 (lambda_compute_access_matrices): Same.
13875 (lambda_vector_gcd): Same.
13876 (lambda_vector_new): Same.
13877 (lambda_vector_clear): Same.
13878 (lambda_vector_lexico_pos): Same.
13879 (lambda_vector_zerop): Same.
13880 (lambda_matrix_new): Same.
13881 * tree-flow.h (least_common_multiple): Removed declaration.
13882 * tree-parloops.c (lambda_trans_matrix): Moved here.
13883 (LTM_MATRIX): Same.
13884 (LTM_ROWSIZE): Same.
13885 (LTM_COLSIZE): Same.
13886 (LTM_DENOMINATOR): Same.
13887 (lambda_trans_matrix_new): Same.
13888 (lambda_matrix_vector_mult): Same.
13889 (lambda_transform_legal_p): Same.
13890 * tree-pass.h (pass_linear_transform): Removed declaration.
13891 * tree-ssa-loop.c (tree_linear_transform): Removed.
13892 (gate_tree_linear_transform): Removed.
13893 (pass_linear_transform): Removed.
13894 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13895 flag_loop_interchange.
13897 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13899 PR tree-optimization/47265
13900 PR tree-optimization/47443
13901 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13902 if name still has some uses.
13904 2011-01-25 Martin Jambor <mjambor@suse.cz>
13906 PR tree-optimization/47382
13907 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13908 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13910 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13912 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13913 sjlj_except_unwind_info.
13915 2011-01-25 Richard Guenther <rguenther@suse.de>
13917 PR tree-optimization/47426
13918 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13919 visible functions results escape.
13921 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13924 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13925 (arm_get_frame_offsets): Use it.
13927 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13928 Jakub Jelinek <jakub@redhat.com>
13930 PR tree-optimization/47271
13931 * tree-if-conv.c (bb_postdominates_preds): New.
13932 (if_convertible_bb_p): Call bb_postdominates_preds.
13933 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13934 (predicate_scalar_phi): Call bb_postdominates_preds.
13936 2011-01-25 Nick Clifton <nickc@redhat.com>
13938 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13939 * config/rx/rx.c (rx_function_value): Likewise.
13940 (rx_promote_function_mode): Likewise.
13941 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13942 in order to make it legitimate.
13943 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13944 make sure that the first operand is the same as the result register.
13945 (addsi3_unspec): Delete.
13946 (subdi3): Do not accept immediate operands.
13947 (subdi3_internal): Likewise.
13949 2011-01-25 Jeff Law <law@redhat.com>
13951 PR rtl-optimization/37273
13952 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13953 handle them like argument loads from stack slots. Do not double
13954 count memory for memory constants and argument loads from stack slots.
13956 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13958 PR tree-optimization/47427
13959 PR tree-optimization/47428
13960 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13961 coalesce if the new root var would be TREE_READONLY.
13963 2011-01-25 Richard Guenther <rguenther@suse.de>
13965 PR middle-end/47414
13966 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13967 correct type for TBAA.
13969 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13971 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13972 (close_phi_written_to_memory): Call for_each_index with
13973 dr_indices_valid_in_loop.
13975 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13977 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13978 when it is initialized.
13980 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13982 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13983 call to graphite_find_data_references_in_stmt.
13984 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13985 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13986 call to graphite_find_data_references_in_stmt.
13987 (analyze_drs_in_stmts): Same.
13988 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13989 in which the scalar analysis of indices is performed.
13990 (create_data_ref): Same. Update call to dr_analyze_indices.
13991 (find_data_references_in_stmt): Update call to create_data_ref.
13992 (graphite_find_data_references_in_stmt): Same.
13993 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13995 (create_data_ref): Same.
13996 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13997 call to create_data_ref.
13999 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14001 * graphite-sese-to-poly.c (build_poly_scop): Move
14002 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14004 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14006 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14007 VAR_DECL, PARM_DECL, and RESULT_DECL.
14009 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14011 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14012 in a reduction PBB.
14013 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14014 that have already been marked as PBB_IS_REDUCTION.
14016 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14018 * graphite-scop-detection.c (same_close_phi_node): New.
14019 (remove_duplicate_close_phi): New.
14020 (make_close_phi_nodes_unique): New.
14021 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14023 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14025 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14026 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14027 of both data references to be the same.
14029 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14031 * graphite-dependences.c (build_lexicographical_constraint): Remove
14032 the gdim parameter.
14033 (build_lexicographical_constraint): Adjust call to
14034 ppl_powerset_is_empty.
14035 (dependence_polyhedron): Same.
14036 (graphite_legal_transform_dr): Same.
14037 (graphite_carried_dependence_level_k): Same.
14038 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14040 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14042 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14044 * graphite-sese-to-poly.c
14045 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14046 (close_phi_written_to_memory): New.
14047 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14050 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14052 * doc/install.texi: Update the expected version number of PPL to 0.11.
14053 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14054 #if PPL_VERSION_MINOR < 11.
14056 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14058 * graphite-dependences.c: Include graphite-cloog-util.h.
14059 (new_poly_ddr): Inlined into dependence_polyhedron.
14060 (free_poly_ddr): Moved close by new_poly_ddr.
14061 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14062 Early return NULL when ppl_powerset_is_empty returns true.
14063 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14064 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14065 (graphite_legal_transform_dr): Call new_poly_ddr.
14066 (graphite_carried_dependence_level_k): Same.
14067 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14068 (dot_transformed_deps_stmt_1): Removed.
14069 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14070 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14071 (dot_deps_1): Call dot_deps_2.
14072 * Makefile.in (graphite-dependences.o): Add missing dependence on
14073 graphite-cloog-util.h.
14075 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14077 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14078 (build_lexicographical_constraint): Same.
14079 (dependence_polyhedron_1): Same.
14080 (graphite_legal_transform_dr): Same.
14081 (graphite_carried_dependence_level_k): Same.
14082 * graphite-ppl.c (ppl_powerset_is_empty): New.
14083 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14084 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14086 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14088 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14089 the "a followed by b" relation and document it.
14091 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14093 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14094 iteration when the bag of constraints is empty.
14096 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14098 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14100 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14102 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14103 nest and two loop depths as parameters.
14104 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14105 lst_perfect_nestify.
14107 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14109 * graphite-dependences.c (print_pddr): Call
14110 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14112 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14114 * graphite-ppl.c (debug_gmp_value): New.
14115 * graphite-ppl.h (debug_gmp_value): Declared.
14117 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14119 * doc/install.texi: Document availability of cloog-0.16.
14121 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14123 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14124 invalid postdominance info.
14126 2011-01-24 Jan Hubicka <jh@suse.cz>
14129 * doc/extend.texi (weak pragma): Drop claim that it must
14130 appear before definition.
14131 * varasm.c (merge_weak, declare_weak): Only sanity check
14132 that DECL is not output at a time it is declared weak.
14134 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14136 * machmode.def: Fixed comments.
14138 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14140 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14142 2011-01-24 Paul Koning <ni1d@arrl.net>
14144 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14147 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14150 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14151 (block_info): Add scanned and prev.
14152 (move_or_delete_vzeroupper_2): Return if the basic block
14153 has been scanned and the upper 128bit state is unchanged
14154 from the last scan.
14155 (move_or_delete_vzeroupper_1): Return true if the exit
14157 (move_or_delete_vzeroupper): Visit basic blocks using the
14158 work-list based algorithm based on vt_find_locations in
14161 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14163 2011-01-24 Nick Clifton <nickc@redhat.com>
14165 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14166 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14167 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14168 then define __v850e1__.
14169 * doc/invoke.texi: Document -mv850es.
14171 2011-01-24 Richard Henderson <rth@redhat.com>
14173 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14174 compound unordered comparisons.
14175 * config/rx/rx.c (rx_split_fp_compare): Remove.
14176 * config/rx/rx-protos.h: Update.
14177 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14178 (cbranchsf4): Don't call rx_split_fp_compare.
14179 (*cbranchsf4): Use rx_split_cbranch.
14180 (*cmpsf): Don't accept "i" constraint.
14181 (*conditional_branch): Only valid after reload.
14182 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14184 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14187 * config/rs6000/altivec.md (vector constant splitters): Add
14188 support for creating vector single precision constants if -mvsx is
14189 used and we would create the constant using Altivec primitives.
14191 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14192 Richard Sandiford <rdsandiford@googlemail.com>
14194 PR rtl-optimization/47166
14195 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14196 mechanism for PRE_MODIFY and POST_MODIFY.
14197 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14200 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14202 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14204 2011-01-22 Jan Hubicka <jh@suse.cz>
14207 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14209 2011-01-22 Jan Hubicka <jh@suse.cz>
14211 PR tree-optimization/43884
14213 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14214 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14216 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14218 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14219 * config/s390/s390.c (s390_register_move_cost,
14220 s390_memory_move_cost): New.
14221 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14223 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14225 PR middle-end/47401
14226 * except.c (sjlj_assign_call_site_values): Move setting the
14227 crtl->uses_eh_lsda flag to ...
14228 (sjlj_mark_call_sites): ... here.
14229 (sjlj_emit_function_enter): Support NULL dispatch label.
14230 (sjlj_build_landing_pads): In a function with no landing pads
14231 that still has must-not-throw regions, generate code to register
14232 a personality function with empty LSDA.
14234 2011-01-21 Richard Henderson <rth@redhat.com>
14236 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14238 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14240 * compare-elim.c: New file.
14241 * Makefile.in (OBJS-common): Add it.
14242 (compare-elim.o): New.
14243 * common.opt (fcompare-elim): New.
14244 * opts.c (default_options_table): Add OPT_fcompare_elim.
14245 * tree-pass.h (pass_compare_elim_after_reload): New.
14246 * passes.c (init_optimization_passes): Add it.
14247 * recog.h: Protect against re-inclusion.
14248 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14249 * doc/invoke.texi (-fcompare-elim): Document it.
14250 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14251 * doc/tm.texi: Rebuild.
14253 2011-01-22 Nick Clifton <nickc@redhat.com>
14255 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14256 rx_split_fp_compare.
14258 2011-01-22 Nick Clifton <nickc@redhat.com>
14260 * config/rx/rx.md (UNSPEC_CONST): New.
14261 (deallocate_and_return): Wrap the amount popped off the stack in
14262 an UNSPEC_CONST in order to stop it being rejected by
14263 -mmax-constant-size.
14264 (pop_and_return): Add a "(return)" rtx.
14265 (call): Drop the immediate operand.
14266 (call_internal): Likewise.
14267 (call_value): Likewise.
14268 (call_value_internal): Likewise.
14269 (sibcall_internal): Likewise.
14270 (sibcall_value_internal): Likewise.
14271 (sibcall): Likewise. Generate an explicit call using
14273 (sibcall_value): Likewise.
14274 (mov<>): FAIL if a constant operand is not legitimate.
14275 (addsi3_unpsec): New pattern.
14277 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14278 (ok_for_max_constant): New function.
14279 (gen_safe_add): New function.
14280 (rx_expand_prologue): Use gen_safe_add.
14281 (rx_expand_epilogue): Likewise.
14282 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14285 2011-01-21 Jeff Law <law@redhat.com>
14287 PR tree-optimization/47053
14288 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14289 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14290 statements are deleted.
14291 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14292 is nonempty, then purge dead edges and cleanup the CFG.
14294 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14297 Temporarily revert:
14298 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14300 * tree-dfa.c (create_var_ann): Mark variable as used.
14302 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14304 PR middle-end/45566
14305 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14306 notes from other section in hot/cold partitioning even if
14307 last_action is -3. Increment call_site_base.
14309 PR rtl-optimization/47366
14310 * fwprop.c (forward_propagate_into): Return bool. If
14311 any changes are made, -fnon-call-exceptions is used and
14312 REG_EH_REGION note is present, call purge_dead_edges
14313 and return true if it purged anything.
14314 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14315 any EH edges were purged.
14317 2011-01-21 Jeff Law <law@redhat.com>
14319 PR rtl-optimization/41619
14320 * caller-save.c (setup_save_areas): Break out code to determine
14321 which hard regs are live across calls by examining the reload chains
14322 so that it is always used.
14323 Eliminate code which checked REG_N_CALLS_CROSSED.
14325 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14327 PR tree-optimization/47355
14328 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14329 NOP has non-debug uses beyond PHIs in new_bb.
14331 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14334 * cfgexpand.c (account_used_vars_for_block): Only account vars
14335 that are annotated as used.
14336 (estimated_stack_frame_size): Don't set TREE_USED.
14337 * tree-dfa.c (create_var_ann): Mark variable as used.
14339 2011-01-21 Richard Guenther <rguenther@suse.de>
14341 PR middle-end/47395
14342 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14344 2011-01-21 Richard Guenther <rguenther@suse.de>
14346 PR tree-optimization/47365
14347 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14348 (vn_reference_lookup_pieces): Adjust.
14349 (vn_reference_lookup): Likewise.
14350 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14351 (vn_reference_lookup_3): Only look through kills if in
14352 VN_WALKREWRITE mode.
14353 (vn_reference_lookup_pieces): Adjust.
14354 (vn_reference_lookup): Likewise.
14355 (visit_reference_op_load): Likewise.
14356 (visit_reference_op_store): Likewise.
14357 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14358 (compute_avail): Likewise.
14359 (eliminate): Likewise.
14361 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14363 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14364 DECL_IGNORED_P non-reg vars if they are used.
14366 PR tree-optimization/47391
14367 * varpool.c (const_value_known_p): Return false if
14370 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14373 * config/i386/i386.c (ix86_local_alignment): Handle
14374 case for va_list_type_node is nil.
14375 (ix86_canonical_va_list_type): Likewise.
14377 2011-01-21 Alan Modra <amodra@gmail.com>
14379 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14380 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14382 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14384 * config/arm/arm.md (define_attr type): Rename f_load
14385 and f_store to f_fpa_load and f_fpa_store. Update.
14386 (write_conflict): Deal with rename fallout.
14387 (*push_fp_multi): Likewise.
14388 * config/arm/fpa.md (f_load): Use f_fpa_load.
14389 (f_store): Use f_fpa_store.
14390 (*movsf_fpa): Likewise.
14391 (*movdf_fpa): Likewise.
14392 (*movxf_fpa): Likewise.
14393 (*thumb2_movsf_fpa): Likewise.
14394 (*thumb2_movdf_fpa): Likewise.
14395 (*thumb2_movxf_fpa): Likewise.
14396 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14397 f_loadd and f_stored.
14398 (*thumb2_movdi_vfp): Likewise.
14399 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14400 (*thumb2_movsi_vfp): Likewise.
14401 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14402 Use f_loads instead of f_load.
14403 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14405 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14407 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14408 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14409 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14410 (xtensa_mode_dependent_address_p): New function.
14411 (constantpool_address_p): Make static. Change return type to bool.
14412 Change argument type to const_rtx. Use CONST_INT_P predicate.
14414 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14417 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14419 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14422 * cfgexpand.c (expand_debug_expr): Instead of generating
14423 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14426 2011-01-20 Richard Guenther <rguenther@suse.de>
14428 PR middle-end/47370
14429 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14430 the pointer operand of MEM_REFs.
14432 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14434 PR tree-optimization/46130
14435 * ipa-split.c (consider_split): If return_bb contains non-virtual
14436 PHIs other than for retval or if split_function would not adjust it,
14439 2011-01-20 Richard Guenther <rguenther@suse.de>
14441 PR tree-optimization/47167
14442 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14443 Revert previous change, only avoid enumeral type changes.
14445 2011-01-19 Mike Stump <mikestump@comcast.net>
14447 * doc/tm.texi.in (BRANCH_COST): Englishify.
14448 * doc/tm.texi (BRANCH_COST): Likewise.
14450 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14453 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14454 (gen_scheduled_generic_parms_dies): New functions.
14455 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14456 generation for the end of CU compilation.
14457 (dwarf2out_finish): Generate template parameters DIEs here.
14459 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14462 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14463 debug bind stmt on merge edges.
14465 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14469 * function.c (instantiate_expr): Instantiate incoming rtl of
14470 implicit arguments, and recurse on VALUE_EXPRs.
14471 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14472 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14474 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14476 * c-parser.c (c_parser_for_statement): Initialize
14477 collection_expression.
14479 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14481 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14483 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14485 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14486 (LINK_SHLIB_SPEC): Don't use %(link_path).
14487 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14489 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14491 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14492 (NO_SHARED_LIB_SUPPORT): Remove.
14493 (LINK_SHLIB_SPEC): Remove one conditional definition.
14495 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14497 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14499 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14500 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14501 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14502 %{call_shared} and conditionals on these options not being passed.
14503 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14506 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14508 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14511 * ipa-split.c: Spelling fixes.
14513 2011-01-19 Richard Henderson <rth@redhat.com>
14515 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14516 (*mulsi3): Likewise.
14518 * longlong.h [__mn10300__] (count_leading_zeros): New.
14519 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14520 [__mn10300__] (add_ssaaaa, subddmmss): New.
14521 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14522 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14524 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14526 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14528 2011-01-19 Richard Henderson <rth@redhat.com>
14530 * config/mn10300/mn10300.md (addsi3_flags): New.
14531 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14532 (subsi3_flags, subc_internal, subdi3): New.
14533 (subdi3_internal, *subdi3_degenerate): New.
14534 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14536 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14537 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14538 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14539 * config/mn10300/mn10300-protos.h: Update.
14540 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14541 (return_ret): Likewise. Rename from return_internal_regs.
14542 (return_internal): Remove.
14544 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14545 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14546 (mn10300_legitimate_constant_p): Likewise.
14547 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14548 (mn10300_frame_size): New.
14549 (mn10300_expand_prologue): Use it.
14550 (mn10300_expand_epilogue): Likewise.
14551 (mn10300_initial_offset): Likewise.
14552 * config/mn10300/mn10300-protos.h: Update.
14553 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14554 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14555 (prologue, epilogue, return_internal): Tidy output code.
14556 (mn10300_store_multiple_operation, return): Likewise.
14557 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14558 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14559 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14560 (load_pic, am33_load_pic): New.
14561 (mn10300_load_pic0, mn10300_load_pic1): New.
14563 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14564 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14565 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14566 (cc_flags_for_mode, cc_flags_for_code): New.
14567 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14568 overflow flag is not valid. Validate that the flags we need
14569 for the comparison are valid.
14570 (mn10300_output_cmp): Remove.
14571 (mn10300_output_add): New.
14572 (mn10300_select_cc_mode): Use cc_flags_for_code.
14573 (mn10300_split_cbranch): New.
14574 (mn10300_match_ccmode): New.
14575 (mn10300_split_and_operand_count): New.
14576 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14578 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14579 (addsi3): ... here. Use mn10300_output_add.
14580 (*addsi3_flags): New.
14581 (*am33_subsi3, *mn10300_subsi3): Merge...
14582 (subsi3): ... here. Use attribute isa.
14583 (*subsi3_flags): New.
14584 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14586 (*am33_andsi3, *mn10300_andsi3): Merge...
14587 (andsi3): ... here.
14588 (*andsi3_flags): New.
14589 (andsi3 splitters): New.
14590 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14591 (iorsi3): ... here.
14592 (*iorsi3_flags): New.
14593 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14594 (xorsi3): ... here.
14595 (*xorsi3_flags): New.
14596 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14597 (one_cmplsi2): ... here.
14598 (*one_cmplsi2_flags): New.
14599 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14600 instead of "dax" in constraints. Use mn10300_split_cbranch.
14601 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14602 use matching constraints to eliminate a self-comparison.
14603 (*integer_conditional_branch): Rename from integer_conditional_branch.
14604 Use int_mode_flags to match CC_REG.
14605 (*cbranchsi4_btst, *btstsi): New.
14606 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14607 mn10300_split_cbranch.
14608 (*am33_cmpsf): Rename from am33_cmpsf.
14609 (*float_conditional_branch): Rename from float_conditional_branch.
14610 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14611 (zero_extendqisi2): ... here.
14612 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14613 (zero_extendhisi2): ... here.
14614 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14615 (extendqisi2): ... here.
14616 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14617 (extendhisi2): ... here.
14618 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14619 (ashlsi3): ... here.
14620 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14621 (lshrsi3): ... here.
14622 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14623 (ashrsi3): ... here.
14624 (consecutive add peephole): Remove.
14625 * config/mn10300/predicates.md (label_ref_operand): New.
14626 (int_mode_flags): New.
14627 (CCZN_comparison_operator): New.
14629 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14630 (throughput_42_latency_43): New reservation.
14631 (mulsidi3, umulsidi3): New expanders.
14632 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14633 the MDR register to allocation; separately allocate the low and
14634 high parts of the DImode result.
14635 (umulsidi3_internal): Similarly.
14636 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14637 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14638 (udivsi3, umodsi3): Remove.
14639 (udivmodsi4, divmodsi4): New expanders.
14640 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14641 (*divmodsi4): Simiarly.
14642 (ext_internal): New.
14644 * config/mn10300/constraints.md ("z"): New constraint.
14645 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14646 (FIXED_REGISTERS): Don't fix MDR.
14647 (CALL_USED_REGSITERS): Reformat nicely.
14648 (REG_ALLOC_ORDER): Add MDR.
14649 (enum regclass): Add MDR_REGS.
14650 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14651 (IRA_COVER_CLASSES): Add MDR_REGS.
14652 (REGNO_REG_CLASS): Handle MDR_REG.
14653 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14654 (mn10300_register_move_cost): Likewise.
14655 * config/mn10300/mn10300.md (MDR_REG): New.
14656 (*movsi_internal): Handle moves to/from MDR_REGS.
14658 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14660 (mn10300_secondary_reload): Tidy combination reload classes.
14661 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14662 addresses for AM33. Allow symbolic offsets for reg+imm.
14663 (mn10300_regno_in_class_p): New.
14664 (mn10300_legitimize_reload_address): New.
14665 * config/mn10300/mn10300.h (enum reg_class): Remove
14666 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14667 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14668 SP_OR_GENERAL_REGS.
14669 (REG_CLASS_NAMES): Update to match.
14670 (REG_CLASS_CONTENTS): Likewise.
14671 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14672 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14673 (REGNO_IN_RANGE_P): Remove.
14674 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14675 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14676 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14677 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14678 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14679 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14680 (REGNO_GENERAL_P): New.
14681 (HAVE_POST_MODIFY_DISP): New.
14682 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14683 (LEGITIMIZE_RELOAD_ADDRESS): New.
14684 * config/mn10300/mn10300-protos.h: Update.
14686 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14687 DATA_REGS for AM33 stack-pointer destination.
14688 (mn10300_preferred_output_reload_class): Likewise.
14689 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14690 into a form appropriate for ...
14691 (TARGET_SECONDARY_RELOAD): New.
14692 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14693 * config/mn10300/mn10300-protos.h: Update.
14694 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14695 reload_insi; use the "A" constraint for the scratch; handle AM33
14696 moves of sp to non-address registers.
14698 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14699 (*movqi_internal): ... here.
14700 (*am33_movhi, *mn10300_movhi): Merge into...
14701 (*movhi_internal): ... here.
14702 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14703 as the source/destination of moves from/to SP.
14704 (movsf): Only allow for AM33-2.
14705 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14706 any integer constant constraint. Only allow for AM33-2. Tidy
14707 all of the alternative outputs.
14708 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14709 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14711 (udivsi3, umodsi3): New patterns for MN103 only.
14713 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14715 * doc/tm.texi.in: Spell out that a lack of register class unions
14717 * doc/tm.texi: Regenerate.
14719 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14721 PR rtl-optimization/47337
14722 * dce.c (check_argument_store): New function.
14723 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14725 PR tree-optimization/47290
14726 * tree-eh.c (infinite_empty_loop_p): New function.
14727 (cleanup_empty_eh): Use it.
14729 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14732 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14733 (a64_expand_widen_sum): Ditto.
14734 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14735 (vec_extract_evenodd_help): Ditto.
14736 (vec_extract_evenv4hi): Ditto.
14737 (vec_extract_oddv4hi): Ditto.
14738 (vec_extract_evenv2si): Ditto.
14739 (vec_extract_oddv2si): Ditto.
14740 (vec_extract_evenv2sf): Ditto.
14741 (vec_extract_oddv2sf): Ditto.
14742 (vec_pack_trunc_v4hi: Ditto.
14743 (vec_pack_trunc_v2si): Ditto.
14744 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14745 (vec_interleave_highv8qi): Ditto.
14747 (vec_extract_oddv8qi): Ditto.
14748 (vec_interleave_lowv4hi): Ditto.
14749 (vec_interleave_highv4hi): Ditto.
14750 (vec_interleave_lowv2si): Ditto.
14751 (vec_interleave_highv2si): Ditto.
14753 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14755 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14756 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14757 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14758 (pa_c_mode_for_suffix): New.
14759 (TARGET_EXPAND_BUILTIN): Define.
14760 (TARGET_C_MODE_FOR_SUFFIX): Define.
14761 (pa_builtins): Define.
14762 (pa_init_builtins): Register __float128 type and init new support
14764 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14765 * config/pa/quadlib.c (_U_Qfcopysign): New.
14767 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14769 PR middle-end/46894
14770 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14771 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14774 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14776 PR tree-optimization/47179
14777 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14778 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14780 2011-01-18 Richard Guenther <rguenther@suse.de>
14782 PR rtl-optimization/47216
14783 * emit-rtl.c: Include tree-flow.h.
14784 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14785 of replicating it with different semantics.
14786 * Makefile.in (emit-rtl.o): Adjust.
14788 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14790 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14791 (cortex_a9_dp): Handle neon types correctly.
14793 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14795 PR rtl-optimization/47299
14796 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14797 subtarget. Use normal multiplication if both operands are constants.
14798 * expmed.c (expand_widening_mult): Don't try to optimize constant
14799 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14802 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14804 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14805 spacing after 'e.g.', typos, comma, hyphenation.
14807 2011-01-17 Richard Henderson <rth@redhat.com>
14809 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14810 (rx_restricted_mem_operand): New.
14811 (rx_shift_operand): Use register_operand.
14812 (rx_source_operand, rx_compare_operand): Likewise.
14813 * config/rx/rx.md (addsi3_flags): New expander.
14814 (adddi3): Rewrite as expander.
14815 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14816 (subsi3_flags): New expander.
14817 (subdi3): Rewrite as expander.
14818 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14820 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14821 (rx_init_builtins): Remove sat builtin.
14822 (rx_expand_builtin): Likewise.
14823 * config/rx/rx.md (ssaddsi3): New.
14824 (*sat): Rename from sat. Represent the CC_REG input.
14826 * config/rx/predicates.md (rshift_operator): New.
14827 * config/rx/rx.c (rx_expand_insv): Remove.
14828 * config/rx/rx-protos.h: Update.
14829 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14830 operand to the canonical position.
14831 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14832 (*bitclr, *bitclr_in_memory): Similarly.
14833 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14834 (insv): Retain the zero_extract in the expansion.
14836 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14837 (bswaphi2, bitinvert, revw): Likewise.
14839 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14840 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14841 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14842 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14843 (bitset, bitset_in_memory): Likewise.
14844 (bitinvert, bitinvert_in_memory): Likewise.
14845 (bitclr, bitclr_in_memory): Likewise.
14846 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14847 (rx_strend, rx_cmpstrn): Likewise.
14848 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14849 (bitop peep2 patterns): Remove.
14851 * config/rx/rx.c (rx_match_ccmode): New.
14852 * config/rx/rx-protos.h: Update.
14853 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14854 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14855 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14856 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14857 (fix_truncsfsi2, floatsisf2): Likewise.
14858 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14859 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14860 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14861 (*subsi3_flags, *xorsi3_flags): New.
14863 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14865 * config/rx/rx.c (rx_print_operand): Remove workaround for
14866 unsplit comparison operations.
14868 * config/rx/rx.md (movsicc): Split after reload.
14869 (*movsicc): Merge *movsieq and *movsine via match_operator.
14870 (*stcc): New pattern.
14872 * config/rx/rx.c (rx_float_compare_mode): Remove.
14873 * config/rx/rx.h (rx_float_compare_mode): Remove.
14874 * config/rx/rx.md (cstoresi4): Split after reload.
14875 (*sccc): New pattern.
14877 * config/rx/predicates.md (label_ref_operand): New.
14878 (rx_z_comparison_operator): New.
14879 (rx_zs_comparison_operator): New.
14880 (rx_fp_comparison_operator): New.
14881 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14882 Validate that the flags are set properly for the comparison.
14883 (rx_gen_cond_branch_template): Remove.
14884 (rx_cc_modes_compatible): Remove.
14885 (mode_from_flags): New.
14886 (flags_from_code): Rename from flags_needed_for_conditional.
14887 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14888 (rx_select_cc_mode): Likewise.
14889 (rx_split_fp_compare): New.
14890 (rx_split_cbranch): New.
14891 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14892 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14893 (*cbranchsf4): Similarly.
14894 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14895 match_operator and rx_split_cbranch.
14896 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14897 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14898 (*cmpsi): Rename from cmpsi.
14899 (*tstsi): Rename from tstsi.
14900 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14901 (*conditional_branch): Rename from conditional_branch.
14902 (*reveresed_conditional_branch): Remove.
14903 (b<code>): Remove expander.
14904 * config/rx/rx-protos.h: Update.
14906 * config/rx/rx.c (rx_compare_redundant): Remove.
14907 * config/rx/rx.md (cmpsi): Don't use it.
14908 * config/rx/rx-protos.h: Update.
14910 * config/rx/rx-modes.def (CC_F): New mode.
14911 * config/rx/rx.c (rx_select_cc_mode): New.
14912 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14913 * config/rx/rx-protos.h: Update.
14915 2011-01-17 Richard Henderson <rth@redhat.com>
14917 * except.c (dump_eh_tree): Fix stray ; after for statement.
14919 2011-01-17 Richard Guenther <rguenther@suse.de>
14921 PR tree-optimization/47313
14922 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14923 handling before copying the body. Properly deal with
14924 by-reference result in SSA form.
14926 2011-01-17 Ian Lance Taylor <iant@google.com>
14929 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14930 (struct_value_alias_set): Don't define.
14931 (sparc_option_override): Don't set sparc_sr_alias_set and
14932 struct_value_alias_set.
14933 (save_or_restore_regs): Use gen_frame_mem rather than calling
14935 (sparc_struct_value_rtx): Likewise.
14937 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14940 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14941 (_mm_maskstore_pd): Likewise.
14942 (_mm_maskload_ps): Likewise.
14943 (_mm_maskstore_ps): Likewise.
14944 (_mm256_maskload_pd): Change mask to __m256i.
14945 (_mm256_maskstore_pd): Likewise.
14946 (_mm256_maskload_ps): Likewise.
14947 (_mm256_maskstore_ps): Likewise.
14949 * config/i386/i386-builtin-types.def: Updated.
14950 (ix86_expand_special_args_builtin): Likewise.
14952 * config/i386/i386.c (bdesc_special_args): Update
14953 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14954 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14955 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14956 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14958 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14959 Use <avxpermvecmode> on mask register.
14960 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14962 2011-01-17 Olivier Hainque <hainque@adacore.com>
14963 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14964 Eric Botcazou <ebotcazou@adacore.com>
14967 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14968 if <= USHRT_MAX in 32-bit mode.
14970 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14972 * doc/install.texi (Configuration, Specific): Wrap long
14973 lines in examples. Allow line wrapping in long options
14974 and URLs where beneficial for PDF output.
14976 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14978 * config/mips/mips.c (mips_classify_symbol): Don't return
14979 SYMBOL_PC_RELATIVE for nonlocal labels.
14981 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14983 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14985 2011-01-15 Jan Hubicka <jh@suse.cz>
14987 PR tree-optimization/47276
14988 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14989 declarations as needed.
14991 2011-01-15 Martin Jambor <mjambor@suse.cz>
14993 * common.opt (fdevirtualize): New flag.
14994 * doc/invoke.texi (Option Summary): Document it.
14995 * opts.c (default_options_table): Add devirtualize flag.
14996 * ipa-prop.c (detect_type_change): Return immediately if
14997 devirtualize flag is not set.
14998 (detect_type_change_ssa): Likewise.
14999 (compute_known_type_jump_func): Likewise.
15000 (ipa_analyze_virtual_call_uses): Likewise.
15002 2011-01-14 Martin Jambor <mjambor@suse.cz>
15004 PR tree-optimization/45934
15005 PR tree-optimization/46302
15006 * ipa-prop.c (type_change_info): New type.
15007 (stmt_may_be_vtbl_ptr_store): New function.
15008 (check_stmt_for_type_change): Likewise.
15009 (detect_type_change): Likewise.
15010 (detect_type_change_ssa): Likewise.
15011 (compute_complex_assign_jump_func): Check for dynamic type change.
15012 (compute_complex_ancestor_jump_func): Likewise.
15013 (compute_known_type_jump_func): Likewise.
15014 (compute_scalar_jump_functions): Likewise.
15015 (ipa_analyze_virtual_call_uses): Likewise.
15016 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15018 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15020 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15021 * config/i386/i386.opt (msse5): New Alias.
15023 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15025 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15026 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15027 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15028 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15030 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15032 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15034 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15035 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15036 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15037 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15039 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15041 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15043 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15045 2011-01-14 Mike Stump <mikestump@comcast.net>
15047 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15048 * config/fr30/fr30.md: Likweise
15049 (movsi_push): Likewise.
15050 (movsi_pop): Likewise.
15051 (enter_func): Likewise.
15052 * config/moxie/moxie.md (movsi_push): Likewise.
15053 (movsi_pop): Likewise.
15055 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15057 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15058 %{no_archive} %{exact_version}.
15059 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15060 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15061 %{no_archive} %{exact_version}.
15062 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15063 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15064 * config/mips/vxworks.h: Likewise.
15066 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15068 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15070 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15072 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15073 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15075 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15077 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15080 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15082 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15084 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15085 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15087 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15088 Don't handle -shlib.
15090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15092 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15093 (CC1_SPEC): Don't handle -profile.
15095 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15097 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15098 * config/mips/mips.h (CC1_SPEC): Likewise.
15100 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15102 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15103 * config/mips/mips.h (CC1_SPEC): Likewise.
15105 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15107 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15108 * config/m32r/linux.h (LINK_SPEC): Likewise.
15109 * config/mips/linux.h (LINK_SPEC): Likewise.
15110 * config/mips/linux64.h (LINK_SPEC): Likewise.
15111 * config/sparc/linux.h (LINK_SPEC): Likewise.
15112 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15113 LINK_SPEC): Likewise.
15114 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15116 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15118 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15120 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15122 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15124 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15125 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15127 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15129 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15131 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15133 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15134 supports -Bstatic/-Bdynamic.
15135 * configure: Regenerate.
15137 2011-01-14 Jan Hubicka <jh@suse.cz>
15138 Jack Howarth <howarth@bromo.med.uc.edu>
15141 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15142 when checking debug_info_level. Test write_symbols instead of
15143 debug_hooks->var_location when setting flag_var_tracking_uninit.
15145 2011-01-14 Richard Guenther <rguenther@suse.de>
15147 PR tree-optimization/47179
15148 * target.def (ref_may_alias_errno): New target hook.
15149 * targhooks.h (default_ref_may_alias_errno): Declare.
15150 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15151 (default_ref_may_alias_errno): New function.
15152 * target.h (struct ao_ref_s): Declare.
15153 * tree-ssa-alias.c: Include target.h.
15154 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15155 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15156 (targhooks.o): Likewise.
15157 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15158 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15160 2011-01-14 Richard Guenther <rguenther@suse.de>
15162 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15164 2011-01-14 Richard Guenther <rguenther@suse.de>
15166 PR tree-optimization/47280
15167 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15168 return CFG changes.
15169 (tree_ssa_forward_propagate_single_use_vars): Deal with
15170 CFG changes from associate_plusminus.
15172 2011-01-14 Richard Guenther <rguenther@suse.de>
15174 PR middle-end/47281
15176 2011-01-11 Richard Guenther <rguenther@suse.de>
15178 PR tree-optimization/46076
15179 * tree-ssa.c (useless_type_conversion_p): Conversions from
15180 unprototyped to empty argument list function types are useless.
15182 2011-01-14 Richard Guenther <rguenther@suse.de>
15184 PR tree-optimization/47286
15185 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15187 2011-01-14 Martin Jambor <mjambor@suse.cz>
15189 PR middle-end/46823
15190 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15192 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15194 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15195 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15196 * config/xtensa/xtensa.c (xtensa_libcall_value,
15197 xtensa_function_value_regno_p): New functions.
15198 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15200 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15203 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15205 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15206 New function prototype.
15207 * config/i386/winnt.c (i386_pe_assemble_visibility):
15208 Warn only if attribute was specified by user.
15210 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15213 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15215 (floatunsdidf2_fcfidu): Ditto.
15217 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15219 * config/s390/s390.c (print_operand_address): Replace 'error' with
15220 'output_operand_lossage'.
15221 (print_operand): Likewise.
15223 2011-01-13 Jeff Law <law@redhat.com>
15225 PR rtl-optimization/39077
15226 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15227 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15228 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15229 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15230 * gcse.c (prune_insertions_deletions): New function.
15231 (compute_pre_data): Use it.
15233 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15236 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15238 (prune_unused_types_mark): Use it.
15240 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15242 PR rtl-optimization/45352
15243 * sel-sched.c: Update copyright years.
15244 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15245 in the advancing loop when we have issued issue_rate insns.
15247 2011-01-12 Richard Henderson <rth@redhat.com>
15249 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15250 (TARGET_MD_ASM_CLOBBERS): New.
15252 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15253 (TARGET_DELEGITIMIZE_ADDRESS): New.
15255 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15256 (clzsi2, *bsch): New patterns.
15258 * config/mn10300/mn10300.md (INT): New mode iterator.
15259 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15261 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15262 flag_split_wide_types.
15264 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15265 (mn10300_trampoline_init): Rewrite without a template, an immediate
15266 load and a direct branch.
15267 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15269 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15271 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15272 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15273 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15274 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15276 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15279 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15282 2011-01-12 Jan Hubicka <jh@suse.cz>
15285 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15286 (PLUGIN_COND_CLOSE): New macro.
15287 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15289 2011-01-12 Richard Guenther <rguenther@suse.de>
15292 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15293 register variables in a MEM_REF.
15295 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15297 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15298 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15299 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15300 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15301 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15302 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15303 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15304 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15305 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15306 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15307 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15308 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15309 * config/gnu-user.h: New. Copied from linux.h.
15310 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15311 GNU_USER_TARGET_STARTFILE_SPEC.
15312 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15313 GNU_USER_TARGET_ENDFILE_SPEC.
15314 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15315 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15316 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15317 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15318 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15319 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15320 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15321 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15322 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15323 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15324 * config/arm/linux-eabi.h (CC1_SPEC): Use
15325 GNU_USER_TARGET_CC1_SPEC.
15326 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15327 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15328 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15329 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15330 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15331 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15332 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15333 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15335 2011-01-12 Richard Guenther <rguenther@suse.de>
15338 * doc/invoke.texi (ffast-math): Document it is turned on
15341 2011-01-12 Jan Hubicka <jh@suse.cz>
15343 PR tree-optimization/47233
15344 * opts.c (common_handle_option): Disable ipa-reference with profile
15347 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15349 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15352 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15354 * c-parser.c (c_lex_one_token): Updated and reindented some
15355 comments. No changes in code.
15357 2011-01-11 Ian Lance Taylor <iant@google.com>
15359 * godump.c (go_output_var): Don't output the variable if there is
15360 already a type with the same name.
15362 2011-01-11 Ian Lance Taylor <iant@google.com>
15364 * godump.c (go_format_type): Don't generate float80.
15366 2011-01-11 Richard Henderson <rth@redhat.com>
15368 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15369 declaration. Rewrite for both speed and size.
15370 (mn10300_address_cost_1): Remove.
15371 (mn10300_register_move_cost): New.
15372 (mn10300_memory_move_cost): New.
15373 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15374 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15375 extensions, shifts, BSWAP, CLZ.
15376 (mn10300_wide_const_load_uses_clr): Remove.
15377 (TARGET_REGISTER_MOVE_COST): New.
15378 (TARGET_MEMORY_MOVE_COST): New.
15379 * config/mn10300/mn10300-protos.h: Update.
15380 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15382 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15383 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15384 * config/mn10300/mn10300-protos.h: Update.
15385 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15386 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15387 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15388 (*test_int_bitfield, *test_byte_bitfield): Remove.
15389 (*bit_test, *subreg_bit_test): Remove.
15390 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15392 * config/mn10300/constraints.md ("c"): Rename from "A".
15393 ("A", "D"): New constraint letters.
15394 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15395 (fmssf4, fnmasf4, fnmssf4): Likewise.
15397 * config/mn10300/mn10300.md (isa): New attribute.
15398 (enabled): New attribute.
15400 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15401 (abssf2, negsf2): Define only for hardware fp.
15402 (sqrtsf2): Reformat.
15403 (addsf3, subsf3, mulsf3): Merge expander and insn.
15405 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15406 (DEBUGGER_AUTO_OFFSET): Remove.
15407 (DEBUGGER_ARG_OFFSET): Remove.
15409 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15410 Emit register stores with the same offsets as the hardware.
15411 (mn10300_store_multiple_operation): Don't check that the register
15412 save offsets are monotonic.
15413 * config/mn10300/mn10300-protos.h: Update.
15415 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15417 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15418 in terms of the value on the stack, not the MDR register.
15420 2011-01-11 Jan Hubicka <jh@suse.cz>
15424 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15425 (symbol_alias_set_destroy, symbol_alias_set_contains,
15426 propagate_aliases_backward): Declare.
15427 * lto-streamer-out.c (struct sets): New sturcture.
15428 (trivally_defined_alias): New function.
15429 (output_alias_pair_p): Rewrite.
15430 (output_unreferenced_globals): Fix output of alias pairs.
15431 (produce_symtab): Likewise.
15432 * ipa.c (function_and_variable_visibility): Set weak alias destination
15434 * varasm.c (symbol_alias_set_t): Remove.
15435 (symbol_alias_set_destroy): Export.
15436 (propagate_aliases_forward, propagate_aliases_backward): New functions
15438 (compute_visible_aliases): ... this one; remove.
15439 (trivially_visible_alias): New
15440 (trivially_defined_alias): New.
15441 (remove_unreachable_alias_pairs): Rewrite.
15442 (finish_aliases_1): Reorganize code checking if alias is defined.
15443 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15446 2011-01-11 Richard Guenther <rguenther@suse.de>
15448 PR tree-optimization/46076
15449 * tree-ssa.c (useless_type_conversion_p): Conversions from
15450 unprototyped to empty argument list function types are useless.
15452 2011-01-11 Richard Guenther <rguenther@suse.de>
15454 PR middle-end/45235
15455 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15456 volatile MEMs as MEM_READONLY_P.
15458 2011-01-11 Richard Guenther <rguenther@suse.de>
15460 PR tree-optimization/47239
15461 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15463 2011-01-11 Jeff Law <law@redhat.com>
15465 PR tree-optimization/47086
15466 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15467 IVs from statements that might throw.
15469 2011-01-10 Jan Hubicka <jh@suse.cz>
15472 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15474 2011-01-10 Jan Hubicka <jh@suse.cz>
15477 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15478 when correcting profile.
15480 2011-01-10 Jan Hubicka <jh@suse.cz>
15483 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15484 DECL_FINI_PRIORITY.
15485 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15486 Restore DECL_FINI_PRIORITY.
15488 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15490 * doc/gimple.texi: Fix quoting of multi-word return values in
15491 @deftypefn statements. Ensure presence of return value. Wrap
15492 overlong @deftypefn lines.
15493 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15494 descriptions of removed functions.
15495 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15496 of multi-word return value in @deftypefn statement.
15498 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15500 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15501 (Conditional Expressions, Logical Operators)
15502 (Statement and operand traversals): Do not indent smallexample
15503 code. Fix duplicate function argument in example.
15505 2011-01-10 Jeff Law <law@redhat.com>
15507 PR tree-optimization/47141
15508 * ipa-split.c (split_function): Handle case where we are
15509 returning a value and the return block has a virtual operand phi.
15511 2011-01-10 Jan Hubicka <jh@suse.cz>
15513 PR tree-optimization/47234
15514 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15515 (pass_feedback_split_functions): Declare.
15516 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15518 * ipa-split.c (gate_split_functions): Update comments; disable
15519 split-functions for profile_arc_flag and branch_probabilities.
15520 (gate_feedback_split_functions): New function.
15521 (execute_feedback_split_functions): New function.
15522 (pass_feedback_split_functions): New global var.
15524 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15527 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15528 calling gimple_call_set_cannot_inline.
15530 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15532 * config/darwin-sections.def: Remove unused section.
15534 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15537 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15539 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15542 * c-parser.c (c_parser_declaration_or_fndef): Improved
15545 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15547 * config/i386/winnt.c (i386_pe_start_function): Make sure
15548 to switch back to function's section.
15550 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15554 * plugin.c: Move include of dlfcn.h from here...
15555 * system.h: ... to here.
15557 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15559 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15561 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15562 two extra empty pages in PDF output.
15564 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15567 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15568 for error recovery purposes behave as if it was not specified so
15569 that the default type is usd.
15571 2011-01-07 Jan Hubicka <jh@suse.cz>
15573 PR tree-optmization/46469
15574 * ipa.c (function_and_variable_visibility): Clear needed flags on
15575 nodes with external decls; handle weakrefs merging correctly.
15577 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15579 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15582 2011-01-07 Jan Hubicka <jh@suse.cz>
15584 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15585 and no longer claim that gold is required for linker plugin.
15586 * configure: Regenerate.
15587 * gcc.c (PLUGIN_COND): New macro.
15588 (LINK_COMMAND_SPEC): Use it.
15589 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15590 * config.in (HAVE_LTO_PLUGIN): New.
15591 * configure.ac (--with-lto-plugin): New parameter; autodetect
15594 2011-01-07 Jan Hubicka <jh@suse.cz>
15596 PR tree-optimization/46367
15597 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15598 when we can update original.
15599 (cgraph_mark_inline_edge): Sanity check.
15600 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15602 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15604 * config/spu/spu.h (ASM_COMMENT_START): Define.
15606 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15609 * gcc.c (%>S): New.
15610 (SWITCH_KEEP_FOR_GCC): Likewise.
15611 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15612 (do_spec_1): Handle "%>".
15614 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15616 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15619 * config/i386/i386.c (ix86_delegitimize_address): If
15620 simplify_gen_subreg fails, return orig_x.
15623 * value-prof.c (gimple_stringop_fixed_value): Handle
15624 lhs of the call properly.
15626 2011-01-07 Jan Hubicka <jh@suse.cz>
15629 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15631 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15633 * target.def (function_switched_text_sections): New hook.
15634 * doc/tm.texi: Regenerated.
15635 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15636 * final.c (default_function_switched_text_sections): New.
15637 (final_scan_insn): Call function_switched_text_sections when a
15638 mid-function section change occurs.
15639 * output.h (default_function_switched_text_sections): Declare.
15640 * config/darwin-protos.h (darwin_function_switched_text_sections):
15642 * config/darwin.c (darwin_function_switched_text_sections): New.
15643 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15645 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15647 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15648 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15649 the secondary code fragment when outputting for DWARF == 2.
15651 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15653 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15654 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15656 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15657 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15659 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15662 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15663 when it is not empty.
15665 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15668 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15669 (case ${target}): Add btver1.
15670 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15671 -march=native recognize btver1 processors.
15672 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15673 btver1 def_and_undef
15674 * config/i386/i386.c (struct processor_costs btver1_cost): New
15676 (m_BTVER1): New definition.
15677 (m_AMD_MULTIPLE): Includes m_BTVER1.
15678 (initial_ix86_tune_features): Add btver1 tune.
15679 (processor_target_table): Add btver1 entry.
15680 (static const char *const cpu_names): Add btver1 entry.
15681 (software_prefetching_beneficial_p): Add btver1.
15682 (ix86_option_override_internal): Add btver1 instruction sets.
15683 (ix86_issue_rate): Add btver1.
15684 (ix86_adjust_cost): Add btver1.
15685 * config/i386/i386.h (TARGET_BTVER1): New definition.
15686 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15687 (enum processor_type): Add PROCESSOR_BTVER1.
15688 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15690 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15693 * config/i386/i386.c (legitimize_tls_address)
15694 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15695 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15696 (tls_initial_exec_64_sun): New pattern.
15698 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15700 * doc/invoke.texi (Overall Options): Improve wording and markup
15701 of the description of -wrapper.
15703 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15705 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15706 rdynamic, threads): New Driver options.
15708 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15711 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15712 if coming from .tdata.
15713 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15715 2011-01-06 Jan Hubicka <jh@suse.cz>
15718 * collect2.c (main): Do not enable LTOmode when plugin is active.
15720 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15723 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15724 --version output if supported.
15725 * configure: Regenerate.
15727 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15729 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15732 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15735 * c-convert.c (convert): When converting a complex expression
15736 other than COMPLEX_EXPR to a different complex type, ensure
15737 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15738 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15739 when converting COMPLEX_TYPE.
15741 2011-01-06 Ira Rosen <irar@il.ibm.com>
15743 PR tree-optimization/47139
15744 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15745 only the last reduction value is used outside the loop. Update
15748 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15750 * config/rtems.opt: New.
15751 * config.gcc (*-*-rtems*): Use rtems.opt.
15753 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15755 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15756 processors do not support 3DNow instructions.
15758 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15760 * config/spu/spu.c (spu_option_override): Set parameter
15761 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15763 2011-01-05 Jan Hubicka <jh@suse.cz>
15765 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15766 at the command line.
15768 2011-01-05 Martin Jambor <mjambor@suse.cz>
15771 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15772 deltas on streamed outgoing edges.
15773 (output_node_opt_summary): Output info for outgoing edges only when
15774 the node is in new parameter set.
15775 (output_cgraph_opt_summary): New parameter set, passed to the two
15776 aforementioned functions. Update its forward declaration and its
15779 2011-01-05 Tom Tromey <tromey@redhat.com>
15781 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15782 operator to c_finish_omp_atomic.
15783 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15784 (build_unary_op): Update.
15785 (build_modify_expr): Update.
15786 (build_asm_expr): Update.
15788 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15790 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15791 newly inserted insns.
15792 (pad_bb): Likewise.
15793 (spu_emit_branch_hint): Likewise.
15794 (insert_hbrp_for_ilb_runout): Likewise.
15795 (spu_machine_dependent_reorg): Call df_finish_pass after
15796 schedule_insns returns.
15798 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15800 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15802 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15804 PR tree-optimization/47005
15805 * tree-sra.c (struct access): Add 'non_addressable' bit.
15806 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15807 (decide_one_param_reduction): Return 0 if the parameter is passed by
15808 reference and one of the accesses in the group is non_addressable.
15810 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15812 PR tree-optimization/47056
15813 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15814 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15815 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15817 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15819 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15820 initializer. Skip view conversions from aggregate types.
15822 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15825 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15827 2011-01-04 Philipp Thomas <pth@suse.de>
15829 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15832 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15834 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15835 on empty epilogue sequences.
15837 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15839 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15840 non-static): New Driver options.
15842 2011-01-04 Jie Zhang <jie@codesourcery.com>
15845 * gcc.c (default_compilers[]): Set combinable field to 0
15846 for all assembly languages.
15848 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15850 * config/mips/loongson3a.md: New file.
15851 * config/mips/mips.md: Include loongson3a.md.
15852 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15855 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15857 PR middle-end/47017
15858 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15859 instead of convert_memory_address_addr_space on the base expression.
15861 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15863 * config/spu/spu.c (spu_option_override): Update error text
15864 for bad -march= / -mtune= values.
15866 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15868 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15869 if branch-hint optimization will be performed.
15871 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15873 PR tree-optimization/47148
15874 * ipa-split.c (split_function): Convert arguments to
15875 DECL_ARG_TYPE if possible.
15877 PR tree-optimization/47155
15878 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15879 when computing uns.
15881 PR rtl-optimization/47157
15882 * combine.c (try_combine): If undobuf.other_insn becomes
15883 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15884 and set *new_direct_jump_p too.
15886 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15888 PR tree-optimization/47021
15889 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15891 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15893 * gcc.c (process_command): Update copyright notice dates.
15894 * gcov.c (print_version): Likewise.
15895 * gcov-dump.c (print_version): Likewise.
15896 * mips-tfile.c (main): Likewise.
15897 * mips-tdump.c (main): Likewise.
15899 2011-01-03 Martin Jambor <mjambor@suse.cz>
15901 PR tree-optimization/46801
15902 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15903 aggregate fields start at byte boundary instead of the bit-field flag.
15905 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15908 * gcc.c (main): Revert revision 168407.
15910 2011-01-03 Martin Jambor <mjambor@suse.cz>
15912 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15914 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15916 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15917 vector optab to expand vector/scalar shift, update gimple to vector.
15919 2011-01-03 Martin Jambor <mjambor@suse.cz>
15921 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15924 2011-01-03 Martin Jambor <mjambor@suse.cz>
15926 PR tree-optimization/46984
15927 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15929 (cgraph_create_indirect_edge): Fixed line length.
15930 (cgraph_indirect_call_info): Declare.
15931 (cgraph_make_edge_direct) Update declaration.
15932 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15933 (cgraph_create_indirect_edge): Use it.
15934 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15936 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15937 the new thunk_delta representation.
15938 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15940 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15941 (ipa_read_indirect_edge_info): Likewise.
15942 * lto-cgraph.c (output_edge_opt_summary): New function.
15943 (output_node_opt_summary): Call it on all outgoing edges.
15944 (input_edge_opt_summary): New function.
15945 (input_node_opt_summary): Call it on all outgoing edges.
15947 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15950 * gcc.c (main): Don't check have_o when settting combine_inputs.
15952 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15954 * regrename.c: Add general comment describing the pass.
15955 (struct du_head): Remove 'length' field.
15956 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15957 (regrename_optimize): Do not sort chains. Rework comments, add others.
15958 Force renaming to the preferred class (if any) in the first pass and do
15959 not consider registers that belong to it in the second pass.
15960 (create_new_chain): Do not set 'length' field.
15961 (scan_rtx_reg): Likewise.
15963 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15965 PR tree-optimization/47140
15966 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15967 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15968 to bit_value_binop.
15970 PR rtl-optimization/47028
15971 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15972 parm_birth_insn instead of at the beginning of first bb.
15974 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15976 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15977 Remove the word "see" before "@pxref".
15978 * doc/rtl.texi: Remove the word "see" before "@pxref".
15980 2011-01-01 Jan Hubicka <jh@suse.cz>
15982 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15985 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15988 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15991 Copyright (C) 2011 Free Software Foundation, Inc.
15993 Copying and distribution of this file, with or without modification,
15994 are permitted in any medium without royalty provided the copyright
15995 notice and this notice are preserved.