1 2011-05-05 Julian Brown <julian@codesourcery.com>
3 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4 parenthesis in D-register case.
6 2011-05-05 Joseph Myers <joseph@codesourcery.com>
8 * opt-functions.awk (var_type_struct): Handle Enum options.
9 * optc-gen.awk: Don't check range of variables of character type.
10 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
11 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
12 rs6000_sdata_name, rs6000_explicit_options): Remove.
13 (rs6000_option_override_internal): Check for -malign-power here.
14 Use global_options_set instead of rs6000_explicit_options.
15 (rs6000_parse_fpu_option): Remove.
16 (rs6000_handle_option): Access variables via opts and opts_set
17 pointers. Use error_at and warning_at. Add fall-through
18 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
19 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
20 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
21 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
22 here. Don't use rs6000_parse_fpu_option.
23 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
24 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
25 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
27 (mspe): Use Var and Save.
28 (mtraceback=): Use Enum and Var.
29 (rs6000_traceback_type): New Enum and EnumValue entries.
30 (mfloat-gprs=): Use Enum, Var and Save.
31 (rs6000_float_gprs): New Enum and EnumValue entries.
32 (mlong-double-): use Var and Save.
33 (msched-costly-dep=, minsert-sched-nops=): Use Var.
34 (malign-): Use Enum and Var.
35 (rs6000_alignment_flags): New Enum and EnumValue entries.
37 (fpu_type_t): New Enum and EnumValue entries.
38 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
39 global_options_set instead of rs6000_explicit_options.
40 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
41 global_options_set instead of rs6000_explicit_options.
42 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
43 global_options_set instead of rs6000_explicit_options.
44 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
45 global_options_set instead of rs6000_explicit_options.
46 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
47 global_options_set instead of rs6000_explicit_options.
48 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
49 global_options_set instead of rs6000_explicit_options.
50 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
52 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
53 global_options_set instead of rs6000_explicit_options.
54 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
55 (rs6000_cmodel): New Enum and EnumValue entries.
56 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
57 global_options_set instead of rs6000_explicit_options.
58 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
59 (mtls-size=): Use Enum and Var.
60 (rs6000_tls_size): New Enum and EnumValue entries.
62 2011-05-05 Michael Matz <matz@suse.de>
64 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
65 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
66 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
67 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
68 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
69 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
70 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
71 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
72 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
73 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
74 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
75 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
76 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
77 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
78 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
79 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
81 2011-05-05 Richard Guenther <rguenther@suse.de>
83 * expmed.c (expand_variable_shift): Rename to ...
84 (expand_shift_1): ... this. Take an expanded shift amount.
85 For rotates recurse directly not building trees for the shift amount.
86 (expand_variable_shift): Wrap around expand_shift_1.
87 (expand_shift): Adjust.
89 2011-05-05 Jakub Jelinek <jakub@redhat.com>
91 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
93 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
95 * tree.h (get_pending_sizes): Remove prototype.
96 (put_pending_size): Likewise.
97 (put_pending_sizes): Likewise.
98 * stor-layout.c (pending_sizes): Delete.
99 (get_pending_sizes): Likewise.
100 (put_pending_size): Likewise.
101 (put_pending_sizes): Likewise.
102 (variable_size): Do not call put_pending_size and tidy up.
103 * function.h (struct function): Remove dont_save_pending_sizes_p.
104 * lto-streamer-in.c (input_function): Do not stream it.
105 * lto-streamer-out.c (output_function): Likewise.
106 * tree-inline.c (initialize_cfun): Do not copy it.
107 * c-decl.c (store_parm_decls): Do not set it.
108 * omp-low.c (create_task_copyfn): Likewise.
109 * tree-optimize.c (tree_rest_of_compilation): Likewise.
111 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
113 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
115 (*movdf_internal): Ditto.
116 (*movdf_internal_nointeger): Ditto.
117 (*movsf_internal): Ditto.
119 2011-05-05 Joseph Myers <joseph@codesourcery.com>
121 * c-decl.c (finish_decl): Don't call get_pending_sizes.
122 (grokparm): Add parameter expr. Pass it to grokdeclarator.
123 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
124 (c_variable_size): Remove.
125 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
126 call put_pending_sizes.
127 (get_parm_info): Add parameter expr. Use it to set
128 arg_info->pending_sizes.
129 (store_parm_decls): Use arg_info->pending_sizes instead or calling
131 * c-parser.c (c_parser_parms_declarator): Update call to
132 c_parser_parms_list_declarator.
133 (c_parser_parms_list_declarator): Take parameter expr. Update
134 call to push_parm_decl. Update recursive call. Don't call
135 get_pending_sizes. Update calls to get_parm_info.
136 (c_parser_objc_method_definition): Update calls to
137 c_parser_objc_method_decl and objc_start_method_definition.
138 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
139 (c_parser_objc_method_decl): Add parameter expr. Update call to
141 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
142 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
143 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
145 2011-05-05 Michael Hope <michael.hope@linaro.org>
148 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
151 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
153 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
154 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
155 (spu_output_mi_thunk): New function.
157 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
159 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
160 targetm.asm_out.print_operand.
161 * config/sol2.c: Include target.h.
163 2011-05-04 Jan Hubicka <jh@suse.cz>
165 * ipa-inline.c (reset_edge_caches): New function.
166 (update_caller_keys): Add check_inlinablity_for; do not
167 reset edge caches; remove now unnecesary loop.
168 (update_callee_keys): Add comments; reset node_growth_cache of callee.
169 (update_all_callee_keys): Likewise.
170 (inline_small_functions): Sanity check cache; update code
173 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
175 PR rtl-optimization/47612
176 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
177 as the last insn of the sequence to be moved.
179 2011-05-04 Tobias Burnus <burnus@net-b.de>
182 * doc/invoke.texi (Ofast): Document that it
183 enables Fortran's -fno-protect-parens.
185 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
187 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
189 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
191 * stor-layout.c (variable_size): Do not issue errors.
193 2011-05-04 Richard Guenther <rguenther@suse.de>
195 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
196 for array-ref indices.
197 (tree_coverage_counter_addr): Likewise.
198 (build_fn_info_type): Use size_int for index types.
199 (build_gcov_info): Likewise.
201 2011-05-04 Richard Guenther <rguenther@suse.de>
203 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
205 * c-typeck.c (really_start_incremental_init): Use bitsize_int
206 for constructor indices.
207 (push_init_level): Likewise.
209 2011-05-04 Richard Guenther <rguenther@suse.de>
211 * explow.c (promote_mode): Move variable declarations before code.
213 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
215 * tree.h (build_function_type_array): Declare.
216 (build_varargs_function_type_array): Declare.
217 (build_function_type_vec, build_varargs_function_type_vec): Define.
218 * tree.c (build_function_type_array_1): New function.
219 (build_function_type_array): New function.
220 (build_varargs_function_type_array): New function.
222 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
224 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
225 before setting STMT_VINFO_TYPE.
227 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
229 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
230 instead of spu_pass_by_reference.
232 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
234 * calls.c (emit_library_call_value_1): Invoke
235 promote_function_mode hook on libcall arguments.
236 * explow.c (promote_function_mode, promote_mode): Handle TYPE
238 * targhooks.c (default_promote_function_mode): Lisewise.
239 * config/s390/s390.c (s390_promote_function_mode): Likewise.
240 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
242 * doc/tm.texi: Document that TYPE argument might be NULL.
244 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
246 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
248 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
251 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
253 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
255 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
256 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
258 * mips-tfile.c: ... here.
259 Don't include coretypes.h, tm.h, filenames.h.
260 (saber_stop): Remove definition and all calls.
262 (__LINE__): Remove default.
263 (Size_t, Ptrdiff_t): Remove definitions.
264 Replace by size_t, ptrdiff_t.
265 [!MIPS_DEBUGGING_INFO]: Remove.
266 (SHASH_SIZE, THASH_SIZE): Remove defaults.
267 (progname): Add const.
269 Replace all uses by static.
270 (ALIGN_SYMTABLE_OFFSET): Remove default.
271 * mips-tdump.c: Don't include coretypes.h, tm.h.
272 Remove !MIPS_IS_STAB guard.
273 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
274 $(TM_H), filenames.h dependencies.
275 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
277 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
280 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
281 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
283 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
286 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
287 account and save/restore RETS.
288 (PROFILE_BEFORE_PROLOGUE): Define.
289 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
290 the push insn to use predecrement.
292 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
295 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
297 2011-05-04 Nick Clifton <nickc@redhat.com>
299 * config/mn10300/mn10300.c: Include cfgloop.h.
301 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
302 Lcc or a FLcc insn into the instruction stream.
303 (mn10300_block_contains_call): New function. Returns true if the
304 given basic block contains a CALL insn.
305 (mn10300_loop_contains_call_insn): New function. Returns true if
306 the given loop contains a CALL insn.
307 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
308 to use the SETLB and Lcc or FLcc insns.
309 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
310 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
311 * config/mn10300/mn10300.opt (msetlb): New option. Used to
312 disable the SETLB optimization.
313 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
314 __SETLB__ or __NO_SETLB__.
315 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
316 (movsf_internal): Handle MDR register.
317 (cmpsi): Make visible.
318 (setlb): New pattern.
322 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
325 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
327 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
328 (vec_concatv2di_rex64_sse): Ditto.
329 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
330 (*vec_extractv2di_1_rex64): Ditto.
333 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
335 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
337 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
339 2011-05-04 Richard Guenther <rguenther@suse.de>
341 * tree.h (int_const_binop): Remove notrunc argument.
342 * fold-const.c (int_const_binop): Remove notrunc argument. Always
343 create integer constants that are properly truncated.
344 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
345 (const_binop): Remove zero notrunc argument to int_const_binop.
346 (size_binop_loc): Likewise.
347 (fold_div_compare): Likewise.
348 (maybe_canonicalize_comparison_1): Likewise.
349 (fold_comparison): Likewise.
350 (fold_binary_loc): Likewise.
351 (multiple_of_p): Likewise.
352 * expr.c (store_constructor): Likewise.
353 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
354 (maybe_fold_stmt_addition): Likewise.
355 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
356 * stor-layout.c (layout_type): Likewise.
357 * tree-data-ref.c (tree_fold_divides_p): Likewise.
358 * tree-sra.c (build_ref_for_offset): Likewise.
359 (build_user_friendly_ref_for_offset): Likewise.
360 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
361 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
362 * tree-ssa-loop-niter.c (inverse): Likewise.
363 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
364 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
365 * tree-switch-conversion.c (check_range): Likewise.
366 (build_constructors): Likewise.
367 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
368 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
369 (extract_range_from_assert): Likewise.
370 (vrp_int_const_binop): Likewise.
371 (extract_range_from_binary_expr): Likewise.
372 (extract_range_from_unary_expr): Likewise.
373 (check_array_ref): Likewise.
374 (find_case_label_range): Likewise.
375 (simplify_div_or_mod_using_ranges): Likewise.
376 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
377 comparing case labels for merging.
379 2011-05-03 Mark Wielaard <mjw@redhat.com>
381 * dwarf2out.c (debug_str_hash_forced): Removed.
382 (gen_label_for_indirect_string): Removed.
383 (get_debug_string_label): Removed.
384 (AT_string_form): Generate label directly.
385 (output_indirect_string): Test indirect_string_node for
386 DW_FORM_strp instead of checking label and refcount.
387 (prune_indirect_string): Removed.
388 (prune_unused_types): Don't check debug_str_hash_forced or
389 call prune_indirect_string.
391 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
394 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
396 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
400 * combine.c (try_combine): Skip debug insns at m_split tests.
402 2011-04-26 Mark Wielaard <mjw@redhat.com>
405 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
406 when info_section_emitted.
408 2011-05-03 Joseph Myers <joseph@codesourcery.com>
410 * config/mips/mips-opts.h: New.
411 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
413 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
414 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
415 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
417 * config/mips/mips.h (enum mips_code_readable_setting): Move to
419 (mips_abi, mips_code_readable): Don't declare.
420 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
421 (mabi=): Use Enum and Var.
422 (mips_abi): New Enum and EnumValue entries.
423 (mcode-readable=): Use Enum and Var.
424 (mips_code_readable_setting): New Enum and EnumValue entries.
425 (mr10k-cache-barrier=): Use Enum and Var.
426 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
428 2011-05-03 Jan Hubicka <jh@suse.cz>
430 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
431 replace hash by pointer map.
432 (cgraph_node_set_element_def, cgraph_node_set_element,
433 const_cgraph_node_set_element, varpool_node_set_element_def,
434 varpool_node_set_element, const_varpool_node_set_element): Remove.
435 (free_cgraph_node_set, free_varpool_node_set): New function.
436 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
437 * tree-emutls.c: Free varpool node set.
438 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
439 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
440 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
441 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
442 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
443 Move here from ipa.c; implement using pointer_map
444 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
445 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
446 debug_cgraph_node_set, varpool_node_set_new,
447 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
448 dump_varpool_node_set, debug_varpool_node_set):
450 * passes.c (ipa_write_summaries): Update.
452 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
455 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
456 bf542/bf544/bf547/bf548/bf549.
458 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
460 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
462 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
465 * config/bfin/bfin.md (MOVCC): New mode_macro.
466 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
467 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
468 comments from generated assembly.
470 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
473 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
474 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
475 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
476 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
477 * config/bfin/lib1funcs.asm (___muldi3): New function.
479 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
481 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
482 build_function_type_list instead of build_function_type.
483 Rearrange initialization of `args' to do so.
485 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
487 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
488 instead of build_function_type.
490 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
492 * config/rs6000/rs6000.c (spe_init_builtins): Call
493 build_function_type_list instead of build_function_type.
494 (paired_init_builtins, altivec_init_builtins): Likewise.
495 (builtin_function_type): Likewise.
497 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
499 * config/sh/sh.c (sh_media_init_builtins): Call
500 build_function_type_list instead of build_function_type.
502 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
504 * config/sparc/sparc.c (sparc_file_end): Call
505 build_function_type_list instead of build_function_type.
507 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
509 * config/alpha/alpha.c (alpha_init_builtins): Call
510 build_function_type_list instead of build_function_type.
512 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
514 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
515 build_function_type_list instead of build_function_type.
517 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
519 * config/iq2000/i2000.c (iq2000_init_builtins): Call
520 build_function_type_list instead of build_function_type.
521 Delete `endlink' variable.
523 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
525 * config/avr/avr.c (avr_init_builtins): Call
526 build_function_type_list instead of build_function_type.
528 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
530 * config/picochip/picochip.c (picochip_init_builtins): Call
531 build_function_type_list instead of build_function_type.
532 Delete `endlink' variable.
534 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
536 * config/bfin/bfin.c (bfin_init_builtins): Call
537 build_function_type_list instead of build_function_type.
539 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
542 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
543 that's not CONST_INT. Seemingly redundant check is due to PR39768.
545 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
548 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
549 libbffastfp overrides libgcc when -mfast-fp.
551 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
553 Originally from Bernd Schmidt
554 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
555 * config/bfin/bfin.c (override_options): Test it and error if
558 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
560 Originally From Bernd Schmidt
561 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
564 2011-05-03 Jeff Law <law@redhat.com>
566 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
567 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
568 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
569 than accessing AUX field directly. Free the AUX field before
571 (thread_block, thread_through_loop_header): Likewise.
572 (thread_single_edge, mark_threaded_blocks): Likewise.
573 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
574 (register_jump_thread): Do not attempt to thread to a NULL edge.
576 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
578 * function.c (init_function_start): Call decide_function_section.
579 * varasm.c (decide_function_section): New function.
580 (assemble_start_function): When not using
581 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
582 or first_function_block_is_cold.
583 * rtl.h (decide_function_section): Declare.
585 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
586 Jakub Jelinek <jakub@redhat.com>
589 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
590 only succeed if req_mode is the same as set_mode.
592 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
594 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
595 * genemit.c (gen_exp): Handle RETURN.
596 * emit-rtl.c (verify_rtx_sharing): Likewise.
597 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
598 * rtl.c (copy_rtx): RETURN is shared.
599 * rtl.h (enum global_rtl_index): Add GR_RETURN.
601 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
602 * config/s390/s390.c (s390_emit_epilogue): Likewise.
603 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
604 * config/cris/cris.c (cris_expand_return): Likewise.
605 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
606 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
607 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
608 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
609 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
611 * config/v850/v850.c (expand_epilogue): Likewise.
612 * config/bfin/bfin.c (bfin_expand_call): Likewise.
613 * config/arm/arm.md (epilogue): Likewise.
614 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
615 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
618 2011-05-03 Richard Guenther <rguenther@suse.de>
621 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
622 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
623 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
625 2011-05-03 Richard Guenther <rguenther@suse.de>
627 * c-decl.c (grokdeclarator): Instead of looking at
628 TREE_OVERFLOW check if the constant fits in the index type.
630 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
632 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
633 (vec_store_lanes<mode><mode>): Likewise.
635 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
637 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
638 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
639 convert_optab_index values.
640 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
641 * genopinit.c (optabs): Initialize the new optabs.
642 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
643 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
644 (expand_STORE_LANES): New functions.
645 * tree.h (build_array_type_nelts): Declare.
646 * tree.c (build_array_type_nelts): New function.
647 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
648 (vect_model_load_cost): Likewise.
649 (vect_store_lanes_supported, vect_load_lanes_supported)
650 (vect_record_strided_load_vectors): Declare.
651 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
652 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
653 (vect_transform_strided_load): Split out statement recording into...
654 (vect_record_strided_load_vectors): ...this new function.
655 * tree-vect-stmts.c (create_vector_array, read_vector_array)
656 (write_vector_array, create_array_ref): New functions.
657 (vect_model_store_cost): Add store_lanes_p argument.
658 (vect_model_load_cost): Add load_lanes_p argument.
659 (vectorizable_store): Try to use store-lanes functions for
661 (vectorizable_load): Likewise load-lanes and loads.
662 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
663 to vect_model_store_cost.
664 (vect_build_slp_tree): Likewise vect_model_load_cost.
666 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
668 * hooks.h (hook_bool_mode_uhwi_false): Declare.
669 * hooks.c (hook_bool_mode_uhwi_false): New function.
670 * target.def (array_mode_supported_p): New hook.
671 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
672 * doc/tm.texi: Regenerate.
673 * stor-layout.c (mode_for_array): New function.
674 (layout_type): Use it.
675 * config/arm/arm.c (arm_array_mode_supported_p): New function.
676 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
678 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
681 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
682 for -fstack-check if the size to allocate is negative.
684 2011-05-02 Lawrence Crowl <crowl@google.com>
686 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
687 (timevar_cond_start): New for starting a timer only when it is not
689 (timevar_cond_stop): New for stopping a timer when it was not already
692 * timevar.c (timevar_stop): Enable start/stop timers to start again.
693 (timevar_cond_start): New as above.
694 (timevar_cond_stop): New as above.
696 * timevar.def: Add start/stop timers for compiler phases,
697 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
698 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
699 and TV_PHASE_FINALIZE.
700 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
701 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
702 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
703 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
704 Make unused TV_OVERLOAD into a start/stop timer.
706 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
707 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
708 to indicate that they are start/stop timers.
710 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
711 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
712 Move initialization to do_compile.
713 (do_compile): Add initialization from above.
714 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
716 * c-decl.c (c_write_global_declarations): Add start/stop of
717 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
719 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
720 or TV_PARSE_INLINE, as appropriate.
721 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
722 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
724 2011-05-02 Jason Merrill <jason@redhat.com>
727 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
729 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
732 * c-decl.c (finish_decl): Only create a composite if the types are
735 2011-05-02 Joseph Myers <joseph@codesourcery.com>
737 * config/fr30/fr30-protos.h (Mmode): Don't define.
738 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
739 definition where used.
740 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
741 define. Expand definitions where used.
742 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
743 Expand definitions where used.
744 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
745 rx_function_arg, rx_function_arg_advance,
746 rx_function_arg_boundary): Expand definitions of those macros.
747 * config/v850/v850-protos.h (Mmode): Don't define. Expand
748 definition where used.
750 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
752 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
754 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
755 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
756 with *movv2sf_internal_rex64_avx.
757 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
758 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
759 Use %v prefix in insn mnemonic to handle TARGET_AVX.
760 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
761 "vex" in "prefix" attribute calculation.
762 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
764 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
767 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
768 inputs match the output.
770 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
773 * config/m68k/m68k.c (m68k_expand_prologue): Set
774 current_function_static_stack_size.
776 2011-05-02 Jan Hubicka <jh@suse.cz>
778 * lto-streamer.c (lto_streamer_cache_insert_1,
779 lto_streamer_cache_lookup, lto_streamer_cache_create,
780 lto_streamer_cache_delete): Use pointer map instead of hashtable.
781 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
783 2011-05-02 Joseph Myers <joseph@codesourcery.com>
785 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
786 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
787 config/m68k/t-opts: New files.
788 * config/m68k/m68k-tables.opt: New file (generated).
789 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
790 extra_options and m68k/t-opts to tmake_file.
791 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
792 (all_isas): Initialize using m68k-isas.def.
793 (all_microarchs): Initialize using m68k-microarchs.def.
794 (m68k_find_selection): Remove.
795 (m68k_handle_option): Don't assert that global structures are in
796 use. Use error_at. Access variables via opts pointer. Don't
797 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
798 directly for -m68020-40 and -m68020-60.
799 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
800 m68k_tune_entry here.
801 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
803 (m68k_library_id_string): Remove declaration.
804 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
805 (m68k_library_id_string): New Variable.
806 (march=, mcpu=, mtune=): Use Enum and Var.
808 2011-05-02 Richard Guenther <rguenther@suse.de>
810 * varasm.c (output_constructor_regular_field): Compute zero-based
811 index with double-ints. Make sure to ICE instead of producing
813 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
814 in asserts. Properly use a signed type.
816 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
818 * config/i386/sse.md (V): New mode iterator.
819 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
821 (V_256): Rename from AVX256MODE.
822 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
823 condition to all users.
825 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
826 condition to all users.
827 (VF_128): Make V4SF mode unconditional.
828 (VF_256): Rename from AVX256MODEF2P.
829 (VI4F_128): Rename from SSEMODE4S.
830 (VI8F_128): Rename from SSEMODE2D.
831 (VI4F_256): Rename from AVX256MODE8P.
832 (VI8F_256): Rename from AVX256MODE4P.
833 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
834 (ssescalarmodesuffix): Remove SF and DF modes.
835 (SSEMODE124): Remove.
836 (SSEMODE1248): Ditto.
841 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
843 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
845 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
846 xop_pcmov_<mode>256. Use V mode iterator.
848 Adjust RTX patterns globally for renamed mode attributes.
850 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
852 * haifa-sched.c (sched_emit_insn): Emit insn before first
853 non-scheduled insn. Inform back-end about new insn. Add
854 new insn to scheduled_insns list.
856 2011-05-02 Richard Guenther <rguenther@suse.de>
858 PR tree-optimization/48822
859 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
860 (process_scc): Indicate which iteration we start.
862 2011-05-02 Jan Hubicka <jh@suse.cz>
864 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
865 (lto_section_overrun): New.
866 * lto-section-out.c (append_block): Rename to ...
867 (lto_append_block): ... this one; export.
868 (lto_output_1_stream): Move lto lto-streamer.h
869 (lto_output_data_stream): Update.
870 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
871 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
874 2011-05-02 Richard Guenther <rguenther@suse.de>
876 * tree.c (tree_code_counts): New global array.
877 (record_node_allocation_statistics): Count individual tree codes.
878 (dump_tree_statistics): Dump individual code stats.
880 2011-05-01 Jan Hubicka <jh@suse.cz>
882 * ipa-inline.c (caller_growth_limits): Fix thinko when
883 looking for largest stack frame.
884 * ipa-inline.h (dump_inline_summary): Declare.
885 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
887 (dump_inline_summary): Export.
888 (debug_inline_summary): Declare as DEBUG_FUNCTION.
890 2011-05-01 Anatoly Sokolov <aesok@post.ru>
892 * reginfo.c (memory_move_cost): Change rclass argument type form
893 'enum reg_class' to reg_class_t.
894 * reload.h (memory_move_cost): Update prototype.
895 * postreload.c reload_cse_simplify_set): Change type dclass var to
897 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
899 (ira_allocate_and_set_costs): Change aclass argument type form
900 'enum reg_class' to reg_class_t.
901 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
902 Change aclass argument type to reg_class_t.
903 (update_conflict_hard_reg_costs): Change type aclass and pref vars
905 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
906 memory_move_cost call.
908 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
909 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
910 Change type tmp var to reg_class_t.
912 2011-04-30 Jan Hubicka <jh@suse.cz>
914 * ipa-inline.c (can_inline_edge_p): Disregard limits when
915 inlining into function with flatten attribute.
916 (want_inline_small_function_p): Be more realistic about inlining
917 cold calls where callee size grows.
919 2011-04-30 Jan Hubicka <jh@suse.cz>
921 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
924 2011-04-30 Anatoly Sokolov <aesok@post.ru>
926 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
927 PRINT_OPERAND_PUNCT_VALID_P): Remove.
928 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
929 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
930 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
931 (print_operand): Rename to...
932 (sparc_print_operand): ...this. Make static. Adjust
933 sparc_print_operand function call.
934 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
937 2011-04-30 Jan Hubicka <jh@suse.cz>
940 * ipa-inline.c (early_inliner): Disable when doing late
941 addition of function.
943 2011-04-30 Jakub Jelinek <jakub@redhat.com>
945 * dwarf2out.c (get_address_mode): New inline.
946 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
947 if not dwarf_strict emit
948 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
949 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
950 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
951 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
952 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
953 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
954 mem_loc_descriptor callers.
955 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
956 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
957 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
958 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
959 (base_types): New variable.
960 (get_base_type_offset, calc_base_type_die_sizes,
961 base_type_for_mode, mark_base_types, base_type_cmp,
962 move_marked_base_types): New functions.
963 (calc_die_sizes): Assert that die_offset is 0 or equal to
965 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
966 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
967 callers. If not dwarf_strict, call mem_loc_descriptor even for
968 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
969 (gen_subprogram_die): Don't give up on call site parameters
970 with non-integral or large integral modes. Adjust
971 mem_loc_descriptor callers.
972 (prune_unused_types): Call prune_unused_types_mark on base_types
974 (resolve_addr): Call mark_base_types.
975 (dwarf2out_finish): Call move_marked_base_types.
977 PR tree-optimization/48809
978 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
980 (gen_inbound_check): Don't compute index_expr - range_min in utype
981 again, instead reuse SSA_NAME initialized in build_arrays.
982 Remove two useless gsi_for_stmt calls.
984 2011-04-29 Jeff Law <law@redhat.com>
986 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
988 2011-04-29 Martin Jambor <mjambor@suse.cz>
990 * cgraph.h (cgraph_postorder): Remove declaration.
991 * ipa-utils.h (ipa_free_postorder_info): Declare.
992 (ipa_reverse_postorder): Likewise.
993 * cgraphunit.c: Include ipa-utils.h.
994 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
995 * ipa-inline.c: Include ipa-utils.h.
996 (ipa_inline): Update call to ipa_reverse_postorder.
997 * ipa-pure-const.c (propagate_pure_const): Update call to
998 ipa_reduced_postorder and ipa_print_order. Call
999 ipa_free_postorder_info to clean up.
1000 (propagate_nothrow): Likewise.
1001 * ipa-reference.c (propagate): Removed a useless call to
1002 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1003 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1004 * ipa.c: Include ipa-utils.h.
1005 (ipa_profile): Update call to ipa_reverse_postorder.
1006 (cgraph_postorder): Moved to...
1007 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1008 (ipa_utils_print_order): Renamed to ipa_print_order.
1009 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1011 (ipa_free_postorder_info): New function.
1012 * passes.c: Include ipa-utils.h.
1013 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1014 (ipa_write_summaries): Likewise.
1015 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1016 (cgraphunit.o): Likewise.
1018 (ipa-inline.o): Likewise.
1020 2011-04-29 Jan Hubicka <jh@suse.cz>
1022 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1023 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1024 * ipa-inline.h (clause_t): Turn into unsigned int.
1025 * ipa-inline-analysis.c (add_clause): Do more simplification.
1026 (and_predicates): Shortcut more cases.
1027 (predicates_equal_p): Move forward; check that clauses are properly
1029 (or_predicates): Shortcut more cases.
1030 (edge_execution_predicate): Rewrite as...
1031 (set_cond_stmt_execution_predicate): ... this function; handle
1032 __builtin_constant_p.
1033 (set_switch_stmt_execution_predicate): New .
1034 (compute_bb_predicates): New.
1035 (will_be_nonconstant_predicate): Update TODO.
1036 (estimate_function_body_sizes): Use compute_bb_predicates
1037 and free them later, always try to estimate if stmt is constant.
1038 (estimate_time_after_inlining, estimate_size_after_inlining):
1039 Gracefully handle optimized out edges.
1040 (read_predicate): Fix off by one error.
1042 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1044 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1046 2011-04-27 Xinliang David Li <davidxl@google.com>
1048 * tree-profile.c (init_ic_make_global_vars): Set
1049 tls attribute on ic vars.
1050 * coverage.c (coverage_end_function): Initialize
1051 function_list with zero.
1053 2011-04-29 Richard Guenther <rguenther@suse.de>
1055 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1056 for the type of the result.
1057 (fold_builtin_isascii): Likewise.
1058 (fold_builtin_toascii): Use integer_type_node where appropriate.
1059 (fold_builtin_logb): Likewise.
1060 (fold_builtin_frexp): Likewise.
1061 (fold_builtin_strstr): Likewise.
1062 (fold_builtin_strpbrk): Likewise.
1063 (fold_builtin_fputs): Likewise.
1064 (fold_builtin_sprintf): Likewise.
1065 (fold_builtin_snprintf): Likewise.
1066 (fold_builtin_printf): Likewise.
1067 (do_mpfr_remquo): Use a proper type for the assigned constant.
1068 (do_mpfr_lgamma_r): Likewise.
1069 * dwarf2out.c (resolve_one_addr): Use size_int.
1070 * except.c (init_eh): Likewise.
1071 (assign_filter_values): Use integer_type_node for filter values.
1072 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1074 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1075 for EH region numbers.
1076 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1077 for the shift amount.
1079 2011-04-29 Richard Guenther <rguenther@suse.de>
1081 * expr.h (expand_shift): Rename to ...
1082 (expand_variable_shift): ... this.
1083 (expand_shift): Take a constant shift amount.
1084 * expmed.c (expand_shift): Rename to ...
1085 (expand_variable_shift): ... this.
1086 (expand_shift): New wrapper around expand_variable_shift.
1087 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1088 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1089 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1090 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1091 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1092 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1093 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1094 emit_store_flag_1, emit_store_flag): Likewise.
1095 * builtins.c (expand_builtin_signbit): Likewise.
1096 * calls.c (load_register_parameters): Likewise.
1097 * function.c (assign_parm_setup_block): Likewise.
1098 * lower-subreg.c (resolve_shift_zext): Likewise.
1099 * optabs.c (widen_bswap, expand_abs_nojump,
1100 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1101 * spu/spu.c (spu_expand_extv): Likewise.
1102 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1104 2011-04-29 Richard Guenther <rguenther@suse.de>
1106 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1107 for the remapped region number.
1108 * predict.c (build_predict_expr): Use integer_type_node for the
1110 * fold-const.c (fold_binary_loc): Use integer_type_node for
1111 the shift amount. Use a proper type for the PLUS_EXPR operand.
1113 2011-04-29 Michael Matz <matz@suse.de>
1115 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1116 other trees that just builtins.
1117 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1119 2011-04-29 Richard Guenther <rguenther@suse.de>
1121 * tree-nested.c (get_trampoline_type): Use size_int.
1122 (get_nl_goto_field): Likewise.
1123 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1125 (lower_eh_constructs_2): Likewise.
1126 (lower_resx): Likewise.
1127 (lower_eh_dispatch): Likewise.
1128 * tree-mudflap.c (mf_build_string): Use size_int.
1129 (mudflap_register_call): Use integer_type_node for the flag.
1130 (mudflap_enqueue_constant): Use size_int.
1131 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1132 instead of rebuilding it.
1134 2011-04-29 Richard Guenther <rguenther@suse.de>
1136 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1137 Handle OBJ_TYPE_REF.
1138 (find_func_aliases_for_call): Use it more consistently.
1140 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1142 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1143 (rank_for_schedule): Use it.
1144 (schedule_block): Set it.
1146 2011-04-28 David Li <davidxl@google.com>
1148 * tree.c (crc32_string): Use crc32_byte.
1149 (crc32_byte): New function.
1150 * tree.h (crc32_byte): New function.
1151 * gcov.c (read_graph_file): Handle new cfg_cksum.
1152 (read_count_file): Ditto.
1153 * profile.c (instrument_values): Ditto.
1154 (get_exec_counts): Ditto.
1155 (read_profile_edge_counts): Ditto.
1156 (compute_branch_probabilities): Ditto.
1157 (compute_value_histograms): Ditto.
1158 (branch_prob): Ditto.
1159 (end_branch_prob): Ditto.
1160 * coverage.c (read_counts_file): Ditto.
1161 (get_coverage_counts): Ditto.
1162 (tree_coverage_counter_addr): Ditto.
1163 (coverage_checksum_string): Ditto.
1164 (coverage_begin_output): Ditto.
1165 (coverage_end_function): Ditto.
1166 (build_fn_info_type): Ditto.
1167 (build_fn_info_value): Ditto.
1168 * libgcov.c (gcov_exit): Ditto.
1169 * gcov-dump.c (tag_function): Ditto.
1170 (compute_checksum): Remove.
1172 2011-04-29 Alan Modra <amodra@gmail.com>
1174 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1175 unspec plus offset. Tidy macho code.
1177 2011-04-29 Martin Jambor <mjambor@suse.cz>
1179 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1180 node instead of a decl. Update all callers.
1181 * cgraph.h: Update declaration.
1183 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1185 PR tree-optimization/48765
1186 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1187 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1188 to indicate if loop aware SLP is being used. Scan the statements
1189 and update the vectorization factor according to the type of
1190 vectorization before statement analysis.
1191 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1192 pass it to vect_analyze_loop_operations.
1193 (vectorizable_reduction): Set number of copies to 1 in case of pure
1195 * tree-vect-stmts.c (vectorizable_conversion,
1196 vectorizable_assignment, vectorizable_shift,
1197 vectorizable_operation, vectorizable_type_demotion,
1198 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1200 (vectorizable_condition): Move the check that it is not SLP
1201 vectorization before the number of copies check.
1202 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1203 to vectorize the loop using SLP.
1205 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1208 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1211 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1213 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1214 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1215 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1216 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1217 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1219 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1220 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1221 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1222 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1223 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1224 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1226 * config/i386/linux.h (REG_NAME): Don't define.
1227 * config/i386/linux64.h (REG_NAME): Don't define.
1228 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1229 Undefine before defining.
1231 2011-04-28 Jan Hubicka <jh@suse.cz>
1233 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1234 nonconstant_names array.
1235 (estimate_function_body_sizes): Build nonconstant_names array; handle
1236 BUILT_IN_CONSTANT_P.
1238 2011-04-28 Richard Guenther <rguenther@suse.de>
1242 2011-04-28 Richard Guenther <rguenther@suse.de>
1244 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1245 as late as possible.
1247 2011-04-28 Richard Guenther <rguenther@suse.de>
1249 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1250 (debug_constraint): Do it here.
1251 (dump_constraints): And here.
1252 (rewrite_constraints): And here.
1253 (dump_constraint_edge): Remove.
1254 (dump_constraint_graph): Rewrite to produce DOT output.
1255 (solve_constraints): Build succ graph as late as possible.
1256 Dump constraint graphs before and after solving.
1258 2011-04-28 Richard Guenther <rguenther@suse.de>
1260 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1261 New function split out from ...
1262 (find_func_aliases): ... here. Call it.
1263 (find_func_aliases_for_call): Likewise.
1265 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1267 * internal-fn.h (internal_fn_name_array): Declare.
1268 (internal_fn_flags_array): Likewise.
1270 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1272 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1273 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1275 (ssemodefsuffix): Remove.
1276 (ssevecmodesuffix): New mode attribute.
1277 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1278 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1279 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1280 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1281 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1282 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1283 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1284 ssemodesuffix mode attribute.
1285 (float splitters): Use ssevecmodesuffix mode attribute.
1286 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1287 (sseinsmode): Rename from avxvecmode.
1288 (avxsizesuffix): Rename from avxmodesuffix.
1289 (sseintvecmode): Rename from avxpermvecmode.
1290 (ssedoublevecmode): Rename from ssedoublesizemode.
1291 (ssehalfvecmode): Rename from avxhalfvecmode.
1292 (ssescalarmode): Rename from avxscalarmode.
1293 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1294 templates for ssemodesuffix mode attribute.
1295 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1298 Adjust RTX patterns globally for renamed mode attributes.
1300 2011-04-27 Jan Hubcika <jh@suse.cz>
1302 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1303 * ipa-inline-analysis.c: Include alloc-pool.h.
1304 (edge_predicate_pool): New.
1305 (trye_predicate_p): New function
1306 (false_predicate_p): New function.
1307 (add_clause): Sanity check that false clauses are "optimized";
1308 never add clauses to predicate that is already known to be false.
1309 (and_predicate): Use flase_predicate_p.
1310 (evaulate_predicate): Rename to ...
1311 (evaluate_predicate): ... this one; update all callers; assert
1312 that false is not listed among possible truths.
1313 (dump_predicate): Use true_predicate_p.
1314 (account_size_time): Use false_predicate_p.
1315 (evaulate_conditions_for_edge): Rename to ...
1316 (evaluate_conditions_for_edge) ... this one.
1317 (edge_set_predicate): New function.
1318 (inline_edge_duplication_hook): Duplicate edge predicates.
1319 (inline_edge_removal_hook): Free edge predicates.
1320 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1321 (dump_inline_summary): Update.
1322 (estimate_function_body_sizes): Set edge predicates.
1323 (estimate_calls_size_and_time): Handle predicates.
1324 (estimate_callee_size_and_time): Update.
1325 (remap_predicate): Add toplev_predicate; update comment.
1326 (remap_edge_predicates): New function.
1327 (inline_merge_summary): Compute toplev predicate; update.
1328 (read_predicate): New function.
1329 (read_inline_edge_summary): Use it.
1330 (inline_read_section): Likewise.
1331 (write_predicate): New function.
1332 (write_inline_edge_summary): Use it.
1333 (inline_write_summary): Likewise.
1334 (inline_free_summary): Free alloc pool and edge summary vec.
1336 2011-04-27 Richard Guenther <rguenther@suse.de>
1338 * tree-ssa-structalias.c (changed_count): Remove.
1339 (changed): Use a bitmap.
1340 (unify_nodes): Adjust.
1341 (do_sd_constraint): Likewise.
1342 (do_ds_constraint): Likewise.
1343 (do_complex_constraint): Likewise.
1344 (solve_graph): Likewise.
1346 2011-04-27 Jan Hubicka <jh@suse.cz>
1348 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1350 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1352 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1353 (avx_vperm2f128_*_operand): Ditto.
1354 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1355 Use avx_vpermilp_parallel in insn condition.
1356 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1357 Use avx_vperm2f128_parallel in insn condition.
1359 2011-04-27 Richard Guenther <rguenther@suse.de>
1361 * Makefile.in (tree-ssa-structalias.o): Remove
1362 gt-tree-ssa-structalias.h dependency.
1363 (GTFILES): Remove tree-ssa-structalias.c.
1364 * tree.c (allocate_decl_uid): New function.
1365 (make_node_stat): Use it.
1366 (copy_node_stat): Likewise.
1367 * tree.h (allocate_decl_uid): Declare.
1368 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1369 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1370 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1371 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1372 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1373 (struct heapvar_map): Likewise.
1374 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1375 heapvar_insert): Likewise.
1376 (make_heapvar_for): Rename to ...
1377 (make_heapvar): ... this. Simplify.
1378 (fake_var_decl_obstack): New global var.
1379 (build_fake_var_decl): New function.
1380 (make_constraint_from_heapvar): Adjust.
1381 (handle_lhs_call): Likewise.
1382 (create_function_info_for): Likewise.
1383 (intra_create_variable_infos): Likewise.
1384 (init_alias_vars): Allocate fake_var_decl_obstack.
1385 (init_alias_heapvars, delete_alias_heapvars): Remove.
1386 (compute_points_to_sets): Do not call init_alias_heapvars.
1387 (ipa_pta_execute): Likewise.
1388 (delete_points_to_sets): Free fake_var_decl_obstack.
1390 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1392 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1393 (si_from_UTItype, si_to_UTItype): New functions.
1394 (__udivmodti4): Use them to implement type-punning.
1395 * config/spu/multi3.c (union qword_TItype): New data type.
1396 (si_from_TItype, si_to_TItype): New functions.
1397 (__multi3): Use them to implement type-punning.
1399 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1401 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1403 2011-04-27 Jan Hubicka <jh@suse.cz>
1405 * ipa-prop.c (function_insertion_hook_holder): New holder.
1406 (ipa_add_new_function): New function.
1407 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1408 Register/deregister holder.
1410 2011-04-27 Richard Guenther <rguenther@suse.de>
1412 PR tree-optimization/48772
1413 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1415 2011-04-27 Richard Guenther <rguenther@suse.de>
1417 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1418 TARGET_MEM_REF handling.
1420 2011-04-27 Nick Clifton <nickc@redhat.com>
1422 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1423 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1424 (REG_CLASS_NAMES): Likewise.
1425 (REG_CLASS_CONTENTS): Likewise.
1426 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1427 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1428 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1429 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1430 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1431 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1432 duplicate register classes.
1433 (frv_class_likely_spilled_p): Likewise.
1434 (frv_register_move_cost): Likewise.
1436 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1437 end of the regno_reg_class array.
1439 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1442 * c-typeck.c (build_binary_op): Don't wrap arguments if
1443 int_operands is true.
1445 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1448 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1449 targetm.calls.must_pass_in_stack for void type.
1451 2011-04-26 Jan Hubicka <jh@suse.cz>
1453 * cgraphbuild.c (build_cgraph_edges): Update call
1454 of cgraph_create_edge and cgraph_create_indirect_edge.
1455 * cgraph.c (cgraph_create_edge_including_clones,
1456 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1457 cgraph_update_edges_for_call_stmt_node): Do not take nest
1458 argument; do not initialize call_stmt_size/time.
1459 (dump_cgraph_node): Do not dump nest.
1460 (cgraph_clone_edge): Do not take loop_nest argument;
1461 do not propagate it; do not clone call_stmt_size/time.
1462 (cgraph_clone_node): Likewise.
1463 (cgraph_create_virtual_clone): Update.
1464 * cgraph.h (struct cgraph_edge): Remove
1465 call_stmt_size/call_stmt_time/loop_nest.
1466 (cgraph_create_edge, cgraph_create_indirect_edge,
1467 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1469 * tree-emutls.c (gen_emutls_addr): Update.
1470 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1471 loop_nest; handle indirect calls, too.
1472 (clone_inlined_nodes): Do not care about updating inline summaries.
1473 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1474 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1475 stream call_stmt_size/call_stmt_time/loop_nest.
1476 * ipa-inline.c (edge_badness): Update.
1477 (ipa_inline): dump summaries after inlining.
1478 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1480 (inline_edge_summary): New function.
1481 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1482 (inline_edge_removal_hook): Handle edge summaries.
1483 (inline_edge_duplication_hook): New hook.
1484 (inline_summary_alloc): Alloc hooks.
1485 (initialize_growth_caches): Do not register removal hooks.
1486 (free_growth_caches); Do not free removal hook.
1487 (dump_inline_edge_summary): New function.
1488 (dump_inline_summary): Use it.
1489 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1490 (inline_update_callee_summaries): New function.
1491 (inline_merge_summary): Use it.
1492 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1493 (read_inline_edge_summary): New function.
1494 (inline_read_section): Use it.
1495 (write_inline_edge_summary): New function.
1496 (inline_write_summary): Use it.
1497 (inline_free_summary): Free edge new holders.
1498 * tree-inline.c (copy_bb): Update.
1500 2011-04-26 Jason Merrill <jason@redhat.com>
1502 * tree-eh.c (lower_try_finally_switch): Create the label along with
1503 the CASE_LABEL_EXPR.
1505 2011-04-26 David S. Miller <davem@davemloft.net>
1506 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1508 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1509 * configure: Regenerate.
1511 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1514 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1516 (VEC_reduc): New code iterator and splitters for vector reduction.
1517 (VEC_reduc_name): Ditto.
1518 (VEC_reduc_rtx): Ditto.
1519 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1520 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1522 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1523 support for extracting SF on VSX.
1525 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1526 generating xscvspdp.
1527 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1528 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1529 double add, minimum, maximum vector reduction.
1530 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1531 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1532 optimize double vector reduction.
1533 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1535 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1537 * config/fr30/fr30.h (inhibit_libc): Don't define.
1538 * config/m32r/m32r-protos.h: Correct comment.
1539 * config/v850/v850.h (GHS_default_section_names,
1540 GHS_current_section_names): Use tree, not union tree_node *.
1542 2011-04-26 Xinliang David Li <davidxl@google.com>
1544 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1545 * c-family/c-opts.c (c_common_handle_option): Set
1546 warn_maybe_uninitialized.
1547 * opts.c (common_handle_option): Ditto.
1548 * common.opt: New option.
1549 * tree-ssa.c (warn_uninit): Add one more parameter.
1550 (warn_uninitialized_var): Pass warning code.
1551 * tree-flow.h: Interface change.
1554 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1556 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1557 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1558 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1560 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1562 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1563 * config/mips/mips.opt (mmips-tfile): Remove.
1565 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1566 mips-tdump reference to ...
1567 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1568 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1569 reference by Tru64 UNIX.
1571 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1574 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1575 is error_mark_node, set value to NULL.
1577 PR tree-optimization/48734
1578 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1579 if return value from maybe_fold_*_comparsions isn't something
1580 the code is prepared to handle.
1582 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1584 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1586 (ext_QIreg_nomode_operands): Remove.
1587 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1591 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1593 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1595 2011-04-26 Richard Guenther <rguenther@suse.de>
1597 * c-typeck.c (build_unary_op): Do not expand array-refs via
1598 pointer arithmetic. Only adjust qualifiers for function types.
1600 2011-04-26 Richard Guenther <rguenther@suse.de>
1603 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1604 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1605 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1606 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1608 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1610 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1611 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1612 * doc/extend.texi: Document __underlying_type.
1614 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1616 * config/rs6000/titan.md (automata_option "progress"): Remove.
1618 2011-04-25 Jeff Law <law@redhat.com>
1620 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1622 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1624 * system.h (ENUM_BITFIELD): Remove.
1626 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1627 Eric Botcazou <ebotcazou@adacore.com>
1629 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1630 for STORE_FLAG_VALUE==-1 case.
1632 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1635 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1636 LEGITIMATE_PIC_OPERAND_P.
1638 2011-04-24 Jan Hubicka <jh@suse.cz>
1640 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1642 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1643 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1644 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1645 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1646 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1647 Sanity check predicate length.
1648 (remap_predicate): Likewise; sanity check jump functions.
1649 (inline_read_section, inline_write_summary): Sanity check
1652 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1655 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1656 __is_literal_type, and __is_trivial; update throughout about
1657 possibly cv-qualified void types.
1659 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1661 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1662 testsuite and make it version agnostic.
1664 2011-04-22 Jan Hubicka <jh@suse.cz>
1666 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1668 2011-04-23 Jakub Jelinek <jakub@redhat.com>
1671 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1672 to VOID_TYPE even around MODIFY_EXPR.
1674 2011-04-22 Mike Stump <mikestump@comcast.net>
1676 * gensupport.c (read_md_rtx): Fix typo in comment.
1677 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1680 2011-04-22 Jan Hubicka <jh@suse.cz>
1682 * gengtype.c (open_base_files): Add ipa-inline.h include.
1683 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1684 ipa-prop.c; update all uses.
1685 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1686 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1687 merge summary of inlined function into former caller.
1688 * ipa-inline.c (max_benefit): Remove.
1689 (edge_badness): Compensate for removal of benefits.
1690 (update_caller_keys): Use
1691 reset_node_growth_cache/reset_edge_growth_cache.
1692 (update_callee_keys): Likewise.
1693 (update_all_callee_keys): Likewise.
1694 (inline_small_functions): Do not collect max_benefit; do not reset
1695 estimated_growth; call free_growth_caches and initialize_growth_caches.
1696 * ipa-inline.h (struct condition, type clause_t, struct predicate,
1697 struct size_time_entry): New structures.
1698 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1699 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1700 and estimated_growth.
1701 (edge_growth_cache_entry): New structure.
1702 (node_growth_cache, edge_growth_cache): New global vars.
1703 (estimate_growth): Turn into inline.
1704 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1705 initialize_growth_caches, free_growth_caches): Declare.
1706 (estimate_edge_growth): Rewrite.
1707 (estimate_edge_time): Implement as inline cache lookup.
1708 (reset_node_growth_cache, reset_edge_growth_cache): New inline
1710 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1711 (NUM_CONDITIONS): New constant.
1712 (predicate_conditions): New enum.
1713 (IS_NOT_CONSTANT): New constant.
1714 (edge_removal_hook_holder): New var.
1715 (node_growth_cache, edge_growth_cache): New global vars.
1716 (true_predicate, single_cond_predicate, false_predicate,
1717 not_inlined_predicate, add_condition, add_clause, and_predicates,
1718 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1719 dump_clause, dump_predicate, account_size_time,
1720 evaulate_conditions_for_edge): New functions.
1721 (inline_summary_alloc): Move to heap.
1722 (inline_node_removal_hook): Clear condition and entry vectors.
1723 (inline_edge_removal_hook): New function.
1724 (initialize_growth_caches, free_growth_caches): New function.
1725 (dump_inline_summary): Update.
1726 (edge_execution_predicate): New function.
1727 (will_be_nonconstant_predicate): New function.
1728 (estimate_function_body_sizes): Compute BB and constantness predicates.
1729 (compute_inline_parameters): Do not clear estimated_growth.
1730 (estimate_edge_size_and_time): New function.
1731 (estimate_calls_size_and_time): New function.
1732 (estimate_callee_size_and_time): New function.
1733 (remap_predicate): New function.
1734 (inline_merge_summary): New function.
1735 (do_estimate_edge_time): New function based on...
1736 (estimate_edge_time): ... this one.
1737 (do_estimate_edge_growth): New function.
1738 (do_estimate_growth): New function based on....
1739 (estimate_growth): ... this one.
1740 (inline_analyze_function): Analyze after deciding on jump functions.
1741 (inline_read_section): New function.
1742 (inline_read_summary): Use it.
1743 (inline_write_summary): Write all the new data.
1744 * ipa-prop.c (ipa_get_param_decl_index): Export.
1745 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1746 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1748 (ipa_get_lattice): Move here from ipa-cp.c
1749 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1750 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1751 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1752 cgraph_edge_inlinable_p): Remove.
1753 * cgraphunit.c: Include ipainline.h
1754 (cgraph_process_new_functions): Update call of
1755 compute_inline_parameters.
1757 2011-04-22 Richard Guenther <rguenther@suse.de>
1759 * tree.c (build_int_cst): Properly create canonicalized integer
1761 (build_int_cst_type): Remove scary comments.
1763 2011-04-22 Xinliang David Li <davidxl@google.com>
1765 * toplev.c (process_options): Enable -Werror=coverage-mismatch
1766 by default when -Wno-error is not specified.
1767 * opts-global.c (decode_options): Remove call to
1768 control_warning_options.
1770 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1772 PR tree-optimization/48717
1773 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1774 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1776 2011-04-22 Joseph Myers <joseph@codesourcery.com>
1778 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
1779 definition where used.
1781 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1784 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1785 TREE_STATIC variables declared inside of some OpenMP construct.
1787 2011-04-22 Martin Jambor <mjambor@suse.cz>
1790 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1792 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
1795 * c-typeck.c (pop_init_level): Do not warn about initializing
1798 2011-04-22 Alan Modra <amodra@gmail.com>
1800 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1801 when returning call_cookie.
1802 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1803 pointers, to functions with no more vector args than the current
1804 function, and some non-local calls for ABI_V4.
1805 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1806 sibcall_nonlocal_aix64): Combine to ..
1807 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
1808 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1809 (sibcall_value_nonlocal_aix<mode>): ..likewise.
1810 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1811 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
1813 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1814 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1815 sibcall_value_symbolic_64): Delete.
1817 2011-04-21 Xinliang David Li <davidxl@google.com>
1819 * cgraph.h: Remove pid.
1820 * cgraph.c: Remove pid.
1821 * value-prof.c (init_node_map): New function.
1822 (del_node_map): New function.
1823 (find_func_by_funcdef_no): New function.
1824 (gimple_ic_transform): Call new function.
1825 * cgraphunit.c (cgraph_finalize_function): Remove pid.
1826 * function.c (get_last_funcdef_no): New function.
1827 * function.h (get_last_funcdef_no): New function.
1828 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1829 to libgcov function.
1830 (tree-profiling): Call node map init and delete function.
1832 2011-04-21 Ian Lance Taylor <iant@google.com>
1834 * godump.c (go_format_type): Use exported Go name for anonymous
1837 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1839 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1840 Call builtin_function_type_list instead of builtin_function_type.
1841 (UNARY, BINARY, TRINARY, QUAD): Likewise.
1843 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1845 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1846 build_function_type_list instead of build_function_type.
1847 Delete variable `endlink'.
1849 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1851 * config/s390/s390.c (s390_init_builtins): Call
1852 build_function_type_list instead of build_function_type.
1854 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1856 * config/ia64/ia64.c (ia64_init_builtins): Call
1857 build_function_type_list instead of builtin_function_type.
1859 2011-04-21 Easwaran Raman <eraman@google.com>
1861 * cfgexpand.c (stack_var): Remove OFFSET...
1862 (add_stack_var): ...and its reference here...
1863 (expand_stack_vars): ...and here.
1864 (stack_var_cmp): Sort by descending order of size.
1865 (partition_stack_vars): Change heuristic.
1866 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
1867 (dump_stack_var_partition): Add newline after each partition.
1869 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
1870 Jeff Law <law@redhat.com>
1872 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
1873 * gengtype.c (matching_file_name_substitute): Likewise.
1875 2011-04-21 Richard Guenther <rguenther@suse.de>
1878 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1880 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1882 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1884 2011-04-21 Richard Guenther <rguenther@suse.de>
1886 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1889 2011-04-21 Richard Guenther <rguenther@suse.de>
1891 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1892 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1893 Use DECL_P, not SSA_VAR_P.
1894 (ptr_derefs_may_alias_p): Likewise.
1895 (ptr_deref_may_alias_ref_p_1): Likewise.
1896 (decl_refs_may_alias_p): Likewise.
1897 (refs_may_alias_p_1): Likewise.
1898 (ref_maybe_used_by_call_p_1): Likewise.
1899 (call_may_clobber_ref_p_1): Likewise.
1900 (indirect_ref_may_alias_decl_p): Assume indirect refrences
1901 are either MEM_REF or TARGET_MEM_REF.
1902 (indirect_refs_may_alias_p): Likewise.
1903 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1904 for MEM_EXPR of indirect calls.
1906 2011-04-21 Tristan Gingold <gingold@adacore.com>
1908 * vmsdbgout.c (write_srccorr): Compute file length from the string.
1909 (dst_file_info_struct): Remove flen field.
1910 (lookup_filename): Remove code that set flen field.
1912 2011-04-21 Tristan Gingold <gingold@adacore.com>
1914 * config/ia64/ia64.c (ia64_start_function): Add a guard.
1916 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
1919 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1920 vec_extract and vec_concat for non-SSE4_1 targets.
1922 2011-04-21 Richard Guenther <rguenther@suse.de>
1924 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1927 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1929 * config/i386/cygming.h (union tree_node, TREE): Don't define or
1931 (FILE): Don't undefine.
1933 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1935 * config/alpha/alpha.c (struct machine_function): Use rtx, not
1937 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
1939 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
1940 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
1941 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
1943 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
1944 definitions where used.
1945 * config/microblaze/microblaze.h (struct microblaze_args): Use
1946 rtx, not struct rtx_def *.
1947 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
1949 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
1950 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
1951 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
1952 not struct rtx_def *.
1953 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
1955 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
1957 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
1959 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1961 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
1962 operand_equal_p to compare DR_BASE_ADDRESSes.
1963 (vect_check_interleaving): Likewise.
1965 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1968 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
1969 for all Neon struct constants.
1971 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1973 * target.def (legitimate_constant_p): New hook.
1974 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
1975 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
1976 * doc/tm.texi: Regenerate.
1977 * hooks.h (hook_bool_mode_rtx_true): Declare.
1978 * hooks.c (hook_bool_mode_rtx_true): Define.
1979 * system.h (LEGITIMATE_CONSTANT_P): Poison.
1980 * calls.c (precompute_register_parameters): Replace uses of
1981 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
1982 (emit_library_call_value_1): Likewise.
1983 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
1984 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
1985 * ira-costs.c (scan_one_insn): Likewise.
1986 * recog.c (general_operand, immediate_operand): Likewise.
1987 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
1988 * reload1.c (init_eliminable_invariants): Likewise.
1990 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
1992 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
1993 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
1995 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1996 * config/alpha/predicates.md (input_operand): Update call to
1997 alpha_legitimate_constant_p.
1999 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2000 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2001 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2002 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2003 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2004 (arm_legitimate_constant_p): New functions.
2005 (arm_cannot_force_const_mem): Make static.
2007 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2009 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2010 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2011 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2012 instead of bfin_legitimate_constant_p.
2013 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2014 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2016 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2018 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2020 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2021 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2022 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2023 (frv_legitimate_constant_p): Make static. Add a mode argument.
2025 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2026 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2027 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2029 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2030 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2031 * config/i386/i386.c (legitimate_constant_p): Rename to...
2032 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2034 (ix86_cannot_force_const_mem): Update accordingly.
2035 (ix86_legitimate_address_p): Likewise.
2036 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2037 * config/i386/i386.md: Update commentary.
2039 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2040 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2041 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2042 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2044 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2046 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2047 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2048 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2049 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2051 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2052 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2053 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2055 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2056 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2057 (m32r_legitimate_constant_p): New function.
2059 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2060 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2061 LEGITIMATE_CONSTANT_P.
2062 (LEGITIMATE_CONSTANT_P): Delete.
2063 * config/m68k/m68k.c (m68k_expand_prologue): Call
2064 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2065 (m68k_legitimate_constant_p): New function.
2066 * config/m68k/m68k.md: Update comments.
2068 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2069 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2070 (mcore_legitimate_constant_p): New function.
2072 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2073 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2074 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2075 Add a mode argument.
2076 (mep_legitimate_address): Update accordingly.
2077 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2079 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2081 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2082 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2083 static. Check OP's mode for VOIDmode.
2084 (microblaze_legitimate_constant_p): New function.
2085 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2087 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2088 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2089 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2090 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2091 * config/mips/predicates.md: Update comments.
2093 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2094 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2095 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2096 (mmix_legitimate_constant_p): Make static, return a bool, and take
2098 (mmix_print_operand_address): Update accordingly.
2100 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2102 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2103 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2104 static. Add a mode argument.
2105 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2107 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2109 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2110 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2111 (pa_legitimate_constant_p): New function.
2113 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2115 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2116 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2117 (pdp11_legitimate_constant_p): New function.
2119 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2120 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2121 (rs6000_legitimate_constant_p): New function.
2123 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2124 (rx_legitimate_constant_p): ...this.
2125 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2126 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2127 (rx_legitimate_constant_p): ...this.
2128 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2129 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2131 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2132 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2133 * config/s390/s390.c (legitimate_constant_p): Rename to...
2134 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2135 and add a mode argument.
2136 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2138 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2140 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2141 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2142 (sh_legitimate_constant_p): New function.
2144 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2145 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2146 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2147 (legitimate_constant_p): Rename to...
2148 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2150 (constant_address_p): Update accordingly.
2152 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2153 argument and return a bool.
2154 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2155 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2156 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2157 (spu_rtx_costs): Update accordingly.
2158 * config/spu/predicates.md (vec_imm_operand): Likewise.
2160 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2162 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2163 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2164 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2166 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2167 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2168 * config/vax/vax.c (legitimate_constant_p): Likewise.
2170 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2171 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2172 (xtensa_legitimate_constant_p): New function.
2174 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2176 * target.def (cannot_force_const_mem): Add a mode argument.
2177 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2178 * doc/tm.texi: Regenerate.
2179 * hooks.h (hook_bool_mode_rtx_false): Declare.
2180 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2181 (hook_bool_mode_const_rtx_true): Likewise.
2182 (hook_bool_mode_rtx_false): New function.
2183 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2184 to be non-VOID. Update call to cannot_force_const_mem.
2185 (find_reloads): Update accordingly.
2186 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2187 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2189 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2190 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2191 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2192 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2193 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2194 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2195 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2196 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2197 (m68k_cannot_force_const_mem): ...this new function.
2198 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2200 (mips_const_insns, mips_legitimize_const_move): Update calls.
2201 (mips_secondary_reload_class): Likewise.
2202 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2203 (pa_cannot_force_const_mem): ...this new function.
2204 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2205 (rs6000_cannot_force_const_mem): ...this new function.
2206 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2208 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2209 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2211 (xtensa_cannot_force_const_mem): ...this new function.
2213 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2215 * config/mips/mips.c (mips16_build_function_stub): Call
2216 build_function_type_list instead of build_function_type.
2217 (mips16_build_call_stub): Likewise.
2219 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2221 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2222 instead of build_function_type.
2224 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2226 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2227 instead of build_function_type.
2229 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2232 * config/i386/i386.md (insv): Change operand 0 constraint to
2233 "register_operand". Change operand 1 and 2 constraint to
2234 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2235 * config/i386/sse.md (sse4_1_pinsrb): Export.
2236 (sse2_pinsrw): Ditto.
2237 (sse4_1_pinsrd): Ditto.
2238 (sse4_1_pinsrq): Ditto.
2239 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2240 * config/i386/i386.c (ix86_expand_pinsr): New.
2242 2011-04-20 Easwaran Raman <eraman@google.com>
2244 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2245 containing union type only with -fstrict-aliasing.
2247 2011-04-20 Jim Meyering <meyering@redhat.com>
2249 Remove useless if-before-free tests.
2250 * calls.c (expand_call, save_area): Likewise.
2251 * cfgcleanup.c (try_forward_edges): Likewise.
2252 * collect2.c (collect_execute): Likewise.
2253 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2254 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2255 * coverage.c (coverage_checksum_string): Likewise.
2256 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2257 * cselib.c (cselib_init): Likewise.
2258 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2259 (df_set_clean_cfg): Likewise.
2260 * function.c (free_after_compilation): Likewise.
2261 * gcc.c (do_spec_1, main): Likewise.
2262 * gcov.c (create_file_names): Likewise.
2263 * gensupport.c (identify_predicable_attribute): Likewise.
2264 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2265 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2266 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2267 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2268 * ipa-pure-const.c (local_pure_const): Likewise.
2269 * ipa-reference.c (propagate): Likewise.
2270 * ira-costs.c (free_ira_costs): Likewise.
2271 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2272 * matrix-reorg.c (mat_free): Likewise.
2273 * prefix.c (get_key_value): Likewise.
2274 * profile.c (compute_value_histograms): Likewise.
2275 * reload1.c (free_reg_equiv): Likewise.
2276 * sched-deps.c (free_deps): Likewise.
2277 * sel-sched-ir.c (fence_clear): Likewise.
2278 * sese.c (set_rename, if_region_set_false_region): Likewise.
2279 * tree-data-ref.c (free_rdg): Likewise.
2280 * tree-eh.c (lower_try_finally): Likewise.
2281 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2282 * tree-ssa-live.c (delete_var_map): Likewise.
2283 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2284 * tree-ssa-pre.c (phi_trans_add): Likewise.
2286 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2288 PR tree-optimization/48611
2289 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2290 beyond ERT_MUST_NOT_THROW region.
2292 2011-04-20 Catherine Moore <clm@codesourcery.com>
2294 * config/mips/mips.opt (mfix-24k): New.
2295 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2296 * config/mips/mips.md (length): Increase by 4 for stores if
2298 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2299 all noreorder if fixing 24K errata.
2300 * doc/invoke.texi: Document mfix-24k.
2302 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2304 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2305 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2307 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2309 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2310 (const_ok_for_op): ... to here.
2312 2011-04-20 Kai Tietz <ktietz@redhat.com>
2314 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2315 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2317 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2319 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2321 2011-04-20 Richard Guenther <rguenther@suse.de>
2323 PR tree-optimization/47892
2324 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2327 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2329 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2331 2011-04-20 Tristan Gingold <gingold@adacore.com>
2333 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2335 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2339 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2340 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2341 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2342 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2343 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2345 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2348 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2349 (avr_asm_named_section, avr_asm_output_aligned_common,
2350 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2351 New functions to update...
2352 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2353 (avr_asm_init_sections): Overwrite section callbacks for
2354 data_section, bss_section.
2355 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2357 (avr_file_end): ...here.
2359 2011-04-20 Richard Guenther <rguenther@suse.de>
2362 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2363 objects and types here. Adjust for their offset before comparing.
2365 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2367 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2370 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2372 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2373 (GIMPLE_H): Include $(INTERNAL_FN_H).
2374 (OBJS-common): Add internal-fn.o.
2375 (internal-fn.o): New rule.
2376 * internal-fn.def: New file.
2377 * internal-fn.h: Likewise.
2378 * internal-fn.c: Likewise.
2379 * gimple.h: Include internal-fn.h.
2380 (GF_CALL_INTERNAL): New gf_mask.
2381 (gimple_statement_call): Put fntype into a union with a new
2383 (gimple_build_call_internal): Declare.
2384 (gimple_build_call_internal_vec): Likewise.
2385 (gimple_call_same_target_p): Likewise.
2386 (gimple_call_internal_p): New function.
2387 (gimple_call_internal_fn): Likewise.
2388 (gimple_call_fntype): Return null for internal calls.
2389 (gimple_call_set_fntype): Assert that the function is not internal.
2390 (gimple_call_set_fn): Likewise.
2391 (gimple_call_set_fndecl): Likewise.
2392 (gimple_call_set_internal_fn): New function.
2393 (gimple_call_addr_fndecl): Handle null functions.
2394 (gimple_call_return_type): Likewise null types.
2395 * gimple.c (gimple_build_call_internal_1): New function.
2396 (gimple_build_call_internal): Likewise.
2397 (gimple_build_call_internal_vec): Likewise.
2398 (gimple_call_same_target_p): Likewise.
2399 (gimple_call_flags): Handle calls to internal functions.
2400 (gimple_call_fnspec): New function.
2401 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2402 (gimple_has_side_effects): Handle null functions.
2403 (gimple_rhs_has_side_effects): Likewise.
2404 (gimple_call_copy_skip_args): Handle calls to internal functions.
2405 * cfgexpand.c (expand_call_stmt): Likewise.
2406 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2407 * gimple-fold.c (gimple_fold_call): Handle null functions.
2408 (gimple_fold_stmt_to_constant_1): Don't fold
2409 calls to internal functions.
2410 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2412 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2413 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2414 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2415 (do_warn_unused_result): Likewise.
2416 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2417 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2418 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2419 the target of a call.
2420 (initialize_hash_element): Update accordingly.
2421 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2422 (iterative_hash_hashable_expr): Handle calls to internal functions.
2423 (print_expr_hash_elt): Likewise.
2424 * tree-ssa-pre.c (can_value_number_call): Likewise.
2425 (eliminate): Handle null functions.
2426 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2427 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2428 (find_func_aliases): Likewise.
2429 * value-prof.c (gimple_ic_transform): Likewise.
2430 (gimple_indirect_call_to_profile): Likewise.
2431 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2432 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2434 2011-04-19 Jan Hubicka <jh@suse.cz>
2436 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2437 * ipa-inline.c (inline_small_functions): Compute summaries first,
2438 populate heap later.
2440 2011-04-19 Jan Hubicka <jh@suse.cz>
2442 * cgraph.h (save_inline_function_body): Remove.
2443 * ipa-inline-transform.c: New file, broke out of...
2444 * ipa-inline.c: ... this one; Update toplevel comment.
2445 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2447 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2448 (cgraph_mark_inline_edge): Rename to inline_call; move to
2449 ipa-inline-transform.c.
2450 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2451 move to ipa-inline-transform.c
2452 (recursive_inlining, inline_small_functions, flatten_function,
2453 ipa_inline, inline_always_inline_functions,
2454 early_inline_small_functions): Update.
2455 (inline_transform): Move to ipa-inline-transform.c.
2456 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2458 * Makefile.in (ipa-inline-transform.o): New file.
2459 * cgraphunit.c (save_inline_function_body): Move to
2460 ipa-inline-transform.c
2462 2011-04-19 DJ Delorie <dj@redhat.com>
2464 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2465 registers if we already know there aren't any.
2466 (m32c_emit_epilogue): Don't emit a barrier here.
2467 (m32c_emit_eh_epilogue): Likewise.
2468 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2469 operands at expand time.
2470 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2472 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2473 duplicates. Provide aliases instead.
2474 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2475 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2478 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2480 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2481 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2482 (general_or_i64_p, sparc_register_move_cost): New function.
2484 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2486 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2487 Add lynx, mipssde. Sort table.
2489 2011-04-19 Xinliang David Li <davidxl@google.com>
2491 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2494 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2497 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2498 is a SUBREG with non-MODE_INT mode inside of it.
2500 2011-04-19 Martin Jambor <mjambor@suse.cz>
2502 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2503 also according to actual contants.
2504 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2505 (gimple_fold_call): Use it.
2506 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2508 2011-04-19 Martin Jambor <mjambor@suse.cz>
2510 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2511 non-pointer assignments.
2513 2011-04-19 Martin Jambor <mjambor@suse.cz>
2515 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2516 account anc_offset and otr_type from the indirect edge info.
2517 * ipa-prop.c (get_ancestor_addr_info): New function.
2518 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2519 get_ancestor_addr_info, call it.
2520 (ipa_note_param_call): Do not initialize information about polymorphic
2521 calls, return the indirect call graph edge. Remove the last
2522 parameter, adjust all callers.
2523 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2524 parameters. Initialize polymorphic information in the indirect edge.
2526 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2529 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2530 the types if they have different enumeration identifiers.
2532 2011-04-19 Jan Hubicka <jh@suse.cz>
2534 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2535 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2536 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2537 (optimize_function_for_size_p) ... here.
2539 2011-04-19 Richard Guenther <rguenther@suse.de>
2542 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2545 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2547 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2548 if DECL_NO_INLINE_WARNING_P is set on the function.
2550 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2553 * reload1.c (inc_for_reload): Return void. All callers changed.
2554 (emit_input_reload_insns): Don't try to delete previous output
2555 reloads to a register, or record spill_reg_store for autoincs.
2557 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2559 * gengtype.h: Updated copyright year.
2560 (struct input_file_st): Add inpisplugin field.
2561 (type_fileloc): New function.
2563 (write_typed_struct_alloc_def): Add gcc_assert.
2564 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2565 (write_typed_alloc_defns): Don't output for plugin files.
2566 (input_file_by_name): Clear inpisplugin field.
2567 (main): Set inpisplugin field for plugin files.
2569 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2571 * gengtype-state.c (string_eq): New.
2572 (read_state): Use string_eq instead of strcmp when creating the
2575 2011-04-19 Wei Guozhi <carrot@google.com>
2578 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2579 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2581 * config/arm/constraints.md (Uu): New constraint.
2582 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2584 2011-04-19 Tristan Gingold <gingold@adacore.com>
2586 * config.gcc (-*-*-*vms): Added.
2587 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2589 * config/vms/vms-ld.c: New file.
2590 * config/vms/vms-ar.c: New file.
2591 * config/vms/t-vmsnative: New file.
2593 2011-04-18 Xinliang David Li <davidxl@google.com>
2595 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2597 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2600 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2601 if TREE_TYPE (v) is non-NULL.
2603 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2604 gimple_get_virt_mehtod_for_binfo.
2605 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2606 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2608 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2610 2011-04-18 Michael Matz <matz@suse.de>
2611 Steve Ellcey <sje@cup.hp.com>
2613 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2614 use its mode as source mode if it isn't VOIDmode.
2616 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2618 * doc/passes.texi: Fill crossref nodes.
2620 2011-04-18 Jim Meyering <meyering@redhat.com>
2622 Fix doubled-word typos in comments and strings
2623 * config/alpha/vms-unwind.h: s/for for/for/
2624 * config/arm/unwind-arm.h: Likewise.
2625 * config/microblaze/microblaze.c: Likewise.
2626 * config/sh/constraints.md: s/in in/in/
2627 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2629 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2631 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2632 (AVX_FLOAT_MODE_P): Ditto.
2633 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2634 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2635 (AVX_VEC_FLOAT_MODE_P): Ditto.
2636 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2637 (UNSPEC_MASKSTORE): Ditto.
2638 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2639 Merge from <sse>_movmsk<ssemodesuffix> and
2640 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2641 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2643 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2644 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2645 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2647 2011-04-18 Jan Hubicka <jh@suse.cz>
2649 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2651 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2652 (want_inline_function_called_once_p): Break out the logic from
2654 (edge_badness): Ensure that profile is not misupdated.
2655 (lookup_recursive_calls): Prioritize by call frequencies.
2656 (inline_small_functions): Move program size estimates here;
2657 actually process whole queue even when unit growth has been
2658 met. (to properly compute inline_failed reasons and for the
2659 case unit size decrease.) Revisit comments on recursive inlining.
2660 (ipa_inline): Remove unit summary code; first inline hot calls
2661 of functions called once, cold calls next.
2662 (order, nnodes): Remove unused variables.
2663 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2664 (GTFILES): Remove ipa-inline.c
2665 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2667 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2669 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2671 2011-04-18 Jie Zhang <jie@codesourcery.com>
2672 Richard Earnshaw <rearnsha@arm.com>
2674 * arm.c (neon_builtin_type_bits): Remove.
2675 (typedef enum neon_builtin_mode): New.
2676 (T_MAX): Don't define.
2677 (typedef enum neon_builtin_datum): Remove bits, codes[],
2678 num_vars and base_fcode. Add mode, code and fcode.
2679 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2680 VAR10): Change accordingly.
2681 (neon_builtin_data[]): Change accordingly
2682 (arm_init_neon_builtins): Change accordingly.
2683 (neon_builtin_compare): Remove.
2684 (locate_neon_builtin_icode): Remove.
2685 (arm_expand_neon_builtin): Change accordingly.
2687 * arm.h (enum arm_builtins): Move to ...
2688 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2690 * arm.c (arm_builtin_decl): Declare.
2691 (TARGET_BUILTIN_DECL): Define.
2692 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2693 (arm_builtin_decls[]): New.
2694 (arm_init_neon_builtins): Store builtin declarations in
2695 arm_builtin_decls[].
2696 (arm_init_tls_builtins): Likewise.
2697 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
2698 (arm_builtin_decl): New.
2700 2011-04-18 Richard Guenther <rguenther@suse.de>
2702 * tree.c (upper_bound_in_type): Build properly canonicalized
2704 (lower_bound_in_type): Likewise.
2706 2011-04-18 Richard Guenther <rguenther@suse.de>
2708 * gimple.h (gimple_call_addr_fndecl): New function.
2709 (gimple_call_fndecl): Use it.
2710 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2712 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2713 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2715 2011-04-18 Richard Guenther <rguenther@suse.de>
2718 * tree.c (build_string): STRING_CST is now derived from tree_typed.
2720 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2723 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2724 DECL_IN_CONSTANT_POOL without RTL.
2726 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2727 Ira Rosen <ira.rosen@linaro.org>
2730 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2731 to match neon_vzip/vuzp/vtrn_internal.
2732 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2733 outputs explicitly dependent on both inputs.
2734 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2736 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2738 PR tree-optimization/48616
2739 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2740 whether the shift is by scalar or vector based on whether all SLP
2741 scalar stmts have the same rhs.
2743 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
2745 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2748 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2750 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2753 2011-04-17 Jan Hubicka <jh@suse.cz>
2755 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2756 * cgrpahunit.c (cgraph_finalize_function): Do not set
2757 finalized_by_frontend.
2758 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2759 finalized_by_frontend.
2761 2011-04-17 Jan Hubicka <jh@suse.cz>
2763 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2764 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2765 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2766 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2768 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2770 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2772 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2775 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2776 is non-null before accessing it.
2777 (input_cgraph): Remove trailing spaces.
2779 2011-04-17 Revital Eres <revital.eres@linaro.org>
2781 * params.def (sms-min-sc): New param flag.
2782 * modulo-sched.c (sms_schedule): Use it.
2783 * doc/invoke.texi (sms-min-sc): Document it.
2785 2011-04-17 Jan Hubicka <jh@suse.cz>
2787 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2788 present, also set gimple_call_set_cannot_inline.
2789 * ipa-inline.c: Update toplevel comment.
2791 (cgraph_clone_inlined_nodes): Fix linebreaks.
2792 (cgraph_check_inline_limits): Restructure to ...
2793 (caller_growth_limits): ... this one; be more tolerant
2794 on growth in nested inline chains; add explanatory comment;
2795 fix stack accounting thinko introduced by previous patch.
2796 (cgraph_default_inline_p): Remove.
2797 (report_inline_failed_reason): New function.
2798 (can_inline_edge_p): New function.
2799 (can_early_inline_edge_p): New function.
2800 (leaf_node_p): Move upwards in file.
2801 (want_early_inline_function_p): New function.
2802 (want_inline_small_function_p): New function.
2803 (want_inline_self_recursive_call_p): New function.
2804 (cgraph_edge_badness): Rename to ...
2805 (edge_badness) ... this one; fix linebreaks.
2806 (update_edge_key): Update call of edge_baddness; add
2807 detailed dump about queue updates.
2808 (update_caller_keys): Use can_inline_edge_p and
2809 want_inline_small_function_p.
2810 (cgraph_decide_recursive_inlining): Rename to...
2811 (recursive_inlining): Use can_inline_edge_p and
2812 want_inline_self_recursive_call_p; simplify and remove no longer
2814 (cgraph_set_inline_failed): Remove.
2815 (add_new_edges_to_heap): Use can_inline_edge_p and
2816 want_inline_small_function_p.
2817 (cgraph_decide_inlining_of_small_functions): Rename to ...
2818 (inline_small_functions): ... this one; cleanup; use
2819 can/want predicates; cleanup debug ouput; work edges till fibheap
2820 is exhausted and do not stop once unit growth is reached; remove
2821 later loop processing remaining edges.
2822 (cgraph_flatten): Rename to ...
2823 (flatten_function): ... this one; use can_inline_edge_p
2824 and can_early_inline_edge_p predicates.
2825 (cgraph_decide_inlining): Rename to ...
2826 (ipa_inline): ... this one; remove unreachable nodes before
2827 inlining functions called once; simplify the pass.
2828 (cgraph_perform_always_inlining): Rename to ...
2829 (inline_always_inline_functions): ... this one; use
2830 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
2831 (cgraph_decide_inlining_incrementally): Rename to ...
2832 (early_inline_small_functions): ... this one; simplify
2833 using new predicates; cleanup; make dumps prettier.
2834 (cgraph_early_inlining): Rename to ...
2835 (early_inliner): newer inline regular functions into always-inlines;
2836 fix updating of call stmt summaries.
2837 (pass_early_inline): Update for new names.
2838 (inline_transform): Fix formating.
2839 (gate_cgraph_decide_inlining): Rename to ...
2840 (pass_ipa_inline): ... this one.
2841 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2842 * ipa-inline-analysis.c (dump_inline_summary): Update.
2843 (compute_inline_parameters): Do not compute disregard_inline_limits;
2844 look for mismatching arguments.
2845 (estimate_growth): Fix handlig of non-trivial self recursion.
2846 (inline_read_summary): Do not read info->disregard_inline_limits.
2847 (inline_write_summary): Do not write info->disregard_inline_limits.
2848 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2849 and move all checks into can_inline_edge_p predicate; re-enable code
2850 comparing optimization levels.
2851 (expand_call_inline): Do not test inline_forbidden_into_p.
2852 * Makefile.in (ipa-inline.o): Update arguments.
2854 2011-04-17 Revital Eres <revital.eres@linaro.org>
2856 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2858 2011-04-17 Revital Eres <revital.eres@linaro.org>
2860 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2862 2011-04-17 Michael Matz <matz@suse.de>
2864 PR tree-optimization/48622
2866 * ipa-inline-analysis.c (inline_read_summary): Read size/time
2867 in same order as they're written.
2869 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2871 * config/pa/predicates.md: Reorganize and simplify predicates.
2872 Eliminate duplicate code checks.
2873 (arith_operand): Rename to arith14_operand
2874 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2875 * config/pa/pa.md: Use renamed operands.
2876 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2877 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2878 arith11_operand, adddi3_operand, indexed_memory_operand,
2879 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2880 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2881 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2882 move_dest_operand, move_src_operand, prefetch_cc_operand,
2883 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2884 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2885 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2886 div_operand, int5_operand, movb_comparison_operator,
2887 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2888 arith_double_operand, ireg_operand, lhs_lshift_operand,
2889 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2890 integer_store_memory_operand): Likewise.
2891 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2892 (integer_store_memory_operand, read_only_operand,
2893 function_label_operand, borx_reg_operand,
2894 non_hard_reg_operand): Likewise.
2895 (eq_neq_comparison_operator): Delete unused operator.
2896 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2897 function_label_operand.
2898 (emit_move_sequence): Likewise.
2900 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2902 * config/i386/sse.md (sseunpackmode): New mode attribute.
2903 (ssepackmode): Ditto.
2904 (vec_pack_trunc_<mode>): Macroize expander from
2905 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2906 (vec_unpacks_lo_<mode>): Macroize expander from
2907 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2908 (vec_unpacks_hi_<mode>): Macroize expander from
2909 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2910 (vec_unpacku_lo_<mode>): Macroize expander from
2911 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2912 (vec_unpacku_hi_<mode>): Macroize expander from
2913 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2914 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2915 ix86_expand_sse4_unpack.
2916 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2918 2011-04-16 Jan Hubicka <jh@suse.cz>
2920 * cgraphbuild.c: Include ipa-inline.h.
2921 (reset_inline_failed): Use initialize_inline_failed.
2922 * cgraph.c: Include ipa-inline.h.
2923 (cgraph_create_node_1): Do not initialize estimated_growth.
2924 (initialize_inline_failed): More to ipa-inline-analysis.c
2925 (dump_cgraph_node): Do not dump inline flags.
2926 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2927 and disregard_inline_limits flags.
2928 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
2929 time, size, estimated_growth.
2930 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
2932 * cgraphunit.c (cgraph_decide_is_function_needed): Use
2933 DECL_DISREGARD_INLINE_LIMITS.
2934 (cgraph_analyze_function): Do not initialize
2935 node->local.disregard_inline_limits.
2936 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2937 inlinable, versionable and disregard_inline_limits.
2938 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2939 cgraph_check_inline_limits, cgraph_default_inline_p,
2940 cgraph_edge_badness, update_caller_keys, update_callee_keys,
2941 add_new_edges_to_heap): Update.
2942 (cgraph_decide_inlining_of_small_function): Update; set
2943 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
2944 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
2945 cgraph_decide_inlining_incrementally): Update.
2946 * ipa-inline.h (inline_summary): Add inlinable, versionable,
2947 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
2948 time, size and estimated_growth parameters.
2949 (estimate_edge_growth): Update.
2950 (initialize_inline_failed): Declare.
2951 * ipa-split.c: Include ipa-inline.h
2952 (execute_split_functions): Update.
2953 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
2954 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
2955 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
2956 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
2957 estimated_growth to INT_MIN.
2958 (inline_node_duplication_hook): Likewise.
2959 (dump_inline_summary): Dump new fields.
2960 (compute_inline_parameters): Update.
2961 (estimate_edge_time, estimate_time_after_inlining,
2962 estimate_size_after_inlining, estimate_growth, inline_read_summary,
2963 inline_write_summary):
2964 (initialize_inline_failed): Move here from cgraph.c.
2965 * tree-sra.c: Include ipa-inline.h.
2966 (ipa_sra_preliminary_function_checks): Update.
2967 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
2970 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2972 * config/i386/sse.md (V16): New mode iterator.
2974 (AVXMODEQI, AVXMODEDI): Remove.
2975 (sse2, sse3): New mode attribute.
2976 (mov<mode>): Use V16 mode iterator.
2977 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
2978 (push<mode>1): Use V16 mode iterator.
2979 (movmisalign<mode>): Ditto.
2980 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2981 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
2982 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2983 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
2984 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
2985 avx_movdqu<avxmodesuffix>.
2986 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
2987 *avx_movdqu<avxmodesuffix>.
2988 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
2989 avx_lddqu<avxmodesuffix>.
2990 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
2991 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
2992 avx_movnt<AVXMODEDI:mode>.
2993 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
2994 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
2996 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
2999 * haifa-sched.c (prune_ready_list, schedule_block): Use
3000 sched_pressure_p rather than flag_sched_pressure.
3002 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3004 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3005 cgraph_get_node instead of cgraph_get_create_node.
3007 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3009 * cfgexpand.c (expand_debug_expr): Use
3010 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3012 2011-04-15 Michael Matz <matz@suse.de>
3014 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3015 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3016 * function.c (gimplify_parameters): Ditto.
3017 * gimplify.c (gimplify_vla_decl): Ditto.
3019 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3020 (gimple_call_set_alloca_for_var): New inline function.
3021 (gimple_call_alloca_for_var_p): Ditto.
3022 * gimple.c (gimple_build_call_from_tree): Remember
3023 CALL_ALLOCA_FOR_VAR_P state.
3024 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3026 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3027 calls if they were for VLA objects.
3029 2011-04-15 Martin Jambor <mjambor@suse.cz>
3031 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3034 2011-04-15 Martin Jambor <mjambor@suse.cz>
3037 * tree-emutls.c (lower_emutls_function_body): Call
3038 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3041 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3043 * c-decl.c (detect_field_duplicates): Call
3044 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3046 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3048 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3049 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3050 * ipa-pure-const.c (check_stmt): Call it.
3051 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3053 2011-04-15 Richard Guenther <rguenther@suse.de>
3055 PR tree-optimization/48290
3056 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3057 Properly decide inhibiting propagation based on the valueized
3058 operand. Do loop-closed SSA form preserving here ...
3059 (init_copy_prop): ... not here.
3061 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3064 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3065 (*ieee_smax<mode>3): Likewise.
3067 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3069 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3070 Replace match_operand with match_dup for the third operand in
3073 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3075 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3076 to track processing of conditionals. Update all callers.
3077 (try_combine, simplify_if_then_else): Update.
3079 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3081 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3084 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3086 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3087 instead of match_operand for operand 3.
3089 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3091 * recog.h (insn_operand_data): Add an "allows_mem" field.
3092 * genoutput.c (output_operand_data): Initialize it.
3093 * optabs.c (maybe_legitimize_operand_same_code): New function.
3094 (maybe_legitimize_operand): Use it when matching the original
3097 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3099 * gimplify.c: Fix issues in comments throughout.
3100 (voidify_wrapper_expr): Fix long line.
3101 (build_stack_save_restore): Likewise.
3102 (gimplify_loop_expr): Likewise.
3103 (gimplify_compound_lval): Likewise.
3104 (gimplify_init_ctor_eval): Likewise.
3105 (gimplify_modify_expr_rhs): Likewise.
3106 (omp_notice_threadprivate_variable): Likewise.
3108 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3110 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3111 original one if this is not a builtin function.
3113 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3116 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3117 offset it as needed based on top 2 bits in operands[3], change
3118 MEM mode to SFmode and mask those 2 bits away from operands[3].
3120 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3122 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3123 change from objc_declare_protocols() to objc_declare_protocol().
3125 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3127 * config/i386/sse.md (sse4_1): New mode attribute.
3128 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3129 avx_blend<ssemodesuffix><avxmodesuffix> and
3130 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3131 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3132 avx_blendv<ssemodesuffix><avxmodesuffix> and
3133 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3134 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3135 avx_dp<ssemodesuffix><avxmodesuffix> and
3136 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3137 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3138 (sse4_1_packusdw): Merge with *avx_packusdw.
3139 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3140 (sse4_1_pblendw): Merge with *avx_pblendw.
3141 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3142 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3143 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3145 (sse4_1_round<ssescalarmodesuffix>): Merge with
3146 *avx_round<ssescalarmodesuffix>.
3147 (aesenc): Merge with *avx_aesenc.
3148 (aesenclast): Merge with *avx_aesenclast.
3149 (aesdec): Merge with *avx_aesdec.
3150 (aesdeclast): Merge with *avx_aesdeclast.
3151 (pclmulqdq): Merge with *pclmulqdq.
3152 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3154 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3156 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3159 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3160 (align_local_variable): This. Update DECL_ALIGN.
3161 (add_stack_var): Updated.
3162 (expand_one_stack_var): Likewise.
3164 2011-04-14 Richard Guenther <rguenther@suse.de>
3166 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3168 (dse_initialize_block_local_data, dse_leave_block,
3169 record_voperand_set, get_stmt_uid): Likewise.
3170 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3171 (dse_optimize_stmt): Remove voperand set handling code.
3172 Simplify and improve to handle any kind of killing stmt.
3173 (dse_record_phi): Remove.
3174 (dse_enter_block): Simplify.
3175 (tree_ssa_dse): Likewise.
3176 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3178 2011-04-14 Jan Hubicka <jh@suse.cz>
3180 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3181 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3182 (cgraph_local_info): Remove inline_summary.
3183 * ipa-cp.c: Include ipa-inline.h.
3184 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3185 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3187 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3188 (input_overwrite_node): Do not set inline summary.
3189 (input_node): Do not stream inline summary.
3190 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3191 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3192 growth; we do not have inline parameters computed for that anyway.
3193 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3194 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3195 (inline_summary_t): New type and VECtor.
3196 (debug_inline_summary, dump_inline_summaries): Declare.
3197 (inline_summary): Use VOCtor.
3198 (estimate_edge_growth): Kill hack computing call stmt size directly.
3199 * lto-section-in.c (lto_section_name): Add inline section.
3200 * ipa-inline-analysis.c: Include lto-streamer.h
3201 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3202 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3203 (inline_summary_vec): Define.
3204 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3205 dump_inline_summaries): New functions.
3206 (estimate_function_body_sizes): Properly compute size/time of outgoing
3208 (compute_inline_parameters): Alloc inline_summary; do not compute
3209 size/time of incomming calls.
3210 (estimate_edge_time): Avoid missing time summary hack.
3211 (inline_read_summary): Read inline summary info.
3212 (inline_write_summary): Write inline summary info.
3213 (inline_free_summary): Free all hooks and inline summary vector.
3214 * lto-streamer.h: Add LTO_section_inline_summary section.
3215 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3216 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3218 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3220 * tree-vectorizer.h (vect_strided_store_supported): Add a
3221 HOST_WIDE_INT argument.
3222 (vect_strided_load_supported): Likewise.
3223 (vect_permute_store_chain): Return void.
3224 (vect_transform_strided_load): Likewise.
3225 (vect_permute_load_chain): Delete.
3226 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3227 count argument. Check that the count is a power of two.
3228 (vect_strided_load_supported): Likewise.
3229 (vect_permute_store_chain): Return void. Update after above changes.
3230 Assert that the access is supported.
3231 (vect_permute_load_chain): Likewise.
3232 (vect_transform_strided_load): Return void.
3233 * tree-vect-stmts.c (vectorizable_store): Update calls after
3234 above interface changes.
3235 (vectorizable_load): Likewise.
3236 (vect_analyze_stmt): Don't check for strided powers of two here.
3238 2011-04-14 Richard Guenther <rguenther@suse.de>
3240 PR tree-optimization/48590
3241 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3242 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3243 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3244 BUILT_IN_STACK_SAVE.
3245 * tree-ssa-dce.c (propagate_necessity): Handle
3246 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3248 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3250 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3253 2011-04-14 Richard Guenther <rguenther@suse.de>
3255 * tree.h (get_object_alignment_1): Declare.
3256 * builtins.c (get_object_alignment_1): Split out worker from ...
3257 (get_object_alignment): ... here.
3258 * fold-const.c (get_pointer_modulus_and_residue): Use
3259 get_object_alignment_1.
3261 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3263 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3265 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3266 parameter. Generalise code to handle arrays as well as vectors.
3267 (vect_setup_realignment): Update accordingly.
3268 * tree-vect-stmts.c (vectorizable_store): Likewise.
3269 (vectorizable_load): Likewise.
3271 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3273 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3274 within the per-copy loop.
3276 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3278 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3281 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3283 * doc/options.texi (Negative): Explicitly mention that the
3284 Negative chain must be circular.
3286 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3288 * function.h (block_chainon): Declare.
3289 * function.c (block_chainon): Define.
3291 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3292 Eric Weddington <eric.weddington@atmel.com>
3293 Georg-Johann Lay <avr@gjlay.de>
3295 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3297 (avr_init_builtins, avr_expand_builtin,
3298 avr_expand_delay_cycles, avr_expand_unop_builtin,
3299 avr_expand_binop_builtin ): New functions.
3300 (avr_builtin_id): New enum
3301 (struct avr_builtin_description): New struct
3302 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3303 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3305 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3306 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3307 UNSPECV_DELAY_CYCLES): new enumeration values
3308 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3309 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3310 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3311 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3312 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3313 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3314 "fmulsu"): New insns
3316 * config/avr/avr-c.c: fix line endings
3317 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3318 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3319 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3320 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3321 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3323 * doc/extend.texi (AVR Built-in Functions): New node
3324 (Target Builtins): Add documentation of AVR
3327 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3330 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3331 alone. Error if non-const data has attribute progmem.
3333 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3335 * tree.h (struct tree_constructor): Include tree_typed instead of
3337 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3338 TS_TYPED instead of TS_COMMON.
3340 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3342 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3343 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3344 (sse2_psadbw): Merge with *avx_psadbw.
3345 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3346 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3347 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3348 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3349 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3350 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3351 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3352 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3353 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3354 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3355 (ssse3_palignrti): Merge with *avx_palignrti.
3357 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3359 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3360 * tree-ssanames.c (fini_ssanames): VEC_free it.
3361 (make_ssa_name_fn): Update for VECness of free_ssanames.
3362 (release_ssa_name, release_dead_ssa_names): Likewise.
3363 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3365 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3366 TS_TYPED instead of TS_COMMON.
3368 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3370 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3371 statistics_counter_event.
3372 * tree-ssa-copyrename.c (stats): Define.
3373 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3374 statistics_counter_event.
3375 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3376 (bswap_stats, widen_mul_stats): Define.
3377 (insert_reciprocals): Increment rdivs_inserted.
3378 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3379 rfuncs_inserted. Add calls to statistics_counter_event.
3380 (execute_cse_sincos_1): Increment inserted.
3381 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3382 statistics_counter_event.
3383 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3384 of bswap_stats. Add calls to statistics_counter_event.
3385 (convert_mult_to_widen): Increment widen_mults_inserted.
3386 (convert_plusminus_to_widen): Increment maccs_inserted.
3387 (convert_mult_to_fma): Increment fmas_inserted.
3388 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3389 calls to statistics_counter_event.
3391 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3393 PR rtl-optimization/48455
3394 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3395 `temp_costs->mem_cost'.
3397 2011-04-13 Jan Hubicka <jh@suse.cz>
3399 * ipa-inline.h: New file.
3400 * ipa-inline-analysis.c: New file. Broken out of ...
3401 * ipa-inline.c: ... this file; update toplevel comment;
3402 include ipa-inline.h
3403 (inline_summary): Move to ipa-inline.h
3404 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3405 ipa-inline-analysis.c.
3406 (cgraph_estimate_time_after_inlining): Rename to
3407 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3408 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3409 to estimate_edge_growth.
3410 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3411 rename to estimate_size_after_inlining.
3412 (cgraph_mark_inline_edge): Update for new naming convention.
3413 (cgraph_check_inline_limits): Likewise.
3414 (cgraph_edge_badness): Likewise.
3415 (cgraph_decide_recursive_inlining): Likewise.
3416 (cgraph_decide_inlining_of_small_functions): Likewise.
3417 (cgraph_decide_inlining_incrementally): Likewise.
3418 (cgraph_estimate_growth): Rename to estimate_growth; move to
3419 ipa-inline-analysis.c.
3420 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3421 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3422 (compute_inline_parameters): Likewise.
3423 (compute_inline_parameters_for_current): Likewise.
3424 (pass_inline_parameters): Likewise.
3425 (inline_indirect_intraprocedural_analysis): Likewise.
3426 (analyze_function): Rename to inline_analyze_function; likewise.
3427 (add_new_function): Move to ipa-inline-analysis.c.
3428 (inline_generate_summary): Likewise.
3429 (inline_read_summary): Likewise.
3430 (inline_write_summary): Likewise.
3431 * Makefile.in (ipa-inline-analysis.c): New file.
3433 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3435 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3436 * configure: Regenerate.
3438 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3440 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3441 instead of tree_common.
3442 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3444 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3445 TS_TYPED rather than TS_COMMON.
3446 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3448 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3451 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3452 r20 around calls of __tablejump_elpm__
3454 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3457 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3459 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3461 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3463 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3464 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3465 (cfi_vec): New typedef.
3466 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3467 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3468 (cie_cfi_vec): New static variable.
3469 (cie_cfi_head): Delete.
3470 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3471 declaration changed. Use vector rather than list operations.
3472 (new_cfi): Don't initialize the dw_cfi_next field.
3473 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3474 rather than list operations.
3475 (lookup_cfa): Use vector rather than list operations.
3476 (output_cfis): New argument upto. Accept a cfi_vec rather than
3477 a dw_cfi_ref list head as argument. All callers changed.
3478 Iterate over the vector using upto as a maximum index.
3479 (output_all_cfis): New static function.
3480 (output_fde): Use vector rather than list operations. Use the
3481 new upto argument for output_cfis rather than manipulating a
3483 (dwarf2out_begin_prologue): Change initializations to match
3485 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3486 from the vector length rather than searching for the end of a list.
3487 Use output_all_cfis.
3488 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3490 2011-04-13 Nick Clifton <nickc@redhat.com>
3492 * config/rx/rx.md (movmemsi): Do not use this pattern when
3493 volatile pointers are involved.
3495 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3497 * config/i386/sse.md (pinsrbits): Remove.
3498 (sse2_packsswb): Merge with *avx_packsswb.
3499 (sse2_packssdw): Merge with *avx_packssdw.
3500 (sse2_packuswb): Merge with *avx_packuswb.
3501 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3502 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3503 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3504 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3505 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3506 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3507 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3508 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3509 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3510 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3511 (sse2_loadld): Merge with *avx_loadld.
3512 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3513 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3514 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3515 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3516 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3518 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3520 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3522 * print-tree.c (print_node): Likewise.
3523 * tree-inline.c (copy_tree_r): Likewise.
3524 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3525 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3526 instead of TS_COMMON.
3527 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3528 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3529 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3530 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3531 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3533 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3535 (TREE_CHAIN): Check for a TS_COMMON structure.
3536 (TREE_TYPE): Check for a TS_TYPED structure.
3538 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3540 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3541 cgraph_get_create_node instead of cgraph_node.
3543 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3545 * c-parser.c (c_parser_initelt): Updated call to
3546 objc_build_message_expr.
3547 (c_parser_postfix_expression): Likewise.
3549 2011-04-12 Kai Tietz <ktietz@redhat.com>
3551 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3552 MASK_MS_BITFIELD_LAYOUT bit.
3554 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3556 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3557 assert it is always true.
3558 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3561 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3563 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3564 compiling Objective-C to be more efficient.
3566 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3568 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3571 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3573 * recog.h, genoutput.c, optabs.c: Revert last patch.
3575 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3578 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3580 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3582 * recog.h (insn_operand_data): Add an "allows_mem" field.
3583 * genoutput.c (output_operand_data): Initialize it.
3584 * optabs.c (maybe_legitimize_operand_same_code): New function.
3585 (maybe_legitimize_operand): Use it when matching the original
3588 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3590 * genpreds.c (process_define_predicate): Move most processing
3591 to gensupport.c. Continue to validate the expression.
3592 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3593 (process_define_predicate): Move processing to gensupport.c.
3594 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3595 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3596 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3598 (valid_predicate_name_p): New function, split out from old
3599 genpreds.c:process_define_predicate.
3600 (process_define_predicate): New function, combining code from
3601 old genpreds.c and genrecog.c functions.
3602 (process_rtx): Call it for DEFINE_PREDICATE and
3603 DEFINE_SPECIAL_PREDICATE.
3605 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3607 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3608 size of a '%A' memory reference.
3609 (T_DREG, T_QREG): New neon_builtin_type_bits.
3610 (arm_init_neon_builtins): Assert that the load and store operands
3611 are neon_struct_operands.
3612 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3613 (NEON_ARG_MEMORY): New builtin_arg.
3614 (neon_dereference_pointer): New function.
3615 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3616 Handle NEON_ARG_MEMORY.
3617 (arm_expand_neon_builtin): Update after above interface changes.
3618 Use NEON_ARG_MEMORY for loads and stores.
3619 * config/arm/predicates.md (neon_struct_operand): New predicate.
3620 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3621 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3622 (V_four_elem): Tweak formatting.
3623 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3624 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3625 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3626 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3627 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3628 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3629 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3630 Use %A in the output template.
3631 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3632 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3633 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3634 the width of the memory access. Remove post-increment.
3635 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3637 2011-04-12 Nick Clifton <nickc@redhat.com>
3639 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3640 instruction for interrupt handlers if the target is the basic V850
3642 (expand_epilogue): Likewise.
3644 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3646 PR rtl-optimization/48549
3647 * combine.c (propagate_for_debug): Also stop after BB_END of
3648 this_basic_block. Process LAST and just stop processing after it.
3649 (combine_instructions): If last_combined_insn has been deleted,
3650 set last_combined_insn to its PREV_INSN.
3652 2011-04-12 Richard Guenther <rguenther@suse.de>
3654 PR tree-optimization/46076
3655 * gimple.h (struct gimple_statement_call): Add fntype field.
3656 (gimple_call_fntype): Adjust.
3657 (gimple_call_set_fntype): New function.
3658 * gimple.c (gimple_build_call_1): Set the call function type.
3659 * gimplify.c (gimplify_call_expr): Preserve the function
3660 type the frontend used for the call.
3661 (gimplify_modify_expr): Likewise.
3662 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3664 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3666 * tree-ssa.c (useless_type_conversion_p): Function pointer
3667 conversions are useless.
3669 2011-04-12 Martin Jambor <mjambor@suse.cz>
3671 * cgraph.h (cgraph_node): Remove function declaration.
3672 (cgraph_create_node): Declare.
3673 (cgraph_get_create_node): Likewise.
3674 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3675 Updated all callers.
3676 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3677 the decl does not already exist. Call cgraph_get_create_node instead
3679 (cgraph_get_create_node): New function.
3680 (cgraph_same_body_alias): Update comment.
3681 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3682 assert it does not return NULL.
3683 (cgraph_update_edges_for_call_stmt): Likewise.
3684 (cgraph_clone_edge): Likewise.
3685 (cgraph_create_virtual_clone): Likewise.
3686 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3687 instead of cgraph_node.
3688 (cgraph_add_new_function): Call cgraph_create_node or
3689 cgraph_get_create_node instead of cgraph_node.
3690 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3691 instead of cgraph_node.
3692 (record_eh_tables): Likewise.
3693 (mark_address): Likewise.
3694 (mark_load): Likewise.
3695 (build_cgraph_edges): Call cgraph_get_create_node instead
3697 (rebuild_cgraph_edges): Likewise.
3698 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3699 instead of cgraph_node.
3700 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3702 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3703 cgraph_create_node instead of cgraph_node.
3704 * c-decl.c (finish_function): Call cgraph_get_create_node instead
3706 * lto-cgraph.c (input_node): Likewise.
3707 * lto-streamer-in.c (input_function): Likewise.
3708 * varasm.c (mark_decl_referenced): Likewise.
3709 (assemble_alias): Likewise.
3711 2011-04-12 Martin Jambor <mjambor@suse.cz>
3713 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3714 instead of cgraph_node and assert it does not return NULL.
3715 * lto-streamer-in.c (lto_read_body): Likewise.
3716 * omp-low.c (new_omp_context): Likewise.
3717 (create_task_copyfn): Likewise.
3718 * tree-emutls.c (lower_emutls_function_body): Likewise.
3719 * matrix-reorg.c (transform_allocation_sites): Likewise.
3721 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3724 * c-typeck.c (build_asm_expr): Error out on attempts to use
3725 void type outputs or inputs for constraints that allow reg or
3728 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
3729 Richard Earnshaw <rearnsha@arm.com>
3732 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3733 to use sign-magnitude offsets. Reject unsupported unaligned
3734 cases. Add detailed description in comments.
3735 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3736 condition from TARGET_32BIT to TARGET_ARM.
3738 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
3740 * tree.h (struct typed_tree): New.
3741 (struct tree_common): Include it instead of tree_base.
3742 (TREE_TYPE): Update for new location of type field.
3743 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3744 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3745 (union tree_node): Add typed field.
3746 * treestruct.def (TS_TYPED): New.
3747 * lto-streamer.c (check_handled_ts_structures): Handle it.
3748 * tree.c (MARK_TS_TYPED): New macro.
3749 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3751 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
3753 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3754 (force_nonfallthru): Do not alter the loop nest if no basic block
3757 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3759 * config/i386/sse.md (VI): New mode iterator.
3761 (AVX256MODEI): Ditto.
3762 (AVXMODEF4P): Ditto.
3763 (avxvecpsmode): Ditto.
3764 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
3765 (sse2_andnot<mode>3): New expander.
3766 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3767 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
3768 (<any_logic:code><mode>3): Use VI mode iterator.
3769 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3770 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
3771 (*andnottf3): Handle AVX three-operand constraints.
3772 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3774 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3775 Robert Millan <rmh@gnu.org>
3777 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3778 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3779 GNU_USER_DYNAMIC_LINKER64): Define.
3780 (REG_NAME): Don't undefine.
3781 (MD_UNWIND_SUPPORT): Undefine.
3782 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3783 (REG_NAME): Don't undefine.
3784 (MD_UNWIND_SUPPORT): Undefine.
3785 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3787 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3789 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3790 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3792 2011-04-11 Xinliang David Li <davidxl@google.com>
3794 * value-profile.c (check_ic_target): New function.
3795 (gimple_ic_transform): Sanity check indirect call target.
3796 * gimple-low.c (gimple_check_call_args): Interface change.
3797 (gimple_check_call_matching_types): New function.
3798 * tree-inline.c (tree_can_inline_p): Call new function.
3800 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
3802 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3803 tree-pretty-print.h & realmpfr.h.
3805 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
3808 * ira.c (setup_pressure_classes): Fix typo in loop condition.
3809 (setup_allocno_and_important_classes): Ditto.
3811 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3813 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3814 GNU_USER_DYNAMIC_LINKER.
3815 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3816 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3817 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3818 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3819 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3820 GNU_USER_TARGET_OS_CPP_BUILTINS.
3821 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3822 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3823 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3824 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3825 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3826 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3827 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3828 GNU_USER_TARGET_OS_CPP_BUILTINS.
3829 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3830 GNU_USER_DYNAMIC_LINKER.
3831 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3832 GNU_USER_TARGET_OS_CPP_BUILTINS.
3833 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3834 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3835 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3836 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3837 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3838 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3839 GNU_USER_DYNAMIC_LINKER64): Remove.
3840 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3841 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3842 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3843 GNU_USER_DYNAMIC_LINKER.
3844 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3845 GNU_USER_TARGET_OS_CPP_BUILTINS.
3846 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3847 GNU_USER_TARGET_OS_CPP_BUILTINS.
3848 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3849 to GNU_USER_TARGET_OS_CPP_BUILTINS.
3850 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3851 GNU_USER_TARGET_OS_CPP_BUILTINS.
3852 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3853 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3854 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3855 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3856 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3857 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3858 GNU_USER_DYNAMIC_LINKER.
3859 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3860 GNU_USER_TARGET_OS_CPP_BUILTINS.
3861 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
3862 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3863 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3864 GNU_USER_DYNAMIC_LINKER.
3865 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3866 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3867 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3868 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3869 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3870 GNU_USER_DYNAMIC_LINKER.
3871 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3872 GNU_USER_DYNAMIC_LINKERN32.
3873 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3874 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
3875 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
3876 GNU_USER_DYNAMIC_LINKER32.
3877 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
3878 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3879 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3880 GNU_USER_DYNAMIC_LINKER.
3881 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3882 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3883 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3884 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3885 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3886 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3887 GNU_USER_DYNAMIC_LINKER32.
3888 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3889 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3890 GNU_USER_DYNAMIC_LINKER.
3891 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3892 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3893 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3894 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
3895 GNU_USER_DYNAMIC_LINKER64.
3896 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3897 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3898 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3899 GNU_USER_DYNAMIC_LINKER.
3900 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3901 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3902 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3903 GNU_USER_DYNAMIC_LINKER.
3904 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3905 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3906 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3907 GNU_USER_DYNAMIC_LINKER32.
3908 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3909 GNU_USER_DYNAMIC_LINKER64.
3910 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3911 GNU_USER_DYNAMIC_LINKER64.
3912 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3913 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3914 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3915 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3916 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3918 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3920 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
3921 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3922 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3923 GNU_USER_DYNAMIC_LINKER.
3924 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3925 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
3926 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3927 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3928 GNU_USER_DYNAMIC_LINKER64.
3929 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3930 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
3931 GNU_USER_LINK_EMULATION.
3932 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3933 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
3934 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
3935 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
3936 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
3937 CPP_SPEC, CC1_SPEC): Remove.
3938 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
3939 (GNU_USER_DYNAMIC_LINKER): Define.
3940 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
3941 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
3942 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
3943 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
3944 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
3945 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
3946 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3947 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
3948 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
3949 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
3950 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
3951 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
3952 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
3953 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
3954 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
3955 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3956 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3957 GNU_USER_DYNAMIC_LINKER.
3958 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3959 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3960 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3961 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3962 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3963 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3964 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
3965 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
3966 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
3967 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
3969 2011-04-11 Kai Tietz <ktietz@redhat.com>
3973 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
3974 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
3976 (ix86_is_msabi_thiscall): Removed.
3977 (ix86_is_type_thiscall): Likewise.
3978 (ix86_get_callcvt): New function.
3979 (ix86_comp_type_attributes): Simplify check.
3980 (ix86_function_regparm): Use ix86_get_callcvt for calling
3981 convention attribute checks.
3982 (ix86_return_pops_args): Likewise.
3983 (ix86_static_chain): Likewise.
3984 (x86_this_parameter): Likewise.
3985 (x86_output_mi_thunk): Likewise.
3986 (ix86_function_type_abi): Optimize check for types without attributes.
3987 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
3988 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
3989 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
3991 (IX86_BASE_CALLCVT): Helper macro.
3992 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3993 Use ix86_get_callcvt for calling convention attribute checks and avoid
3994 symbol-decoration for stdcall in TARGET_RTD case.
3995 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
3997 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4000 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4002 * config/i386/sse.md (VI_128): New mode iterator.
4003 (VI12_128): Rename from SSEMODE12.
4004 (VI14_128): Rename from SSEMODE14.
4005 (VI124_128): New mode iterator.
4006 (VI24_128): Rename from SSEMODE248.
4007 (VI248_128): Rename from SSEMODE248.
4008 (SSEMODE124C8): Remove.
4009 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4010 (*sse2_<plusminus_insn><mode>3): Merge with
4011 *avx_<plusminus_insn><mode>3.
4012 (*mulv8hi3): Merge with *avx_mulv8hi3.
4013 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4014 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4015 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4016 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4017 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4018 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4019 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4020 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4021 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4022 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4023 (*<smaxmin:code>v8hi3): Ditto.
4024 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4025 (*<smaxmin:code>v16qi3): Ditto.
4026 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4027 (*sse2_eq<mode>3): Ditto.
4028 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4029 (*sse2_gt<mode>3): Ditto.
4030 (vcondv2di): Split out of vcond<mode>.
4031 (vconduv2di): Split out of vcondu<mode>.
4033 2011-04-11 Richard Guenther <rguenther@suse.de>
4035 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4036 before calling tree_low_cst.
4038 2011-04-11 Richard Guenther <rguenther@suse.de>
4040 * stor-layout.c (layout_type): Compute all array index size operations
4041 in the original type.
4042 (initialize_sizetypes): Add comment.
4043 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4045 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4047 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4049 2011-04-11 Martin Jambor <mjambor@suse.cz>
4051 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4052 of cgraph_node, handle NULL return value.
4053 (cgraph_global_info): Likewise.
4054 (cgraph_rtl_info): Likewise.
4055 * tree-inline.c (estimate_num_insns): Likewise.
4056 * gimplify.c (unshare_body): Likewise.
4057 (unvisit_body): Likewise.
4058 (gimplify_body): Likewise.
4059 * predict.c (optimize_function_for_size_p): Likewise.
4060 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4061 (call_may_clobber_ref_p_1): Likewise.
4062 * varasm.c (function_section_1): Likewise.
4063 (assemble_start_function): Likewise.
4065 2011-04-11 Martin Jambor <mjambor@suse.cz>
4067 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4069 * final.c (rest_of_clean_state): Likewise.
4070 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4071 * passes.c (pass_init_dump_file): Likewise.
4072 (execute_all_ipa_transforms): Likewise.
4073 (function_called_by_processed_nodes_p): Likewise.
4074 * predict.c (maybe_hot_frequency_p): Likewise.
4075 (probably_never_executed_bb_p): Likewise.
4076 (compute_function_frequency): Likewise.
4077 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4078 (unnest_nesting_tree_1): Likewise.
4079 (lower_nested_functions): Likewise.
4080 * tree-optimize.c (execute_fixup_cfg): Likewise.
4081 (tree_rest_of_compilation): Likewise.
4082 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4083 * tree-sra.c (ipa_early_sra): Likewise.
4084 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4085 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4086 * ipa.c (record_cdtor_fn): Likewise.
4087 * ipa-inline.c (cgraph_early_inlining): Likewise.
4088 (compute_inline_parameters_for_current): Likewise.
4089 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4090 * ipa-pure-const.c (local_pure_const): Likewise.
4091 * ipa-split.c (split_function): Likewise.
4092 (execute_split_functions): Likewise.
4093 * cgraphbuild.c (build_cgraph_edges): Likewise.
4094 (rebuild_cgraph_edges): Likewise.
4095 (cgraph_rebuild_references): Likewise.
4096 (remove_cgraph_callee_edges): Likewise.
4097 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4098 (verify_cgraph_node): Likewise.
4099 (cgraph_analyze_functions): Likewise.
4100 (cgraph_preserve_function_body_p): Likewise.
4101 (save_inline_function_body): Likewise.
4102 (save_inline_function_body): Likewise.
4103 * tree-inline.c (copy_bb): Likewise.
4104 (optimize_inline_calls): Likewise.
4106 2011-04-11 Martin Jambor <mjambor@suse.cz>
4108 PR tree-optimization/48195
4109 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4110 ipa_check_create_edge_args.
4111 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4112 ipa_check_create_edge_args.
4113 * ipa-inline.c (inline_generate_summary): Do not call
4114 ipa_check_create_node_params and ipa_check_create_edge_args.
4115 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4116 ipa_check_create_edge_args.
4118 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4120 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4122 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4123 * function.c (record_hard_reg_sets): Likewise.
4124 * ira.c (compute_regs_asm_clobbered): Likewise.
4125 * sched-deps.c (sched_analyze_1): Likewise.
4126 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4128 2011-04-09 Xinliang David Li <davidxl@google.com>
4130 PR tree-optimization/PR48484
4131 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4132 has_valid_pred lazily
4134 2011-04-09 Duncan Sands <baldrick@free.fr>
4136 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4138 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4140 * combine.c (combine_validate_cost): Adjust comments. Set registered
4141 cost of I0 to zero at the end, if any.
4143 2011-04-08 Xinliang David Li <davidxl@google.com>
4145 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4146 to insane profile data.
4148 2011-04-08 Xinliang David Li <davidxl@google.com>
4150 * ipa-cp.c (ipcp_update_profiling): Correct
4151 negative scale factor due to insane profile data.
4153 2011-04-08 Xinliang David Li <davidxl@google.com>
4155 * final.c (dump_basic_block_info): New function.
4156 (final): Dump basic block.
4157 (final_scan_insn): Remove old dump.
4159 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4162 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4165 2011-04-08 Michael Matz <matz@suse.de>
4168 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4170 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4171 * rtl.h (rebuild_jump_labels_chain): Declare.
4172 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4173 insns inserted on edges.
4175 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4177 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4178 * config/arm/arm-arches.def: New.
4179 * config/arm/arm-opts.h: New.
4180 * config/arm/genopt.sh: New.
4181 * config/arm/arm-tables.opt: New (generated).
4182 * config/arm/arm.c (arm_handle_option, arm_target_help,
4183 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4184 (all_architectures): Get most table contents from arm-arches.def.
4185 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4186 arm_selected_tune here.
4187 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4188 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4189 (march=, mcpu=, mtune=): Use Enum and Var.
4190 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4191 (arm.o): Update dependencies.
4193 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4195 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4197 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4198 (write_typed_alloc_defns): Likewise.
4199 (main): Calls write_typed_alloc_defns with output_header.
4201 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4204 * ira-color.c (setup_profitable_hard_regs): Add comments.
4205 Don't take prohibited hard regs into account.
4206 (setup_conflict_profitable_regs): Rename to
4207 get_conflict_profitable_regs.
4208 (check_hard_reg_p): Check prohibited hard regs.
4210 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4212 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4213 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4214 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4216 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4219 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4220 move from floating point to shift amount register.
4221 (emit_move_sequence): Remove secondary reload support for floating
4222 point to shift amount amount register copies.
4223 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4224 amount register copies.
4225 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4226 register, return false if mode isn't a scalar integer mode.
4227 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4229 2011-04-08 Richard Guenther <rguenther@suse.de>
4231 * gimple.c (gimple_call_flags): Remove kludge.
4233 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4235 * sel-sched.c (sel_region_init): Move call to
4236 sel_setup_region_sched_flags after setup_current_loop_nest.
4238 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4240 PR rtl-optimization/48272
4241 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4242 init_insn_reg_pressure_info. Adjust a caller.
4243 * sched-int.h (init_insn_reg_pressure_info): Declare.
4244 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4245 when sched-pressure is enabled.
4247 2011-04-08 Richard Guenther <rguenther@suse.de>
4249 * gimple.c (gimple_set_modified): Do not queue calls to
4250 MODIFIED_NORETURN_CALLS here ...
4251 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4253 2011-04-08 Richard Guenther <rguenther@suse.de>
4256 * toplev.c (lang_dependent_init): Do not open asm_out_file
4257 in WPA mode, nor perform debug machinery initialization.
4258 (finalize): Do not unlink asm_out_file in WPA mode.
4260 2011-04-08 Richard Guenther <rguenther@suse.de>
4262 * gimple.h (gimple_call_fntype): New function.
4263 (gimple_call_return_type): Use it.
4264 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4265 * gimple-low.c (gimple_check_call_args): Likewise.
4266 * gimple.c (gimple_call_flags): Likewise.
4267 (gimple_call_arg_flags): Likewise.
4268 (gimple_call_return_flags): Likewise.
4269 * tree-cfg.c (verify_gimple_call): Likewise.
4270 (do_warn_unused_result): Likewise.
4271 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4272 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4274 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4276 PR rtl-optimization/48235
4277 * sel-sched.c (code_motion_process_successors): Recompute the last
4278 insn in basic block if control flow changed.
4279 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4280 Update condition for ilist_remove.
4282 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4284 PR rtl-optimization/48302
4285 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4286 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4287 it to record added preheader blocks.
4288 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4289 on to sel_add_loop_preheaders.
4290 (sel_region_init): Move call to setup_current_loop_nest after
4293 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4296 * cfgloop.h (loop_has_exit_edges): New helper.
4297 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4299 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4300 that have no exit edges.
4302 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4304 PR rtl-optimization/48442
4305 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4306 all callers. Adjust assert.
4308 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4310 PR tree-optimization/48377
4311 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4312 is_packed to true even for types with smaller TYPE_ALIGN than
4315 2011-04-08 Richard Guenther <rguenther@suse.de>
4318 * doc/tm.texi: Re-generate.
4320 2011-04-08 Wei Guozhi <carrot@google.com>
4323 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4324 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4325 * config/arm/arm.md (*push_multi): Change the length computation to
4328 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4330 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4331 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4332 * doc/tm.texi: Regenerate.
4333 * system.h (ASM_OUTPUT_BSS): Poison.
4334 * varasm.c (asm_output_bss): Remove function.
4335 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4337 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4338 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4339 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4340 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4342 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4344 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4346 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4348 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4350 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4353 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4355 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4356 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4357 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4359 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4360 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4361 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4362 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4363 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4364 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4365 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4366 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4367 options. Don't map other m68k options manually. Don't handle
4368 old-style options as canonical.
4369 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4370 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4372 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4374 * basic-block.h (force_nonfallthru): Move to...
4375 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4376 (force_nonfallthru): ...here.
4377 * cfghooks.c (force_nonfallthru): New function.
4378 * cfgrtl.c (force_nonfallthru): Rename into...
4379 (rtl_force_nonfallthru): ...this.
4380 (commit_one_edge_insertion): Do not set AUX field.
4381 (commit_edge_insertions): Do not discover new basic blocks.
4382 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4383 (cfg_layout_rtl_cfg_hooks): Likewise.
4384 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4385 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4386 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4388 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4390 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4393 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4395 * config/i386/sse.md: Update copyright year.
4396 (avxcvtvecmode): Remove.
4397 (sse_movhlps): Merge with *avx_movhlps.
4398 (sse_movlhps): Merge with *avx_movlhps.
4399 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4400 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4401 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4402 (sse_loadhps): Merge with *avx_loadhps.
4403 (sse_storelps): Merge with *avx_storelps.
4404 (sse_loadlps): Merge with *avx_loadlps.
4405 (sse_movss): Merge with *avx_movss.
4406 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4407 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4408 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4409 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4410 (vec_set<mode>_0): Ditto.
4411 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4412 (sse4_1_insertps): Merge with *avx_insertps.
4413 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4414 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4415 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4416 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4417 (sse2_storehpd): Merge with *avx_storehpd.
4418 (sse2_loadhpd): Merge with *avx_loadhpd.
4419 (sse2_loadlpd): Merge with *avx_loadlpd.
4420 (sse2_movsd): Merge with *avx_movsd.
4421 (*vec_concatv2df): Merge with *vec_concatv2df.
4423 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4426 * combine.c (combine_instructions): Add last_combined_insn,
4427 update it if insn is after it, pass it to all try_combine calls.
4428 (try_combine): Add last_combined_insn parameter, pass it instead of
4429 i3 to propagate_for_debug.
4431 2011-04-07 Nick Clifton <nickc@redhat.com>
4433 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4434 to handle MDR <-> data register transfers.
4435 (movhi_internal): Likewise.
4437 2011-04-07 Alan Modra <amodra@gmail.com>
4439 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4440 previous stack info.
4442 2011-04-07 Tom de Vries <tom@codesourcery.com>
4445 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4446 flow_find_cross_jump. Swap variables to implement backward replacement.
4447 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4449 2011-04-07 Tom de Vries <tom@codesourcery.com>
4452 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4453 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4455 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4456 src1 or src2. Redirect edges to the last basic block. Update
4457 frequency and count on multiple basic blocks in case of fallthru.
4459 2011-04-07 Tom de Vries <tom@codesourcery.com>
4462 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4464 (old_insns_match_p): Change return type. Replace return false/true
4465 with return dir_none/dir_both. Use can_replace_by.
4466 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4467 direction from dir_p. Register replacement direction in dir, last_dir
4468 and afterlast_dir. Handle new return type of old_insns_match_p using
4469 merge_dir. Return replacement direction in dir_p.
4470 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4471 return type of old_insns_match_p.
4472 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4473 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4474 flow_find_cross_jump.
4475 * basic-block.h (enum replace_direction): New type.
4476 (flow_find_cross_jump): Add parameter to declaration.
4478 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4480 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4481 (AVXMODEDCVTPS2DQ): Ditto.
4482 (VEC_FLOAT_MODE): Ditto.
4483 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4484 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4485 (<any_logic:code><mode>3): Use VF mode iterator.
4486 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4487 Use VF mode iterator.
4488 (copysign<mode>3): Use VF mode iterator.
4489 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4490 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4491 (*<any_logic:code><MODEF:mode>3): Merge with
4492 *avx_<any_logic:code><MODEF:mode>3.
4493 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4494 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4495 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4496 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4497 (sse2_cvtdq2ps): Use %v modifier.
4498 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4499 (avx_cvtps2dq<avxmodesuffix>): Remove.
4500 (sse2_cvtps2dq): Use %v modifier.
4501 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4502 (avx_cvttps2dq<avxmodesuffix>): Remove.
4503 (sse2_cvttps2dq): Use %v modifier.
4504 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4505 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4506 (sse2_cvtsd2siq): Fix insn template.
4507 (sse2_cvtsd2siq_2): Ditto.
4508 (sse2_cvttsd2siq): Ditto.
4509 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4510 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4512 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4514 * gcov-io.c: Use GCC Runtime Library Exception.
4516 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4519 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4520 as base_reg whatever register reg has been eliminated to, instead
4521 of hardcoding STACK_POINTER_REGNUM.
4523 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4525 * doc/tm.texi.in: Document C target hooks as separate from general
4527 * doc/tm.texi: Regenerate.
4528 * genhooks.c (struct hook_desc): Add docname field.
4529 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4531 (hook_array): Include c-target.def.
4532 (emit_documentation): Use docname field in output.
4533 (emit_init_macros): Take docname argument. Only emit definitions
4534 for hooks matching docname.
4535 (main): Expect additional arguments in all cases. Pass argument
4536 to emit_init_macros.
4537 * target.def: Move initial macro definitions and comments to
4538 target-hooks-macros.h.
4539 (gcc_targetcm): Move to c-family/c-target.def.
4540 * target.h (targetcm): Move declaration to c-family/c-target.h.
4541 * targhooks.c (default_handle_c_option): Move to
4543 * targhooks.h (default_handle_c_option): Move declaration to
4544 c-family/c-common.h.
4545 * target-hooks-macros.h: New file.
4546 * config.gcc (target_has_targetcm): Define and use to add to
4547 c_target_objs and cxx_target_objs.
4548 * config/default-c.c: New file.
4549 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4550 of target.h and target-def.h.
4551 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4552 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4553 darwin_check_cfstring_format_arg): Make static.
4554 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4555 TARGET_STRING_OBJECT_REF_TYPE_P,
4556 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4557 * config/darwin-protos.h (darwin_objc_construct_string,
4558 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4560 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4561 TARGET_STRING_OBJECT_REF_TYPE_P,
4562 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4563 * config/t-darwin (darwin-c.o): Update dependencies.
4564 * system.h (TARGET_HAS_TARGETCM): Poison.
4565 * Makefile.in (TARGET_H): Update.
4566 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4567 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4568 (default-c.o): New target.
4569 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4570 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4571 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4573 (build/genhooks.o): Update dependencies.
4575 2011-04-06 Richard Guenther <rguenther@suse.de>
4577 * ipa-inline.c (enum inlining_mode): Remove.
4578 (cgraph_flatten): Use some other token.
4579 (cgraph_edge_early_inlinable_p): New function, split out from ...
4580 (cgraph_perform_always_inlining): New function, split out from ...
4581 (cgraph_decide_inlining_incrementally): ... here.
4582 (cgraph_mark_inline_edge): Adjust.
4583 (cgraph_early_inlining): Re-structure.
4584 (pass_early_inline): Require SSA form.
4586 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4587 Julian Brown <julian@codesourcery.com>
4588 Mark Shinwell <shinwell@codesourcery.com>
4590 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4591 LO_REGS only for Thumb-1.
4592 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4593 be used in short instructions when optimising for size on Thumb-2.
4595 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4597 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4598 associated with user returns to be preserved.
4600 2011-04-06 Tristan Gingold <gingold@adacore.com>
4602 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4603 symbol_queue_size, DBXOUT_DECR_NESTING,
4604 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4605 if XCOFF_DEBUGGING_INFO.
4607 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4609 * config/i386/i386.md (attribute isa): New.
4610 (attribute enabled): New.
4611 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4612 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4613 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4614 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4615 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4616 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4617 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4618 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4620 * config/i386/sse.md (VF): New mode iterator.
4624 (SSEMODEF4): Remove.
4625 (attribute sse): Handle V8SF and V4DF modes.
4626 (<absneg:code><mode>2): Use VF mode iterator.
4627 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4629 (<plusminus_insn><mode>3): Use VF mode iterator.
4630 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4631 Use VF mode iterator.
4632 (<sse>_vm<plusminus_insn><mode>3): Merge with
4633 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4634 (mul<mode>3): Use VF mode iterator.
4635 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4636 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4638 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4639 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4640 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4641 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4643 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4644 Use VF1 mode iterator.
4645 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4646 (sqrt<VF2:mode>2): New expander.
4647 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4648 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4649 and sqrtv2df2. Use VF mode iterator.
4650 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4652 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4653 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4654 Use VF1 mode iterator.
4655 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4656 (<smaxmin:code><mode>3): Use VF mode iterator.
4657 (*<smaxmin:code><mode>3_finite): Merge with
4658 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4659 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4660 (<sse>_vm<smaxmin:code><mode>2): Merge with
4661 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4662 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4664 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4666 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4667 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4668 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4669 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4670 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4672 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4673 Use VF_128 mode iterator.
4674 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4676 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4677 VF_128 mode iterator.
4678 (vcond<mode>): Use VF mode iterator.
4679 * config/i386/predicates.md (sse_comparison_operator): Merge with
4680 avx_comparison_float_operator. Do not declare as special_predicate.
4681 * config/i386/i386.c (struct builtin_description): Update for renamed
4683 (ix86_expand_args_builtin): Ditto.
4684 (ix86_expand_sse_compare_mask): Ditto.
4686 2011-04-06 Richard Guenther <rguenther@suse.de>
4688 * tree-inline.c (estimate_num_insns): For calls simply account
4689 for all passed arguments and a used return value.
4691 2011-04-06 Richard Guenther <rguenther@suse.de>
4693 PR tree-optimization/47663
4694 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4695 call_stmt_time fields.
4696 (cgraph_edge_inlinable_p): Declare.
4697 (cgraph_edge_recursive_p): New inline function.
4698 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4699 (cgraph_clone_edge): Copy it.
4700 * ipa-inline.c (cgraph_estimate_edge_time): New function.
4701 Account for call stmt time.
4702 (cgraph_estimate_time_after_inlining): Take edge argument.
4703 (cgraph_estimate_edge_growth): Account call stmt size.
4704 (cgraph_estimate_size_after_inlining): Take edge argument.
4705 (cgraph_mark_inline_edge): Adjust.
4706 (cgraph_check_inline_limits): Likewise.
4707 (cgraph_recursive_inlining_p): Remove.
4708 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4709 (cgraph_decide_recursive_inlining): Take edge argument and
4711 (cgraph_decide_inlining_of_small_functions): Do not avoid
4712 diags for recursive inlining here.
4713 (cgraph_flatten): Adjust.
4714 (cgraph_decide_inlining_incrementally): Likewise.
4715 (estimate_function_body_sizes): Remove call cost handling.
4716 (compute_inline_parameters): Initialize caller edge call costs.
4717 (cgraph_estimate_edge_growth): New function.
4718 (cgraph_estimate_growth): Use it.
4719 (cgraph_edge_badness): Likewise.
4720 (cgraph_check_inline_limits): Take an edge argument.
4721 (cgraph_decide_inlining_of_small_functions): Adjust.
4722 (cgraph_decide_inlining): Likewise.
4723 * tree-inline.c (estimate_num_insns): Only account for call
4724 return value if it is used.
4725 (expand_call_inline): Avoid diagnostics on recursive inline
4727 * lto-cgraph.c (lto_output_edge): Output edge call costs.
4728 (input_edge): Input edge call costs.
4730 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4732 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4734 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4736 * doc/invoke.texi (Spec Files): Fix typo.
4738 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4740 * profile.c (branch_prob): Move declaration of local variable. Remove
4741 obsolete ??? comment. Expand the location explicitly instead of using
4742 the LOCATION_FILE and LOCATION_LINE macros.
4744 2011-04-06 Wei Guozhi <carrot@google.com>
4747 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4748 (arm_cond_branch): Likewise.
4749 (arm_cond_branch_reversed): Likewise.
4750 (arm_jump): Likewise.
4751 (push_multi): Likewise.
4752 * config/arm/constraints.md (Py): New constraint.
4754 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4757 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4759 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4760 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4761 #ifdef DBX_DEBUGGING_INFO.
4763 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
4766 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4767 if old and new states differ.
4769 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4771 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4772 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4773 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4774 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4775 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4777 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4778 ColdFire options to -mcpu= options.
4780 2011-04-05 Jeff Law <law@redhat.com>
4782 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4783 check if BB is a successor of LOOP->header and return
4784 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4786 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4788 * cprop.c (struct reg_use): Remove.
4789 (reg_use_table): Make an array of RTX.
4790 (find_used_regs, constprop_register, local_cprop_pass,
4791 bypass_block): Simplify users of reg_use_table.
4792 (cprop_insn): Likewise. Iterate if copy propagation succeeded
4793 on one of the uses found by find_used_regs.
4795 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4798 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4801 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4803 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4805 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4807 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4810 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4812 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4814 * combine.c: Include obstack.h.
4815 (struct insn_link): Define.
4816 (uid_log_links): Adjust type.
4817 (FOR_EACH_LOG_LINK): New macro.
4818 (insn_link_obstack): Declare.
4819 (alloc_insn_link): Define.
4820 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
4821 type of link variables.
4822 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4823 (try_combine, record_promoted_values, distribute_notes): Likewise.
4824 (distribute_links): Likewise. Tweak prototype.
4825 (clear_log_links): Delete.
4826 (adjust_for_new_dest): Call alloc_insn_link.
4827 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4829 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4831 * gcse.c (modify_mem_list): Convert to an array of VECs.
4832 (canon_modify_mem_list, compute_transp): Tweak formatting.
4833 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
4834 (load_killed_in_block_p): Likewise.
4835 (record_last_mem_set_info): Likewise.
4836 (clear_modify_mem_tables): Likewise.
4838 2011-04-05 Tom de Vries <tom@codesourcery.com>
4841 * function.c (emit_use_return_register_into_block): Only define if
4844 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
4846 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4848 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4850 * config/rx/rx-opts.h: New.
4851 * config/rx/rx.c (rx_cpu_type): Remove.
4852 (rx_handle_option): Don't assert that global structures are in
4853 use. Access variables via opts pointer. Defer most handling of
4854 OPT_mint_register_. Use error_at.
4855 (rx_option_override): Handle deferred OPT_mint_register_ here.
4856 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4857 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4858 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4859 (rx_cpu_types): New Enum and EnumValue entries.
4860 (mint-register=): Use Defer and use Var accordingly.
4862 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4864 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4865 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4866 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4868 (debug_free_queue, debug_nesting, symbol_queue_index):
4870 * dbxout.c: ...to here. Make static.
4872 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4874 * gcse.c (modify_pair): Define. Define a VEC of it.
4875 (canon_modify_mem_list): Convert to an array of VECs.
4876 (free_insn_expr_list_list): Delete.
4877 (clear_modify_mem_tables): Call VEC_free instead.
4878 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4879 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4880 (canon_list_insert, compute_transp): Likewise.
4882 2011-04-05 Tom de Vries <tom@codesourcery.com>
4885 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4888 2011-04-05 Tom de Vries <tom@codesourcery.com>
4891 * function.c (emit_use_return_register_into_block): New function.
4892 (thread_prologue_and_epilogue_insns): Use
4893 emit_use_return_register_into_block.
4895 2011-04-05 Tom de Vries <tom@codesourcery.com>
4898 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4901 2011-04-05 Tom de Vries <tom@codesourcery.com>
4903 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4905 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
4907 * config/arm/arm.md (define_constants for unspec): Replace with
4909 (define_constants for unspecv): Replace with define_c_enum.
4910 * config/arm/neon.md (define_constants for unspec): Replace with
4913 2011-04-04 Richard Henderson <rth@redhat.com>
4916 * dwarf2out.c (output_line_info): Always emit line info from
4917 at least one section.
4918 (dwarf2out_init): Create text_section_line_info here ...
4919 (set_cur_line_info_table): ... not here.
4921 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
4924 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
4927 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
4929 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
4931 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
4932 (expr_equiv_p): Remove.
4933 (insert_set_in_table): Look at <dest, src> pair instead of expr.
4934 (hash_scan_set): Update call to insert_set_in_table.
4935 (dump_hash_table): Dump <dest, src> pair.
4936 (lookup_set): Simplify. Lookup <dest, src> pair.
4937 (compute_transp): Remove, fold heavily simplified code into...
4938 (compute_local_properties): ...here. Expect COMP and TRANSP
4940 (find_avail_set): Take set directly from struct expr.
4941 (find_bypass-set): Likewise.
4942 (bypass_block): Likewise.
4943 (cprop_insn): Likewise. Remove redundant INSN_P test.
4945 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
4946 checks on form of COND from find_implicit_sets to here.
4947 (find_implicit_sets): Cleanup control flow. Split critical edges
4948 if it exposes implicit sets. Allocate/resize implicit_sets as
4950 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
4951 changed something. Run df_analyze after find_implicit_sets if any
4952 edges were split. Do not allocate implicit_sets here.
4954 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
4955 (gcse_obstack): Renamed to cprop_obstack.
4956 (GNEW, GNEWVEC, GNEWVAR): Remove.
4958 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
4959 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
4960 (gcse_alloc): Likewise, and rename to cprop_alloc.
4961 (alloc_gcse_men, free_gcse_mem): Remove.
4962 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
4963 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
4964 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
4966 * cprop.c (oprs_not_set_p): Remove.
4967 (mark_set, mark_clobber): Remove.
4968 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
4969 (reg_not_set_p): New function.
4970 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
4971 (cprop_insn): Likewise.
4972 (cprop_jump): Use FOR_EACH_EDGE.
4974 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
4977 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
4978 (rank_for_schedule): Use scheduled_insns vector instead of
4979 last_scheduled_insn.
4980 (ok_for_early_queue_removal): Likewise.
4981 (queue_to_ready): Search forward in nonscheduled_insns_begin if
4983 (choose_ready): Likewise.
4984 (commit_schedule): Use VEC_iterate.
4985 (schedule_block): Initialize nonscheduled_insns_begin. If we have
4986 a dbg_cnt, use it and ensure the first insn is in the ready list.
4987 (haifa_sched_init): Allocate scheduled_insns.
4988 (sched_extend_ready_list): Don't allocate it; reserve space.
4989 (haifa_sched_finish): Free it.
4991 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4993 * optc-gen.awk: Always remove type from Variable entry before
4994 recording in var_seen.
4996 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
4998 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
4999 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5000 call to tidy_fallthru_edges.
5002 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5004 * doc/options.texi (ToLower): Document.
5005 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5006 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5007 * opts.h (cl_option): Add cl_tolower field.
5008 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5009 arguments with lowercase strings.
5010 * config/rx/rx.opt (mcpu=): Add ToLower.
5011 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5014 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5016 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5018 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5020 * config/vax/vax.c: Include reload.h.
5022 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5024 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5025 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5026 (sparc_preferred_reload_class): New function.
5028 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5031 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5032 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5034 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5036 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5037 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5039 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5041 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5042 (ASM_OUTPUT_ALIGNED_BSS): Define.
5044 2011-04-03 Michael Matz <matz@suse.de>
5046 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5047 and next_slot members.
5048 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5049 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5050 (lto_streamer_cache_append): Declare.
5051 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5052 unsigned index, remove offset parameter, ensure that we append
5053 or update existing entries.
5054 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5055 parameter, update next_slot for append.
5056 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5058 (lto_streamer_cache_insert_at): Likewise.
5059 (lto_streamer_cache_append): New function.
5060 (lto_streamer_cache_lookup): Use unsigned index.
5061 (lto_streamer_cache_get): Likewise.
5062 (lto_record_common_node): Don't test tree_node_can_be_shared.
5063 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5064 (lto_streamer_cache_delete): Don't free offsets member.
5065 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5066 (lto_output_string_with_length): Use lto_output_data_stream.
5067 (lto_output_tree_header): Remove ix parameter, don't write it.
5068 (lto_output_builtin_tree): Likewise.
5069 (lto_write_tree): Adjust callers to above, don't track and write
5070 offset, write unsigned index.
5071 (output_unreferenced_globals): Don't emit all global vars.
5072 (write_global_references): Use unsigned indices.
5073 (lto_output_decl_state_refs): Likewise.
5074 (write_symbol): Likewise.
5075 * lto-streamer-in.c (lto_input_chain): Move earlier.
5076 (input_function): Use unsigned index.
5077 (input_alias_pairs): Don't read and then ignore all global vars.
5078 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5079 don't pass it back, use lto_streamer_cache_append.
5080 (lto_register_var_decl_in_symtab): Use unsigned index.
5081 (lto_register_function_decl_in_symtab): Likewise.
5082 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5084 (lto_get_builtin_tree): Don't read index, use
5085 lto_streamer_cache_append.
5086 (lto_read_tree): Adjust call to lto_materialize_tree.
5088 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5089 don't use function calls in arguments to MIN.
5091 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5094 * gimple.c (gimple_type_leader_entry): Mark deletable.
5096 2011-04-03 Alan Modra <amodra@gmail.com>
5098 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5100 2011-04-03 Michael Matz <matz@suse.de>
5102 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5104 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5106 2011-04-03 Michael Matz <matz@suse.de>
5108 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5109 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5110 without function context.
5111 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5112 current_function_decl and cfun.
5114 2011-04-03 Michael Matz <matz@suse.de>
5116 * tree.c (decl_init_priority_insert): Don't create entry for
5118 (decl_fini_priority_insert): Ditto.
5119 (fields_compatible_p, find_compatible_field): Remove.
5120 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5121 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5123 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5125 * combine.c (try_combine): Remove useless local variable.
5127 2011-04-03 Richard Guenther <rguenther@suse.de>
5128 Ira Rosen <ira.rosen@linaro.org>
5130 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5131 non-variable offsets and compare the remaining bases of the two
5132 accesses instead of looking for exact same data-ref.
5134 2011-04-02 Kai Tietz <ktietz@redhat.com>
5137 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5139 * i386.c (ix86_is_msabi_thiscall): New helper function.
5140 (ix86_is_type_thiscall): New helper function.
5141 (ix86_comp_type_attributes): Handle thiscall for method-functions
5143 (init_cumulative_args): Likewise.
5144 (find_drap_reg): Likewise.
5145 (ix86_static_chain): Likewise.
5146 (x86_this_parameter): Likewise.
5147 (x86_output_mi_thunk): Likewise.
5149 2011-04-01 Olivier Hainque <hainque@adacore.com>
5150 Nicolas Setton <setton@adacore.com>
5151 Eric Botcazou <ebotcazou@adacore.com>
5153 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5154 (add_gnat_descriptive_type_attribute): New function.
5155 (gen_array_type_die): Call it.
5156 (gen_enumeration_type_die): Likewise.
5157 (gen_struct_or_union_type_die): Likewise.
5158 (modified_type_die): Likewise.
5159 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5160 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5161 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5163 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5166 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5167 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5170 2011-03-17 Richard Guenther <rguenther@suse.de>
5173 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5174 origin for decls in other ltrans units.
5175 (input_varpool_node): Likewise.
5177 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5180 * expr.c (expand_assignment): Handle all possibilities
5181 if TO_RTX is CONCAT.
5182 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5183 (store_split_bit_field): If SUBREG_REG (op0) or
5184 op0 itself has smaller mode than word, return it
5185 for offset 0 and const0_rtx for out-of-bounds stores.
5186 If word is const0_rtx, skip it.
5188 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5190 * config/h8300/h8300.c (print_operand_address): Rename to...
5191 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5192 Call h8300_print_operand and h8300_print_operand_address instead of
5193 print_operand and print_operand_address. Declare.
5194 (print_operand): Renake to...
5195 (h8300_print_operand): ...this. Make static. Adjust comments.
5196 Call h8300_print_operand instead of print_operand. Declare.
5197 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5198 (h8300_register_move_cost): Likewise.
5199 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5200 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5201 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5202 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5203 * config/h8300/h8300-protos.h (print_operand): Delete.
5204 (print_operand_address): Delete.
5206 2011-04-01 Richard Henderson <rth@redhat.com>
5209 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5210 in strict mode before dwarf4. Re-order tests to early out
5211 before switching sections.
5213 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5215 * config/h8300/constraints.md: New file.
5216 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5217 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5218 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5219 * config/h8300/predicates.md (bit_operand): Likewise.
5220 (incdec_operand): Use satisfies_constraint_M and
5221 satisfies_constraint_O. Don't use C code block.
5222 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5223 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5224 (compute_mov_length): Use satisfies_constraint_G.
5225 (fix_bit_operand): Use satisfies_constraint_U.
5226 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5227 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5228 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5229 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5230 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5231 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5232 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5233 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5234 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5235 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5236 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5237 (EXTRA_MEMORY_CONSTRAINT): Delete.
5239 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5240 Michael Meissner <meissner@linux.vnet.ibm.com>
5243 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5244 operands, as per the specifications.
5246 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5247 (vec_extract_evenv4sf): Ditto.
5248 (vec_extract_evenv8hi): Ditto.
5249 (vec_extract_evenv16qi): Ditto.
5250 (vec_extract_oddv4si): Ditto.
5252 2011-03-31 Mark Wielaard <mjw@redhat.com>
5254 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5255 high_pc attribute if the CU has no associated code. Only output
5256 DW_AT_entry_pc for CU if not generating strict dwarf and
5259 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5261 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5262 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5264 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5265 * final.c (final_start_function): Call the new function rather
5266 than using a NULL argument for dwarf2out_frame_debug.
5268 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5269 that contains the prologue.
5271 * haifa-sched.c (queue_insn): New arg REASON. All callers
5272 changed. Print it in debugging output.
5274 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5276 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5277 Split most of the code into...
5278 (begin_move_insn): ... here. New function.
5279 (ebb_sched_info): Add a pointer to it.
5280 * haifa-sched.c (scheduled_insns): New static variable.
5281 (sched_extend_ready_list): Allocate it.
5282 (schedule_block): Use it to record the order of scheduled insns.
5283 Perform RTL changes to move insns only after all scheduling
5284 decisions have been made.
5285 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5286 begin_move_insn field.
5287 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5288 * sched-int.h (struct haifa_sched_info): Remove second argument
5289 from begin_schedule_ready hook. Add new member begin_move_insn.
5290 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5291 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5293 * haifa-sched.c (prune_ready_list): New function, broken out of
5295 (schedule_block): Use it.
5297 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5299 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5301 2011-04-01 Kai Tietz <ktietz@redhat.com>
5303 * config.gcc (*-*-mingw*): Allow as option the
5304 posix threading model.
5305 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5306 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5308 (CPP_SPEC): Add pthread/no-pthread handling.
5309 (LIB_SPEC): Likewise.
5310 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5311 (LIB_SPEC): Likewise.
5312 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5313 flag to pass -pthread option for shared libgcc build.
5314 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5315 for shared libgcc build.
5316 * config/i386/t-mingw-pthread: New file.
5317 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5318 New define to enable use of library pthread by default.
5319 * config/i386/mingw.opt (pthread): New driver option.
5320 (no-pthread): New driver option.
5321 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5322 * config/i386/mingw-w64.opt: Likewise.
5324 2011-04-01 Gary Funck <gary@intrepid.com>
5326 * c-decl.c (grokdeclarator): Fix formatting.
5328 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5330 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5331 instead of n_operands.
5332 (set_storage_via_setmem): Likewise.
5333 * optabs.c (maybe_gen_insn): Likewise.
5334 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5335 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5336 (mips_expand_builtin_direct): Likewise.
5337 * config/spu/spu.c (expand_builtin_args): Likewise.
5339 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5341 * recog.h (insn_data_d): Add n_generator_args.
5342 * genoutput.c (data): Likewise.
5343 (output_insn_data): Print it.
5344 (max_opno, num_dups): Delete.
5345 (scan_operands): Just fill in "d->operand[...]".
5346 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5348 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5350 * gensupport.h (pattern_stats): New structure.
5351 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5352 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5353 (max_operand_1, max_operand_vec): Delete.
5354 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5356 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5358 * emit-rtl.c (emit_pattern_after_setloc): New function.
5359 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5360 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5361 (emit_pattern_after): New function.
5362 (emit_insn_after, emit_jump_insn_after): Call it.
5363 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5364 (emit_pattern_before_setloc): New function.
5365 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5366 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5368 (emit_pattern_before): New function.
5369 (emit_insn_before, emit_jump_insn_before): Call it.
5370 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5372 2011-03-31 Richard Henderson <rth@redhat.com>
5374 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5375 (dw_separate_line_info_entry): Remove.
5376 (enum dw_line_info_opcode): New.
5377 (dw_line_info_entry): Use it.
5378 (dw_line_info_table, dw_line_info_table_p): New.
5379 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5380 (line_info_table, line_info_label_num): Remove.
5381 (line_info_table_in_use): Remove.
5382 (separate_line_info_table): Remove.
5383 (separate_line_info_table_allocated): Remove.
5384 (separate_line_info_table_in_use): Remove.
5385 (LINE_INFO_TABLE_INCREMENT): Remove.
5386 (line_info_label_num): New.
5387 (cur_line_info_table): New.
5388 (text_section_line_info, cold_text_section_line_info): New.
5389 (separate_line_info): New.
5390 (SEPARATE_LINE_CODE_LABEL): Remove.
5391 (print_dwarf_line_table): Remove.
5392 (debug_dwarf): Don't dump it.
5393 (output_one_line_info_table): New.
5394 (output_line_info): Use it.
5395 (new_line_info_table): New.
5396 (set_cur_line_info_table): New.
5397 (dwarf2out_switch_text_section): Use it.
5398 (dwarf2out_begin_function): Likewise.
5399 (push_dw_line_info_entry): New.
5400 (dwarf2out_source_line): Rewrite for new line info tables.
5401 (dwarf2out_init): Remove dead initailizations.
5403 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5405 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5407 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5408 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5409 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5410 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5411 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5412 * opt-functions.awk (flag_init, switch_bit_fields): New.
5413 (switch_flags): Don't handle flags moved to bit-fields. Don't
5414 generate CL_MISSING_OK or CL_SAVE.
5415 * optc-gen.awk: Update to generate bit-field output as well as
5417 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5418 bit-field instead of CL_REJECT_DRIVER flag.
5419 * opts-common.c (generate_canonical_option,
5420 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5421 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5422 instead of CL_REJECT_NEGATIVE flag.
5423 * toplev.c (print_switch_values): Use cl_report bit-field instead
5426 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5428 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5429 a zero minimum index only if it is redundant.
5431 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5433 PR rtl-optimization/48381
5434 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5435 instead of ira_class_hard_reg_index for calculating conflicting
5438 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5440 * cprop.c: Clean up hash table building.
5441 (reg_avail_info): Remove.
5442 (oprs_available_p): Remove.
5443 (record_last_reg_set_info): Remove.
5444 (record_last_set_info): Remove.
5445 (reg_available_p): New function.
5446 (gcse_constant_p): Do not treat unfolded conditions as constants.
5447 (make_set_regs_unavailable): New function.
5448 (hash_scan_set): Simplify with new reg_available_p.
5449 (compute_hash_table_work): Traverse insns stream only once.
5450 Do not compute reg_avail_info. Traverse insns in reverse order.
5451 Record implicit sets after recording explicit sets from the block.
5453 2011-03-31 Michael Matz <matz@suse.de>
5455 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5457 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5459 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5460 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5461 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5462 (h8300_mode_dependent_address_p): New function.
5463 (h8300_get_index): Make static.
5465 2011-03-31 Jeff Law <law@redhat.com>
5467 * reload1.c (elimination_effects): Fix typo in recent change.
5469 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5470 typo potentially leading to null pointer dereference.
5472 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5473 (setup_save_areas): Corresponding changes to avoid useless
5476 * jump.c (reversed_comparison_code_parts): Avoid successive return
5477 statements when REVERSE_CONDITION is defined.
5479 * expr.c (expand_assignment): Avoid useless assignments.
5480 (expand_expr_real_1): Likewise.
5481 (expand_expr_real_2): Avoid useless statements.
5483 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5485 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5487 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5490 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5492 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5495 * doc/tm.texi.in (TARGET_VERSION): Remove.
5496 * doc/tm.texi: Regenerate.
5497 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5498 * collect2.c (main): Don't use TARGET_VERSION.
5499 * mips-tdump.c (main): Don't use TARGET_VERSION.
5500 * mips-tfile.c (main): Don't use TARGET_VERSION.
5501 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5502 * config/rs6000/vxworksae.h: Remove.
5503 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5504 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5505 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5506 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5507 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5508 * config/arm/arm.h (TARGET_VERSION): Remove.
5509 * config/arm/coff.h (TARGET_VERSION): Remove.
5510 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5511 * config/arm/elf.h (TARGET_VERSION): Remove.
5512 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5513 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5514 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5515 * config/arm/pe.h (TARGET_VERSION): Remove.
5516 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5517 * config/arm/semi.h (TARGET_VERSION): Remove.
5518 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5519 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5520 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5521 * config/avr/avr.h (TARGET_VERSION): Remove.
5522 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5523 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5524 * config/frv/frv.h (TARGET_VERSION): Remove.
5525 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5526 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5527 * config/i386/darwin.h (TARGET_VERSION): Remove.
5528 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5529 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5530 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5531 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5532 * config/i386/gnu.h (TARGET_VERSION): Remove.
5533 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5534 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5535 * config/i386/linux.h (TARGET_VERSION): Remove.
5536 * config/i386/linux64.h (TARGET_VERSION): Remove.
5537 * config/i386/lynx.h (TARGET_VERSION): Remove.
5538 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5539 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5540 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5541 * config/i386/netware.h (TARGET_VERSION): Remove.
5542 * config/i386/nto.h (TARGET_VERSION): Remove.
5543 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5544 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5545 * config/ia64/elf.h (TARGET_VERSION): Remove.
5546 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5547 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5548 * config/ia64/linux.h (TARGET_VERSION): Remove.
5549 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5550 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5551 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5552 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5553 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5554 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5555 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5556 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5557 * config/m68k/linux.h (TARGET_VERSION): Remove.
5558 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5559 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5560 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5561 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5562 * config/mep/mep.h (TARGET_VERSION): Remove.
5563 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5564 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5565 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5566 * config/mips/linux.h (TARGET_VERSION): Remove.
5567 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5568 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5569 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5570 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5571 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5572 * config/pa/pa.h (TARGET_VERSION): Remove.
5573 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5574 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5575 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5576 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5577 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5578 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5579 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5580 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5581 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5582 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5583 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5584 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5585 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5586 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5587 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5588 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5589 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5590 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5591 * config/s390/linux.h (TARGET_VERSION): Remove.
5592 * config/s390/s390.h (TARGET_VERSION): Remove.
5593 * config/s390/tpf.h (TARGET_VERSION): Remove.
5594 * config/score/score.h (TARGET_VERSION): Remove.
5595 * config/sh/linux.h (TARGET_VERSION): Remove.
5596 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5597 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5598 * config/sh/sh.h (TARGET_VERSION): Remove.
5599 * config/sh/sh64.h (TARGET_VERSION): Remove.
5600 * config/sh/superh.h (TARGET_VERSION): Remove.
5601 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5602 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5603 * config/sparc/linux.h (TARGET_VERSION): Remove.
5604 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5605 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5606 TARGET_NAME32, TARGET_NAME): Remove.
5607 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5608 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5609 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5610 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5611 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5612 * config/spu/spu.h (TARGET_VERSION): Remove.
5613 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5614 * config/v850/v850.h (TARGET_VERSION): Remove.
5615 * config/vax/linux.h (TARGET_VERSION): Remove.
5616 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5617 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5618 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5620 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5623 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5624 frame-related from frame-unrelated adjustments to the stack pointer.
5626 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5628 * common.opt (fdebug-types-section): Move earlier.
5629 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5631 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5633 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5636 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5638 * tree.h (CASE_CHAIN): Define.
5639 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5640 (gimple_redirect_edge_and_branch): Likewise.
5642 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5645 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5648 2011-03-30 Jeff Law <law@redhat.com>
5650 * PR bootstrap/48371
5651 * reload1.c (reload): Fix botch in last change.
5653 * reload.h (struct reload): Fix typo introduced in last change.
5655 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5657 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5658 Undocumented. Remove help text.
5659 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5662 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5664 * doc/options.texi (NegativeAlias): Document.
5665 (Alias): Mention NegativeAlias.
5666 * opt-functions.awk: Handle NegativeAlias.
5667 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5668 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5669 * opts.h (CL_NEGATIVE_ALIAS): Define.
5670 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5671 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5673 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5675 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5676 mno-spe and mno-isel instead of mspe=no and -misel=no.
5678 2011-03-29 Mark Wielaard <mjw@redhat.com>
5680 * common.opt (fdebug-types-section): New flag.
5681 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5682 * dwarf2out.c (use_debug_types): New define.
5683 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5684 (print_die): Guard output of type unit signatures using
5686 (build_abbrev_table): Replace assert of dwarf_version >= 4
5687 with assert on use_debug_types.
5688 (size_of_die): Likewise.
5689 (unmark_dies): Likewise.
5690 (value_format): Decide AT_ref_external form on use_debug_types.
5691 (output_die): Replace dwarf_version version check guard with
5692 use_debug_types where appropriate.
5693 (modified_type_die): Likewise.
5694 (gen_reference_type_die): Likewise.
5695 (dwarf2out_start_source_file): Likewise.
5696 (dwarf2out_end_source_file): Likewise.
5697 (prune_unused_types_walk_attribs): Likewise.
5698 (dwarf2out_finish): Likewise.
5700 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5702 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5704 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5706 PR rtl-optimization/48332
5707 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5708 mode of input operand N and modeN to its actual mode.
5710 2011-03-30 Jeff Law <law@redhat.com>
5712 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5713 define accessor macro.
5714 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5715 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5716 (reg_equiv_init): Likewise.
5717 (reg_equivs_size): New variable.
5718 (reg_equiv_init_size): Remove.
5719 (allocate_initial_values): Move prototype to here from....
5720 * integrate.h (allocate_initial_values): Remove prototype.
5721 * integrate.c: Include reload.h.
5722 (allocate_initial_values): Corresponding changes.
5723 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5724 (fix_reg_equiv_init, no_equiv): Corresponding changes.
5725 (update_equiv_regs): Corresponding changes.
5726 (ira): Corresponding changes.
5727 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5728 (push_secondary_reload): Corresponding changes.
5729 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5730 (make_memloc, find_reloads_address): Corresponding changes.
5731 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5732 (find_reloads_address_1): Corresponding changes.
5733 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5734 (refers_to_regno_for_reload_p): Corresponding changes.
5735 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5736 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5737 * reload1.c: Include ggc.h.
5738 (grow_reg_equivs): New function.
5739 (replace_pseudos_in, reload): Corresponding changes.
5740 (calculate_needs_all_insns, alter_regs): Corresponding changes.
5741 (eliminate_regs_1, elimination_effects): Corresponding changes.
5742 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5743 (delete_output_reload): Likewise.
5744 * caller-save.c (mark_referenced_regs): Corresponding changes.
5745 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5746 * frv/predicates.md (frv_load_operand): Corresponding changes.
5747 * microblaze/microblaze.c (double_memory_operand): Corresponding
5749 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5750 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5751 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5752 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5753 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5755 * pa/pa.c (emit_move_sequence): Corresponding changes.
5756 * vax/vax.c (nonindexed_address_p): Corresponding changes.
5758 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5761 * config/arm/arm.c (coproc_secondary_reload_class): Handle
5762 structure modes. Don't check neon_vector_mem_operand for
5763 vector or structure modes.
5765 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5766 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5769 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5770 operand 1 and reshuffle the operands to match.
5771 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5773 2011-03-30 Christian Schüler <cschueler@gmx.de>
5776 * config/c.opt (F): Added 'Driver' to -F option.
5779 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5781 * config/darwin.opt: Added '-arch' option.
5783 2011-03-30 Nick Clifton <nickc@redhat.com>
5785 * config/rx/rx.md: Add peepholes and patterns to combine
5786 extending loads and simple arithmetic instructions.
5787 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5788 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5789 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5790 modes to use pre-decrement and post-increment addressing.
5791 (rx_is_restricted_memory_address): Add range checking of REG+INT
5793 (rx_print_operand): Add support for %Q. Fix handling of %Q.
5794 (rx_memory_move_cost): Adjust cost of stores.
5795 (rx_adjust_insn_length): New function.
5797 2011-03-30 Jakub Jelinek <jakub@redhat.com>
5800 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5801 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5802 matching arg00/arg01 types.
5804 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
5806 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5807 last_location to UNKNOWN_LOCATION.
5809 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
5812 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5815 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5816 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5819 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5821 (sparc_cpu): Likewise.
5822 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5825 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5829 PR rtl-optimization/48345
5830 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5831 hard regs for given mode from profitable regs when doing secondary
5834 2011-03-29 Jeff Law <law@redhat.com>
5837 * tree-ssa-threadupdate.c (struct redirection_data): Remove
5838 do_not_duplicate field.
5839 (lookup_redirection_data): Corresponding changes.
5840 (create_duplicates): Always create a template block.
5841 (redirect_edges): Remove code which reused the original block
5842 when it was going to become unreachable code.
5843 (thread_block): Don't set do_not_duplicate field.
5845 2011-03-29 Joseph Myers <joseph@codesourcery.com>
5847 * lto-opts.c (register_user_option_p, lto_register_user_option):
5848 Make type argument unsigned.
5849 * lto-streamer.h (lto_register_user_option): Make type argument
5851 * opth-gen.awk: Make CL_* macros unsigned.
5852 * opts-common.c (find_opt): Make lang_mask argument unsigned.
5853 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5854 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5855 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5856 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5857 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5858 (find_opt): Make lang_mask argument unsigned.
5860 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5862 PR rtl-optimization/48331
5863 PR rtl-optimization/48334
5864 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5865 for any used algorithm.
5867 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5869 * ira-conflicts.c (build_object_conflicts): Add unused attribute
5872 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
5874 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5875 (alpha_option_override): Don't set alpha_sr_alias_set.
5876 (emit_frame_store_1): Use gen_frame_mem rather than calling
5878 (alpha_expand_epilogue): Ditto.
5880 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
5882 PR tree-optimization/48290
5883 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5884 vectorization, check that relevant phis in the basic block after
5885 the inner loop are really inner loop's exit phis.
5887 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
5890 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5891 (cached_dw_loc_list_def): New structure.
5892 (cached_dw_loc_list): New typedef.
5893 (cached_dw_loc_list_table): New variable.
5894 (cached_dw_loc_list_table_hash): New function.
5895 (cached_dw_loc_list_table_eq): Likewise.
5896 (add_location_or_const_value_attribute): Take a bool cache_p.
5897 Cache the list when the parameter is true.
5898 (gen_formal_parameter_die): Update caller.
5899 (gen_variable_die): Likewise.
5900 (dwarf2out_finish): Likewise.
5901 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5902 while generating debug info for the decl.
5903 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5904 (dwarf2out_init): Initialize cached_dw_loc_list_table.
5905 (resolve_addr): Cache the result of resolving a chain of
5908 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
5910 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5911 conflict object hard regset nodes have intersecting hard reg sets.
5913 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5914 after regstat_init_n_sets_and_refs.
5916 * ira.c: Add more comments at the top.
5917 (setup_stack_reg_pressure_class, setup_pressure_classes):
5918 Add comments how we compute the register pressure classes.
5919 (setup_allocno_and_important_classes): Add more comments.
5920 (setup_class_translate_array, reorder_important_classes)
5921 (setup_reg_class_relations): Add comments.
5923 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
5926 * ira-color.c: Add 2011 to the Copyright line.
5927 (assign_hard_reg): Add more comments.
5928 (improve_allocation): Ditto.
5930 * ira-costs.c: Add 2011 to the Copyright line.
5931 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
5933 (setup_regno_cost_classes_by_mode): Ditto.
5935 Initial patches from ira-improv branch:
5937 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5939 * ira-build.c (ira_create_object): Remove initialization of
5940 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
5941 (ira_create_allocno): Remove initialization of
5942 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
5943 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
5944 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5945 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
5946 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
5947 Initialize ALLOCNO_ADD_DATA.
5948 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
5949 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
5951 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
5952 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
5954 * ira.c (ira_reallocate): Remove.
5955 (setup_pressure_classes): Call
5956 ira_init_register_move_cost_if_necessary. Use
5957 ira_register_move_cost instead of ira_get_register_move_cost.
5958 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
5959 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
5961 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
5962 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5963 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
5964 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
5965 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
5966 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
5968 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
5969 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5970 (struct allocno_color_data): New.
5971 (allocno_color_data_t): New typedef.
5972 (allocno_color_data): New definition.
5973 (ALLOCNO_COLOR_DATA): New macro.
5974 (struct object_color_data): New.
5975 (object_color_data_t): New typedef.
5976 (object_color_data): New definition.
5977 (OBJECT_COLOR_DATA): New macro.
5978 (update_copy_costs, calculate_allocno_spill_cost): Call
5979 ira_init_register_move_cost_if_necessary. Use
5980 ira_register_move_cost instead of ira_get_register_move_cost.
5981 (move_spill_restore, update_curr_costs): Ditto.
5982 (allocno_spill_priority): Make it inline.
5983 (color_pass): Allocate and free allocno_color_dat and object_color_data.
5984 (struct coalesce_data, coalesce_data_t): New.
5985 (allocno_coalesce_data): New definition.
5986 (ALLOCNO_COALESCE_DATA): New macro.
5987 (merge_allocnos, coalesced_allocno_conflict_p): Use
5988 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
5989 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
5990 (coalesce_allocnos): Ditto.
5991 (setup_coalesced_allocno_costs_and_nums): Ditto.
5992 (collect_spilled_coalesced_allocnos): Ditto.
5993 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
5994 (setup_slot_coalesced_allocno_live_ranges): Ditto.
5995 (coalesce_spill_slots): Ditto.
5996 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
5997 free allocno_coalesce_data.
5999 * ira-conflicts.c: Fix formatting.
6000 (process_regs_for_copy): Call
6001 ira_init_register_move_cost_if_necessary. Use
6002 ira_register_move_cost instead of ira_get_register_move_cost.
6003 (build_object_conflicts): Optimize.
6005 * ira-costs.c (record_reg_classes): Optimize. Call
6006 ira_init_register_move_cost_if_necessary. Use
6007 ira_register_move_cost, ira_may_move_in_cost, and
6008 ira_may_move_out_cost instead of ira_get_register_move_cost and
6009 ira_get_may_move_cost.
6010 (record_address_regs): Ditto.
6011 (scan_one_insn): Optimize.
6012 (find_costs_and_classes): Optimize.
6013 (process_bb_node_for_hard_reg_moves): Call
6014 ira_init_register_move_cost_if_necessary. Use
6015 ira_register_move_cost instead of ira_get_register_move_cost.
6017 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6018 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6019 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6020 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6022 (ira_initiate_emit_data, ira_finish_emit_data)
6023 (create_new_allocno): New functions.
6024 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6025 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6026 Use ira_register_move_cost instead of ira_get_register_move_cost.
6028 * ira-int.h: Fix some comments.
6029 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6030 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6031 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6032 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6034 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6035 bitfield after mode. Make hard_regno a short int. Make
6036 hard_regno short. Remove first_coalesced_allocno and
6037 next_coalesced_allocno. Move mem_optimized_dest_p,
6038 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6039 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6040 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6041 temp, colorable_p. Add new member add_data.
6042 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6043 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6044 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6045 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6046 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6047 (ALLOCNO_ADD_DATA): New macro.
6048 (ira_emit_data_t): New typedef.
6049 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6050 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6051 from struct ira_allocno.
6052 (ALLOCNO_EMIT_DATA): New macro.
6053 (ira_allocno_emit_data, allocno_emit_reg): New.
6054 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6055 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6056 (OBJECT_ADD_DATA): New macro.
6057 (ira_reallocate): Remove.
6058 (ira_initiate_emit_data, ira_finish_emit_data): New.
6059 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6060 (ira_init_register_move_cost_if_necessary): New.
6061 (ira_object_conflict_iter_next): Merge into
6062 ira_object_conflict_iter_cond.
6063 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6065 * ira-live.c (process_single_reg_class_operands): Call
6066 ira_init_register_move_cost_if_necessary. Use
6067 ira_register_move_cost instead of ira_get_register_move_cost.
6069 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6071 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6073 * ira-costs.c: Fix formatting.
6074 (cost_classes, cost_classes_num): Remove.
6075 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6076 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6077 (cost_classes_del, cost_classes_htab): New.
6078 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6079 (initiate_regno_cost_classes, setup_cost_classes): New.
6080 (setup_regno_cost_classes_by_aclass): New.
6081 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6082 (record_reg_classes): Use regno_cost_classes instead of
6083 cost_classes. Move checking opposite operand up.
6084 (record_address_regs): Use regno_cost_classes
6085 instead of cost_classes.
6086 (scan_one_insn): Ditto. Use always general register.
6087 (print_allocno_costs): Use regno_cost_classes instead of
6089 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6090 (find_costs_and_classes): Set up cost classes for each registers.
6091 Use also their mode for this. Use regno_cost_classes instead of
6093 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6095 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6096 (ira_costs, ira_set_pseudo_classes): Call
6097 initiate_regno_cost_classes and finish_regno_cost_classes.
6099 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6101 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6103 * target.def (ira_cover_classes): Remove.
6105 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6107 * doc/tm.texi.in: Ditto.
6109 * ira-conflicts.c: Remove mentioning cover classes from the file.
6110 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6111 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6113 * targhooks.c (default_ira_cover_classes): Remove.
6115 * targhooks.h (default_ira_cover_classes): Ditto.
6117 * haifa-sched.c: Remove mentioning cover classes from the file.
6118 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6119 ira_pressure_classes and ira_pressure_classes_num instead of
6120 ira_reg_class_cover_size and ira_reg_class_cover. Use
6121 sched_regno_pressure_class instead of sched_regno_cover_class.
6122 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6123 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6125 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6126 classes from the file.
6127 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6128 (struct object_hard_regs, struct object_hard_regs_node): New.
6129 (struct ira_object): New members profitable_hard_regs,
6130 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6131 (struct ira_allocno): Rename cover_class to aclass. Rename
6132 cover_class_cost and updated_cover_class_cost to class_cost and
6133 updated_class_cost. Remove splay_removed_p and
6134 left_conflict_size. Add new members colorable_p.
6135 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6136 (ALLOCNO_COLORABLE_P): New macro.
6137 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6138 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6139 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6140 (OBJECT_...): Rename parameter C to O.
6141 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6142 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6143 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6144 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6145 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6146 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6147 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6148 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6149 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6150 x_ira_reg_class_subunion.
6151 (ira_max_memory_move_cost, ira_max_register_move_cost)
6152 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6153 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6154 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6155 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6156 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6157 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6158 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6159 (ira_tune_allocno_costs_and_cover_classes): Rename to
6160 ira_tune_allocno_costs.
6161 (ira_debug_hard_regs_forest): New.
6162 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6163 (ira_object_conflict_iter_next): Fix comments.
6164 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6165 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6166 cover_class to aclass.
6167 (ira_allocate_and_accumulate_costs): Ditto.
6168 (ira_allocate_and_set_or_copy_costs): Ditto.
6170 * opts.c (decode_options): Remove ira_cover_class check.
6172 * ira-color.c: Remove mentioning cover classes from the file. Use
6173 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6174 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6175 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6176 (splay-tree.h): Remove include.
6177 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6178 before copy_freq_compare_func.
6179 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6180 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6182 (hard_regs_roots, hard_regs_node_vec): Ditto.
6183 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6184 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6185 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6186 (create_new_object_hard_regs_node): Ditto.
6187 (add_new_object_hard_regs_node_to_forest): Ditto.
6188 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6189 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6191 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6192 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6193 (remove_unused_object_hard_regs_nodes): Ditto.
6194 (enumerate_object_hard_regs_nodes): Ditto.
6195 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6196 (object_hard_regs_subnode_t): Ditto.
6197 (struct object_hard_regs_subnode): Ditto.
6198 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6199 (setup_object_hard_regs_subnode_index): Ditto.
6200 (get_object_hard_regs_subnodes_num): Ditto.
6201 (form_object_hard_regs_nodes_forest): Ditto.
6202 (finish_object_hard_regs_nodes_tree): Ditto.
6203 (finish_object_hard_regs_nodes_forest): Ditto.
6204 (allocnos_have_intersected_live_ranges_p): Rename to
6205 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6206 (pseudos_have_intersected_live_ranges_p): Rename to
6207 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6208 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6209 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6210 (update_copy_costs): Remove assert. Skip cost update if the hard
6211 reg does not belong the class.
6212 (assign_hard_reg): Process only profitable hard regs.
6213 (uncolorable_allocnos_num): Make it scalar.
6214 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6215 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6216 and ira_reg_class_max_nregs.
6217 (bucket_allocno_compare_func): Check frequency first.
6218 (sort_bucket): Add compare function as a parameter.
6219 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6220 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6221 (push_allocno_to_stack): Rewrite for checking new allocno
6223 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6224 (push_only_colorable): Pass new parameter to sort_bucket.
6225 (push_allocno_to_spill): Remove.
6226 (allocno_spill_priority_compare): Make it inline and rewrite.
6227 (splay_tree_allocate, splay_tree_free): Remove.
6228 (allocno_spill_sort_compare): New function.
6229 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6230 build and use splay tree. Choose first allocno in uncolorable
6231 allocno bucket to spill. Remove setting spill cost.
6232 (all_conflicting_hard_regs): Remove.
6233 (setup_allocno_available_regs_num): Check only profitable hard
6234 regs. Print info about hard regs nodes.
6235 (setup_allocno_left_conflicts_size): Remove.
6236 (put_allocno_into_bucket): Don't call
6237 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6238 (improve_allocation): New.
6239 (color_allocnos): Call setup_profitable_hard_regs,
6240 form_object_hard_regs_nodes_forest, improve_allocation,
6241 finish_object_hard_regs_nodes_forest. Setup spill cost.
6242 (print_loop_title): Use pressure classes.
6243 (color_allocnso): Ditto.
6244 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6245 and allocnos_for_spilling.
6246 (ira_sort_regnos_for_alter_reg): Don't setup members
6247 {first,next}_coalesced_allocno.
6248 (color): Remove allocating and freeing removed_splay_allocno_vec.
6249 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6250 prohibited_class_mode_regs.
6252 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6254 (update_allocno_pressure_excess_length): Use pressure classes.
6255 (inc_register_pressure, dec_register_pressure): Check for pressure
6257 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6258 pressure class. Use ira_reg_class_nregs instead of
6259 ira_reg_class_max_nregs.
6260 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6261 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6262 (single_reg_class): Use ira_reg_class_nregs instead of
6263 ira_reg_class_max_nregs.
6264 (process_bb_node_lives): Use pressure classes.
6266 * ira-emit.c: Remove mentioning cover classes from the file. Use
6267 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6268 (change_loop): Use pressure classes.
6269 (modify_move_list): Call ira_set_allocno_class instead of
6270 ira_set_allocno_cover_class.
6272 * ira-build.c: Remove mentioning cover classes from the file. Use
6273 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6274 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6275 ALLOCNO_UPDATED_CLASS_COST instead of
6276 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6277 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6278 (ira_create_allocno): Remove initialization of
6279 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6280 ALLOCNO_COLORABLE_P.
6281 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6282 Update conflict regs for the objects.
6283 (create_cap_allocno): Remove assert. Don't propagate
6284 ALLOCNO_AVAILABLE_REGS_NUM.
6285 (ira_free_allocno_costs): New function.
6286 (finish_allocno): Change a part of code into call of
6287 ira_free_allocno_costs.
6288 (low_pressure_loop_node_p): Use pressure classes.
6289 (object_range_compare_func): Don't compare classes.
6290 (setup_min_max_conflict_allocno_ids): Ditto.
6292 * loop-invariant.c: Remove mentioning cover classes from the file.
6293 Use ira_pressure_classes and ira_pressure_classes_num instead of
6294 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6295 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6296 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6297 Use reg_allocno_class instead of reg_cover_class.
6298 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6299 STACK_REG_COVER_CLASS.
6300 (get_regno_cover_class): Rename to get_regno_pressure_class.
6301 (move_loop_invariants): Initialize and finalize regstat.
6303 * ira.c: Remove mentioning cover classes from the file. Add
6304 comments about coloring without cover classes. Use ALLOCNO_CLASS
6305 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6306 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6307 setup_class_subset_and_memory_move_costs.
6308 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6309 (setup_cover_and_important_classes): Rename to
6310 setup_allocno_and_important_classes.
6311 (setup_class_translate_array): New.
6312 (setup_class_translate): Call it for allocno and pressure classes.
6313 (cover_class_order): Rename to allocno_class_order.
6314 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6315 of ira_class_translate.
6316 (reorder_important_classes): Set up ira_important_class_nums.
6317 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6318 (print_class_cover): Rename to print_classes. Add parameter.
6319 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6320 Print pressure classes too.
6321 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6322 setup_reg_subclasses.
6323 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6324 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6325 (setup_prohibited_class_mode_regs): Use
6326 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6327 (clarify_prohibited_class_mode_regs): New function.
6328 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6329 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6330 (ira_init_once): Initialize them.
6331 (free_register_move_costs): Process them.
6332 (ira_init): Move calls of find_reg_classes and
6333 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6334 Call clarify_prohibited_class_mode_regs.
6335 (ira_no_alloc_reg): Remove.
6336 (too_high_register_pressure_p): Use pressure classes.
6338 * sched-deps.c: Remove mentioning cover classes from the file.
6339 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6340 ira_pressure_classes and ira_pressure_classes_num instead of
6341 ira_reg_class_cover_size and ira_reg_class_cover.
6342 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6343 sched_regno_pressure_class instead of sched_regno_cover_class.
6344 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6345 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6347 * ira.h: Add 2010 to Copyright.
6348 (ira_no_alloc_reg): Remove external.
6349 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6350 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6351 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6352 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6353 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6354 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6355 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6356 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6357 x_ira_no_alloc_regs.
6358 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6359 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6360 ira_allocno_classes_num and ira_allocno_classes.
6361 (ira_class_translate): Rename to ira_allocno_class_translate.
6362 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6363 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6364 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6365 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6366 (ira_no_alloc_regs): New.
6368 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6369 classes from the file. Use ALLOCNO_CLASS instead of
6370 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6371 ALLOCNO_COVER_CLASS_COST.
6372 (regno_cover_class): Rename to regno_aclass.
6373 (record_reg_classes): Use ira_reg_class_subunion instead of
6374 ira_reg_class_union.
6375 (record_address_regs): Check overflow.
6376 (scan_one_insn): Ditto.
6377 (print_allocno_costs): Print total mem cost fore regional allocation.
6378 (print_pseudo_costs): Use REG_N_REFS.
6379 (find_costs_and_classes): Use classes intersected with them on the
6380 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6381 ira_reg_class_union. Use ira_allocno_class_translate and
6382 regno_aclass instead of ira_class_translate and regno_cover_class.
6383 Modify code for finding regno_aclass. Setup preferred classes for
6385 (setup_allocno_cover_class_and_costs): Rename to
6386 setup_allocno_class_and_costs. Use regno_aclass instead of
6387 regno_cover_class. Use ira_set_allocno_class instead of
6388 ira_set_allocno_cover_class.
6389 (init_costs, finish_costs): Use regno_aclass instead of
6391 (ira_costs): Use setup_allocno_class_and_costs instead of
6392 setup_allocno_cover_class_and_costs.
6393 (ira_tune_allocno_costs_and_cover_classes): Rename to
6394 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6395 by processing objects. Use ira_reg_class_max_nregs instead of
6396 ira_reg_class_nregs.
6398 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6400 * sched-int.h: Remove mentioning cover classes from the file.
6401 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6403 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6404 classes from the file.
6405 (struct reg_pref): Rename coverclass into allocnoclass.
6406 (reg_cover_class): Rename to reg_allocno_class.
6408 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6410 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6412 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6414 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6416 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6418 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6420 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6422 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6424 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6426 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6428 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6429 (i386_ira_cover_classes): Ditto.
6431 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6433 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6435 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6437 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6439 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6441 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6443 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6444 (mips_ira_cover_classes): Ditto.
6446 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6448 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6450 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6452 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6454 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6456 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6457 (IRA_COVER_CLASSES_VSX): Ditto.
6459 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6460 (rs6000_ira_cover_classes): Ditto.
6462 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6464 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6466 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6468 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6470 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6472 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6474 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6476 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6478 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6480 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6482 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6485 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6486 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6487 dw_fde_unlikely_section_end_label, cold_in_std_section,
6488 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6489 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6491 (output_fde): Use dw_fde_second_{begin,end} if second is
6492 true, otherwise dw_fde_{begin,end}.
6493 (output_call_frame_info): Test dw_fde_second_begin != NULL
6494 instead of dw_fde_switched_sections.
6495 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6496 fields, initialize new fields. Initialize in_std_section
6497 unconditionally from the first partition.
6498 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6499 dw_fde_second_begin is non-NULL.
6500 (dwarf2out_switch_text_section): Stop initializing removed
6501 dw_fde_struct fields, initialize new fields, initialize
6502 also dw_fde_end here. Set dw_fde_switch_cfi even when
6503 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6504 (struct var_loc_list_def): Add last_before_switch field.
6505 (arange_table, arange_table_allocated, arange_table_in_use,
6506 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6507 (size_of_aranges): Count !in_std_section and !second_in_std_section
6508 hunks in fdes, instead of looking at arange_table_in_use.
6509 (output_aranges): Add aranges_length argument, don't call
6510 size_of_aranges here. Instead of using aranges_table*
6511 emit ranges for fdes when !in_std_section resp.
6512 !second_in_std_section.
6513 (dw_loc_list): Break ranges crossing section switch.
6514 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6515 use dw_fde_second_end instead of dw_fde_end as end of last range.
6516 (gen_subprogram_die): Don't call add_arange. Use
6517 dw_fde_{begin,end} for first partition and if switched
6518 section dw_fde_second_{begin,end} for the second.
6519 (var_location_switch_text_section_1,
6520 var_location_switch_text_section): New functions.
6521 (dwarf2out_begin_function): Initialize cold_text_section even
6522 when function_section () isn't text_section.
6523 (prune_unused_types): Don't walk arange_table.
6524 (dwarf2out_finish): Don't needlessly test
6525 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6526 If info_section_emitted, call size_of_aranges and if it indicates
6527 non-empty .debug_aranges, call output_aranges with the computed
6528 size. Stop using removed dw_fde_struct fields, use
6529 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6533 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6534 create ENTRY_VALUE if incoming or address of incoming's MEM
6536 * dwarf2out.c (mem_loc_descriptor): Don't emit
6537 DW_OP_GNU_entry_value of DW_OP_fbreg.
6538 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6539 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6540 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6541 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6543 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6544 is a REG_P or MEM_P with REG_P address, compute hash directly
6545 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6546 (preserve_only_constants): Don't clear VALUES forwaring
6547 ENTRY_VALUE to some other VALUE.
6549 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6551 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6554 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6556 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6557 block before expanding the statement.
6558 (expand_gimple_stmt_1): Likewise. Set them here...
6559 (expand_gimple_stmt): ...and not here. Tidy.
6560 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6563 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6565 * Makefile.in: New rule for cprop.o.
6566 * gcse.c: Move constant/copy propagation to cprop.c.
6567 (compute_local_properties): Only handle expression tables.
6568 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6569 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6570 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6571 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6572 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6573 compute_cprop_data, find_used_regs, try_replace_reg,
6574 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6575 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6576 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6577 find_bypass_set, reg_killed_on_edge, bypass_block,
6578 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6579 execute_rtl_cprop, pass_rtl_cprop): Move to...
6580 * cprop.c: ...here. New file, constant/copy propagation for RTL
6581 moved from gcse.c to here with minor cleanups in duplicated code.
6583 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6585 * config/i386/i386.c (flag_opts): Fix a typo in
6586 -mavx256-split-unaligned-store.
6588 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6590 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6591 LIBCALL_VALUE): Remove macros.
6592 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6593 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6594 (h8300_function_value, h8300_libcall_value,
6595 h8300_function_value_regno_p): New functions.
6597 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6599 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6601 2011-03-28 Jeff Law <law@redhat.com>
6603 * tree-ssa-threadupdate.c (redirect_edges): Call
6604 create_edge_and_update_destination_phis as needed.
6605 (create_edge_and_update_destination_phis): Accept new BB argument.
6606 All callers updated.
6607 (thread_block): Do not update the profile when threading around
6608 intermediate blocks.
6609 (thread_single_edge): Likewise.
6610 (determine_bb_domination_status): If BB is not a successor of the
6611 loop header, return NONDOMINATING.
6612 (register_jump_thread): Note when we register a jump thread around
6613 an intermediate block.
6614 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6615 (thread_across_edge): Use it.
6617 2011-03-28 Tristan Gingold <gingold@adacore.com>
6619 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6620 when for_return is 2.
6622 2011-03-28 Jeff Law <law@redhat.com>
6624 * var-tracking.c (canonicalize_values_mark): Delete unused
6626 (canonicalize_values_star, set_variable_part): Likewise.
6627 (clobber_variable_part, delete_variable_part): Likewise.
6629 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6631 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6633 2011-03-28 Martin Jambor <mjambor@suse.cz>
6635 * tree-inline.c (expand_call_inline): Do not check that destination
6637 (optimize_inline_calls): Assert that destination node is analyzed.
6638 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6639 not call tree_lowering_passes.
6640 * cgraph.h (cgraph_analyze_function): Declare.
6641 * cgraphunit.c (cgraph_analyze_function): Make public.
6643 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6645 * config/sparc/sparc-opts.h: New.
6646 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6647 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6648 (sparc_option_override): Store processor_type enumeration rather
6649 than string in cpu_default. Remove name and enumeration from
6650 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6651 without using sparc_select. Use target_flags_explicit instead of
6653 * config/sparc/sparc.h (enum processor_type): Move to
6655 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6656 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6657 HeaderInclude entry.
6658 (mcpu=, mtune=): Use Var and Enum.
6659 (sparc_processor_type): New Enum and EnumValue entries.
6661 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6662 Iain Sandoe <iains@gcc.gnu.org>
6665 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6667 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6669 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6670 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6671 Insert new statements at it in lieu of STMT.
6672 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6673 * tree-vect-stmts.c (vectorizable_store): Likewise.
6674 (vectorizable_load): Likewise.
6676 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
6678 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6683 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6685 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6686 unaligned 256bit load/store.
6687 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6688 (*avx_movdqu<avxmodesuffix>): Likewise.
6690 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6693 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6694 * config/pa/pa.md (iordi3): Use new predicate in expander.
6697 2011-03-27 Anatoly Sokolov <aesok@post.ru>
6699 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6700 FUNCTION_VALUE_REGNO_P): Remove macros.
6701 * config/mips/mips-protos.h (mips_function_value): Remove.
6702 * config/mips/mips.c (mips_function_value): Rename to...
6703 (mips_function_value_1): ... this. Make static. Handle receiving
6704 the function type in 'fn_decl_or_type' argument.
6705 (mips_function_value, mips_libcall_value,
6706 mips_function_value_regno_p): New function.
6707 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6708 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6710 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6712 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6713 and -mavx256-split-unaligned-store.
6714 (ix86_option_override_internal): Split 32-byte AVX unaligned
6715 load/store by default.
6716 (ix86_avx256_split_vector_move_misalign): New.
6717 (ix86_expand_vector_move_misalign): Use it.
6719 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6720 -mavx256-split-unaligned-store.
6722 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6723 256bit load/store. Generate unaligned store on misaligned memory
6725 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6727 (*avx_movdqu<avxmodesuffix>): Likewise.
6729 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6730 -mavx256-split-unaligned-store.
6732 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6735 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6738 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6740 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6741 opno arguments with an expand_operand. Use create_input_operand.
6742 (mips_prepare_builtin_target): Delete.
6743 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6745 (mips_expand_builtin_direct): Use create_output_operand and
6746 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
6747 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
6748 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6750 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
6752 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6754 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6756 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6758 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6759 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
6760 basic blocks and call commit_edge_insertions directly.
6761 (fixup_abnormal_edges): Move from here to...
6762 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
6763 on the edges and return whether some have actually been inserted.
6764 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6767 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
6769 PR rtl-optimization/48144
6770 * sel-sched-ir.c (merge_history_vect): Factor out from ...
6771 (merge_expr_data): ... here.
6772 (av_set_intersect): Rename to av_set_code_motion_filter.
6773 Update all callers. Call merge_history_vect when an expression
6774 is found in both sets.
6775 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6777 2011-03-26 Alan Modra <amodra@gmail.com>
6779 * config/rs6000/predicates.md (word_offset_memref_op): Handle
6780 cmodel medium addresses.
6781 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6782 64-bit gpr loads and stores.
6783 (rs6000_secondary_reload_ppc64): New function.
6784 * config/rs6000/rs6000-protos.h: Declare it.
6785 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6787 2011-03-26 Alan Modra <amodra@gmail.com>
6790 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6791 GNU Go in traceback table.
6793 2011-03-25 Richard Henderson <rth@redhat.com>
6795 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6796 if there are exactly 6 operands.
6797 (set_storage_via_setmem): Similarly.
6799 2011-03-25 Kai Tietz <ktietz@redhat.com>
6801 * collect2.c (write_c_file_stat): Handle backslash
6802 as right-hand directory separator.
6803 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6804 checking just for slash.
6805 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6806 instead of checking for trailing slash.
6807 * gcc.c (record_temp_file): Use filename_cmp instead
6809 (do_spec_1): Likewise.
6810 (replace_outfile_spec_function): Likewise.
6811 (is_directory): Use filename_ncmp instead of strncmp.
6812 (print_multilib_info): Likewise.
6813 * gcov.c (find_source): Use filename_cmp instead
6815 (make_gcov_file_name): Fix order of slash/backslash
6817 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6818 (add_standard_paths): Likewise.
6819 * mips-tfile.c (saber_stop): Handle backslash.
6820 * prefix.c (update_path): Use filename_ncmp instead of
6822 * profile.c (output_location): Use filename_cmp instead
6824 * read-md.c (handle_toplevel_file): Handle backslash.
6825 * tlink.c (frob_extension): Likewise.
6826 * tree-cfg.c (same_line_p): Use filename_cmp instead of
6828 * tree-dump.c (dequeue_and_dump): Handle backslash.
6829 * tree.c (get_file_function_name): Likewise.
6830 * gengtype.c (read_input_list): Likewise.
6831 (get_file_realbasename): Likewise.
6832 (get_output_file_with_visibility): Use filename_cmp
6835 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
6837 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6840 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6842 * fold-const.c (expr_location_or): New function.
6843 (fold_truth_not_expr): Call it.
6845 2011-03-25 Jeff Law <law@redhat.com>
6847 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6849 * c-family/c-common.c (def_fn_type): Likewise.
6850 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6851 * emit-rtl.c (gen_rtvec): Likewise.
6852 * lto/lto-lang.c (def_fn_type): Likewise.
6854 2011-03-25 Richard Guenther <rguenther@suse.de>
6856 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6857 also generate copies.
6858 (fini_copy_prop): Handle constant values properly.
6860 2011-03-25 Jakub Jelinek <jakub@redhat.com>
6862 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6863 mode size instead of bitsize with DWARF2_ADDR_SIZE.
6864 (hash_loc_operands, compare_loc_operands): Handle
6865 DW_OP_GNU_entry_value.
6867 2011-03-25 Kai Tietz <ktietz@redhat.com>
6869 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6870 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6871 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6872 comment and use macro TARGET_64BIT_MS_ABI instead.
6873 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6874 and change default behavior for 32-bit MS_ABI.
6875 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6876 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6878 (ix86_cfun_abi): Likewise.
6879 (ix86_maybe_switch_abi): Adjust comment.
6880 (init_cumulative_args): Check for bit-ness in MS_ABI case.
6881 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6882 instead of checking for SYSV_ABI.
6883 (ix86_nsaved_sseregs): Likewise.
6884 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6886 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6887 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6888 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6889 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6890 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6892 2011-03-25 Richard Guenther <rguenther@suse.de>
6894 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6895 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6896 (verify_gimple): Remove.
6897 * tree-cfg.c (verify_gimple_call): Merge verification
6899 (verify_gimple_phi): Merge verification from verify_stmts.
6900 (verify_gimple_label): New function.
6901 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6902 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6903 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6904 (verify_stmts): Rename to verify_gimple_in_cfg.
6905 (verify_gimple_in_cfg): New function.
6906 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6907 * tree-ssa.c (verify_ssa): Likewise.
6908 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6910 2011-03-25 Richard Guenther <rguenther@suse.de>
6912 * passes.c (init_optimization_passes): Add FRE pass after
6915 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
6916 Andrew Stubbs <ams@codesourcery.com>
6918 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6920 (arm_movdi_vfp_cortexa8): New pattern.
6921 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6922 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6923 instructions when tuning for Cortex-A8. Set attribute "arch".
6924 * config/arm/arm.md: Move include arm-tune.md up a bit.
6925 (define_attr "arch"): Add "onlya8" and "nota8" values.
6926 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6928 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6932 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6934 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6935 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6936 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6937 * passes.c (init_optimization_passes): Move
6938 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6940 2011-03-25 Kai Tietz <ktietz@redhat.com>
6942 * c-typeck.c (comptypes_internal): Replace target
6943 hook call of comp_type_attributes by version in tree.c file.
6944 * gimple.c (gimple_types_compatible_p_1): Likewise.
6945 * tree-ssa.c (useless_type_conversion_p): Likewise.
6946 * tree.c (build_type_attribute_qual_variant): Likewise.
6947 (attribute_value_equal): New static helper function.
6948 (comp_type_attributes): New function.
6949 (merge_attributes): Use attribute_value_equal for comparison.
6950 (attribute_list_contained): Likewise.
6951 * tree.h (comp_type_attributes): New prototype.
6953 2011-03-25 Richard Guenther <rguenther@suse.de>
6955 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
6956 of complex types at -O0.
6957 (verify_gimple_assign_binary): Likewise.
6958 (verify_gimple_assign_ternary): Likewise.
6960 2011-03-24 Mark Wielaard <mjw@redhat.com>
6962 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
6963 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6965 2011-03-24 Mark Wielaard <mjw@redhat.com>
6968 * dwarf2out.c (output_abbrev_section): Only write table when
6969 abbrev_die_table_in_use > 1.
6971 2011-02-24 Richard Henderson <rth@redhat.com>
6973 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
6974 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
6975 (alpha_expand_unaligned_load_words): Use extql.
6976 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
6977 (emit_insxl): Handle all modes for consistency.
6979 2011-02-24 Richard Henderson <rth@redhat.com>
6981 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
6982 (alpha_expand_unaligned_load): Likewise.
6983 (alpha_expand_unaligned_store): Likewise.
6984 (alpha_expand_unaligned_load_words): Likewise.
6985 (alpha_expand_unaligned_store_words): Likewise.
6986 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
6987 (alpha_split_lock_test_and_set_12): Likewise.
6988 (print_operand, alpha_fold_builtin_extxx): Likewise.
6989 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
6990 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
6991 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
6992 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
6993 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
6994 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
6995 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
6996 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
6997 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
6998 (extwl, extll, extql): Similarly.
6999 (inswh, inslh, insqh): Similarly.
7000 (mskbl, mskwl, mskll, mskql): Similarly.
7001 (mskwh, msklh, mskqh): Similarly.
7003 2011-02-24 Richard Henderson <rth@redhat.com>
7005 * config/alpha/alpha.md (attribute isa): Add er, ner.
7006 (attribute enabled): Handle them.
7007 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7009 2011-02-24 Richard Henderson <rth@redhat.com>
7011 * config/alpha/alpha.md (attribute isa): Add vms.
7012 (attribute enabled): Handle it.
7013 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7014 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7015 (*movtf): Rename from *movtf_internal for consistency.
7016 (*movsi): Merge with *movsi_nt_vms.
7017 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7018 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7019 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7020 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7022 2011-02-24 Richard Henderson <rth@redhat.com>
7024 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7025 (extendqisi2, extendhisi2): Likewise.
7026 (extendqidi2): Simplify BWX/non-BWX expansions.
7027 (extendhidi2): Similarly.
7029 2011-02-24 Richard Henderson <rth@redhat.com>
7031 * config/alpha/alpha.md (attribute isa): New.
7032 (attribute enabled): New.
7033 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7034 (zero_extendqisi2, zero_extendqidi2): Similarly.
7035 (zero_extendhisi2, zero_extendhidi2): Similarly.
7036 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7038 2011-02-24 Richard Henderson <rth@redhat.com>
7040 * config/alpha/predicates.md (input_operand): Revert last change;
7041 update comment to mention 32-bit VMS rather than Windows.
7043 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7045 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7046 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7047 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7048 * passes.c (init_optimization_passes): Move
7049 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7051 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7053 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7055 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7057 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7060 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7063 * simplify-rtx.c (simplify_const_unary_operation): Call
7064 real_convert when changing mode class with FLOAT_EXTEND.
7066 2011-03-24 Nick Clifton <nickc@redhat.com>
7068 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7069 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7070 * config/rx/rx.c (rx_option_override): Set align_jumps,
7071 align_loops and align_labels if not set by the user.
7072 (rx_align_for_label): New function.
7073 (rx_max_skip_for_label): New function.
7074 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7075 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7076 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7077 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7078 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7080 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7082 PR rtl-optimization/48263
7083 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7084 and original commutative_p handling. Use maybe_gen_insn.
7086 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7088 * reload.c (find_reloads_subreg_address): Add address_reloaded
7089 parameter and return true there if the full address has been
7091 (find_reloads_toplev): Pass address_reloaded flag.
7092 (find_reloads_address_1): Don't use address_reloaded parameter.
7094 2011-03-24 Jeff Law <law@redhat.com>
7096 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7097 unused variable "ann".
7098 (remove_unused_locals): Likewise.
7100 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7103 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7106 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7108 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7109 for invalid symbolic addresses.
7110 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7113 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7115 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7116 the argument in calls to fold_truth_not_expr.
7118 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7120 * tree.c (record_node_allocation_statistics): New function.
7121 (make_node_stat, copy_node_stat, build_string): Call it.
7122 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7123 (build1_stat, build_omp_clause): Likewise.
7125 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7127 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7130 2011-03-24 Richard Guenther <rguenther@suse.de>
7132 PR tree-optimization/48271
7133 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7134 blocks that still exist.
7136 2011-03-24 Richard Guenther <rguenther@suse.de>
7138 PR tree-optimization/48270
7139 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7140 not free datarefs before ddrs.
7142 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7144 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7145 from the address built for a reference with variable offset.
7147 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7150 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7151 alternatives that can be handled with movq or movabsq insn.
7152 (*movdf_internal): Disable for !TARGET_64BIT.
7153 (*movdf_internal_nointeger): Ditto.
7154 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7156 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7158 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7159 (FUNCTION_ARG_ADVANCE): Likewise.
7160 * tm.texi.in: Change references to them to hook references.
7161 * tm.texi: Regenerate.
7162 * targhooks.c (default_function_arg): Eliminate check for target macro.
7163 (default_function_incoming_arg): Likewise.
7164 (default_function_arg_advance): Likewise.
7165 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7166 (function_arg_advance): Likewise.
7167 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7169 2011-03-24 Richard Guenther <rguenther@suse.de>
7172 * tree-object-size.c (addr_object_size): Do not double-account
7173 for MEM_REF offsets.
7175 2011-03-24 Diego Novillo <dnovillo@google.com>
7177 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7178 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7179 (lto_input_data_block): Move from lto-opts.c. Make extern.
7181 (lto_input_string): Rename from input_string. Make extern.
7183 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7184 output_string_with_length.
7185 Output 0 to indicate a non-NULL string. Update all callers to
7187 (lto_output_string): Rename from output_string. Make extern.
7189 (lto_output_decl_state_streams): Make extern.
7190 (lto_output_decl_state_refs): Make extern.
7191 * lto-streamer.h (lto_input_string): Declare.
7192 (lto_input_data_block): Declare.
7193 (lto_output_string): Declare.
7194 (lto_output_string_with_length): Declare.
7195 (lto_output_decl_state_streams): Declare.
7196 (lto_output_decl_state_refs): Declare.
7198 2011-03-24 Richard Guenther <rguenther@suse.de>
7200 PR tree-optimization/46562
7201 * tree.c (build_invariant_address): New function.
7202 * tree.h (build_invariant_address): Declare.
7203 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7204 a renamed function moved ...
7205 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7206 Take valueization callback parameter.
7207 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7208 * gimple-fold.h: New file.
7209 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7210 (ccp_fold, fold_const_aggregate_ref,
7211 fold_ctor_reference, fold_nonarray_ctor_reference,
7212 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7213 get_base_constructor): Move ...
7214 * gimple-fold.c: ... here.
7215 (gimple_fold_stmt_to_constant_1): New function
7216 split out from ccp_fold. Take a valueization callback parameter.
7217 Valueize all operands.
7218 (gimple_fold_stmt_to_constant): New wrapper function.
7219 (fold_const_aggregate_ref_1): New function split out from
7220 fold_const_aggregate_ref. Take a valueization callback parameter.
7221 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7222 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7223 invariant POINTER_PLUS_EXPRs to invariant form.
7224 (vn_valueize): New function.
7225 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7226 * tree-vrp.c (vrp_valueize): New function.
7227 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7228 to fold statements to constants.
7229 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7230 function declarations.
7231 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7232 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7234 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7236 * config/h8300/predicates.md (jump_address_operand): Fix register
7239 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7241 * doc/invoke.texi (max-stores-to-sink): Document.
7242 * params.h (MAX_STORES_TO_SINK): Define.
7243 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7244 if either vectorization or if-conversion is disabled.
7245 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7246 tree-vect-data-refs.c vect_equal_offsets.
7247 (dr_equal_offsets_p): New function.
7248 (find_data_references_in_bb): Remove static.
7249 * tree-data-ref.h (find_data_references_in_bb): Declare.
7250 (dr_equal_offsets_p): Likewise.
7251 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7252 (vect_drs_dependent_in_basic_block): Update calls to
7254 (vect_check_interleaving): Likewise.
7255 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7256 (cond_if_else_store_replacement): Rename to...
7257 (cond_if_else_store_replacement_1): ... this. Change arguments and
7259 (cond_if_else_store_replacement): New function.
7260 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7261 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7263 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7266 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7267 to subtract lower bound instead of GEN_INT().
7269 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7274 * doc/extend.texi (Alignment): Move section to match order in TOC.
7275 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7276 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7278 2011-03-23 Jeff Law <law@redhat.com>
7280 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7281 before removing the edge.
7283 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7284 it may have been freed by redirect_branch_edge or
7285 redirect_edge_succ_nodup.
7287 2011-03-23 Richard Guenther <rguenther@suse.de>
7289 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7290 (check_va_list_escapes): Likewise.
7291 (check_all_va_list_escapes): Likewise.
7293 2011-03-23 Richard Guenther <rguenther@suse.de>
7295 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7296 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7297 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7298 (alias.o): Likewise.
7299 (ipa-type-escape.o): Remove.
7300 (ipa-struct-reorg.o): Likewise.
7301 (GTFILES): Remove ipa-struct-reorg.c.
7302 * alias.c: Do not include ipa-type-escape.h.
7303 * tree-ssa-alias.c: Likewise.
7304 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7305 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7306 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7307 and ipa-type-escape passes.
7308 * tree-pass.h (pass_ipa_type_escape): Remove.
7309 (pass_ipa_struct_reorg): Likewise.
7310 * ipa-struct-reorg.h: Remove.
7311 * ipa-struct-reorg.c: Likewise.
7312 * ipa-type-escape.h: Likewise.
7313 * ipa-type-escape.c: Likewise.
7314 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7315 (--param struct-reorg-cold-struct-ratio): Likewise.
7316 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7317 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7318 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7320 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7322 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7323 cpu attribute value.
7324 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7325 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7326 * config/s390/s390.c (processor_flags_table): New constant array.
7327 (s390_handle_arch_option): Remove.
7328 (s390_handle_option): Remove s390_handle_arch_option invocations
7329 and OPT_mwarn_framesize_ handling.
7330 (s390_option_override): Remove s390_handle_arch_option invocation.
7331 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7333 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7334 * config/s390/s390.opt (s390_tune, s390_arch)
7335 (march=): Replace s390_arch_option enum and values with
7336 processor_type. Set variable name to s390_arch. Set
7337 initialization value.
7338 (mtune=): Replace s390_arch_option with processor_type. Set
7339 variable name to s390_tune. Set initialization value.
7341 2011-03-23 Julian Brown <julian@codesourcery.com>
7343 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7344 accesses which are not naturally aligned.
7346 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7349 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7351 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7353 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7354 parameter from "int" to "enum insn_code".
7355 (expand_operand_type): New enum.
7356 (expand_operand): New structure.
7357 (create_expand_operand): New function.
7358 (create_fixed_operand, create_output_operand): Likewise
7359 (create_input_operand, create_convert_operand_to): Likewise.
7360 (create_convert_operand_from, create_address_operand): Likewise.
7361 (create_integer_operand): Likewise.
7362 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7363 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7364 (expand_insn, expand_jump_insn): Likewise.
7365 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7366 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7367 (expand_movstr, expand_builtin___clear_cache): Likewise.
7368 (expand_builtin_lock_release): Likewise.
7369 * explow.c (allocate_dynamic_stack_space): Likewise.
7370 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7371 and use the default handling in that case.
7372 * expmed.c (check_predicate_volatile_ok): Delete.
7373 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7374 (emit_cstore): Likewise.
7375 * expr.c (emit_block_move_via_movmem): Likewise.
7376 (set_storage_via_setmem, expand_assignment): Likewise.
7377 (emit_storent_insn, try_casesi): Likewise.
7378 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7379 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7380 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7381 (expand_twoval_unop, expand_twoval_binop): Likewise.
7382 (expand_unop_direct, emit_indirect_jump): Likewise.
7383 (emit_conditional_move, vector_compare_rtx): Likewise.
7384 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7385 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7386 (expand_sync_lock_test_and_set): Likewise.
7387 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7388 (emit_unop_insn): Likewise.
7389 (expand_copysign_absneg): Change icode to an insn_code.
7390 (create_convert_operand_from_type): New function.
7391 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7392 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7393 (expand_insn, expand_jump_insn): Likewise.
7394 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7395 than const_int_operand for operand 2.
7397 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7399 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7402 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7404 * emit-rtl.c (emit_pattern_before_noloc): New function.
7405 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7406 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7407 (emit_pattern_after_noloc): New function.
7408 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7409 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7411 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7413 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7414 (__ffsDI2): Likewise.
7416 2011-03-22 Richard Henderson <rth@redhat.com>
7418 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7419 of !TARGET_ABI_OPEN_VMS.
7420 (alpha_trampoline_init, alpha_start_function): Likewise.
7421 (alpha_expand_epilogue, alpha_file_start): Likewise.
7422 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7423 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7424 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7425 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7426 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7428 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7430 * config/s390/s390-opts.h: New.
7431 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7432 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7433 s390_stack_guard): Remove.
7434 (s390_handle_arch_option): Return void. Take enum
7435 s390_arch_option value instead of string and searching array.
7436 (s390_handle_option): Don't assert that global structures are in
7437 use. Access variables via opts pointer. Use error_at. Don't use
7438 sscanf for -mstack-guard= or -mstack-size=. Update call to
7439 s390_handle_arch_option.
7440 (s390_option_override): Update call to s390_handle_arch_option.
7441 (s390_emit_prologue): Use %d format for s390_stack_size in
7442 diagnostic. Use %wd for HOST_WIDE_INT.
7443 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7444 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7445 * config/s390/s390.opt (config/s390/s390-opts.h): New
7446 HeaderInclude entry.
7447 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7448 s390_arch_flags, s390_warn_framesize): New Variable entries.
7449 (s390_arch_option): New Enum and EnumValue entries.
7450 (march=): Use Enum instead of Var.
7451 (mstack-guard=, mstack-size=): Use UInteger and Var.
7454 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7456 * config/score/score.c (score_handle_option): Don't assert that
7457 global structures are in use. Access target_flags via opts
7458 pointer. Use value of -march= option to determine target_flags
7460 * config/score/score.opt (march=): Use Enum.
7461 (score_arch): New Enum and EnumValue entries.
7463 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7465 * config/mep/mep.c (option_mtiny_specified): Remove.
7466 (mep_option_override): Move register handling for -mivc2 from
7467 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7468 instead of option_mtiny_specified.
7469 (mep_handle_option): Access target_flags via opts pointer. Don't
7470 assert that global structures are in use. Defer part of -mivc2
7471 handling and move it to mep_option_override.
7472 * config/mep/mep.opt (IVC2): New Mask entry.
7473 (mivc2): Use Var and Defer instead of Mask.
7475 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7477 * config/v850/v850-opts.h: New.
7478 * config/v850/v850.c (small_memory): Replace with
7479 small_memory_physical_max array. Make that array static const.
7480 (v850_handle_memory_option): Take integer value of argument. Take
7481 gcc_options pointer, option text and location. Return void.
7482 Update for changes to small memory structures.
7483 (v850_handle_option): Access target_flags via opts pointer. Don't
7484 assert that global structures are in use. Update calls to
7485 v850_handle_memory_option.
7486 (v850_encode_data_area): Update references to small memory settings.
7487 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7488 (enum small_memory_type): Move to v850-opts.h.
7489 * config/v850/v850.opt (config/v850/v850-opts.h): New
7490 HeaderInclude entry.
7491 (small_memory_max): New Variable entry.
7492 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7493 (mtda, mzda): Likewise.
7495 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7497 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7498 pointer. Don't assert that global structures are in use.
7500 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7502 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7503 via opts pointer. Don't assert that global structures are in use.
7505 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7507 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7508 (munix=93): Use Var.
7509 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7510 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7511 * config/pa/pa-opts.h: New.
7512 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7513 (pa_handle_option): Don't assert that global structures are in
7514 use. Access target_flags via opts pointer. Don't handle
7515 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7517 (pa_option_override): Handle deferred OPT_mfixed_range_.
7519 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7521 * config/mn10300/mn10300-opts.h: New.
7522 * config/mn10300/mn10300.c (mn10300_processor,
7523 mn10300_tune_string): Remove.
7524 (mn10300_handle_option): Don't assert that global structures are
7525 in use. Access mn10300_processor via opts pointer. Don't handle
7527 * config/mn10300/mn10300.h (enum processor_type): Move to
7529 (mn10300_processor): Remove.
7530 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7531 HeaderInclude entry.
7532 (mn10300_processor): New Variable entry.
7535 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7537 * config/microblaze/microblaze.c: Don't include opts.h.
7538 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7539 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7540 (mno-clearbss): Use Var and Warn.
7542 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7544 * config/m32r/m32r-opts.h: New.
7545 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7546 (m32r_handle_option): Don't assert that global structures are in
7547 use. Access target_flags and m32r_cache_flush_func via opts
7548 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7549 OPT_mno_flush_trap here.
7550 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7551 include of m32r-opts.h.
7552 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7553 HeaderInclude entry.
7554 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7555 (mmodel=): Use Enum and Var.
7556 (m32r_model): New Enum and EnumValue entries.
7557 (mno-flush-trap): Use Var.
7558 (msdata=): Use Enum and Var.
7559 (m32r_sdata): New Enum and EnumValue entries.
7561 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7563 * config/m32c/m32c.c: Don't include opts.h.
7564 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7565 m32c_handle_option): Remove.
7566 (m32c_option_override): Check global_options_set.x_target_memregs
7567 instead of target_memregs_set.
7568 * config/m32c/m32c.h (target_memregs): Remove.
7569 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7572 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7574 * config/iq2000/iq2000-opts.h: New.
7575 * config/iq2000/iq2000.c: Don't include opts.h.
7576 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7577 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7578 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7579 HeaderInclude entry.
7580 (iq2000_tune): New Variable entry.
7581 (march=): Add comment. Use Enum.
7582 (iq2000_arch): New Enum and EnumValue entries.
7583 (mcpu=): Use Enum and Var.
7584 (iq2000_tune): New Enum and EnumValue entries.
7586 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7588 * config/ia64/ia64-opts.h: New.
7589 * config/ia64/ia64.c (ia64_tune): Remove.
7590 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7592 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7593 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7594 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7595 HeaderInclude entry.
7596 (ia64_tune): New Variable entry.
7597 (mfixed-range=): Use Defer and Var.
7598 (mtune=): Use Enum and Var.
7599 (ia64_tune): New Enum and EnumValue entries.
7601 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7603 * config/frv/frv-opts.h: New.
7604 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7606 (frv_cpu_type): Remove.
7607 * config/frv/frv.c: Don't include opts.h.
7608 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7609 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7610 (frv_cpu_type): New Variable entry.
7611 (frv_cpu): New Enum and EnumValue entries.
7613 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7615 * config/cris/cris.c (cris_handle_option): Access target_flags via
7616 opts pointer. Don't assert that global structures are in use.
7617 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7618 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7620 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7622 * config/bfin/bfin-opts.h: New.
7623 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7624 bfin_si_revision, bfin_workarounds): Remove.
7625 (bfin_cpus): Make static const.
7626 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7627 not bfin_lib_id_given.
7628 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7629 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7630 pointer. Use error_at. Don't assert that global structures are in use.
7631 * config/bfin/bfin.h: Include bfin-opts.h.
7632 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7633 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7634 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7635 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7638 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7640 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7641 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7642 or -msoft-float here.
7643 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7644 -msoft-float and -mhard-float.
7645 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7646 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7648 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7650 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7651 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7653 (LIBGCC_SPEC): Don't handle -msoft-float.
7654 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7656 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7658 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7659 -mfloat-abi=*, not -msoft-float and -mhard-float.
7660 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7662 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7663 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7664 mhard-float and msoft-float.
7665 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7666 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7667 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7668 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7670 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7671 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7673 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7675 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7678 2011-03-22 Richard Henderson <rth@redhat.com>
7680 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7681 TARGET_ABI_WINDOWS_NT.
7682 (alpha_output_function_end_prologue): Likewise.
7683 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7684 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7685 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7686 (trap, *movsi_nt_vms): Likewise.
7687 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7688 (*tablejump_osf_nt_internal): Remove.
7689 * config/alpha/predicates.md (input_operand): Only test Pmode.
7691 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7693 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7694 via opts pointer. Use error_at. Don't assert that global
7695 structures are in use.
7697 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7699 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7700 (ix86_handle_option): Access ix86_isa_flags and
7701 ix86_isa_flags_explicit via opts pointer. Don't assert that
7702 global structures are in use.
7703 (ix86_function_specific_save, ix86_function_specific_restore):
7704 Update ix86_isa_flags_explicit field name.
7705 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7706 (ix86_isa_flags_explicit): Rename TargetSave entry to
7707 x_ix86_isa_flags_explicit.
7709 2011-03-22 Richard Henderson <rth@redhat.com>
7711 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7712 (alpha_option_override, direct_return): Likewise.
7713 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7714 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7715 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7716 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7717 (alpha_expand_epilogue, alpha_end_function): Likewise.
7718 (alpha_init_libfuncs): Likewise.
7719 (struct machine_function): Remove unicosmk members.
7720 (print_operand) ['t']: Remove.
7721 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7722 unicosmk_output_module_name, unicosmk_output_common,
7723 current_section_align, unicosmk_output_text_section_asm_op,
7724 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7725 unicosmk_section_type_flags, unicosmk_unique_section,
7726 unicosmk_asm_named_section, unicosmk_insert_attributes,
7727 unicosmk_output_align, unicosmk_defer_case_vector,
7728 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7729 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7730 unicosmk_output_ssib, unicosmk_add_call_info_word,
7731 unicosmk_extern_head, unicosmk_output_default_externs,
7732 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7733 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7734 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7735 * config/alpha/alpha-protos.h: Update.
7736 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7737 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7738 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7739 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7740 (*mulsi_se, mulvsi3): Likewise.
7741 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7742 (*divmodsi_internal, call, call_value, realign): Likewise.
7743 (moddi3, umoddi3): Likewise; remove duplicate expander.
7744 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7745 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7746 (*movdi_nofix): Remove r/U alternative.
7747 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7748 * config/alpha/constraints.md ("U"): Remove.
7749 * config/alpha/predicates.md (call_operand"): Don't test
7750 TARGET_ABI_UNICOSMK.
7752 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7754 * target.def (handle_option): Take gcc_options and
7755 cl_decoded_option pointers and location_t.
7756 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7757 * doc/tm.texi: Regenerate.
7758 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7759 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7760 * lto-opts.c (lto_reissue_options): Generate option structure for
7761 targetm.handle_option call.
7762 * opts.c (target_handle_option): Update call to
7763 targetm.handle_option. Remove assertions about values now passed
7765 * targhooks.c (default_target_handle_option): New.
7766 * targhooks.h (default_target_handle_option): Declare.
7767 * config/alpha/alpha.c: Include opts.h.
7768 (alpha_handle_option): Update to new hook interface.
7769 * config/arm/arm.c: Include opts.h.
7770 (arm_handle_option): Update to new hook interface.
7771 * config/arm/t-arm (arm.o): Update dependencies.
7772 * config/bfin/bfin.c: Include opts.h.
7773 (bfin_handle_option): Update to new hook interface.
7774 * config/cris/cris.c: Include opts.h.
7775 (cris_handle_option): Update to new hook interface.
7776 * config/frv/frv.c: Include opts.h.
7777 (frv_handle_option): Update to new hook interface.
7778 * config/i386/i386.c: Include opts.h.
7779 (ix86_handle_option): Update to new hook interface.
7780 (ix86_valid_target_attribute_inner_p): Generate option structure
7781 for call to ix86_handle_option.
7782 * config/i386/t-i386 (i386.o): Update dependencies.
7783 * config/ia64/ia64.c: Include opts.h.
7784 (ia64_handle_option): Update to new hook interface.
7785 * config/ia64/t-ia64 (ia64.o): Update dependencies.
7786 * config/iq2000/iq2000.c: Include opts.h.
7787 (iq2000_handle_option): Update to new hook interface.
7788 * config/m32c/m32c.c: Include opts.h.
7789 (m32c_handle_option): Update to new hook interface.
7790 * config/m32r/m32r.c: Include opts.h.
7791 (m32r_handle_option): Update to new hook interface.
7792 * config/m68k/m68k.c: Include opts.h.
7793 (m68k_handle_option): Update to new hook interface.
7794 * config/mep/mep.c: Include opts.h.
7795 (mep_handle_option): Update to new hook interface.
7796 * config/microblaze/microblaze.c: Include opts.h.
7797 (microblaze_handle_option): Update to new hook interface.
7798 * config/mips/mips.c: Include opts.h.
7799 (mips_handle_option): Update to new hook interface.
7800 * config/mn10300/mn10300.c: Include opts.h.
7801 (mn10300_handle_option): Update to new hook interface.
7802 * config/pa/pa.c: Include opts.h.
7803 (pa_handle_option): Update to new hook interface.
7804 * config/pdp11/pdp11.c: Include opts.h.
7805 (pdp11_handle_option): Update to new hook interface.
7806 * config/rs6000/rs6000.c: Include opts.h.
7807 (rs6000_handle_option): Update to new hook interface.
7808 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7809 * config/rx/rx.c: Include opts.h.
7810 (rx_handle_option): Update to new hook interface.
7811 * config/s390/s390.c: Include opts.h.
7812 (s390_handle_option): Update to new hook interface.
7813 * config/score/score.c: Include opts.h.
7814 (score_handle_option): Update to new hook interface.
7815 * config/sh/sh.c: Include opts.h.
7816 (sh_handle_option): Update to new hook interface.
7817 * config/sparc/sparc.c: Include opts.h.
7818 (sparc_handle_option): Update to new hook interface.
7819 * config/v850/v850.c: Include opts.h.
7820 (v850_handle_option): Update to new hook interface.
7822 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7824 * gcc.c (driver_unknown_option_callback): Only permit and save
7825 unknown -Wno- options.
7826 (driver_wrong_lang_callback): Save options directly instead of via
7827 driver_unknown_option_callback.
7829 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7831 * combine.c (simplify_set): Try harder to find the best CC mode when
7832 simplifying a nested COMPARE on the RHS.
7834 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7836 * config/alpha/gnu.h: Remove.
7837 * config/arc: Remove directory.
7838 * config/arm/netbsd.h: Remove.
7839 * config/arm/t-pe: Remove.
7840 * config/crx: Remove directory.
7841 * config/i386/netbsd.h: Remove.
7842 * config/m68hc11: Remove directory.
7843 * config/m68k/uclinux-oldabi.h: Remove.
7844 * config/mcore/mcore-pe.h: Remove.
7845 * config/mcore/t-mcore-pe: Remove.
7846 * config/netbsd-aout.h: Remove.
7847 * config/rs6000/gnu.h: Remove.
7848 * config/sh/sh-symbian.h: Remove.
7849 * config/sh/symbian-base.c: Remove.
7850 * config/sh/symbian-c.c: Remove.
7851 * config/sh/symbian-cxx.c: Remove.
7852 * config/sh/symbian-post.h: Remove.
7853 * config/sh/symbian-pre.h: Remove.
7854 * config/sh/t-symbian: Remove.
7855 * config/svr3.h: Remove.
7856 * config/vax/netbsd.h: Remove.
7857 * config.build: Don't handle i[34567]86-*-pe.
7858 * config.gcc: Remove handling of deprecations for most deprecated
7860 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7861 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7862 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7863 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7864 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7865 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7867 * config.host: Don't handle i[34567]86-*-pe.
7868 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7869 (ASM_SPEC32): Don't handle -mcall-gnu.
7870 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7872 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7873 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7874 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7875 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7876 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7877 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7878 conditional on SYMBIAN.
7879 * configure.ac: Don't handle powerpc*-*-gnu*.
7880 * configure: Regenerate.
7881 * doc/extend.texi (interrupt attribute): Don't mention CRX.
7882 * doc/install-old.texi (m6811, m6812): Don't mention.
7883 * doc/install.texi (arc-*-elf*): Don't document multilib option.
7884 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7885 (m68k-uclinuxoldabi): Don't mention.
7886 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7888 (-mcall-gnu): Remove.
7889 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7890 families): Remove constraint documentation.
7892 2011-03-22 Marius Strobl <marius@FreeBSD.org>
7894 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7895 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7896 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7898 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7901 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7902 vector when peeking at the next token for vector, don't expand the
7905 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
7907 * config/avr/avr-protos.h (expand_epilogue): Change prototype
7908 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7909 * config/avr/avr.c (init_cumulative_args)
7910 (avr_function_arg_advance): Use it.
7911 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7913 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7914 (avr_function_ok_for_sibcall): ...this new function.
7915 (avr_lookup_function_attribute1): New static Function.
7916 (avr_naked_function_p, interrupt_function_p)
7917 (signal_function_p, avr_OS_task_function_p)
7918 (avr_OS_main_function_p): Use it.
7919 * config/avr/avr.md ("sibcall", "sibcall_value")
7920 ("sibcall_epilogue"): New expander.
7921 ("*call_insn", "*call_value_insn"): New insn.
7922 ("call_insn", "call_value_insn"): Remove
7923 ("call", "call_value", "epilogue"): Change expander to handle
7926 2011-03-21 Nick Clifton <nickc@redhat.com>
7928 * doc/invoke.texi (Overall Options): Move closing brace to end of
7930 (Optimization Options): Add missing @gol.
7931 (Directory Options): Likewise.
7932 (i386 and x86-64 Options): Likewise.
7933 (RS6000 and PowerPC Options): Likewise.
7934 (i386 and x86-64 Windows Options): Likewise.
7935 (V850 Options): Add text missing from descriptions.
7937 2011-03-22 Richard Henderson <rth@redhat.com>
7939 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
7940 (avr_incoming_return_addr_rtx): New.
7941 (emit_push_byte): New.
7942 (expand_prologue): Use it. Remove incorrect dwarf annotation for
7943 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
7944 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
7945 (emit_pop_byte): New.
7946 (expand_epilogue): Use it. Pop frame pointer by bytes.
7947 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
7948 (INCOMING_RETURN_ADDR_RTX): New.
7949 (INCOMING_FRAME_SP_OFFSET): New.
7950 (ARG_POINTER_CFA_OFFSET): New.
7951 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
7952 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
7955 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
7957 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7959 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7960 (FUNCTION_ARG_ADVANCE): Likewise.
7961 * tm.texi.in: Change references to them to hook references.
7962 * tm.texi: Regenerate.
7963 * targhooks.c (default_function_arg): Eliminate check for target
7965 (default_function_incoming_arg): Likewise.
7966 (default_function_arg_advance): Likewise.
7967 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7968 (function_arg_advance): Likewise.
7969 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7971 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7973 * tree.c (build_call_1): New function.
7974 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
7976 2011-03-22 Richard Guenther <rguenther@suse.de>
7978 PR tree-optimization/48228
7979 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
7980 for single-arg PHIs.
7982 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
7984 PR rtl-optimization/48143
7985 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
7986 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
7987 sse2_cvtps2pd): Likewise.
7989 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7991 * recog.c (canonicalize_change_group): Use validate_unshare_change.
7993 2011-03-22 Richard Guenther <rguenther@suse.de>
7995 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
7996 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
7997 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
7998 and REALIGN_LOAD_EXPR.
7999 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8000 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8001 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8002 DOT_PROD_EXPR case ...
8003 (expand_expr_real_2): ... here.
8004 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8005 and REALIGN_LOAD_EXPR.
8006 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8007 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8008 (vect_create_epilog_for_reduction): Likewise.
8009 (vectorizable_reduction): Likewise.
8010 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8011 * tree-vect-stmts.c (vectorizable_load): Likewise.
8013 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8015 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8017 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8019 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8020 handling for PLTOFF/GOTOFF.
8022 2011-03-22 Nick Clifton <nickc@redhat.com>
8024 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8025 trailing backslash from the end of the macro definition.
8027 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8029 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8032 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8034 * expr.h (prepare_operand): Move to...
8035 * optabs.h (prepare_operand): ...here and change the insn code
8036 parameter from "int" to "enum insn_code".
8037 (insn_operand_matches): Declare.
8038 * expr.c (init_expr_target): Use insn_operand_matches.
8039 (compress_float_constant): Likewise.
8040 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8041 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8042 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8043 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8045 (gen_cond_trap): Likewise.
8046 (prepare_operand): Likewise. Change icode to an insn_code.
8047 (insn_operand_matches): New function.
8048 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8049 * reload1.c (gen_reload): Likewise.
8050 * targhooks.c (default_secondary_reload): Likewise.
8052 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8054 * config/alpha/alpha.md (unspec): New define_c_enum.
8057 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8060 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8061 between a call and its CALL_ARG_LOCATION note.
8063 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8065 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8067 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8071 * c-common.c (shorten_compare): If primopN is first sign-extended
8072 to opN and then zero-extended to result type, set primopN to opN.
8074 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8076 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8077 for barrier handlers.
8079 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8081 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8082 UNSPEC constants to be in the unspec enumeration, and redefine
8083 all UNSPECV constants to be in the unspecv enumeration, so that
8084 dumps print which unspec/unspec_volatile this is.
8085 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8086 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8087 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8088 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8089 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8091 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8092 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8093 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8094 * config/rs6000/sync.md (isync, lwsync): Ditto.
8096 2011-03-21 Richard Guenther <rguenther@suse.de>
8098 * params.def (lto-min-partition): Fix typo.
8100 2011-03-21 Richard Guenther <rguenther@suse.de>
8103 * c-decl.c (grokdeclarator): Drop to the main variant only
8104 for array types. Drop flag_gen_aux_info check.
8106 2011-03-21 Richard Guenther <rguenther@suse.de>
8108 PR translation/47911
8109 * params.def (lto-partitions): Fix typo.
8110 (lto-min-partition): Fix wording.
8112 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8114 * config/rs6000/t-freebsd: Remove duplication from file.
8116 2011-03-21 Richard Guenther <rguenther@suse.de>
8119 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8121 2011-03-21 Richard Guenther <rguenther@suse.de>
8124 * params.def (lto-partitions): Require at least 1 partition.
8126 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8128 * gthr-solaris.h: Remove.
8129 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8130 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8131 (LIB_SPEC): Likewise.
8132 * config/sol2.opt (threads): Remove.
8133 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8134 (sparc*-*-solaris2*): Likewise.
8135 * configure.ac (enable_threads): Enable solaris support.
8136 * configure: Regenerate.
8137 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8138 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8141 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8143 * config.gcc: Obsolete *-*-solaris2.8*.
8144 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8146 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8149 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8150 reference. Solaris 8 perl works.
8152 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8155 * doc/install.texi (Prerequisites): Move jar etc. up.
8156 Explain support library version requirements.
8158 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8161 * doc/install.texi (Prerequisites): Move Perl to build
8162 requirements. Always necessary on Solaris 2 with Sun ld.
8164 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8166 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8168 (Specific, i?86-*-solaris2.[89]): Likewise.
8169 (Specific, i?86-*-solaris2.10): Likewise.
8170 (Specific, mips-sgi-irix6): Likewise.
8171 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8172 Update for binutils 2.21.
8174 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8176 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8177 Allow -fuse-linker-plugin for non-default plugin linker.
8178 * configure: Regenerate.
8180 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8183 * gengtype.c (files_rules): Added rule for cp/parser.h.
8185 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8188 * config/s390/s390.c (s390_delegitimize_address): Don't call
8189 lowpart_subreg if orig_x has BLKmode.
8191 2011-03-21 Kai Tietz <ktietz@redhat.com>
8194 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8195 * tree.h (attribute_spec): Add new member affects_type_identity.
8196 * attribs.c (empty_attribute_table): Adjust attribute_spec
8198 * config/alpha/alpha.c: Likewise.
8199 * config/arc/arc.c: Likewise.
8200 * config/arm/arm.c: Likewise.
8201 * config/avr/avr.c: Likewise.
8202 * config/bfin/bfin.c: Likewise.
8203 * config/crx/crx.c: Likewise.
8204 * config/darwin.h: Likewise.
8205 * config/h8300/h8300.c: Likewise.
8206 * config/i386/cygming.h: Likewise.
8207 * config/i386/i386.c: Likewise.
8208 * config/ia64/ia64.c: Likewise.
8209 * config/m32c/m32c.c: Likewise.
8210 * config/m32r/m32r.c: Likewise.
8211 * config/m68hc11/m68hc11.c: Likewise.
8212 * config/m68k/m68k.c: Likewise.
8213 * config/mcore/mcore.c: Likewise.
8214 * config/mep/mep.c: Likewise.
8215 * config/microblaze/microblaze.c: Likewise.
8216 * config/mips/mips.c: Likewise.
8217 * config/rs6000/rs6000.c: Likewise.
8218 * config/rx/rx.c: Likewise.
8219 * config/sh/sh.c: Likewise.
8220 * config/sol2.h: Likewise.
8221 * config/sparc/sparc.c: Likewise.
8222 * config/spu/spu.c: Likewise.
8223 * config/stormy16/stormy16.c: Likewise.
8224 * config/v850/v850.c: Likewise.
8226 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8228 * simplify-rtx.c (simplify_binary_operation_1): Handle
8229 (xor (and A B) C) case when B and C are both constants.
8231 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8233 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8235 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8238 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8240 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8242 PR rtl-optimization/48156
8243 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8244 assume df and df_lr are not NULL.
8246 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8249 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8250 between a call and its CALL_ARG_LOCATION note.
8252 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8255 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8256 between a call and its corresponding CALL_ARG_LOCATION note.
8258 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8260 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8261 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8262 * haifa-sched.c (setup_ref_regs): Ditto.
8263 * caller-save.c (add_used_regs_1): Ditto.
8264 * dse.c (look_for_hardregs): Ditto.
8265 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8266 * sched-rgn.c (check_live_1): Ditto.
8268 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8270 * c-decl.c (diagnose_mismatched_decls): Give an error for
8271 redefining a typedef with variably modified type.
8273 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8275 * c-decl.c (grokfield): Don't allow typedefs for structures or
8276 unions with no tag by default.
8277 * doc/extend.texi (Unnamed Fields): Update.
8279 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8281 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8282 Rewrite using indirect functions.
8283 (lwp_slwpcb): Ditto.
8284 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8285 (avx_vinsertf128<mode>): Ditto.
8287 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8289 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8292 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8294 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8295 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8297 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8299 PR rtl-optimization/48170
8300 * gcse.c (hoist_code): Remove bogus asserts.
8302 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8304 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8305 computation for prologue/epilogue.
8307 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8309 * Makefile.in (check-consistency): Remove.
8311 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8314 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8315 arange_table_in_use is 0, but either text_section_used or
8316 cold_text_section_used is true. Don't call it if
8317 !info_section_emitted.
8319 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8321 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8322 FUNCTION_VALUE_REGNO_P): Remove.
8323 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8325 * config/avr/avr.c (avr_ret_register): Make static inline.
8326 (avr_function_value_regno_p): New function.
8327 (avr_libcall_value): Make static. Add 'func' argument.
8328 (avr_function_value): Make static. Rename 'func' argument to
8329 'fn_decl_or_type', forward it to avr_libcall_value. Call
8330 avr_ret_register function instead of RET_REGISTER macro.
8331 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8333 2011-03-18 Jason Merrill <jason@redhat.com>
8336 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8338 2011-03-18 Richard Guenther <rguenther@suse.de>
8340 * doc/install.texi (--enable-gold): Remove.
8341 (--with-plugin-ld): Document.
8342 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8344 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8347 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8348 again after expansion changes.
8350 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8352 * combine.c (try_combine): Do simplification only call of
8353 subst() on i2 even when i1 is present. Update comments.
8355 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8357 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8358 and UNSPEC_PCREL_SYMOFF.
8360 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8362 * config/s390/s390.md: Use define_c_enum for the unspec constant
8365 2011-03-18 Richard Henderson <rth@redhat.com>
8366 Jakub Jelinek <jakub@redhat.com>
8369 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8370 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8372 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8375 * combine.c (cant_combine_insn_p): Don't check zero/sign
8376 extended hard registers.
8378 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8381 * combine.c (cant_combine_insn_p): Check zero/sign extended
8384 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8386 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8387 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8388 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8389 Change return type to bool.
8390 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8392 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8395 * var-tracking.c (prepare_call_arguments): If CALL target
8396 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8397 pc instead of looking it up using cselib_lookup and use
8398 Pmode for it if x has VOIDmode.
8399 * dwarf2out.c (gen_subprogram_die): If also both first and
8400 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8403 * function.c (assign_parms): For data.passed_pointer parms
8404 use MEM of data.entry_parm instead of data.entry_parm itself
8405 as DECL_INCOMING_RTL.
8406 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8407 also when passed and declared mode is the same, DECL_RTL
8408 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8411 2011-03-16 Jeff Law <law@redhat.com>
8413 PR rtl-optimization/37273
8414 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8415 handle them like argument loads from stack slots. Do not double
8416 count memory for memory constants and argument loads from stack slots.
8418 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8421 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8423 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8426 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8428 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8431 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8433 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8434 Clear call_arg_locations and call_arg_loc_last always.
8437 * var-tracking.c (prepare_call_arguments): If argument needs to be
8438 passed by reference, adjust argtype and mode.
8440 2011-03-17 Richard Guenther <rguenther@suse.de>
8443 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8444 a value make sure to fold the statement.
8446 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8449 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8450 return condition with !cfun->calls_alloca.
8452 2011-03-17 Richard Guenther <rguenther@suse.de>
8455 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8456 origin for decls in other ltrans units.
8457 (input_varpool_node): Likewise.
8459 2011-03-17 Richard Guenther <rguenther@suse.de>
8462 * tree-object-size.c (compute_object_offset): Properly return
8463 the offset operand of MEM_REFs as sizetype.
8465 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8467 PR rtl-optimization/48141
8468 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8469 * dse.c: Include params.h.
8470 (active_local_stores_len): New variable.
8471 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8473 (record_store, check_mem_read_rtx): Decrease it when removing
8475 (scan_insn): Likewise. Increase it when adding to chain, if it
8476 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8477 set active_local_stores to NULL before the addition.
8478 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8480 PR rtl-optimization/48141
8481 * dse.c (record_store): If no positions are needed in an insn
8482 that cannot be deleted, at least unchain it from active_local_stores.
8484 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8487 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8488 (lookup_type_die_strip_naming_typedef): ... here.
8489 (get_context_die): Use it.
8490 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8491 the anonymous struct named by the naming typedef.
8493 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8496 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8497 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8499 2011-03-16 Jeff Law <law@redhat.com>
8501 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8502 check for operands of conditional. Allow type to be a pointer.
8504 2011-03-16 Richard Guenther <rguenther@suse.de>
8506 PR tree-optimization/48149
8507 * fold-const.c (fold_binary_loc): Fold
8508 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8510 2011-03-16 Richard Guenther <rguenther@suse.de>
8512 PR tree-optimization/26134
8513 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8514 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8515 (non_rewritable_mem_ref_base): Handle complex type component
8516 accesses, constrain offsets for vector and complex extracts
8519 2011-03-16 Richard Guenther <rguenther@suse.de>
8521 PR tree-optimization/48146
8522 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8523 operands avoiding the need for renaming.
8525 2011-03-16 Richard Guenther <rguenther@suse.de>
8527 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8528 constant folding. Move MEM_REF canonicalization first.
8529 Rely on fold_const_aggregate_ref for initializer folding.
8530 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8532 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8535 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8536 arg0/arg1 or their arguments are always fold converted to matching
8539 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8542 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8545 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8546 Handle in-tree gold.
8547 (ld_vers): Extract binutils version for gold.
8548 (gcc_cv_ld_hidden): Handle gold here.
8549 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8550 * configure: Regenerate.
8551 * config.in: Regenerate.
8552 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8553 -fuse-linker-plugin otherwise.
8554 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8555 (LINK_COMMAND_SPEC): Use it.
8556 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8558 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8560 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8561 * calls.c: Remove debug.h include.
8562 (emit_call_1): Don't call virtual_call_token debug hook.
8563 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8564 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8565 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8566 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8567 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8568 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8569 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8570 dwarf2out_virtual_call): Remove.
8571 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8572 copy_call_info and virtual_call hooks.
8573 (dwarf2out_init): Don't initialize vcall_insn_table,
8574 debug_dcall_section and debug_vcall_section.
8575 (prune_unused_types): Don't mark nodes from dcall_table.
8576 (dwarf2out_finish): Don't output dcall or vcall tables.
8577 * final.c (final_scan_insn): Don't call direct_call or
8578 virtual_call debug hooks.
8579 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8580 virtual_call_token, copy_call_info and virtual_call hooks.
8581 (debug_nothing_uid): Remove prototype.
8582 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8583 copy_call_info and virtual_call hooks.
8584 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8585 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8586 * debug.c (do_nothing_debug_hooks): Likewise.
8587 (debug_nothing_uid): Remove.
8588 * doc/invoke.texi (-fenable-icf-debug): Remove.
8589 * common.opt (-fenable-icf-debug): Likewise.
8591 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8592 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8593 call's MEM. Handle functions returning aggregate through a hidden
8594 first pointer. For virtual calls add clobbered pc to call arguments
8596 * dwarf2out.c (gen_subprogram_die): Emit
8597 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8601 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8602 * rtl.h (ENTRY_VALUE_EXP): Define.
8603 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8604 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8605 * print-rtl.c (print_rtx): Likewise.
8606 * gengtype.c (adjust_field_rtx_def): Likewise.
8607 * var-tracking.c (vt_add_function_parameter): Adjust
8608 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8609 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8610 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8611 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8612 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8614 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8615 Call var_location debug hook even on CALL_INSNs.
8616 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8617 * rtl.def (ENTRY_VALUE): New.
8618 * dwarf2out.c: Include cfglayout.h.
8619 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8620 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8621 (struct call_arg_loc_node): New type.
8622 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8623 tail_call_site_count): New variables.
8624 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8625 DW_TAG_GNU_call_site_parameter.
8626 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8627 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8628 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8629 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8630 and DW_AT_GNU_all_source_call_sites.
8631 (mem_loc_descriptor): Handle ENTRY_VALUE.
8632 (add_src_coords_attributes): Don't add enything if
8633 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8634 (dwarf2out_abstract_function): Save and clear call_arg_location,
8635 call_site_count and tail_call_site_count around dwarf2out_decl call.
8636 (gen_call_site_die): New function.
8637 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8638 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8639 (dwarf2out_function_decl): Clear call_arg_locations,
8640 call_arg_loc_last, set call_site_count and tail_call_site_count
8641 to -1 and free block_map.
8642 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8643 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8644 followed by any real instructions.
8645 (dwarf2out_begin_function): Set call_site_count and
8646 tail_call_site_count to 0.
8647 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8648 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8649 attempt to force a DIE for it and worst case remove the attribute.
8650 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8651 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8653 * var-tracking.c: Include tm_p.h.
8654 (vt_stack_adjustments): For calls call note_register_arguments.
8655 (argument_reg_set): New variable.
8656 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8657 ensure the VALUE is resolved.
8658 (call_arguments): New variable.
8659 (prepare_call_arguments): New function.
8660 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8661 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8662 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8663 always use the best expression.
8664 (vt_expand_loc): Add ignore_cur_loc argument.
8665 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8666 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8667 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8669 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8670 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8671 argument. Don't call cselib_preserve_only_values and
8673 (note_register_arguments): New function.
8674 (vt_initialize): Compute argument_reg_set. Call
8675 vt_add_function_parameters before processing basic blocks instead of
8676 afterwards. For calls call prepare_call_arguments before calling
8677 cselib_process_insn.
8678 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8679 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8680 (var-tracking.o): Depend on $(TM_P_H).
8681 * cfglayout.h (insn_scope): New prototype.
8682 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8683 * cfglayout.c (insn_scope): No longer static.
8684 * insn-notes.def (CALL_ARG_LOCATION): New.
8685 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8686 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8687 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8688 nothing for DECL_EXTERNAL BLOCK_VARS.
8690 2011-03-16 Alan Modra <amodra@gmail.com>
8693 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8694 create invalid offset address for vsx splat insn.
8695 * config/rs6000/predicates.md (splat_input_operand): New.
8696 * config/rs6000/vsx.md (vsx_splat_*): Use it.
8698 2011-03-15 Xinliang David Li <davidxl@google.com>
8701 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8702 (normalize_preds): New function.
8703 (is_use_properly_guarded): Normalize def predicates.
8705 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8708 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8709 in the output template.
8711 2011-03-15 Richard Guenther <rguenther@suse.de>
8714 * tree-pretty-print.c (dump_function_declaration): Properly
8715 dump unprototyped and varargs function types.
8717 2011-03-15 Richard Guenther <rguenther@suse.de>
8719 PR tree-optimization/13954
8720 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8723 2011-03-15 Richard Guenther <rguenther@suse.de>
8725 PR tree-optimization/48037
8726 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8727 selects into BIT_FIELD_REFs.
8728 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8731 2011-03-15 Jakub Jelinek <jakub@redhat.com>
8733 PR tree-optimization/48129
8734 * builtins.c (fold_builtin_snprintf): Convert to type of
8735 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8736 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8738 2011-03-15 Richard Guenther <rguenther@suse.de>
8740 PR tree-optimization/41490
8741 * tree-ssa-dce.c (propagate_necessity): Handle returns without
8742 value but with VUSE.
8743 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8745 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8746 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8747 * tree-tailcall.c (find_tail_calls): Ignore returns.
8749 2011-03-15 Richard Guenther <rguenther@suse.de>
8752 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8753 or variable-indexed array accesses when in gimple form.
8755 2011-03-15 Richard Guenther <rguenther@suse.de>
8757 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8759 2011-03-15 Alan Modra <amodra@gmail.com>
8762 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8763 presume symbol_refs without a symbol_ref_decl are suitably
8764 aligned, nor other trees we may see here. Handle anchor symbols.
8765 (legitimate_constant_pool_address_p): Comment. Add mode param.
8766 Check cmodel=medium addresses. Adjust all calls.
8767 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8768 creating cmodel=medium optimized access to locals.
8769 * config/rs6000/constraints.md (R): Pass QImode to
8770 legitimate_constant_pool_address_p.
8771 * config/rs6000/predicates.md (input_operand): Pass mode to
8772 legitimate_constant_pool_address_p.
8773 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8776 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8779 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8780 64-bit constants being loaded into registers other than GPRs such
8781 as loading 0 into a VSX register.
8783 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8785 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8787 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8790 * builtins.c (fold_builtin_snprintf): New function.
8791 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8792 (fold_builtin_4): Likewise.
8795 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8796 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
8797 and C - X == X also strip nops from +/-/p+ operand.
8798 When optimizing -X == C, fold C to arg0's type.
8801 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8802 emit it as add_AT_int instead of add_AT_unsigned.
8804 2011-03-14 Tom Tromey <tromey@redhat.com>
8806 * unwind-dw2.c: Include sys/sdt.h if it exists.
8807 (_Unwind_DebugHook): Use STAP_PROBE2.
8808 * config.in, configure: Rebuild.
8809 * configure.ac: Check for sys/sdt.h.
8811 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
8813 * config/i386/i386.md (ROUND_FLOOR): New constant.
8814 (ROUND_CEIL): Ditto.
8815 (ROUND_TRUNC): Ditto.
8816 (ROUND_MXCSR): Ditto.
8817 (ROUND_NO_EXC): Ditto.
8818 (rint<mode>2): Use new defines instead of numerical constants.
8819 (floor<mode>2): Ditto.
8820 (ceil<mode>2): Ditto.
8821 (btrunc<mode>2): Ditto.
8822 * config/i386/i386-builtin-types.def: Define ROUND function type
8824 * config/i386/i386.c (enum ix86_builtins): Add
8825 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8826 (struct builtin_description): Add
8827 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8828 (ix86_expand_sse_round): New static function.
8829 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8831 (ix86_builtin_vectorized_function): Handle
8832 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8834 2011-03-14 Tom Tromey <tromey@redhat.com>
8836 * c-parser.c (c_parser_asm_string_literal): Clear
8837 warn_overlength_strings.
8839 2011-03-14 Tom Tromey <tromey@redhat.com>
8841 * c-parser.c (disable_extension_diagnostics): Save
8842 warn_overlength_strings.
8843 (restore_extension_diagnostics): Restore warn_overlength_strings.
8845 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8847 * BASE-VER: Change to 4.7.0.
8849 2011-03-14 Richard Guenther <rguenther@suse.de>
8852 * tree.c (build_vector_from_val): Adjust assert to requirements
8855 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8858 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
8860 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
8862 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
8863 terms of target_flags_explicit. Adjust copyright year.
8865 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8866 * config/rs6000/t-freebsd: New file. Add override for
8869 2011-03-13 Chris Demetriou <cgd@google.com>
8871 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8872 (-fno-diagnostics-show-option): this, to reflect current default.
8873 (-Werror=): Update text about -fno-diagnostics-show-option.
8875 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
8878 * config/rs6000/predicates.md (easy_vector_constant_add_self,
8879 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8880 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8881 mode is not V2DImode or V2DFmode.
8882 (vspltis_constant): Do not handle V2DImode and V2DFmode.
8883 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8884 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8886 (movdi_internal64): Likewise.
8888 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
8890 PR tree-optimization/47127
8891 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8893 (set_cloog_options): Same.
8894 (scop_to_clast): Same.
8895 (print_clast_stmt): Do not call cloog_state_malloc and
8897 (print_generated_program): Same.
8899 * graphite-clast-to-gimple.h (cloog_state): Declared.
8900 (scop_to_clast): Adjust declaration.
8901 * graphite.c (cloog_state): Defined here.
8902 (graphite_initialize): Call cloog_state_malloc.
8903 (graphite_finalize): Call cloog_state_free.
8905 2011-03-11 Jason Merrill <jason@redhat.com>
8907 * attribs.c (lookup_attribute_spec): Take const_tree.
8910 2011-03-11 Joseph Myers <joseph@codesourcery.com>
8912 * config/sparc/sparc.c (sparc_option_override): Use
8913 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8915 2011-03-11 Richard Guenther <rguenther@suse.de>
8917 PR tree-optimization/48067
8918 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8919 multiplication result will be only used once on the target
8922 2011-03-11 Richard Guenther <rguenther@suse.de>
8924 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8926 2011-03-11 Richard Guenther <rguenther@suse.de>
8929 * tree.c (find_decls_types_r): Do not walk types only reachable
8930 from IDENTIFIER_NODEs.
8932 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8935 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
8936 all vnode->force_output nodes as needed.
8938 2011-03-11 Jason Merrill <jason@redhat.com>
8941 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
8942 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
8944 2011-03-11 Martin Jambor <mjambor@suse.cz>
8946 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
8949 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8951 PR tree-optimization/48063
8952 * ipa-inline.c (cgraph_decide_inlining): Don't try to
8953 inline functions called once if !tree_can_inline_p (node->callers).
8955 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
8957 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
8959 * config/score/score3.c: Delete.
8960 * config/score/score3.h: Delete.
8961 * config/score/mul-div.S: Delete.
8962 * config/score/sfp-machine.h: Add new file.
8963 * config/score/constraints.md: Add new file.
8964 * config/score/t-score-softfp: Add new file.
8965 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
8966 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
8967 (score7_extra_constraint): Delete.
8968 (score7_option_override): Remove unused code.
8969 * config/score/score.c: Remove score3 and score5 define and code.
8970 * config/score/score.h: Remove score3 and score5 define and code.
8971 * config/score/score.md: Remove score3 template and unusual insn.
8972 * config/score/score.opt: Remove score3 and score5 options.
8974 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8976 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
8977 when _HPUX_SOURCE is defined.
8978 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
8980 2011-03-10 Jason Merrill <jason@redhat.com>
8983 * stor-layout.c (layout_type): Don't set structural equality
8984 on arrays of incomplete type.
8985 * tree.c (type_hash_eq): Handle comparing them properly.
8987 2011-03-10 Jakub Jelinek <jakub@redhat.com>
8990 * config/s390/s390.c (s390_delegitimize_address): Make sure the
8991 result mode matches original rtl mode.
8993 2011-03-10 Nick Clifton <nickc@redhat.com>
8995 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
8996 (andsi3, andsi3_flags): Fix timings for three operand alternative.
8998 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9000 PR rtl-optimization/47866
9001 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9002 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9003 if target wasn't scalar.
9004 * function.c (assign_stack_temp_for_type): Assert that neither
9005 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9006 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9008 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9010 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9012 * config/s390/s390-protos.h (s390_label_align): New prototype.
9013 * config/s390/s390.c (s390_label_align): New function.
9014 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9016 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9019 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9020 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9021 (output_vec_const_move): Ditto.
9023 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9025 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9026 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9027 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9028 Change 'rclass' argument and result type to reg_class_t.
9029 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9031 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9033 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9034 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9035 (TARGET_MEMORY_MOVE_COST): Define.
9036 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9038 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9041 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9044 PR tree-optimization/48022
9045 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9048 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9051 * var-tracking.c (find_use_val): Return NULL for
9052 cui->sets && cui->store_p BLKmode MEMs.
9054 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9056 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9058 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9059 xstormy16_print_operand_address): Remove.
9060 * config/stormy16/stormy16.c (xstormy16_print_operand,
9061 xstormy16_print_operand_address): Make static.
9062 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9064 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9067 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9068 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9071 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9074 * cfgloopmanip.c (fix_bb_placements): Return immediately
9075 if FROM is BASE_LOOP's header.
9077 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9079 * gimplify.c (gimplify_function_tree): Fix building calls
9080 to __builtin_return_address.
9082 2011-03-07 Alan Modra <amodra@gmail.com>
9084 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9085 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9086 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9087 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9089 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9090 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9091 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9092 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9093 * config/rs6000/rs6000.c
9094 (rs6000_elf_end_indicate_exec_stack): Rename to..
9095 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9096 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9097 (rs6000_file_start): ..here.
9098 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9099 file scope variables.
9100 (call_ABI_of_interest): New function.
9101 (init_cumulative_args): Set above vars when function return value
9102 is a float, vector, or small struct.
9103 (rs6000_function_arg_advance_1): Likewise for function args.
9104 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9105 references float args.
9107 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9109 * doc/cfg.texi: Remove "See" before @ref.
9110 * doc/invoke.texi: Likewise.
9112 2011-03-05 Jason Merrill <jason@redhat.com>
9114 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9116 2011-03-05 Anthony Green <green@moxielogic.com>
9118 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9120 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9122 PR rtl-optimization/47899
9123 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9124 to flow_loop_nested_p when moving the loop upward.
9126 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9129 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9131 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9133 PR tree-optimization/47967
9134 * ipa-cp.c (build_const_val): Return NULL instead of creating
9135 VIEW_CONVERT_EXPR for mismatching sizes.
9136 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9137 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9138 give up on versioning.
9140 2011-03-05 Alan Modra <amodra@gmail.com>
9143 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9144 full cmodel medium/large lo_sum + high addresses.
9146 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9148 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9149 pool references in UNSPEC_LTREL_OFFSET.
9151 2011-03-04 Jan Hubicka <jh@suse.cz>
9154 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9155 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9156 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9158 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9159 cgraph_add_thunk): Add node pointers.
9160 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9161 associated to right node.
9162 (input_node): Update use of cgraph_same_body_alias
9163 and cgraph_add_thunk.
9165 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9167 * config/i386/i386.opt (mprefer-avx128): New flag.
9168 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9169 modes when the flag -mprefer-avx128 is on.
9171 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9173 * dwarf2out.c (compare_loc_operands): Fix address handling.
9175 2011-03-04 Alan Modra <amodra@gmail.com>
9177 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9179 2011-03-04 Richard Guenther <rguenther@suse.de>
9182 * expmed.c (extract_bit_field_1): Prefer vector modes that
9183 vec_extract patterns can handle.
9185 2011-03-04 Richard Guenther <rguenther@suse.de>
9188 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9190 2011-03-04 Richard Henderson <rth@redhat.com>
9192 * explow.c (emit_stack_save): Remove 'after' parameter.
9193 (emit_stack_restore): Likewise.
9194 * expr.h: Update to match.
9195 * builtins.c, calls.c, stmt.c: Likewise.
9196 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9197 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9198 * function.c (expand_function_end): Insert the emit_stack_save
9199 sequence before parm_birth_insn instead of after.
9201 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9203 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9204 (ssse3_pmaddubsw128): Ditto.
9205 (ssse3_pmaddubsw): Ditto.
9207 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9209 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9211 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9214 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9215 on TYPE_SIZE_UNIT if it is a DECL.
9218 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9219 first operand is not is_gimple_mem_ref_addr, try to fold it.
9220 If the operand still isn't is_gimple_mem_ref_addr, clear
9223 2011-03-03 Richard Guenther <rguenther@suse.de>
9226 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9228 (refs_may_alias_p_1): For release branches return true if
9229 we are confused by our input.
9231 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9233 * config/s390/s390.c (s390_function_value): Rename to ...
9234 (s390_function_and_libcall_value): ... this.
9235 (s390_function_value): New function.
9236 (s390_libcall_value): New function.
9237 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9238 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9239 target macro definitions.
9240 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9242 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9244 * config/i386/freebsd64.h (CC1_SPEC): Define.
9245 * config/i386/linux64.h (CC1_SPEC): Define.
9246 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9248 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9250 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9252 * config/stormy16/stormy16.c: Include reload.h.
9253 (xstormy16_memory_move_cost): New function.
9254 (TARGET_MEMORY_MOVE_COST): Define.
9256 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9258 PR rtl-optimization/47925
9259 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9260 with side effects. Remove the more-specific check for volatile asms.
9262 2011-03-02 Alan Modra <amodra@gmail.com>
9265 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9266 toc relative addresses for valid offsets.
9268 2011-03-01 Richard Guenther <rguenther@suse.de>
9270 PR tree-optimization/47890
9271 * tree-vect-loop.c (get_initial_def_for_induction): Set
9272 related stmt properly.
9274 2011-03-01 Richard Guenther <rguenther@suse.de>
9277 * lto-streamer.c (lto_record_common_node): Also register
9280 2011-03-01 Richard Guenther <rguenther@suse.de>
9283 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9284 Do not stream DECL_ABSTRACT_ORIGIN.
9285 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9286 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9287 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9288 Do not stream DECL_ABSTRACT_ORIGIN.
9289 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9290 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9292 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9294 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9295 FUNCTION_VALUE_REGNO_P): Remove.
9296 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9297 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9298 Add 'outgoing' argument.
9299 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9301 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9302 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9304 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9307 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9308 (lookup_filename): Likewise.
9309 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9311 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9312 Jakub Jelinek <jakub@redhat.com>
9315 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9316 (assign_stack_local_1): Change last argument type to int.
9317 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9318 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9319 don't record padding space into frame_space_list nor use those areas.
9320 (assign_stack_local): Adjust caller.
9321 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9322 of assign_stack_local, pass 0 as last argument.
9323 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9326 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9329 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9330 Use target address_mode and pointer_mode hooks instead of hardcoded
9331 Pmode and ptr_mode. Handle some simple cases of extending if
9332 POINTERS_EXTEND_UNSIGNED < 0.
9333 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9334 Call convert_debug_memory_address.
9335 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9336 convert_debug_memory_address.
9339 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9340 * configure: Regenerated.
9341 * config.in: Regenerated.
9342 * varasm.c (default_function_section): Return NULL
9343 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9345 2011-02-28 Martin Jambor <mjambor@suse.cz>
9347 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9348 the description to match the printed values.
9350 2011-02-28 Richard Guenther <rguenther@suse.de>
9352 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9353 of the copied scope tree.
9355 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9357 * doc/extend.texi (Function Attributes): Avoid deeply (and
9358 wrongly) nested tables.
9360 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9363 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9364 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9365 r isn't op0 nor op1.
9367 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9369 * config/avr/avr.md: Remove magic comment for emacs.
9371 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9374 * config/avr/avr.c (avr_option_override): Use error on bad options.
9375 (avr_help): New function.
9376 (TARGET_HELP): Define.
9378 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9381 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9382 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9384 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9386 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9387 (ARM Options): Ditto.
9388 (i386 and x86-64 Options): Ditto.
9389 (RX Options): Ditto.
9390 (SPARC Options): Ditto.
9392 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9394 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9395 FreeBSD 6 and later. Generally use cpu generic.
9397 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9399 * doc/cpp.texi: Update copyright years.
9401 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9404 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9406 2011-02-25 Jon Beniston <jon@beniston.com>
9409 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9410 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9411 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9412 (lm32_block_move_inline): Add type cast to remove warning.
9413 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9414 (gen_int_relational): Move declarations to start of function.
9416 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9418 PR tree-optimization/45470
9419 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9420 can throw internally only.
9421 * tree-vect-stmts.c (vectorizable_call): Likewise.
9423 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9425 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9426 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9427 * config/stormy16/stormy16-protos.h
9428 (xstormy16_preferred_reload_class): Remove.
9429 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9430 static. Change 'rclass' argument and return type to reg_class_t.
9431 (TARGET_PREFERRED_RELOAD_CLASS,
9432 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9434 2011-02-24 Richard Guenther <rguenther@suse.de>
9436 * lto-streamer-in.c (input_bb): Do not find referenced vars
9437 in debug statements.
9439 2011-02-23 Jason Merrill <jason@redhat.com>
9441 * common.opt (fabi-version): Document v5 and v6.
9443 2011-02-23 Richard Guenther <rguenther@suse.de>
9445 PR tree-optimization/47849
9446 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9448 2011-02-23 Jie Zhang <jie@codesourcery.com>
9450 * opts-common.c (decode_cmdline_option): Print empty string
9451 argument as "" in decoded->orig_option_with_args_text.
9452 * gcc.c (execute): Print empty string argument as ""
9453 in the verbose output.
9454 (do_spec_1): Keep empty string argument.
9456 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9458 * config.gcc: Declare score-* and crx-* obsolete.
9460 2011-02-23 Jie Zhang <jie@codesourcery.com>
9462 PR rtl-optimization/47763
9463 * web.c (web_main): Ignore naked clobber when replacing register.
9465 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9467 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9470 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9473 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9475 2011-02-22 Mike Stump <mikestump@comcast.net>
9477 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9479 * configure: Regenerate.
9481 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9483 PR rtl-optimization/46002
9484 * ira-color.c (update_copy_costs): Change class intersection
9485 test to reg_class_contents[] test of 'hard_regno'.
9487 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9489 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9491 * config/hpux11.opt (mt): Likewise.
9492 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9493 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9494 * config/vax/elf.opt (mno-asm-pic): Likewise.
9495 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9497 2011-02-21 Mike Stump <mikestump@comcast.net>
9500 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9501 tree so we can get save the type.
9502 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9503 for CFString instead of trying to use past the end of the builtins.
9504 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9505 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9506 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9507 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9508 Rename to darwin_builtin_cfstring.
9509 (darwin_init_cfstring_builtins): Return the built type.
9511 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9514 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9515 (_mm256_insert_epi64): Use _mm_insert_epi64.
9517 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9519 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9520 * config/stormy16/stormy16-protos.h
9521 (xstormy16_mode_dependent_address_p): Remove.
9522 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9523 Make static. Change return type to bool. Change argument type to
9524 const_rtx. Remove dead code.
9525 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9527 2011-02-21 Richard Guenther <rguenther@suse.de>
9530 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9531 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9532 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9534 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9535 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9537 2011-02-20 Richard Guenther <rguenther@suse.de>
9540 * tree.c (free_lang_data_in_decl): Clean builtins from
9541 the TU decl BLOCK_VARS.
9543 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9547 * haifa-sched.c (fix_tick_ready): Skip tick computation
9550 2011-02-19 Richard Guenther <rguenther@suse.de>
9553 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9554 Remove lazy BLOCK_VARS streaming.
9555 (lto_input_ts_block_tree_pointers): Likewise.
9556 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9558 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9560 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9562 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9564 * config/i386/biarch32.h, config/i386/mach.h,
9565 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9567 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9570 * config/i386/i386.md (peephole2 for shift and plus): Use
9571 operands[1] original mode in the first insn.
9573 2011-02-18 Mike Stump <mikestump@comcast.net>
9575 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9577 2011-02-18 Jan Hubicka <jh@suse.cz>
9580 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9581 to zero when the function is not inlinable at all.
9583 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9585 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9586 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9587 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9588 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9589 * config/pa/t-pa64: Likewise.
9590 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9592 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9595 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9597 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9600 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9602 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9604 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9605 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9606 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9607 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9608 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9609 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9610 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9611 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9612 m32r_legitimate_address_p): New functions.
9613 * config/m32r/constraints.md (constraint "S"): Don't use
9614 STORE_PREINC_PREDEC_P.
9615 (constraint "U"): Don't use LOAD_POSTINC_P.
9617 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9619 PR rtl-optimization/46178
9620 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9621 compute ira_hard_regno_cover_class[].
9623 2011-02-18 Richard Guenther <rguenther@suse.de>
9626 * lto-streamer.h (lto_global_var_decls): Declare.
9627 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9628 statics for global var processing.
9630 2011-02-18 Richard Guenther <rguenther@suse.de>
9632 PR tree-optimization/47737
9633 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9634 edge dominance check.
9636 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9639 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9640 avoid invalid rtx sharing.
9642 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9644 * doc/cpp.texi (Obsolete Features): Add background on the
9645 origin of assertions.
9647 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9649 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9651 * config/darwin.c (output_objc_section_asm_op): Added support for
9653 (is_objc_metadata): New.
9654 (darwin_objc2_section): New.
9655 (darwin_objc1_section): New.
9656 (machopic_select_section): Added support for ABI v1 and v2.
9657 (darwin_emit_objc_zeroed): New.
9658 (darwin_output_aligned_bss): Detect objc metadata and treat it
9660 (darwin_asm_output_aligned_decl_common): Same.
9661 (darwin_asm_output_aligned_decl_local): Same.
9662 * config/darwin-sections.def: Updated for ABI v1 and v2.
9663 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9664 compiling Objective-C code for the NeXT runtime, default to using
9665 ABI version 0 for 32-bit, and version 2 for 64-bit.
9667 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9669 * common.opt (optimize_fast): New Variable.
9670 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9671 instead of local variable ofast.
9673 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9675 * doc/invoke.texi (fobjc-abi-version): Documented.
9676 (fobjc-nilcheck): Documented.
9677 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9680 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9683 * common.opt (export-dynamic): New Driver option.
9684 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9686 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9688 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9690 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
9691 Jan Hubicka <jh@suse.cz>
9695 * cfgexpand.c (account_used_vars_for_block): Remove.
9696 (estimated_stack_frame_size): Use referenced vars.
9697 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9698 that were referenced in the original function. Test src_fn
9699 rather than cfun. Drop redundant get_var_ann.
9700 (setup_one_parameter): Drop redundant get_var_ann.
9701 (declare_return_variable): Likewise.
9702 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9703 (copy_arguments_for_versioning): Drop redundant get_var_ann.
9704 * ipa-inline.c (compute_inline_parameters): Do not compute
9705 disregard_inline_limits here.
9706 (compute_inlinable_for_current, pass_inlinable): New.
9707 (pass_inline_parameters): Require PROP_referenced_vars.
9708 * cgraphunit.c (cgraph_process_new_functions): Don't run
9709 compute_inline_parameters explicitly unless function is in SSA form.
9710 (cgraph_analyze_function): Set .disregard_inline_limits.
9711 * tree-sra.c (convert_callers): Compute inliner parameters
9712 only for functions already in SSA form.
9714 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9716 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9717 -mlittle-endian-data.
9719 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9721 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9722 -mno-fpu, not -fpu and -no-fpu.
9723 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9724 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9726 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
9729 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9730 input reload with PLUS RTX.
9732 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9734 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9735 of InverseVar(MDMX).
9737 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9739 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9742 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9744 * config/mn10300/mn10300.opt (mno-crt0): New.
9746 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9748 * config/m68k/uclinux.opt (static-libc): New Driver option.
9750 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9752 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9754 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9756 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9757 %{muser-extend-enabled}.
9759 2011-02-16 Richard Guenther <rguenther@suse.de>
9761 PR tree-optimization/47738
9762 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9763 the TODO from tree_predictive_commoning.
9765 2011-02-15 Jeff Law <law@redhat.com>
9768 2011-01-25 Jeff Law <law@redhat.com>
9770 PR rtl-optimization/37273
9771 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9772 handle them like argument loads from stack slots. Do not double
9773 count memory for memory constants and argument loads from stack slots.
9775 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9778 * combine.c (cant_combine_insn_p): Revert the last change.
9780 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
9783 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9784 mode for vector constants. Remove code that checks for TImode.
9786 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9790 * cgraph.h (compute_inline_parameters): Return void.
9791 * ipa-inline.c (compute_inline_parameters): Adjust.
9793 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9797 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9799 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9800 * ipa-inline.c (compute_inline_parameters): Adjust.
9802 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9806 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9807 Adjust all users. Pass FN to...
9808 * tree-flow-inline.h (first_referenced_var): ... this. Add
9810 * ipa-struct-reorg.c: Adjust.
9811 * tree-dfa.c: Adjust.
9812 * tree-into-ssa.c: Adjust.
9813 * tree-sra.c: Adjust.
9814 * tree-ssa-alias.c: Adjust.
9815 * tree-ssa-live.c: Adjust.
9816 * tree-ssa.c: Adjust.
9817 * tree-ssanames.c: Adjust.
9818 * tree-tailcall.c: Adjust.
9820 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9824 * tree-flow.h (referenced_var_lookup): Add fn parameter.
9826 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9827 * tree-flow-inline.h: Adjust.
9828 * gimple-pretty-print.c: Adjust.
9829 * tree-into-ssa.c: Adjust.
9830 * tree-ssa.c: Adjust.
9831 * cfgexpand.c: Adjust.
9833 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9835 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9836 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9837 (EXTRA_CONSTRAINT): Delete.
9838 * config/iq2000/constraints.md: New file.
9839 * config/iq2000/iq2000.md: Include it.
9840 (define_insn ""): Delete.
9841 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9842 unsupported constraint letters from patterns.
9843 (call_value, call_value_internal1): Likewise.
9844 (call_value_multiple_internal1): Likewise.
9846 2011-02-15 Nick Clifton <nickc@redhat.com>
9848 * config/mn10300/mn10300.c: Include tm-constrs.h.
9849 (struct liw_data): New data structure describing an LIW candidate
9851 (extract_bundle): Use struct liw_data. Allow small integer
9852 operands for some instructions.
9853 (check_liw_constraints): Use struct liw_data. Remove swapped
9854 parameter. Add comments describing the checks. Fix bug when
9855 assigning the source of liw1 to the source of liw2.
9856 (liw_candidate): Delete. Code moved into extract_bundle.
9857 (mn10300_bundle_liw): Use struct liw_data. Check constraints
9859 * config/mn10300/predicates.md (liw_operand): New predicate.
9860 Allows registers and small integer constants.
9861 * config/mn10300/constraints.md (O): New constraint. Accetps
9862 integers in the range -8 to +7 inclusive.
9863 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9864 for moving a small integer into a register. Give this alternative
9866 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9867 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9868 using the J,K,L and M constraints,
9869 (liw): Remove SI mode on second operands to allow for HI and QI
9871 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
9874 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9877 * combine.c (cant_combine_insn_p): Check zero/sign extended
9880 2011-02-15 Richard Guenther <rguenther@suse.de>
9882 PR tree-optimization/47743
9883 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9884 for a non-type-compatible VN lookup bail out.
9886 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9888 * config/fr30/constraints.md: New file.
9889 * config/fr30/fr30.md: Include it.
9890 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9891 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9892 (EXTRA_CONSTRAINT): Delete.
9894 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9896 * config/frv/constraints.md: New file.
9897 * config/frv/predicates.md: Include it.
9898 * config/frv/frv.c (reg_class_from_letter): Delete.
9899 (frv_option_override): Don't initialize it.
9900 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9901 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9902 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9903 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9904 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9905 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9906 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9907 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9908 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9909 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9910 (REG_CLASS_FROM_CONSTRAINT): Delete.
9912 2011-02-15 Jakub Jelinek <jakub@redhat.com>
9915 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9916 if frame size is 0 in a leaf function.
9918 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9921 * config/alpha/host-osf.c: New file.
9922 * config/alpha/x-osf: New file.
9923 * config.host (alpha*-dec-osf*): Use it.
9925 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9927 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9928 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
9929 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
9930 (rx_mode_dependent_address_p): ...this. Make static. Change argument
9932 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9934 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9936 * config/stormy16/constraints.md: New file.
9937 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
9938 Use satisfies_constraint_Q and satisfies_constraint_R.
9939 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
9941 (xstormy16_legitiamte_address_p): Declare.
9942 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
9943 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9944 (EXTRA_CONSTRAINT): Delete.
9945 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9947 (xstormy16_extra_constraint_p): Delete.
9949 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
9951 PR tree-optimization/46494
9952 * loop-unroll.c (split_edge_and_insert): Adjust comment.
9953 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
9954 (pass_rtl_loop_done): Add TODO_verify_flow.
9955 * fwprop.c (pass_rtl_fwprop): Likewise.
9956 * modulo-sched.c (pass_sms): Likewise.
9957 * tree-ssa-dom.c (pass_dominator): Likewise.
9958 * tree-ssa-loop-ch.c (pass_ch): Likewise.
9959 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
9960 (pass_tree_loop_done): Likewise.
9961 * tree-ssa-pre.c (execute_pre): Likewise.
9962 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9963 * tree-ssa-sink.c (pass_sink_code): Likewise.
9964 * tree-vrp.c (pass_vrp): Likewise.
9966 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9968 * config/v850/constraints.md: New file.
9969 * config/v850/v850.md: Include it.
9970 * config/v850/predicates.md (reg_or_0_operand): Use
9971 satisfies_constraint_G.
9972 (special_symbolref_operand): Use satisfies_constraint_K.
9973 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
9974 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
9975 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
9976 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9977 (EXTRA_CONSTRAINT): Delete.
9978 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
9979 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
9980 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
9982 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9985 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
9988 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9990 * config/mcore/constraints.md: New file.
9991 * config/mcore/mcore.md: Include it.
9992 * config/mcore/mcore.c (reg_class_from_letter): Delete.
9993 * config/mcore/mcore.h (reg_class_from_letter): Delete.
9994 (REG_CLASS_FROM_LETTER): Delete.
9995 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
9996 insn_const_int_ok_for_constraint.
9997 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
9998 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
9999 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10000 (EXTRA_CONSTRAINT): Delete.
10002 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10005 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10006 (IS_SIGHANDLER): Define.
10007 (sparc64_is_sighandler): New function, split off from
10008 sparc64_fallback_frame_state.
10009 (sparc_is_sighandler): New function, split off from
10010 sparc_fallback_frame_state.
10011 (sparc64_fallback_frame_state): Merge with ...
10012 (sparc_fallback_frame_state): ... this into ...
10013 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10014 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10015 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10016 stack instead of hardcoded offsets.
10018 2011-02-14 Andriy Gapon <avg@freebsd.org>
10021 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10023 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10025 * configure: Regenerate.
10027 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10030 * gcc.c (asm_options): Correct spec matching --target-help.
10032 2011-02-12 Martin Jambor <mjambor@suse.cz>
10034 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10035 to gimple call error.
10037 2011-02-12 Mike Stump <mikestump@comcast.net>
10039 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10040 comments in backslash regions.
10042 2011-02-12 Mike Stump <mikestump@comcast.net>
10043 Jakub Jelinek <jakub@redhat.com>
10044 Iain Sandoe <iains@gcc.gnu.org>
10047 * dwarf2out.c (output_cfa_loc): When required, apply the
10048 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10049 (output_loc_sequence): Likewise.
10050 (output_loc_operands_raw): Likewise.
10051 (output_loc_sequence_raw): Likewise.
10052 (output_cfa_loc): Likewise.
10053 (output_loc_list): Suppress register number adjustment when
10054 calling output_loc_sequence()
10055 (output_die): Likewise.
10057 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10059 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10061 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10062 xtensa_memory_move_cost): New functions.
10063 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10065 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10068 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10069 in the current directory.
10070 * configure: Rebuilt.
10072 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10074 * config/darwin.c (darwin_override_options): Add a hunk missed
10075 from the commit of r168571. Trim comment line lengths and
10076 correct indents of the preceding block.
10078 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10080 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10083 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10085 * common.opt (nostartfiles): New Driver option.
10087 2011-02-11 Xinliang David Li <davidxl@google.com>
10089 PR tree-optimization/47707
10090 * tree-chrec.c (convert_affine_scev): Keep type precision.
10092 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10094 PR tree-optimization/47420
10095 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10097 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10099 PR rtl-optimization/47614
10100 * rtl.h (check_for_inc_dec): Declare.
10101 * dse.c (check_for_inc_dec): Externalize...
10102 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10103 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10105 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10108 * gcc.c (main): Do not compile inputs if there were errors in
10110 * opts-common.c (read_cmdline_option): Check for wrong language
10111 after other error checks.
10113 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10115 * cgraph.c: Fix comment typos.
10116 * cgraph.h: Likewise.
10117 * cgraphunit.c: Likewise.
10118 * ipa-cp.c: Likewise.
10119 * ipa-inline.c: Likewise.
10120 * ipa-prop.c: Likewise.
10121 * ipa-pure-const.c: Likewise.
10122 * ipa-ref.c: Likewise.
10123 * ipa-reference.c: Likewise.
10125 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10128 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10130 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10133 * doc/sourcebuild.texi (Require Support): Document
10134 dg-require-ascii-locale.
10136 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10138 * doc/lto.texi (Write summary): Fix missing parentheses.
10140 2011-02-10 DJ Delorie <dj@redhat.com>
10142 * config/m32c/m32c.c (m32c_option_override): Disable
10143 -fcombine-stack-adjustments until flag value tracking and compare
10144 optimization can be rewritten.
10146 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10148 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10150 (PROCESSOR_DEFAULT64): Likewise.
10152 2011-02-10 Richard Henderson <rth@redhat.com>
10154 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10155 change from 2011-02-03.
10156 * config/rx/rx.c (flags_from_code): Likewise.
10157 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10158 is valid, n/pz otherwise.
10159 (rx_select_cc_mode): Return CCmode if Y is not zero.
10161 2011-02-10 Richard Guenther <rguenther@suse.de>
10163 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10165 2011-02-10 Richard Guenther <rguenther@suse.de>
10167 PR tree-optimization/47677
10168 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10170 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10173 * combine.c (make_compound_operation): Only change shifts into
10174 multiplication for SCALAR_INT_MODE_P.
10176 2011-02-10 Jie Zhang <jie@codesourcery.com>
10180 2011-02-05 Jie Zhang <jie@codesourcery.com>
10182 * web.c (entry_register): Don't clobber the number of the
10183 first uninitialized reference in used[].
10185 2011-02-09 Richard Guenther <rguenther@suse.de>
10187 PR tree-optimization/47664
10188 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10191 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10195 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10197 (PROCESSOR_DEFAULT64): Same.
10198 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10200 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10202 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10204 2011-02-09 Martin Jambor <mjambor@suse.cz>
10206 PR middle-end/45505
10207 * tree-sra.c (struct access): New flags grp_scalar_read and
10208 grp_scalar_write. Changed description of assignment read and write
10210 (dump_access): Dump new flags, reorder all of them.
10211 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10212 to detect multiple scalar reads.
10213 (analyze_access_subtree): Use the new scalar read write flags instead
10214 of the old flags. Adjusted comments.
10216 2011-02-08 DJ Delorie <dj@redhat.com>
10219 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10222 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10224 * config/m68k/uclinux.opt: New.
10225 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10227 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10229 * config/cris/elf.opt (sim): New Driver option.
10231 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10233 * config/xtensa/elf.opt: New.
10234 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10236 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10238 * config/vax/elf.opt: New.
10239 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10241 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10243 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10245 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10247 * config/gnu-user.opt: New.
10248 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10249 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10250 *-*-uclinux*): Use gnu-user.opt.
10252 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10254 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10255 * config/i386/gnu.h (CPP_SPEC): Likewise.
10257 2011-02-08 Ian Lance Taylor <iant@google.com>
10259 * common.opt (fcx-limited-range): Add SetByCombined flag.
10260 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10261 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10262 (fassociative-math, freciprocal-math): Likewise.
10263 (funsafe-math-optimizations): Likewise.
10264 * opth-gen.awk: Handle SetByCombined.
10265 * optc-gen.awk: Likewise.
10266 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10267 (set_unsafe_math_optimizations_flags): Likewise.
10268 * doc/options.texi (Option properties): Document SetByCombined.
10270 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10272 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10273 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10274 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10275 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10276 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10278 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10280 PR tree-optimization/46834
10281 PR tree-optimization/46994
10282 PR tree-optimization/46995
10283 * graphite-sese-to-poly.c (used_outside_reduction): New.
10284 (detect_commutative_reduction): Call used_outside_reduction.
10285 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10286 translate_scalar_reduction_to_array only when at least one
10287 loop-phi/close-phi tuple has been detected.
10289 2011-02-08 Richard Guenther <rguenther@suse.de>
10291 PR middle-end/47639
10292 * tree-vect-generic.c (expand_vector_operations_1): Update
10294 (expand_vector_operations): ... not here. Cleanup EH info
10295 and the CFG if required.
10297 2011-02-08 Richard Guenther <rguenther@suse.de>
10299 PR tree-optimization/47641
10300 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10301 require type compatibility.
10303 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10305 * gimple-low.c (lower_function_body): Don't remove the location of
10306 the return statement here.
10307 (lower_gimple_return): Do it here instead but only if the return
10308 statement is actually used twice.
10310 2011-02-08 Richard Guenther <rguenther@suse.de>
10312 PR tree-optimization/47632
10313 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10314 unused up_to_stmt parameter, return whether cfg-cleanup is
10315 necessary, remove EH info properly.
10316 (forward_propagate_into_gimple_cond): Adjust caller.
10317 (forward_propagate_into_cond): Likewise.
10318 (forward_propagate_comparison): Likewise.
10319 (tree_ssa_forward_propagate_single_use_vars): Make
10320 forward_propagate_comparison case similar to the two others.
10322 2011-02-08 Nick Clifton <nickc@redhat.com>
10324 * config/mn10300/mn10300.opt (mliw): New command line option.
10325 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10326 (liw_bundling): New automaton.
10327 (liw): New attribute.
10328 (liw_op): New attribute.
10329 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10330 (movsi_internal): Add LIW attributes.
10331 (andsi3): Likewise.
10332 (iorsi3): Likewise.
10333 (xorsi3): Likewise.
10334 (addsi3): Separate register and immediate alternatives.
10335 Add LIW attributes.
10336 (subsi3): Likewise.
10338 (aslsi3): Likewise.
10339 (lshrsi3): Likewise.
10340 (ashrsi3): Likewise.
10341 (liw): New pattern.
10342 * config/mn10300/mn10300.c (liw_op_names): New
10343 (mn10300_print_operand): Handle 'W' operand descriptor.
10344 (extract_bundle): New function.
10345 (check_liw_constraints): New function.
10346 (liw_candidate): New function.
10347 (mn10300_bundle_liw): New function.
10348 (mn10300_reorg): New function.
10349 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10350 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10351 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10352 __LIW__ or __NO_LIW__.
10353 * doc/invoke.texi: Describe the -mliw command line option.
10355 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10357 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10358 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10359 pthread_mutex_unlock): Remove.
10360 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10361 * config/pa/t-pa64: Likewise.
10362 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10363 shared libc if not linking against libpthread.
10364 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10366 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10369 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10370 on 10.6 and later to ensure that we always use the unwinder from
10371 the system. Only add -no_compact_unwind when tarteting darwin
10374 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10377 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10378 (vec_interleave_lowv2sf): Ditto.
10379 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10380 (vec_extract_oddv2sf): Ditto.
10382 2011-02-07 Mike Stump <mikestump@comcast.net>
10385 Add __ieee_divdc3 entry point.
10386 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10388 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10389 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10390 * config/darwin.c (darwin_rename_builtins): Add.
10391 * config/darwin-protos.h (darwin_rename_builtins): Add.
10393 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10396 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10399 2011-02-07 Mike Stump <mikestump@comcast.net>
10401 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10403 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10406 * config/avr/libgcc.S (exit): Move .endfunc
10408 2011-02-07 Richard Guenther <rguenther@suse.de>
10410 PR tree-optimization/47615
10411 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10412 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10413 (run_scc_vn): Initialize it.
10414 (visit_reference_op_load): Use it.
10415 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10417 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10419 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10420 DImode trapping arithmetic libfuncs.
10422 2011-02-07 Richard Guenther <rguenther@suse.de>
10424 PR tree-optimization/47621
10425 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10427 (execute_update_addresses_taken): ... here. Make it more
10428 conservative in what we accept.
10430 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10432 * config/sparc/freebsd.h (ASM_SPEC): Define.
10433 * config/sparc/vxworks.h (ASM_SPEC): Define.
10435 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10437 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10439 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10441 * doc/invoke.texi: Remove reference to compiler internals from
10442 user documentation.
10444 * reg-notes.def: Remove REG_VALUE_PROFILE.
10445 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10447 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10449 PR middle-end/47610
10450 * varasm.c (default_section_type_flags): If decl is NULL,
10451 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10453 2011-02-05 Jie Zhang <jie@codesourcery.com>
10456 * web.c (entry_register): Don't clobber the number of the
10457 first uninitialized reference in used[].
10459 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10461 PR tree-optimization/46194
10462 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10463 (build_classic_dist_vector_1): Do not represent classic distance
10464 vectors when the access functions are variating in different loops.
10466 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10468 * config/mips/iris6.opt: New.
10469 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10471 2011-02-04 Richard Henderson <rth@redhat.com>
10472 Steve Ellcey <sje@cup.hp.com>
10475 * config/ia64/predicates.md (mux1_brcst_element): New.
10476 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10477 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10478 (ia64_unpack_sign): New.
10479 (ia64_expand_unpack): Rewrite using new routines.
10480 (ia64_expand_widen_sum): Ditto.
10481 (ia64_expand_dot_prod_v8qi): Ditto.
10482 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10483 routines, add endian check.
10484 (pmpy2_even): Rename from pmpy2_r, add endian check.
10485 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10486 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10487 (vec_widen_smult_hi_v4hi): Ditto.
10488 (vec_widen_umult_lo_v4hi): Ditto.
10489 (vec_widen_umult_hi_v4hi): Ditto.
10490 (mulv2si3): Change endian checks.
10491 (sdot_prodv4hi): Rewrite with new calls.
10492 (udot_prodv4hi): New.
10493 (vec_pack_ssat_v4hi): Add endian check.
10494 (vec_pack_usat_v4hi): Ditto.
10495 (vec_pack_ssat_v2si): Ditto.
10496 (max1_even): Rename from max1_r, add endian check.
10497 (max1_odd): Rename from max1_l, add endian check.
10498 (*mux1_rev): Format change.
10499 (*mux1_mix): Ditto.
10500 (*mux1_shuf): Ditto.
10501 (*mux1_alt): Ditto.
10502 (*mux1_brcst_v8qi): Use new predicate.
10503 (vec_extract_evenv8qi): Remove endian check.
10504 (vec_extract_oddv8qi): Ditto.
10505 (vec_interleave_lowv4hi): Format change.
10506 (vec_interleave_highv4hi): Ditto.
10507 (mix2_even): Rename from mix2_r, add endian check.
10508 (mix2_odd): Rename from mux2_l, add endian check.
10509 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10510 (vec_extract_evenodd_helper): Format change.
10511 (vec_extract_evenv4hi): Remove endian check.
10512 (vec_extract_oddv4hi): Remove endian check.
10513 (vec_interleave_lowv2si): Format change.
10514 (vec_interleave_highv2si): Format change.
10515 (vec_initv2si): Remove endian check.
10516 (vecinit_v2si): Add endian check.
10517 (reduc_splus_v2sf): Add endian check.
10518 (reduc_smax_v2sf): Ditto.
10519 (reduc_smin_v2sf): Ditto.
10520 (vec_initv2sf): Remove endian check.
10521 (fpack): Add endian check.
10522 (fswap): Add endian check.
10523 (vec_interleave_highv2sf): Add endian check.
10524 (vec_interleave_lowv2sf): Add endian check.
10525 (fmix_lr): Add endian check.
10526 (vec_setv2sf): Format change.
10527 (*vec_extractv2sf_0_be): Use shift to extract operand.
10528 (*vec_extractv2sf_1_be): New.
10529 (vec_pack_trunc_v4hi): Add endian check.
10530 (vec_pack_trunc_v2si): Format change.
10532 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10534 PR inline-asm/23200
10535 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10536 do bb, locus and block comparison and disallow loads if it is not set.
10537 (stmt_is_replaceable_p): New function.
10538 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10540 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10541 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10543 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10545 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10547 * config/rs6000/xilinx.opt: New.
10548 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10550 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10552 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10554 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10556 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10557 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10558 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10559 secondary_reload_info, xtensa_secondary_reload): Remove.
10560 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10561 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10562 (xtensa_preferred_reload_class): Make static. Change return and
10563 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10564 Use CONST_DOUBLE_P predicate.
10565 (xtensa_preferred_output_reload_class): New function.
10566 (xtensa_secondary_reload): Make static.
10568 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10570 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10571 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10572 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10574 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10576 PR middle-end/31490
10577 * output.h (SECTION_RELRO): Define.
10578 (SECTION_MACH_DEP): Adjust.
10579 (get_variable_section): New prototype.
10580 * varpool.c (varpool_finalize_named_section_flags): New function.
10581 (varpool_assemble_pending_decls): Call it.
10582 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10583 * cgraphunit.c (cgraph_output_in_order): Call
10584 varpool_finalize_named_section_flags.
10585 * varasm.c (get_section): Allow section flags conflicts between
10586 relro and read-only sections if the section hasn't been declared yet.
10587 Set SECTION_OVERRIDE after diagnosing section type conflict.
10588 (get_variable_section): No longer static.
10589 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10590 readonly sections that need relocations.
10591 (decl_readonly_section_1): New function.
10592 (decl_readonly_section): Use it.
10595 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10596 Steve Ellcey <sje@cup.hp.com>
10598 PR middle-end/31490
10599 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10600 if section attribute used.
10602 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10604 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10605 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10606 (darwin_init_sections): Remove assertion.
10608 2011-02-03 Nick Clifton <nickc@redhat.com>
10610 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10612 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10613 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10614 instead of "n" and "pz".
10615 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10618 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10621 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10622 fma, expand FMA_EXPR as fma{,f,l} call.
10625 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10626 copy them into a unsigned char variable and pass address of it to
10627 lto_output_data_stream.
10630 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10631 around backend_init_target and lang_dependent_init_target calls.
10632 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10633 (verify_cgraph_node): Don't call set_cfun here. Use
10634 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10635 Set error_found for incorrectly represented calls to thunks.
10637 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10640 PR rtl-optimization/43494
10641 * rtl.h (for_each_inc_dec_fn): New type.
10642 (for_each_inc_dec): Declare.
10643 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10644 (for_each_inc_dec_find_inc_dec): New fn.
10645 (for_each_inc_dec_find_mem): New fn.
10646 (for_each_inc_dec): New fn.
10647 * dse.c (struct insn_size): Remove.
10648 (replace_inc_dec, replace_inc_dec_mem): Remove.
10649 (emit_inc_dec_insn_before): New fn.
10650 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10651 (canon_address): Pass mem modes to cselib_lookup.
10652 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10653 (cselib_lookup_from_insn): Likewise.
10654 (cselib_subst_to_values): Likewise.
10655 * cselib.c (find_slot_memmode): New var.
10656 (cselib_find_slot): New fn. Use it instead of
10657 htab_find_slot_with_hash everywhere.
10658 (entry_and_rtx_equal_p): Use find_slot_memmode.
10659 (autoinc_split): New fn.
10660 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10661 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10662 Deal with autoinc. Special-case recursion into MEMs.
10663 (cselib_hash_rtx): Likewise.
10664 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10665 address and MEM modes.
10666 (cselib_subst_to_values): Add memmode, pass it on.
10668 (cselib_lookup): Add memmode argument, pass it on.
10669 (cselib_lookup_from_insn): Add memmode.
10670 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10671 (struct cselib_record_autoinc_data): New.
10672 (cselib_record_autoinc_cb): New fn.
10673 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10674 mode to cselib_lookup. Reset autoinced REGs here instead of...
10675 (cselib_process_insn): ... here.
10676 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10678 (add_uses): Likewise, also to cselib_subst_to_values.
10679 (add_stores): Likewise.
10680 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10681 cselib_subst_to_values.
10682 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10683 * gcse.c (do_local_cprop): Adjusted.
10684 * postreload.c (reload_cse_simplify_set): Adjusted.
10685 (reload_cse_simplify_operands): Adjusted.
10686 * sel-sched-dump (debug_mem_addr_value): Pass mode.
10688 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10690 PR tree-optimization/45122
10691 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10692 unsafe assumptions when there's more than one loop exit.
10694 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10697 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10698 Document using vector double with the load/store builtins, and
10699 that the load/store builtins always use Altivec instructions.
10701 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10702 to use altivec memory instructions, even on VSX.
10703 (vector_altivec_store_<mode>): Ditto.
10705 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10708 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10709 V2DF, V2DI support to load/store overloaded builtins.
10711 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10712 altivec load/store builtins for V2DF/V2DI types.
10714 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10715 set avoid indexed addresses on power6 if -maltivec.
10716 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10717 vector_altivec_load/vector_altivec_store builtins.
10718 (altivec_expand_st_builtin): Ditto.
10719 (altivec_expand_builtin): Add VSX memory builtins.
10720 (rs6000_init_builtins): Add V2DI types to internal types.
10721 (altivec_init_builtins): Add support for V2DF/V2DI altivec
10722 load/store builtins.
10723 (rs6000_address_for_altivec): Insure memory address is appropriate
10726 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10727 vec_vsx_ld and vec_vsx_st.
10728 (vsx_store_<mode>): Ditto.
10730 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10731 variables to hold long long types for VSX vector memory builtins.
10732 (RS6000_BTI_unsigned_long_long): Ditto.
10733 (long_long_integer_type_internal_node): Ditti.
10734 (long_long_unsigned_type_internal_node): Ditti.
10736 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10737 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10738 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10740 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10742 (vec_vsx_st): Ditto.
10744 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10746 * config/pa/pa-hpux10.opt: New.
10747 * config/hpux11.opt (pthread): New Driver option.
10748 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10749 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10751 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10753 * config/ia64/vms.opt: New.
10754 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10756 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10759 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10760 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10761 generator functions.
10762 (vsx_floatuns<VSi><mode>2): Ditto.
10763 (vsx_fix_trunc<mode><VSi>2): Ditto.
10764 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10766 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10768 * config/i386/djgpp.opt (posix): New Driver option.
10770 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10772 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10773 Move to the unsupported targets list.
10775 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
10777 PR rtl-optimization/47525
10778 * df-scan.c: Update copyright years.
10779 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10780 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10782 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10784 * config/i386/sysv4.h (TARGET_VERSION): Remove.
10785 (SUBTARGET_RETURN_IN_MEMORY): Remove.
10786 (ASM_OUTPUT_ASCII): Remove.
10787 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10789 2011-02-02 Jeff Law <law@redhat.com>
10791 PR middle-end/47543
10792 * reload.c (find_reloads_address): Handle reg+d address where both
10793 components are invalid by reloading the entire address.
10795 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10796 Richard Guenther <rguenther@suse.de>
10798 PR tree-optimization/40979
10800 * passes.c (init_optimization_passes): After LIM call copy_prop
10801 and DCE to clean up.
10802 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10804 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10806 PR tree-optimization/47576
10807 PR tree-optimization/47555
10808 * doc/invoke.texi (scev-max-expr-complexity): Documented.
10809 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10810 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10811 * tree-scalar-evolution.c (follow_ssa_edge): Use
10812 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10814 2011-02-02 Richard Guenther <rguenther@suse.de>
10816 PR tree-optimization/47566
10817 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10819 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10823 * tree-inline.c (declare_return_variable): Remove unused caller
10828 * tree-flow-inline.h (clear_is_used, is_used_p): New.
10829 * cfgexpand.c (account_used_vars_for_block): Use them.
10830 * tree-nrv.c (tree_nrv): Likewise.
10831 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10832 (dump_scope_block): Likewise.
10833 (remove_unused_locals): Likewise.
10837 * tree-inline.c (declare_return_variable): Add result decl to
10838 local decls only once.
10839 * gimple-low.c (record_vars_into): Mark newly-created variables
10842 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10848 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10850 (no_real_insns_p, schedule_block, set_priorities): Drop special
10851 treatment of boundary debug insns.
10852 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10853 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10854 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10855 (BOUNDARY_DEBUG_INSN_P): Likewise.
10856 (SCHEDULE_DEBUG_INSN_P): Likewise.
10857 * sched-rgn.c (init_ready_list): Drop special treatment of
10858 boundary debug insns.
10859 * final.c (rest_of_clean_state): Clear notes' BB.
10861 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10863 * config/openbsd.opt (assert=): New Driver option.
10865 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10867 * config/i386/nto.opt: New.
10868 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10870 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10872 * config/i386/netware.opt: New.
10873 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10875 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10877 * config/interix.opt (posix): New Driver option.
10879 2011-02-01 DJ Delorie <dj@redhat.com>
10881 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10883 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10886 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
10888 PR tree-optimization/47561
10889 * toplev.c (process_options): Print the Graphite flags. Add
10890 flag_loop_flatten to the list of options requiring Graphite.
10892 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10894 * config/i386/cygming.opt (posix): New Driver option.
10896 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10898 * config/arm/vxworks.opt: New.
10899 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10901 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10903 * config/alpha/elf.opt: New.
10904 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10905 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10907 2011-02-01 Richard Guenther <rguenther@suse.de>
10909 PR tree-optimization/47559
10910 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10911 store-motion on references that can throw.
10913 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
10915 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10916 * tree-pass.h (TDF_CSELIB): New macro.
10917 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10918 cselib_lookup): Check for it rather than for TDF_DETAILS.
10920 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
10923 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10924 is HOST_BIT_BUCKET.
10926 * opts.c (finish_options): Don't add x_aux_base_name if it is
10929 2011-02-01 Richard Guenther <rguenther@suse.de>
10931 PR tree-optimization/47555
10933 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
10935 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10937 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
10940 * config/lm32/t-lm32: Add multilib for all CPU options.
10942 2011-02-01 Richard Guenther <rguenther@suse.de>
10944 PR tree-optimization/47541
10945 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10946 sure to have a field at offset zero.
10948 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10950 * config/arc/arc.opt (EB, EL): New Driver options.
10952 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10954 * config/alpha/osf5.opt: New.
10955 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
10957 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10959 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
10961 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
10963 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
10964 -floop-interchange.
10965 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
10966 is an alias of -floop-interchange and that it requires the
10967 Graphite infrastructure.
10968 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
10969 flag_loop_interchange based on the value of flag_tree_loop_linear.
10971 2011-01-31 Jakub Jelinek <jakub@redhat.com>
10972 Richard Guenther <rguenther@suse.de>
10974 PR tree-optimization/47538
10975 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
10976 type instead of r1type, except for comparisons. For right
10977 shifts and comparisons punt if there are mismatches in
10978 sizetype vs. non-sizetype types.
10980 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10982 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10985 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10987 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
10989 * configure: Regenerate.
10991 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10993 * configure.ac (gcc_cv_ld_static_option): Define.
10994 (gcc_cv_ld_dynamic_option): Define.
10995 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
10997 (HAVE_LD_STATIC_DYNAMIC): Update message.
10998 (LD_STATIC_OPTION): Define.
10999 (LD_DYNAMIC_OPTION): Define.
11000 * configure: Regenerate.
11001 * config.in: Regenerate.
11002 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11003 HAVE_LD_STATIC_DYNAMIC]: Use them.
11005 2011-01-31 Nick Clifton <nickc@redhat.com>
11007 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11008 registers inside interrupt handlers if the handler is not a leaf
11011 2011-01-31 Nick Clifton <nickc@redhat.com>
11013 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11014 reg_renumber returning an INVALID_REGNUM.
11016 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11019 * doc/install.texi: Document host options discarded when cross
11020 configuring target libraries.
11022 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11025 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11028 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11030 (no_real_insns_p, schedule_block, set_priorities): Drop special
11031 treatment of boundary debug insns.
11032 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11033 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11034 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11035 (BOUNDARY_DEBUG_INSN_P): Likewise.
11036 (SCHEDULE_DEBUG_INSN_P): Likewise.
11037 * sched-rgn.c (init_ready_list): Drop special treatment of
11038 boundary debug insns.
11039 * final.c (rest_of_clean-state): Clear notes' BB.
11041 2011-01-31 Alan Modra <amodra@gmail.com>
11043 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11044 toc relative expressions as we do in print_operand_address.
11046 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11048 * doc/extend.texi: Follow spelling conventions.
11049 * doc/invoke.texi: Fix a typo.
11051 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11053 * config/hpux11.opt: New.
11054 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11055 ia64*-*-hpux*): Use hpux11.opt.
11057 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11059 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11062 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11064 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11067 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11069 * doc/install.texi (Binaries): Remove outdated reference for
11070 Motorola 68HC11/68HC12 downloads.
11072 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11074 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11077 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11080 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11083 2011-01-28 Ahmad Sharif <asharif@google.com>
11085 * value-prof.c (check_counter): Corrected error message.
11087 2011-01-29 Jie Zhang <jie@codesourcery.com>
11089 * config/arm/arm.c (arm_legitimize_reload_address): New.
11090 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11091 arm_legitimize_reload_address.
11092 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11094 2011-01-28 Ian Lance Taylor <iant@google.com>
11096 * godump.c (go_define): Ignore macros whose definitions include
11097 two adjacent operands.
11099 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11102 * varasm.c (force_const_mem): Store copy of x in desc->constant
11103 instead of x itself.
11104 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11105 itself into REG_EQUAL note.
11107 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11109 * config/freebsd.opt (posix, rdynamic): New Driver options.
11111 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11113 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11114 -Bstatic/-Bdynamic.
11115 * configure: Regenerate.
11117 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11119 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11120 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11122 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11124 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11125 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11126 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11127 (s390_preferred_reload_class): Make static. Change return and
11128 'rclass' argument type to reg_class_t.
11130 2011-01-27 Jan Hubicka <jh@suse.cz>
11132 PR middle-end/46949
11133 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11134 (process_function_and_variable_attributes): Check defined weakrefs.
11136 2011-01-27 Martin Jambor <mjambor@suse.cz>
11138 PR tree-optimization/47228
11139 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11140 build_ref_for_offset.
11142 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11144 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11146 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11148 PR rtl-optimization/46856
11149 * postreload.c (reload_combine_recognize_const_pattern): Do not
11150 separate cc0 setter and user on cc0 targets.
11152 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11155 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11156 passed a VOID_TYPE expression, immediately emit an error and
11157 return error_mark_node.
11159 2011-01-26 Jeff Law <law@redhat.com>
11161 PR rtl-optimization/47464
11162 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11163 rather than may_trap_p as needed.
11165 2011-01-26 DJ Delorie <dj@redhat.com>
11167 PR rtl-optimization/46878
11168 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11169 setter/user dependency as well.
11171 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11173 PR rtl-optimization/44469
11174 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11175 after removing trivially dead basic blocks.
11177 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11179 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11180 * config/frv/frv.h (LINK_SPEC): Likewise.
11181 * config/i386/netware.h (LINK_SPEC): Likewise.
11182 * config/m68k/linux.h (ASM_SPEC): Likewise.
11183 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11184 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11185 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11186 * config/sparc/linux.h (ASM_SPEC): Likewise.
11187 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11188 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11190 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11192 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11193 * config/frv/frv.h (ASM_SPEC): Likewise.
11194 * config/m68k/linux.h (ASM_SPEC): Likewise.
11195 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11196 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11197 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11198 * config/sparc/linux.h (ASM_SPEC): Likewise.
11199 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11200 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11202 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11204 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11205 * config/frv/frv.h (LINK_SPEC): Likewise.
11206 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11208 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11210 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11211 * config/frv/frv.h (ASM_SPEC): Likewise.
11212 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11213 * config/m68k/linux.h (ASM_SPEC): Likewise.
11214 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11215 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11216 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11217 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11218 * config/sparc/linux.h (ASM_SPEC): Likewise.
11219 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11220 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11221 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11223 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11226 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11228 (vec_extract_evenodd_help): Ditto.
11229 (vec_extract_evenv4hi): Ditto.
11230 (vec_extract_oddv4hi): Ditto.
11231 (vec_interleave_lowv2si): Ditto.
11232 (vec_interleave_highv2si): Ditto.
11233 (vec_extract_evenv2si): Ditto.
11234 (vec_extract_oddv2si: Ditto.
11235 (vec_pack_trunc_v2si): Ditto.
11237 2011-01-22 Jan Hubicka <jh@suse.cz>
11240 * cgraph.h (cgraph_local_info): New field can_change_signature.
11241 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11242 signature can change.
11243 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11245 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11246 (cgraph_function_versioning): We can not change signature of functions
11247 that don't allow that.
11248 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11249 (lto_input_node): Likewise.
11250 * ipa-inline.c (compute_inline_parameters): Compute
11251 local.can_change_signature.
11252 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11253 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11254 functions that can not change signature.
11255 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11256 init_cumulative_args): Do not use local calling conventions
11257 for functions that can not change signature.
11259 2011-01-22 Jan Hubicka <jh@suse.cz>
11261 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11263 2011-01-26 Richard Guenther <rguenther@suse.de>
11265 PR tree-optimization/47190
11266 * cgraphunit.c (process_common_attributes): New function.
11267 (process_function_and_variable_attributes): Use it.
11269 2011-01-26 Richard Guenther <rguenther@suse.de>
11272 * cgraphbuild.c (record_eh_tables): Record reference to personality
11275 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11278 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11279 non-debug insns from moving up.
11281 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11284 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11285 t-dlldir{,-x} fragment for build and add it to tmake_file.
11286 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11287 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11288 * config/i386/t-dlldir: New file.
11289 (SHLIB_DLLDIR): Define.
11290 * config/i386/t-dlldir-x: New file.
11291 (SHLIB_DLLDIR): Define.
11292 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11293 (SHLIB_INSTALL): Use it.
11295 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11298 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11299 lower bound of the allowed Thumb-2 coprocessor load/store
11300 index range to -256. Add explaining comment.
11302 2011-01-25 Ian Lance Taylor <iant@google.com>
11304 * godump.c (go_define): Improve lexing of macro expansion to only
11305 accept expressions which match Go spec.
11307 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11310 * tree.c (handle_dll_attribute): Handle it.
11311 * doc/extend.texi (@item dllexport): Mention it.
11312 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11314 2011-01-25 Ian Lance Taylor <iant@google.com>
11316 PR tree-optimization/26854
11317 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11318 (decl_jump_unsafe): Move higher in file, with no other change.
11319 (bind): Set has_jump_unsafe_decl if appropriate.
11320 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11321 (check_earlier_gotos): Likewise.
11322 (c_check_switch_jump_warnings): Likewise.
11324 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11326 * doc/invoke.texi (Warning Options): Add missing hyphen.
11327 (-fprofile-dir): Minor grammatical fixes.
11328 (-fbranch-probabilities): Likewise.
11330 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11334 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11336 (no_real_insns_p, schedule_block, set_priorities): Drop special
11337 treatment of boundary debug insns.
11338 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11339 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11340 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11341 (BOUNDARY_DEBUG_INSN_P): Likewise.
11342 (SCHEDULE_DEBUG_INSN_P): Likewise.
11343 * sched-rgn.c (init_ready_list): Drop special treatment of
11344 boundary debug insns.
11345 * final.c (rest_of_clean-state): Clear notes' BB.
11347 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11349 * Makefile.in (LAMBDA_H): Removed.
11350 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11351 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11352 lambda-trans.o, and tree-loop-linear.o.
11353 (lto-symtab.o): Remove dependence on LAMBDA_H.
11354 (tree-loop-linear.o): Remove rule.
11355 (lambda-mat.o): Same.
11356 (lambda-trans.o): Same.
11357 (lambda-code.o): Same.
11358 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11359 (tree-vect-slp.o): Same.
11360 * hwint.h (gcd): Moved here.
11361 (least_common_multiple): Same.
11362 * lambda-code.c: Removed.
11363 * lambda-mat.c: Removed.
11364 * lambda-trans.c: Removed.
11365 * lambda.h: Removed.
11366 * tree-loop-linear.c: Removed.
11367 * lto-symtab.c: Do not include lambda.h.
11368 * omega.c (gcd): Removed.
11369 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11370 * tree-data-ref.c (print_lambda_vector): Moved here.
11371 (lambda_vector_copy): Same.
11372 (lambda_matrix_copy): Same.
11373 (lambda_matrix_id): Same.
11374 (lambda_vector_first_nz): Same.
11375 (lambda_matrix_row_add): Same.
11376 (lambda_matrix_row_exchange): Same.
11377 (lambda_vector_mult_const): Same.
11378 (lambda_vector_negate): Same.
11379 (lambda_matrix_row_negate): Same.
11380 (lambda_vector_equal): Same.
11381 (lambda_matrix_right_hermite): Same.
11382 * tree-data-ref.h: Do not include lambda.h.
11383 (lambda_vector): Moved here.
11384 (lambda_matrix): Same.
11385 (dependence_level): Same.
11386 (lambda_transform_legal_p): Removed declaration.
11387 (lambda_collect_parameters): Same.
11388 (lambda_compute_access_matrices): Same.
11389 (lambda_vector_gcd): Same.
11390 (lambda_vector_new): Same.
11391 (lambda_vector_clear): Same.
11392 (lambda_vector_lexico_pos): Same.
11393 (lambda_vector_zerop): Same.
11394 (lambda_matrix_new): Same.
11395 * tree-flow.h (least_common_multiple): Removed declaration.
11396 * tree-parloops.c (lambda_trans_matrix): Moved here.
11397 (LTM_MATRIX): Same.
11398 (LTM_ROWSIZE): Same.
11399 (LTM_COLSIZE): Same.
11400 (LTM_DENOMINATOR): Same.
11401 (lambda_trans_matrix_new): Same.
11402 (lambda_matrix_vector_mult): Same.
11403 (lambda_transform_legal_p): Same.
11404 * tree-pass.h (pass_linear_transform): Removed declaration.
11405 * tree-ssa-loop.c (tree_linear_transform): Removed.
11406 (gate_tree_linear_transform): Removed.
11407 (pass_linear_transform): Removed.
11408 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11409 flag_loop_interchange.
11411 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11413 PR tree-optimization/47265
11414 PR tree-optimization/47443
11415 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11416 if name still has some uses.
11418 2011-01-25 Martin Jambor <mjambor@suse.cz>
11420 PR tree-optimization/47382
11421 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11422 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11424 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11426 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11427 sjlj_except_unwind_info.
11429 2011-01-25 Richard Guenther <rguenther@suse.de>
11431 PR tree-optimization/47426
11432 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11433 visible functions results escape.
11435 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11438 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11439 (arm_get_frame_offsets): Use it.
11441 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11442 Jakub Jelinek <jakub@redhat.com>
11444 PR tree-optimization/47271
11445 * tree-if-conv.c (bb_postdominates_preds): New.
11446 (if_convertible_bb_p): Call bb_postdominates_preds.
11447 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11448 (predicate_scalar_phi): Call bb_postdominates_preds.
11450 2011-01-25 Nick Clifton <nickc@redhat.com>
11452 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11453 * config/rx/rx.c (rx_function_value): Likewise.
11454 (rx_promote_function_mode): Likewise.
11455 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11456 in order to make it legitimate.
11457 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11458 make sure that the first operand is the same as the result register.
11459 (addsi3_unspec): Delete.
11460 (subdi3): Do not accept immediate operands.
11461 (subdi3_internal): Likewise.
11463 2011-01-25 Jeff Law <law@redhat.com>
11465 PR rtl-optimization/37273
11466 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11467 handle them like argument loads from stack slots. Do not double
11468 count memory for memory constants and argument loads from stack slots.
11470 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11472 PR tree-optimization/47427
11473 PR tree-optimization/47428
11474 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11475 coalesce if the new root var would be TREE_READONLY.
11477 2011-01-25 Richard Guenther <rguenther@suse.de>
11479 PR middle-end/47414
11480 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11481 correct type for TBAA.
11483 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11485 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11486 (close_phi_written_to_memory): Call for_each_index with
11487 dr_indices_valid_in_loop.
11489 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11491 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11492 when it is initialized.
11494 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11496 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11497 call to graphite_find_data_references_in_stmt.
11498 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11499 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11500 call to graphite_find_data_references_in_stmt.
11501 (analyze_drs_in_stmts): Same.
11502 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11503 in which the scalar analysis of indices is performed.
11504 (create_data_ref): Same. Update call to dr_analyze_indices.
11505 (find_data_references_in_stmt): Update call to create_data_ref.
11506 (graphite_find_data_references_in_stmt): Same.
11507 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11509 (create_data_ref): Same.
11510 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11511 call to create_data_ref.
11513 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11515 * graphite-sese-to-poly.c (build_poly_scop): Move
11516 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11518 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11520 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11521 VAR_DECL, PARM_DECL, and RESULT_DECL.
11523 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11525 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11526 in a reduction PBB.
11527 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11528 that have already been marked as PBB_IS_REDUCTION.
11530 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11532 * graphite-scop-detection.c (same_close_phi_node): New.
11533 (remove_duplicate_close_phi): New.
11534 (make_close_phi_nodes_unique): New.
11535 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11537 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11539 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11540 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11541 of both data references to be the same.
11543 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11545 * graphite-dependences.c (build_lexicographical_constraint): Remove
11546 the gdim parameter.
11547 (build_lexicographical_constraint): Adjust call to
11548 ppl_powerset_is_empty.
11549 (dependence_polyhedron): Same.
11550 (graphite_legal_transform_dr): Same.
11551 (graphite_carried_dependence_level_k): Same.
11552 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11554 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11556 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11558 * graphite-sese-to-poly.c
11559 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11560 (close_phi_written_to_memory): New.
11561 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11564 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11566 * doc/install.texi: Update the expected version number of PPL to 0.11.
11567 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11568 #if PPL_VERSION_MINOR < 11.
11570 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11572 * graphite-dependences.c: Include graphite-cloog-util.h.
11573 (new_poly_ddr): Inlined into dependence_polyhedron.
11574 (free_poly_ddr): Moved close by new_poly_ddr.
11575 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11576 Early return NULL when ppl_powerset_is_empty returns true.
11577 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11578 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11579 (graphite_legal_transform_dr): Call new_poly_ddr.
11580 (graphite_carried_dependence_level_k): Same.
11581 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11582 (dot_transformed_deps_stmt_1): Removed.
11583 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11584 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11585 (dot_deps_1): Call dot_deps_2.
11586 * Makefile.in (graphite-dependences.o): Add missing dependence on
11587 graphite-cloog-util.h.
11589 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11591 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11592 (build_lexicographical_constraint): Same.
11593 (dependence_polyhedron_1): Same.
11594 (graphite_legal_transform_dr): Same.
11595 (graphite_carried_dependence_level_k): Same.
11596 * graphite-ppl.c (ppl_powerset_is_empty): New.
11597 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11598 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11600 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11602 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11603 the "a followed by b" relation and document it.
11605 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11607 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11608 iteration when the bag of constraints is empty.
11610 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11612 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11614 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11616 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11617 nest and two loop depths as parameters.
11618 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11619 lst_perfect_nestify.
11621 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11623 * graphite-dependences.c (print_pddr): Call
11624 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11626 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11628 * graphite-ppl.c (debug_gmp_value): New.
11629 * graphite-ppl.h (debug_gmp_value): Declared.
11631 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11633 * doc/install.texi: Document availability of cloog-0.16.
11635 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11637 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11638 invalid postdominance info.
11640 2011-01-24 Jan Hubicka <jh@suse.cz>
11643 * doc/extend.texi (weak pragma): Drop claim that it must
11644 appear before definition.
11645 * varasm.c (merge_weak, declare_weak): Only sanity check
11646 that DECL is not output at a time it is declared weak.
11648 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11650 * machmode.def: Fixed comments.
11652 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11654 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11656 2011-01-24 Paul Koning <ni1d@arrl.net>
11658 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11661 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11664 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11665 (block_info): Add scanned and prev.
11666 (move_or_delete_vzeroupper_2): Return if the basic block
11667 has been scanned and the upper 128bit state is unchanged
11668 from the last scan.
11669 (move_or_delete_vzeroupper_1): Return true if the exit
11671 (move_or_delete_vzeroupper): Visit basic blocks using the
11672 work-list based algorithm based on vt_find_locations in
11675 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11677 2011-01-24 Nick Clifton <nickc@redhat.com>
11679 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11680 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11681 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11682 then define __v850e1__.
11683 * doc/invoke.texi: Document -mv850es.
11685 2011-01-24 Richard Henderson <rth@redhat.com>
11687 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11688 compound unordered comparisons.
11689 * config/rx/rx.c (rx_split_fp_compare): Remove.
11690 * config/rx/rx-protos.h: Update.
11691 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11692 (cbranchsf4): Don't call rx_split_fp_compare.
11693 (*cbranchsf4): Use rx_split_cbranch.
11694 (*cmpsf): Don't accept "i" constraint.
11695 (*conditional_branch): Only valid after reload.
11696 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
11698 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11701 * config/rs6000/altivec.md (vector constant splitters): Add
11702 support for creating vector single precision constants if -mvsx is
11703 used and we would create the constant using Altivec primitives.
11705 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
11706 Richard Sandiford <rdsandiford@googlemail.com>
11708 PR rtl-optimization/47166
11709 * reload1.c (emit_reload_insns): Disable the spill_reg_store
11710 mechanism for PRE_MODIFY and POST_MODIFY.
11711 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11714 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
11716 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11718 2011-01-22 Jan Hubicka <jh@suse.cz>
11721 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11723 2011-01-22 Jan Hubicka <jh@suse.cz>
11725 PR tree-optimization/43884
11727 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11728 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11730 2011-01-22 Anatoly Sokolov <aesok@post.ru>
11732 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11733 * config/s390/s390.c (s390_register_move_cost,
11734 s390_memory_move_cost): New.
11735 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11737 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11739 PR middle-end/47401
11740 * except.c (sjlj_assign_call_site_values): Move setting the
11741 crtl->uses_eh_lsda flag to ...
11742 (sjlj_mark_call_sites): ... here.
11743 (sjlj_emit_function_enter): Support NULL dispatch label.
11744 (sjlj_build_landing_pads): In a function with no landing pads
11745 that still has must-not-throw regions, generate code to register
11746 a personality function with empty LSDA.
11748 2011-01-21 Richard Henderson <rth@redhat.com>
11750 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11752 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11754 * compare-elim.c: New file.
11755 * Makefile.in (OBJS-common): Add it.
11756 (compare-elim.o): New.
11757 * common.opt (fcompare-elim): New.
11758 * opts.c (default_options_table): Add OPT_fcompare_elim.
11759 * tree-pass.h (pass_compare_elim_after_reload): New.
11760 * passes.c (init_optimization_passes): Add it.
11761 * recog.h: Protect against re-inclusion.
11762 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11763 * doc/invoke.texi (-fcompare-elim): Document it.
11764 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11765 * doc/tm.texi: Rebuild.
11767 2011-01-22 Nick Clifton <nickc@redhat.com>
11769 * config/rx/rx.md (cstoresf4): Pass comparison operator to
11770 rx_split_fp_compare.
11772 2011-01-22 Nick Clifton <nickc@redhat.com>
11774 * config/rx/rx.md (UNSPEC_CONST): New.
11775 (deallocate_and_return): Wrap the amount popped off the stack in
11776 an UNSPEC_CONST in order to stop it being rejected by
11777 -mmax-constant-size.
11778 (pop_and_return): Add a "(return)" rtx.
11779 (call): Drop the immediate operand.
11780 (call_internal): Likewise.
11781 (call_value): Likewise.
11782 (call_value_internal): Likewise.
11783 (sibcall_internal): Likewise.
11784 (sibcall_value_internal): Likewise.
11785 (sibcall): Likewise. Generate an explicit call using
11787 (sibcall_value): Likewise.
11788 (mov<>): FAIL if a constant operand is not legitimate.
11789 (addsi3_unpsec): New pattern.
11791 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11792 (ok_for_max_constant): New function.
11793 (gen_safe_add): New function.
11794 (rx_expand_prologue): Use gen_safe_add.
11795 (rx_expand_epilogue): Likewise.
11796 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
11799 2011-01-21 Jeff Law <law@redhat.com>
11801 PR tree-optimization/47053
11802 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11803 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11804 statements are deleted.
11805 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
11806 is nonempty, then purge dead edges and cleanup the CFG.
11808 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11811 Temporarily revert:
11812 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11814 * tree-dfa.c (create_var_ann): Mark variable as used.
11816 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11818 PR middle-end/45566
11819 * except.c (convert_to_eh_region_ranges): Emit queued no-region
11820 notes from other section in hot/cold partitioning even if
11821 last_action is -3. Increment call_site_base.
11823 PR rtl-optimization/47366
11824 * fwprop.c (forward_propagate_into): Return bool. If
11825 any changes are made, -fnon-call-exceptions is used and
11826 REG_EH_REGION note is present, call purge_dead_edges
11827 and return true if it purged anything.
11828 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11829 any EH edges were purged.
11831 2011-01-21 Jeff Law <law@redhat.com>
11833 PR rtl-optimization/41619
11834 * caller-save.c (setup_save_areas): Break out code to determine
11835 which hard regs are live across calls by examining the reload chains
11836 so that it is always used.
11837 Eliminate code which checked REG_N_CALLS_CROSSED.
11839 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11841 PR tree-optimization/47355
11842 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11843 NOP has non-debug uses beyond PHIs in new_bb.
11845 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11848 * cfgexpand.c (account_used_vars_for_block): Only account vars
11849 that are annotated as used.
11850 (estimated_stack_frame_size): Don't set TREE_USED.
11851 * tree-dfa.c (create_var_ann): Mark variable as used.
11853 2011-01-21 Richard Guenther <rguenther@suse.de>
11855 PR middle-end/47395
11856 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11858 2011-01-21 Richard Guenther <rguenther@suse.de>
11860 PR tree-optimization/47365
11861 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11862 (vn_reference_lookup_pieces): Adjust.
11863 (vn_reference_lookup): Likewise.
11864 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11865 (vn_reference_lookup_3): Only look through kills if in
11866 VN_WALKREWRITE mode.
11867 (vn_reference_lookup_pieces): Adjust.
11868 (vn_reference_lookup): Likewise.
11869 (visit_reference_op_load): Likewise.
11870 (visit_reference_op_store): Likewise.
11871 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11872 (compute_avail): Likewise.
11873 (eliminate): Likewise.
11875 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11877 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11878 DECL_IGNORED_P non-reg vars if they are used.
11880 PR tree-optimization/47391
11881 * varpool.c (const_value_known_p): Return false if
11884 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
11887 * config/i386/i386.c (ix86_local_alignment): Handle
11888 case for va_list_type_node is nil.
11889 (ix86_canonical_va_list_type): Likewise.
11891 2011-01-21 Alan Modra <amodra@gmail.com>
11893 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11894 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11896 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11898 * config/arm/arm.md (define_attr type): Rename f_load
11899 and f_store to f_fpa_load and f_fpa_store. Update.
11900 (write_conflict): Deal with rename fallout.
11901 (*push_fp_multi): Likewise.
11902 * config/arm/fpa.md (f_load): Use f_fpa_load.
11903 (f_store): Use f_fpa_store.
11904 (*movsf_fpa): Likewise.
11905 (*movdf_fpa): Likewise.
11906 (*movxf_fpa): Likewise.
11907 (*thumb2_movsf_fpa): Likewise.
11908 (*thumb2_movdf_fpa): Likewise.
11909 (*thumb2_movxf_fpa): Likewise.
11910 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11911 f_loadd and f_stored.
11912 (*thumb2_movdi_vfp): Likewise.
11913 (*thumb2_movsf_vfp): Fix attribute to f_loads.
11914 (*thumb2_movsi_vfp): Likewise.
11915 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11916 Use f_loads instead of f_load.
11917 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11919 2011-01-20 Anatoly Sokolov <aesok@post.ru>
11921 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11922 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11923 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11924 (xtensa_mode_dependent_address_p): New function.
11925 (constantpool_address_p): Make static. Change return type to bool.
11926 Change argument type to const_rtx. Use CONST_INT_P predicate.
11928 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
11931 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
11933 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11936 * cfgexpand.c (expand_debug_expr): Instead of generating
11937 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
11940 2011-01-20 Richard Guenther <rguenther@suse.de>
11942 PR middle-end/47370
11943 * tree-inline.c (remap_gimple_op_r): Recurse manually for
11944 the pointer operand of MEM_REFs.
11946 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11948 PR tree-optimization/46130
11949 * ipa-split.c (consider_split): If return_bb contains non-virtual
11950 PHIs other than for retval or if split_function would not adjust it,
11953 2011-01-20 Richard Guenther <rguenther@suse.de>
11955 PR tree-optimization/47167
11956 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11957 Revert previous change, only avoid enumeral type changes.
11959 2011-01-19 Mike Stump <mikestump@comcast.net>
11961 * doc/tm.texi.in (BRANCH_COST): Englishify.
11962 * doc/tm.texi (BRANCH_COST): Likewise.
11964 2011-01-19 Dodji Seketeli <dodji@redhat.com>
11967 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
11968 (gen_scheduled_generic_parms_dies): New functions.
11969 (gen_struct_or_union_type_die): Schedule template parameters DIEs
11970 generation for the end of CU compilation.
11971 (dwarf2out_finish): Generate template parameters DIEs here.
11973 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11976 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
11977 debug bind stmt on merge edges.
11979 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11983 * function.c (instantiate_expr): Instantiate incoming rtl of
11984 implicit arguments, and recurse on VALUE_EXPRs.
11985 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
11986 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
11988 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11990 * c-parser.c (c_parser_for_statement): Initialize
11991 collection_expression.
11993 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11995 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
11997 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11999 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12000 (LINK_SHLIB_SPEC): Don't use %(link_path).
12001 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12003 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12005 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12006 (NO_SHARED_LIB_SUPPORT): Remove.
12007 (LINK_SHLIB_SPEC): Remove one conditional definition.
12009 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12011 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12013 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12014 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12015 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12016 %{call_shared} and conditionals on these options not being passed.
12017 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12020 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12022 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12025 * ipa-split.c: Spelling fixes.
12027 2011-01-19 Richard Henderson <rth@redhat.com>
12029 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12030 (*mulsi3): Likewise.
12032 * longlong.h [__mn10300__] (count_leading_zeros): New.
12033 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12034 [__mn10300__] (add_ssaaaa, subddmmss): New.
12035 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12036 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12038 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12040 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12042 2011-01-19 Richard Henderson <rth@redhat.com>
12044 * config/mn10300/mn10300.md (addsi3_flags): New.
12045 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12046 (subsi3_flags, subc_internal, subdi3): New.
12047 (subdi3_internal, *subdi3_degenerate): New.
12048 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12050 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12051 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12052 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12053 * config/mn10300/mn10300-protos.h: Update.
12054 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12055 (return_ret): Likewise. Rename from return_internal_regs.
12056 (return_internal): Remove.
12058 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12059 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12060 (mn10300_legitimate_constant_p): Likewise.
12061 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12062 (mn10300_frame_size): New.
12063 (mn10300_expand_prologue): Use it.
12064 (mn10300_expand_epilogue): Likewise.
12065 (mn10300_initial_offset): Likewise.
12066 * config/mn10300/mn10300-protos.h: Update.
12067 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12068 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12069 (prologue, epilogue, return_internal): Tidy output code.
12070 (mn10300_store_multiple_operation, return): Likewise.
12071 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12072 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12073 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12074 (load_pic, am33_load_pic): New.
12075 (mn10300_load_pic0, mn10300_load_pic1): New.
12077 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12078 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12079 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12080 (cc_flags_for_mode, cc_flags_for_code): New.
12081 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12082 overflow flag is not valid. Validate that the flags we need
12083 for the comparison are valid.
12084 (mn10300_output_cmp): Remove.
12085 (mn10300_output_add): New.
12086 (mn10300_select_cc_mode): Use cc_flags_for_code.
12087 (mn10300_split_cbranch): New.
12088 (mn10300_match_ccmode): New.
12089 (mn10300_split_and_operand_count): New.
12090 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12092 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12093 (addsi3): ... here. Use mn10300_output_add.
12094 (*addsi3_flags): New.
12095 (*am33_subsi3, *mn10300_subsi3): Merge...
12096 (subsi3): ... here. Use attribute isa.
12097 (*subsi3_flags): New.
12098 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12100 (*am33_andsi3, *mn10300_andsi3): Merge...
12101 (andsi3): ... here.
12102 (*andsi3_flags): New.
12103 (andsi3 splitters): New.
12104 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12105 (iorsi3): ... here.
12106 (*iorsi3_flags): New.
12107 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12108 (xorsi3): ... here.
12109 (*xorsi3_flags): New.
12110 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12111 (one_cmplsi2): ... here.
12112 (*one_cmplsi2_flags): New.
12113 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12114 instead of "dax" in constraints. Use mn10300_split_cbranch.
12115 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12116 use matching constraints to eliminate a self-comparison.
12117 (*integer_conditional_branch): Rename from integer_conditional_branch.
12118 Use int_mode_flags to match CC_REG.
12119 (*cbranchsi4_btst, *btstsi): New.
12120 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12121 mn10300_split_cbranch.
12122 (*am33_cmpsf): Rename from am33_cmpsf.
12123 (*float_conditional_branch): Rename from float_conditional_branch.
12124 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12125 (zero_extendqisi2): ... here.
12126 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12127 (zero_extendhisi2): ... here.
12128 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12129 (extendqisi2): ... here.
12130 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12131 (extendhisi2): ... here.
12132 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12133 (ashlsi3): ... here.
12134 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12135 (lshrsi3): ... here.
12136 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12137 (ashrsi3): ... here.
12138 (consecutive add peephole): Remove.
12139 * config/mn10300/predicates.md (label_ref_operand): New.
12140 (int_mode_flags): New.
12141 (CCZN_comparison_operator): New.
12143 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12144 (throughput_42_latency_43): New reservation.
12145 (mulsidi3, umulsidi3): New expanders.
12146 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12147 the MDR register to allocation; separately allocate the low and
12148 high parts of the DImode result.
12149 (umulsidi3_internal): Similarly.
12150 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12151 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12152 (udivsi3, umodsi3): Remove.
12153 (udivmodsi4, divmodsi4): New expanders.
12154 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12155 (*divmodsi4): Simiarly.
12156 (ext_internal): New.
12158 * config/mn10300/constraints.md ("z"): New constraint.
12159 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12160 (FIXED_REGISTERS): Don't fix MDR.
12161 (CALL_USED_REGSITERS): Reformat nicely.
12162 (REG_ALLOC_ORDER): Add MDR.
12163 (enum regclass): Add MDR_REGS.
12164 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12165 (IRA_COVER_CLASSES): Add MDR_REGS.
12166 (REGNO_REG_CLASS): Handle MDR_REG.
12167 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12168 (mn10300_register_move_cost): Likewise.
12169 * config/mn10300/mn10300.md (MDR_REG): New.
12170 (*movsi_internal): Handle moves to/from MDR_REGS.
12172 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12174 (mn10300_secondary_reload): Tidy combination reload classes.
12175 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12176 addresses for AM33. Allow symbolic offsets for reg+imm.
12177 (mn10300_regno_in_class_p): New.
12178 (mn10300_legitimize_reload_address): New.
12179 * config/mn10300/mn10300.h (enum reg_class): Remove
12180 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12181 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12182 SP_OR_GENERAL_REGS.
12183 (REG_CLASS_NAMES): Update to match.
12184 (REG_CLASS_CONTENTS): Likewise.
12185 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12186 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12187 (REGNO_IN_RANGE_P): Remove.
12188 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12189 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12190 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12191 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12192 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12193 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12194 (REGNO_GENERAL_P): New.
12195 (HAVE_POST_MODIFY_DISP): New.
12196 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12197 (LEGITIMIZE_RELOAD_ADDRESS): New.
12198 * config/mn10300/mn10300-protos.h: Update.
12200 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12201 DATA_REGS for AM33 stack-pointer destination.
12202 (mn10300_preferred_output_reload_class): Likewise.
12203 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12204 into a form appropriate for ...
12205 (TARGET_SECONDARY_RELOAD): New.
12206 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12207 * config/mn10300/mn10300-protos.h: Update.
12208 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12209 reload_insi; use the "A" constraint for the scratch; handle AM33
12210 moves of sp to non-address registers.
12212 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12213 (*movqi_internal): ... here.
12214 (*am33_movhi, *mn10300_movhi): Merge into...
12215 (*movhi_internal): ... here.
12216 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12217 as the source/destination of moves from/to SP.
12218 (movsf): Only allow for AM33-2.
12219 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12220 any integer constant constraint. Only allow for AM33-2. Tidy
12221 all of the alternative outputs.
12222 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12223 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12225 (udivsi3, umodsi3): New patterns for MN103 only.
12227 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12229 * doc/tm.texi.in: Spell out that a lack of register class unions
12231 * doc/tm.texi: Regenerate.
12233 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12235 PR rtl-optimization/47337
12236 * dce.c (check_argument_store): New function.
12237 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12239 PR tree-optimization/47290
12240 * tree-eh.c (infinite_empty_loop_p): New function.
12241 (cleanup_empty_eh): Use it.
12243 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12246 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12247 (a64_expand_widen_sum): Ditto.
12248 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12249 (vec_extract_evenodd_help): Ditto.
12250 (vec_extract_evenv4hi): Ditto.
12251 (vec_extract_oddv4hi): Ditto.
12252 (vec_extract_evenv2si): Ditto.
12253 (vec_extract_oddv2si): Ditto.
12254 (vec_extract_evenv2sf): Ditto.
12255 (vec_extract_oddv2sf): Ditto.
12256 (vec_pack_trunc_v4hi: Ditto.
12257 (vec_pack_trunc_v2si): Ditto.
12258 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12259 (vec_interleave_highv8qi): Ditto.
12261 (vec_extract_oddv8qi): Ditto.
12262 (vec_interleave_lowv4hi): Ditto.
12263 (vec_interleave_highv4hi): Ditto.
12264 (vec_interleave_lowv2si): Ditto.
12265 (vec_interleave_highv2si): Ditto.
12267 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12269 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12270 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12271 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12272 (pa_c_mode_for_suffix): New.
12273 (TARGET_EXPAND_BUILTIN): Define.
12274 (TARGET_C_MODE_FOR_SUFFIX): Define.
12275 (pa_builtins): Define.
12276 (pa_init_builtins): Register __float128 type and init new support
12278 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12279 * config/pa/quadlib.c (_U_Qfcopysign): New.
12281 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12283 PR middle-end/46894
12284 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12285 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12288 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12290 PR tree-optimization/47179
12291 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12292 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12294 2011-01-18 Richard Guenther <rguenther@suse.de>
12296 PR rtl-optimization/47216
12297 * emit-rtl.c: Include tree-flow.h.
12298 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12299 of replicating it with different semantics.
12300 * Makefile.in (emit-rtl.o): Adjust.
12302 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12304 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12305 (cortex_a9_dp): Handle neon types correctly.
12307 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12309 PR rtl-optimization/47299
12310 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12311 subtarget. Use normal multiplication if both operands are constants.
12312 * expmed.c (expand_widening_mult): Don't try to optimize constant
12313 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12316 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12318 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12319 spacing after 'e.g.', typos, comma, hyphenation.
12321 2011-01-17 Richard Henderson <rth@redhat.com>
12323 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12324 (rx_restricted_mem_operand): New.
12325 (rx_shift_operand): Use register_operand.
12326 (rx_source_operand, rx_compare_operand): Likewise.
12327 * config/rx/rx.md (addsi3_flags): New expander.
12328 (adddi3): Rewrite as expander.
12329 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12330 (subsi3_flags): New expander.
12331 (subdi3): Rewrite as expander.
12332 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12334 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12335 (rx_init_builtins): Remove sat builtin.
12336 (rx_expand_builtin): Likewise.
12337 * config/rx/rx.md (ssaddsi3): New.
12338 (*sat): Rename from sat. Represent the CC_REG input.
12340 * config/rx/predicates.md (rshift_operator): New.
12341 * config/rx/rx.c (rx_expand_insv): Remove.
12342 * config/rx/rx-protos.h: Update.
12343 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12344 operand to the canonical position.
12345 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12346 (*bitclr, *bitclr_in_memory): Similarly.
12347 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12348 (insv): Retain the zero_extract in the expansion.
12350 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12351 (bswaphi2, bitinvert, revw): Likewise.
12353 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12354 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12355 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12356 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12357 (bitset, bitset_in_memory): Likewise.
12358 (bitinvert, bitinvert_in_memory): Likewise.
12359 (bitclr, bitclr_in_memory): Likewise.
12360 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12361 (rx_strend, rx_cmpstrn): Likewise.
12362 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12363 (bitop peep2 patterns): Remove.
12365 * config/rx/rx.c (rx_match_ccmode): New.
12366 * config/rx/rx-protos.h: Update.
12367 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12368 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12369 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12370 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12371 (fix_truncsfsi2, floatsisf2): Likewise.
12372 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12373 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12374 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12375 (*subsi3_flags, *xorsi3_flags): New.
12377 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12379 * config/rx/rx.c (rx_print_operand): Remove workaround for
12380 unsplit comparison operations.
12382 * config/rx/rx.md (movsicc): Split after reload.
12383 (*movsicc): Merge *movsieq and *movsine via match_operator.
12384 (*stcc): New pattern.
12386 * config/rx/rx.c (rx_float_compare_mode): Remove.
12387 * config/rx/rx.h (rx_float_compare_mode): Remove.
12388 * config/rx/rx.md (cstoresi4): Split after reload.
12389 (*sccc): New pattern.
12391 * config/rx/predicates.md (label_ref_operand): New.
12392 (rx_z_comparison_operator): New.
12393 (rx_zs_comparison_operator): New.
12394 (rx_fp_comparison_operator): New.
12395 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12396 Validate that the flags are set properly for the comparison.
12397 (rx_gen_cond_branch_template): Remove.
12398 (rx_cc_modes_compatible): Remove.
12399 (mode_from_flags): New.
12400 (flags_from_code): Rename from flags_needed_for_conditional.
12401 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12402 (rx_select_cc_mode): Likewise.
12403 (rx_split_fp_compare): New.
12404 (rx_split_cbranch): New.
12405 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12406 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12407 (*cbranchsf4): Similarly.
12408 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12409 match_operator and rx_split_cbranch.
12410 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12411 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12412 (*cmpsi): Rename from cmpsi.
12413 (*tstsi): Rename from tstsi.
12414 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12415 (*conditional_branch): Rename from conditional_branch.
12416 (*reveresed_conditional_branch): Remove.
12417 (b<code>): Remove expander.
12418 * config/rx/rx-protos.h: Update.
12420 * config/rx/rx.c (rx_compare_redundant): Remove.
12421 * config/rx/rx.md (cmpsi): Don't use it.
12422 * config/rx/rx-protos.h: Update.
12424 * config/rx/rx-modes.def (CC_F): New mode.
12425 * config/rx/rx.c (rx_select_cc_mode): New.
12426 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12427 * config/rx/rx-protos.h: Update.
12429 2011-01-17 Richard Henderson <rth@redhat.com>
12431 * except.c (dump_eh_tree): Fix stray ; after for statement.
12433 2011-01-17 Richard Guenther <rguenther@suse.de>
12435 PR tree-optimization/47313
12436 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12437 handling before copying the body. Properly deal with
12438 by-reference result in SSA form.
12440 2011-01-17 Ian Lance Taylor <iant@google.com>
12443 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12444 (struct_value_alias_set): Don't define.
12445 (sparc_option_override): Don't set sparc_sr_alias_set and
12446 struct_value_alias_set.
12447 (save_or_restore_regs): Use gen_frame_mem rather than calling
12449 (sparc_struct_value_rtx): Likewise.
12451 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12454 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12455 (_mm_maskstore_pd): Likewise.
12456 (_mm_maskload_ps): Likewise.
12457 (_mm_maskstore_ps): Likewise.
12458 (_mm256_maskload_pd): Change mask to __m256i.
12459 (_mm256_maskstore_pd): Likewise.
12460 (_mm256_maskload_ps): Likewise.
12461 (_mm256_maskstore_ps): Likewise.
12463 * config/i386/i386-builtin-types.def: Updated.
12464 (ix86_expand_special_args_builtin): Likewise.
12466 * config/i386/i386.c (bdesc_special_args): Update
12467 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12468 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12469 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12470 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12472 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12473 Use <avxpermvecmode> on mask register.
12474 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12476 2011-01-17 Olivier Hainque <hainque@adacore.com>
12477 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12478 Eric Botcazou <ebotcazou@adacore.com>
12481 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12482 if <= USHRT_MAX in 32-bit mode.
12484 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12486 * doc/install.texi (Configuration, Specific): Wrap long
12487 lines in examples. Allow line wrapping in long options
12488 and URLs where beneficial for PDF output.
12490 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12492 * config/mips/mips.c (mips_classify_symbol): Don't return
12493 SYMBOL_PC_RELATIVE for nonlocal labels.
12495 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12497 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12499 2011-01-15 Jan Hubicka <jh@suse.cz>
12501 PR tree-optimization/47276
12502 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12503 declarations as needed.
12505 2011-01-15 Martin Jambor <mjambor@suse.cz>
12507 * common.opt (fdevirtualize): New flag.
12508 * doc/invoke.texi (Option Summary): Document it.
12509 * opts.c (default_options_table): Add devirtualize flag.
12510 * ipa-prop.c (detect_type_change): Return immediately if
12511 devirtualize flag is not set.
12512 (detect_type_change_ssa): Likewise.
12513 (compute_known_type_jump_func): Likewise.
12514 (ipa_analyze_virtual_call_uses): Likewise.
12516 2011-01-14 Martin Jambor <mjambor@suse.cz>
12518 PR tree-optimization/45934
12519 PR tree-optimization/46302
12520 * ipa-prop.c (type_change_info): New type.
12521 (stmt_may_be_vtbl_ptr_store): New function.
12522 (check_stmt_for_type_change): Likewise.
12523 (detect_type_change): Likewise.
12524 (detect_type_change_ssa): Likewise.
12525 (compute_complex_assign_jump_func): Check for dynamic type change.
12526 (compute_complex_ancestor_jump_func): Likewise.
12527 (compute_known_type_jump_func): Likewise.
12528 (compute_scalar_jump_functions): Likewise.
12529 (ipa_analyze_virtual_call_uses): Likewise.
12530 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12532 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12534 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12535 * config/i386/i386.opt (msse5): New Alias.
12537 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12539 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12540 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12541 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12542 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12544 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12546 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12548 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12549 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12550 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12551 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12553 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12555 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12557 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12559 2011-01-14 Mike Stump <mikestump@comcast.net>
12561 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12562 * config/fr30/fr30.md: Likweise
12563 (movsi_push): Likewise.
12564 (movsi_pop): Likewise.
12565 (enter_func): Likewise.
12566 * config/moxie/moxie.md (movsi_push): Likewise.
12567 (movsi_pop): Likewise.
12569 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12571 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12572 %{no_archive} %{exact_version}.
12573 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12574 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12575 %{no_archive} %{exact_version}.
12576 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12577 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12578 * config/mips/vxworks.h: Likewise.
12580 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12582 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12584 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12586 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12587 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12589 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12591 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12594 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12596 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12598 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12599 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12601 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12602 Don't handle -shlib.
12604 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12606 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12607 (CC1_SPEC): Don't handle -profile.
12609 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12611 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12612 * config/mips/mips.h (CC1_SPEC): Likewise.
12614 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12616 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12617 * config/mips/mips.h (CC1_SPEC): Likewise.
12619 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12621 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12622 * config/m32r/linux.h (LINK_SPEC): Likewise.
12623 * config/mips/linux.h (LINK_SPEC): Likewise.
12624 * config/mips/linux64.h (LINK_SPEC): Likewise.
12625 * config/sparc/linux.h (LINK_SPEC): Likewise.
12626 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12627 LINK_SPEC): Likewise.
12628 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12630 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12632 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12634 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12636 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12638 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12639 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12641 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12643 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12645 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12647 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12648 supports -Bstatic/-Bdynamic.
12649 * configure: Regenerate.
12651 2011-01-14 Jan Hubicka <jh@suse.cz>
12652 Jack Howarth <howarth@bromo.med.uc.edu>
12655 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12656 when checking debug_info_level. Test write_symbols instead of
12657 debug_hooks->var_location when setting flag_var_tracking_uninit.
12659 2011-01-14 Richard Guenther <rguenther@suse.de>
12661 PR tree-optimization/47179
12662 * target.def (ref_may_alias_errno): New target hook.
12663 * targhooks.h (default_ref_may_alias_errno): Declare.
12664 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12665 (default_ref_may_alias_errno): New function.
12666 * target.h (struct ao_ref_s): Declare.
12667 * tree-ssa-alias.c: Include target.h.
12668 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12669 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12670 (targhooks.o): Likewise.
12671 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12672 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12674 2011-01-14 Richard Guenther <rguenther@suse.de>
12676 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12678 2011-01-14 Richard Guenther <rguenther@suse.de>
12680 PR tree-optimization/47280
12681 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12682 return CFG changes.
12683 (tree_ssa_forward_propagate_single_use_vars): Deal with
12684 CFG changes from associate_plusminus.
12686 2011-01-14 Richard Guenther <rguenther@suse.de>
12688 PR middle-end/47281
12690 2011-01-11 Richard Guenther <rguenther@suse.de>
12692 PR tree-optimization/46076
12693 * tree-ssa.c (useless_type_conversion_p): Conversions from
12694 unprototyped to empty argument list function types are useless.
12696 2011-01-14 Richard Guenther <rguenther@suse.de>
12698 PR tree-optimization/47286
12699 * tree-ssa-structalias.c (new_var_info): Register variables are global.
12701 2011-01-14 Martin Jambor <mjambor@suse.cz>
12703 PR middle-end/46823
12704 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12706 2011-01-13 Anatoly Sokolov <aesok@post.ru>
12708 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12709 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12710 * config/xtensa/xtensa.c (xtensa_libcall_value,
12711 xtensa_function_value_regno_p): New functions.
12712 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12714 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
12717 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12719 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12720 New function prototype.
12721 * config/i386/winnt.c (i386_pe_assemble_visibility):
12722 Warn only if attribute was specified by user.
12724 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12727 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12729 (floatunsdidf2_fcfidu): Ditto.
12731 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12733 * config/s390/s390.c (print_operand_address): Replace 'error' with
12734 'output_operand_lossage'.
12735 (print_operand): Likewise.
12737 2011-01-13 Jeff Law <law@redhat.com>
12739 PR rtl-optimization/39077
12740 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12741 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12742 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12743 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12744 * gcse.c (prune_insertions_deletions): New function.
12745 (compute_pre_data): Use it.
12747 2011-01-13 Dodji Seketeli <dodji@redhat.com>
12750 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12752 (prune_unused_types_mark): Use it.
12754 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
12756 PR rtl-optimization/45352
12757 * sel-sched.c: Update copyright years.
12758 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12759 in the advancing loop when we have issued issue_rate insns.
12761 2011-01-12 Richard Henderson <rth@redhat.com>
12763 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12764 (TARGET_MD_ASM_CLOBBERS): New.
12766 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12767 (TARGET_DELEGITIMIZE_ADDRESS): New.
12769 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12770 (clzsi2, *bsch): New patterns.
12772 * config/mn10300/mn10300.md (INT): New mode iterator.
12773 (*mov<INT>_clr): New pattern, and peep2 to generate it.
12775 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12776 flag_split_wide_types.
12778 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12779 (mn10300_trampoline_init): Rewrite without a template, an immediate
12780 load and a direct branch.
12781 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12783 2011-01-12 Anatoly Sokolov <aesok@post.ru>
12785 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12786 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12787 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12788 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12790 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
12793 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12796 2011-01-12 Jan Hubicka <jh@suse.cz>
12799 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12800 (PLUGIN_COND_CLOSE): New macro.
12801 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12803 2011-01-12 Richard Guenther <rguenther@suse.de>
12806 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12807 register variables in a MEM_REF.
12809 2011-01-12 Joseph Myers <joseph@codesourcery.com>
12811 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12812 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12813 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12814 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12815 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12816 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12817 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12818 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12819 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12820 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12821 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12822 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12823 * config/gnu-user.h: New. Copied from linux.h.
12824 (LINUX_TARGET_STARTFILE_SPEC): Rename to
12825 GNU_USER_TARGET_STARTFILE_SPEC.
12826 (LINUX_TARGET_ENDFILE_SPEC): Rename to
12827 GNU_USER_TARGET_ENDFILE_SPEC.
12828 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12829 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12830 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12831 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12832 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12833 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12834 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12835 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12836 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12837 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12838 * config/arm/linux-eabi.h (CC1_SPEC): Use
12839 GNU_USER_TARGET_CC1_SPEC.
12840 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12841 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12842 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12843 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12844 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12845 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12846 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12847 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12849 2011-01-12 Richard Guenther <rguenther@suse.de>
12852 * doc/invoke.texi (ffast-math): Document it is turned on
12855 2011-01-12 Jan Hubicka <jh@suse.cz>
12857 PR tree-optimization/47233
12858 * opts.c (common_handle_option): Disable ipa-reference with profile
12861 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12863 * c-parser.c (c_parser_objc_at_property_declaration): Improved
12866 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12868 * c-parser.c (c_lex_one_token): Updated and reindented some
12869 comments. No changes in code.
12871 2011-01-11 Ian Lance Taylor <iant@google.com>
12873 * godump.c (go_output_var): Don't output the variable if there is
12874 already a type with the same name.
12876 2011-01-11 Ian Lance Taylor <iant@google.com>
12878 * godump.c (go_format_type): Don't generate float80.
12880 2011-01-11 Richard Henderson <rth@redhat.com>
12882 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12883 declaration. Rewrite for both speed and size.
12884 (mn10300_address_cost_1): Remove.
12885 (mn10300_register_move_cost): New.
12886 (mn10300_memory_move_cost): New.
12887 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
12888 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
12889 extensions, shifts, BSWAP, CLZ.
12890 (mn10300_wide_const_load_uses_clr): Remove.
12891 (TARGET_REGISTER_MOVE_COST): New.
12892 (TARGET_MEMORY_MOVE_COST): New.
12893 * config/mn10300/mn10300-protos.h: Update.
12894 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12896 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12897 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12898 * config/mn10300/mn10300-protos.h: Update.
12899 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12900 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12901 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12902 (*test_int_bitfield, *test_byte_bitfield): Remove.
12903 (*bit_test, *subreg_bit_test): Remove.
12904 * config/mn10300/predicates.md (const_8bit_operand): Remove.
12906 * config/mn10300/constraints.md ("c"): Rename from "A".
12907 ("A", "D"): New constraint letters.
12908 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12909 (fmssf4, fnmasf4, fnmssf4): Likewise.
12911 * config/mn10300/mn10300.md (isa): New attribute.
12912 (enabled): New attribute.
12914 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12915 (abssf2, negsf2): Define only for hardware fp.
12916 (sqrtsf2): Reformat.
12917 (addsf3, subsf3, mulsf3): Merge expander and insn.
12919 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12920 (DEBUGGER_AUTO_OFFSET): Remove.
12921 (DEBUGGER_ARG_OFFSET): Remove.
12923 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12924 Emit register stores with the same offsets as the hardware.
12925 (mn10300_store_multiple_operation): Don't check that the register
12926 save offsets are monotonic.
12927 * config/mn10300/mn10300-protos.h: Update.
12929 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
12931 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
12932 in terms of the value on the stack, not the MDR register.
12934 2011-01-11 Jan Hubicka <jh@suse.cz>
12938 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
12939 (symbol_alias_set_destroy, symbol_alias_set_contains,
12940 propagate_aliases_backward): Declare.
12941 * lto-streamer-out.c (struct sets): New sturcture.
12942 (trivally_defined_alias): New function.
12943 (output_alias_pair_p): Rewrite.
12944 (output_unreferenced_globals): Fix output of alias pairs.
12945 (produce_symtab): Likewise.
12946 * ipa.c (function_and_variable_visibility): Set weak alias destination
12948 * varasm.c (symbol_alias_set_t): Remove.
12949 (symbol_alias_set_destroy): Export.
12950 (propagate_aliases_forward, propagate_aliases_backward): New functions
12952 (compute_visible_aliases): ... this one; remove.
12953 (trivially_visible_alias): New
12954 (trivially_defined_alias): New.
12955 (remove_unreachable_alias_pairs): Rewrite.
12956 (finish_aliases_1): Reorganize code checking if alias is defined.
12957 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
12960 2011-01-11 Richard Guenther <rguenther@suse.de>
12962 PR tree-optimization/46076
12963 * tree-ssa.c (useless_type_conversion_p): Conversions from
12964 unprototyped to empty argument list function types are useless.
12966 2011-01-11 Richard Guenther <rguenther@suse.de>
12968 PR middle-end/45235
12969 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
12970 volatile MEMs as MEM_READONLY_P.
12972 2011-01-11 Richard Guenther <rguenther@suse.de>
12974 PR tree-optimization/47239
12975 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
12977 2011-01-11 Jeff Law <law@redhat.com>
12979 PR tree-optimization/47086
12980 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
12981 IVs from statements that might throw.
12983 2011-01-10 Jan Hubicka <jh@suse.cz>
12986 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
12988 2011-01-10 Jan Hubicka <jh@suse.cz>
12991 * profile.c (read_profile_edge_counts): Ignore profile inconistency
12992 when correcting profile.
12994 2011-01-10 Jan Hubicka <jh@suse.cz>
12997 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
12998 DECL_FINI_PRIORITY.
12999 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13000 Restore DECL_FINI_PRIORITY.
13002 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13004 * doc/gimple.texi: Fix quoting of multi-word return values in
13005 @deftypefn statements. Ensure presence of return value. Wrap
13006 overlong @deftypefn lines.
13007 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13008 descriptions of removed functions.
13009 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13010 of multi-word return value in @deftypefn statement.
13012 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13014 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13015 (Conditional Expressions, Logical Operators)
13016 (Statement and operand traversals): Do not indent smallexample
13017 code. Fix duplicate function argument in example.
13019 2011-01-10 Jeff Law <law@redhat.com>
13021 PR tree-optimization/47141
13022 * ipa-split.c (split_function): Handle case where we are
13023 returning a value and the return block has a virtual operand phi.
13025 2011-01-10 Jan Hubicka <jh@suse.cz>
13027 PR tree-optimization/47234
13028 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13029 (pass_feedback_split_functions): Declare.
13030 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13032 * ipa-split.c (gate_split_functions): Update comments; disable
13033 split-functions for profile_arc_flag and branch_probabilities.
13034 (gate_feedback_split_functions): New function.
13035 (execute_feedback_split_functions): New function.
13036 (pass_feedback_split_functions): New global var.
13038 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13041 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13042 calling gimple_call_set_cannot_inline.
13044 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13046 * config/darwin-sections.def: Remove unused section.
13048 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13051 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13053 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13056 * c-parser.c (c_parser_declaration_or_fndef): Improved
13059 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13061 * config/i386/winnt.c (i386_pe_start_function): Make sure
13062 to switch back to function's section.
13064 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13068 * plugin.c: Move include of dlfcn.h from here...
13069 * system.h: ... to here.
13071 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13073 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13075 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13076 two extra empty pages in PDF output.
13078 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13081 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13082 for error recovery purposes behave as if it was not specified so
13083 that the default type is usd.
13085 2011-01-07 Jan Hubicka <jh@suse.cz>
13087 PR tree-optmization/46469
13088 * ipa.c (function_and_variable_visibility): Clear needed flags on
13089 nodes with external decls; handle weakrefs merging correctly.
13091 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13093 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13096 2011-01-07 Jan Hubicka <jh@suse.cz>
13098 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13099 and no longer claim that gold is required for linker plugin.
13100 * configure: Regenerate.
13101 * gcc.c (PLUGIN_COND): New macro.
13102 (LINK_COMMAND_SPEC): Use it.
13103 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13104 * config.in (HAVE_LTO_PLUGIN): New.
13105 * configure.ac (--with-lto-plugin): New parameter; autodetect
13108 2011-01-07 Jan Hubicka <jh@suse.cz>
13110 PR tree-optimization/46367
13111 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13112 when we can update original.
13113 (cgraph_mark_inline_edge): Sanity check.
13114 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13116 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13118 * config/spu/spu.h (ASM_COMMENT_START): Define.
13120 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13123 * gcc.c (%>S): New.
13124 (SWITCH_KEEP_FOR_GCC): Likewise.
13125 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13126 (do_spec_1): Handle "%>".
13128 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13130 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13133 * config/i386/i386.c (ix86_delegitimize_address): If
13134 simplify_gen_subreg fails, return orig_x.
13137 * value-prof.c (gimple_stringop_fixed_value): Handle
13138 lhs of the call properly.
13140 2011-01-07 Jan Hubicka <jh@suse.cz>
13143 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13145 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13147 * target.def (function_switched_text_sections): New hook.
13148 * doc/tm.texi: Regenerated.
13149 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13150 * final.c (default_function_switched_text_sections): New.
13151 (final_scan_insn): Call function_switched_text_sections when a
13152 mid-function section change occurs.
13153 * output.h (default_function_switched_text_sections): Declare.
13154 * config/darwin-protos.h (darwin_function_switched_text_sections):
13156 * config/darwin.c (darwin_function_switched_text_sections): New.
13157 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13159 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13161 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13162 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13163 the secondary code fragment when outputting for DWARF == 2.
13165 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13167 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13168 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13170 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13171 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13173 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13176 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13177 when it is not empty.
13179 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13182 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13183 (case ${target}): Add btver1.
13184 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13185 -march=native recognize btver1 processors.
13186 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13187 btver1 def_and_undef
13188 * config/i386/i386.c (struct processor_costs btver1_cost): New
13190 (m_BTVER1): New definition.
13191 (m_AMD_MULTIPLE): Includes m_BTVER1.
13192 (initial_ix86_tune_features): Add btver1 tune.
13193 (processor_target_table): Add btver1 entry.
13194 (static const char *const cpu_names): Add btver1 entry.
13195 (software_prefetching_beneficial_p): Add btver1.
13196 (ix86_option_override_internal): Add btver1 instruction sets.
13197 (ix86_issue_rate): Add btver1.
13198 (ix86_adjust_cost): Add btver1.
13199 * config/i386/i386.h (TARGET_BTVER1): New definition.
13200 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13201 (enum processor_type): Add PROCESSOR_BTVER1.
13202 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13204 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13207 * config/i386/i386.c (legitimize_tls_address)
13208 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13209 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13210 (tls_initial_exec_64_sun): New pattern.
13212 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13214 * doc/invoke.texi (Overall Options): Improve wording and markup
13215 of the description of -wrapper.
13217 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13219 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13220 rdynamic, threads): New Driver options.
13222 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13225 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13226 if coming from .tdata.
13227 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13229 2011-01-06 Jan Hubicka <jh@suse.cz>
13232 * collect2.c (main): Do not enable LTOmode when plugin is active.
13234 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13237 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13238 --version output if supported.
13239 * configure: Regenerate.
13241 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13243 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13246 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13249 * c-convert.c (convert): When converting a complex expression
13250 other than COMPLEX_EXPR to a different complex type, ensure
13251 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13252 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13253 when converting COMPLEX_TYPE.
13255 2011-01-06 Ira Rosen <irar@il.ibm.com>
13257 PR tree-optimization/47139
13258 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13259 only the last reduction value is used outside the loop. Update
13262 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13264 * config/rtems.opt: New.
13265 * config.gcc (*-*-rtems*): Use rtems.opt.
13267 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13269 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13270 processors do not support 3DNow instructions.
13272 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13274 * config/spu/spu.c (spu_option_override): Set parameter
13275 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13277 2011-01-05 Jan Hubicka <jh@suse.cz>
13279 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13280 at the command line.
13282 2011-01-05 Martin Jambor <mjambor@suse.cz>
13285 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13286 deltas on streamed outgoing edges.
13287 (output_node_opt_summary): Output info for outgoing edges only when
13288 the node is in new parameter set.
13289 (output_cgraph_opt_summary): New parameter set, passed to the two
13290 aforementioned functions. Update its forward declaration and its
13293 2011-01-05 Tom Tromey <tromey@redhat.com>
13295 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13296 operator to c_finish_omp_atomic.
13297 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13298 (build_unary_op): Update.
13299 (build_modify_expr): Update.
13300 (build_asm_expr): Update.
13302 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13304 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13305 newly inserted insns.
13306 (pad_bb): Likewise.
13307 (spu_emit_branch_hint): Likewise.
13308 (insert_hbrp_for_ilb_runout): Likewise.
13309 (spu_machine_dependent_reorg): Call df_finish_pass after
13310 schedule_insns returns.
13312 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13314 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13316 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13318 PR tree-optimization/47005
13319 * tree-sra.c (struct access): Add 'non_addressable' bit.
13320 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13321 (decide_one_param_reduction): Return 0 if the parameter is passed by
13322 reference and one of the accesses in the group is non_addressable.
13324 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13326 PR tree-optimization/47056
13327 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13328 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13329 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13331 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13333 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13334 initializer. Skip view conversions from aggregate types.
13336 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13339 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13341 2011-01-04 Philipp Thomas <pth@suse.de>
13343 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13346 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13348 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13349 on empty epilogue sequences.
13351 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13353 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13354 non-static): New Driver options.
13356 2011-01-04 Jie Zhang <jie@codesourcery.com>
13359 * gcc.c (default_compilers[]): Set combinable field to 0
13360 for all assembly languages.
13362 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13364 * config/mips/loongson3a.md: New file.
13365 * config/mips/mips.md: Include loongson3a.md.
13366 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13369 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13371 PR middle-end/47017
13372 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13373 instead of convert_memory_address_addr_space on the base expression.
13375 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13377 * config/spu/spu.c (spu_option_override): Update error text
13378 for bad -march= / -mtune= values.
13380 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13382 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13383 if branch-hint optimization will be performed.
13385 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13387 PR tree-optimization/47148
13388 * ipa-split.c (split_function): Convert arguments to
13389 DECL_ARG_TYPE if possible.
13391 PR tree-optimization/47155
13392 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13393 when computing uns.
13395 PR rtl-optimization/47157
13396 * combine.c (try_combine): If undobuf.other_insn becomes
13397 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13398 and set *new_direct_jump_p too.
13400 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13402 PR tree-optimization/47021
13403 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13405 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13407 * gcc.c (process_command): Update copyright notice dates.
13408 * gcov.c (print_version): Likewise.
13409 * gcov-dump.c (print_version): Likewise.
13410 * mips-tfile.c (main): Likewise.
13411 * mips-tdump.c (main): Likewise.
13413 2011-01-03 Martin Jambor <mjambor@suse.cz>
13415 PR tree-optimization/46801
13416 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13417 aggregate fields start at byte boundary instead of the bit-field flag.
13419 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13422 * gcc.c (main): Revert revision 168407.
13424 2011-01-03 Martin Jambor <mjambor@suse.cz>
13426 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13428 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13430 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13431 vector optab to expand vector/scalar shift, update gimple to vector.
13433 2011-01-03 Martin Jambor <mjambor@suse.cz>
13435 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13438 2011-01-03 Martin Jambor <mjambor@suse.cz>
13440 PR tree-optimization/46984
13441 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13443 (cgraph_create_indirect_edge): Fixed line length.
13444 (cgraph_indirect_call_info): Declare.
13445 (cgraph_make_edge_direct) Update declaration.
13446 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13447 (cgraph_create_indirect_edge): Use it.
13448 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13450 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13451 the new thunk_delta representation.
13452 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13454 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13455 (ipa_read_indirect_edge_info): Likewise.
13456 * lto-cgraph.c (output_edge_opt_summary): New function.
13457 (output_node_opt_summary): Call it on all outgoing edges.
13458 (input_edge_opt_summary): New function.
13459 (input_node_opt_summary): Call it on all outgoing edges.
13461 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13464 * gcc.c (main): Don't check have_o when settting combine_inputs.
13466 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13468 * regrename.c: Add general comment describing the pass.
13469 (struct du_head): Remove 'length' field.
13470 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13471 (regrename_optimize): Do not sort chains. Rework comments, add others.
13472 Force renaming to the preferred class (if any) in the first pass and do
13473 not consider registers that belong to it in the second pass.
13474 (create_new_chain): Do not set 'length' field.
13475 (scan_rtx_reg): Likewise.
13477 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13479 PR tree-optimization/47140
13480 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13481 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13482 to bit_value_binop.
13484 PR rtl-optimization/47028
13485 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13486 parm_birth_insn instead of at the beginning of first bb.
13488 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13490 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13491 Remove the word "see" before "@pxref".
13492 * doc/rtl.texi: Remove the word "see" before "@pxref".
13494 2011-01-01 Jan Hubicka <jh@suse.cz>
13496 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13499 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13502 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13505 Copyright (C) 2011 Free Software Foundation, Inc.
13507 Copying and distribution of this file, with or without modification,
13508 are permitted in any medium without royalty provided the copyright
13509 notice and this notice are preserved.